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