/* END USER v2: the design system. Lab paper is the human side, the dark machine window is where the AIs live.
   Space Grotesk for headlines, Inter to read, JetBrains Mono for machine readouts, one human orange. */
@font-face{font-family:'Space Grotesk';src:url('/fonts/sg-700.woff2') format('woff2');font-weight:700;font-display:swap;unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Space Grotesk';src:url('/fonts/sg-700-ext.woff2') format('woff2');font-weight:700;font-display:swap;unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:'Space Grotesk';src:url('/fonts/sg-500.woff2') format('woff2');font-weight:500;font-display:swap;unicode-range:U+0000-00FF}
@font-face{font-family:'Inter';src:url('/fonts/inter-400.woff2') format('woff2');font-weight:400;font-display:swap;unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Inter';src:url('/fonts/inter-400-ext.woff2') format('woff2');font-weight:400;font-display:swap;unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:'Inter';src:url('/fonts/inter-400-cyr.woff2') format('woff2');font-weight:400;font-display:swap;unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:'Inter';src:url('/fonts/inter-600.woff2') format('woff2');font-weight:600 800;font-display:swap;unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Inter';src:url('/fonts/inter-600-ext.woff2') format('woff2');font-weight:600 800;font-display:swap;unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:'Inter';src:url('/fonts/inter-600-cyr.woff2') format('woff2');font-weight:600 800;font-display:swap;unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:'JetBrains Mono';src:url('/fonts/jbm-500.woff2') format('woff2');font-weight:400 500;font-display:swap}
@font-face{font-family:'JetBrains Mono';src:url('/fonts/jbm-700.woff2') format('woff2');font-weight:600 800;font-display:swap}

:root{
  --paper:#f4f1ea;--card:#fffdf8;--ink:#141414;--ink2:#3d3a35;--dim:#5b5750;--rule:#d9d4c8;
  --human:#ff5a1f;--humantx:#c2410c;--humanbg:#fff1ea;
  --win:#0b0f14;--wincard:#121922;--winline:#2a3440;--wintx:#dfe7ee;--windim:#8fa3b3;--cyan:#6fe3ff;--violet:#9fb4ff;
  --caught:#ff6b5b;--ok:#1f8a57;
  --sys:system-ui,-apple-system,'Segoe UI',Roboto,sans-serif;
  --head:'Space Grotesk',var(--sys);--body:'Inter',var(--sys);--mono:'JetBrains Mono',ui-monospace,Consolas,monospace;
  --r:16px;--ease:cubic-bezier(.2,.8,.2,1);--pop:cubic-bezier(.2,1.4,.4,1);
}
/* scripts the Latin fonts cannot draw use the phone's own font */
html:is([lang=ar],[lang=hi],[lang=ja],[lang=ko],[lang=zh]){--head:var(--sys);--body:var(--sys)}
@media (prefers-color-scheme:dark){:root:not([data-theme=light]){--paper:#070a0e;--card:#0e141b;--ink:#dfe7ee;--ink2:#b6c3ce;--dim:#8fa3b3;--rule:#2a3440;--humantx:#ff8a5c;--humanbg:#26150d}}
:root[data-theme=dark]{--paper:#070a0e;--card:#0e141b;--ink:#dfe7ee;--ink2:#b6c3ce;--dim:#8fa3b3;--rule:#2a3440;--humantx:#ff8a5c;--humanbg:#26150d}

*{box-sizing:border-box}
[hidden]{display:none!important}
html,body{margin:0;background:var(--paper);color:var(--ink);font-family:var(--body);-webkit-text-size-adjust:100%;-webkit-tap-highlight-color:transparent}
body{min-height:100vh;min-height:100dvh}
button,input,textarea,select{font:inherit;color:inherit}
button{cursor:pointer}
a{color:inherit}
.app{max-width:440px;margin:0 auto;padding:16px 16px calc(24px + env(safe-area-inset-bottom));min-height:100dvh;display:flex;flex-direction:column}
@media (min-width:900px) and (min-height:700px){.app{zoom:1.2}}

/* top bar */
.top{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:14px}
.brand{font-family:var(--head);font-weight:700;font-size:22px;letter-spacing:.3px;text-decoration:none}
.brand i{font-style:normal;color:var(--human)}
.top .r{display:flex;align-items:center;gap:8px}
.chip{font-family:var(--mono);font-size:12px;border:1.5px solid var(--ink);border-radius:999px;padding:6px 10px;white-space:nowrap}
.icon{width:44px;height:44px;border:1.5px solid var(--ink);border-radius:12px;background:var(--card);display:grid;place-items:center;padding:0}
.icon svg{width:20px;height:20px}

/* screens */
.screen{display:none;flex:1;flex-direction:column;gap:16px}
.screen.on{display:flex;animation:enter .32s var(--ease)}
@keyframes enter{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}

/* type */
.kicker{font-family:var(--mono);font-size:12px;letter-spacing:.4px;color:var(--dim);text-transform:uppercase}
.h1{font-family:var(--head);font-weight:700;font-size:clamp(30px,9vw,40px);line-height:1.02;letter-spacing:-.5px;margin:0;overflow-wrap:anywhere}
.h1 em,.h2 em{font-style:normal;color:var(--humantx)}
.h2{font-family:var(--head);font-weight:700;font-size:26px;line-height:1.08;letter-spacing:-.3px;margin:0;overflow-wrap:anywhere}
.lead{font-size:15px;line-height:1.45;color:var(--ink2);margin:0}
.mono{font-family:var(--mono)}
.small{font-size:13px;color:var(--dim)}

/* buttons */
.btn{display:flex;align-items:center;justify-content:center;gap:10px;width:100%;min-height:60px;padding:0 18px;border:1.5px solid var(--ink);border-radius:14px;background:var(--human);color:#141414;font-family:var(--head);font-weight:700;font-size:19px;letter-spacing:.3px;box-shadow:4px 4px 0 var(--ink);transition:transform .08s,box-shadow .08s;text-decoration:none}
.btn:active{transform:translate(3px,3px);box-shadow:1px 1px 0 var(--ink)}
.btn:disabled{opacity:.45;cursor:default}
.btn.quiet{min-height:50px;background:transparent;color:var(--ink);box-shadow:none;font-family:var(--body);font-weight:600;font-size:15px;letter-spacing:0}
.btn.dark{background:var(--ink);color:var(--paper)}
.link{background:none;border:0;padding:6px;font-weight:600;font-size:15px;text-decoration:underline;text-underline-offset:3px}

/* the machine window */
.win{background:var(--win);color:var(--wintx);border-radius:20px;padding:16px;box-shadow:0 0 0 1.5px var(--ink);position:relative;overflow:hidden}
.win .lab{font-family:var(--mono);font-size:11px;letter-spacing:.4px;color:var(--cyan);text-transform:uppercase}
.win .big{font-family:var(--mono);font-weight:700;font-size:clamp(17px,5.2vw,21px);white-space:nowrap}
.win .txt{font-size:13px;color:var(--windim);line-height:1.4}
.scan::after{content:'';position:absolute;left:0;right:0;height:2px;top:0;background:linear-gradient(90deg,transparent,var(--cyan),transparent);opacity:.5;animation:scanv 3.2s linear infinite}
@keyframes scanv{to{top:100%}}

/* home */
.watch{display:flex;gap:14px;align-items:center}
.watch .face{width:112px;height:112px;flex:none}
.watch .info{display:flex;flex-direction:column;gap:6px;min-width:0}
.battle{display:flex;flex-direction:column;gap:6px}
.battle .row{display:flex;justify-content:space-between;font-family:var(--mono);font-size:11px;color:var(--dim)}
.bar{display:flex;height:12px;border-radius:999px;overflow:hidden;border:1.5px solid var(--ink)}
.bar .h{background:var(--human);transition:width 1s var(--ease)}
.bar .m{flex:1;background:var(--win)}
.battle .say{font-size:14px}
.battle .say b{color:var(--humantx)}

/* the face */
.face .box{stroke:var(--cyan);stroke-width:2.2;fill:none;transition:stroke .3s}
.face .head{stroke:var(--wintx);stroke-width:1.5;fill:none}
.face .pt{fill:var(--cyan)}
.face .mesh{stroke:var(--cyan);stroke-opacity:.45;stroke-width:.8}
.face.lost .box{stroke:var(--human);animation:lose .5s steps(2) 3}
@keyframes lose{50%{opacity:.2;transform:translate(3px,-2px)}}

/* modal + toast */
.sheet{position:fixed;inset:0;background:rgba(10,12,15,.5);display:none;align-items:flex-end;justify-content:center;z-index:20;padding:12px}
.sheet.on{display:flex;animation:enter .25s var(--ease)}
.sheet .panel{background:var(--card);border:1.5px solid var(--ink);border-radius:22px;max-width:440px;width:100%;max-height:88dvh;overflow:auto;padding:18px;display:flex;flex-direction:column;gap:10px}
@media (min-width:600px){.sheet{align-items:center}}
.toast{position:fixed;left:50%;bottom:calc(24px + env(safe-area-inset-bottom));transform:translateX(-50%);background:var(--ink);color:var(--paper);font-family:var(--mono);font-size:12px;padding:10px 14px;border-radius:12px;opacity:0;transition:opacity .2s;z-index:40;pointer-events:none;max-width:90vw}
.toast.on{opacity:1}

.foot{margin-top:auto;padding-top:22px;display:flex;flex-wrap:wrap;gap:4px 12px;justify-content:center;font-size:12px;color:var(--dim)}
.foot a,.foot button{color:var(--dim);background:none;border:0;padding:2px;font-size:12px;text-decoration:underline}

@media (prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important}}
html.calm *,html.calm *::before,html.calm *::after{animation:none!important;transition:none!important}

/* play */
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
.meta{display:flex;justify-content:space-between;font-family:var(--mono);font-size:12px;color:var(--dim)}
.win.lock{display:flex;flex-direction:column;gap:4px;padding:12px 14px}
.win .mach{font-family:var(--mono);font-size:13px;color:var(--wintx)}
.win .mach b{color:var(--human)}
.clock{height:8px;border-radius:999px;background:var(--rule);overflow:hidden}
.clock i{display:block;height:100%;background:var(--ink);transform-origin:left;will-change:transform}
[dir=rtl] .clock i{transform-origin:right}
.clock.low i{background:var(--human)}
.answer{display:flex;flex-direction:column;gap:12px}
.answer input{width:100%;font-family:var(--head);font-weight:700;font-size:26px;padding:14px 16px;border:1.5px solid var(--ink);border-radius:14px;background:var(--card);color:var(--humantx);outline:none}
.answer input:focus{box-shadow:0 0 0 4px var(--humanbg)}
.answer input::placeholder{color:var(--dim);opacity:.6;font-weight:500}

/* reveal */
.said{display:flex;justify-content:space-between;align-items:baseline;gap:10px;border:1.5px solid var(--human);background:var(--humanbg);border-radius:14px;padding:12px 14px}
.said b{font-family:var(--head);font-size:24px;color:var(--humantx);text-align:end;overflow-wrap:anywhere}
.said b.miss{color:var(--dim)}
.mapwin{padding:12px}
.map svg{width:100%;height:auto;display:block}
.map .star{fill:var(--wintx);opacity:.55}
.map .zl{font-family:var(--mono);font-size:9px;fill:var(--windim);letter-spacing:.4px}
.map .zone circle{transition:opacity .4s}
.map .leg.hit text{fill:var(--caught)}.map .leg.hit circle{fill:var(--caught)}
.map .zone{opacity:.8}.map .zone.hit{opacity:1}
.verdict{display:flex;gap:12px;align-items:center}
.face.mini{width:64px;height:64px;flex:none;background:var(--win);border-radius:14px;padding:4px}
.h2.v-win{color:var(--humantx)}.h2.v-lose{color:var(--caught)}
.machines{display:grid;grid-template-columns:1fr 1fr;gap:6px}
.mrow{display:flex;flex-direction:column;gap:2px;border:1.5px solid var(--rule);border-radius:12px;padding:8px 10px;animation:enter .25s var(--ease)}
.mrow .mn{font-family:var(--mono);font-size:11px;color:var(--dim)}
.mrow .ma{font-size:13px;font-weight:600}
.mrow.caught{border-color:var(--caught)}.mrow.caught .ma{color:var(--caught)}
.mrow.missed{border-color:var(--human)}.mrow.missed .ma{color:var(--humantx)}
#s-r .btn{margin-top:4px}

/* result */
.printwin{display:flex;flex-direction:column;gap:10px}
.printwin .row{display:flex;justify-content:space-between}
.printwin .dimlab{color:var(--windim)}
.print svg{width:100%;height:auto;display:block}
.big2{font-family:var(--head);font-weight:700;font-size:24px;line-height:1.1}
.stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.stats div{border:1.5px solid var(--ink);border-radius:12px;padding:10px;background:var(--card)}
.stats b{display:block;font-family:var(--head);font-size:26px;color:var(--humantx)}
.stats span{font-size:12px;color:var(--dim)}
.face-end{width:96px;height:96px;margin:0 auto;background:var(--win);border-radius:18px;padding:6px}

/* ---- ANIMATIONS (v2): 1 detection, 2 prediction, 3 escape, 4 identity ---- */
/* 1 DETECTION: the box snaps in from wide, then the tracking points light up one by one */
.face.detect .box{animation:snapbox .65s var(--pop) both;transform-box:fill-box;transform-origin:center}
.face.detect .pt{animation:ptin .25s ease both;animation-delay:calc(.7s + var(--i) * 70ms)}
.face.detect .mesh{animation:ptin .4s ease both;animation-delay:1.25s}
@keyframes snapbox{0%{transform:scale(1.5);opacity:0}60%{opacity:1}80%{transform:scale(.96)}100%{transform:scale(1)}}
@keyframes ptin{from{opacity:0}to{opacity:1}}
.face .lostt{font-family:var(--mono);font-size:8px;fill:var(--human);letter-spacing:.6px}
/* 2 PREDICTION: zones start dark and light up in turn */
.map .zone{transition:opacity .35s ease}.map .zone.off{opacity:0}
/* 3 ESCAPE: the box glitches off the face and the screen flashes human orange; a capture locks the box red */
.face.lost .box{stroke:var(--human);animation:lose .5s steps(2) 3}
.face.locked .box{stroke:var(--caught);animation:lockon .35s var(--pop)}
.face.locked .pt{fill:var(--caught)}
.face.slip .box{animation:slipbox .5s ease}
@keyframes lockon{0%{transform:scale(1.25)}100%{transform:scale(1)}}
@keyframes slipbox{0%,100%{transform:none}30%{transform:translate(4px,-3px)}60%{transform:translate(-2px,1px)}}
.face .box{transform-box:fill-box;transform-origin:center}
#s-r.fx-lost::before,#s-r.fx-locked::before{content:'';position:fixed;inset:0;pointer-events:none;z-index:30;animation:flash .7s ease forwards}
#s-r.fx-lost::before{background:radial-gradient(80% 60% at 50% 40%,rgba(255,90,31,.35),transparent 70%)}
#s-r.fx-locked::before{background:radial-gradient(80% 60% at 50% 40%,rgba(255,107,91,.22),transparent 70%)}
@keyframes flash{from{opacity:1}to{opacity:0}}
/* 4 IDENTITY: the mind print draws itself strand by strand, then the ends and names appear */
.print.drawing .strand path{stroke-dashoffset:1;animation:draw 1.1s cubic-bezier(.4,0,.2,1) forwards;animation-delay:calc(var(--i) * .32s)}
.print.drawing .strand path:not([stroke-dasharray]){stroke-dasharray:1}
.print.drawing .end,.print.drawing .plab{opacity:0;animation:ptin .4s ease forwards;animation-delay:calc(var(--i) * .32s + .95s)}
@keyframes draw{to{stroke-dashoffset:0}}
.print .plab{font-family:var(--mono);font-size:10px;fill:var(--wintx)}

/* menu */
.sheethead{display:flex;justify-content:space-between;align-items:center}
.mi{display:block;text-align:start;width:100%;padding:14px;border:1.5px solid var(--ink);border-radius:14px;background:var(--card);font-weight:600;font-size:16px;text-decoration:none}
.set{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:8px 0;border-bottom:1px solid var(--rule)}
.set span{font-weight:600;display:flex;flex-direction:column}.set small{font-weight:400;font-size:12px;color:var(--dim)}
.tog{width:52px;height:30px;border-radius:999px;border:1.5px solid var(--ink);background:var(--rule);position:relative;padding:0;flex:none}
.tog i{position:absolute;top:3px;left:3px;width:21px;height:21px;border-radius:50%;background:var(--card);border:1.5px solid var(--ink);transition:left .2s var(--ease)}
.tog.on{background:var(--human)}.tog.on i{left:24px}
.seg{display:flex;border:1.5px solid var(--ink);border-radius:12px;overflow:hidden}
.seg button{border:0;background:transparent;padding:8px 10px;font-size:13px;font-weight:600}
.seg button.on{background:var(--ink);color:var(--paper)}
.set select{font-size:15px;padding:8px;border:1.5px solid var(--ink);border-radius:10px;background:var(--card)}
.panel textarea{width:100%;min-height:90px;padding:12px;border:1.5px solid var(--ink);border-radius:14px;background:var(--paper);resize:vertical}
.howl{margin:0;padding-inline-start:20px;display:flex;flex-direction:column;gap:10px;line-height:1.45}

/* challenge + result extras */
.duelbox{display:flex;flex-direction:column;gap:2px;border:1.5px dashed var(--human);border-radius:14px;padding:12px 14px;background:var(--humanbg)}
.duelbox b{font-family:var(--head);font-size:18px}.duelbox span{font-size:14px;color:var(--ink2)}
.duelbox.won{border-style:solid}
.row2{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.row2 .btn{border:1.5px solid var(--ink)}
.curve svg{width:100%;height:auto;display:block}
.curve .area{fill:var(--rule)}.curve .line{fill:none;stroke:var(--ink);stroke-width:1.5}
.center{text-align:center}

/* pages (record, humanity, how) */
.page{gap:14px}
.recs{display:flex;flex-direction:column;gap:10px}
.rec{border:1.5px solid var(--ink);border-radius:16px;padding:14px;background:var(--card);display:flex;flex-direction:column;gap:8px}
.rec .rh{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.rec .rh b{font-family:var(--head);font-size:18px}
.rec .tag{margin-inline-start:auto;font-family:var(--mono);font-size:11px;padding:4px 8px;border-radius:999px;border:1.5px solid var(--ink)}
.rec .tag.live{background:var(--human);color:#141414}.rec .tag.locked{background:var(--win);color:var(--cyan);border-color:var(--win)}
.fp{font-size:11px;word-break:break-all;background:var(--win);color:var(--cyan);padding:10px;border-radius:10px}
.recbtns{display:grid;grid-template-columns:1fr 1fr;gap:8px}.recbtns .btn{border:1.5px solid var(--ink);min-height:44px;font-size:14px}
.vres.ok{color:var(--ok)}.vres.bad{color:var(--caught)}
details.how{border-top:1px solid var(--rule);padding-top:10px}details.how summary{font-weight:600;cursor:pointer}
code{font-family:var(--mono);font-size:.9em;background:var(--rule);padding:1px 5px;border-radius:5px}

/* profile */
.me-top{display:flex;gap:14px;align-items:center}
.me-face{width:108px;height:108px;flex:none;background:var(--win);border-radius:20px;padding:6px}
.lab2{font-family:var(--mono);font-size:11px;color:var(--dim);letter-spacing:.4px}
.stats.six{grid-template-columns:repeat(3,minmax(0,1fr))}
.logcal{display:grid;grid-template-columns:repeat(7,1fr);gap:5px}
.lg{display:inline-block;aspect-ratio:1;border-radius:5px;background:var(--rule)}
.lg.main{background:var(--human)}.lg.side{background:#ffb08f}.lg.npc{background:var(--win)}
.legend{display:flex;align-items:center;gap:6px;flex-wrap:wrap}.legend .lg{width:12px}
.traits{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.trait{display:flex;flex-direction:column;align-items:center;gap:4px;padding:10px;border:1.5px solid var(--ink);border-radius:14px;background:var(--card);text-align:center}
.trait .face{width:64px;height:64px;background:var(--win);border-radius:12px;padding:3px}
.trait small{font-size:11px;color:var(--dim)}.trait.on{border-color:var(--human);background:var(--humanbg)}
.trait.locked{opacity:.45;cursor:default}
.face .tr{fill:none;stroke:var(--human);stroke-width:1.6;opacity:.9}.face .tr.split circle{stroke:var(--violet)}
.face .trf{fill:var(--human)}
.synccode{font-size:30px;font-weight:700;letter-spacing:4px;text-align:center;padding:12px;border:1.5px dashed var(--ink);border-radius:14px}
.syncform{display:flex;flex-direction:column;gap:8px}.syncform input{font-family:var(--mono);font-size:24px;letter-spacing:3px;text-align:center;padding:12px;border:1.5px solid var(--ink);border-radius:14px;background:var(--card);text-transform:uppercase}

/* money */
.mi.hot{border-color:var(--human);background:var(--humanbg)}
.panel.pass .perks{margin:0;padding-inline-start:20px;display:flex;flex-direction:column;gap:6px;line-height:1.4}
.panel.pass details summary{cursor:pointer;font-weight:600;font-size:14px}
.packs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.pack{display:flex;flex-direction:column;align-items:flex-start;gap:6px;padding:14px;border:1.5px solid var(--ink);border-radius:14px;background:var(--card);text-align:start}
.pack span{font-size:24px}.pack b{font-family:var(--head);font-size:17px}
.days{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.day{padding:12px;border:1.5px solid var(--ink);border-radius:12px;background:var(--card);font-family:var(--mono);font-size:14px}
.grow{display:grid;grid-template-columns:1fr 1fr;gap:8px}.grow .btn{border:1.5px solid var(--ink)}.grow p{grid-column:1/-1;margin:0}
.btn.keep{border:1.5px solid var(--ink)}
.face .aur path{stroke:var(--cyan)}

.row3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.row3 .btn{border:1.5px solid var(--ink);font-size:14px;padding:0 6px}

.aotd{display:flex;flex-direction:column;gap:2px;border-top:1px solid var(--rule);padding-top:12px}.aotd .lab3{font-family:var(--mono);font-size:11px;color:var(--dim);letter-spacing:.4px}.aotd b{font-family:var(--head);font-size:24px;color:var(--humantx)}.aotd span{font-size:13px;color:var(--ink2)}

/* board */
.tabs{align-self:flex-start}
.board{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:4px}
.board li{display:grid;grid-template-columns:36px 1fr auto 56px;gap:8px;align-items:center;padding:10px 12px;border:1.5px solid var(--rule);border-radius:12px;background:var(--card)}
.board li.me{border-color:var(--human);background:var(--humanbg)}
.board .rk{font-family:var(--mono);color:var(--dim)}.board .nm{font-family:var(--mono);font-size:14px}.board .dy{font-size:12px;color:var(--dim)}
.board b{font-family:var(--head);font-size:18px;text-align:end}.board .pz{font-style:normal;color:var(--human)}
.lg-head{display:flex;gap:10px;align-items:baseline;flex-wrap:wrap;margin-top:6px}.lg-head b{font-family:var(--head);font-size:18px}

/* party */
.chips{display:flex;flex-wrap:wrap;gap:6px}
.chip2{padding:8px 12px;border:1.5px solid var(--ink);border-radius:999px;background:var(--card);font-size:14px;font-weight:600}
.chip2.on{background:var(--ink);color:var(--paper)}
.pcode{font-size:56px;font-weight:700;letter-spacing:8px;text-align:center;padding:8px 0}
.plist li{grid-template-columns:30px 1fr auto 48px}
.field{width:100%;font-size:18px;padding:12px 14px;border:1.5px solid var(--ink);border-radius:12px;background:var(--card)}
.perks{margin:0;padding-inline-start:20px;display:flex;flex-direction:column;gap:6px;line-height:1.4}

.aotd.drift{border:1.5px solid var(--ink);border-radius:16px;padding:14px;background:var(--win);color:var(--wintx)}.aotd.drift .lab3{color:var(--cyan)}.aotd.drift b{color:var(--wintx);font-size:20px}.aotd.drift span{color:var(--windim)}.aotd.drift .btn{color:var(--wintx);border:1.5px solid var(--wintx);margin-top:8px}
.spass{display:flex;flex-direction:column;gap:8px;border:1.5px solid var(--human);border-radius:16px;padding:14px;background:var(--humanbg)}.spass b{font-family:var(--head);font-size:20px}

.votes{display:grid;grid-template-columns:1fr 1fr;gap:8px}.votes .btn{border:1.5px solid var(--ink);font-family:var(--mono);font-size:14px}

/* streamer mode */
html.live .h1,html.live #qPrompt{font-size:clamp(40px,11vw,58px)}
html.live #qHint{font-family:var(--head);font-size:26px;color:var(--humantx)}
html.live .foot,html.live #eRecruit,html.live .stats,html.live #eBoard,html.live #bSave{display:none!important}
html.live .map .zl{font-size:12px}html.live .mrow .ma{font-size:16px}

/* brand + living home */
.brand{display:inline-flex;align-items:center;gap:10px}
.brand .mark{width:34px;height:34px;flex:none}
.brand .mark .dot{animation:dotout 3.6s var(--ease) infinite;transform-origin:50px 14px}
.brand .mark .trail{animation:trail 3.6s var(--ease) infinite}
@keyframes dotout{0%{transform:translate(-14px,14px) scale(.6);opacity:0}25%{transform:none;opacity:1}100%{transform:none;opacity:1}}
@keyframes trail{0%,10%{opacity:0}30%{opacity:1}100%{opacity:1}}
.brand i{font-style:normal;color:var(--human);animation:cursor 1.1s steps(2) infinite}
@keyframes cursor{50%{opacity:0}}
.watch{position:relative;min-height:230px;isolation:isolate;align-items:center;padding:20px}
.watch .face{width:132px;height:132px}
.watch>*:not(.livecv){position:relative;z-index:1}
.livecv{position:absolute;inset:0;width:100%;height:100%;z-index:0;border-radius:inherit}
.win .big.dip{color:var(--human)}
#battleHumans.pulse{animation:pulse .9s var(--ease)}
@keyframes pulse{0%{color:var(--human);transform:scale(1.12)}100%{color:inherit;transform:none}}

.watch .big{font-size:clamp(14px,4.4vw,20px)}.watch .info{min-width:0;flex:1}

/* reveal as mockup B2 */
.maphead{display:flex;justify-content:space-between;margin-bottom:6px}
.map .cl{font-family:var(--mono);font-size:9.5px;fill:var(--cyan);letter-spacing:.3px}
.map .mc.hit .cl{fill:var(--caught)}.map .ct{fill:var(--windim)}.map .mc.hit .ct{fill:var(--caught)}
.map .beam{stroke:var(--cyan);stroke-opacity:.28;stroke-width:1}
.map .mc.hit .beam{stroke:var(--caught);stroke-opacity:.6}
.map .mc{transition:opacity .35s}.map .mc.off{opacity:0}
.map .beam{opacity:0;transition:opacity .4s}.map.landed .beam{opacity:1}
.map .tl{font-family:var(--mono);font-size:8.5px;fill:var(--wintx);opacity:.8}
.vcard{display:flex;gap:14px;align-items:center;border:1.5px solid var(--ink);border-radius:16px;padding:14px;background:var(--card);box-shadow:4px 4px 0 var(--ink)}
.vface{width:76px;height:76px;flex:none;background:var(--win);border-radius:14px;padding:4px}
.vtext{display:flex;flex-direction:column;gap:4px;min-width:0}
.conf{font-size:12px;color:var(--dim)}.conf b{color:var(--humantx)}
.ptsrow{display:flex;justify-content:space-between;font-size:12px;color:var(--dim);border-top:1px dashed var(--rule);padding-top:10px}.ptsrow b{color:var(--ink);font-size:14px}

.battlecard{display:flex;flex-direction:column;gap:6px;border:1.5px solid var(--ink);border-radius:16px;padding:12px 14px;background:var(--card)}.battlecard .lab3{font-size:11px;color:var(--dim)}.battlecard b{color:var(--humantx)}
.clipbtn{border:1.5px solid var(--ink)}

/* content pages */
.prose{gap:14px}.prose .h2{margin-top:10px}.prose a:not(.btn){text-decoration:underline;text-underline-offset:3px}
.page-play{min-height:40px;width:auto;font-size:14px;padding:0 16px;box-shadow:3px 3px 0 var(--ink)}
.hx{display:flex;flex-direction:column;gap:12px}.hxwin{display:flex;flex-direction:column;gap:4px}.hxbig{font-family:var(--head);font-weight:700;font-size:64px;color:#ff8a5c;line-height:1}
.days .day{text-decoration:none;text-align:center}.days .day.on{background:var(--ink);color:var(--paper)}
.hxp{border-top:1px solid var(--rule);padding-top:8px;display:flex;flex-direction:column;gap:4px}

.lockstamp{font-family:var(--mono);font-size:10px;color:var(--cyan);text-decoration:underline;text-underline-offset:3px}
.rate{display:flex;flex-direction:column;gap:8px;align-items:center;font-family:var(--mono);font-size:12px;color:var(--dim)}.rate div{display:flex;gap:6px}.rate button[data-r]{width:44px;height:40px;border:1.5px solid var(--ink);border-radius:10px;background:var(--card);font-family:var(--head);font-size:16px}.rate textarea{width:100%;padding:10px;border:1.5px solid var(--ink);border-radius:12px;background:var(--card)}
.set input[type=checkbox]{width:22px;height:22px}

/* presences */
.glyphs{display:flex;gap:14px;margin:6px 0}.glyphs span{display:flex;flex-direction:column;align-items:center;gap:2px}.glyphs i{font-style:normal;font-family:var(--mono);font-size:9px;color:var(--windim)}
.glyph{width:34px;height:34px}
.g-breathe{animation:gbreathe 2.6s ease-in-out infinite;transform-origin:20px 20px}@keyframes gbreathe{50%{transform:scale(1.25);opacity:.6}}
.g-scan{animation:gscan 2.2s ease-in-out infinite}@keyframes gscan{0%,100%{transform:translateX(-7px)}50%{transform:translateX(7px)}}
.g-twin{animation:gtwin 1.6s ease-in-out infinite}.g-twin.b{animation-delay:-.8s}@keyframes gtwin{50%{opacity:.25}}
.g-sonar{animation:gsonar 3s ease-out infinite;transform-origin:20px 20px}.g-sonar.late{animation-delay:-1.5s}@keyframes gsonar{0%{transform:scale(.5);opacity:1}100%{transform:scale(2.6);opacity:0}}
.react{display:flex;gap:8px;align-items:center;justify-content:center;font-size:13px;color:var(--dim)}.react button{border:1.5px solid var(--ink);border-radius:999px;background:var(--card);padding:6px 12px;font-size:13px}
#mGrow:empty{display:none}

/* ---- DESKTOP (900px and wider): a real wide layout, not a phone column in the middle of the screen ---- */
@media (min-width:900px){
  .app{zoom:1;max-width:1120px;padding:28px 40px 40px}
  .top{margin-bottom:28px}
  .brand{font-size:26px}.brand .mark{width:42px;height:42px}
  .screen{max-width:620px;width:100%;margin:0 auto}
  /* home: words and the play button on the left, the living machine window large on the right */
  #s-home.on{max-width:none;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.05fr);column-gap:48px;row-gap:18px;align-content:start;align-items:start}
  #s-home > *{grid-column:1}
  #s-home .watch{grid-column:2;grid-row:1 / span 20;min-height:520px;flex-direction:column;justify-content:center;gap:22px;padding:36px;align-self:stretch}
  #s-home .watch .face{width:220px;height:220px}
  #s-home .watch .info{flex:none;align-items:center;text-align:center}
  #s-home .watch .big{font-size:30px}
  #s-home .h1{font-size:54px;line-height:1.02}
  #s-home .lead{font-size:19px;max-width:30em}
  #s-home .btn{max-width:420px}#s-home .battle{max-width:420px}
  #s-home .link{justify-self:start}
  /* reveal: the map on the left, the verdict on the right */
  #s-r.on{max-width:none;display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);column-gap:36px;row-gap:14px;align-content:start}
  #s-r > *{grid-column:2}
  #s-r .meta{grid-column:1 / -1}
  #s-r .mapwin{grid-column:1;grid-row:2 / span 12}
  /* result: the story on the left, the mind print on the right */
  #s-end.on{max-width:none;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);column-gap:44px;row-gap:14px;align-content:start}
  #s-end > *{grid-column:1}
  #s-end .printwin{grid-column:2;grid-row:1 / span 24;align-self:start}
  #s-end .h1{font-size:56px}
  #s-q .h1{font-size:56px}
  .page.prose{max-width:720px}
  .foot{margin-top:40px}
}

.hxp .ok{color:var(--ok);font-weight:600}

.aotd.featured a{font-weight:600;font-size:15px;text-underline-offset:3px}

/* ==== THE WORLD (Nov 30): one searched night sky behind the whole game. Night is the default look; the paper look
   stays as the Light theme in Settings (the sky is hidden there). ==== */
:root{--paper:#070a0e;--card:#0e151d;--ink:#e6edf3;--ink2:#b6c3ce;--dim:#8fa3b3;--rule:#26313d;--humantx:#ff8a5c;--humanbg:#26150d}
:root[data-theme=light]{--paper:#f4f1ea;--card:#fffdf8;--ink:#141414;--ink2:#3d3a35;--dim:#5b5750;--rule:#d9d4c8;--humantx:#c2410c;--humanbg:#fff1ea}
html{background:#04060a}body{background:transparent}
:root[data-theme=light] html,:root[data-theme=light] body{background:var(--paper)}
.worldcv{position:fixed;inset:0;width:100vw;height:100vh;height:100dvh;z-index:0;pointer-events:none}
:root[data-theme=light] html{background:var(--paper)}
.app{position:relative;z-index:1}
.btn{color:#141414;border-color:#141414;box-shadow:4px 4px 0 rgba(0,0,0,.55)}
.btn.quiet,.btn.dark{color:var(--ink);border-color:var(--ink)}.btn.dark{background:rgba(230,237,243,.1)}
.card,.vcard,.stats div,.rec,.mi,.board li,.pack,.day,.trait,.battlecard,.sheet .panel{background:rgba(14,21,29,.86);backdrop-filter:blur(6px)}
:root[data-theme=light] .card,:root[data-theme=light] .vcard,:root[data-theme=light] .stats div,:root[data-theme=light] .rec,:root[data-theme=light] .mi,:root[data-theme=light] .board li,:root[data-theme=light] .pack,:root[data-theme=light] .day,:root[data-theme=light] .trait,:root[data-theme=light] .battlecard,:root[data-theme=light] .sheet .panel{background:var(--card);backdrop-filter:none}
.vcard{box-shadow:none}
.win{background:rgba(11,15,20,.72);box-shadow:0 0 0 1px var(--rule)}
/* the stage: the prompt and your answer sit right on the sky */
.stage{display:flex;flex-direction:column;gap:14px;align-items:center;text-align:center;padding:8px 0 4px}
.stage .meta{width:100%}
.stage .lab{font-family:var(--mono);font-size:12px;letter-spacing:.5px;color:var(--cyan);text-transform:uppercase}
.stage .h1{font-size:clamp(34px,10vw,56px);text-shadow:0 2px 24px rgba(0,0,0,.8)}
.stage .mach{font-family:var(--mono);font-size:13px;color:var(--ink2)}.stage .mach b{color:var(--human)}
.stage .clock{width:100%;max-width:520px;background:rgba(230,237,243,.15)}.stage .clock i{background:var(--ink)}
.stage .answer{width:100%;max-width:520px}
.stage .answer input{background:rgba(4,6,10,.75);border:1.5px solid var(--ink);color:#ff8a5c;text-align:center;font-size:28px;padding:16px}
.stage .answer input:focus{box-shadow:0 0 0 4px rgba(255,90,31,.25);border-color:var(--human)}
.stage .glyphs{justify-content:center;gap:18px}.stage .glyphs span{cursor:pointer}
.stage #qHint{min-height:1.2em;color:var(--ink2)}
/* home = the stage with the rest of the home page under it */
#notices{display:none;flex-direction:column;gap:8px;margin-bottom:12px}.app.at-home #notices{display:flex}
.app.at-home #s-q{order:1;flex:none;min-height:62dvh;justify-content:center}
.app.at-home #s-home{order:2;flex:none}.app.at-home .foot{order:3}
#s-home.under .homehead,#s-home.under > .lead,#s-home.under #bPlay{display:none}
#s-home.under{padding-bottom:120px}
.app{padding-bottom:140px}
@media (min-width:900px){
  #s-home.on{display:flex;max-width:620px}
  #s-q{max-width:820px}.stage .h1{font-size:68px}
  .app.at-home #s-home.under{max-width:980px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;align-items:start}
  .app.at-home #s-home.under > *{grid-column:auto}
}
/* home tiles: everything the game has, one tap from the home page */
.tiles{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.tile{display:flex;flex-direction:column;gap:4px;text-align:left;padding:14px;border-radius:14px;border:1px solid var(--rule);background:rgba(14,21,29,.86);color:var(--ink);backdrop-filter:blur(6px);cursor:pointer;transition:transform .12s,border-color .12s}
.tile:hover,.tile:focus-visible{border-color:var(--cyan);transform:translateY(-2px)}
.tile b{font-family:var(--mono);font-size:12px;letter-spacing:.5px;color:var(--cyan)}.tile span{font-size:13px;color:var(--ink2)}
:root[data-theme=light] .tile{background:var(--card);backdrop-filter:none}
/* the scene steps back on every screen but home, and the footer sits down in the land */
.worldcv{transition:opacity .5s}body:has(.app:not(.at-home)) .worldcv{opacity:.45}
.app{padding-bottom:calc(14px + env(safe-area-inset-bottom))}
.app.at-home #s-home.under{padding-bottom:150px}
.app.at-home #s-q{min-height:calc(100dvh - 300px)}
.foot{margin-top:auto}
@media (min-width:900px){
  .foot{margin-top:auto}
  .app.at-home #s-home.under{display:flex;flex-direction:column;max-width:820px;margin:0 auto;width:100%}
  .tiles{grid-template-columns:repeat(3,1fr)}
}
/* home fills the first screen: the prompt in the sky, the towers and the human below it, the rest one scroll down */
.app.at-home #s-q{min-height:calc(100dvh - 96px);justify-content:center;padding-bottom:max(150px,17dvh);position:relative}
.morehint{display:none;position:absolute;left:50%;bottom:6px;transform:translateX(-50%);background:none;border:0;color:var(--dim);font-family:var(--mono);font-size:11px;letter-spacing:.5px;white-space:nowrap;cursor:pointer;padding:8px}
.app.at-home .morehint{display:block}.morehint:hover{color:var(--cyan)}
.app.at-home #s-home.under{padding:24px 0 40px}
html.world-fx .worldcv{opacity:1!important}
/* the countdown: a bar you can read as a number */
.clockrow{display:flex;align-items:center;gap:12px;width:100%;max-width:520px}.clockrow .clock{flex:1}
.secs{font-family:var(--mono);font-size:22px;font-weight:700;min-width:2.2ch;text-align:right;color:var(--ink);font-variant-numeric:tabular-nums}
.secs.low{color:var(--human);animation:secspulse 1s steps(2) infinite}
@keyframes secspulse{50%{opacity:.55}}
@media (prefers-reduced-motion:reduce){.secs.low{animation:none}}
/* desktop: the question, box and button a little bigger */
@media (min-width:900px){.stage .h1{font-size:76px}.stage .answer,.clockrow{max-width:600px}.stage .answer input{font-size:32px;padding:18px}}
/* the scene stays at full strength while you answer (the beams swing toward you as you type) */
body:has(#s-q.on) .worldcv{opacity:1}
/* ==== CLEAN PHONE PLAY (Nov 30, from Kyle's phone vs Krillion): a top strip, one thing in the middle, the land kept clear ==== */
.meta #qRound,.meta #rRound{display:flex;flex-direction:column;gap:5px}
.dots{display:flex;gap:5px}
.dots i{display:block;width:16px;height:16px;border-radius:4px;border:1.5px solid var(--dim);background:transparent}
.dots i.now{border-color:var(--human);box-shadow:0 0 0 2px rgba(255,90,31,.25)}
.dots i.w{background:#ff5a1f;border-color:#ff5a1f}.dots i.p{background:#ffb08f;border-color:#ffb08f}.dots i.l{background:#0b0f14;border-color:var(--ink2)}.dots i.x{background:#3b4753;border-color:#3b4753}
.dl{font-family:var(--mono);font-size:10px;letter-spacing:1px;color:var(--dim);text-transform:uppercase}
.stage .meta{align-items:flex-start}
@media (max-width:600px){
  body:has(#s-q.on) #chipDay{display:none}
  #s-q #lockStamp{display:none}
  #s-q #qHint:empty{display:none}
  .stage{gap:12px;padding-top:0}
  .stage .glyphs{gap:14px}.stage .glyphs svg{width:30px;height:30px}.stage .glyphs i{font-size:9px}
  .stage .h1{font-size:clamp(32px,9.5vw,44px);line-height:1.05}
  .stage .lab{font-size:11px}
  .stage .answer input{font-size:24px;padding:13px}
  .stage .btn{padding:15px}
  /* the land (towers + human) owns the bottom ~140px of the screen; play never sits on it */
  #s-q{padding-bottom:150px}
  .app.at-home #s-q{min-height:calc(100dvh - 70px);justify-content:flex-start;padding-top:6px;padding-bottom:150px}
}
/* form controls readable in the night look (Kyle's phone: the language box was dark text on dark) */
.set select{color:var(--ink);background:var(--card);color-scheme:dark;min-width:150px}
:root[data-theme=light] .set select{color-scheme:light}
select option{background:#0e151d;color:#e6edf3}
:root[data-theme=light] select option{background:#fffdf8;color:#141414}
.panel textarea,.syncform input{color:var(--ink)}
/* first move (Nov 29): a plain instruction above the box, the box pulses, the 25 s number hides until they start */
.stage.cta #qHint{order:0;font-family:var(--head,inherit);font-weight:700;font-size:17px;color:var(--humantx);letter-spacing:0;text-transform:none;min-height:0}
.stage.cta .answer input{animation:ctapulse 1.6s ease-in-out infinite;border-color:var(--human)}
@keyframes ctapulse{0%,100%{box-shadow:0 0 0 0 rgba(255,90,31,.55)}50%{box-shadow:0 0 0 9px rgba(255,90,31,0)}}
.stage.cta .secs{visibility:hidden}
@media (prefers-reduced-motion:reduce){.stage.cta .answer input{animation:none;box-shadow:0 0 0 3px rgba(255,90,31,.5)}}
/* ==== DAY (Nov 29, the default): the world drawn in ink on paper. Black, white and one orange outside the dark panels;
   the dark panels (faces, map, record) stay as little screens on the paper. ==== */
:root[data-theme=light]{--cyan:#3d3a35}
:root[data-theme=light] .win,:root[data-theme=light] .aotd.drift,:root[data-theme=light] .fp{--cyan:#6fe3ff}
:root[data-theme=light] .stage .h1{text-shadow:none;color:var(--ink)}
:root[data-theme=light] .stage .lab{color:var(--ink2)}
:root[data-theme=light] .stage .answer input{background:rgba(255,253,248,.92);border-color:var(--ink);color:var(--humantx)}
:root[data-theme=light] .stage .clock{background:rgba(20,20,20,.12)}
:root[data-theme=light] .tile:hover,:root[data-theme=light] .tile:focus-visible{border-color:var(--ink)}
:root[data-theme=light] .card,:root[data-theme=light] .tile{background:rgba(255,253,248,.94)}
:root[data-theme=light] body:has(.app:not(.at-home)) .worldcv{opacity:.35}
.glyph.g-gpt{color:#6fe3ff}.glyph.g-claude{color:#9fb4ff}.glyph.g-gemini{color:#7dd3c0}.glyph.g-deepseek{color:#d0a6ff}
:root[data-theme=light] .glyph.g-gpt{color:#1d4ed8}:root[data-theme=light] .glyph.g-claude{color:#6d28d9}:root[data-theme=light] .glyph.g-gemini{color:#047857}:root[data-theme=light] .glyph.g-deepseek{color:#0e7490}
:root[data-theme=light] .win .glyph.g-gpt{color:#6fe3ff}:root[data-theme=light] .win .glyph.g-claude{color:#9fb4ff}:root[data-theme=light] .win .glyph.g-gemini{color:#7dd3c0}:root[data-theme=light] .win .glyph.g-deepseek{color:#d0a6ff}
:root[data-theme=light] #moreHint{color:#cfc8b8}
/* day: the map is a light card too (deep-coloured dots, ink beams) */
:root[data-theme=light] .mapwin{background:var(--card);color:var(--ink);box-shadow:0 0 0 1.5px var(--ink);--cyan:#3d3a35;--wintx:#141414;--windim:#5b5750}
:root[data-theme=light] .mapwin .map .star{fill:#141414;opacity:.35}
:root[data-theme=light] .mapwin .map .beam{stroke:#141414;stroke-opacity:.22}
:root[data-theme=light] #moreHint{color:var(--dim)}
:root[data-theme=light] body:has(#s-r.on) .worldcv{opacity:.22}
:root[data-theme=light] html.world-fx .worldcv{opacity:.6!important}
