.scenes { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.25rem; }
.scene-card {
  position: relative; padding: 0; overflow: hidden; aspect-ratio: 1; cursor: pointer; text-align: left;
  border: 1px solid var(--line); border-radius: 24px; background: var(--art) center / cover;
  color: var(--ink); font: inherit; box-shadow: var(--shadow);
  transition: transform .3s cubic-bezier(.2, .7, .2, 1), border-color .25s;
}
.scene-card:focus-visible { outline: 3px solid var(--gold-hi); outline-offset: 3px; }
@media (hover: hover) { .scene-card:hover { transform: translateY(-4px); border-color: var(--line-hi); } }
.scene-card .label { position: absolute; inset: auto 0 0 0; padding: 3rem 1.2rem 1.1rem; background: linear-gradient(180deg, transparent, rgba(7, 18, 15, .92)); }
.scene-card h2 { font-size: 1.6rem; margin-bottom: .2rem; }
.scene-card p { margin: 0; color: var(--muted); font-size: 1rem; line-height: 1.35; }
.scene-card .done-badge {
  position: absolute; top: 1rem; right: 1rem; padding: .25rem .8rem; border-radius: 999px;
  background: rgba(7, 18, 15, .78); border: 1px solid var(--line-hi); color: var(--gold-hi);
  font: 700 .85rem var(--body);
}

.list { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1.1rem; padding: 0; list-style: none; }
.list button {
  min-height: 2.75rem; padding: .35rem 1rem; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line); background: rgba(255, 255, 255, .06); color: var(--ink); font: 600 1rem var(--body);
}
.list button.aim { border-color: var(--gold); box-shadow: 0 0 0 2px rgba(233, 196, 106, .45); }
.list li.got button { background: rgba(233, 196, 106, .16); border-color: var(--line-hi); color: var(--gold-hi); text-decoration: line-through; text-decoration-thickness: 2px; }
.list li.got button::before { content: "✓ "; text-decoration: none; display: inline-block; }

.stage {
  position: relative; max-width: 1024px; margin: 0 auto;
  max-height: 80vh; overflow: auto; -webkit-overflow-scrolling: touch;
  border-radius: 22px; border: 1px solid var(--line-hi); box-shadow: var(--shadow); background: #0a1a15;
}
.stage.zoomed { overscroll-behavior: contain; }
.wrap { position: relative; width: min(100%, calc(76vh * var(--ratio, 1))); margin: 0 auto; line-height: 0; cursor: crosshair; }   /* whole picture fits on screen */
.stage.zoomed .wrap { width: 210%; margin: 0; }
.wrap img { width: 100%; height: auto; display: block; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }

.mark { position: absolute; transform: translate(-50%, -50%); aspect-ratio: 1; border-radius: 50%; pointer-events: none; }
.mark.found { border: 4px solid var(--gold); box-shadow: 0 0 0 3px rgba(7, 18, 15, .55), 0 0 22px rgba(233, 196, 106, .6); animation: found-in .45s cubic-bezier(.2, 1.4, .4, 1); }
.mark.found::after { content: "✓"; position: absolute; right: -.15em; top: -.15em; width: 1.4em; height: 1.4em; display: grid; place-items: center; border-radius: 50%; background: var(--gold); color: var(--gold-ink); font: 800 clamp(.8rem, 2.2vw, 1.1rem) var(--body); line-height: 1; }
.mark.hint { border: 4px dashed var(--gold-hi); background: rgba(246, 220, 148, .18); animation: hint-fade 3.2s ease-out forwards; }
.mark.miss { width: 36px; border: 3px solid rgba(255, 255, 255, .8); animation: miss .6s ease-out forwards; }
@keyframes found-in { from { transform: translate(-50%, -50%) scale(1.6); opacity: 0; } to { transform: translate(-50%, -50%); opacity: 1; } }
@keyframes hint-fade { 0%, 70% { opacity: 1; } 100% { opacity: 0; } }
@keyframes miss { from { transform: translate(-50%, -50%) scale(.4); opacity: 1; } to { transform: translate(-50%, -50%) scale(1.5); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .mark.found, .mark.miss { animation: none; } .mark.miss { display: none; } }

.edit-box { margin: 1rem auto 0; max-width: 1024px; padding: 1rem; border-radius: 14px; background: rgba(0, 0, 0, .6); color: #cfe; font-size: .95rem; white-space: pre-wrap; user-select: all; }
