/* Глазами животного: тёмная лаборатория зрения, у каждого зверя свой
   цвет линзы (--c). Сцена квадратная, во всю колонку. */

:root {
  --bg: #0d0a17;
  --bg-2: #1a1528;
  --ink: #f3effa;
  --ink-2: #bdb4cf;
  --ink-3: #857c99;
  --line: rgba(243, 239, 250, .14);
  --accent: #c07bff;
  --accent-ink: #120b1f;
  --card: #1a1528;
  --shadow: 0 24px 50px -22px rgba(0, 0, 0, .8);
}
body { background: radial-gradient(90% 50% at 50% 0%, #2a1c47 0%, #0d0a17 70%) fixed; }
.center { text-align: center; }
.btn { color: #120b1f; }
.btn--soft { background: rgba(255, 255, 255, .07); color: var(--ink); border-color: var(--line); }
.btn--ghost { color: var(--ink); }

.intro { display: grid; gap: 10px; }
.intro h1 { font-size: 40px; background: linear-gradient(90deg, #ffd23f, #c07bff 45%, #ff7a2a 80%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.deck { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.deck__i { position: relative; border-radius: 20px; overflow: hidden; aspect-ratio: 1; box-shadow: var(--shadow); }
.deck__i img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.8) brightness(.8); }
.deck__lens { position: absolute; left: 50%; top: 46%; width: 54%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; border: 3px solid var(--c); box-shadow: 0 0 0 999px rgba(13, 10, 23, .35), 0 0 24px var(--c); }
.deck__i b { position: absolute; left: 10px; bottom: 10px; font-size: 15px; padding: 4px 10px; border-radius: 999px; background: rgba(13, 10, 23, .75); }
.deck__i .stars { position: absolute; right: 8px; top: 8px; }

.lvhead { display: grid; gap: 6px; }
.lvhead h2 { font-size: 30px; color: var(--c); }
.lvhead__about { color: var(--ink-2); font-size: 15px; }
.pips { display: flex; gap: 6px; }
.pips i { flex: 1; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, .12); }
.pips i.done { background: rgba(255, 255, 255, .5); }
.pips i.now { background: var(--c); }

.scene { position: relative; aspect-ratio: 1; border-radius: 22px; overflow: hidden; box-shadow: 0 0 0 2px var(--c), var(--shadow); touch-action: none; user-select: none; -webkit-user-select: none; cursor: crosshair; }
.scene img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.scene canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.scene canvas.is-open { animation: open .7s var(--ease); }
@keyframes open { from { clip-path: circle(20% at var(--ox, 50%) var(--oy, 50%)); } to { clip-path: circle(75% at 50% 50%); } }
.scene__load { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(13, 10, 23, .55); font-weight: 600; }
.task { font-size: 17px; line-height: 1.45; }
.row .btn { min-height: 54px; }
#here { background: var(--accent); color: #120b1f; }
.note { color: var(--ink-3); }

.stars { display: inline-flex; gap: 2px; }
.stars i { width: 20px; height: 20px; color: rgba(255, 255, 255, .22); }
.stars i.on { color: #ffd23f; }
.stars svg { width: 100%; height: 100%; }

.win { display: grid; gap: 12px; text-align: center; justify-items: center; }
.win h2 { font-size: 30px; color: var(--c); }
.win .stars i { width: 32px; height: 32px; }
.win p:not(.eyebrow) { color: var(--ink-2); text-align: left; }
.win .btn { background: var(--c); }

.final { display: grid; gap: 10px; text-align: center; }
.final h1 { font-size: 34px; }
.final__score { color: var(--ink-2); font-size: 18px; }
.final__score b { font-family: var(--serif); font-size: 44px; color: #ffd23f; }
.final__list { display: grid; gap: 8px; text-align: left; }
.final__i { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 16px; background: rgba(255, 255, 255, .05); border: 1px solid var(--line); }
.final__i img { width: 48px; height: 48px; border-radius: 12px; object-fit: cover; box-shadow: 0 0 0 2px var(--c); }
.final__i span { flex: 1; font-weight: 600; }
.museum { display: grid; gap: 6px; }
.museum p:not(.eyebrow) { color: var(--ink-2); }
