/* Dungeon Runner: the Forge's frame around the game (games/dungeon-runner/game.html runs inside the iframe). */
:root { --dr-bg: #07060b; --dr-panel: #0b0a10; --dr-gold: #e8c15a; --dr-text: #e9e4f2; --dr-dim: #9a93ab; --dr-line: #2a2538; }
html, body { margin: 0; height: 100%; background: var(--dr-bg); color: var(--dr-text); font: 15px/1.5 "Segoe UI", system-ui, sans-serif; }
body { display: flex; flex-direction: column; min-height: 100dvh; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--dr-gold); color: #000; padding: 6px 10px; border-radius: 6px; z-index: 20; }
.skip-link:focus { left: 8px; }
.dr-top { display: flex; align-items: center; gap: 14px; padding: 8px 14px; background: var(--dr-panel); border-bottom: 1px solid var(--dr-line); }
.dr-top h1 { margin: 0; font: 900 18px/1 Georgia, "Cinzel", serif; letter-spacing: .08em; color: var(--dr-gold); text-transform: uppercase; }
.dr-top .dr-tag { margin: 0; color: var(--dr-dim); font-size: 13px; }
.dr-top .dr-spacer { flex: 1; }
.dr-link, .dr-btn { display: inline-flex; align-items: center; min-height: 36px; padding: 0 12px; border: 1px solid var(--dr-line); border-radius: 8px; background: #141220; color: var(--dr-text); text-decoration: none; font: 600 13px/1 system-ui, sans-serif; letter-spacing: .04em; cursor: pointer; }
.dr-link:hover, .dr-btn:hover { border-color: var(--dr-gold); color: var(--dr-gold); }
.dr-link:focus-visible, .dr-btn:focus-visible { outline: 2px solid var(--dr-gold); outline-offset: 2px; }
.dr-stage { position: relative; flex: 1; min-height: 0; background: var(--dr-bg); }
.dr-stage iframe { display: block; width: 100%; height: 100%; min-height: 480px; border: 0; background: var(--dr-bg); }
.dr-stage:fullscreen { background: var(--dr-bg); }
.dr-stage:fullscreen iframe { min-height: 0; height: 100vh; }
.dr-foot { display: flex; flex-wrap: wrap; gap: 6px 18px; justify-content: space-between; padding: 8px 14px; background: var(--dr-panel); border-top: 1px solid var(--dr-line); color: var(--dr-dim); font-size: 12px; }
.dr-foot p { margin: 0; }
.dr-foot a { color: var(--dr-gold); }
.dr-foot b { color: var(--dr-text); font-weight: 600; }
.dr-help { display: none; }
@media (max-width: 720px) {
  .dr-top { gap: 8px 10px; }   /* one row: the height goes to the game */
  .dr-top h1 { flex: 1; min-width: 0; font-size: 14px; line-height: 1.15; letter-spacing: .08em; }
  .dr-top .dr-spacer { display: none; }
  .dr-link, .dr-btn { flex: none; }
  .dr-top .dr-tag { display: none; }
  .dr-stage { min-height: 60dvh; }   /* room for the frame, so it never covers the help below */
  .dr-stage iframe { min-height: 60dvh; }
  .dr-help { display: block; padding: 10px 14px; color: var(--dr-dim); font-size: 13px; border-top: 1px solid var(--dr-line); background: var(--dr-panel); }
}
/* A phone on its side: the frame takes the whole height of the screen, and wrap.js scrolls it into place. */
@media (orientation: landscape) and (max-height: 500px) {
  .dr-top .dr-tag { display: none; }
  .dr-stage { flex: none; height: 100dvh; }
  .dr-stage iframe { min-height: 0; }
  body .forge-top-fallback { position: static; }
}
