#accountPage{position:absolute;inset:0;z-index:70;height:var(--surface-height,100dvh);display:flex;flex-direction:column;overflow:hidden;background:#101d16;transform:translateX(105%);visibility:hidden;transition:transform .28s ease,visibility .28s;color:var(--ink)}
.account-open #accountPage{transform:translateX(0);visibility:visible}.account-open #login,.account-open #app{pointer-events:none}
#accountPage>header{flex:none;position:relative;z-index:3;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 24px;background:#101a16;border-bottom:1px solid #d7bb7b30}
#accountPage main{flex:1;min-height:0;min-width:0;max-width:1120px;margin:auto;padding:20px 30px 32px;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable;touch-action:pan-y pinch-zoom;-webkit-overflow-scrolling:touch}#accountPage h1{font:30px var(--serif);margin:4px 0 14px}#accountPage h2{font:23px var(--serif)}
.account-layout{display:grid;grid-template-columns:1fr 1.2fr;gap:32px;align-items:start}.account-welcome{padding:25px 25px 0 0}.account-welcome img{width:100%;max-height:230px;object-fit:cover;border-radius:8px;opacity:.8}
.account-form{border:1px solid #d7bb7b30;border-radius:12px;background:#17281e;padding:20px}.account-form nav,.account-tabs,.account-actions{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:16px}.account-form nav button[aria-pressed=true],.account-tabs button[aria-pressed=true]{border-color:var(--gold);color:var(--gold)}
.account-fields{display:grid;grid-template-columns:1fr 1fr;gap:12px}.account-fields label{display:flex;flex-direction:column;gap:5px;font-size:12px;color:#c7d5c9}.account-fields input{width:100%;font-size:16px;min-height:42px;padding:8px 10px}.account-fields .full{grid-column:1/-1}
.account-form .primary,.account-primary{background:var(--gold);color:#152217}.account-form .primary{margin-top:16px;min-height:42px;width:100%}.account-note{padding:10px 12px;border:1px solid #bda66b55;background:#bda66b0c;font-size:12px;line-height:1.5;border-radius:6px}.account-error{color:#efb5aa}.account-check{display:flex;gap:8px;align-items:center;margin-top:12px;font-size:12px}.account-check input{width:auto}
.account-code{font:26px monospace;letter-spacing:8px;min-height:42px;text-align:center;padding:10px}.account-keypad{display:grid;grid-template-columns:repeat(6,1fr);gap:6px}.account-keypad button{min-height:38px}.account-test-code{letter-spacing:4px;font:20px monospace;color:var(--gold)}
.account-wealth{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:16px 0}.account-wealth>div,.account-panel{padding:16px;background:#192a20;border:1px solid #d7bb7b30;border-radius:8px}.account-wealth small{font-size:10px;letter-spacing:1px}.account-wealth strong{display:block;font:27px var(--serif);margin-top:8px}.account-profile-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.account-collectibles{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.account-collectibles article{border:1px solid #d7bb7b30;border-radius:9px;overflow:hidden;background:#17271d}.account-collectibles img{display:block;width:100%;aspect-ratio:1.8;object-fit:cover}.account-collectibles article>div{padding:14px}.account-collectibles h2{margin:0 0 8px}.account-pack-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:12px}.account-order{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:14px;border-bottom:1px solid #d7bb7b30}
#accountPage .account-back{min-width:85px}.account-room-strip{display:flex;gap:6px;align-items:stretch;overflow-x:auto;margin:0 0 8px}.room-seat{font-size:10px;min-width:105px;min-height:62px;flex:1;border:1px solid #d7bb7b30;border-radius:6px;padding:5px 8px;background:#15271c}.room-seat.self{border-color:var(--gold)}.room-seat.empty{opacity:.55}.room-player{display:flex;align-items:center;gap:7px}.room-portrait{display:grid;place-items:center;flex-shrink:0;width:26px;height:26px;border:1px solid #d7bb7b55;border-radius:50%;background:#253b2e;color:var(--gold);font:15px var(--serif)}.room-seat b{display:block;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px;font-weight:500}.room-bankroll{display:block;margin-top:3px;white-space:nowrap;text-align:right}.room-bankroll strong{font:11px var(--serif);font-variant-numeric:tabular-nums;color:var(--gold)}.room-bankroll small{font-size:8px;letter-spacing:.7px;color:var(--muted)}
.phone-layout #accountPage main{padding:12px 24px}.phone-layout #accountPage>header{height:44px;padding:5px 18px}.phone-layout .account-layout{gap:24px;grid-template-columns:.8fr 1.4fr}.phone-layout .account-welcome{padding:10px 10px 0 0}.phone-layout .account-welcome img{max-height:170px}.phone-layout .account-form{padding:14px}.phone-layout #accountPage h1{font-size:26px}.phone-layout .account-fields{gap:8px}.phone-layout .account-fields input{min-height:34px;padding:5px 9px}.phone-layout .account-form .primary{min-height:34px;margin-top:10px}.phone-layout .account-form nav{margin-bottom:10px}.phone-layout .account-wealth{margin:10px 0}.phone-layout .account-wealth>div{padding:10px}.phone-layout .account-collectibles img{aspect-ratio:2.2}
/* The game frame owns scaling; only account content scrolls below its header. */
.phone-layout #accountPage{transition:none}
.phone-layout:not(:fullscreen) #accountPage main{touch-action:pinch-zoom}
#mobileEntry{position:fixed;inset:auto;left:50%;top:50%;margin:0;width:min(100vw,1120px);height:min(100dvh,550px);max-width:none;max-height:none;padding:12px 18px;background:#13231a;color:#eee9da;transform:translate(-50%,-50%);border:1px solid #bda66b66;border-radius:10px;overflow:auto}
#mobileEntry>header{display:flex;align-items:center;gap:12px}#mobileEntry>header strong{margin-right:auto}#mobileEntry [data-count]{font-size:12px;color:#aec3b5}#mobileEntry .entry-content{padding:10px 0;display:grid;gap:8px}
#mobileEntry button{min-height:42px;min-width:0;font-size:18px;padding:4px 10px;background:#20382a;color:#eee9da;border:1px solid #bda66b55;border-radius:5px;touch-action:manipulation}#mobileEntry button[aria-pressed=true],#mobileEntry [data-key=Done]{background:#d2bb7c;color:#14251a}
#mobileEntry .entry-row{display:flex;justify-content:center;gap:6px;margin:6px 0}#mobileEntry .entry-row button{flex:1;max-width:100px}
#mobileEntry .entry-display{display:flex;gap:10px;align-items:center;padding:4px 12px;background:#0a1810;border:1px solid #bda66b77;border-radius:6px;min-height:46px}#mobileEntry output{flex:1;min-width:0;white-space:pre;overflow-x:auto;font:22px monospace;user-select:text}.entry-caret{color:#e5ca80}
#mobileEntry footer{display:flex;gap:6px}#mobileEntry footer button{flex:1}#mobileEntry [data-key=Space]{flex:3}#mobileEntry::backdrop{background:#08140df0}
.phone-layout #mobileEntry{width:var(--surface-width);height:var(--surface-height);transform:translate(-50%,-50%) scale(var(--desktop-scale));border-radius:0}
.phone-layout #mobileEntry button{min-height:50px}.phone-layout #mobileEntry>header button{min-height:38px}
.portrait-landscape #mobileEntry{transform:translate(-50%,-50%) rotate(90deg) scale(var(--desktop-scale))}
@media(max-height:450px){#mobileEntry{padding:6px 12px}#mobileEntry button{min-height:33px;font-size:16px}#mobileEntry .entry-content{padding:6px 0;gap:4px}#mobileEntry .entry-row{margin:4px 0}}
@media(prefers-reduced-motion:reduce){#accountPage{transition:none}}
.account-room-strip[hidden]{display:none}
#accountPage main:has(#serverInsights) .account-wealth{display:none}
.server-insights .club-verdict{padding:18px}.server-insights .club-verdict h2{font-size:26px}.server-insights .club-sample-values{margin:16px 0;gap:16px}.server-insights .club-sample-values strong{font-size:24px}.server-insights .club-analysis-controls{margin:0 0 14px;gap:10px}.server-insights .club-analysis-controls select{min-height:34px;padding:7px;margin-top:4px}.server-insights .club-record-heading{margin-bottom:12px}.server-insights .club-chart svg{display:block;width:100%;max-height:260px}.server-insights .account-actions{margin-top:16px}
#accountPage{overflow-x:hidden}#accountPage main{width:100%}.account-fields>*{min-width:0}
/* Images, selects and charts must fit the same width as the other tabs. */
.account-collectibles{grid-template-columns:repeat(3,minmax(0,1fr))}.account-collectibles>*{min-width:0}.account-collectibles img{max-width:100%}
.server-insights,.server-insights>*{min-width:0;max-width:100%}.server-insights .club-analysis-controls,.server-insights .club-metrics{grid-template-columns:repeat(3,minmax(0,1fr))}.server-insights .club-sample-values{grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(0,1.2fr)}.server-insights .club-detail-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.server-insights :is(.club-analysis-controls,.club-sample-values,.club-metrics,.club-detail-grid)>*{min-width:0}.server-insights select{min-width:0;max-width:100%}
