.game-page { margin: 0; min-height: 100dvh; background: #0c261f; color: #f6f0d5; }
.game-toolbar { min-height: 76px; padding: 12px max(20px, env(safe-area-inset-right)) 12px max(20px, env(safe-area-inset-left)); display: flex; align-items: center; justify-content: space-between; gap: 16px; background: #133e32; }
.game-toolbar .brand { display: flex; align-items: center; gap: 9px; font-size: 24px; color: #f6e9ac; }
.game-toolbar h1 { font-size: 22px; margin: 0; }
.game-toolbar .button { min-height: 44px; white-space: nowrap; }
.game-page main { max-width: 1440px; margin: auto; }
#game-stage { position: relative; margin: 16px auto 0; width: min(100%, calc((100dvh - 110px) * 16 / 9)); aspect-ratio: 16 / 9; background: #081b16; overflow: hidden; border-radius: 12px; }
#game-canvas { width: 100%; height: 100%; display: block; touch-action: none; outline-offset: -3px; }
#game-canvas:focus-visible { outline: 3px solid #f6d56a; }
#game-loading { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding: 24px; text-align: center; background: radial-gradient(ellipse at center, #245c44, #0c261f); }
#game-loading[hidden], #game-retry[hidden] { display: none; }
#game-status { margin: 0; max-width: 540px; }
#game-progress { width: min(320px, 80%); height: 15px; accent-color: #f6d56a; }
.game-help { margin: 20px auto; max-width: 980px; padding: 0 24px; font-size: 14px; line-height: 1.6; color: #d2decc; }
.game-help p { margin: 8px 0; }
#game-stage:fullscreen { width: 100vw; height: 100dvh; max-width: none; margin: 0; border-radius: 0; display: flex; align-items: center; justify-content: center; }
#game-stage:fullscreen #game-canvas { width: min(100vw, calc(100dvh * 16 / 9)); height: min(100dvh, calc(100vw * 9 / 16)); }
@media (max-width: 640px) { .game-toolbar h1 { display: none; } .game-toolbar .brand { font-size: 20px; } .game-toolbar { padding: 10px 12px; } #game-stage { border-radius: 0; } }
@media (orientation: landscape) and (max-height: 540px) { .game-toolbar { min-height: 48px; padding-block: 4px; } .game-toolbar .brand img { width: 32px; height: 32px; } .game-toolbar h1 { display: none; } #game-stage { margin-top: 0; width: min(100%, calc((100dvh - 56px) * 16 / 9)); } }

.game-toolbar{position:relative;z-index:10;flex-wrap:wrap}
.game-toolbar .language-current-name{display:none}
.game-toolbar .language-current{min-width:60px;padding:8px}
.game-toolbar .language-panel{right:0}
.game-toolbar .language-switcher{margin-left:auto}
