/* Premium fixed-stake lobby v3. Scoped to the player's lobby and assigned table. */
body.pool-lobby-mode,body.pool-wait-mode{background:#031d17;color:#efe4c7}
body.pool-lobby-mode .app-shell,body.pool-wait-mode .app-shell{background:#031d17}
body.pool-lobby-mode .main-wrap,body.pool-wait-mode .main-wrap{margin:0;padding:max(8px,env(safe-area-inset-top,0px)) max(10px,env(safe-area-inset-right,0px)) max(12px,env(safe-area-inset-bottom,0px)) max(10px,env(safe-area-inset-left,0px));min-height:100dvh;background:radial-gradient(ellipse at 50% 0,#2b563340,transparent 65%),#031d17}
body.pool-lobby-mode .main-content,body.pool-wait-mode .main-content{width:100%;max-width:none;padding:0;margin:0}
body.pool-lobby-mode .topbar,body.pool-wait-mode .topbar,body.pool-lobby-mode .app-footer,body.pool-wait-mode .app-footer{display:none!important}
body.pool-lobby-mode .sidebar,body.pool-wait-mode .sidebar{z-index:1300}
.fixed-lobby.pool-premium{position:relative;isolation:isolate;max-width:1040px;margin:0 auto;padding:0;overflow:hidden;border:1px solid #a68b47;border-radius:23px;background:#031f17;box-shadow:0 12px 40px #0004;color:#f4eccf}
.pool-lobby-top{position:relative;z-index:1;display:flex;align-items:center;gap:12px;padding:15px 22px;background:linear-gradient(#041e18f7,#031c17b0)}
.pool-brand{display:flex;align-items:center;gap:9px;margin-right:auto;color:#f4d692;min-width:0}
.pool-brand>img{flex:none;width:42px;height:42px}
.pool-brand>span{display:grid;gap:1px}
.pool-brand strong{font:normal 34px/.95 Georgia,serif;letter-spacing:-1px}
.pool-brand small{font:600 8px/1.6 system-ui,sans-serif;letter-spacing:4px;color:#ceaa55}
.pool-menu,.pool-settings{appearance:none;display:grid;place-items:center;min-width:38px;height:38px;padding:6px;border:1px solid #b69a57;border-radius:12px;background:#041f19aa;color:#edcf8b;cursor:pointer;flex:none}
.pool-menu .icon,.pool-settings .icon{width:20px;height:20px}
.pool-lobby-top .pool-menu{min-width:30px;width:30px;border:0;padding:2px}
.pool-wallet{appearance:none;border:1px solid #c5a4587a;color:#f0d48d;background:#001d1780;border-radius:22px;display:flex;align-items:center;gap:9px;padding:7px 13px;min-height:38px;cursor:pointer;flex:none}
.pool-wallet .icon{width:22px;height:22px;border:1px solid #b69a57;border-radius:50%;padding:3px;box-sizing:content-box}
.pool-wallet strong{font:600 15px/1.1 system-ui}.pool-wallet strong small{font-size:10px;color:#c6b789}
.pool-lobby-art{height:clamp(122px,22vh,200px);background:linear-gradient(#031f1710 40%,#031f17ff 100%),url('premium/lobby-night.webp') center 48%/cover no-repeat;position:relative;margin-top:-12px;z-index:-1}
.pool-lobby-content{padding:0 30px 16px;margin-top:-4px}
.pool-heading{text-align:center;margin:0 0 18px}
.pool-premium .pool-heading h1{color:#fff1d3;font:normal clamp(27px,3.5vw,41px)/1.08 Georgia,serif;margin:0 0 8px;letter-spacing:-.65px}
.pool-heading p{display:flex;align-items:center;justify-content:center;gap:9px;color:#d5d0af;font:12px/1.4 system-ui;margin:0}
.pool-heading .icon{width:16px;height:16px;color:#b59a58}
.pool-tiers{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px}
.pool-tier{appearance:none;min-width:0;min-height:91px;border:1px solid #ad9451;border-radius:14px;padding:10px 3px;background:radial-gradient(ellipse at 30% 0,#3568445e,transparent 75%),linear-gradient(130deg,#0c3024,#00251a);color:#f8dfa1;cursor:pointer;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:6px;box-shadow:inset 0 1px #fce7b023;transition:box-shadow .16s,border-color .16s,background .16s}
.pool-tier>.icon{width:25px;height:25px;color:#e8c675;fill:#caae5212}
.pool-tier>span{white-space:nowrap}
.pool-tier strong{font:normal 29px/1 Georgia,serif;letter-spacing:-.5px}
.pool-tier>span small{font:600 10px/1.2 system-ui}
.pool-tier:hover:not(:disabled),.pool-tier:focus-visible{outline:none;border-color:#ffda73;background:linear-gradient(130deg,#234c2d,#043022);box-shadow:0 0 0 1px #ffda73,0 0 14px #f2cf5060,inset 0 0 10px #efd78c24}
.pool-tier:active:not(:disabled){background:#335332}
.pool-tier:disabled,.pool-special:disabled{opacity:.46;cursor:not-allowed}
.pool-tier-reason{font:9px/1.1 system-ui;max-width:100%;text-align:center;color:#d6d5bd}
.pool-ornament{display:flex;align-items:center;gap:10px;color:#b69a55;margin:20px 0 16px;opacity:.85}
.pool-ornament i{height:1px;flex:1;background:linear-gradient(90deg,transparent,#967c44)}
.pool-ornament i:last-child{transform:scaleX(-1)}
.pool-ornament span{font:20px/.8 Georgia,serif}
.pool-specials{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.pool-special{appearance:none;display:flex;align-items:center;gap:12px;border:1px solid #a28c56;border-radius:14px;min-width:0;min-height:82px;padding:12px 17px;color:#f5eac8;background:linear-gradient(130deg,#193e2c,#00271d);cursor:pointer;text-align:left;box-shadow:inset 0 1px #e7d08620}
.pool-special>.icon{width:30px;height:30px;flex:none;color:#e6c06c}
.pool-special>.icon:last-child{width:16px;height:16px;margin-left:auto}
.pool-special>span{min-width:0;display:grid;gap:6px}
.pool-special strong{font:600 16px/1.15 system-ui}
.pool-special small{font:11px/1.35 system-ui;color:#c6d1ba}
.pool-special:hover:not(:disabled),.pool-special:focus-visible{outline:2px solid #edc66b;outline-offset:2px}
.pool-match-note{display:flex;align-items:center;gap:12px;padding:11px 16px;margin:17px 0 0;border:1px solid #6a816960;border-radius:14px;background:#07291f80}
.pool-match-note>.icon{width:20px;height:20px;color:#dfc482;flex:none}
.pool-match-note p{font:12px/1.5 system-ui;color:#e5e6cf;margin:0}
.pool-consent{font:10px/1.5 system-ui;color:#a6b9a4;text-align:center;margin:9px 6px 0;max-width:none}
.pool-status{display:flex;align-items:center;gap:10px;font:12px/1.4 system-ui;border:1px solid #d0b25c;border-radius:12px;padding:10px;margin:0 0 12px;background:#69522333}
.pool-status>.btn{flex:none}
.pool-premium .match-resume{font:12px/1.4 system-ui;margin:0 0 12px;background:#1e4733}
.pool-upgrade-banner{display:flex;align-items:center;gap:16px;justify-content:space-between;border:2px solid #c19940;background:#fff7df;color:#403622;padding:15px 18px;border-radius:13px;margin:0 0 22px}
.pool-upgrade-banner strong{font-size:14px}.pool-upgrade-banner .btn{flex:none}
.pool-deploy-badge{display:inline-flex;gap:9px;align-items:center;background:#fbebc3;border:1px solid #ccb065;border-radius:20px;color:#57441d;font:700 13px system-ui;padding:9px 14px}
.pool-deploy-badge.complete{background:#e1f3e7;color:#194733;border-color:#a1c8b0}
.pool-deploy-panel>p{max-width:88ch}.pool-deploy-panel #match-activate-form{max-width:690px;margin-top:25px;border-top:1px solid #dbe2d5;padding-top:18px}
.pool-backup-confirm{display:flex!important;align-items:flex-start!important;gap:10px!important;line-height:1.5!important}
.pool-backup-confirm input[type=checkbox]{appearance:auto!important;min-width:18px!important;width:18px!important;min-height:18px!important;height:18px!important;margin-top:2px;flex:none}
/* Waiting room: the assigned table, not a second lobby of selectable tables. */
.pool-waiting{width:min(100%,1200px);margin:0 auto;min-height:calc(100dvh - 30px);display:flex;flex-direction:column;border:1px solid #9d8249;border-radius:20px;overflow:hidden;background:#031e17;color:#eee4c4}
.pool-wait-header{display:flex;align-items:center;gap:12px;padding:12px 15px;flex:none}
.pool-stake-pill{display:flex;align-items:center;justify-content:center;gap:8px;border:1px solid #b9954b;border-radius:19px;min-height:40px;padding:6px 17px;margin:0 auto;font:600 16px/1.2 system-ui;color:#f4d181}
.pool-stake-pill .icon{width:23px;height:23px}
.pool-occupancy{display:flex;align-items:center;gap:5px;font:600 13px/1.2 system-ui;color:#efdaa4}
.pool-occupancy>.icon{width:20px;height:20px}
.pool-wait-arena{position:relative;isolation:isolate;flex:1;min-height:410px;background:radial-gradient(ellipse at 50% 60%,#2b805433,#06251ddd 80%),url('premium/felt.webp') repeat;border:7px solid #80602f;border-radius:34px;margin:0 12px;box-shadow:inset 0 0 0 2px #bc9f5d,0 0 0 1px #ad945655;overflow:hidden}
.pool-wait-art{position:absolute;inset:0;z-index:-1;background:linear-gradient(#01180d00,#052d1df2 46%),url('premium/lobby-night.webp') center top/100% auto no-repeat;opacity:.64}
.pool-wait-seat{position:absolute;display:flex;align-items:center;flex-direction:column;gap:3px;max-width:36%;text-align:center;color:#e9e4cb}
.pool-wait-seat.pos-0{bottom:13px;left:50%;transform:translateX(-50%);width:42%}
.pool-wait-seat.pos-2{top:13px;left:50%;transform:translateX(-50%);width:42%}
.pool-wait-seat.pos-1{right:12px;top:43%;width:20%}
.pool-wait-seat.pos-3{left:12px;top:43%;width:20%}
.pool-seat-avatar{display:grid;place-items:center;position:relative;width:43px;height:43px;border:1px solid #af9350;border-radius:50%;background:linear-gradient(#324a37,#062e23)}
.pool-seat-avatar>.icon{width:26px;height:26px;color:#d7c588}
.pool-seat-avatar>i{position:absolute;right:0;bottom:0;width:7px;height:7px;background:#53db9e;border:2px solid #073326;border-radius:50%}
.pool-wait-seat strong{font:600 12px/1.15 system-ui;padding:4px 9px;border:1px solid #9e864765;border-radius:8px;background:#05251de0}
.pool-wait-seat small{font:10px/1.3 system-ui;color:#c6d5b9;white-space:nowrap}
.pool-idle-rack{display:flex;gap:2px;padding:3px 5px;border:3px solid #734d28;border-bottom-width:6px;border-radius:5px;background:url('premium/wood.webp') center/cover;max-width:100%;height:26px;min-width:90px;box-shadow:0 3px 4px #0005;margin-top:4px}
.pool-idle-rack>i{width:15px;height:15px;border:1px solid #baa362;border-radius:2px;background:linear-gradient(#c9b67c,#a79157)}
.pool-wait-seat:not(.occupied) .pool-idle-rack{opacity:.2}
.pool-wait-seat.pos-1 .pool-idle-rack,.pool-wait-seat.pos-3 .pool-idle-rack{display:none}
.pool-wait-center{position:absolute;top:43%;left:50%;transform:translate(-50%,-50%);width:46%;text-align:center;color:#f3e6c4}
.pool-wait-center h2{font:normal 21px/1.15 Georgia,serif;margin:12px 0 5px}
.pool-wait-center p{font:11px/1.5 system-ui;margin:0 auto;max-width:24ch;color:#beceb4}
.pool-wait-center>strong{display:block;font:600 23px/1.4 Georgia,serif;color:#e0c278;margin-top:8px}
.pool-wait-spinner{display:inline-block;width:24px;height:24px;border:2px solid #b59c5544;border-top-color:#ebc870;border-radius:50%;animation:pool-spin 1.4s linear infinite}
@keyframes pool-spin{to{transform:rotate(360deg)}}
.pool-wait-bottom{text-align:center;padding:14px 16px 12px;flex:none}
.pool-wait-metrics{display:flex;justify-content:center;gap:20px;font:11px/1.4 system-ui;color:#c1cbb0}
.pool-wait-metrics>span{display:grid;gap:3px;min-width:65px}
.pool-wait-metrics strong{font:600 18px/1.2 system-ui;color:#eed092}
.pool-wait-bottom .match-wait-buttons{margin:12px 0;gap:10px}
.pool-wait-bottom>small{display:block;font:10px/1.4 system-ui;color:#becdb3}
/* Active games deliberately use premium.css + south-layout.css +
   tile-usability.css again, exactly like the supplied pre-update reference.
   Pool presentation is restricted to the lobby and the waiting screen. */
/* Four compact columns exactly as in the portrait mockup. */
@media(max-width:700px){
 .fixed-lobby.pool-premium{max-width:480px;border-radius:20px}
 .pool-lobby-top{padding:13px 14px;gap:8px}.pool-brand>img{width:33px;height:33px}.pool-brand{gap:6px}.pool-brand strong{font-size:29px}.pool-brand small{font-size:7px;letter-spacing:3px}
 .pool-wallet{gap:6px;padding:5px 8px;min-height:33px}.pool-wallet strong{font-size:13px}.pool-wallet .icon{width:17px;height:17px}.pool-settings{min-width:34px;width:34px;height:34px}
 .pool-lobby-art{height:125px}.pool-lobby-content{padding:0 14px 10px}.pool-heading{margin-bottom:17px}.pool-premium .pool-heading h1{font-size:29px}.pool-heading p{font-size:11px}
 .pool-tiers{grid-template-columns:repeat(4,minmax(0,1fr));gap:9px}.pool-tier{border-radius:12px;min-height:78px;padding:8px 2px;gap:5px}.pool-tier>.icon{width:20px;height:20px}.pool-tier strong{font-size:26px}
 .pool-specials{gap:9px}.pool-special{min-height:75px;padding:10px;gap:8px;border-radius:12px}.pool-special>.icon{width:24px;height:24px}.pool-special strong{font-size:13px}.pool-special small{font-size:10px;line-height:1.35}.pool-special>.icon:last-child{width:12px;height:12px}
 .pool-match-note{padding:10px;margin-top:15px;gap:9px}.pool-match-note p{font-size:11px}.pool-consent{font-size:9px;line-height:1.45;margin:8px 0 0}
 .pool-ornament{margin:18px 0 15px}.pool-status{flex-direction:column;align-items:flex-start;font-size:11px}
 .pool-waiting{min-height:calc(100dvh - 26px)}.pool-wait-arena{margin:0 6px;min-height:335px;border-width:5px;border-radius:25px}.pool-wait-header{padding:10px;gap:8px}.pool-stake-pill{padding:6px 10px;font-size:14px;min-height:37px}.pool-stake-pill>.icon{width:20px;height:20px}.pool-occupancy{font-size:12px}.pool-occupancy>.icon{width:16px;height:16px}
 .pool-wait-seat.pos-1{right:5px}.pool-wait-seat.pos-3{left:5px}.pool-wait-seat strong{font-size:10px;padding:4px 6px}.pool-wait-seat small{font-size:8px}.pool-seat-avatar{width:34px;height:34px}.pool-seat-avatar>.icon{width:22px;height:22px}.pool-wait-center h2{font-size:17px}.pool-wait-center p{font-size:10px}.pool-idle-rack{height:22px;border-bottom-width:4px}.pool-idle-rack>i{width:12px;height:12px}
 .pool-wait-bottom{padding:12px 10px}.pool-wait-metrics{gap:12px;font-size:10px}.pool-wait-metrics strong{font-size:16px}.pool-wait-bottom .btn{font-size:11px;padding:9px 10px;min-height:40px}
 .pool-upgrade-banner{align-items:flex-start;flex-direction:column;gap:10px;padding:13px}
}
@media(max-width:360px){
 body.pool-lobby-mode .main-wrap,body.pool-wait-mode .main-wrap{padding-left:6px;padding-right:6px}.pool-lobby-top{gap:5px;padding:10px 9px}.pool-brand>img{width:27px;height:27px}.pool-brand strong{font-size:24px}.pool-brand small{font-size:6px;letter-spacing:2.5px}.pool-wallet .icon{display:none}.pool-wallet{padding:7px;min-height:30px}.pool-wallet strong{font-size:12px}.pool-lobby-top .pool-menu{width:25px;min-width:25px}.pool-settings{min-width:30px;width:30px;height:32px}
 .pool-lobby-art{height:103px}.pool-premium .pool-heading h1{font-size:25px}.pool-heading{margin-bottom:13px}.pool-lobby-content{padding:0 10px 10px}.pool-tiers{gap:7px}.pool-tier{min-height:67px;border-radius:10px}.pool-tier strong{font-size:23px}.pool-tier>.icon{width:18px;height:18px}.pool-special{padding:8px;gap:7px;min-height:65px}.pool-special>.icon{width:19px;height:19px}.pool-special strong{font-size:11px}.pool-special small{font-size:8px}.pool-special>.icon:last-child{display:none}.pool-match-note p{font-size:10px}.pool-consent{font-size:8px}.pool-ornament{margin:15px 0 12px}
}
@media(max-height:500px) and (orientation:landscape){
 .fixed-lobby.pool-premium{max-width:1000px}.pool-lobby-top{padding:10px 16px}.pool-lobby-art{height:85px}.pool-lobby-content{margin-top:-4px;padding:0 18px 12px}.pool-heading{margin-bottom:12px}.pool-premium .pool-heading h1{font-size:27px}.pool-tiers{grid-template-columns:repeat(6,minmax(0,1fr));gap:8px}.pool-tier{min-height:68px;padding:7px}.pool-tier strong{font-size:23px}.pool-tier>.icon{width:18px;height:18px}.pool-ornament{margin:12px 0}.pool-special{min-height:55px}.pool-match-note{margin-top:10px}
 .pool-waiting{min-height:calc(100dvh - 20px);height:calc(100dvh - 20px);max-width:1100px}.pool-wait-header{padding:5px 12px}.pool-stake-pill{min-height:33px;font-size:13px}.pool-wait-header .pool-menu,.pool-wait-header .pool-settings{height:32px;min-width:32px;width:32px}.pool-wait-arena{min-height:175px;flex:1;margin:0 12px;border-width:5px}.pool-wait-seat{gap:2px}.pool-seat-avatar{width:27px;height:27px}.pool-seat-avatar>.icon{width:18px;height:18px}.pool-wait-seat strong{font-size:10px;padding:2px 7px}.pool-wait-seat small{font-size:8px}.pool-wait-seat.pos-0{bottom:5px}.pool-wait-seat.pos-2{top:5px}.pool-wait-seat.pos-1,.pool-wait-seat.pos-3{top:30%}.pool-idle-rack{display:none}.pool-wait-center{top:48%;width:44%}.pool-wait-spinner{width:16px;height:16px}.pool-wait-center h2{font-size:17px;margin:4px 0}.pool-wait-center p{display:none}.pool-wait-center>strong{font-size:17px;margin:0}
 .pool-wait-bottom{display:grid;grid-template-columns:1fr 1fr;gap:8px;align-items:center;padding:6px 12px}.pool-wait-bottom>small{grid-column:1/-1;font-size:8px}.pool-wait-bottom .match-wait-buttons{margin:0;gap:6px}.pool-wait-bottom .btn{min-height:32px;font-size:10px;padding:6px 9px}.pool-wait-metrics{gap:14px;font-size:9px}.pool-wait-metrics strong{font-size:13px}
}
@media(prefers-reduced-motion:reduce){.pool-tier{transition:none}.pool-wait-spinner{animation:none}}
