/* Gebeta alone uses the same, moved royal header as Home. Other trials are unaffected. */
body.gebeta-playing #game-shell{display:flex!important;flex-direction:column;min-height:calc(100dvh - 92px);padding-bottom:8px;background:radial-gradient(ellipse at 50% 45%,#492714,#180d08 80%)}
.gebeta-main-header{width:min(980px,100%);margin:0 auto;padding:8px 12px 0}.gebeta-main-header .royal-banner{margin:0!important;width:100%}
body.gebeta-playing #game-shell>.player-hud,body.gebeta-playing .game-hub,body.gebeta-playing>#social-dock,body.gebeta-playing>.language-tools{display:none!important}
body.gebeta-playing .players{position:relative;inset:auto;z-index:2;width:min(980px,100%);margin:8px auto 0;padding:0 14px;background:none;gap:12px}
body.gebeta-playing .player{flex:1;min-width:0;max-width:310px;padding:6px 10px;gap:7px;border-radius:12px;box-shadow:none;align-items:center}
body.gebeta-playing .player .crest{font-size:20px}body.gebeta-playing .player>div{min-width:0;flex:1}body.gebeta-playing .player input{font:600 14px system-ui;max-width:100%;padding:0;min-height:20px}
body.gebeta-playing .score{margin-top:2px;gap:6px}body.gebeta-playing .score strong{font:700 20px/1 system-ui}body.gebeta-playing .score span{font-size:8px;letter-spacing:.4px;max-width:90px}body.gebeta-playing .series-chip{font-size:10px;padding:3px;position:static}
body.gebeta-playing #game-shell>main{min-height:0;flex:1;display:grid;place-items:center;padding:14px 0;width:100%;margin:0}
body.gebeta-playing #game-shell .scene{width:min(100vw,1100px,calc((100dvh - var(--gebeta-header-height,190px) - 230px)*1.7768));}
body.gebeta-playing .turn-panel{position:static;inset:auto;transform:none;z-index:2;width:min(600px,calc(100% - 28px));margin:0 auto;padding:5px 10px;background:#26170ecc;border-radius:12px;box-shadow:none}
body.gebeta-playing .turn-panel p{font-size:12px;margin:0}body.gebeta-playing #row-label{display:none}body.gebeta-playing #sowing-timing{font-size:10px}
body.gebeta-playing #game-shell>footer{position:static;inset:auto;width:min(900px,100%);margin:auto;justify-content:center;gap:10px;padding:6px 12px;background:none;z-index:2;flex-wrap:wrap}
body.gebeta-playing #game-shell>footer button{min-height:44px;padding:7px 12px;font-size:12px}body.gebeta-playing #back-court{display:none}
.gebeta-mode{width:min(660px,calc(100vw - 28px));max-height:calc(100dvh - 110px);overflow:auto;padding:22px;border:1px solid #d4af3788;border-radius:22px;background:radial-gradient(at 50% 0,#52341d,#20120c 75%);color:#ffeac4;box-shadow:0 18px 70px #0009}.gebeta-mode::backdrop{background:#100a08bd;backdrop-filter:blur(5px)}.gebeta-mode h1{margin:0;font-size:30px}.gebeta-mode .dialog-head{align-items:center}.gebeta-mode .mode-intro{font:16px system-ui;margin:18px 0;color:#e9cca1}.gebeta-mode-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.gebeta-mode-grid section{display:flex;flex-direction:column;padding:18px;background:#180e0ab3;border:1px solid #a97b4566;border-radius:16px;min-width:0}.gebeta-mode-grid section>span{font-size:34px;color:#e0b35c}.gebeta-mode-grid h2{font-size:23px;margin:8px 0 12px}.gebeta-mode-grid p{font:14px/1.6 system-ui;color:#d9c5aa;margin:0 0 20px;flex:1}.gebeta-mode label{font:12px system-ui;margin:0 0 6px}.gebeta-mode select{width:100%;min-height:44px;margin-bottom:14px;padding:8px;background:#20150f;color:#ffe9be;border:1px solid #af8957;border-radius:9px}.gebeta-mode button{min-height:44px}.gebeta-mode .primary{margin-top:auto;width:100%}.mode-status{font:13px/1.5 system-ui;min-height:1.5em}.gebeta-mode :focus-visible{outline:3px solid #7ce5ec;outline-offset:3px}
@media(max-width:600px){.gebeta-main-header{padding:5px 8px 0}body.gebeta-playing #game-shell .scene{width:100%;aspect-ratio:1.269/1}body.gebeta-playing .players{padding:0 10px;gap:8px}body.gebeta-playing .player{padding:6px 8px;gap:5px}body.gebeta-playing .player input{font-size:12px}body.gebeta-playing .score strong{font-size:18px}body.gebeta-playing .player .crest{display:none}.gebeta-mode{padding:18px}.gebeta-mode-grid{grid-template-columns:1fr}.gebeta-mode-grid section{padding:15px}.gebeta-mode-grid section>span{display:none}.gebeta-mode-grid h2{font-size:20px;margin-top:0}.gebeta-mode-grid p{margin-bottom:12px}}
/* Keep the board itself centered; its decorative title is allowed to crop. */
body.gebeta-playing #game-shell{height:calc(100dvh - var(--royal-footer-height,100px) - env(safe-area-inset-bottom) - 20px);min-height:0;overflow:visible}
body.gebeta-playing #game-shell>main{position:relative;display:block;overflow:hidden;padding:0;min-height:140px}
body.gebeta-playing #game-shell .scene{position:absolute;left:50%;top:50%;transform:translate(-50%,-72%);width:min(1100px,100vw,calc((100dvh - var(--gebeta-header-height,190px) - 270px)*3.5));aspect-ratio:1672/941;background-size:100% 100%}
body.gebeta-playing #game-shell .turn-panel{position:static!important;width:min(600px,calc(100% - 28px))!important;height:auto!important;min-height:28px;padding:5px 10px!important;overflow:visible!important;clip-path:none!important;white-space:normal;border:1px solid #b7874340!important}
@media(max-width:600px){body.gebeta-playing #game-shell .scene{width:100%;aspect-ratio:1.269/1;background-size:140% 100%}body.gebeta-playing .gebeta-main-header{flex-shrink:0}body.gebeta-playing #game-shell>main{min-height:165px}body.gebeta-playing #game-shell>footer{flex-shrink:0}body.gebeta-playing #game-shell .turn-panel p{font-size:11px}}
@media(max-height:650px){body.gebeta-playing #game-shell{height:auto;min-height:calc(100dvh - var(--royal-footer-height,100px) - 24px)}body.gebeta-playing #game-shell>main{height:220px;flex:none}}
/* Clear the lower game area: retain only the persistent app navigation. */
body.gebeta-playing #game-shell>footer{display:none!important}
body.gebeta-playing #game-shell .turn-panel{position:absolute!important;width:1px!important;height:1px!important;min-height:0!important;margin:0!important;padding:0!important;border:0!important;overflow:hidden!important;clip-path:inset(50%)!important;white-space:nowrap;pointer-events:none}
body.gebeta-playing #sowing-timing{display:none!important}
/* Fill the play area down to the app navigation; omit progression only in play. */
body.gebeta-playing .gebeta-main-header .player-progress{display:none!important}
body.gebeta-playing #game-shell{height:calc(100dvh - var(--royal-footer-height,100px) - env(safe-area-inset-bottom) - 6px);min-height:0;padding-bottom:0}
body.gebeta-playing #game-shell>main{height:auto;flex:1;min-height:180px}
body.gebeta-playing #game-shell .scene{inset:0;left:0;top:0;bottom:0;transform:none;width:100%;height:100%;max-width:none;aspect-ratio:auto;background-size:100% 100%}
@media(max-width:600px){body.gebeta-playing #game-shell .scene{background-size:140% 100%}body.gebeta-playing .pit .seed{height:auto;aspect-ratio:1.3}}
.gebeta-return{width:min(430px,calc(100vw - 30px));max-height:calc(100dvh - var(--royal-footer-height,100px) - 45px);overflow:auto;border:1px solid #d4af3799;border-radius:22px;background:radial-gradient(at 50% 0,#654125,#24160f 75%);color:#ffebc6;padding:26px;text-align:center;box-shadow:0 18px 70px #000a}.gebeta-return::backdrop{background:#100a08c9;backdrop-filter:blur(5px)}.gebeta-return h1{font-size:28px;margin:0 0 14px}.gebeta-return p{font:14px/1.65 system-ui;color:#e5d0b1}.return-status{min-height:24px}.return-actions{display:grid;grid-template-columns:1fr 1fr;gap:12px}.return-actions button{min-height:48px;padding:12px 10px;border-radius:12px}.return-end{border-color:#b47a53;background:#382016;color:#f2ceb5}.gebeta-return :focus-visible{outline:3px solid #83e7ee;outline-offset:3px}
