/* Customer screens share one layout and navigation. Game geometry is unchanged. */
.customer-portal{font-family:Inter,system-ui,-apple-system,"Segoe UI",sans-serif;font-size:15px;line-height:1.5}
.customer-portal .app-shell{width:min(100%,960px);margin-inline:auto;padding:16px 18px calc(100px + env(safe-area-inset-bottom))}
.customer-portal #lobbyView{padding:0;min-height:calc(100dvh - 150px)}
.customer-portal button,.customer-portal input,.customer-portal select{font:inherit}
.customer-portal button,.customer-portal input,.customer-portal select,.customer-portal summary{min-height:48px}
.customer-portal button{cursor:pointer;white-space:normal}
.customer-portal button:disabled{cursor:default}
.customer-portal .connection-badge{position:static;width:fit-content;margin:0 0 8px auto;font-size:11px;transform:none}
.customer-portal .game-header{display:grid;grid-template-columns:minmax(0,1fr) auto 44px;align-items:center;gap:10px;padding:0 0 18px;margin:0}
.customer-portal .profile-chip{min-width:0;gap:9px}
.customer-portal .profile-chip strong{font-size:15px;max-width:220px}
.customer-portal .profile-chip small{font-size:11px;letter-spacing:1px}
.customer-portal .avatar{width:40px;height:40px;font-size:18px;flex-shrink:0}
.customer-portal .wallet-chip{min-height:44px;color:var(--text);padding:8px 12px;white-space:nowrap}
.customer-portal .wallet-chip small{font-size:12px;font-weight:500}
.customer-portal .icon-btn,.customer-portal .round-refresh{width:44px;min-width:44px;height:44px;min-height:44px}
.customer-page{width:100%;min-width:0;margin-inline:auto;padding-bottom:20px}
.customer-page-heading{margin:8px 0 20px}
.customer-page-heading h1{font-size:30px;line-height:1.2;letter-spacing:-.7px;margin:7px 0 9px}
.customer-page-heading p{margin:0;color:#c3d3d9;max-width:52ch;font-size:15px}
.customer-portal .eyebrow{font-size:11px;letter-spacing:1.5px}
.customer-portal .wood-card{border-radius:20px}
#customerHomePage{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr);gap:18px;align-items:start}
#customerHomePage>.customer-page-heading{grid-column:1/-1;margin-bottom:0}
.play-setup{padding:24px;grid-row:span 2}
.match-format-picker{display:grid;grid-template-columns:1fr 1fr;gap:8px;background:rgba(0,0,0,.2);padding:6px;border-radius:15px}
.match-format-picker button{display:grid;gap:2px;text-align:center;padding:11px 8px;border:1px solid transparent;background:transparent;color:#d0dde1;border-radius:11px}
.match-format-picker strong{font-size:16px}.match-format-picker span{font-size:13px}
.match-format-picker button.selected{border-color:var(--accent);background:rgba(240,213,158,.13);color:var(--accent)}
#selectedMatchDescription{min-height:44px;margin:20px 0 14px;color:#d1dce0;font-size:14px}
.selected-match-fees{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:0}
.selected-match-fees>div{background:rgba(1,13,21,.42);border:1px solid #38505c;border-radius:14px;padding:14px 12px;min-width:0}
.selected-match-fees dt{font-size:13px;color:#c7d5db;margin-bottom:7px}.selected-match-fees dd{font-size:13px;margin:0;color:#dce6e9}
.selected-match-fees strong{font-size:28px;display:block;line-height:1.2;color:#fff0cc;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.customer-explanation{font-size:13px!important;line-height:1.6;color:#c1d0d6;margin:12px 0}
.customer-play-button{width:100%;display:grid;gap:3px;padding:12px 18px;margin-top:20px;min-height:70px!important;border-radius:14px;font-weight:800}
.customer-play-button>span{font-size:18px}.customer-play-button small{font-size:13px;font-weight:500}
.customer-play-button.busy{opacity:.7}
#matchOptionsStatus{margin-bottom:0;min-height:20px}
.private-tables-panel{padding:0 20px}
.private-tables-panel summary{padding:18px 0;font-size:16px;font-weight:750;color:#f0dfbd}
.private-tables-panel summary span{display:block;font-weight:400;font-size:13px;margin:5px 0 0 17px;color:#c4d3d8}
.private-tables-panel h2{font-size:17px;letter-spacing:0;margin:0 0 6px}
.private-tables-panel p{font-size:14px;color:#c6d5db;margin:5px 0 13px;line-height:1.6}
.private-create{padding:4px 0 20px;border-bottom:1px solid #38505c}
.private-create button{width:100%;border-radius:12px}
.private-tables-panel .join-private{display:block;padding:20px 0;background:transparent;border:0;box-shadow:none;border-radius:0}
.customer-portal .code-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;margin-top:12px}
.customer-portal .code-row input{min-width:0;font-size:18px;letter-spacing:3px}
.customer-portal .code-row button{padding:10px 16px}
.customer-browse-button{width:100%;min-height:54px!important;border-radius:14px;font-size:15px}
.customer-portal .table-browser{padding:22px}
.customer-portal .section-heading{align-items:end;gap:12px}
.customer-portal .section-heading label{display:grid;gap:6px;min-width:0;flex:1;font-size:14px;color:#d3dfe4}
.customer-portal .section-heading select{width:100%;color:#f0f6f8;background:#102632;border:1px solid #527180;border-radius:10px;padding:8px 12px}
.customer-portal .table-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;padding:16px;margin-top:13px}
.customer-portal .table-main{min-width:0}.customer-portal .table-title-line{display:flex;gap:8px;align-items:start;flex-wrap:wrap}
.customer-portal .table-title-line strong{font-size:16px;line-height:1.4;overflow-wrap:anywhere}
.customer-portal .table-badge{font-size:11px;flex-shrink:0}
.customer-portal .table-info{display:grid;gap:5px;margin-top:11px;font-size:13px;line-height:1.5;color:#d0dce2}
.customer-portal .table-info strong{color:#fff0cd;font-weight:700}
.customer-portal .join-table-btn{align-self:center;min-width:72px;min-height:48px;border-radius:12px}
.customer-portal .empty-state{font-size:14px;line-height:1.7;padding:25px 16px}
.customer-portal .bottom-nav{position:fixed;left:50%;right:auto;bottom:0;transform:translateX(-50%);width:min(100%,960px);display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:4px;padding:8px 10px calc(8px + env(safe-area-inset-bottom));z-index:45;border-radius:18px 18px 0 0}
.customer-portal .bottom-nav button{display:grid;justify-items:center;align-content:center;gap:4px;min-height:58px;font-size:13px;line-height:1.2;padding:5px 1px;border-radius:12px;color:#c9d7dd}
.customer-portal .bottom-nav button span{font-size:20px;line-height:1}
.customer-portal .bottom-nav button.active{color:#ffe7b6!important;background:#29414a!important}
.customer-portal .lobby-error{font-size:14px;margin:8px 0 14px;padding:0 4px;line-height:1.6}
.customer-portal .lobby-error:empty{display:none}
.customer-page>.wallet-modal-card,.customer-page>.history-modal-card,.customer-page>.profile-modal-card{position:static;width:100%;max-width:none;max-height:none;overflow:visible;padding:24px;margin:0;box-sizing:border-box}
.customer-portal .wallet-modal-head h2{font-size:25px;line-height:1.25;margin:5px 0}
.customer-portal .wallet-modal-head{align-items:center;margin-bottom:18px}
.customer-balance-grid{display:grid;grid-template-columns:1.15fr 1fr;gap:12px}
.customer-balance-grid .wallet-balance-card{margin:0;padding:17px;min-width:0;background:#0b1c27;border:1px solid #3b5663;border-radius:14px}
.customer-balance-grid .wallet-balance-card:first-child{border-color:#d4bb80}
.customer-balance-grid small,.customer-balance-grid span{display:block;font-size:13px;letter-spacing:0;color:#c1d0d7;line-height:1.5}
.customer-balance-grid strong{font-size:30px!important;color:#ffebbd!important;margin:7px 0;line-height:1.2;overflow-wrap:anywhere}
.customer-page h3{font-size:18px;margin:20px 0 8px}
.customer-portal .assigned-distributor-card{margin:22px 0 10px;padding:16px;background:rgba(5,22,31,.4);border-color:#385361}
.customer-portal .assigned-distributor-card small{font-size:12px}.customer-portal .assigned-distributor-card strong{font-size:18px}.customer-portal .assigned-distributor-card span{font-size:13px}
.customer-portal .wallet-transfer-form{margin:14px 0;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:end}
.customer-portal .wallet-transfer-form label span{font-size:14px;letter-spacing:0;color:#d4dfe4}
.customer-portal .wallet-transfer-form input{font-size:18px;min-height:50px}
.customer-portal .wallet-transfer-form button{font-size:14px;padding:12px 18px;min-height:50px}
#walletTransferStatus:empty{display:none}
.customer-portal .tiny-note{font-size:13px;color:#c2d1d8;line-height:1.6}
.customer-portal .wallet-history-head strong{font-size:17px}
.customer-portal .wallet-history-row{padding:14px;background:#0b1f2b;gap:14px}
.customer-portal .wallet-history-row strong{font-size:14px}.customer-portal .wallet-history-row small{font-size:12px;color:#bdccd3}
.customer-portal .wallet-history-row .wallet-amount{font-size:15px;white-space:nowrap}
.customer-portal .history-summary,.customer-portal .history-filters{margin-top:16px}
.customer-portal .history-filters button{font-size:13px;min-height:44px;padding:9px 13px}
.customer-portal .history-match{min-height:74px}.customer-portal .history-match strong{font-size:15px}
.customer-portal .profile-identity-copy strong{font-size:22px}.customer-portal .profile-identity-copy small,.customer-portal .profile-distributor small,.customer-portal .profile-stat-grid small,.customer-portal .profile-wallet-mini small{font-size:11px}
.customer-portal .profile-recent-list{gap:10px}.customer-portal .profile-match-row{min-height:60px;font-size:14px}
.customer-portal #logoutBtn{width:100%;margin-top:20px;border-radius:12px;font-size:15px}
.customer-review-dialog{width:min(92vw,490px);max-height:90dvh;overflow:auto;box-sizing:border-box;border:1px solid #6c7d7e;border-top:3px solid #f0d59e;border-radius:20px;background:#102632;color:#edf4f5;padding:24px;box-shadow:0 25px 100px #0009}
.customer-review-dialog::backdrop{background:rgba(0,9,16,.8)}
.customer-review-dialog h2{font-size:25px;line-height:1.25;margin:9px 0 12px}.customer-review-dialog p{font-size:14px;line-height:1.65;color:#d1dce1}
.customer-review-dialog dl{display:grid;gap:0;margin:20px 0}.customer-review-dialog dl>div{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.1fr);gap:14px;border-bottom:1px solid #3b535f;padding:12px 0;font-size:14px}
.customer-review-dialog dt{color:#becfd7}.customer-review-dialog dd{margin:0;text-align:right;font-weight:700;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
.customer-review-actions{display:grid;grid-template-columns:minmax(85px,.65fr) minmax(0,1.35fr);gap:10px;margin-top:22px}.customer-review-actions button{min-height:52px;padding:10px 12px;font-size:14px;border-radius:12px}
.customer-portal .login-screen{padding:24px 0;min-height:calc(100dvh - 70px)}
.customer-portal .login-card{width:min(100%,440px);padding:28px 26px;margin:auto;border-radius:24px}
.customer-portal .logo-orbit{transform:scale(.78);margin-top:-10px;margin-bottom:-9px}
.customer-portal .brand-title{font-size:29px}.customer-portal .login-subtitle{font-size:15px;margin-top:10px}
.customer-portal .login-form{margin-top:24px}.customer-portal .login-form label span{font-size:14px}.customer-portal .login-form input{min-height:52px;font-size:17px}
.customer-portal .login-form .big-btn{font-size:17px;min-height:54px}.customer-portal .password-toggle{font-size:14px;margin-bottom:5px}
.customer-portal .login-help{font-size:14px;margin-top:18px}.customer-portal .login-help summary{display:list-item;font-size:14px}
.customer-portal .session-status{font-size:13px}
.customer-portal .game-screen{padding:0 6px 12px;max-width:760px;margin:auto}
.customer-portal .match-header{margin:0 0 8px;padding-top:0}.customer-portal .match-title strong{font-size:18px}
.customer-portal .timer-orb{width:62px;height:62px;padding:7px}.customer-portal .timer-orb small{font-size:10px}.customer-portal .timer-orb strong{font-size:21px}
.customer-portal .game-screen.is-my-turn .timer-orb{border-color:#ffe09d;box-shadow:0 0 0 3px #ffe09d33;background:#253f3c}
.customer-portal .match-meta{gap:6px;margin:4px 0 8px}.customer-portal .entry-pill{font-size:12px}.customer-portal .status-pill{font-size:10px}
.customer-portal .economy-strip{margin:0 0 8px;gap:6px}.customer-portal .economy-strip>div{min-height:36px;padding:5px 7px}.customer-portal .economy-strip small{font-size:10px}.customer-portal .economy-strip strong{font-size:14px}
.customer-portal .scoreboard{gap:6px;margin:0 0 5px}.customer-portal .score-chip{padding:6px 4px;min-height:68px}.customer-portal .score-name{font-size:11px!important}.customer-portal .score-chip small{font-size:10px}.customer-portal .score-total{font-size:22px}
.customer-portal .score-chip .player-turn-timer{display:none}.customer-portal .score-presence{font-size:11px!important}
.customer-portal .table-stage{width:min(100%,620px);padding:5px 0 8px;margin:auto}.customer-portal .board-frame{padding:5px;width:100%;border-radius:20px}
.customer-portal .touch-console{position:static;width:100%;max-width:620px;margin:0 auto}
.customer-portal .striker-slider-wrap{margin:3px 0 7px;padding:8px 10px}.customer-portal .striker-slider-wrap label{font-size:11px;margin-bottom:5px}.customer-portal .striker-slider{height:44px}
.customer-portal .turn-message{font-size:14px;line-height:1.5;min-height:26px;padding-bottom:5px}
.customer-portal .board-touch-hud{padding:9px 12px;margin-bottom:8px}.shot-help summary{font-size:13px;color:#d3dfe4;padding:8px 0;min-height:36px!important;cursor:pointer}.shot-help .touch-instruction{padding-top:7px}
.customer-portal .touch-instruction strong{font-size:13px}.customer-portal .touch-instruction small{font-size:12px}.customer-portal .shot-readout>span{font-size:11px}
.customer-portal .match-actions button{min-height:48px;font-size:14px}.customer-portal .touch-help{font-size:12px;line-height:1.5;margin:9px 2px}
.customer-portal .result-breakdown{font-size:13px}.customer-portal .result-prize small{font-size:13px}
.customer-portal #playerOperationsDialog{width:min(94vw,1000px);padding:20px;font-size:15px}.customer-portal #playerOperationsDialog button{min-height:48px}.customer-portal #playerOperationsDialog input,.customer-portal #playerOperationsDialog select{font-size:16px;min-height:48px}
@media(max-width:700px){
 .customer-portal .app-shell{padding:12px 14px calc(95px + env(safe-area-inset-bottom))}
 #customerHomePage{grid-template-columns:1fr;gap:16px}.play-setup{grid-row:auto;padding:20px}.customer-page-heading h1{font-size:27px}
 .customer-page>.wallet-modal-card,.customer-page>.history-modal-card,.customer-page>.profile-modal-card{padding:20px 16px}
 .customer-balance-grid{grid-template-columns:1fr 1fr;gap:10px}.customer-balance-grid .wallet-balance-card:first-child{grid-column:1/-1}.customer-balance-grid .wallet-balance-card:first-child strong{font-size:36px!important}
 .customer-balance-grid strong{font-size:25px!important}.customer-balance-grid small{font-size:12px}.customer-balance-grid span{font-size:12px}
 .customer-portal .wallet-transfer-form{grid-template-columns:1fr}.customer-portal .wallet-transfer-form button{width:100%}
 .customer-portal .table-browser{padding:17px}.customer-portal .table-row{padding:14px;gap:10px}.customer-portal .table-title-line strong{font-size:15px}
 .customer-portal .game-screen{padding:0 0 8px}.customer-portal .game-header{gap:8px;padding-bottom:14px}
 .customer-portal .profile-chip strong{max-width:125px}.customer-portal .avatar{width:34px;height:34px}
}
@media(max-width:360px){
 .customer-portal .app-shell{padding-inline:10px}.customer-portal .wallet-chip{padding:7px 9px;font-size:14px}.customer-portal .wallet-chip small{font-size:11px}
 .customer-portal .profile-chip{gap:6px}.customer-portal .profile-chip strong{max-width:93px;font-size:14px}.customer-portal .bottom-nav button{font-size:12px}
 .play-setup{padding:16px}.selected-match-fees{gap:8px}.selected-match-fees>div{padding:13px 10px}.selected-match-fees strong{font-size:26px}
 .customer-portal .table-row{grid-template-columns:minmax(0,1fr)}.customer-portal .join-table-btn{width:100%}
 .customer-review-dialog{padding:20px}.customer-review-dialog dl>div{gap:10px}
}

/* Keep the board and touch targets; reduce decorative work on slower devices. */
.mobile-performance.game-active #gameView .board-frame,
.mobile-performance.game-active #gameView .score-chip,
.mobile-performance.game-active #gameView .timer-orb,
.mobile-performance.game-active #gameView .turn-indicator,
.mobile-performance.game-active #gameView #board{animation:none!important;transition:none!important;filter:none!important;backdrop-filter:none!important}
.mobile-performance.game-active #gameView .board-frame::before,
.mobile-performance.game-active #gameView .board-frame::after{animation:none!important;filter:none!important}
.mobile-performance.game-active #gameView #board{box-shadow:0 0 0 1px #8c724a!important}
.mobile-performance.game-active #gameView .board-frame{box-shadow:0 3px 10px #0005!important}
.mobile-performance.game-active #gameView .timer-orb{box-shadow:none!important}
