.stage { min-width: 0; grid-template-columns: minmax(0, 1fr); }
#shark-expansion { width: min(100%, 840px); }
.fullscreen-button { gap: 8px; min-height: 44px; border-color: #69d5eb; background: #123f54; white-space: nowrap; }
.fullscreen-button svg { width: 22px; height: 22px; flex-shrink: 0; }
.fullscreen-button:focus-visible { outline: 3px solid #8deeff; outline-offset: 3px; }
.app.is-fullscreen {
  position: fixed; inset: 0; z-index: 10000; width: 100%; height: 100dvh;
  max-width: none; min-height: 0; margin: 0; overflow: hidden;
  padding: max(8px, env(safe-area-inset-top)) max(8px, env(safe-area-inset-right)) max(8px, env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left));
  grid-template-rows: auto minmax(0, 1fr); gap: 8px; background: #071726;
}
.app.is-fullscreen .brand, .app.is-fullscreen .footer, .app.is-fullscreen .help,
.app.is-fullscreen #shark-expansion, .app.is-fullscreen #shark-leaderboard,
.app.is-fullscreen .btnLink { display: none !important; }
.app.is-fullscreen .topbar { justify-content: center; min-width: 0; }
.app.is-fullscreen .hud { justify-content: center; gap: 8px; }
.app.is-fullscreen .hudItem { padding: 4px 10px; min-width: 52px; }
.app.is-fullscreen .hudValue { font-size: 16px; }
.app.is-fullscreen .stage { position: relative; display: flex; flex-direction: column; justify-content: center; gap: 8px; min-height: 0; }
.app.is-fullscreen .canvas-container { width: var(--board-size, 70vmin); height: var(--board-size, 70vmin); flex: 0 0 auto; }
.app.is-fullscreen .touchControls { flex: 0 0 auto; width: min(100%, 840px); margin: 0; padding: 0; border: 0; background: none; grid-template-columns: 1fr; }
.app.is-fullscreen .pad { display: none; }
.app.is-fullscreen .touchMeta { display: flex; justify-content: center; gap: 12px; }
.app.is-fullscreen canvas#game { border-radius: 10px; }
body.shark-fullscreen { overflow: hidden; }
@media (max-width: 760px) {
  .topbar { flex-direction: column; align-items: center; gap: 8px; }
  .hud { justify-content: center; gap: 6px; }
  .hudItem { min-width: 50px; padding: 6px 8px; }
  .canvas-container { width: min(100%, 840px); }
  .touchControls { width: 100%; }
}
@media (orientation: landscape) and (max-height: 560px) {
  .app:not(.is-fullscreen) { height: auto; min-height: 100dvh; }
  .app:not(.is-fullscreen) .canvas-container { width: min(100%, max(160px, calc(100dvh - 165px))); }
  .topbar { flex-direction: row; }
  .app.is-fullscreen .btn { padding: 6px 10px; }
  .app.is-fullscreen .touchControls { position: absolute; right: 0; bottom: 0; width: 96px; }
  .app.is-fullscreen .touchMeta { flex-direction: column; gap: 8px; }
  .app.is-fullscreen .touchMeta .btn { width: 100%; box-sizing: border-box; }
}
