/* ===== 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.

   The fonts are self-hosted (static/fonts, OFL — see LICENSE.txt there), never
   pulled from Google Fonts: that request hands every visitor's IP address to
   Google, which EU courts have held needs consent. Variable woff2, latin and
   latin-ext subsets; the browser fetches latin-ext only for a glyph it needs. */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(../fonts/inter-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(../fonts/inter-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-display: swap;
  font-weight: 300 700;
  src: url(../fonts/space-grotesk-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-display: swap;
  font-weight: 300 700;
  src: url(../fonts/space-grotesk-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-display: swap;
  font-weight: 100 800;
  src: url(../fonts/jetbrains-mono-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-display: swap;
  font-weight: 100 800;
  src: url(../fonts/jetbrains-mono-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

: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;
}

/* Read by screen readers, not drawn */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ===== 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);
}

/* Irreversible actions (account deletion) */
.btn-danger,
.btn-danger:visited {
  background: var(--danger);
  color: var(--mint-ink);
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.btn-danger:hover:not(:disabled) {
  transform: translateY(-1px);
  filter: brightness(1.06);
}

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