* { box-sizing: border-box; }
:root { color-scheme: light; font-family: "Special Elite", "Courier New", monospace; color: #24251f; background: #e9e5dc; }
body { margin: 0; min-height: 100vh; padding: clamp(16px, 3vw, 42px); background: radial-gradient(ellipse at 50% 0%, #f7f4ee 0, #e9e5dc 65%); }
.instruction { margin: 0 auto 26px; text-align: center; font-size: clamp(22px, 3vw, 30px); line-height: 1.3; color: #4d513d; }
.gallery { width: min(1320px, 100%); margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 245px), 1fr)); gap: 22px; }
.card { min-width: 0; padding: 14px 14px 17px; background: #fffdf9; border: 1px solid rgba(60, 48, 31, .09); border-radius: 12px; box-shadow: 0 6px 22px rgba(48, 38, 23, .09); display: flex; flex-direction: column; align-items: stretch; text-align: center; transition: transform .2s ease, box-shadow .2s ease; }
.card:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(48, 38, 23, .14); }
.photo-frame { position: relative; display: block; width: 100%; }
.image { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 7px; cursor: pointer; background: #d8d3c8; }
.image-number { position: absolute; top: 10px; left: 10px; z-index: 1; min-width: 38px; padding: 6px 8px 4px; border: 1px solid rgba(255,255,255,.58); border-radius: 4px; background: rgba(32, 31, 27, .78); color: #fffdf7; font-size: 16px; line-height: 1; text-align: center; box-shadow: 0 2px 8px rgba(0,0,0,.18); pointer-events: none; }
.sentence { font-size: 19px; line-height: 1.45; margin: 12px 3px 0; }
.sentence:first-child { margin-top: 3px; margin-bottom: 11px; font-size: 21px; font-weight: 600; }
.hidden { display: none; }
.revealed { margin-top: 9px; padding-top: 9px; border-top: 1px solid #e9e4da; color: #65704f; animation: reveal .35s ease both; }
@keyframes reveal { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 560px) { body { padding: 14px; } .gallery { gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); } .card { padding: 10px; } .sentence { font-size: 16px; }
.card .sentence:first-child { font-size: 18px; } }
@media (max-width: 360px) { .gallery { grid-template-columns: 1fr; } .sentence { font-size: 19px; } .card .sentence:first-child { font-size: 21px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }