:root { color-scheme: dark; font-family: system-ui, -apple-system, "Segoe UI", sans-serif; background: #050810; color: #e5edf2; }
* { box-sizing: border-box; }
body { margin: 0; height: 100vh; height: 100dvh; display: flex; flex-direction: column; overflow: hidden; }
.game-bar { display: flex; align-items: center; gap: 20px; flex: none; min-height: 52px; padding: 8px max(16px, env(safe-area-inset-right)) 8px max(16px, env(safe-area-inset-left)); border-bottom: 1px solid #1f3941; background: #09121b; }
a { color: #9ce5e8; text-decoration: none; }
a:hover { color: #fff; }
h1 { margin: 0; min-width: 0; font-size: 15px; font-weight: 600; letter-spacing: .02em; }
.back { flex: none; font-size: 13px; }
.actions { margin-left: auto; display: flex; align-items: center; gap: 12px; font-size: 12px; white-space: nowrap; }
button, summary { cursor: pointer; font: inherit; }
button { border: 1px solid #2d5861; border-radius: 6px; background: #102932; color: #c9f9fc; padding: 7px 14px; }
button:hover { background: #19424c; }
summary { padding: 8px 0; }
.help-panel { position: absolute; z-index: 2; right: 16px; top: 58px; width: min(440px, calc(100vw - 32px)); padding: 8px 18px; white-space: normal; line-height: 1.8; color: #d3e0e6; background: #101d28; border: 1px solid #34515e; border-radius: 10px; box-shadow: 0 12px 40px #0008; }
.credit { color: #859da9; }
.game-stage { flex: 1; min-height: 0; background: #080d13; }
iframe { display: block; border: 0; width: 100%; height: 100%; background: #080d13; }
iframe:fullscreen { width: 100vw; height: 100vh; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid #67e8f9; outline-offset: 4px; border-radius: 3px; }
#status { position: fixed; z-index: 3; bottom: 12px; left: 50%; transform: translateX(-50%); width: max-content; max-width: calc(100% - 32px); margin: 0; padding: 12px 16px; background: #101d28; border: 1px solid #34515e; border-radius: 8px; font-size: 13px; }
@media (max-width: 640px) {
  .game-bar { flex-wrap: wrap; gap: 6px 12px; min-height: 44px; padding-block: 6px; }
  h1 { font-size: 13px; }
  .back { font-size: 12px; }
  .actions { gap: 12px; }
  .help-panel { top: 88px; }
  button { padding: 6px 10px; }
}
@media (max-width: 420px) { .actions { width: 100%; justify-content: flex-end; } }
