/* Every play phase occupies the visible viewport, including mobile browser chrome. */
body.phone-active{height:100dvh;overflow:hidden;overscroll-behavior:none}body.phone-active>header{display:none}body.phone-active>main{height:100dvh;width:100%;max-width:760px;margin:auto;padding:max(6px,env(safe-area-inset-top)) 8px max(6px,env(safe-area-inset-bottom));display:flex;min-height:0}body.phone-active main>#intro,body.phone-active main>footer,body.phone-active main>#error{display:none!important}body.phone-active #game{flex:1;min-height:0;min-width:0;margin:0}.phone-game{position:relative;display:flex;flex-direction:column;height:100%;gap:6px;border:3px solid #102f25;border-radius:24px;padding:8px;background:#244b3a;box-shadow:4px 4px 0 #102f25}.phone-top{display:flex;align-items:center;gap:8px;min-height:42px;flex-shrink:0;font-weight:700;font-size:14px}.phone-top .round-pill{max-width:30%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.phone-top .my-beans{margin-left:auto}.phone-top .jackpot-pill{color:#e8f780;font-size:12px}.phone-top .clock{font-size:19px;min-width:32px}.phone-top button{padding:4px;min-width:44px;min-height:42px;font-size:23px;border-radius:14px}.host-ribbon{display:flex;align-items:center;gap:8px;height:48px;flex-shrink:0;padding:2px 9px;background:#e9f3b8;color:#1a392b;border:2px solid #123c2b;border-radius:18px}.host-ribbon img{width:39px;height:42px;object-fit:contain}.host-ribbon p{font-size:13px;line-height:1.15;margin:0;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.phone-phase{flex:1;min-height:0;display:flex;flex-direction:column;justify-content:center;gap:10px;background:#fff9df;color:#17392c;border:3px solid #102f25;border-radius:22px;padding:16px;overflow:hidden}.phone-phase h2,.phone-overlay h2{font-size:clamp(23px,4.7vw,32px);line-height:1.06;letter-spacing:-.6px;margin:0}.phone-phase p,.phone-overlay p{font-size:clamp(15px,2.7vh,19px);line-height:1.25;margin:0}.phone-phase .phase-label,.phone-overlay .phase-label{font-size:11px;letter-spacing:1px;font-weight:700;color:#52653a}.phone-phase .question{font-size:clamp(17px,3vh,22px);line-height:1.2}.phone-phase .decision-note{font-size:13px;color:#486047;min-height:16px}.phone-phase .score-note{font-size:13px}.phone-phase button,.phone-overlay button,.phone-overlay .button-link{border:2px solid #17392c;border-radius:16px;padding:10px;min-height:46px;font-size:17px;line-height:1.1;box-shadow:0 3px 0 #17392c;white-space:normal}.phone-phase button:hover,.phone-overlay button:hover{transform:none}.phone-phase .answers{display:grid;grid-template-columns:1fr 1fr;gap:10px}.phone-phase .answers button{min-height:54px;overflow-wrap:anywhere}.phone-phase .personal-score{text-align:center}.personal-score strong{display:block;font-size:clamp(38px,8vh,62px);line-height:1}.personal-score span{font-size:14px}.phone-toolbar{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-shrink:0;min-height:42px}.phone-toolbar button{min-height:42px;padding:8px 14px;font-size:14px;border:2px solid #112f24;border-radius:14px}.membership-pill{font-size:13px;color:#e9f3b8}.phone-overlay{position:absolute;inset:0;z-index:8;background:#fff9df;color:#17392c;border:3px solid #102f25;border-radius:21px;display:flex;padding:46px 16px 16px;overflow:hidden}.overlay-close{position:absolute;right:8px;top:6px;min-height:36px!important;min-width:38px;box-shadow:none!important;font-size:18px!important;padding:5px!important}.overlay-content{display:flex;flex-direction:column;justify-content:center;gap:14px;width:100%;min-height:0}.page-actions{display:flex;gap:10px;align-items:center;margin-top:8px}.page-actions>*{flex:1}.phone-phase .lobby-cats{display:flex;justify-content:center;gap:20px;min-height:0}.lobby-cats img{height:clamp(65px,14vh,120px);object-fit:contain;max-width:40%}.phone-phase .banter-line{font-size:14px}.rules-step{display:flex;flex-direction:column;gap:14px}.rules-step p{font-size:clamp(16px,2.9vh,21px);line-height:1.35}.compact-player{display:grid;grid-template-columns:1fr auto;gap:6px;padding:12px;border:2px solid #294b36;border-radius:16px;min-height:64px}.compact-player b{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.compact-player small{grid-column:1/-1}.compact-player button{font-size:13px;min-height:36px;grid-column:1/-1}.phone-phase table{width:100%;font-size:12px;border-collapse:collapse}.phone-phase th,.phone-phase td{padding:5px 3px;border-bottom:1px solid #59744c}.phone-phase .skill-pad .options{grid-template-columns:1fr 1fr;gap:8px;margin:8px 0}.phone-phase .skill-pad .account-actions{display:flex;gap:8px;margin:6px 0}.phone-phase .skill-pad .account-actions button{flex:1;font-size:15px}.phone-phase .skill-picks{font-size:14px;min-height:20px}.phone-phase .bean-chip{min-height:46px;padding:8px}.phone-phase .memory-sequence{display:grid;grid-template-columns:1fr 1fr;gap:8px}.phone-phase .memory-sequence span{display:flex;align-items:center;justify-content:center}.phone-phase .count-grid{grid-template-columns:repeat(6,1fr);gap:4px;margin:0}.phone-phase .count-grid span{font-size:25px;min-height:28px;padding:0}.phone-phase [data-count-form]{display:flex;flex-direction:column;gap:8px;margin:0}.phone-phase [data-count-form] label{font-size:13px}.count-stepper{display:grid;grid-template-columns:48px 1fr 48px;gap:10px;align-items:center}.count-stepper input{margin:0;text-align:center;height:44px;padding:4px;font-size:24px;appearance:textfield}.count-stepper input::-webkit-inner-spin-button{display:none}.phone-phase #game-message:empty{display:none}.phone-phase #game-message{font-size:13px;color:#9a301e}.phone-game #phone-invite{text-align:center;display:flex;flex-direction:column;gap:7px;min-height:0}.phone-game #phone-invite img{width:min(180px,40vw);height:auto;max-height:30dvh;object-fit:contain;align-self:center}.phone-game #phone-invite input{height:38px;padding:6px;font-size:12px;margin:0}.phone-game .invite-actions{display:grid;grid-template-columns:1fr 1fr;gap:7px}.phone-game .invite-actions button,.phone-game .invite-actions a{font-size:13px;min-height:42px;padding:7px;color:#17392c}.phone-game [data-invite-status]{font-size:12px;min-height:16px}
#open-join,#close-join{display:none}
@media(max-width:750px){body:not(.phone-active):has(#intro:not([hidden])){height:100dvh;overflow:hidden}body:not(.phone-active):has(#intro:not([hidden]))>header{min-height:48px;padding:5px 12px;gap:10px;flex-wrap:nowrap}body:has(#intro:not([hidden]))>header .logo{font-size:26px}body:has(#intro:not([hidden]))>header .brand-cats{display:none}body:has(#intro:not([hidden]))>header #connection,body:has(#intro:not([hidden]))>header .edition{display:none}body:has(#intro:not([hidden]))>header button{padding:6px;min-height:36px;font-size:12px}body:has(#intro:not([hidden]))>header .club-link{margin-left:auto;font-size:12px}body:has(#intro:not([hidden]))>header>a:last-child{font-size:12px}body:has(#intro:not([hidden]))>main{padding:6px 12px;height:calc(100dvh - 52px);display:flex;flex-direction:column;gap:3px}#intro:not([hidden]){display:flex;flex-direction:column;min-height:0;flex:1;gap:4px;justify-content:center}#intro .eyebrow,#intro .facts,#intro .lede,#intro .cat small,#intro .cat b{display:none}#intro h1{font-size:clamp(27px,5vh,38px);line-height:.95;letter-spacing:-1px;margin:2px 0}#intro h1 br{display:none}#intro .mascots{margin:2px 0;gap:12px;justify-content:center;height:clamp(45px,10vh,75px)}#intro .cat{background:none!important;padding:0;box-shadow:none;border:0;transform:none;display:flex;align-items:center}#intro .cat img{height:100%;width:65px;object-fit:contain}#intro .setup{position:static;margin:4px 0 0;padding:12px;border-radius:18px;gap:7px;box-shadow:3px 3px 0 #0b1e19}#intro .setup>label{font-size:12px}#intro .setup input{height:40px;margin-top:3px;padding:7px;font-size:16px}#intro .setup>button{min-height:42px;padding:8px;font-size:16px;border-radius:14px}#intro .setup-account{font-size:12px;margin:0}#intro .join{display:none;padding-top:0;border:0;margin:0;gap:7px}#open-join{display:block}#intro #paid-room-settings{margin:0;font-size:12px}body:has(#intro:not([hidden])) footer{padding-top:3px;font-size:9px;display:block}body:has(#intro:not([hidden])) footer>span:last-child{display:none}body:has(#intro:not([hidden])) #error{font-size:12px;margin:0;min-height:0}body.join-setup #intro .intro-copy,body.join-setup #intro .setup>button:not(#open-join),body.join-setup #intro #open-join,body.join-setup #intro #paid-room-settings{display:none}body.join-setup #intro .join{display:grid}body.join-setup #intro #close-join{display:block}#intro .setup:has(#paid-room-settings[open])>*:not(#paid-room-settings){display:none}#intro .setup #paid-room-settings[open]{display:flex;flex-direction:column;gap:5px}#intro #paid-room-settings[open] p{font-size:12px;line-height:1.2;margin:5px 0}#intro #paid-room-settings[open] textarea{min-height:60px;max-height:70px;padding:7px}#intro:has(#paid-room-settings[open]) .intro-copy{display:none}}
@media(max-height:620px){.phone-game{gap:4px;padding:6px}.host-ribbon{height:34px}.host-ribbon img{height:30px;width:28px}.host-ribbon p{font-size:11px}.phone-phase{gap:7px;padding:10px}.phone-phase h2{font-size:24px}.phone-phase p{font-size:15px}.phone-phase .question{font-size:17px}.phone-phase .answers{gap:7px}.phone-phase .answers button{min-height:46px;font-size:15px}.phone-phase .decision-note{font-size:12px}.rules-step p{font-size:16px}.phone-phase .skill-pad .options{margin:4px 0}.phone-phase .bean-chip{min-height:42px}.phone-phase .lobby-cats img{height:65px}.phone-overlay{padding:42px 12px 12px}.overlay-content{gap:10px}}
@media(max-height:440px){.host-ribbon{display:none}.phone-top{min-height:34px}.phone-top button,.phone-toolbar button{min-height:34px;padding:5px 10px}.phone-toolbar{min-height:34px}.phone-phase{gap:5px;padding:8px}.phone-phase h2{font-size:21px}.phone-phase p,.phone-phase .question{font-size:15px}.phone-phase .phase-label{font-size:10px}.phone-phase .answers button{min-height:42px;padding:6px}.phone-phase .rules-step p{font-size:14px}.phone-phase .lobby-cats{display:none}.phone-phase .personal-score strong{font-size:36px}.phone-phase .skill-pad .options{grid-template-columns:repeat(4,1fr)}.phone-phase .count-grid span{font-size:18px;min-height:19px}.phone-phase .bean-chip{min-height:40px}.phone-phase .skill-picks{font-size:12px}.phone-phase .memory-sequence{grid-template-columns:repeat(4,1fr)}.phone-phase .score-note,.phone-phase .decision-note{font-size:11px}.phone-phase .banter-line{font-size:12px}.phone-overlay .compact-player{padding:6px;min-height:42px}.phone-overlay .compact-player button{min-height:28px;padding:3px;font-size:11px}.phone-overlay .rules-step p{font-size:14px}.phone-overlay .rules-step{gap:8px}.phone-overlay .lobby-cats{display:none}#intro .mascots{display:none}#intro h1{font-size:24px}#intro .setup{display:grid;grid-template-columns:1fr 1fr;padding:8px}#intro .setup>label,#intro .setup-account,#intro .join,#intro #paid-room-settings{grid-column:1/-1}#intro .setup>button{min-height:37px}#intro .intro-copy{display:none}}

/* Override earlier arena rules; no hidden overflow is used to conceal controls. */
#game.phone-game{padding:8px;border-radius:24px}#game .phone-phase h2,#game .phone-overlay h2{margin:0}#game .phone-phase .skill-pad{margin:0}#game .phone-phase .skill-picks{padding:5px 7px;margin:0;line-height:1.2}#game .phone-phase .memory-sequence{margin:0}#game .phone-phase .memory-sequence span{padding:8px}#game .phone-phase .skill-pad .account-actions{margin:4px 0 0}#game .phone-phase .skill-pad button{padding:7px;min-height:44px}#game .phone-phase [data-count-form] label{margin:0}#game .phone-phase [data-count-form] input{margin:0}#game .phone-phase [data-phase="tutorial"]{gap:6px}
@media(max-height:620px){#game.phone-game{padding:6px}#game .phone-phase[data-phase="tutorial"] .question{font-size:15px}#game .phone-phase .memory-sequence+p{font-size:14px}}
@media(max-height:440px){#game.phone-game{padding:4px}#game .phone-phase .skill-pad .options{margin:2px 0}#game .phone-phase .skill-picks{padding:2px 5px}#game .phone-phase[data-phase="tutorial"] .decision-note{display:none}}

@media(max-height:440px){#game .phone-phase:has([data-count-form]){display:grid;grid-template-columns:1fr 1fr;align-content:center;gap:4px 12px}#game .phone-phase:has([data-count-form])>.phase-label,#game .phone-phase:has([data-count-form])>h2,#game .phone-phase:has([data-count-form])>.question,#game .phone-phase:has([data-count-form])>.decision-note{grid-column:1/-1}#game .phone-phase:has([data-count-form])>.count-grid{grid-column:1;grid-row:4/6;width:100%}#game .phone-phase:has([data-count-form])>form{grid-column:2;grid-row:4/6}#game .phone-phase[data-phase="tutorial"]:has(.skill-pad){gap:3px}#game .phone-phase[data-phase="tutorial"]:has(.skill-pad) .skill-pad{display:grid;grid-template-columns:1fr 180px;gap:4px 10px}#game .phone-phase[data-phase="tutorial"]:has(.skill-pad) .skill-picks{grid-column:1/-1}#game .phone-phase[data-phase="tutorial"]:has(.skill-pad) .account-actions{margin:0;align-items:center}#game .phone-phase[data-phase="tutorial"]:has(.skill-pad) .account-actions button{font-size:12px}}

.compact-player button{grid-column:auto!important;font-size:12px!important;padding:6px!important}.compact-player:has(button+button){grid-template-columns:1fr 1fr}.compact-player:has(button+button) b{grid-column:1}.compact-player:has(button+button) strong{grid-column:2}
@media(max-height:440px){.overlay-content:has(.compact-player){display:grid;grid-template-columns:1fr 1fr;gap:6px 12px;align-content:center}.overlay-content:has(.compact-player)>.phase-label,.overlay-content:has(.compact-player)>h2,.overlay-content:has(.compact-player)>.page-actions{grid-column:1/-1}.phone-overlay #phone-invite{display:grid;grid-template-columns:140px 1fr;gap:5px 10px}.phone-overlay #phone-invite img{grid-row:1/4;max-height:140px;width:140px}.phone-overlay #phone-invite input{grid-column:2}.phone-overlay #phone-invite .invite-actions{grid-column:2}.phone-overlay #phone-invite [data-invite-status]{grid-column:2}.overlay-content:has(#phone-invite){gap:6px}}

/* Bar reading: use the card's spare height for the actual decision. */
.phone-phase{container-type:size}
#game .phone-phase.bar-reading{justify-content:flex-start;gap:12px}
#game .bar-reading h2{font-size:clamp(22px,4.5cqw,27px);line-height:1.08}
#game .bar-reading .phase-label{font-size:12px}
#game .bar-reading .question{font-size:calc(clamp(22px,5.4cqh,34px)*var(--reading-scale,1));font-weight:700;line-height:1.16;text-wrap:pretty}
#game .bar-reading .answers{flex:1;min-height:110px;grid-auto-rows:minmax(min-content,1fr);gap:12px;margin:4px 0}
#game .bar-reading .answers button{font-size:calc(clamp(20px,4.8cqh,30px)*var(--reading-scale,1)*var(--answer-scale,1));font-weight:900;line-height:1.12;min-height:54px;padding:12px;display:flex;align-items:center;justify-content:center;border-width:3px;border-radius:20px}
#game .bar-reading .decision-note{font-size:14px;line-height:1.18;flex-shrink:0}
#game .bar-reading[data-phase="pot-read"] .question{flex:1;display:flex;align-items:center}
#game .bar-reading[data-phase="pot-answer"]>[data-action="pot-buzz"]{flex:1;font-size:clamp(28px,6cqh,40px);min-height:72px;margin:12px 0}
@media(max-height:620px){#game .phone-phase.bar-reading{gap:8px}#game .bar-reading .answers{gap:8px;margin:2px 0}#game .bar-reading .answers button{padding:8px;min-height:50px}#game .bar-reading .decision-note{font-size:12px}}
@media(max-height:440px){#game .phone-phase.bar-reading{gap:5px}#game .bar-reading .answers{min-height:90px;gap:7px}#game .bar-reading .question{font-size:calc(22px*var(--reading-scale,1))}#game .bar-reading .answers button{font-size:calc(21px*var(--reading-scale,1)*var(--answer-scale,1));padding:6px;min-height:42px}#game .bar-reading .decision-note{font-size:11px}#game .bar-reading[data-phase="pot-answer"]>[data-action="pot-buzz"]{margin:2px 0;min-height:50px}}

@media(max-height:440px){#game .bar-reading:has(.payoff-table){display:grid;grid-template-columns:1.2fr 1fr;align-content:stretch;grid-template-rows:auto auto auto 1fr auto}#game .bar-reading:has(.payoff-table)>.phase-label,#game .bar-reading:has(.payoff-table)>h2,#game .bar-reading:has(.payoff-table)>.question,#game .bar-reading:has(.payoff-table)>.decision-note{grid-column:1/-1}#game .bar-reading:has(.payoff-table)>.payoff-table{grid-column:1;grid-row:4;align-self:center}#game .bar-reading:has(.payoff-table)>.answers{grid-column:2;grid-row:4;min-height:60px;margin:0}#game .bar-reading:has(.payoff-table)>.answers button{font-size:calc(20px*var(--reading-scale,1)*var(--answer-scale,1))}}

#game .bar-reading .answers{grid-template-columns:repeat(2,minmax(0,1fr))}#game .bar-reading .answers button{min-width:0;overflow-wrap:normal;word-break:normal;hyphens:none}

/* Personal score and countdown take priority in a noisy, dim room. */
#game .phone-top{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr) 44px;grid-template-areas:"score timer sound" "round pot sound";gap:2px 8px;min-height:70px;flex-shrink:0;align-items:center}
#game .phone-top .my-beans{grid-area:score;margin:0;font-size:34px;font-weight:900;line-height:1;white-space:nowrap;color:#fff9df;font-variant-numeric:tabular-nums;letter-spacing:-1px}
#game .phone-top .my-beans::before{content:"YOUR BEANS";display:block;font-size:10px;letter-spacing:1px;line-height:1.3;color:#e8f780}
#game .phone-top .clock{grid-area:timer;display:block;min-width:0;padding:3px 7px;text-align:center;font-size:40px;line-height:1;font-weight:900;font-variant-numeric:tabular-nums;color:#17392c;background:#fff9df;border:2px solid #102f25;border-radius:14px;box-shadow:0 2px 0 #102f25}
#game .phone-top .clock::before{content:"TIME";display:block;font-size:10px;line-height:1.1;letter-spacing:1px}
#game .phone-top .clock:empty{visibility:hidden}
#game .phone-top .clock.is-urgent{color:#fff9df;background:#a92319;border-color:#fff9df}
#game .phone-top .round-pill{grid-area:round;max-width:100%;font-size:12px;line-height:1.1}
#game .phone-top .jackpot-pill{grid-area:pot;font-size:13px;line-height:1.1;text-align:center}
#game .phone-top>button{grid-area:sound;align-self:start;margin-top:4px}
@media(max-height:620px){#game .phone-top{min-height:64px}#game .phone-top .my-beans{font-size:30px}#game .phone-top .clock{font-size:34px}#game .host-ribbon{display:none}}
@media(max-height:440px){#game .phone-top{grid-template-columns:1fr 1fr auto 44px;grid-template-areas:"score timer round sound" "score timer pot sound";min-height:49px}#game .phone-top .my-beans{font-size:30px}#game .phone-top .clock{font-size:32px}#game .phone-top .round-pill,#game .phone-top .jackpot-pill{text-align:left}}

@media(max-height:440px){#game .phone-phase:has(.skill-pad){gap:3px}}

/* Three separate meters: personal score, shared pot, remaining time. */
#game .phone-top{grid-template-columns:repeat(3,minmax(0,1fr));grid-template-areas:"score pot timer" "round round round";gap:3px 8px;min-height:72px}
#game .phone-top .my-beans,#game .phone-top .jackpot-pill{display:block;margin:0;min-width:0;border:2px solid #789775;border-radius:14px;padding:4px 6px;text-align:center;font-size:32px;font-weight:900;line-height:1;letter-spacing:-.5px;font-variant-numeric:tabular-nums;white-space:nowrap}
#game .phone-top .my-beans{background:#193c2d;color:#fff9df}
#game .phone-top .jackpot-pill{background:#e8f780;color:#17392c;border-color:#102f25;box-shadow:0 2px 0 #102f25}
#game .phone-top .jackpot-pill::before{content:"BEAN POT";display:block;font-size:10px;letter-spacing:1px;line-height:1.3}
#game .phone-top .round-pill{font-size:11px;text-align:left}
#game .phone-top .clock{font-size:38px;padding:3px 4px;align-self:start}
#game .phone-top:not(:has(.jackpot-pill)){grid-template-columns:1fr 1fr;grid-template-areas:"score timer" "round round"}
#game .phone-toolbar>[data-ui="sound"]{min-width:42px;padding:5px;font-size:23px;line-height:1}
@media(max-height:620px){#game .phone-top{min-height:66px}#game .phone-top .my-beans,#game .phone-top .jackpot-pill{font-size:30px}#game .phone-top .clock{font-size:34px}}
@media(max-height:440px){#game .phone-top{grid-template-columns:1fr 1fr 1fr 1fr;grid-template-areas:"score pot timer round";min-height:49px}#game .phone-top .my-beans,#game .phone-top .jackpot-pill{font-size:30px;padding:3px 6px}#game .phone-top .clock{font-size:32px}#game .phone-top:not(:has(.jackpot-pill)){grid-template-columns:1fr 1fr 1fr;grid-template-areas:"score timer round"}}

/* Results read as winner, personal net change, then a short explanation. */
#game .phone-phase:is([data-phase="reveal"],[data-phase="pot-result"]){justify-content:space-evenly;gap:12px}
#game .phone-phase:is([data-phase="reveal"],[data-phase="pot-result"]) h2{font-size:clamp(25px,5.5cqh,36px);font-weight:900;line-height:1.06;overflow-wrap:anywhere;text-align:center}
#game .result-change{border:3px solid #244b3a;border-radius:22px;padding:12px 8px;text-align:center;background:#edf4cc}
#game .result-change>span{display:block;font-size:16px;font-weight:700;line-height:1.15}
#game .result-change>strong{display:block;font-size:clamp(52px,13cqh,86px);font-weight:900;line-height:1.05;letter-spacing:-2px;font-variant-numeric:tabular-nums}
#game .result-change>b{display:block;font-size:20px;line-height:1.15}
#game .result-loss{background:#ffe1d2;color:#7f1e12;border-color:#9c2c1a}
#game .result-gain{background:#e8f780;color:#17392c}
#game .result-answer{font-size:clamp(18px,4cqh,25px);font-weight:700;line-height:1.15;text-align:center;text-wrap:pretty}
#game .result-breakdown{font-size:17px;line-height:1.15;text-align:center}
#game .result-next{font-size:15px;text-align:center;line-height:1.15}
@media(max-height:620px){#game .phone-phase:is([data-phase="reveal"],[data-phase="pot-result"]){gap:8px}#game .phone-phase:is([data-phase="reveal"],[data-phase="pot-result"]) h2{font-size:26px}#game .result-change{padding:8px}#game .result-change>strong{font-size:54px}#game .result-change>b{font-size:18px}#game .result-answer{font-size:18px}#game .result-breakdown{font-size:15px}#game .result-next{font-size:13px}}
@media(max-height:440px){#game .phone-phase:is([data-phase="reveal"],[data-phase="pot-result"]){display:grid;grid-template-columns:1.2fr 1fr;grid-template-rows:auto auto auto 1fr;gap:4px 14px;align-content:center}#game .phone-phase:is([data-phase="reveal"],[data-phase="pot-result"])>.phase-label{grid-column:1}#game .phone-phase:is([data-phase="reveal"],[data-phase="pot-result"]) h2{grid-column:1;font-size:24px;text-align:left}#game .result-change{grid-column:2;grid-row:1/5;align-self:center}#game .result-change>strong{font-size:60px}#game .result-answer{grid-column:1;font-size:17px;text-align:left}#game .result-breakdown{grid-column:1;font-size:14px;text-align:left}#game .result-next{display:none}}

/* Final standings: winner, personal final total and finishing place. */
#game .phone-phase[data-phase="finished"]{justify-content:space-evenly;gap:12px;text-align:center}
#game .phone-phase[data-phase="finished"] h2{font-size:clamp(26px,5.4cqh,36px);line-height:1.06;overflow-wrap:anywhere}
#game .match-score{padding:12px 8px;border:3px solid #17392c;border-radius:22px;background:#e8f780}
#game .match-score>span{display:block;font-size:18px;font-weight:700;line-height:1.15}
#game .match-score>strong{display:block;font-size:clamp(54px,14cqh,90px);line-height:1.05;font-weight:900;letter-spacing:-2px;font-variant-numeric:tabular-nums}
#game .match-place>span{display:block;font-size:16px;font-weight:700;line-height:1.2}
#game .match-place>b{display:block;font-size:clamp(26px,6cqh,38px);font-weight:900;line-height:1.1}
#game .phone-phase[data-phase="finished"] .page-actions{margin:0;flex-shrink:0}
#game .phone-phase[data-phase="finished"] .button-link{display:flex;align-items:center;justify-content:center;text-decoration:none;color:#17392c;font-weight:900;background:#fff9df;border:2px solid #17392c;border-radius:16px;padding:10px;min-height:46px;font-size:17px;line-height:1.1;box-shadow:0 3px 0 #17392c}
@media(max-height:620px){#game .phone-phase[data-phase="finished"]{gap:8px}#game .phone-phase[data-phase="finished"] h2{font-size:26px}#game .match-score{padding:8px}#game .match-score>strong{font-size:60px}#game .match-place>b{font-size:28px}}
@media(max-height:440px){#game .phone-phase[data-phase="finished"]{display:grid;grid-template-columns:1.2fr 1fr;grid-template-rows:auto auto auto auto;gap:5px 14px;text-align:left;align-content:center}#game .phone-phase[data-phase="finished"]>.phase-label,#game .phone-phase[data-phase="finished"]>h2,#game .phone-phase[data-phase="finished"]>.match-place{grid-column:1}#game .phone-phase[data-phase="finished"]>.match-score{grid-column:2;grid-row:1/4;text-align:center}#game .phone-phase[data-phase="finished"]>.page-actions{grid-column:1/-1}#game .phone-phase[data-phase="finished"] h2{font-size:24px}#game .match-place>b{font-size:26px}#game .match-score>strong{font-size:64px}}

#game .phone-toolbar>[data-ui="final-scores"]{padding:6px 8px;font-size:13px}

/* Final-score pages prioritize complete names, places and final Bean totals. */
#game .final-standings{justify-content:flex-start;gap:12px}
#game .final-standings>h2{font-size:30px;line-height:1.05}
#game .final-standings>.phase-label{font-size:12px}
#game .final-standing{flex:1;min-height:0;display:grid;grid-template-columns:1fr 1.4fr;grid-template-rows:auto 1fr auto;gap:6px 12px;align-items:center;border:3px solid #264f3b;border-radius:22px;padding:14px;background:#f4f2d9;color:#17392c}
#game .final-standing.standing-you{background:#e8f780;border-color:#17392c}
#game .final-standing h3{grid-column:1/-1;margin:0;font-size:clamp(22px,3.2vh,28px);line-height:1.1;letter-spacing:-.4px;overflow-wrap:anywhere}
#game .standing-place,#game .standing-beans{min-width:0;line-height:1.05;text-align:center}
#game .standing-place strong{display:block;font-size:clamp(32px,5vh,44px);font-weight:900}
#game .standing-beans strong{display:block;font-size:clamp(40px,6.6vh,58px);font-weight:900;letter-spacing:-1.5px;font-variant-numeric:tabular-nums}
#game .standing-place small,#game .standing-beans small{display:block;font-size:12px;font-weight:700;letter-spacing:1px;line-height:1.2}
#game .standing-status{grid-column:1/-1;font-size:13px;font-weight:900;line-height:1.1;margin:0;letter-spacing:.4px}
#game .final-standings>.page-actions{flex-shrink:0;margin:0;gap:12px}
#game .final-standings>.page-actions button{min-height:48px;font-size:18px}
@media(max-height:620px){#game .final-standings{gap:9px}#game .final-standings>h2{font-size:26px}#game .final-standing{padding:10px;gap:5px 8px}#game .final-standing h3{font-size:21px}#game .standing-place strong{font-size:32px}#game .standing-beans strong{font-size:42px}#game .standing-status{font-size:12px}}
@media(max-height:440px){#game .final-standings{display:grid;grid-template-columns:1fr 1fr;grid-template-rows:auto auto minmax(0,1fr) auto;gap:6px 12px;align-content:stretch}#game .final-standings>.phase-label,#game .final-standings>h2,#game .final-standings>.page-actions{grid-column:1/-1}#game .final-standing{grid-row:3;padding:8px;gap:4px 8px}#game .final-standings>h2{font-size:24px}#game .final-standing h3{font-size:20px}#game .standing-place strong{font-size:30px}#game .standing-beans strong{font-size:38px}#game .final-standings>.page-actions button{min-height:42px;padding:7px}}

@media(max-height:440px){#game .final-standings>.final-standing:only-of-type{grid-column:1/-1}#game .final-standings>.final-standing:only-of-type .standing-place strong{font-size:36px}#game .final-standings>.final-standing:only-of-type .standing-beans strong{font-size:48px}}

@media(max-height:440px){#game .bar-reading[data-phase="pot-answer"]:has(.answers){display:grid;grid-template-columns:1fr 1fr;grid-template-rows:auto auto minmax(0,1fr) auto;gap:5px 12px}#game .bar-reading[data-phase="pot-answer"]:has(.answers)>.phase-label,#game .bar-reading[data-phase="pot-answer"]:has(.answers)>h2{grid-column:1/-1}#game .bar-reading[data-phase="pot-answer"]:has(.answers)>.question{grid-column:1;grid-row:3;align-self:center}#game .bar-reading[data-phase="pot-answer"]:has(.answers)>.answers{grid-column:2;grid-row:3;min-height:0;margin:0;align-self:stretch}#game .bar-reading[data-phase="pot-answer"]:has(.answers)>.decision-note{grid-row:4}}
