/* ===== SIGNAL GLASS — shared tokens, base and buttons for the public pages =====
   The approved mobile UI direction (docs/art/mobile-art-guide.md §4, reference:
   docs/art/ui-mockups/source/themes/signal-glass.css): frosted glass, mint for
   what the player does, warm gold for what the game tells them, Space Grotesk /
   Inter / JetBrains Mono. Load before a page's own stylesheet; each page loads
   the fonts from its <link>. */

:root {
  /* colour */
  --bg: #0b1314;
  --surface: #111c1e;
  --ink: #eef1e7;
  --ink-soft: #cdd6cb;
  --muted: #97a8a1;
  --mint: #8ee0b3;
  --mint-rgb: 142 224 179;
  --mint-hi: #a2ecc3;
  --mint-lo: #7fd6a6;
  --mint-ink: #07170e;
  --gold: #e9c179;
  --gold-rgb: 233 193 121;
  --danger: #ea8672;
  --success: var(--mint);
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.2);
  /* glass */
  --glass-bg: rgba(14, 24, 26, 0.58);
  --glass-bg-strong: rgba(14, 24, 26, 0.72);
  --glass-edge: rgba(255, 255, 255, 0.14);
  --glass-edge-strong: rgba(255, 255, 255, 0.22);
  --glass-hi: rgba(255, 255, 255, 0.2);
  --glass-tile: rgba(255, 255, 255, 0.06);
  --sheen: linear-gradient(135deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.02) 38%, rgba(255, 255, 255, 0) 60%);
  --frost: blur(22px) saturate(150%);
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.5), 0 2px 8px rgba(0, 0, 0, 0.3);
  /* shape */
  --radius-pill: 17px;
  --radius-sheet: 18px;
  --radius-ctl: 12px;
  --radius-tag: 6px;
  --gutter: 14px;
  /* type */
  --font-display: 'Space Grotesk', 'Inter', sans-serif;
  --font-body: 'Inter', -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', Menlo, monospace;

  color-scheme: dark;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

::selection { background: rgb(var(--mint-rgb) / 0.28); }

a:focus-visible,
.btn:focus-visible {
  outline: 2px solid var(--mint);
  outline-offset: 3px;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 40px;
  padding: 0 18px;
  border-radius: var(--radius-ctl);
  border: 1px solid var(--glass-edge);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn:active:not(:disabled) { transform: translateY(1px); }

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.btn-primary,
.btn-primary:visited {
  background: linear-gradient(180deg, var(--mint-hi), var(--mint-lo));
  color: var(--mint-ink);
  border-color: rgba(255, 255, 255, 0.55);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), 0 8px 24px rgb(var(--mint-rgb) / 0.28);
}

.btn-primary:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), 0 10px 30px rgb(var(--mint-rgb) / 0.42);
}

.btn-secondary,
.btn-secondary:visited {
  background: rgb(var(--gold-rgb) / 0.06);
  color: var(--gold);
  border-color: rgb(var(--gold-rgb) / 0.35);
  box-shadow: inset 0 1px 0 var(--glass-hi);
}

.btn-secondary:hover:not(:disabled) {
  background: rgb(var(--gold-rgb) / 0.12);
  border-color: rgb(var(--gold-rgb) / 0.6);
}
