/*
 * GZ: design tokens for the pages outside the game screen (the admin console,
 * /whats-new), in the style of magestorm 6169484 src/app/theme.css: one
 * palette, a light variant. Godzilla's is play.html's green on black.
 */
:root {
  --gz-bg: #0b0f0b;
  --gz-surface: #141c14;
  --gz-surface-2: #1b261b;
  --gz-border: #2c3d2c;
  --gz-accent: #7cff4f;
  --gz-accent-2: #f2d14b;
  --gz-text: #d8e6d0;
  --gz-text-muted: #8fa58a;
  --gz-danger: #ff6b5b;
  --gz-ok: #7ee0a0;
  --gz-warn: #ffb347;
  --gz-shadow: 0 6px 24px rgba(0, 0, 0, 0.5);
  --gz-radius: 8px;
  --gz-font: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --gz-mono: ui-monospace, "Cascadia Mono", Consolas, monospace;
  color-scheme: dark;
}
:root[data-theme="light"] {
  --gz-bg: #f1f6ee;
  --gz-surface: #ffffff;
  --gz-surface-2: #e3eedd;
  --gz-border: #c3d6ba;
  --gz-accent: #2f7a17;
  --gz-accent-2: #8a6a00;
  --gz-text: #0b150b;
  --gz-text-muted: #4d6448;
  --gz-danger: #c0392b;
  --gz-ok: #1e7a45;
  --gz-warn: #9a5a00;
  --gz-shadow: 0 6px 24px rgba(0, 0, 0, 0.15);
  color-scheme: light;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --gz-bg: #f1f6ee;
    --gz-surface: #ffffff;
    --gz-surface-2: #e3eedd;
    --gz-border: #c3d6ba;
    --gz-accent: #2f7a17;
    --gz-accent-2: #8a6a00;
    --gz-text: #0b150b;
    --gz-text-muted: #4d6448;
    --gz-danger: #c0392b;
    --gz-ok: #1e7a45;
    --gz-warn: #9a5a00;
    --gz-shadow: 0 6px 24px rgba(0, 0, 0, 0.15);
    color-scheme: light;
  }
}

/* Copied from magestorm 6169484 src/app/whats-new-page.css - GZ: --gz- tokens (src/app/theme.css). */
/* The standalone page /whats-new (tools/whats-new.ts appends this to theme.css as /whats-new.css). Colours only from theme.css tokens. */
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--gz-bg); color: var(--gz-text); font: 16px/1.6 var(--gz-font); }
a { color: var(--gz-accent); }
a:hover { color: var(--gz-accent-2); }
.wn-page { max-width: 760px; margin: 0 auto; padding: 24px 16px 48px; }
.wn-top { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding-bottom: 16px; border-bottom: 1px solid var(--gz-border); }
.wn-brand { font-size: 22px; letter-spacing: .28em; color: var(--gz-accent-2); text-decoration: none; font-weight: 600; }
.wn-top .spacer { flex: 1; }
.wn-play { display: inline-block; background: var(--gz-accent); color: var(--gz-bg); border-radius: 6px; padding: 8px 16px; font-weight: 600; text-decoration: none; }
.wn-play:hover { background: var(--gz-accent-2); color: var(--gz-bg); }
h1 { font-size: 30px; line-height: 1.2; margin: 28px 0 8px; font-weight: 600; }
.wn-intro { color: var(--gz-text-muted); margin: 0 0 20px; }
.wn-day { margin: 0 0 18px; padding: 14px 18px; border: 1px solid var(--gz-border); border-radius: var(--gz-radius); background: var(--gz-surface); }
.wn-day.latest { border-color: var(--gz-accent); box-shadow: 0 0 0 1px var(--gz-accent); }
.wn-day h2 { font-size: 17px; margin: 0 0 8px; color: var(--gz-accent-2); font-weight: 600; }
.wn-tag { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--gz-bg); background: var(--gz-accent); border-radius: 999px; padding: 1px 8px; vertical-align: 2px; margin-left: 6px; }
.wn-day ul { margin: 0; padding-left: 20px; }
.wn-day li { margin: 6px 0; }
.wn-day li strong:first-child { color: var(--gz-text); }
code { font: .9em var(--gz-mono); background: var(--gz-surface-2); border-radius: 4px; padding: 0 4px; }
.wn-foot { margin-top: 28px; color: var(--gz-text-muted); font-size: 14px; }
/* GZ: the fan-revival notice (src/app/fan-notice.ts) under the footer of /whats-new and /how-to-play. */
.wn-foot .fan-notice { margin: 10px 0 0; font-size: 13px; line-height: 1.5; color: var(--gz-text-muted); }
.wn-foot .fan-notice a { color: inherit; }

/* GZ: the How to play guide's body (how-to-play-content.ts guideHtml), shared by the in-game overlay and /how-to-play
   (tools/how-to-play.ts appends it to theme.css). Colours from theme.css's tokens, with play.html's values as fallbacks. */
.htp-body { color: var(--gz-text, #d8e6d0); font: 14px/1.55 var(--gz-font, system-ui, sans-serif); }
.htp-body h2 { font-size: 16px; margin: 18px 0 6px; color: var(--gz-accent-2, #f2d14b); font-weight: 600; letter-spacing: .02em; }
.htp-body p { margin: 6px 0; }
.htp-body ul { margin: 4px 0; padding-left: 20px; }
.htp-body li { margin: 3px 0; }
.htp-body strong { color: var(--gz-text, #fff); }
.htp-intro { color: var(--gz-text-muted, #8fa58a); }
.htp-toc { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 4px; }
.htp-toc a { font-size: 12px; color: var(--gz-accent, #7cff4f); border: 1px solid var(--gz-border, #2c3d2c); border-radius: 999px; padding: 1px 9px; text-decoration: none; }
.htp-toc a:hover { border-color: var(--gz-accent, #7cff4f); }
.htp-table { border-collapse: collapse; width: 100%; margin: 6px 0 10px; font-size: 13px; }
.htp-table th, .htp-table td { text-align: left; vertical-align: top; padding: 4px 8px; border-bottom: 1px solid var(--gz-border, #2c3d2c); }
.htp-table th { color: var(--gz-accent, #7cff4f); font-weight: 600; font-size: 12px; }
.htp-table td:first-child { white-space: nowrap; color: var(--gz-accent-2, #f2d14b); width: 1%; }
#htp-keys { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 0 22px; }
#htp-keys h2 { grid-column: 1 / -1; }
#htp-keys .htp-table { margin: 2px 0 8px; }
@media (max-width: 560px) { .htp-table td:first-child { white-space: normal; } }

/* The in-game overlay (how-to-play.ts): above the Classic stage and its options panel, under the reconnect box. */
#howto { position: fixed; inset: 0; z-index: 3500; display: none; align-items: center; justify-content: center; background: rgba(0, 0, 0, .6); padding: 16px; }
#howto.on { display: flex; }
#howto .htp-box { background: var(--gz-surface, #141c14); border: 1px solid var(--gz-border, #2c3d2c); border-radius: 10px; width: min(860px, 100%); max-height: 100%; display: flex; flex-direction: column; box-shadow: 0 6px 24px rgba(0, 0, 0, .5); }
#howto .htp-head { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--gz-border, #2c3d2c); flex-wrap: wrap; }
#howto .htp-head h1 { font-size: 18px; margin: 0; color: var(--gz-accent-2, #f2d14b); font-weight: 600; flex: 1; }
#howto .htp-head a { font-size: 12px; color: var(--gz-text-muted, #8fa58a); }
#howto .htp-head button { font-size: 13px; padding: 5px 12px; }
#howto .htp-scroll { overflow-y: auto; padding: 4px 18px 16px; }

/* The "How to play" buttons (header, sign-in, map room): easy to see. */
button.htp-btn { background: #3a3410; border: 1px solid #8a7a20; color: #ffe98a; border-radius: 6px; padding: 4px 11px; font-weight: 600; cursor: pointer; }
button.htp-btn:hover { background: #4a4214; }
#login button.htp-btn { align-self: stretch; padding: 8px 12px; }

/* First-match hints: a small card at the top of the window, over both interfaces; only the card takes clicks. */
#htpHints { position: fixed; left: 50%; top: 56px; transform: translateX(-50%); z-index: 1050; width: min(520px, calc(100% - 24px));
  background: rgba(10, 16, 10, .94); border: 1px solid #8a7a20; border-radius: 8px; padding: 10px 14px; font: 13px/1.5 system-ui, sans-serif; color: #e8f5e0; box-shadow: 0 4px 16px rgba(0, 0, 0, .6); }
#htpHints h3 { margin: 0 0 4px; font-size: 13px; color: #f2d14b; }
#htpHints ul { margin: 0 0 8px; padding-left: 18px; }
#htpHints .htp-row { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
#htpHints button { font-size: 12px; padding: 3px 10px; }

/* Phones and tablets: the desktop notice. */
#htpTouch { position: fixed; left: 0; right: 0; top: 0; z-index: 3600; display: flex; gap: 10px; align-items: center; justify-content: center; flex-wrap: wrap;
  background: #1d3314; border-bottom: 1px solid #3f7a2c; padding: 10px 16px; font: 14px/1.4 system-ui, sans-serif; color: #eaffdf; text-align: center; }
#htpTouch button { font-size: 13px; padding: 5px 12px; }

.htp-body { font-size: 16px; }
.htp-body h2 { font-size: 20px; margin-top: 28px; }
