.player-page { width: min(1800px, calc(100% - 32px)); margin: 0 auto; padding-block: 18px 28px; }
.player-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 14px; }
.player-toolbar h1 { font-size: 1.15rem; letter-spacing: -.01em; text-align: center; }
.player-toolbar a { font-size: .85rem; text-decoration: none; }
.player-button { border: 1px solid #becbc3; border-radius: 6px; background: #fff; color: var(--ink); font-size: .85rem; padding: 8px 14px; }
.game-frame { position: relative; width: 100%; height: clamp(660px, calc(100dvh - 235px), 1000px); background: #4d8847; border-radius: 16px; overflow: hidden; box-shadow: 0 10px 32px #172d4020; }
#game-canvas { display: block; width: 100%; height: 100%; outline: none; touch-action: none; }
.game-loading { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px; padding: 28px; background: #244f38; color: #f4f1e9; text-align: center; }
.game-loading img { width: min(180px, 26vh); height: auto; border-radius: 24px; }
.game-loading h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
.game-loading p { max-width: 550px; font-size: .95rem; }
.game-loading .button { background: #eadfbd; color: #24402c; }
#game-progress { width: min(320px, 85%); height: 10px; accent-color: #d8bd73; }
.player-note { color: var(--muted); font-size: .83rem; max-width: 900px; margin: 18px auto 0; text-align: center; }
.game-frame:fullscreen, .game-frame.is-expanded { width: 100vw; height: 100dvh; border-radius: 0; }
.game-frame.is-expanded { position: fixed; inset: 0; z-index: 100; }
.fullscreen-exit { position: absolute; z-index: 5; right: 12px; bottom: 12px; background: #f4f1e9e8; }
body.game-expanded { overflow: hidden; }
@media (max-width: 600px) {
  .player-page { width: calc(100% - 16px); padding-top: 12px; }
  .player-toolbar { flex-wrap: wrap; gap: 12px; padding-inline: 8px; }
  .player-toolbar h1 { order: -1; flex-basis: 100%; text-align: left; }
  .game-frame { height: max(550px, calc(100dvh - 220px)); border-radius: 10px; }
  .player-note { padding-inline: 12px; }
}
