/* Player app: one-screen lobby and an immersive cabinet. */
.visually-hidden{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
body.mode-lobby,body.mode-game{height:100dvh;min-height:100dvh;overflow:hidden;background:#111a15}
body.mode-lobby .site-header,body.mode-game .site-header,body.mode-lobby .site-footer,body.mode-game .site-footer{display:none}
body.mode-lobby main,body.mode-game main{width:100%;max-width:none;min-height:0;height:100dvh;margin:0;padding:0}
body.mode-lobby{background:radial-gradient(ellipse at 50% 40%,#294a32 0,#182d21 35%,#111a15 72%)}
.mobile-lobby{max-width:480px;height:100dvh;margin:auto;display:grid;grid-template-rows:70px 88px minmax(0,1fr) 178px;position:relative;padding:env(safe-area-inset-top) 24px max(15px,env(safe-area-inset-bottom));isolation:isolate}
.mobile-lobby:before{content:"";position:absolute;inset:115px 34px 198px;border:1px solid #9c9d5c22;border-radius:180px 180px 28px 28px;pointer-events:none;z-index:-1}
.lobby-topbar{display:grid;grid-template-columns:52px 1fr 52px;align-items:center;gap:12px;min-height:0}
.lobby-topbar>span{text-align:center;color:#c3c7b3;font-size:12px;letter-spacing:4px}
.avatar-button{display:grid;place-items:center;width:46px;height:46px;padding:0;border:1px solid #c9ad6b;border-radius:50%;background:linear-gradient(145deg,#54684a,#2b4132);box-shadow:inset 0 1px 0 #fff3,0 4px 15px #0004;color:#fae4ac}
.avatar-letter{font-family:SimSun,serif;font-size:22px;line-height:1;font-weight:600;letter-spacing:0}
.lobby-topbar .text-button{color:#c8cbbd;font-size:12px;padding:9px 0}
.lobby-title{text-align:center;align-self:center}.lobby-title h1{font-family:SimSun,serif;font-size:35px;line-height:1.1;margin:0;color:#f3d597;font-weight:600;letter-spacing:3px;text-shadow:0 2px 15px #e5bf6317}.lobby-title h1 span{font-weight:400;font-size:26px;margin-left:9px}.lobby-title p{font-size:11px;color:#b2bda7;letter-spacing:4px;margin:12px 0 0}
.lobby-stage{display:flex;justify-content:center;align-items:center;position:relative;min-height:0;padding:9px 0 13px}
.lobby-stage:after{content:"";position:absolute;bottom:9%;width:72%;height:13%;background:#0008;filter:blur(21px);border-radius:50%;z-index:-1}
.lobby-machine-frame{height:100%;max-height:455px;aspect-ratio:460/836;min-width:0;transform:rotate(-3deg);filter:drop-shadow(10px 20px 15px #0008)}
.lobby-machine-preview{width:100%;height:100%;border:0;display:block;pointer-events:none;background:transparent;opacity:.98}
.lobby-bottom{display:flex;flex-direction:column;justify-content:flex-end;gap:13px;min-height:0;padding-bottom:5px}
.enter-game{position:relative;min-height:58px;width:100%;border:1px solid #ffe0a0;border-radius:12px;box-shadow:inset 0 1px 0 #fff8,0 5px 0 #96713a,0 9px 22px #0005;background:linear-gradient(180deg,#f8dd9d,#ddba6c);color:#3b351e;display:flex;align-items:center;justify-content:center;font-size:20px;font-weight:750;letter-spacing:6px;padding:12px 18px}
.enter-game:active{transform:translateY(3px);box-shadow:inset 0 1px 0 #fff8,0 2px 0 #96713a}.enter-game small{position:absolute;right:15px;font-size:10px;letter-spacing:0;opacity:.8;font-weight:500}
.lobby-shortcuts{display:flex;justify-content:center;gap:34px;padding-top:4px}.lobby-shortcuts button{background:none;border:0;color:#d8d8bc;padding:4px 0;font-size:12px}
.lobby-announcement{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#9da993;font-size:10px;text-align:center;background:none;border:0;padding:3px 0;width:100%;min-height:23px}
.lobby-announcement strong{color:#cabf8f;font-weight:500;margin-right:9px}.lobby-maintenance{font-size:10px;color:#f0c78b;margin:0;text-align:center;line-height:1.4}
.immersive-game{height:100dvh;width:100%;position:relative;overflow:hidden;background:radial-gradient(ellipse at center,#2c3020,#101612 78%);display:flex;align-items:center;justify-content:center;padding:0}
/* The exit button floats over the cabinet instead of reserving a padded band
   at the top: the old padding-top pushed the iframe to ~250×455 on a phone,
   and at that size the machine scaled down so far that the plunger pad sat
   outside the visible area — taps on it went nowhere, which is what looked
   like "the game is stuck". The frame now gets the whole viewport. */
.game-exit{position:absolute;top:max(9px,env(safe-area-inset-top));left:max(12px,env(safe-area-inset-left));z-index:5;min-height:36px;padding:7px 16px;border:1px solid #9d906855;border-radius:8px;background:#1e2b20cc;color:#e5d2a2;font-size:12px;letter-spacing:2px;box-shadow:0 3px 10px #0003}
.immersive-game .game-machine{width:100%!important;height:100%!important;max-width:none;aspect-ratio:auto;display:block;border:0;border-radius:0;background:transparent;box-shadow:none;align-self:auto;order:initial}
#modal[data-kind=profile]{width:360px;padding:26px;border:1px solid #8b8158;border-radius:22px;background:linear-gradient(150deg,#24392b,#17261d 80%)}
.profile-identity{display:flex;flex-direction:column;align-items:center;text-align:center;gap:9px;margin:3px 0 23px}
.profile-avatar{width:78px;height:78px;border-radius:50%;border:2px solid #d3b46c;display:grid;place-items:center;background:linear-gradient(140deg,#5f774f,#304b39);box-shadow:inset 0 2px 0 #fff3,0 7px 24px #0003;color:#ffebb6;font-family:SimSun,serif;font-size:35px;line-height:1}
.profile-identity h3{font-size:20px;font-weight:600;letter-spacing:1px;margin:4px 0 0}.profile-identity p{font-size:11px;color:#97aa98;margin:0}
.profile-balance{padding:20px 0;border-top:1px solid #5e70504d;border-bottom:1px solid #5e70504d;display:flex;justify-content:space-between;align-items:center;margin-bottom:18px}.profile-balance>span{font-size:13px;color:#b7c1ad}.profile-balance b{font-family:Georgia,serif;font-size:32px;font-weight:500;color:#f3d597;line-height:1}.profile-balance small{font-family:system-ui;font-size:12px;margin-left:6px;color:#b7c1ad}
.profile-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px}.profile-actions .button{font-size:12px;min-height:42px;border-color:#71806366}.profile-actions .admin-entry{grid-column:1/-1}.profile-logout{width:100%;margin-top:20px;min-height:42px;border:0;background:none;color:#d4a69a;font-size:13px;letter-spacing:2px}
body.mode-game .toast{bottom:max(20px,env(safe-area-inset-bottom));width:max-content;max-width:88vw;font-size:12px}
@media(max-height:720px){.mobile-lobby{grid-template-rows:58px 69px minmax(0,1fr) 151px;padding-left:23px;padding-right:23px;padding-bottom:10px}.lobby-title h1{font-size:29px}.lobby-title h1 span{font-size:23px}.lobby-title p{font-size:10px;margin-top:9px}.enter-game{min-height:50px;font-size:18px}.lobby-bottom{gap:10px}.avatar-button{width:40px;height:40px}.avatar-letter{font-size:20px}.lobby-stage{padding-top:4px;padding-bottom:8px}}
@media(max-height:570px) and (orientation:landscape){.mobile-lobby{max-width:760px;grid-template-columns:1fr 1fr;grid-template-rows:54px minmax(0,1fr) 80px;column-gap:30px}.lobby-topbar{grid-column:1/-1}.lobby-title{grid-column:1;grid-row:2;align-self:start;padding-top:20px}.lobby-stage{grid-column:2;grid-row:2/4}.lobby-bottom{grid-column:1;grid-row:2/4;justify-content:flex-end}.lobby-bottom .lobby-shortcuts{gap:25px}.lobby-announcement{font-size:9px}.mobile-lobby:before{display:none}}
