/* Arena Rome: the Forge's frame around the game (games/arena-rome/game.html runs inside the iframe). */
:root { --ar-bg: #17110d; --ar-panel: #241a14; --ar-gold: #d7a648; --ar-text: #f1e7cd; --ar-dim: #b5a286; --ar-line: #5d4432; }
html, body { margin: 0; height: 100%; background: var(--ar-bg); color: var(--ar-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(--ar-gold); color: #000; padding: 6px 10px; border-radius: 6px; z-index: 20; }
.skip-link:focus { left: 8px; }
.ar-top { display: flex; align-items: center; gap: 14px; padding: 8px 14px; background: var(--ar-panel); border-bottom: 1px solid var(--ar-line); }
.ar-top h1 { margin: 0; font: 800 18px/1 system-ui, sans-serif; letter-spacing: .14em; color: var(--ar-gold); text-transform: uppercase; }
.ar-top .ar-tag { margin: 0; color: var(--ar-dim); font-size: 13px; }
.ar-top .ar-spacer { flex: 1; }
.ar-link, .ar-btn { display: inline-flex; align-items: center; min-height: 36px; padding: 0 12px; border: 1px solid var(--ar-line); border-radius: 8px; background: #141220; color: var(--ar-text); text-decoration: none; font: 600 13px/1 system-ui, sans-serif; letter-spacing: .04em; cursor: pointer; }
.ar-link:hover, .ar-btn:hover { border-color: var(--ar-gold); color: var(--ar-gold); }
.ar-link:focus-visible, .ar-btn:focus-visible { outline: 2px solid var(--ar-gold); outline-offset: 2px; }
.ar-stage { position: relative; flex: 1; min-height: 0; background: var(--ar-bg); }
.ar-stage iframe { display: block; width: 100%; height: 100%; min-height: 480px; border: 0; background: var(--ar-bg); }
.ar-stage:fullscreen { background: var(--ar-bg); }
.ar-stage:fullscreen iframe { min-height: 0; height: 100vh; }
.ar-foot { display: flex; flex-wrap: wrap; gap: 6px 18px; justify-content: space-between; padding: 8px 14px; background: var(--ar-panel); border-top: 1px solid var(--ar-line); color: var(--ar-dim); font-size: 12px; }
.ar-foot p { margin: 0; }
.ar-foot a { color: var(--ar-gold); }
.ar-foot b { color: var(--ar-text); font-weight: 600; }
.ar-help { display: none; }
@media (max-width: 720px) {
  .ar-top { gap: 8px 10px; }   /* one row: the height goes to the game */
  .ar-top h1 { flex: 1; min-width: 0; font-size: 14px; line-height: 1.15; letter-spacing: .08em; }
  .ar-top .ar-spacer { display: none; }
  .ar-link, .ar-btn { flex: none; }
  .ar-top .ar-tag { display: none; }
  .ar-stage { min-height: 60dvh; }   /* room for the frame, so it never covers the help below */
  .ar-stage iframe { min-height: 60dvh; }
  .ar-help { display: block; padding: 10px 14px; color: var(--ar-dim); font-size: 13px; border-top: 1px solid var(--ar-line); background: var(--ar-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) {
  .ar-top .ar-tag { display: none; }
  .ar-stage { flex: none; height: 100dvh; }
  .ar-stage iframe { min-height: 0; }
  body .forge-top-fallback { position: static; }
}
