/* v38: compact satin score frame with external labels and shared cash icon. */
#homeScreen .home-hero{height:clamp(226px,31dvh,290px);min-height:0;grid-template-columns:43% minmax(0,1fr);grid-template-rows:minmax(0,1fr) auto;gap:4px}
#homeScreen .home-logo{grid-column:2;grid-row:1;width:100%;max-width:none;height:100%;align-self:stretch;object-fit:contain}
#homeScreen .home-mascot{grid-column:1;grid-row:1/3;width:100%;height:100%;align-self:stretch;object-fit:contain;transform-origin:center bottom}
#homeScreen .hero-play{grid-column:2;grid-row:2;width:100%;gap:4px}
#homeScreen .hero-play>small{display:none}
#homeScreen .play-button{max-width:none;min-height:54px;font-size:30px;padding:5px 8px}
#homeScreen .next-level{font-size:12px;line-height:1.15;padding:4px 5px}

#gameScreen{--game-chrome:354px}
#gameScreen .game-topbar{--brand-row:clamp(56px,16vw,70px);display:grid;grid-template-columns:34px 48px minmax(0,1fr) 34px 34px;grid-template-rows:var(--brand-row) 34px;height:calc(var(--brand-row) + 38px);min-height:calc(var(--brand-row) + 38px);gap:4px;align-items:center}
#gameScreen .game-topbar>.game-brand{display:block!important;grid-column:1/3;grid-row:1;width:100%;height:100%;min-width:0;padding:0}
#gameScreen .game-brand img{width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 2px 2px #4e214f60)}
#gameScreen .game-topbar>.game-stats{grid-column:3/-1;grid-row:1;position:relative;container-type:inline-size;display:block;justify-self:end;width:clamp(146px,42vw,196px);max-width:100%;height:44px;min-width:0;padding:0;border:0;border-radius:18px;background:none;box-shadow:none;overflow:visible;color:#55204f}
#gameScreen .game-stats .score-frame{position:absolute;left:0;right:0;bottom:2px;height:28px;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:3px;padding:2px;border:2px solid #dcae54;border-radius:18px;background:#572e5e;box-shadow:inset 0 0 0 1px #f4d894}
#gameScreen .game-stats .game-score,#gameScreen .game-stats .game-credit-line{position:relative;top:auto;left:auto;transform:none;display:flex;align-items:center;justify-content:center;gap:2px;min-width:0;max-width:none;width:100%;height:100%;padding:1px 3px;border:1px solid #ebc879;background:linear-gradient(#ffedc2,#ead099);border-radius:13px;text-align:center;white-space:nowrap;overflow:visible;text-shadow:none}
#gameScreen .game-stats .game-credit-line{color:#55204f;background:linear-gradient(#efe0f6,#c9addb);border-color:#d8badf}
#gameScreen .game-stats .stat-label{position:absolute;left:0;right:0;top:-21px;height:13px;display:block;font:1000 11px/13px Nunito,sans-serif;color:#fff;letter-spacing:0;text-shadow:-1px -1px #592750,1px -1px #592750,-1px 1px #592750,1px 1px #592750}
#gameScreen .game-stats .stat-icon{display:block;flex:none;width:clamp(13px,9cqw,17px);height:18px;object-fit:contain;filter:none}
#gameScreen .game-stats .game-score b,#gameScreen .game-stats .game-credit-line b{display:block;flex:1;min-width:0;font:1000 clamp(10px,7.1cqw,13px)/1 Nunito,sans-serif;color:inherit;letter-spacing:-.04em;font-variant-numeric:tabular-nums}
#gameScreen .game-stats.large-balance .game-credit-line b,#gameScreen .game-stats .game-score b.long-value{font-size:clamp(8px,5.6cqw,11px)}
#gameScreen .game-stats.large-balance .game-credit-line>.stat-label{display:block}
#gameScreen .game-topbar>.home-return{grid-column:1;grid-row:2;width:34px;min-width:34px;height:34px}
#gameScreen .game-topbar>.game-level-copy{grid-column:2/4;grid-row:2;min-width:0;padding:0;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:1px}
#gameScreen .game-topbar .game-level-copy b{font-size:16px;line-height:1.05}
#gameScreen .game-topbar .game-level-copy small{display:block;font-size:11px;line-height:1.1;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#gameScreen #pauseBtn{grid-column:4;grid-row:2}
#gameScreen #gameSettingsBtn{grid-column:5;grid-row:2}

@media(max-height:700px){#homeScreen .home-hero{height:190px}#homeScreen .play-button{min-height:50px;font-size:27px}#gameScreen{--game-chrome:340px}#gameScreen .game-topbar{--brand-row:56px}}
@media(max-height:600px){#homeScreen .home-hero{height:164px}#homeScreen .home-logo,#homeScreen .home-mascot{height:100%}#homeScreen .play-button{min-height:44px;font-size:25px}#homeScreen .next-level{font-size:10px;padding:3px}#gameScreen{--game-chrome:253px}#gameScreen .game-topbar{--brand-row:50px;grid-template-rows:50px 30px;height:83px;min-height:83px;gap:3px}#gameScreen .game-topbar>.home-return,#gameScreen .round.mini{width:30px;min-width:30px;height:30px}#gameScreen .game-topbar .game-level-copy b{font-size:14px}}
@media(orientation:landscape) and (max-height:600px){
 #gameScreen{grid-template-rows:70px 48px 26px 36px minmax(84px,1fr);row-gap:4px}
 #gameScreen .game-topbar{--brand-row:40px;grid-template-columns:28px 38px minmax(0,1fr) 28px 28px;grid-template-rows:40px 28px;height:70px;min-height:70px;gap:2px}
 #gameScreen .game-topbar>.game-brand{width:100%;height:40px}
 #gameScreen .game-topbar>.home-return,#gameScreen .round.mini{width:28px;min-width:28px;height:28px}
 #gameScreen .game-topbar .game-level-copy b{font-size:12px}
 #gameScreen .game-topbar .game-level-copy small{display:none}
 #gameScreen .game-stats .game-score,#gameScreen .game-stats .game-credit-line{font-size:7px}
 #gameScreen .game-stats .game-score b,#gameScreen .game-stats .game-credit-line b{font-size:10px}
 #gameScreen .game-stats.large-balance .game-credit-line b,#gameScreen .game-stats .game-score b.long-value{font-size:9px}
 #gameScreen .booster-bar{height:84px;min-height:84px;gap:3px}
 #gameScreen .booster{height:36px;min-height:36px}
}

/* A full-width two-line account action remains easy to find between cards. */
#homeScreen #onlineBtn{display:grid;grid-template-columns:14px minmax(0,1fr) 18px;grid-template-rows:auto auto;column-gap:9px;row-gap:2px;align-content:center;align-items:center;width:100%;min-height:54px;padding:7px 11px;border-radius:18px;background:linear-gradient(#fff9ee,#f5e6f0);text-align:left;text-shadow:none}
#homeScreen #onlineBtn .connection-dot{grid-column:1;grid-row:1/3;justify-self:center}
#homeScreen #onlineBtn>b{grid-column:2;grid-row:1;font:900 17px/1.15 Nunito,sans-serif;white-space:normal}
#homeScreen #onlineBtn .account-status{grid-column:2;grid-row:2;text-align:left;max-width:100%;font:800 10px/1.3 Nunito,sans-serif;min-width:0}
#homeScreen #onlineBtn .account-arrow{grid-column:3;grid-row:1/3;font:900 28px/1 Nunito,sans-serif;max-width:none;margin:0}
@media(max-height:600px){#homeScreen{gap:1.5px}#homeScreen #onlineBtn{min-height:44px;padding:4px 10px}#homeScreen #onlineBtn>b{font-size:15px}#homeScreen #onlineBtn .account-status{font-size:9.5px}}
