/* Reveal E + confirmed supplement. All game styles stay inside .game-room. */
@font-face{font-family:Tiny5;src:url('/vendor/Tiny5-Regular.ttf') format('truetype');font-style:normal;font-weight:400;font-display:swap}
.app.game-app{position:fixed;top:var(--game-top,0px);left:0;right:0;height:var(--game-vh,100dvh);min-height:0;padding:0;overflow:hidden}
.game-room{position:relative;height:100%;overflow:hidden;background:var(--g);font-size:15px;--footer-height:0px;--heading-height:88px}
.game-room .bar{position:relative;z-index:4;padding:0 16px;background:var(--g);font-size:14px}
.home{width:40px;height:40px;margin-left:-9px;display:grid;place-items:center;text-decoration:none;color:var(--ink);border-radius:20px;justify-self:start}
.home svg{width:22px;height:22px}
.game-room .bar b{font-size:16px;font-weight:700}
.game-stack{position:absolute;top:52px;left:0;right:0;bottom:0;overflow-y:auto;scrollbar-width:none;overscroll-behavior:contain;transition:top .7s var(--spring),bottom .4s var(--spring)}
.game-stack::-webkit-scrollbar{display:none}
.game-stack.more{-webkit-mask-image:linear-gradient(#000 calc(100% - 64px),transparent);mask-image:linear-gradient(#000 calc(100% - 64px),transparent)}
.game-room .band{display:flex;position:relative;height:56px;flex-shrink:0;transition:height .6s var(--spring)}
.game-room .band>.h{flex:1;min-width:0;padding:0 18px;display:flex;flex-direction:column;justify-content:center;position:relative;overflow:hidden;background:var(--s)}
.game-room .band>.h::before{content:'';position:absolute;inset:0;transition:clip-path .55s var(--spring)}
.game-room .band .me::before{background:var(--fa);clip-path:inset(0 0 0 100%)}
.game-room .band .them::before{background:var(--fb);clip-path:inset(0 100% 0 0)}
.game-room .band .them{align-items:flex-end;text-align:right}
.game-room .band .h>*{position:relative}
.game-room .lb{font-size:12px;color:rgba(17,18,20,.6)}
.game-room .w{font-weight:800;letter-spacing:-.03em;line-height:1.15;font-size:20px;max-width:100%;overflow-wrap:anywhere;color:var(--ink)}
.game-room .st{display:none;position:relative;width:30px;height:18px}
.game-room .st .dots{position:absolute;inset:0;display:flex;align-items:center;justify-content:flex-end;gap:0;height:auto;line-height:0;color:var(--mu);transition:opacity .25s,transform .3s var(--spring)}
.game-room .st .dots i{width:5px;height:5px;margin:0 2px;border-radius:50%;background:currentColor;opacity:.35;animation:game-dots 1.2s infinite}
.game-room .st .dots i:nth-child(2){animation-delay:.2s}.game-room .st .dots i:nth-child(3){animation-delay:.4s}
@keyframes game-dots{40%{opacity:1}}
.game-room .st .ok{position:absolute;right:3.5px;top:-1px;width:20px;height:20px;fill:none;stroke:var(--ok);stroke-width:2.6;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:24;stroke-dashoffset:24;transition:stroke-dashoffset .45s .15s var(--spring);animation:none;display:block}
.game-room .past .me::before,.game-room .past .them::before{clip-path:inset(0)}
.game-room .past{--fa:#dde6d8;--fb:#d0dbca}
.game-room .past+.past{box-shadow:inset 0 1px 0 rgba(255,255,255,.75)}
.game-room .past .w{font-size:20px;max-width:calc(100% - 20px)}
.game-room .past .me .w{margin-right:20px}.game-room .past .them .w{margin-left:20px}
.game-room .rn{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);z-index:1;font:400 44px/1 Tiny5,monospace;pointer-events:none;color:color-mix(in srgb,color-mix(in srgb,var(--fa),var(--fb)) 84%,#111214)}
.game-room .now{height:230px;position:sticky;top:0;z-index:2}
.game-room .now.write .h{justify-content:flex-start;padding-top:18px}
.game-room .now .w{font-size:40px;transition:font-size .6s var(--spring),opacity .35s,transform .6s var(--spring)}
.game-room .now .me .w{opacity:0}
.game-room .now .them .w{opacity:0;transform:translateY(-28px)}
.game-room .now.write .them .st,.game-room .now.sent .them .st{display:block}
.game-room .now.ready-them .dots{opacity:0;transform:scale(.5)}
.game-room .now.ready-them .ok{stroke-dashoffset:0}
.game-room .now.sent .me::before,.game-room .now.reveal .me::before{clip-path:inset(0)}
.game-room .now.sent .me .w{opacity:1}
.game-room .now.reveal{height:min(470px,calc(var(--game-vh,100dvh) - 150px));transition:height .9s var(--spring)}
.game-room .now.reveal .h{padding-bottom:122px}
.game-room .now.reveal .them::before{clip-path:inset(0);transition-duration:.8s}
.game-room .now.reveal .them .w{opacity:1;transform:none;font-size:var(--word-size,62px);transition:font-size .9s var(--spring),opacity .5s .15s,transform .9s var(--spring)}
.game-room .now.reveal .me .w{opacity:.5;font-size:min(30px,var(--word-size,30px))}
.game-room .slot{position:absolute;left:50%;top:50%;width:min(208px,calc(100% - 112px));height:56px;margin: -28px 0 0;padding:0;border:0;border-radius:0;border-bottom:1.5px solid #9ba097;background:transparent;transform:translateX(-50%);box-shadow:none;z-index:3;transition:opacity .25s,transform .45s var(--spring)}
.game-room .slot:focus-within{border-bottom-color:var(--ink)}
.game-room .word-input{width:100%;height:100%;min-width:0;padding:0 4px;border:0;border-radius:0;outline:none;background:transparent;text-align:center;font:600 24px var(--font);color:var(--ink);caret-color:var(--ink)}
.game-room .word-input::placeholder{font-size:17px;font-weight:400;color:var(--n);opacity:1}
.game-room .word-input:focus::placeholder{color:transparent;opacity:0}
.game-room .word-hint{position:absolute;top:calc(50% + 37px);left:12px;right:12px;margin:0;text-align:center;font-size:13px;color:var(--mu);pointer-events:none}
.game-room .now:not(.write) .word-hint{display:none}
.game-room .send{position:absolute;left:calc(100% + 8px);top:6px;width:44px;height:44px;margin:0;border:0;border-radius:0;background:transparent;color:var(--ink);opacity:1}
.game-room .send:disabled{background:transparent;color:var(--ink);opacity:.4}
.game-room .send svg{width:23px;height:23px}
.game-room .now.sent .slot,.game-room .now.reveal .slot{opacity:0;transform:translateX(-50%) scale(.96);pointer-events:none;visibility:hidden;transition:opacity .25s,transform .45s var(--spring),visibility 0s .25s}
.game-room .tick{position:absolute;left:50%;top:12px;transform:translateX(-50%);display:flex;align-items:center;gap:5px;min-height:28px;white-space:nowrap;font-size:13px;font-weight:700;color:var(--mu);font-variant-numeric:tabular-nums;transition:opacity .25s;z-index:3}
.game-room .tick b{display:inline-block;min-width:2ch;text-align:center;font-size:14px;font-weight:700;transition:font-size .25s var(--spring),color .25s}
.game-room .now.reveal .tick{opacity:0;visibility:hidden}
.game-room .drain{position:absolute;left:0;right:0;top:0;height:3px;background:rgba(17,18,20,.22);transform-origin:50% 50%;transition:opacity .25s,background .3s}
.game-room .now.reveal .drain{opacity:0}
.game-room .now.hurry .tick{color:var(--warn)}.game-room .now.hurry .drain{background:var(--warn)}
.game-room .now.panic .tick,.game-room .now.panic .tick b{color:var(--bad)}
.game-room .now.panic .tick b{font-size:30px;font-weight:800}
.game-room .now.panic .drain{height:4px;background:var(--bad);box-shadow:0 0 10px #c8452f45}
.game-room .tick b.count-pop{animation:game-count-pop .3s var(--spring)}
@keyframes game-count-pop{from{transform:scale(1.25)}to{transform:scale(1)}}
.game-room.urgent::after{content:'';position:absolute;inset:52px 0 0;pointer-events:none;z-index:8;border:2px solid #c8452f55;box-shadow:inset 0 0 22px #c8452f12}
.game-room .now.extra-time .tick{color:#9a711e}.game-room .now.extra-time .tick b{font-size:26px;color:inherit}.game-room .now.extra-time .drain{background:#b48c42}
.game-room .nexthint{position:absolute;left:0;right:0;bottom:14px;text-align:center;font-size:13px;color:rgba(17,18,20,.6);margin:0;opacity:0;transition:opacity .3s .9s;font-variant-numeric:tabular-nums}
.game-room .now.reveal .nexthint{opacity:1}
.game-room .now.agreed .nexthint{opacity:0;transform:translateY(16px);transition:opacity .3s,transform .4s var(--spring)}
.game-room .next{position:absolute;left:0;right:0;bottom:0;height:3px;z-index:2;background:rgba(17,18,20,.08);opacity:0}
.game-room .next i{display:block;height:100%;width:100%;background:rgba(17,18,20,.35);transform:scaleX(0);transform-origin:left}
.game-room .now.reveal .next{opacity:1}
.game-room .now.agreed .next{opacity:0}
.game-room .same{position:absolute;left:50%;bottom:10px;z-index:4;width:84px;height:44px;margin-left:-42px;border:0;border-radius:26px;background:color-mix(in srgb,var(--g) 80%,transparent);box-shadow:none;font:700 13px var(--font);color:var(--ink);cursor:pointer;opacity:0;transform:scale(.4);visibility:hidden;transition:opacity .25s,transform .5s var(--spring)}
.game-room .now.reveal .same{opacity:1;transform:none;visibility:visible;transition-delay:1.1s}
.game-room .same.on{font-size:14px;transition-delay:0s!important;animation:game-agree .5s var(--spring)}
@keyframes game-agree{0%{transform:scale(.8)}60%{transform:scale(1.12)}100%{transform:none}}
.game-room .same:active{transform:scale(.94);transition-delay:0s}
.game-room .now.nosame .same{display:none}
.game-room .empty-caption{display:none}
.game-room .now.reveal .h.blank .empty-caption{display:block;position:absolute;right:12px;bottom:34px;font:400 11px/1.3 var(--font);letter-spacing:0;color:var(--mu);white-space:nowrap}
.game-room .now.reveal .h.blank::before{display:none}
.game-room .empty-line{font:400 40px/1.3 var(--font);letter-spacing:2px;color:#858b93}
.game-room .now.reveal .h.blank .w{opacity:1;font-weight:400;width:100%;text-align:center;transform:none}
.game-room .past .empty-line{font-size:24px;letter-spacing:0}
.game-room .now.has-empty{height:278px}
.game-room .now.has-empty .h{padding-bottom:34px}
.game-room .sig{display:none;vertical-align:-1px;margin-left:6px;width:14px;height:11px}
.game-room .sig rect{fill:rgba(17,18,20,.18)}.game-room .sig rect:first-child{fill:var(--warn)}
.game-room.weak .now .sig{display:inline-block}
.game-room .drop{display:none;font-style:normal;font-weight:600;color:var(--bad);margin-left:6px}
.game-room.gone .now .drop{display:inline}
.game-room.gone .now .dots{opacity:.25}.game-room.gone .now .dots i{animation:none}
.game-room.gone .now .sig{display:none}
.game-room .pause-label{display:none}
.game-room.paused .pause-label{display:block;position:absolute;top:12px;left:0;right:0;text-align:center;font-size:13px;color:var(--mu);font-weight:600}
.game-room.paused .now{height:278px}
.game-room.paused .now.reveal .h{padding:26px 18px 0;justify-content:center}
.game-room.paused .now.reveal .w{font-size:40px;opacity:1;transform:none}
.game-room.paused .now .empty-caption{bottom:14px!important}
.game-room.paused .nexthint,.game-room.paused .next{display:none}
.game-room.paused .game-stack{bottom:var(--footer-height)}
.game-room .game-footer{position:absolute;left:0;right:0;bottom:0;padding:18px 18px calc(18px + env(safe-area-inset-bottom));display:flex;flex-direction:column;gap:10px;background:var(--g);z-index:4}
.game-room .game-footer:empty{display:none}
.game-room:not(.paused):not(.settled) .game-footer{visibility:hidden;pointer-events:none}
.game-room .game-footer .link{margin:0 auto;font-size:13px;padding:3px 0}
.game-room .footer-status{margin:0;text-align:center;color:var(--mu);font-size:13px}
.game-room .game-secondary{display:flex;gap:10px}
.game-room .game-secondary>*{flex:1;min-width:0;min-height:44px;font-size:15px}
.game-room .game-footer .invite{margin:0;border-radius:26px;background:var(--s)}
.game-room .game-footer .invite p{font-size:14px}
.game-room .image-settings{border:0;background:transparent;color:var(--mu);font-size:12px;padding:0;min-height:22px;align-self:center;cursor:pointer}
.game-room .settle-head{position:absolute;top:52px;left:0;right:0;padding:18px 18px 0;opacity:0;transform:translateY(-8px);transition:opacity .4s .35s,transform .6s .35s var(--spring);pointer-events:none}
.game-room .settle-head h2{margin:0;font-size:26px;line-height:1.2;letter-spacing:-.03em;font-weight:800}
.game-room .settle-head p{margin:6px 0 0;font-size:14px;line-height:1.5;color:var(--mu);overflow-wrap:anywhere}
.game-room.settled .settle-head{opacity:1;transform:none}
.game-room.settled .game-stack{top:calc(68px + var(--heading-height));bottom:var(--footer-height)}
.game-room.settled .now.reveal{height:180px}
.game-room.settled .now.reveal .h{padding-bottom:0}
.game-room.settled .now.reveal .w{font-size:min(36px,var(--word-size,36px));opacity:1;transform:none}
.game-room.settled .now .same,.game-room.settled .nexthint,.game-room.settled .next{visibility:hidden;opacity:0;pointer-events:none;transition-delay:0s}
.emoji-rain,.game-confetti{position:absolute;inset:0;z-index:10;overflow:hidden;pointer-events:none}
.emoji-rain i{position:absolute;top:0;line-height:1;font-style:normal;font-family:'Apple Color Emoji','Segoe UI Emoji',sans-serif;filter:drop-shadow(0 2px 2px #00000012)}
.game-confetti i{position:absolute;top:0;width:8px;height:12px;border-radius:2px}
:root[data-theme="dark"] .game-room{--pri:#a3b898;--on-pri:#172017}
:root[data-theme="dark"] .game-room .f1{--fa:#3f5140;--fb:#354636}
:root[data-theme="dark"] .game-room .f2{--fa:#505437;--fb:#43472e}
:root[data-theme="dark"] .game-room .f3{--fa:#594a36;--fb:#4d402f}
:root[data-theme="dark"] .game-room .f4{--fa:#573f3a;--fb:#493530}
:root[data-theme="dark"] .game-room .f5{--fa:#344a5a;--fb:#293e4c}
:root[data-theme="dark"] .game-room .past{--fa:#2e3b30;--fb:#273329}
:root[data-theme="dark"] .game-room .past+.past{box-shadow:inset 0 1px 0 #ffffff0c}
:root[data-theme="dark"] .game-room .rn{color:#657560}
:root[data-theme="dark"] .game-room .lb{color:#c0c9bc}
:root[data-theme="dark"] .game-room .empty-line{color:#a1ac9e}
:root[data-theme="dark"] .game-room .slot{border-bottom-color:#7d897a}
:root[data-theme="dark"] .game-room .slot:focus-within{border-bottom-color:var(--ink)}
:root[data-theme="dark"] .game-room .nexthint{color:#c0c9bc}
:root[data-theme="dark"] .game-room .next{background:#ffffff10}
:root[data-theme="dark"] .game-room .next i{background:#c5d4bf80}
:root[data-theme="dark"] .game-room .drain{background:#ffffff33}
:root[data-theme="dark"] .game-room .now.hurry .drain{background:var(--warn)}
:root[data-theme="dark"] .game-room .now.panic .drain{background:var(--bad)}
:root[data-theme="dark"] .game-room .now.extra-time .drain{background:#b48c42}
:root[data-theme="dark"] .game-room .now.extra-time .tick{color:#d4b473}
:root[data-theme="dark"] .game-room .sig rect{fill:#ffffff24}
@media(max-width:360px){.game-room .empty-line{font-size:34px}.game-room .past .empty-line{font-size:22px}.game-room .now.reveal .them .w{font-size:min(52px,var(--word-size,52px))}.game-room .game-footer .invite p{font-size:13px}}
@media(hover:hover) and (pointer:fine){.home:hover{background:var(--s)}}
@media(prefers-reduced-motion:reduce){.game-room *,.game-room *::before,.game-room *::after{animation:none!important;transition:none!important}.emoji-rain,.game-confetti{display:none}.game-room .now.reveal .same{transform:none}}
/* After empty rounds, keep the actual shared starting pair near the input. */
.game-room .seed-reference{position:absolute;left:18px;right:18px;bottom:20px;display:flex;justify-content:space-between;gap:36px;pointer-events:none;font-size:15px;font-weight:600;color:var(--mu)}
.game-room .seed-reference span{max-width:calc(50% - 18px);overflow-wrap:anywhere}
.game-room .seed-reference span:last-child{text-align:right}
.game-room .now.sent .me .w{font-size:min(40px,var(--word-size,40px))}
.game-room.paused .now.reveal .w{font-size:min(40px,var(--word-size,40px))}
:root[data-theme="dark"] .game-room{--g:#171b19;--s:#242a26;--s2:#3b443d;--ink:#edf0eb;--mu:#a3ada2;--n:#929b91;--ok:#83ca97}

/* Early rounds fill the available height, then yield space to 56px history rows. */
.game-room .now:not(.reveal){height:var(--writing-height,230px);transition:none}
.game-room .now.write .me::before,.game-room .now.write .them::before,.game-room .now.sent .them::before{clip-path:inset(0)}
.game-room .waiting-copy{display:none;position:absolute;left:12px;right:12px;bottom:20px;margin:0;text-align:center;font-size:12px;color:var(--mu)}
.game-room .now.sent .waiting-copy{display:block}
.game-room .now.sent .seed-reference:not([hidden]){bottom:48px}
.app.entry-app{height:var(--game-vh,100dvh);min-height:0;padding:0;overflow:hidden}
.entry-room{height:100%;padding:0;display:flex;flex-direction:column;overflow:hidden}
.entry-room .bar{padding:0 18px;flex:0 0 52px}
.entry-room .entry-body{display:flex;flex-direction:column;flex:1;min-height:0;overflow-y:auto}
.entry-intro{padding:26px 22px 24px;flex-shrink:0}
.entry-intro .big-h{margin:0;font-size:24px;letter-spacing:-.6px}
.entry-intro .sub{margin:10px 0 0;font-size:13px;line-height:1.6}
.entry-intro .intro{margin:8px 0 0}
.entry-room .duo{margin:0;flex:1 0 140px;min-height:140px}
.entry-room .col{padding:22px;justify-content:center}
.entry-room .col .st{font-size:25px}
.entry-room .col.empty b.absent{color:#a0a4aa;letter-spacing:1px}
.entry-room .dock{padding:24px 22px calc(24px + env(safe-area-inset-bottom));flex-shrink:0}
.entry-room .dock .link{margin:0 auto;min-height:40px}
.room-settings{justify-self:end;display:grid;place-items:center;width:44px;height:44px;border:0;background:transparent;color:var(--mu);cursor:pointer}
.room-settings svg{width:23px;height:23px}
.loading-dots{display:inline-block;width:24px;text-align:left}
.loading-dots::after{content:'.';animation:entry-dots 1.5s steps(1,end) infinite}
@keyframes entry-dots{0%{content:'.'}33%{content:'..'}66%{content:'...'}}
.rules-disclosure{margin-top:12px}
.rules-disclosure summary{display:flex;align-items:center;gap:10px;min-height:44px;cursor:pointer;list-style:none;font-size:13px;color:var(--mu)}
.rules-disclosure summary::-webkit-details-marker{display:none}
.rules-disclosure summary img{width:72px;height:24px}
.rules-disclosure summary::after{content:'⌄';margin-left:auto}
.rules-disclosure[open] summary::after{content:'⌃'}
.rules-disclosure p{margin:12px 0 0;font-size:14px;line-height:1.85;color:var(--mu)}
:root[data-theme="dark"] .rules-disclosure summary img{filter:invert(1)}
@media(prefers-reduced-motion:reduce){.loading-dots::after{animation:none;content:'...'}}

.entry-room.pre-ready .col.y{background:var(--fa)}
.entry-room.pre-ready .col.o{background:var(--fb)}

/* End page: two halves meet, then the same strip becomes the result. */
.game-room .merged-word,.game-room .gone-chip{display:none}
.game-room.end-state .now .same,.game-room.end-state .now .rn,.game-room.end-state .now .tick,.game-room.end-state .now .nexthint,.game-room.end-state .now .next,.game-room.end-state .now .pause-label{display:none}
.game-room.end-state .now.reveal{height:min(420px,calc(var(--game-vh,100dvh) - 180px))}
.game-room.end-state .now.reveal .h{padding:0 16px;justify-content:center}
.game-room.end-state .now .lb{position:absolute;top:18px;left:16px}
.game-room.end-state .now .them .lb{left:auto;right:16px}
.game-room.end-state .now .me .w{font-size:min(30px,var(--word-size));opacity:.75}
.game-room.end-state .now .them .w{font-size:min(52px,var(--word-size));opacity:1}
.game-room.end-state .now .h .w{transition:opacity .7s,transform .7s var(--spring),font-size .7s var(--spring)}
.game-room.merged .now .me .w{opacity:0;transition:opacity .22s}
.game-room.merged .now .them .w{opacity:0;transition:opacity .22s}
.game-room .merged-word{position:absolute;inset:0;align-items:center;justify-content:center;text-align:center;padding:24px;font-size:min(60px,var(--word-size));font-weight:800;line-height:1.15;overflow-wrap:anywhere;opacity:0;pointer-events:none;transition:opacity .4s .3s}
.game-room.matched-end .merged-word{display:flex}
.game-room.merged .merged-word{opacity:1}
.game-room.settled .settle-head{padding:10px 20px 0;pointer-events:auto}
.game-room.settled .settle-head h2{font-size:21px;font-weight:800;line-height:1.45;overflow-wrap:anywhere;letter-spacing:0}
.game-room .settle-head .n{font:400 1em Tiny5,monospace}
.game-room .settle-head .m{color:var(--mu);font-weight:500}
.game-room .settle-head .hit{display:inline-block;max-width:100%;vertical-align:bottom}
.game-room.settled .game-stack{top:calc(68px + var(--heading-height))}
.game-room.settled.end-state .now.reveal{height:200px}
.game-room.settled .now .lb{opacity:0}
.game-room.settled .now .w{font-size:min(34px,var(--word-size))!important}
.game-room.settled .merged-word{font-size:min(40px,var(--word-size));transition:font-size .6s var(--spring),opacity .3s .3s}
.game-room.settled .past{background:var(--g);box-shadow:none;border-bottom:1px solid var(--s)}
.game-room.settled .past .h{background:transparent;padding:0 20px}
.game-room.settled .past .h::before{display:none}
.game-room.settled .past .w{font-size:15px!important;font-weight:600}
.game-room.settled .past .rn{font-size:16px;color:var(--n)}
.game-room .gone-chip{position:absolute;right:12px;top:12px;z-index:3;font-size:12px;line-height:22px;padding:0 10px;border-radius:999px;background:var(--g);color:var(--mu)}
.game-room.peer-left .gone-chip{display:block}
.game-room.peer-left .now .them::before{filter:saturate(.1) brightness(1.06)}
.game-room .now .them::before{transition:clip-path .55s var(--spring),filter .6s}
.game-room .react-zone{position:absolute;inset:0;overflow:hidden;pointer-events:none;z-index:6}
.game-room .float{position:absolute;font-family:'Apple Color Emoji','Segoe UI Emoji',sans-serif;line-height:1}
.game-room.settled .game-footer{padding:12px 16px calc(16px + env(safe-area-inset-bottom));gap:10px;box-shadow:0 -10px 16px var(--g)}
.game-room .reacts{display:flex;gap:4px;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;overscroll-behavior-x:contain}
.game-room .reacts::-webkit-scrollbar{display:none}
.game-room .reacts button{flex:none;width:calc((100% - 16px)/5);min-height:44px;scroll-snap-align:start;padding:0;border:0;border-radius:12px;background:var(--s);font-size:20px;cursor:pointer}
.game-room .reacts button:active{transform:scale(.88)}
.game-room .reacts button:disabled{opacity:.5;cursor:default}
.game-room .btn.share{background:var(--ink);color:var(--g);min-height:50px}
.game-room .rm{display:flex;gap:8px;align-items:center;min-height:46px}
.game-room .rm .btn{flex:1;min-height:46px;font-size:15px}
.game-room .rm .x{border:0;background:var(--s);border-radius:999px;min-height:46px;padding:0 16px;font:13px var(--font);color:var(--ink);cursor:pointer}
.game-room .rm[data-s=wait] .btn{background:color-mix(in srgb,var(--pri) 45%,var(--g));opacity:1}
.game-room .rm[data-s=ask] .btn{animation:end-ask 1.2s var(--spring) infinite}
.game-room .rm[data-s=themno] .btn,.game-room .rm[data-s=meno] .btn{background:var(--s);color:var(--ink)}
@keyframes end-ask{50%{transform:scale(1.03)}}
.game-room .game-footer .tolobby{min-height:44px;display:grid;place-items:center}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
.share-hint{text-align:center;font-size:12px;color:var(--mu)}
.share-options summary{min-height:44px;cursor:pointer;color:var(--mu);font-size:14px;display:flex;align-items:center;justify-content:center}
@media(prefers-reduced-motion:reduce){.game-room .float,.game-room .spark{display:none}.game-room .react-zone{display:none}}
.game-room .merged-word{z-index:2}
/* A long title can scroll without pushing the result strip beneath the footer. */
.game-room.settled .settle-head{max-height:160px;overflow-y:auto}
.game-room .rm[data-s=go] .btn{opacity:1}

/* Success: keep the two answers and the original white-circle peace gesture. */
.game-room.celebrating .now.reveal{height:min(470px,calc(var(--game-vh,100dvh) - 150px))}
.game-room.celebrating .now.reveal .h{padding:0 18px 122px;justify-content:center}
.game-room.celebrating .now .lb{position:relative;top:auto;left:auto;right:auto}
.game-room.celebrating .now .them .lb{right:auto}
.game-room.celebrating .now .me .w{font-size:min(30px,var(--word-size));opacity:.5;transform:none}
.game-room.celebrating .now .them .w{font-size:var(--word-size,62px);opacity:1;transform:none}
.game-room.celebrating .now .same.on{display:block;visibility:visible;opacity:1;pointer-events:none;width:96px;height:96px;left:50%;bottom:56px;margin-left:-48px;border-radius:50%;background:var(--g);box-shadow:0 0 0 1px var(--s2),0 8px 24px #00000014;font-size:40px;animation:game-agree .5s var(--spring);transition-delay:0s}
/* Reserve a white signature row below the title, outside its scrollable text. */
.game-room .end-wordmark{display:none;position:absolute;top:calc(52px + var(--heading-height) - 24px);right:16px;width:72px;height:auto;z-index:4;pointer-events:none;opacity:0}
.game-room.settled.matched-end .end-wordmark{display:block}
.game-room.settled.matched-end.wordmark-docked .end-wordmark{opacity:1;transition:opacity .3s}
.game-room.settled.matched-end .settle-head{padding-bottom:32px;max-height:none;overflow:visible}
.game-room.settled.matched-end .settle-head h2{max-height:112px;overflow-y:auto}
.game-room.settled.end-state .now.reveal{height:min(200px,100%)}
:root[data-theme="dark"] .game-room .end-wordmark{filter:invert(1)}
@media(prefers-reduced-motion:reduce){.game-room .end-wordmark{transition:none!important}}

/* Selected A reveal; word copies fly from their own half into the shared equation. */
.game-room .equation{display:none;position:absolute;left:18px;right:18px;top:51%;align-items:center;justify-content:center;gap:8px;font-size:22px;font-weight:800;pointer-events:none}
.game-room .has-equation .equation{display:flex}
.game-room .equation .eq-a,.game-room .equation .eq-b{min-width:0;max-width:calc((100% - 92px)/2);overflow-wrap:anywhere;line-height:1.15;text-align:center;opacity:0}
.game-room .has-equation .eq-a{animation:eq-left .55s 1.2s var(--spring) forwards}
.game-room .has-equation .eq-b{animation:eq-right .55s 1.2s var(--spring) forwards}
.game-room .eq-x,.game-room .eq-e{font:30px/1 Tiny5;flex:none;opacity:0}
.game-room .has-equation .eq-x{animation:eq-show .5s 1.6s var(--spring) forwards}
.game-room .has-equation .eq-e{animation:eq-show .2s 2.1s forwards}
.game-room .eq-cursor{width:26px;height:26px;flex:none;background:var(--ink);opacity:0}
.game-room .has-equation .eq-cursor{animation:eq-blink 1s 2.3s steps(1) infinite}
.game-room .has-equation .h .w{animation:eq-dim .5s 1.2s forwards}
.game-room .now.reveal:not(.has-empty) .nexthint{bottom:62px}
@keyframes eq-left{from{opacity:0;transform:translate(-60px,-120px) scale(1.6)}to{opacity:1;transform:none}}
@keyframes eq-right{from{opacity:0;transform:translate(60px,-120px) scale(1.6)}to{opacity:1;transform:none}}
@keyframes eq-show{from{opacity:0;transform:scale(.4)}to{opacity:1;transform:none}}
@keyframes eq-blink{0%{opacity:1}50%{opacity:.15}}
@keyframes eq-dim{to{opacity:.35}}
/* In-play tray is independent of the word form; end-page reactions keep their own strip. */
.game-room .ig-toggle{position:absolute;bottom:10px;left:10px;width:44px;height:44px;padding:0;border:0;border-radius:50%;background:color-mix(in srgb,var(--g) 70%,transparent);font-size:20px;z-index:5}
.game-room .ig-tray{position:absolute;left:10px;bottom:62px;max-width:calc(100% - 20px);display:flex;overflow-x:auto;gap:4px;padding:5px;background:var(--g);border-radius:26px;box-shadow:0 0 0 1px var(--s2),0 8px 24px #00000014;z-index:5;scrollbar-width:none}
.game-room .ig-tray button{flex:0 0 44px;width:44px;height:44px;padding:0;background:none;border:0;border-radius:50%;font-size:24px}
.game-room .ig-tray button:focus-visible,.game-room .ig-toggle:focus-visible{outline:2px solid var(--ink);outline-offset:-3px}
.game-room .ig-tray[hidden],.game-room .ig-toggle[hidden]{display:none}
.game-room .ig-peek{position:absolute;font-size:34px;pointer-events:none;z-index:6;line-height:1}
.game-room .ig-peek[data-side=me]{left:40px;bottom:82px}
.game-room .ig-peek[data-side=them]{right:40px;top:60px}
@media(prefers-reduced-motion:reduce){.game-room .has-equation .equation>*{opacity:1;transform:none}}

/* At the 230px minimum the tray sits beside its trigger, clear of the input. */
.game-room.compact-reactions .now:is(.write,.sent) .ig-tray{left:64px;bottom:10px;max-width:calc(100% - 74px)}
