@font-face { font-family: "Fraunces"; font-style: italic; font-weight: 400 700; font-display: swap; src: url(fonts/fraunces-italic.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 400 700; font-display: swap; src: url(fonts/fraunces.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 400 600; font-display: swap; src: url(fonts/jetbrains-mono.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 400 800; font-display: swap; src: url(fonts/manrope.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@property --sweep { syntax: "<percentage>"; inherits: false; initial-value: 120%; }

:root {
  --skin-ink: #0C2A44;
  --skin-accent: #BA2215;
  --skin-soft: #FBF7EE;
  --skin-ray: #92BFD2;
  --desk: color-mix(in oklab, var(--skin-ink) 24%, #070609);
  --card: color-mix(in oklab, var(--skin-ink) 16%, #17130f);
  --text: #F0E7D7;
  --dim: color-mix(in oklab, #F0E7D7 64%, #0b0a0d);
  --line: rgb(224 180 108 / .17);
  --gold: #E3B76E;
  --gold-deep: #B8873F;
  --lamp: 255 207 142;
  --accent: var(--skin-accent);
  --accent-hi: color-mix(in oklab, var(--skin-accent) 62%, #FFD9C2);
  --serif: "Fraunces", Georgia, serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  --art: 236px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --spring: cubic-bezier(.34, 1.5, .64, 1);
  --noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .6 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --ink-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='120'%3E%3Cfilter id='s'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -3 2.3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23s)'/%3E%3C/svg%3E");
  interpolate-size: allow-keywords;
  color-scheme: dark;
  background: var(--desk);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100dvh; color: var(--text); font: 17px/1.55 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
body::after { content: ""; position: fixed; inset: -50%; z-index: 40; pointer-events: none; background: var(--noise); opacity: .055; mix-blend-mode: soft-light; }
p { margin: 0; }
h1 { margin: 0; font: 600 25px/1.06 var(--serif); letter-spacing: -.01em; text-wrap: balance; color: var(--text); }
h1 em { font-style: italic; font-weight: 500; color: var(--gold); }
h2 { margin: 0; font: 600 25px/1.15 var(--serif); letter-spacing: -.01em; text-wrap: balance; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.sc:focus, .verdict:focus { outline: none; }
.muted { color: var(--dim); }
.fine { margin-top: 12px; font-size: 15px; }
.intro { color: var(--dim); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.case { font: 600 12.5px/1.4 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }

#lamp { position: fixed; inset: 0; z-index: -2; pointer-events: none; --lx: 50%; --ly: -6%;
  background:
    radial-gradient(64% 50% at var(--lx) var(--ly), rgb(var(--lamp) / .22), rgb(var(--lamp) / .07) 46%, transparent 78%),
    radial-gradient(130% 80% at 50% 118%, color-mix(in oklab, var(--skin-ink) 60%, transparent), transparent 62%),
    radial-gradient(150% 110% at 50% 42%, transparent 48%, rgb(0 0 0 / .62)); }
#lamp::after { content: ""; position: absolute; top: -6vh; left: calc(var(--lx) - 70vmax); width: 140vmax; height: 120vh; opacity: 0; transition: opacity 1s var(--ease);
  background: conic-gradient(from 158deg at 50% 0%, transparent 0deg, rgb(var(--lamp) / .07) 12deg, rgb(var(--lamp) / .15) 22deg, rgb(var(--lamp) / .07) 32deg, transparent 44deg);
  -webkit-mask-image: linear-gradient(#000 10%, transparent 82%); mask-image: linear-gradient(#000 10%, transparent 82%); }
.gate-on #lamp::after { opacity: 1; }
#dust { position: fixed; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none; }

.gate { min-height: 100dvh; display: grid; align-content: center; padding: 40px 20px calc(40px + env(safe-area-inset-bottom)); }
.gate .inner { width: 100%; max-width: 420px; margin: 0 auto; }
.brand { display: flex; align-items: center; gap: 10px; margin-bottom: 44px; font: 600 13px/1 var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--dim); }
.brand .mark { width: 34px; height: 34px; border-radius: 50%; box-shadow: 0 0 0 4px rgb(var(--lamp) / .08), 0 0 30px rgb(var(--lamp) / .25); }
.gate h1 { margin-top: 10px; font-size: clamp(46px, 13vw, 64px); line-height: .94; letter-spacing: -.025em; }
.gate .lead { margin-top: 16px; max-width: 30ch; color: var(--dim); }
.file { position: relative; margin-top: 40px; padding: 30px 18px 18px; border-radius: 4px 22px 22px 22px; border: 1px solid var(--line);
  background: linear-gradient(170deg, rgb(255 236 205 / .085), rgb(255 236 205 / .02) 55%), color-mix(in oklab, var(--card) 86%, transparent);
  box-shadow: inset 0 1px 0 rgb(255 240 215 / .09), 0 40px 70px -34px #000; -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.file-tab { position: absolute; left: -1px; bottom: 100%; padding: 7px 16px 5px; border: 1px solid var(--line); border-bottom: 0; border-radius: 12px 12px 0 0; background: color-mix(in oklab, var(--card) 92%, #2a2118); font: 600 11.5px/1 var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.file label { margin-top: 0; }
.slots { position: relative; display: flex; align-items: center; gap: 7px; margin: 2px 0 18px; }
.slot { position: relative; display: grid; place-items: center; flex: 1; min-width: 0; height: 62px; border-radius: 13px; border: 1px solid rgb(255 240 215 / .13); background: rgb(0 0 0 / .32); font: 600 27px/1 var(--mono); color: var(--text); transition: border-color .25s, box-shadow .25s, background-color .25s; }
.slot.f { border-color: rgb(var(--lamp) / .42); background: rgb(var(--lamp) / .06); }
.slots:focus-within .slot.cur { border-color: var(--gold); box-shadow: 0 0 0 4px rgb(var(--lamp) / .12), 0 0 26px rgb(var(--lamp) / .22); }
.slots:focus-within .slot.cur::after { content: ""; width: 2px; height: 44%; border-radius: 1px; background: var(--gold); animation: blink 1.05s steps(1) infinite; }
.dash { flex: none; width: 10px; height: 2px; border-radius: 1px; background: var(--dim); }
#c { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; margin: 0; padding: 0; border: 0; opacity: 0; font-size: 16px; caret-color: transparent; cursor: text; }
.file.ready .primary { animation: ready 1.6s var(--ease) infinite; }

.hero { position: sticky; top: calc(var(--art) * -1); z-index: 20; }
.hero.compact { top: 0; }
.stage { position: relative; display: grid; place-items: center; height: var(--art); perspective: 900px; }
.stage::before { content: ""; position: absolute; left: 50%; top: 58%; width: 300px; height: 120px; translate: -50% -50%; border-radius: 50%; background: radial-gradient(closest-side, rgb(var(--lamp) / .18), transparent); filter: blur(6px); }
.photo-wrap { position: relative; }
.photo { position: relative; width: 156px; padding: 8px 8px 26px; border-radius: 3px; background: linear-gradient(#F3EBDB, #E6DAC3); rotate: -4deg; transform: rotateX(var(--ry, 0deg)) rotateY(var(--rx, 0deg)); transition: transform .5s var(--ease); box-shadow: 0 1px 1px rgb(0 0 0 / .5), 0 32px 46px -20px #000, 0 12px 24px -12px rgb(0 0 0 / .7); }
.photo .cover { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 1px; }
.photo::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: linear-gradient(115deg, transparent 30%, rgb(255 255 255 / .22) 46%, transparent 62%); background-size: 260% 100%; background-position: var(--mx, 70%) 0; mix-blend-mode: soft-light; transition: background-position .4s var(--ease); }
.tape { position: absolute; top: -11px; left: 50%; width: 70px; height: 22px; translate: -50% 0; rotate: 3deg; background: rgb(236 222 190 / .55); box-shadow: 0 1px 2px rgb(0 0 0 / .25); -webkit-backdrop-filter: blur(1px); backdrop-filter: blur(1px); }
.barwrap { border-bottom: 1px solid transparent; transition: background-color .35s, border-color .35s, -webkit-backdrop-filter .35s, backdrop-filter .35s; }
.hero.stuck .barwrap { background: color-mix(in oklab, var(--desk) 88%, transparent); border-color: var(--line); -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4); }
.bar { display: flex; align-items: center; gap: 12px; min-height: 84px; max-width: 560px; margin: 0 auto; padding: 12px 16px; }
.mini { display: none; flex: none; width: 42px; height: 42px; border-radius: 3px; padding: 3px; background: #EDE3CF; rotate: -3deg; box-shadow: 0 6px 12px -6px #000; }
.hero.compact .mini { display: block; }
.name { flex: 1; min-width: 0; }
.name .case { margin-bottom: 3px; font: italic 500 15px/1.25 var(--serif); letter-spacing: 0; text-transform: none; }
.hero.compact h1 { font-size: 21px; }
#timer { display: inline-flex; flex: none; align-items: center; gap: 9px; min-height: 48px; padding: 0 15px 0 5px; border-radius: 999px; border: 1px solid var(--line); background: rgb(0 0 0 / .34); color: var(--text); font: 600 15px/1 var(--mono); font-variant-numeric: tabular-nums; transition: border-color .3s; }
#timer.on { border-color: rgb(var(--lamp) / .45); }
.tg { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: rgb(var(--lamp) / .12); color: var(--gold); transition: background-color .3s, color .3s; }
.tg svg { width: 10px; height: 10px; fill: currentColor; }
#timer.on .tg { background: var(--gold); color: #1B140B; }
.tm { display: inline-flex; overflow: hidden; height: 1.25em; align-items: center; }
.tm span { display: inline-block; }

main { position: relative; max-width: 560px; margin: 0 auto; padding: 22px 16px calc(140px + env(safe-area-inset-bottom)); }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 18px; }
summary { list-style: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
summary::-webkit-details-marker { display: none; }

.tile { position: relative; isolation: isolate; min-width: 0; border-radius: 20px; border: 1px solid var(--line); scroll-margin-top: 100px;
  background: linear-gradient(165deg, rgb(255 240 215 / .08), rgb(255 240 215 / .018) 42%, rgb(0 0 0 / .14)), var(--card);
  box-shadow: inset 0 1px 0 rgb(255 240 215 / .07), 0 22px 36px -24px #000;
  transform: perspective(700px) rotateX(var(--ry, 0deg)) rotateY(var(--rx, 0deg));
  transition: transform .45s var(--ease), border-color .35s, box-shadow .35s; }
.tile::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .35s;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 0%), rgb(var(--lamp) / .16), transparent 62%); }
@media (hover: hover) {
  .tile:not([open]):hover { border-color: rgb(var(--lamp) / .34); box-shadow: inset 0 1px 0 rgb(255 240 215 / .1), 0 28px 44px -24px #000, 0 0 0 1px rgb(var(--lamp) / .06); }
  .tile:hover::before { opacity: 1; }
}
.tile.full { border-color: rgb(var(--lamp) / .4); }
.tile[open] { grid-column: 1 / -1; transform: none; border-color: rgb(var(--lamp) / .34); background: linear-gradient(170deg, rgb(255 240 215 / .1), rgb(255 240 215 / .02) 30%, rgb(0 0 0 / .1)), var(--card); }
.tile > summary { display: flex; flex-direction: column; gap: 10px; min-height: 176px; padding: 16px; border-radius: 20px; transition: scale .3s var(--spring); }
.tile > summary:active { scale: .975; }
.tile[open] > summary { min-height: 0; }
.hd { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.num { font: italic 600 48px/.9 var(--serif); letter-spacing: -.03em; background: linear-gradient(175deg, #FBE3B3 10%, var(--gold) 45%, var(--gold-deep) 95%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.num small { display: block; margin-top: 8px; font: 600 12px/1 var(--mono); font-style: normal; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); -webkit-text-fill-color: var(--dim); }
.ico { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line); background: rgb(var(--lamp) / .07); color: var(--gold); }
svg.line { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.t { font: 500 20px/1.18 var(--serif); letter-spacing: -.005em; overflow-wrap: anywhere; }
.tile[open] .t { font-size: 27px; }
.foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; }
.ref { font: 500 12.5px/1.4 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }
.ring { flex: none; width: 28px; height: 28px; fill: none; stroke-width: 3; stroke-linecap: round; overflow: visible; }
.ring path { stroke: rgb(255 240 215 / .15); stroke-dasharray: 1; }
.ring path.on { stroke: var(--gold); filter: drop-shadow(0 0 3px rgb(var(--lamp) / .7)); }
.body { padding: 0 14px 16px; }
.tile:not([open]) .body { display: none; }

.help { margin: 0 0 20px; border-radius: 14px; border: 1px dashed rgb(var(--lamp) / .3); background: rgb(var(--lamp) / .04); }
.help > summary { position: relative; display: flex; flex-direction: column; gap: 2px; min-height: 54px; padding: 12px 46px 12px 14px; font: 600 16px/1.35 var(--sans); }
.help > summary small { font: 400 14px/1.3 var(--sans); color: var(--dim); }
.help > summary::after, .card > summary::after { content: "+"; position: absolute; right: 14px; top: 50%; translate: 0 -50%; font: 300 26px/1 var(--sans); color: var(--gold); transition: rotate .4s var(--spring); }
.help[open] > summary::after, .card[open] > summary::after { rotate: 135deg; }
.help::details-content, .card::details-content { block-size: 0; overflow: hidden; transition: block-size .45s var(--ease), content-visibility .45s allow-discrete; }
.help[open]::details-content, .card[open]::details-content { block-size: auto; }
.cards { padding: 0 14px 6px; }
.panel.cards { padding: 4px 16px; margin-top: 14px; }
.card { border-top: 1px solid var(--line); }
.panel .card:first-child { border-top: 0; }
.card > summary { position: relative; display: block; min-height: 50px; padding: 13px 36px 13px 0; font: 500 16px/1.4 var(--sans); }
.card[open] > summary { color: var(--gold); }
.card p { padding: 0 0 15px; font-size: 16px; color: var(--dim); }

.rail { margin: 0; padding: 0; list-style: none; }
.step { position: relative; display: grid; grid-template-columns: 30px minmax(0, 1fr); column-gap: 12px; padding: 0 0 20px; }
.step:last-child { padding-bottom: 4px; }
.step::before { content: ""; position: absolute; left: 14px; top: 36px; bottom: 6px; width: 2px; border-radius: 1px; background: linear-gradient(rgb(255 240 215 / .14), rgb(255 240 215 / .03)); }
.step:last-child::before { display: none; }
.done::before { background: linear-gradient(var(--gold), rgb(var(--lamp) / .12)); }
.node { position: relative; z-index: 1; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; font: 700 13px/1 var(--mono); }
.done .node { background: radial-gradient(circle at 35% 28%, #FBE1AE, var(--gold-deep)); color: #1B140B; box-shadow: 0 0 16px rgb(var(--lamp) / .38); }
.lock .node { border: 1px solid rgb(255 240 215 / .24); background: var(--card); color: var(--dim); }
.lock .node svg { width: 14px; height: 14px; stroke-width: 2.2; }
.last.lock .node { border-color: color-mix(in oklab, var(--accent-hi) 70%, transparent); color: var(--accent-hi); }
.lbl { margin: 7px 0 9px; font: 600 12.5px/1.4 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--dim); }
.later .lbl { margin-bottom: 0; }
.done .lbl { color: var(--gold); }
.last .lbl { color: var(--accent-hi); }
.tx { position: relative; padding: 13px 15px; border-radius: 14px; border: 1px solid rgb(var(--lamp) / .16); background: linear-gradient(160deg, rgb(255 236 205 / .07), rgb(255 236 205 / .025)); font-size: 16.5px; line-height: 1.6; overflow: hidden; }
.tx .cipher { color: var(--gold); }
.tx .veil { color: transparent; }
.sealed { position: relative; display: grid; gap: 9px; margin: 0 0 12px; padding: 15px; border-radius: 14px; border: 1px solid rgb(255 240 215 / .08); background: rgb(0 0 0 / .32); overflow: hidden; }
.sealed i { display: block; height: 11px; border-radius: 3px; background: rgb(255 240 215 / .13); }
.sealed i:nth-child(2) { width: 88%; }
.sealed i:nth-child(3) { width: 62%; }
.last .sealed { border-color: color-mix(in oklab, var(--accent) 45%, transparent); background: color-mix(in oklab, var(--accent) 12%, rgb(0 0 0 / .4)); }
.last .sealed i { background: color-mix(in oklab, var(--accent-hi) 34%, transparent); }

.act { position: relative; display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 54px; padding: 12px 16px; overflow: hidden; border: 0; border-radius: 15px; font: 700 16.5px/1.2 var(--sans); letter-spacing: .01em; text-decoration: none; transition: scale .3s var(--spring), box-shadow .3s, border-color .3s, background-color .3s; }
.act:active { scale: .965; }
.primary { background: linear-gradient(180deg, #F5D597, #C99549); color: #1C140A; box-shadow: inset 0 1px 0 rgb(255 255 255 / .5), 0 12px 26px -12px rgb(var(--lamp) / .6); }
.primary::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 35%, rgb(255 255 255 / .55) 50%, transparent 65%); translate: -130% 0; transition: translate .8s var(--ease); }
@media (hover: hover) { .primary:hover::after { translate: 130% 0; } }
.danger { background: linear-gradient(180deg, color-mix(in oklab, var(--accent) 82%, #FFFFFF 18%), var(--accent)); color: #FFFFFF; box-shadow: inset 0 1px 0 rgb(255 255 255 / .22), 0 0 0 1px color-mix(in oklab, var(--accent) 70%, #000000), 0 14px 30px -14px var(--accent); }
.ghost { margin-top: 10px; border: 1px solid var(--line); background: rgb(255 240 215 / .045); color: var(--text); }
@media (hover: hover) { .ghost:hover { border-color: rgb(var(--lamp) / .45); } }

.panel { margin-top: 18px; padding: 18px 16px; border-radius: 20px; border: 1px solid var(--line); background: linear-gradient(165deg, rgb(255 240 215 / .065), rgb(255 240 215 / .015)), var(--card); box-shadow: inset 0 1px 0 rgb(255 240 215 / .06), 0 22px 36px -26px #000; }
label { display: block; margin: 14px 0 9px; font: 600 12.5px/1.4 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
input:not([type=checkbox]):not(#c) { width: 100%; min-height: 58px; margin-bottom: 14px; padding: 12px 16px; border-radius: 15px; border: 1px solid rgb(255 240 215 / .16); background: rgb(0 0 0 / .34); font-size: 19px; transition: border-color .25s, box-shadow .25s; }
input:not([type=checkbox]):not(#c):focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px rgb(var(--lamp) / .12); }
#answer { font: 500 26px/1.2 var(--serif); }
textarea { display: block; width: 100%; min-height: 256px; padding: 3px 16px 16px 50px; border-radius: 16px; border: 1px solid var(--line); font: 400 16px/32px var(--sans); resize: vertical; background-attachment: local;
  background: linear-gradient(90deg, transparent 36px, color-mix(in oklab, var(--accent) 60%, transparent) 36px 37px, transparent 37px), repeating-linear-gradient(transparent 0 31px, rgb(255 240 215 / .09) 31px 32px), rgb(0 0 0 / .3); }
textarea:focus { outline: none; border-color: rgb(var(--lamp) / .45); }
.sec { margin: 38px 0 6px; }
.start { margin: 18px 0 0; padding: 0; list-style: none; counter-reset: s; }
.start li { position: relative; padding: 0 0 20px 54px; counter-increment: s; }
.start li::before { content: counter(s, decimal-leading-zero); position: absolute; left: 0; top: -3px; font: italic 600 28px/1 var(--serif); color: var(--gold); }
.start li::after { content: ""; position: absolute; left: 15px; top: 32px; bottom: 6px; width: 1px; background: linear-gradient(rgb(var(--lamp) / .35), transparent); }
.start li:last-child::after { display: none; }
.docs { margin-top: 14px; padding: 4px 16px; }
.doc { display: flex; align-items: center; gap: 14px; min-height: 56px; margin: 0; padding: 8px 0; border-top: 1px solid var(--line); font: 500 16px/1.35 var(--sans); letter-spacing: 0; text-transform: none; color: var(--text); cursor: pointer; }
.doc:first-child { border-top: 0; }
.doc input { appearance: none; -webkit-appearance: none; display: grid; place-items: center; flex: none; width: 26px; height: 26px; margin: 0; border-radius: 8px; border: 1.5px solid rgb(var(--lamp) / .45); background: rgb(0 0 0 / .3); cursor: pointer; transition: background-color .25s, border-color .25s, scale .35s var(--spring); }
.doc input::after { content: ""; width: 11px; height: 6px; border: solid #1B140B; border-width: 0 0 2.5px 2.5px; rotate: -45deg; translate: 0 -1px; scale: 0; transition: scale .35s var(--spring); }
.doc input:checked { border-color: var(--gold); background: var(--gold); }
.doc input:checked::after { scale: 1; }
.doc input:active { scale: .85; }
.doc span:first-of-type { flex: 1; min-width: 0; background: linear-gradient(currentColor, currentColor) no-repeat 0 58% / 0 1.5px; transition: background-size .45s var(--ease), color .35s; }
.doc:has(:checked) span:first-of-type { background-size: 100% 1.5px; color: var(--dim); }

.check { margin-top: 10px; padding-top: 14px; border-top: 1px solid var(--line); }
.check label { margin-top: 0; }
.row { display: flex; gap: 10px; }
.row input:not(#c) { flex: 1; min-width: 0; margin: 0 !important; }
.row .act { flex: none; width: auto; margin: 0; padding: 12px 18px; white-space: nowrap; }
.kicker { margin-bottom: 8px; font: 600 12.5px/1.4 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.check .kicker { margin: 12px 0 0; padding-left: 18px; position: relative; font: 500 15px/1.45 var(--sans); letter-spacing: 0; text-transform: none; color: var(--text); }
.check .kicker::before { content: ""; position: absolute; left: 0; top: .5em; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 10px var(--gold); }
.check .kicker:not([data-r=ok])::before { background: var(--accent-hi); box-shadow: 0 0 10px var(--accent-hi); }

.spot { position: relative; overflow: hidden; }
.spot::before { content: ""; position: absolute; left: 50%; top: -120px; width: 420px; height: 300px; translate: -50% 0; pointer-events: none; background: radial-gradient(closest-side, rgb(var(--lamp) / .16), transparent); }
.verdict { margin-top: 16px; padding: 18px; border-radius: 18px; border: 1px solid var(--line); background: rgb(0 0 0 / .34); }
.verdict.no { border-color: color-mix(in oklab, var(--accent-hi) 50%, transparent); }
.verdict.no .kicker { color: var(--accent-hi); }
.verdict.ok { position: relative; overflow: hidden; padding: 28px 18px 18px; text-align: center; border-color: rgb(var(--lamp) / .45); background: radial-gradient(120% 70% at 50% 0%, rgb(var(--lamp) / .17), transparent 62%), rgb(0 0 0 / .36); }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 18px 0 18px; }
.stats div { padding: 12px 10px; border-radius: 14px; border: 1px solid var(--line); background: rgb(255 240 215 / .04); }
.stats b { display: block; font: 600 28px/1.1 var(--mono); font-variant-numeric: tabular-nums; }
.stats span { font-size: 14px; color: var(--dim); }
.rank span { display: block; font: 600 12.5px/1.4 var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--dim); }
.rank strong { display: block; margin-top: 4px; font: italic 600 36px/1.08 var(--serif); background: linear-gradient(100deg, var(--gold-deep) 20%, #FFF1CF 45%, var(--gold) 55%, var(--gold-deep) 80%); background-size: 260% 100%; background-position: 0 0; -webkit-background-clip: text; background-clip: text; color: transparent; }
.note { margin: 14px 0 14px; }
.verdict.ok .danger { margin-top: 4px; }
.stamp { display: inline-block; margin: 22px 0 16px; padding: 9px 18px 8px; border: 3px solid var(--accent-hi); border-radius: 10px; font: 800 27px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--accent-hi); rotate: -6deg; -webkit-mask-image: var(--ink-mask); mask-image: var(--ink-mask); -webkit-mask-size: 240px 120px; mask-size: 240px 120px; }
.summary { margin-top: 2px; text-align: left; }

.shop-item { display: grid; gap: 12px; margin-top: 16px; padding: 16px; border-radius: 20px; border: 1px solid var(--line); background: linear-gradient(165deg, rgb(255 240 215 / .065), rgb(255 240 215 / .015)), var(--card); }
.shop-hd { display: flex; align-items: center; gap: 18px; }
.shop-hd img { flex: none; width: 88px; height: 100px; object-fit: cover; object-position: top; padding: 5px 5px 16px; border-radius: 3px; background: #EDE3CF; rotate: -4deg; box-shadow: 0 16px 26px -14px #000; transition: rotate .5s var(--spring), scale .5s var(--spring); }
@media (hover: hover) { .shop-item:hover .shop-hd img { rotate: 0deg; scale: 1.06; } }
.shop-hd h2 { font-size: 21px; }
.shop-hd span { display: block; margin-top: 4px; font-size: 15px; }
.shop-item .act { margin: 0; }

nav { position: fixed; left: 50%; bottom: calc(14px + env(safe-area-inset-bottom)); z-index: 60; display: flex; width: min(420px, calc(100% - 24px)); padding: 6px; translate: -50% 0; border-radius: 24px; border: 1px solid rgb(255 236 205 / .11);
  background: rgb(17 14 13 / .68); -webkit-backdrop-filter: blur(22px) saturate(1.5); backdrop-filter: blur(22px) saturate(1.5); box-shadow: inset 0 1px 0 rgb(255 240 215 / .08), 0 24px 44px -14px #000; }
nav[hidden] { display: none; }
nav .glow { position: absolute; top: 6px; bottom: 6px; left: 6px; width: calc((100% - 12px) / 4); border-radius: 18px; pointer-events: none; translate: calc(var(--i, 0) * 100%) 0; transition: translate .55s var(--spring);
  background: radial-gradient(90% 80% at 50% 0%, rgb(var(--lamp) / .3), rgb(var(--lamp) / .05) 70%), rgb(255 240 215 / .05); box-shadow: inset 0 1px 0 rgb(var(--lamp) / .55); }
nav button { position: relative; display: flex; flex: 1; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 58px; padding: 6px 4px; border: 0; border-radius: 18px; background: none; font: 600 13.5px/1.2 var(--sans); letter-spacing: .02em; color: var(--dim); transition: color .35s; }
nav button[aria-current] { color: var(--text); }
nav svg.line { width: 23px; height: 23px; transition: translate .45s var(--spring), scale .3s var(--spring), color .35s; }
nav button[aria-current] svg { color: var(--gold); translate: 0 -1px; stroke-width: 2.1; }
nav button:active svg { scale: .82; }

dialog.sheet { width: min(520px, 100%); max-width: 100%; margin: auto auto 0; padding: 22px 18px calc(18px + env(safe-area-inset-bottom)); border: 1px solid var(--line); border-bottom: 0; border-radius: 26px 26px 0 0; color: var(--text); background: linear-gradient(180deg, #241D18, #121010); box-shadow: 0 -30px 60px -24px #000; }
.sheet .grip { width: 42px; height: 4px; margin: -6px auto 18px; border-radius: 2px; background: rgb(255 240 215 / .22); }
.sheet #askT { font-size: 17px; }
.sheet .row { margin-top: 22px; }
.sheet .row .act { flex: 1; margin: 0; }
dialog.sheet::backdrop { background: rgb(4 3 3 / .6); -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px); }

@media (prefers-reduced-motion: no-preference) {
  body::after { animation: grain .9s steps(3) infinite; }
  .tm span.roll { animation: roll .45s var(--spring) both; }
  #timer.on .tg { animation: tick 2s var(--ease) infinite; }
  .slot.pop { animation: pop .4s var(--spring); }
  .file.shake { animation: shake .5s var(--ease); }
  .sealed::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgb(var(--lamp) / .09) 50%, transparent 70%); background-size: 300% 100%; animation: shimmer 3.4s linear infinite; }
  .fresh .tx { animation: lit .8s var(--ease) both; }
  .fresh .tx::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(100deg, transparent calc(var(--sweep) - 30%), rgb(var(--lamp) / .32) var(--sweep), transparent calc(var(--sweep) + 30%)); animation: sweep 1.2s var(--ease) both; mix-blend-mode: plus-lighter; }
  .ring path.new { animation: draw 1s .15s var(--ease) both; }
  .verdict.new { animation: rise .45s var(--ease) both; }
  .verdict.no.new { animation: shake .5s var(--ease) both; }
  .verdict.ok.new .rank strong { animation: shine 1.8s .5s var(--ease) both; }
  .verdict.ok.new::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(60% 50% at 50% 0%, rgb(var(--lamp) / .5), transparent 70%); animation: flash 1.2s var(--ease) both; }
  .stamp.slam { animation: slam .55s cubic-bezier(.2, 1.3, .4, 1) both; }
  .stamp.slam ~ .summary { animation: rise .7s .5s var(--ease) both; }
  main.jolt { animation: jolt .32s var(--ease); }
  dialog.sheet { transition: translate .5s var(--ease), display .5s allow-discrete, overlay .5s allow-discrete; }
  dialog.sheet:not([open]) { translate: 0 105%; }
  dialog.sheet::backdrop { transition: opacity .5s, display .5s allow-discrete, overlay .5s allow-discrete; }
  dialog.sheet:not([open])::backdrop { opacity: 0; }
  @starting-style { dialog.sheet[open] { translate: 0 105%; } dialog.sheet[open]::backdrop { opacity: 0; } }

  .gate.enter .inner > * { animation: rise .8s var(--ease) both; }
  .gate.enter .inner > :nth-child(2) { animation-delay: .08s; }
  .gate.enter .inner > :nth-child(3) { animation-delay: .16s; }
  .gate.enter .inner > :nth-child(4) { animation-delay: .24s; }
  .gate.enter .inner > :nth-child(5) { animation-delay: .34s; }
  .hero.enter .photo { animation: drop 1s var(--spring) both; }
  .hero.enter .bar { animation: rise .7s .15s var(--ease) both; }
  main.enter > * { animation: rise .6s var(--ease) both; animation-delay: .2s; }
  main.enter .grid { animation: none; }
  main.enter .tile { animation: deal .7s var(--ease) both; animation-delay: calc(var(--i) * 60ms + .25s); }

  @supports (animation-timeline: scroll()) {
    .photo-wrap { animation: lift linear both; animation-timeline: scroll(root); animation-range: 0 var(--art); }
  }

  .vt .hero, .vt .file { view-transition-name: hero; }
  .vt main { view-transition-name: page; }
  .vt nav { view-transition-name: dock; }
  ::view-transition-group(*) { animation-duration: .5s; animation-timing-function: var(--ease); }
  ::view-transition-old(page) { animation: .26s var(--ease) both page-out; }
  ::view-transition-new(page) { animation: .48s var(--ease) both page-in; }
  html[data-dir=back]::view-transition-old(page) { animation-name: page-out-back; }
  html[data-dir=back]::view-transition-new(page) { animation-name: page-in-back; }
  ::view-transition-old(hero), ::view-transition-new(hero) { width: 100%; height: 100%; object-fit: none; object-position: 50% 100%; }
  html.vt-tiles .tile { view-transition-name: var(--vt); view-transition-class: tile; }
  ::view-transition-old(*.tile), ::view-transition-new(*.tile) { width: 100%; height: 100%; object-fit: none; object-position: 0 0; }
  ::view-transition-old(*.tile) { animation: .22s ease both fade-out; }
  ::view-transition-new(*.tile) { animation: .38s .08s ease both fade-in; }
}

@keyframes grain { 0% { translate: 0 0; } 33% { translate: -4% 3%; } 66% { translate: 3% -4%; } 100% { translate: 0 0; } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes roll { from { translate: 0 80%; opacity: 0; filter: blur(3px); } }
@keyframes tick { 0% { box-shadow: 0 0 0 0 rgb(var(--lamp) / .5); } 70%, 100% { box-shadow: 0 0 0 10px rgb(var(--lamp) / 0); } }
@keyframes pop { from { translate: 0 -10px; scale: 1.2; color: var(--gold); filter: blur(3px); } }
@keyframes ready { 0%, 100% { box-shadow: inset 0 1px 0 rgb(255 255 255 / .5), 0 12px 26px -12px rgb(var(--lamp) / .6); } 50% { box-shadow: inset 0 1px 0 rgb(255 255 255 / .5), 0 0 0 6px rgb(var(--lamp) / .14), 0 16px 40px -10px rgb(var(--lamp) / .8); } }
@keyframes shake { 0%, 100% { translate: 0 0; } 20% { translate: -9px 0; } 40% { translate: 8px 0; } 60% { translate: -5px 0; } 80% { translate: 3px 0; } }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: -50% 0; } }
@keyframes lit { from { border-color: rgb(var(--lamp) / .6); box-shadow: 0 0 0 4px rgb(var(--lamp) / .12), 0 0 40px rgb(var(--lamp) / .25); } }
@keyframes sweep { from { --sweep: -30%; } to { --sweep: 130%; } }
@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes rise { from { opacity: 0; translate: 0 14px; filter: blur(6px); } }
@keyframes shine { from { background-position: 100% 0; } to { background-position: 0 0; } }
@keyframes flash { from { opacity: 1; } to { opacity: 0; } }
@keyframes slam { 0% { scale: 3.4; opacity: 0; rotate: -20deg; filter: blur(8px); } 62% { scale: .92; opacity: 1; rotate: -5deg; filter: blur(0); } 100% { scale: 1; rotate: -6deg; } }
@keyframes jolt { 0%, 100% { translate: 0 0; } 25% { translate: 0 5px; } 50% { translate: -2px -3px; } 75% { translate: 1px 2px; } }
@keyframes drop { from { opacity: 0; translate: 0 -60px; rotate: -16deg; scale: 1.15; filter: blur(4px); } }
@keyframes deal { from { opacity: 0; translate: 0 26px; rotate: calc(var(--i) * 1.3deg - 4deg); scale: .94; filter: blur(5px); } }
@keyframes lift { to { translate: 0 46px; scale: .78; opacity: .15; filter: blur(3px); } }
@keyframes page-out { to { opacity: 0; translate: -28px 0; filter: blur(6px); } }
@keyframes page-in { from { opacity: 0; translate: 36px 0; filter: blur(6px); } }
@keyframes page-out-back { to { opacity: 0; translate: 28px 0; filter: blur(6px); } }
@keyframes page-in-back { from { opacity: 0; translate: -36px 0; filter: blur(6px); } }
@keyframes fade-out { to { opacity: 0; } }
@keyframes fade-in { from { opacity: 0; } }
