/* ORIGINLE · HUSH: the live guest-day layout, shared by every day (dist/<day>/index.html).
   Approved design: dist/mattias/directions/hush.html (v2, neutral glass globe), with production's peach glow removed
   at the user's request: the room is Hush's neutral wall again. Built by dist/hush/hush.js from each day's day.js,
   captions.js, labels-data.js and hush-framing.js. */
@property --sa{syntax:'<number>';inherits:true;initial-value:1}
@property --frost{syntax:'<number>';inherits:true;initial-value:1}
@property --mr{syntax:'<length>';inherits:false;initial-value:0px}
:root{
  --wall:#F2F2F1;
  --ink:#1D1D1B;
  --ink-2:#3A3935;
  --grey:#5F5C55;
  --off:#8E8A83;
  --mist:#E8E7E3;
  --face:#E3E2DE;
  --hair:rgba(29,29,27,.28);
  --hair-2:rgba(29,29,27,.13);
  --ember:#EF8A3A;--ember-ink:#9A4A12;
  --orb:190px;--obx:0px;--oby:0px;
  --sans:"Hanken Grotesk","Inter",ui-sans-serif,system-ui,-apple-system,"Helvetica Neue",Arial,sans-serif;
  --serif:"Cormorant Garamond","Cormorant",Garamond,"Iowan Old Style","Palatino Linotype","Times New Roman",serif;
  --ease:cubic-bezier(.22,.61,.18,1);
  --slow:cubic-bezier(.45,0,.2,1);
  --W:1440px;--H:900px;--M:56px;
  --gx:451px;--gy:-27px;--gw:521px;--gh:927px;--gk:1;--gox:50%;--hx:720px;
  --tfs:140px;--t1x:0px;--t2x:0px;--t1y:180px;--t2y:180px;
  --capb:150px;--capw:620px;--colt:340px;--SW:360px;
  --px:0;--py:0;--dx:0px;--dy:0px;
  --st:env(safe-area-inset-top,0px);--sb:env(safe-area-inset-bottom,0px);
}
*{box-sizing:border-box}
html,body{margin:0;height:100%;overflow:hidden;background:var(--wall);color:var(--ink)}
body{font-family:var(--sans);font-weight:400;font-size:14px;line-height:1.5;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-rendering:optimizeLegibility;-webkit-tap-highlight-color:transparent;overscroll-behavior:none}
button,input,textarea{font:inherit;color:inherit}
button{background:none;border:0;padding:0;cursor:pointer;border-radius:0}
button:disabled{cursor:default}
[hidden]{display:none!important}
:focus{outline:none}
:focus-visible{outline:1px solid var(--ink);outline-offset:5px;border-radius:3px}
.sr{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap}
::selection{background:var(--ink);color:var(--wall)}
body.snap *,body.snap *::before,body.snap *::after{transition:none!important}
body.snap-guest .gbox{transition:none!important}

/* ── The room: Hush's neutral wall. Everything in it stays at or below #F6F6F6, so the darkened plate (the no-WebGL
   fallback) never shows its box. */
.room{position:fixed;inset:0;isolation:isolate;background:var(--wall);overflow:hidden;transition:filter 1s var(--ease),scale 1s var(--ease)}
.wall{position:absolute;inset:-4%;background:
  radial-gradient(46% 42% at 50% 24%,rgba(245,245,244,1),rgba(245,245,244,0) 72%),
  linear-gradient(180deg,#F1F1F0 0%,#EFEFEE 62%,#EBEBE9 100%);
  translate:calc(var(--px) * -12px) 0}
.wall::after{content:"";position:absolute;inset:0;background:radial-gradient(120% 90% at 50% 30%,transparent 48%,rgba(60,54,44,.05));animation:breath 17s var(--slow) infinite}
@keyframes breath{0%,100%{opacity:.35}50%{opacity:1}}

/* the wall letters: raised, pale, visible by their shadow. The light follows the pointer; the room hushes while he speaks. */
.twall{position:absolute;inset:0;pointer-events:none;translate:calc(var(--px) * -8px) calc(var(--py) * -4px)}
.tw{position:absolute;left:0;top:0;margin:0;white-space:nowrap;font-weight:300;font-size:var(--tfs);line-height:1;letter-spacing:-.045em;color:var(--face);
  text-shadow:
    calc(var(--px) * var(--tfs) * -.05) calc(var(--tfs) * .05 + var(--py) * var(--tfs) * -.035) calc(var(--tfs) * .1) rgba(56,50,40,calc(.17 * var(--sa))),
    calc(var(--px) * var(--tfs) * -.012) calc(var(--tfs) * .012) calc(var(--tfs) * .014) rgba(56,50,40,calc(.12 * var(--sa))),
    0 -1px 0 rgba(246,246,245,calc(.9 * var(--sa)));
  transition:transform 1.9s var(--slow),opacity 1s var(--ease),color 1.8s var(--ease),--sa 1.8s var(--ease),filter 1s var(--ease)}
.tw.l1{transform:translate(var(--t1x),var(--t1y))}
.tw.l2{transform:translate(var(--t2x),var(--t2y))}
body.playing .tw{--sa:.42;color:#E7E6E3}
.tw.out{opacity:0;filter:blur(12px);transition:opacity .7s var(--ease),filter .7s var(--ease)}

.big-shape{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;overflow:visible;translate:calc(var(--px) * -6px) 0}
.big-shape path{fill:rgba(56,50,40,0);stroke:#CBC9C3;stroke-width:1;vector-effect:non-scaling-stroke;stroke-linejoin:round;stroke-dasharray:1 1;stroke-dashoffset:1}
.big-shape.drawn path{animation:bigdraw 6.5s var(--slow) forwards}
@keyframes bigdraw{0%{stroke-dashoffset:1;fill:rgba(56,50,40,0)}78%{stroke-dashoffset:0;fill:rgba(56,50,40,0)}100%{stroke-dashoffset:0;fill:rgba(56,50,40,.012)}}

.gbox{position:absolute;left:var(--gx);top:var(--gy);width:var(--gw);height:var(--gh);transform-origin:var(--gox) 100%;transform:scale(var(--gk));translate:calc(var(--px) * -3px) 0;transition:transform 2.6s var(--slow);pointer-events:none}
/* the guest: an exact unmix in WebGL; the <video> is only its texture source (kept rendered so it decodes).
   The box is the clip's own frame, height-fitted and bottom-anchored under the viewport edge; its size and place
   come from each day's measured framing, so no two guests need their own constants. */
#guest{display:block}
body.guest-cropped .gbox{-webkit-mask-image:linear-gradient(#000 calc(100% - var(--guest-crop-fade)),transparent);mask-image:linear-gradient(#000 calc(100% - var(--guest-crop-fade)),transparent)}
.plate{mix-blend-mode:darken;opacity:0}
.plate img,.plate video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block}
.plate img{z-index:0}.plate video{z-index:1}
body.no-gl #guest{display:none}
body.no-gl .plate{opacity:1}
/* cut-out pop-ups (a day's photo callouts): they float on the room beside the head, above the guest */
.callouts{position:absolute;inset:0;pointer-events:none;z-index:1}
.callouts .food-callout.food-sprite{will-change:opacity,transform}
body.sprite-on .tw{opacity:.28;transition:opacity .35s var(--ease)}

/* ── Interface */
.ui{position:fixed;inset:0;z-index:2;pointer-events:none}
.ui>*{pointer-events:auto}
.q,.n{transition:opacity .55s var(--ease),filter .55s var(--ease)}
body.started.still.playing .q:not(:focus-within),body.wide.started.still.playing .n:not(:focus-within){opacity:0;pointer-events:none;transition:opacity 1.9s var(--slow)}
body.touch.still .q.keep:not(:focus-within){opacity:1;pointer-events:auto}
body.tall.started.still .sheet .q{opacity:1;pointer-events:auto}
/* Fade the whole mobile card, including its controls, while the guest speaks. */
body:is(.tall,.touch).started.still.playing :is(.sheetwrap,.orbdock){opacity:0;pointer-events:none;transition:opacity .9s var(--ease)}
body:is(.tall,.touch).started.still.playing :is(.sheetwrap,.orbdock) *{pointer-events:none}
body:is(.tall,.touch).started.still.playing.instant-rest :is(.sheetwrap,.orbdock){transition:none}

.top{position:absolute;left:var(--M);right:var(--M);top:calc(30px + var(--st));display:flex;justify-content:space-between;align-items:flex-start;pointer-events:none}
.top>*{pointer-events:auto}
.mark{display:block;color:var(--ink);text-decoration:none;font-weight:500;font-size:11px;letter-spacing:.44em;line-height:1;padding:4px 0}
.edition{margin:9px 0 0;font-size:10.5px;letter-spacing:.2em;color:var(--grey);text-transform:uppercase;line-height:1}
.edition i{font-style:normal;display:inline-block;width:14px;height:1px;background:var(--hair);vertical-align:middle;margin:0 8px 2px}
.how{display:flex;align-items:center;gap:10px;font-size:12px;letter-spacing:.06em;color:var(--grey);min-height:36px;margin-top:-10px;transition:color .3s}
.how:hover{color:var(--ink)}
.how .qm{width:24px;height:24px;border:1px solid var(--hair);border-radius:50%;display:grid;place-items:center;font-size:11px;line-height:1}

/* his words, above his head */
.captions{position:absolute;left:calc(var(--hx) - var(--capw) / 2);width:var(--capw);top:calc(var(--capb) - 140px);height:140px;pointer-events:none;display:grid;align-items:end;justify-items:center;text-align:center;translate:calc(var(--px) * -3px) 0}
.cue{grid-area:1/1;margin:0;font-family:var(--serif);font-weight:500;font-size:28px;line-height:1.28;letter-spacing:.003em;color:var(--ink);text-wrap:balance;max-width:100%}
.cue.out{animation:cueout .5s var(--ease) forwards}
.cue.now .w{animation:none;opacity:1}
@keyframes cueout{to{opacity:0;filter:blur(3px);transform:translateY(-5px)}}
body.cc-off .captions{display:none}
.w{display:inline-block;opacity:0;animation:wordIn 1s var(--ease) forwards;animation-delay:calc(var(--i) * 70ms)}
@keyframes wordIn{from{opacity:0;filter:blur(6px);transform:translateY(6px)}to{opacity:1;filter:blur(0);transform:none}}

/* chapter: a big title on the empty wall, then a gallery label */
.ci{position:absolute;left:var(--M);top:var(--colt);pointer-events:none;transform-origin:0 0;z-index:1}
.ci .cin{display:block;font-weight:200;font-size:84px;line-height:.9;letter-spacing:-.02em;font-variant-numeric:tabular-nums;color:var(--ink)}
.ci .cit{display:block;font-family:var(--serif);font-style:italic;font-weight:400;font-size:46px;line-height:1.08;margin-top:14px;color:var(--ink)}
.ci .cin .w{animation-duration:1.4s}
.ci.settling .w{animation:none;opacity:1;transform-origin:0 0;will-change:transform}

/* small outline on the final clue */
.shape{position:absolute;left:0;top:0;margin:0;pointer-events:none;display:flex;align-items:flex-end;gap:16px;transform:translate(var(--shx,0px),var(--shy,0px))}
.shape figcaption{max-width:6.5em;padding-bottom:4px}
.shape svg{display:block;width:var(--shape,180px);height:var(--shape,180px);overflow:visible}
.shape path{fill:rgba(29,29,27,0);stroke:rgba(29,29,27,.8);stroke-width:1;vector-effect:non-scaling-stroke;stroke-linejoin:round;stroke-dasharray:1 1;stroke-dashoffset:1}
.shape.drawn path{animation:smalldraw 3.2s var(--slow) forwards}
@keyframes smalldraw{0%{stroke-dashoffset:1}80%{stroke-dashoffset:0;fill:rgba(29,29,27,0)}100%{stroke-dashoffset:0;fill:rgba(29,29,27,.045)}}
.shape figcaption{font-family:var(--serif);font-style:italic;font-size:18px;line-height:1.2;color:var(--ink-2);opacity:0;transition:opacity 1.2s var(--ease) 1.6s}
.shape.drawn figcaption{opacity:1}

/* columns (wide) */
.left{position:absolute;left:var(--M);top:var(--colt);width:var(--lw,300px);display:flex;flex-direction:column;gap:26px}
.right{position:absolute;right:var(--M);top:var(--colt);width:var(--SW);display:flex;flex-direction:column;gap:22px}
.kicker{display:block;margin:0 0 6px;font-size:10.5px;font-weight:500;letter-spacing:.22em;text-transform:uppercase;color:var(--grey)}

/* gallery label */
.chapter{margin:0 0 6px;display:flex;align-items:baseline;gap:14px;transition:opacity .6s var(--ease)}
.chapter .cn{font-size:11px;letter-spacing:.2em;color:var(--grey);font-variant-numeric:tabular-nums;font-weight:500}
.chapter .ct{font-family:var(--serif);font-style:italic;font-weight:500;font-size:22px;line-height:1.1;color:var(--ink)}
.chapter-word,.chapter-ink{display:inline-block}
.chapter-ink{transform-origin:0 0;will-change:transform}
.meta{margin:0;font-size:12.5px;line-height:1.6;color:var(--grey);letter-spacing:.01em}
.plaque .rule{display:block;width:28px;height:1px;background:var(--hair);margin:0 0 14px}
body.ci-on .chapter,body.wide.ci-on .left .plaque,body.wide.ci-on .left .orbdock{opacity:0}
.plaque{transition:opacity .6s var(--ease)}
body.ci-landing .chapter,body.wide.started.ci-landing .left .plaque,body.wide.ci-landing .left .orbdock{opacity:1;transition:opacity .24s ease}
body.wide.ci-landing .chapter{transition:none}
body.ci-morph .chapter,body.wide.started.ci-morph .left .plaque{opacity:1;transition:none}
body.ci-morph .plaque>.rule,body.ci-morph .plaque>.meta{opacity:0}
.plaque>.rule,.plaque>.meta{transition:opacity .3s ease}

/* progress: production's eight dots, on the glass, directly above the guess */
.prog{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:-4px 0 14px;transition:opacity .5s var(--ease)}
.dots{display:flex;align-items:center;gap:2px;margin:0 0 0 -6px;padding:0;list-style:none}
.dots li{display:block}
.dot{position:relative;display:grid;place-items:center;width:23px;height:26px;border-radius:999px}
.prog.tight .dot{width:20px}
.prog.tight .dlabel{letter-spacing:.1em}
.prog.bare .dlabel .wl{display:none}
.dot i{display:block;width:10px;height:10px;border-radius:50%;border:1px solid #A5A29B;background:transparent;transition:background .4s var(--ease),border-color .4s var(--ease),box-shadow .4s var(--ease),scale .3s var(--ease)}
.dot.open i{background:#ADAAA3;border-color:#ADAAA3}
.dot.cur i{background:var(--ember);border-color:var(--ember);box-shadow:0 0 0 3.5px rgba(239,138,58,.17)}
.dot:disabled{cursor:default}
.dot.open:hover i,.dot.open:focus-visible i{background:#7F7C75;border-color:#7F7C75;scale:1.15}
.dot.cur:hover i,.dot.cur:focus-visible i{scale:1.15}
.dot:focus-visible{outline-offset:1px}
.dot[data-tip]::after{content:attr(data-tip);position:absolute;left:50%;bottom:calc(100% + 6px);translate:-50% 3px;padding:4px 9px;border-radius:9px;background:rgba(250,250,249,.97);box-shadow:0 0 0 .5px rgba(44,40,32,.14),0 8px 18px -10px rgba(44,40,32,.4);font-size:11.5px;letter-spacing:.02em;color:var(--ink);white-space:nowrap;opacity:0;pointer-events:none;transition:opacity .2s,translate .25s var(--ease);z-index:6}
.dot[data-tip]:hover::after,.dot[data-tip]:focus-visible::after{opacity:1;translate:-50% 0}
.dot.fresh i{animation:dotin .9s var(--ease) both}
@keyframes dotin{0%{scale:.3;opacity:.2}60%{scale:1.25}100%{scale:1;opacity:1}}
.dlabel{font-size:10.5px;font-weight:500;letter-spacing:.2em;text-transform:uppercase;color:var(--grey);white-space:nowrap;font-variant-numeric:tabular-nums}
/* the stake: "Worth 9,000"; previewing a clue strikes the figure and shows the one after it */
.dlabel .wn,.dlabel .was{letter-spacing:.08em}
.dlabel .wn{display:inline-block;color:var(--ink)}
.dlabel .wn.tick{animation:wtick .8s var(--ease) both}
@keyframes wtick{from{opacity:0;translate:0 -5px}to{opacity:1;translate:0 0}}
.dlabel .was{margin-right:.6em;color:var(--off);text-decoration-thickness:1px}
.dot.peek i{border-color:var(--ink-2);box-shadow:0 0 0 3.5px rgba(29,29,27,.07)}
.right>.prog{margin:0 0 18px;animation:fade 1s var(--ease) both}
/* short desktop windows: the result block tightens so everything stays above the fold */
body.wide.squat .right>.prog{margin-bottom:8px}
body.wide.squat .result h2{font-size:clamp(30px,5vh,56px)}
body.wide.squat .rs{margin:12px 0 4px}
body.wide.squat .rs .num{font-size:clamp(60px,10.5vh,156px)}
body.wide.squat .rs.score .num{font-size:clamp(48px,8vh,104px)}
body.wide.squat .racts{margin-top:12px}
body.wide.squat .racts .note{margin-top:6px}
body.wide.squat .floor{gap:8px}
/* a result that would run off a short window tightens a step (fit1), then drops its closing line and sets the score
   beside the heading (fit2); hush.js measures and sets these */
body.wide.fit1 .result h2,body.wide.crowded.fit1 .sheet .result h2{font-size:clamp(26px,4.2vh,40px)}
body.wide.fit1 .rs,body.wide.crowded.fit1 .sheet .rs{margin:8px 0 2px}
body.wide.fit1 .rs .num,body.wide.crowded.fit1 .sheet .rs .num{font-size:clamp(52px,9vh,96px)}
body.wide.fit1 .rs.score .num,body.wide.crowded.fit1 .sheet .rs.score .num{font-size:clamp(44px,7vh,72px)}
body.wide.fit1 .result .rl{margin-top:6px}
body.wide.fit1 .racts,body.wide.crowded.fit1 .sheet .racts{margin-top:8px}
body.wide.fit1 .racts .note{display:none}
body.wide.fit1 .floor{gap:4px}
body.wide.fit1 .right>.prog{margin-bottom:6px}
body.wide.crowded.fit1 .sheet .result+.floor{margin-top:8px}
body.wide.fit2 .nextcap{display:none}
body.wide.fit2 .rtop{display:flex;align-items:flex-end;gap:14px}
body.wide.fit2 .rtop h2{flex:1;min-width:0}
body.wide.fit2 .rs,body.wide.crowded.fit2 .sheet .rs{margin:0;flex:none}
body.wide.fit2 .rs.score{flex-direction:column;align-items:flex-end;gap:2px}

/* the glass orb (Spatial's scratchpad entry, in neutral glass: no warm tint) */
.orbdock{position:relative;transition:opacity .6s var(--ease),filter .6s var(--ease)}
.orb-hold{position:relative;width:var(--orb);height:calc(var(--orb) * 1.16)}
.orb-float{position:absolute;left:0;top:0;width:var(--orb);height:var(--orb);animation:bob 6s ease-in-out infinite;cursor:grab;touch-action:none}
.orb-float:active{cursor:grabbing}
@keyframes bob{0%,100%{transform:translateY(0)}50%{transform:translateY(-6px)}}
#orb-mini{display:block;width:100%;height:100%}
.orb-shadow{position:absolute;left:4%;right:4%;bottom:0;height:calc(var(--orb) * .17);border-radius:50%;background:
  radial-gradient(closest-side at 58% 50%,rgba(255,255,255,.95),rgba(255,255,255,.6) 22%,rgba(255,255,255,0) 46%),
  radial-gradient(closest-side,rgba(60,60,60,.22),rgba(60,60,60,.09) 55%,rgba(60,60,60,0));animation:shadowBob 6s ease-in-out infinite;pointer-events:none}
@keyframes shadowBob{0%,100%{transform:scale(1);opacity:1}50%{transform:scale(.94);opacity:.85}}
.orb-pin{position:absolute;left:0;top:0;translate:-50% calc(-100% - 9px);padding:5px 10px 5px 8px;border-radius:999px;background:rgba(252,251,249,.94);box-shadow:0 0 0 .5px rgba(44,40,32,.16),0 8px 18px -8px rgba(44,40,32,.4);font-size:12px;font-weight:500;letter-spacing:.02em;white-space:nowrap;display:flex;align-items:center;gap:6px;pointer-events:none;transition:opacity .3s}
.orb-pin::before{content:"";width:6px;height:6px;border-radius:50%;background:var(--ember);box-shadow:0 0 0 3px rgba(239,138,58,.2)}
.orb-pin::after{content:"";position:absolute;left:50%;top:100%;width:1px;height:9px;margin-left:-.5px;background:linear-gradient(rgba(29,29,27,.5),rgba(29,29,27,0))}
body.globe-locked .orb-float{cursor:pointer}
body:not(.started) .orbdock{opacity:0;visibility:hidden}

/* start (wide: a hairline ring on the wall) */
.start{display:inline-flex;align-items:center;gap:18px;color:var(--ink);font-size:15px;letter-spacing:.02em}
.start .ring{position:relative;width:58px;height:58px;flex:none}
.start svg{width:100%;height:100%;overflow:visible;display:block}
.start circle{fill:none;stroke:var(--ink);stroke-width:1;vector-effect:non-scaling-stroke;transform-origin:29px 29px;animation:ringbreath 5.5s var(--slow) infinite}
.start path{fill:var(--ink)}
.start .st2{transition:letter-spacing .6s var(--ease)}
.start:hover .st2{letter-spacing:.06em}
.start:hover circle{animation-duration:2.2s}
@keyframes ringbreath{0%,100%{transform:scale(1);opacity:1}50%{transform:scale(1.07);opacity:.5}}
.hint{margin:20px 0 0;font-size:12px;line-height:1.6;color:var(--grey);letter-spacing:.02em;max-width:26em}
.hint kbd{font:inherit;border:1px solid var(--hair);border-radius:4px;padding:0 5px;margin:0 1px}
.lede{display:none}
body.wide .hint-tall,body.tall .hint-wide{display:none}
body:not(.started) .prog{display:none}

/* pills and text buttons */
.pill{display:inline-flex;align-items:center;justify-content:center;gap:16px;height:44px;padding:0 24px;border:1px solid var(--ink);border-radius:999px;font-size:13px;letter-spacing:.05em;color:var(--ink);background:rgba(246,246,245,.5);white-space:nowrap;transition:background .35s var(--ease),color .35s var(--ease),border-color .35s}
.pill:hover:not(:disabled){background:var(--ink);color:var(--wall)}
.pill:disabled{border-color:rgba(29,29,27,.2);color:#7A766F;background:transparent}
/* what the next clue costs, inside its button */
.pill .cost{margin-left:-4px;font-size:12px;letter-spacing:.02em;font-variant-numeric:tabular-nums;opacity:.62}
.pill .cost:empty{display:none}
.pill .cost:not(:empty)~.arr{display:none}
.arr{position:relative;display:inline-block;width:26px;height:1px;background:currentColor;flex:none}
.arr::after{content:"";position:absolute;right:.6px;top:-2.5px;width:6px;height:6px;box-sizing:border-box;border-top:1px solid;border-right:1px solid;transform:rotate(45deg)}
.tb{font-size:13px;letter-spacing:.03em;color:var(--grey);padding:10px 0;border-bottom:1px solid transparent;transition:color .3s,border-color .3s}
.tb:hover{color:var(--ink);border-bottom-color:var(--hair)}

/* ── the one glass sheet */
.sheetwrap{position:relative;z-index:3;transition:translate .95s cubic-bezier(.2,.8,.2,1),scale .95s cubic-bezier(.2,.8,.2,1),opacity .6s var(--ease)}
.glass{position:relative;border-radius:28px;
  background:linear-gradient(180deg,rgba(255,255,255,calc(.66 * var(--frost))),rgba(250,250,249,calc(.46 * var(--frost))));
  -webkit-backdrop-filter:blur(calc(26px * var(--frost))) saturate(calc(1 + .45 * var(--frost)));
  backdrop-filter:blur(calc(26px * var(--frost))) saturate(calc(1 + .45 * var(--frost)));
  box-shadow:inset 0 1px 0 rgba(255,255,255,calc(.95 * var(--frost))),inset 0 0 0 1px rgba(255,255,255,calc(.42 * var(--frost))),0 0 0 .5px rgba(44,40,32,calc(.12 * var(--frost))),0 2px 6px -2px rgba(44,40,32,calc(.08 * var(--frost))),0 34px 64px -30px rgba(44,40,32,calc(.3 * var(--frost)));
  transition:--frost 1.5s var(--ease)}
.glass::before{content:"";position:absolute;inset:0;border-radius:inherit;padding:1.25px;pointer-events:none;opacity:var(--frost);
  background:conic-gradient(from calc(210deg + var(--px) * 70deg - var(--py) * 30deg),rgba(255,255,255,0) 0deg,rgba(255,255,255,1) 34deg,rgba(255,255,255,.2) 80deg,rgba(120,112,100,.16) 150deg,rgba(120,112,100,.24) 200deg,rgba(255,255,255,.55) 232deg,rgba(255,255,255,0) 280deg,rgba(255,255,255,.7) 330deg,rgba(255,255,255,0) 360deg);
  -webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);-webkit-mask-composite:xor;mask:linear-gradient(#000 0 0) content-box exclude,linear-gradient(#000 0 0)}
.glass::after{content:"";position:absolute;inset:0;border-radius:inherit;pointer-events:none;opacity:var(--frost);background:linear-gradient(calc(135deg + var(--px) * 25deg),rgba(255,255,255,.34),rgba(255,255,255,0) 42%)}
.glass>*{position:relative;z-index:1}
.sheet{--grey:#46443F;padding:24px 26px 22px;transform:perspective(1200px) rotateY(calc(-3deg + var(--px) * -3deg)) rotateX(calc(var(--py) * 2deg));transform-origin:100% 50%;translate:calc(var(--px) * 5px) calc(var(--py) * 3px)}
.sheet .kicker{margin-bottom:2px}
.rips{position:absolute!important;inset:0;border-radius:inherit;overflow:hidden;pointer-events:none;z-index:0!important}
.rip{position:absolute;left:0;top:0;width:260px;height:260px;margin:-130px 0 0 -130px;border-radius:50%;pointer-events:none;
  box-shadow:0 0 0 1.5px rgba(255,255,255,.95),inset 0 0 0 1px rgba(44,40,32,.07),inset 0 0 38px rgba(255,255,255,.55);opacity:0}
.sheet>.body{transition:opacity .5s var(--ease),filter .5s var(--ease)}
.sheetwrap.thaw .sheet{--frost:0;
  -webkit-mask-image:radial-gradient(circle at var(--mx,50%) var(--my,50%),transparent var(--mr),#000 calc(var(--mr) + 70px));
  mask-image:radial-gradient(circle at var(--mx,50%) var(--my,50%),transparent var(--mr),#000 calc(var(--mr) + 70px));
  animation:melt 1.25s cubic-bezier(.3,.5,.3,1) forwards}
@keyframes melt{from{--mr:0px}to{--mr:620px}}
body.wide .sheetwrap.thaw{position:absolute;left:0;right:0;top:0;translate:var(--dx) var(--dy);scale:1.05;pointer-events:none}
.sheetwrap.thaw .guess,.sheetwrap.thaw .confirm{opacity:0;filter:blur(6px);transition:opacity .7s var(--ease),filter .7s var(--ease)}

/* picker */
.sheet .guess:focus-within{z-index:2}
.field{position:relative}
.field:focus-within{z-index:2}
.field input{width:100%;height:48px;border:0;border-bottom:1px solid rgba(29,29,27,.38);background:transparent;padding:0 28px 0 0;font-size:18px;font-weight:300;letter-spacing:.005em;color:var(--ink);border-radius:0;transition:border-color .3s}
.field input::placeholder{color:var(--grey);opacity:1}
.field input:focus{border-bottom-color:var(--ink)}
.field .chev{position:absolute;right:3px;top:17px;width:9px;height:9px;border-right:1px solid var(--grey);border-bottom:1px solid var(--grey);transform:rotate(45deg);pointer-events:none}
.field .pclose{display:none}
.opts{position:absolute;left:-10px;right:-10px;top:calc(100% + 8px);z-index:5;margin:0;padding:6px;list-style:none;background:#FAFAF9;border-radius:18px;box-shadow:0 0 0 .5px rgba(44,40,32,.14),0 24px 48px -24px rgba(44,40,32,.35);max-height:min(320px,var(--optmax,320px));overflow:auto;overscroll-behavior:contain}
.opts.up{top:auto;bottom:calc(100% + 8px)}
.opts li{padding:9px 12px;border-radius:12px;font-size:15px;font-weight:300;cursor:pointer;display:flex;justify-content:space-between;align-items:center}
.opts li:hover,.opts li.active{background:var(--mist)}
.opts li.active::after{content:"";width:18px;height:1px;background:var(--ink)}
.opts li.none{color:var(--grey);cursor:default;background:none;font-style:italic;font-family:var(--serif);font-size:17px}
.lockrow{display:flex;align-items:center;gap:18px;margin-top:18px;flex-wrap:wrap}
.helper{margin:0;font-size:12.5px;color:var(--grey);letter-spacing:.01em}
.helper:focus{outline:none}
.helper strong{font-weight:500;color:var(--ink)}
/* three guesses: a dot each beside the kicker, hollow once spent; the misses are listed under the picker */
.khead{display:flex;align-items:center;gap:12px}
.khead .kicker{margin-right:auto}
.lives{display:flex;gap:5px;margin-bottom:2px}
.lives i{width:7px;height:7px;border-radius:50%;background:var(--ink-2);border:1px solid var(--ink-2);transition:background .5s var(--ease),border-color .5s var(--ease)}
.lives i.used{background:transparent;border-color:#A5A29B}
.tried{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:2px 10px;min-width:0;margin:0 0 2px;font-size:12.5px;color:var(--grey);letter-spacing:.01em}
.tried s{text-decoration-thickness:1px;color:var(--grey)}
.guess.missed{animation:miss .55s var(--ease)}
@keyframes miss{0%,100%{transform:none}20%{transform:translateX(-7px)}45%{transform:translateX(5px)}70%{transform:translateX(-3px)}}

/* confirm + hold */
.confirm p.ask{text-wrap:balance;margin:0 0 20px;font-family:var(--serif);font-weight:500;font-size:26px;line-height:1.28;color:var(--ink)}
.confirm p.ask b{font-weight:500;font-style:italic}
/* both outcomes of a guess, side by side under the question */
.stakes{display:flex;flex-wrap:wrap;gap:6px 28px;margin:-6px 0 22px}
.stakes span{display:flex;align-items:baseline;gap:10px;white-space:nowrap}
.stakes i{font-style:normal;font-size:10.5px;font-weight:500;letter-spacing:.22em;text-transform:uppercase;color:var(--grey)}
.stakes b{font-weight:400;font-size:15px;letter-spacing:.01em;font-variant-numeric:tabular-nums;color:var(--ink)}
.cactions{display:flex;align-items:center;justify-content:space-between;gap:24px}
.hold{display:inline-flex;align-items:center;gap:16px;min-height:62px;font-size:15px;letter-spacing:.02em;color:var(--ink);touch-action:none;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}
.hold svg{width:62px;height:62px;overflow:visible;transform:rotate(-90deg);flex:none}
.hold .ht{fill:none;stroke:rgba(29,29,27,.3);stroke-width:1;vector-effect:non-scaling-stroke;animation:trackbreath 4s var(--slow) infinite}
.hold .ha{fill:none;stroke:var(--ink);stroke-width:1.4;vector-effect:non-scaling-stroke;stroke-dasharray:1 1;stroke-dashoffset:1}
.hold .hs{fill:var(--ink);transform-origin:31px 31px;transform:scale(0)}
.hold .hl{display:flex;flex-direction:column;align-items:flex-start;gap:2px;text-align:left}
.hold .hl small{font-size:11.5px;color:var(--grey);letter-spacing:.03em}
@keyframes trackbreath{0%,100%{stroke:rgba(29,29,27,.3)}50%{stroke:rgba(29,29,27,.58)}}
#ring{position:fixed;left:0;top:0;width:62px;height:62px;margin:-31px 0 0 -31px;pointer-events:none;z-index:40;opacity:0;overflow:visible}
#ring circle{fill:none;vector-effect:non-scaling-stroke}
#ring .r1{stroke:rgba(255,255,255,.85);stroke-width:3}
#ring .r2{stroke:rgba(29,29,27,.5);stroke-width:1}

/* confirmation: the sheet flies forward, the room goes out of focus */
body.confirming .room{filter:blur(8px) saturate(.9);scale:1.018}
body.confirming .left,body.confirming .floor,body.confirming .playback,body.confirming .top,body.confirming .captions,body.confirming .shape,body.confirming .orbdock,body.confirming .right>.prog{opacity:.08;filter:blur(3px);pointer-events:none}
body.wide.confirming .sheetwrap{translate:var(--dx) var(--dy);scale:1.05}
body.wide.confirming .sheet{transform:perspective(1200px) rotateY(calc(var(--px) * -2deg)) rotateX(calc(var(--py) * 1.5deg))}
body.wide .sheetwrap.front-done{transition:none}

/* result: one sentence and one number */
.result h2{margin:0;font-family:var(--serif);font-weight:500;font-size:clamp(40px,6vh,56px);line-height:1.02;letter-spacing:-.01em;color:var(--ink)}
.rs{display:flex;align-items:flex-end;gap:14px;margin:20px 0 6px}
.rs .num{font-weight:200;font-size:clamp(84px,15vh,156px);line-height:.78;letter-spacing:-.04em;font-variant-numeric:tabular-nums;color:var(--ink)}
.rs .of{font-size:13px;letter-spacing:.06em;color:var(--grey);padding-bottom:6px}
.rs.score .of{font-size:11px;letter-spacing:.04em;color:var(--off)}
/* a score has up to six characters: it stands a size smaller than a clue count did */
.rs.score{flex-wrap:wrap;gap:4px 12px}
.rs.score .num{font-size:clamp(60px,9.5vh,104px)}
.rs.score .of{padding-bottom:3px}
.result .rl{margin:14px 0 0;font-size:14px;color:var(--ink-2)}
.result-stats{margin-top:16px;font-size:14px;line-height:1.5;color:var(--ink)}
.result-stats p{margin:0 0 8px}
.result-stats strong{font-weight:500}
.result-stats small,.result-stats .stats-early{font-size:11.5px;color:var(--grey)}
.result-stats .reveal-in{animation-duration:.85s}
.result-stats .picks-open{padding:0;font-size:inherit;color:var(--ink-2);border-bottom-color:var(--hair)}
.result-stats .rsep{color:var(--off)}
.racts{display:flex;flex-wrap:wrap;align-items:center;gap:4px 24px;margin-top:22px}
.racts .tb{white-space:nowrap}
.racts .note{flex-basis:100%}
.status:empty{display:none}
.status{margin:10px 0 0;font-size:12.5px;color:var(--grey);white-space:pre-line}
/* rating: five quiet numbers under the share button */
.rate{margin-top:18px}
/* the rating is one row ("Rate today's game ① … ⑤") that folds to a line once given */
.rate-ask{display:flex;flex-wrap:wrap;align-items:center;gap:6px 12px}
.rate-q{margin:0;font-size:13px;color:var(--ink-2)}
.rate-row{display:flex;gap:6px}
.rate.rated .rate-ask{display:none}
.rate.rated .status{margin-top:0}
.rate-b{width:30px;height:30px;border:1px solid rgba(29,29,27,.24);border-radius:50%;font-size:13px;font-variant-numeric:tabular-nums;color:var(--ink);background:rgba(246,246,245,.5);transition:background .35s var(--ease),color .35s var(--ease),border-color .35s}
.rate-b:hover{border-color:var(--ink)}
.rate-b[aria-pressed="true"]{background:var(--ink);border-color:var(--ink);color:var(--wall)}
.rate-b:focus-visible{outline-offset:2px;border-radius:50%}
.rate[aria-busy="true"] .rate-b{cursor:progress}
.rate .status{margin-top:6px}
.rate .status .tb{padding:0;font-size:inherit;color:var(--ink);border-bottom-color:rgba(29,29,27,.35)}
.note{margin:18px 0 0;font-size:10.5px;letter-spacing:.3em;color:var(--grey);font-weight:500}
.result .reveal-in{opacity:0;animation:rise 1.6s var(--ease) forwards}
@keyframes rise{from{opacity:0;transform:translateY(10px);filter:blur(4px)}to{opacity:1;transform:none;filter:blur(0)}}

/* floor */
.floor{display:flex;flex-direction:column;align-items:flex-start;gap:12px}
/* "Give up" sits quietly beside the next clue, and stays when every clue is open */
.nextrow{display:flex;align-items:center;flex-wrap:wrap;gap:6px 24px}
.giveup{white-space:nowrap}
.warning{max-width:30em;font-size:12.5px;line-height:1.5;color:var(--grey);padding-left:14px;border-left:1px solid var(--ink)}
.warning strong{display:block;font-weight:500;color:var(--ink);letter-spacing:.01em}
.warning span{display:block}
.nextcap{margin:0;font-family:var(--serif);font-style:italic;font-size:18px;color:var(--ink-2)}

/* hunches */
.hunch{display:flex;flex-direction:column;align-items:flex-start;gap:8px}
.hunch-open{display:inline-flex;align-items:center;gap:10px;font-size:12.5px;letter-spacing:.03em;color:var(--grey);min-height:36px;transition:color .3s}
.hunch-open:hover{color:var(--ink)}
.hunch-open svg{width:18px;height:18px;flex:none}
.chips{display:flex;flex-wrap:wrap;gap:6px}
/* the shortlist: two rows (30px chips, 6px gap), scrolling for the rest */
.chips{max-height:66px;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;align-content:flex-start}
.chips.open{max-height:none}
.hhead{display:flex;align-items:center;gap:14px}
.chips-more{padding:4px 0;font-size:12px}
.chip{display:inline-flex;align-items:center;height:30px;border:1px solid var(--hair);border-radius:999px;font-size:12.5px;background:rgba(246,246,245,.55)}
.chip button{height:100%;padding:0 4px 0 12px;color:var(--ink)}
.chip .pk{display:inline-flex;align-items:center;gap:7px;padding-left:11px}
.chip .pk::before{content:"";width:6px;height:6px;border-radius:50%;background:var(--ember)}
.chip .cx{padding:0 11px 0 6px;color:var(--grey);font-size:15px;line-height:1}
.chip .cx:hover{color:var(--ink)}

/* playback */
.playback{position:absolute;left:var(--M);bottom:calc(26px + var(--sb));display:flex;gap:6px;align-items:center}
.pb{display:inline-flex;align-items:center;gap:8px;height:36px;padding:0 10px 0 0;font-size:12px;letter-spacing:.05em;color:var(--grey);transition:color .3s;position:relative}
.pb:hover{color:var(--ink)}
.pb svg{width:18px;height:18px;flex:none}
.pb .lb{position:relative}
.pb[aria-pressed="false"]:not(#freeze) .lb::after,.pb.muted .lb::after{content:"";position:absolute;left:-2px;right:-2px;top:52%;height:1px;background:currentColor}
.pb[aria-pressed="false"] .cc{opacity:.5}
/* pause / play: two bars, or a play triangle while paused */
#freeze .pl,#freeze[aria-pressed="true"] .ps{display:none}
#freeze[aria-pressed="true"] .pl{display:inline}
.pb.muted svg .wv{opacity:0}
.pb:disabled{opacity:.45}
.sep{width:1px;height:12px;background:var(--hair-2);margin:0 8px}
body.wide.broad .playback{padding:0 14px 0 12px;margin-left:-12px;border-radius:999px;background:rgba(246,246,245,.78);-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);box-shadow:0 0 0 .5px rgba(44,40,32,.1)}
body.orb-off .orbdock{display:none}
/* a broad guest (a close-up) reaches into the right-hand column: the floor and the result live on the glass sheet */
body.wide.crowded .sheet .floor{margin-top:18px}
body.wide.crowded .sheet .result{margin-top:2px}
body.wide.crowded .sheet .result+.floor{margin-top:14px}
body.wide.crowded .sheet .result h2{font-size:clamp(30px,4.6vh,44px)}
body.wide.crowded .sheet .rs .num{font-size:clamp(64px,11vh,120px)}
body.wide.crowded .sheet .racts{margin-top:14px}
body.wide.crowded.confirming .sheet .floor,body.wide.crowded.confirming .sheet .result,body.wide.crowded.confirming .sheet .prog{display:none}
/* the same neutral glass where a broad guest sits behind the sheet (a bright sweater would tint it) */
body.wide.crowded .sheet{background:linear-gradient(180deg,rgba(255,255,255,calc(.74 * var(--frost))),rgba(250,250,249,calc(.6 * var(--frost))));
  -webkit-backdrop-filter:blur(calc(26px * var(--frost))) saturate(calc(1 - .55 * var(--frost)));backdrop-filter:blur(calc(26px * var(--frost))) saturate(calc(1 - .55 * var(--frost)))}

.err{position:absolute;left:calc(var(--hx) - 180px);width:360px;top:calc(var(--capb) - 96px);text-align:center;font-size:14px;color:var(--ink);z-index:4}
.err p{margin:0 0 12px;font-family:var(--serif);font-style:italic;font-size:22px}

/* boot choreography: the light comes on, the letters rise out of the wall, then he appears */
body.pre .gbox,body.pre .tw,body.pre .ui>*{opacity:0}
body.boot .tw{animation:emerge 2.6s var(--ease) both}
body.boot .tw.l2{animation-delay:.12s}
body.boot .gbox{animation:mist 2.4s var(--ease) 1.1s both}
body.boot .top{animation:fade 1.2s var(--ease) .3s both}
body.boot .left,body.boot .right{animation:rise 1.5s var(--ease) 1.8s both}
body.boot .playback{animation:fade 1.5s var(--ease) 2.2s both}
@keyframes emerge{0%{--sa:0;opacity:0;color:#F1F1F0}30%{opacity:1}100%{--sa:1;opacity:1;color:var(--face)}}
@keyframes mist{from{opacity:0;filter:blur(16px)}to{opacity:1;filter:blur(0)}}
@keyframes fade{from{opacity:0}to{opacity:1}}

/* ── Short wide screens (landscape phones) */
body.wide.short .top{top:calc(14px + var(--st))}
body.wide.short .sheet{padding:12px 18px 12px}
body.wide.short .sheet .kicker,body.wide.short .lockrow .helper,body.wide.short .meta,body.wide.short .plaque .rule,body.wide.short .left .chips,body.wide.short .hint{display:none}
body.wide.short .field input{height:40px;font-size:16px}
body.wide.short .lockrow{margin-top:10px}
body.wide.short .right{gap:10px}
body.wide.short .pill{height:38px}
body.wide.short .left{gap:10px}
body.wide.short .prog{margin-bottom:6px}
body.wide.short .orbdock{display:none}
body.wide.short .dlabel{display:none}
body.wide.short .cue{font-size:22px}
body.wide.short.cue-on .edition{opacity:0;transition:opacity .4s var(--ease)}
body.wide.short .playback{bottom:calc(8px + var(--sb))}
body.wide.short .result h2{font-size:28px}
body.wide.short .rs{margin:8px 0 2px}
body.wide.short .rs .num{font-size:60px}
body.wide.short .racts{margin-top:8px;gap:0 14px}
body.wide.short .racts .pill{padding:0 16px}
body.wide.short .racts .pill .arr{display:none}
body.wide.short .note{margin-top:0;font-size:9.5px}
body.wide.short .result .rl{margin-top:6px}
body.wide.short .result-stats{margin-top:8px;font-size:12px;line-height:1.35}
body.wide.short .result-stats p{margin-bottom:4px}
body.wide.short .rate,body.wide.fit1 .rate{margin-top:10px}
body.wide.short .rate-q,body.wide.fit1 .rate-q{font-size:12px}
body.wide .rate-ask{column-gap:10px}
body.wide .rate-row{gap:5px}
body.wide .rate-b{width:26px;height:26px;font-size:12px}
body.wide.short .nextcap{font-size:15px}
body.wide.short .floor{gap:4px}
body.wide.short .ci .cin{font-size:48px}
body.wide.short .ci .cit{font-size:28px;margin-top:6px}

/* ── Tall layout (phones, portrait tablets) */
body.tall .top{top:calc(16px + var(--st))}
body.tall .how{margin-top:-8px}
body.tall .how .lbl{display:none}
body.tall .how .qm{width:32px;height:32px;font-size:13px}
body.tall .edition{margin-top:7px;font-size:9.5px}
body.tall .tw{letter-spacing:-.04em}
body.tall.cue-on .tw,body.tall.ci-on .tw,body.tall.playing .tw{opacity:0;transition:opacity .6s var(--ease)}
body.tall .captions{top:calc(var(--capb) - 120px);height:120px}
body.tall .cue{font-size:21px;line-height:1.32}
body.tall .ci{left:var(--M);right:var(--M);top:calc(60px + var(--st));text-align:center}
body.tall .ci .cin{font-size:40px;display:inline;margin-right:12px}
body.tall .ci .cit{font-size:30px;display:inline;margin:0}
body.tall .err{left:var(--M);right:var(--M);width:auto}
body.tall .right{left:max(var(--M),calc(50% - 290px));right:max(var(--M),calc(50% - 290px));top:auto;width:auto;bottom:calc(12px + var(--sb));gap:10px}
/* on a phone the guest's skin and clothes sit right behind the glass: it takes out most of their colour, so a
   sweater or a face never reads as a coloured glow in the sheet */
body.tall .sheet{padding:12px 16px 12px;border-radius:24px;transform:none;translate:none;display:flex;flex-direction:column;gap:10px;
  background:linear-gradient(180deg,rgba(255,255,255,calc(.8 * var(--frost))),rgba(250,250,249,calc(.7 * var(--frost))));
  -webkit-backdrop-filter:blur(calc(24px * var(--frost))) saturate(calc(1 - .55 * var(--frost)));backdrop-filter:blur(calc(24px * var(--frost))) saturate(calc(1 - .55 * var(--frost)))}
.sheet .pill:disabled{color:#625E57;border-color:rgba(29,29,27,.26)}
body.tall .shead{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:32px}
body.tall .shead .plaque{min-width:0}
body.tall .shead .chapter{margin:0;gap:10px;white-space:nowrap}
body.tall .shead .chapter .ct{font-size:clamp(16px,5vw,19px);white-space:normal;text-wrap:balance}
body.tall .shead .chapter .cn{white-space:nowrap}
body.tall .shead .meta,body.tall .shead .rule{display:none}
body.tall .shead .playback{position:static;gap:0;margin-right:-8px}
body.tall .pb{width:40px;height:40px;padding:0;justify-content:center}
body.tall .pb svg{width:20px;height:20px}
body.tall .pb .lb{display:none}
body.tall .pb[aria-pressed="false"]:not(#freeze)::after,body.tall .pb.muted::after{content:"";position:absolute;width:24px;height:1px;background:currentColor;transform:rotate(-45deg)}
body.tall .sep{display:none}
body.tall .prog{margin:0 0 -4px}
body.tall .dots{margin-left:-7px}
body.tall .dot{width:26px;height:28px}
body.tall .dot[data-tip]::after{display:none}
body.tall .orbdock{position:absolute;left:var(--obx);top:var(--oby);z-index:1}
body.tall .orb-hold{height:calc(var(--orb) * 1.12)}
body.tall.picking .orbdock,body.tall.confirming .orbdock{opacity:0;pointer-events:none}
body.tall .floor{gap:6px;align-items:stretch}
body.tall .floor .pill{width:100%;height:46px}
body.tall .nextrow{flex-wrap:nowrap;justify-content:center;gap:16px}
body.tall .nextrow .pill{flex:1;width:auto;min-width:0}
body.tall .warning{font-size:12px}
body.tall .nextcap{font-size:16px;text-align:center}
body.tall .guess .kicker{display:none}
body.tall .khead{justify-content:flex-end;margin-bottom:4px}
body.tall .khead:not(.missed){display:none}
body.tall .rs.score{flex-direction:column;align-items:flex-end;gap:2px}
body.tall .rs.score .num{font-size:56px}
body.tall .prow{display:flex;gap:10px;align-items:flex-end}
body.tall .prow .field{flex:1;min-width:0}
body.tall .field input{font-size:16px;height:46px}
body.tall .lockrow{margin-top:0;flex-wrap:nowrap}
body.tall .lockrow .pill{padding:0 18px;height:46px}
body.tall .lockrow .helper{display:none}
body.tall .helprow{display:flex;justify-content:space-between;align-items:center;gap:0 12px;flex-wrap:wrap}
body.tall .helprow .helper{font-size:12px;white-space:nowrap}
body.tall .hunch{flex-direction:row;align-items:center;flex-wrap:wrap;gap:6px}
body.tall .hunch-open{min-height:32px;font-size:12px}
body.tall .confirm p.ask{font-size:22px;margin:4px 0 10px}
body.tall .stakes{gap:4px 22px;margin:-2px 0 12px}
body.tall .result h2{font-size:32px}
body.tall .rtop{display:flex;justify-content:space-between;align-items:flex-end;gap:12px}
body.tall .rs{margin:0}
body.tall .rs .num{font-size:70px}
body.tall .result .rl{margin-top:4px;font-size:13px}
body.tall .result-stats{margin-top:12px;font-size:13px;line-height:1.45}
body.tall .result-stats p{margin-bottom:6px}
body.tall .racts{margin-top:10px;gap:2px 12px;justify-content:space-between}
body.tall .racts .pill{flex-basis:100%;height:46px}
body.tall .racts .note{flex-basis:auto;letter-spacing:.2em;margin:0;font-size:9.5px}
body.tall .result h2{font-size:clamp(26px,8.2vw,32px)}
body.tall .rs .of{white-space:nowrap}
body.tall .status{margin-top:4px}
body.tall .rate{margin-top:14px}
body.tall .rate-b{width:32px;height:32px}
body.tall .shape{flex-direction:column;gap:6px}
body.tall .shape figcaption{font-size:14px}
body.tall .startwrap{display:flex;flex-direction:column;align-items:stretch;gap:0}
body.tall .lede{display:block;margin:0 0 12px;text-align:center;font-size:12.5px;color:var(--ink-2);letter-spacing:.02em}
body.tall .start{width:100%;justify-content:center;border-radius:999px;height:56px;gap:14px;background:var(--ink);color:#F6F6F5}
body.tall .start .ring{width:22px;height:22px}
body.tall .start circle{animation:none;stroke:transparent}
body.tall .start path{fill:#F6F6F5}
body.tall .hint{text-align:center;margin:10px auto 0}
body.tall.confirming .sheetwrap{translate:0 -8px}
body.tall.confirming .sheet .floor,body.tall.confirming .sheet .prog,body.tall.confirming .sheet .result{display:none}
body.tall.has-result .shead .meta{display:block;font-size:12px}
body.tall .sheet .startwrap{padding:4px 0 2px}
/* phone picking sheet */
body.tall.picking .field{position:fixed;inset:0;z-index:60;background:var(--wall);padding:calc(18px + var(--st)) var(--M) 0;display:flex;flex-direction:column}
body.tall.picking .field input{flex:none;padding-right:70px}
body.tall.picking .field .chev{display:none}
body.tall.picking .field .pclose{display:block;position:absolute;right:var(--M);top:calc(18px + var(--st));height:46px;font-size:13px;color:var(--grey);letter-spacing:.04em}
body.tall.picking .opts{position:static;margin-top:10px;border-radius:0;box-shadow:none;background:none;max-height:none;flex:1;min-height:0;padding:0 0 40px}
body.tall.picking .opts li{padding:13px 2px;border-radius:0;border-bottom:1px solid var(--hair-2);font-size:17px}
body.tall.picking .sheetwrap,body.tall.picking .sheet{transform:none;translate:none;-webkit-backdrop-filter:none;backdrop-filter:none}

/* ── Dialogs */
dialog{border:0;padding:0;margin:0;color:var(--ink);background:var(--wall);max-width:none;max-height:none}
dialog::backdrop{background:rgba(242,242,241,.88);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px)}
dialog[open]{animation:sheetin .6s var(--ease)}
@keyframes sheetin{from{opacity:0}to{opacity:1}}
.x{position:absolute;top:calc(22px + var(--st));right:22px;width:44px;height:44px;display:grid;place-items:center;border-radius:50%;z-index:3}
.x::before,.x::after{content:"";position:absolute;width:18px;height:1px;background:var(--ink);transform:rotate(45deg)}
.x::after{transform:rotate(-45deg)}
.x:hover{background:var(--mist)}
.howd{width:min(640px,100vw);height:100%;max-height:100dvh;inset:0;margin:auto;background:transparent;overflow:auto}
.howd[open]::backdrop{animation:sheetin .6s var(--ease)}
.howd[open] .in{animation:helpin .6s var(--ease) both}
@keyframes helpin{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}
.how-roots{margin:0 0 28px;padding-left:16px;border-left:2px solid var(--hair-2);font-size:15px;line-height:1.55;color:var(--grey)}
.how-roots strong{font-weight:500;color:var(--ink)}
.howd .in{min-height:100%;padding:clamp(64px,8vh,88px) clamp(24px,6vw,64px) 32px;display:flex;flex-direction:column;justify-content:center}
.howd h2{margin:6px 0 20px;font-family:var(--serif);font-weight:400;font-size:clamp(32px,4vw,40px);line-height:1.1;letter-spacing:-.01em}
.howd .lede2{margin:0 0 24px;font-size:20px;line-height:1.5;font-weight:400;max-width:30em;color:var(--ink)}
.how-rules{margin:0 0 28px;font-size:18px;line-height:1.55;font-weight:300;color:var(--ink)}
.how-rules p{margin:0 0 18px}
.how-rules p:last-child{margin-bottom:0}
.how-rules strong{font-weight:500}
.fine{margin:0 0 34px;font-size:13px;line-height:1.6;color:var(--grey);max-width:32em}
.credits{margin:28px 0 0;font-size:11.5px}
.credits a{color:var(--grey)}
/* the optional note left with a rating: the how-to-play dialog's layout, with one text box */
.noted textarea{display:block;width:100%;min-height:140px;padding:14px 16px;border:1px solid rgba(29,29,27,.24);border-radius:18px;background:rgba(255,255,255,.55);font-size:16px;line-height:1.5;color:var(--ink);resize:vertical}
.noted textarea::placeholder{color:var(--grey)}
.noted textarea:focus-visible{outline:none;border-color:var(--ink)}
.note-send{display:flex;flex-wrap:wrap;align-items:center;gap:10px 20px;margin-top:20px}
.note-send .status{margin:0}
/* FAQ: a text button in the top bar, and the how-to-play dialog's layout with a few questions */
.faq-open{font-size:12px;letter-spacing:.03em;color:inherit}
.faq-open:hover{text-decoration:underline;text-underline-offset:5px}
body.tall .faq-open{font-size:11px}
.faq{margin:0 0 26px;max-width:32em}
.faq h3{margin:0 0 6px;font-size:17px;font-weight:500;line-height:1.4;color:var(--ink)}
.faq p{margin:0;font-size:16px;line-height:1.55;font-weight:300;color:var(--ink-2)}
.faq a{color:var(--ink);text-decoration:underline;text-decoration-color:var(--hair);text-underline-offset:3px}
.faq a:hover{text-decoration-color:var(--ink)}
/* what everyone guessed: the how-to-play dialog's layout, with one ranked list */
.picks{margin:0 0 20px;padding:0;list-style:none}
.pick{display:grid;grid-template-columns:minmax(0,1fr) minmax(80px,38%) 3.2em;align-items:center;gap:14px;padding:11px 0;border-bottom:1px solid var(--hair-2);font-size:16px;font-weight:300;color:var(--ink)}
.pick .pn{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 10px;min-width:0}
.pick em{font-style:normal;font-size:10.5px;font-weight:500;letter-spacing:.18em;text-transform:uppercase;color:var(--grey)}
.pick .pbar{height:6px;border-radius:999px;background:var(--mist);overflow:hidden}
.pick .pbar i{display:block;height:100%;border-radius:inherit;background:#C4C1BA}
.pick.mine .pbar i{background:#7F7C75}
.pick.ans .pn{font-weight:500}
.pick.ans .pbar i{background:var(--ink)}
.pick .pp{text-align:right;font-variant-numeric:tabular-nums;color:var(--ink-2)}
.picksd .fine{margin-bottom:0}
/* ── the scratchpad: Spatial's glass orb at full size beside one frosted panel; the room recedes behind */
.scratchd{position:fixed;inset:0;width:100vw;height:100dvh;margin:0;padding:0;background:transparent;overflow:hidden}
.scratchd[open]{animation:none}
.scratchd::backdrop{background:rgba(241,239,235,.4);-webkit-backdrop-filter:blur(16px) saturate(1.06);backdrop-filter:blur(16px) saturate(1.06);animation:sheetin .6s var(--ease)}
.scratch{position:absolute;inset:0;display:grid;grid-template-columns:minmax(0,1fr) min(400px,34vw);gap:clamp(20px,3vw,56px);align-items:center;padding:clamp(24px,4vh,48px) var(--M);perspective:1500px}
.orb-stage{position:relative;height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:0}
.orb-big-wrap{position:relative;width:min(66vh,44vw,620px);aspect-ratio:1;flex:none}
#orb-big{display:block;width:100%;height:100%;cursor:grab;touch-action:none;border-radius:50%}
#orb-big.grabbing{cursor:grabbing}
#orb-big:focus-visible{outline-offset:6px;border-radius:50%}
.reticle{position:absolute;left:50%;top:50%;width:26px;height:26px;margin:-13px 0 0 -13px;border-radius:50%;border:1.5px solid var(--ember);box-shadow:0 0 0 4px rgba(255,255,255,.6);opacity:0;pointer-events:none;transition:opacity .2s}
#orb-big:focus-visible + .reticle{opacity:1}
.orb-big-shadow{width:min(58vh,40vw,540px);height:min(10vh,84px);margin-top:-3vh;border-radius:50%;flex:none;pointer-events:none;background:
  radial-gradient(closest-side at 58% 50%,rgba(255,255,255,1),rgba(255,255,255,.66) 18%,rgba(255,255,255,0) 38%),
  radial-gradient(closest-side,rgba(60,60,60,.2),rgba(60,60,60,.08) 60%,rgba(60,60,60,0))}
.orb-orn{margin-top:16px;height:48px;padding:0 6px;border-radius:999px;display:flex;align-items:center;gap:2px;flex:none}
.orb-orn button{width:40px;height:40px;border-radius:50%;display:grid;place-items:center;font-size:19px;font-weight:300;line-height:1;color:var(--ink);transition:background .2s}
.orb-orn button:hover:not(:disabled){background:rgba(255,255,255,.75)}
.orb-orn button:disabled{color:#A29E97}
.orb-orn .zl{width:46px;font-size:12px;font-weight:500;letter-spacing:.02em;font-variant-numeric:tabular-nums;color:var(--grey)}
.orb-orn .oh{padding:0 14px 0 12px;margin-left:4px;border-left:1px solid var(--hair-2);font-size:12px;letter-spacing:.03em;color:var(--grey);white-space:nowrap}
.orb-orn .oh .hs{display:none}
#orb-tip{position:fixed;left:0;top:0;z-index:5;padding:5px 12px 6px;border-radius:12px;font-family:var(--serif);font-style:italic;font-weight:500;font-size:17px;line-height:1.2;color:var(--ink);white-space:nowrap;pointer-events:none;background:rgba(250,250,249,.95);box-shadow:0 0 0 .5px rgba(44,40,32,.14),0 10px 24px -12px rgba(44,40,32,.4)}
.spanel{--grey:#46443F;position:relative;max-height:calc(100dvh - 48px);overflow:auto;overscroll-behavior:contain;border-radius:28px;padding:26px 26px 22px;scrollbar-width:thin}
.spanel>.x{position:absolute;top:12px;right:12px;z-index:3}
.spanel h2{margin:4px 0 14px;padding-right:44px;font-family:var(--serif);font-weight:400;font-size:clamp(28px,2.5vw,36px);line-height:1.05;letter-spacing:-.005em}
.spanel .kicker{margin:18px 0 2px}
.spanel .kicker.k0{margin-top:0}
.spanel input{width:100%;height:44px;border:0;border-bottom:1px solid rgba(29,29,27,.38);background:transparent;border-radius:0;font-size:16px;font-weight:300;padding:0}
.spanel input:focus{border-bottom-color:var(--ink)}
.spanel input::placeholder{color:var(--grey);opacity:1}
.sres{margin:4px 0 0}
.sres:empty{display:none}
.srow,.cand{display:flex;justify-content:space-between;align-items:center;gap:10px;min-height:42px;border-bottom:1px solid var(--hair-2);font-size:14.5px}
.srow button{height:30px;padding:0 13px;border:1px solid var(--hair);border-radius:999px;font-size:12px;letter-spacing:.06em;color:var(--ink);transition:background .25s,color .25s,border-color .25s}
.srow button:hover{border-color:var(--ink)}
.srow button[aria-pressed="true"]{background:rgba(239,138,58,.14);border-color:rgba(239,138,58,.55);color:var(--ember-ink)}
.srow .none{color:var(--grey);font-family:var(--serif);font-style:italic;font-size:17px}
.clist{margin:0;padding:0;border-top:1px solid var(--hair-2)}
.cand .pk{flex:1;min-height:42px;display:flex;align-items:center;gap:10px;text-align:left}
.cand .pk::before{content:"";width:7px;height:7px;border-radius:50%;background:var(--ember);box-shadow:0 0 0 3px rgba(239,138,58,.16)}
.cand .pk:hover{color:var(--ink-2)}
.cand .rm{width:36px;height:36px;color:var(--grey);font-size:17px;border-radius:50%}
.cand .rm:hover{color:var(--ink);background:rgba(29,29,27,.05)}
.clist .empty{padding:12px 0;color:var(--grey);font-family:var(--serif);font-style:italic;font-size:17px;border-bottom:1px solid var(--hair-2)}
.spanel .fine{margin:10px 0 0;font-size:12.5px}
#notes{width:100%;min-height:128px;resize:vertical;border:0;padding:0 2px;background:transparent repeating-linear-gradient(to bottom,transparent 0 29px,rgba(29,29,27,.16) 29px 30px);line-height:30px;font-family:var(--serif);font-size:18px;color:var(--ink)}
#notes::placeholder{color:var(--grey);font-style:italic}
#notes:focus{outline:none}
.notice{margin:-4px 0 6px;font-family:var(--serif);font-style:italic;font-size:19px;line-height:1.35;color:var(--ink-2)}
.scratchd.locked .scratch{grid-template-columns:min(440px,100%);justify-content:center}
.scratchd.locked .orb-stage{display:none}
.ui{transition:scale .7s var(--ease),opacity .7s var(--ease),filter .7s var(--ease)}
body.receded .room{scale:.955}
body.receded .ui{scale:.97;opacity:.4;filter:blur(2px)}
@media (max-width:820px){
  .x{top:calc(12px + var(--st));right:10px}
  .scratch{display:flex;flex-direction:column;align-items:stretch;gap:10px;height:100%;overflow-y:auto;overscroll-behavior:contain;padding:calc(14px + var(--st)) 12px calc(16px + var(--sb))}
  .orb-stage{height:auto;flex:none;padding-top:4px}
  .spanel{flex:none}
  .orb-big-wrap{width:min(82vw,42dvh)}
  .orb-big-shadow{width:min(62vw,32dvh);height:28px;margin-top:-6px}
  .orb-orn{margin-top:8px;height:46px}
  .orb-orn .oh .hl{display:none}
  .orb-orn .oh .hs{display:inline}
  .spanel{max-height:none;overflow:visible;padding:22px 18px 18px;border-radius:24px}
  .spanel>.x{top:8px;right:8px}
  .spanel h2{font-size:27px;margin-bottom:8px}
  .scratchd.locked .scratch{padding-top:calc(24px + var(--st))}
  .scratchd.locked .spanel{width:100%;max-width:440px;margin:0 auto}
}
/* dev switcher */
.dev{position:fixed;left:10px;bottom:10px;z-index:90;display:flex;flex-wrap:wrap;gap:4px;max-width:min(560px,calc(100vw - 20px));padding:8px;background:rgba(246,246,245,.94);border:1px solid var(--hair-2);border-radius:10px;font-size:11px}
.dev b{width:100%;font-weight:500;letter-spacing:.2em;color:var(--grey);font-size:9.5px;padding:0 4px}
.dev a{color:var(--ink);text-decoration:none;padding:3px 7px;border-radius:999px;border:1px solid var(--hair-2)}
.dev a[aria-current]{background:var(--ink);color:var(--wall)}

@media (prefers-reduced-motion:reduce){
  .howd[open],.howd[open]::backdrop,.howd[open] .in{animation:none}
  .wall::after,.start circle,.hold .ht{animation:none}
  .tw,.gbox,.sheetwrap{transition-duration:.01ms!important}
  .w{animation:fade .5s ease forwards;animation-delay:0s}
  body.boot .tw,body.boot .gbox,body.boot .left,body.boot .right,body.boot .top,body.boot .playback{animation:fade .6s ease both}
  .cue.out{animation:fade .3s ease reverse forwards}
  .result .reveal-in{animation:fade .6s ease forwards}
  .big-shape.drawn path,.shape.drawn path{animation:none;stroke-dashoffset:0}
  .dot.fresh i{animation:none}
  .guess.missed{animation:none}
  .orb-float,.orb-shadow{animation:none}
  body.confirming .room{scale:1}
}
body.wide.crowded.has-result.started.still .sheet.n,body.wide.crowded.has-result.started.still .sheet .n{opacity:1;pointer-events:auto}
body.tall .floor .shape{position:relative;left:auto;top:auto;transform:none;flex-direction:row;align-items:center;gap:12px;margin:2px 0 0;justify-content:center}
body.tall .floor .shape figcaption{max-width:none;padding:0;font-size:16px}
