/* Chopper Command: the Forge's frame around the game (chopper-command/game.html or classic.html runs inside the iframe). */
:root { --cc-bg: #10140f; --cc-panel: #1a2015; --cc-amber: #ffb43c; --cc-text: #efe3c6; --cc-dim: #a9a58d; --cc-line: #47503a; }
html, body { margin: 0; height: 100%; background: var(--cc-bg); color: var(--cc-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(--cc-amber); color: #000; padding: 6px 10px; border-radius: 6px; z-index: 20; }
.skip-link:focus { left: 8px; }
.cc-top { display: flex; align-items: center; gap: 14px; padding: 8px 14px; background: var(--cc-panel); border-bottom: 1px solid var(--cc-line); }
.cc-top h1 { margin: 0; font: 800 18px/1 system-ui, sans-serif; letter-spacing: .14em; color: var(--cc-amber); text-transform: uppercase; }
.cc-top .cc-tag { margin: 0; color: var(--cc-dim); font-size: 13px; }
.cc-top .cc-spacer { flex: 1; }
.cc-switch { display: inline-flex; }
.cc-switch .cc-btn { border-radius: 0; }
.cc-switch .cc-btn:first-child { border-radius: 8px 0 0 8px; }
.cc-switch .cc-btn:last-child { border-radius: 0 8px 8px 0; border-left: 0; }
.cc-switch .cc-btn[aria-pressed="true"] { background: var(--cc-amber); border-color: var(--cc-amber); color: #241703; }
.cc-link, .cc-btn { display: inline-flex; align-items: center; min-height: 36px; padding: 0 12px; border: 1px solid var(--cc-line); border-radius: 8px; background: #0b0f0a; color: var(--cc-text); text-decoration: none; font: 600 13px/1 system-ui, sans-serif; letter-spacing: .04em; cursor: pointer; }
.cc-link:hover, .cc-btn:hover { border-color: var(--cc-amber); color: var(--cc-amber); }
.cc-switch .cc-btn[aria-pressed="true"]:hover { color: #241703; }
.cc-link:focus-visible, .cc-btn:focus-visible { outline: 2px solid var(--cc-amber); outline-offset: 2px; }
.cc-note { margin: 0; padding: 6px 14px; background: #2a2414; color: var(--cc-text); font-size: 13px; border-bottom: 1px solid var(--cc-line); }
.cc-stage { position: relative; flex: 1; min-height: 0; background: var(--cc-bg); }
.cc-stage iframe { display: block; width: 100%; height: 100%; min-height: 480px; border: 0; background: var(--cc-bg); }
.cc-stage:fullscreen { background: var(--cc-bg); }
.cc-stage:fullscreen iframe { min-height: 0; height: 100vh; }
.cc-foot { display: flex; flex-wrap: wrap; gap: 6px 18px; justify-content: space-between; padding: 8px 14px; background: var(--cc-panel); border-top: 1px solid var(--cc-line); color: var(--cc-dim); font-size: 12px; }
.cc-foot p { margin: 0; }
.cc-foot a { color: var(--cc-amber); }
.cc-foot b { color: var(--cc-text); font-weight: 600; }
.cc-help { display: none; }
@media (max-width: 720px) {
  .cc-top { flex-wrap: wrap; gap: 8px 10px; }
  .cc-top h1 { flex: 1; min-width: 0; font-size: 14px; line-height: 1.15; letter-spacing: .08em; }
  .cc-top .cc-spacer, .cc-top .cc-tag { display: none; }
  .cc-link, .cc-btn { flex: none; }
  .cc-stage { min-height: 78dvh; }   /* the game stacks its touch pad under the picture, so it needs the height */
  .cc-stage iframe { min-height: 78dvh; }
  .cc-help { display: block; margin: 0; padding: 10px 14px; color: var(--cc-dim); font-size: 13px; border-top: 1px solid var(--cc-line); background: var(--cc-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) {
  .cc-top .cc-tag { display: none; }
  .cc-stage { flex: none; height: 100dvh; }
  .cc-stage iframe { min-height: 0; }
  body .forge-top-fallback { position: static; }
}
