:root {
  --bg: #0d1013;
  --panel: #171c21;
  --panel-edge: #2a323a;
  --text: #e8e4d8;
  --muted: #9aa3ab;
  --accent: #f2a516;
  --accent-text: #1a1206;
  --danger: #e0533d;
  --radius: 8px;
  --gap: 16px;
  color-scheme: dark;
  font-family: "Trebuchet MS", "Segoe UI", system-ui, sans-serif;
  --font-heading: "League Spartan", "Arial Black", Arial, sans-serif;
}

/* League Spartan (SIL OFL 1.1, assets/fonts/OFL.txt): one variable file per script, for the screen headers. */
@font-face {
  font-family: "League Spartan"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("../assets/fonts/league-spartan-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "League Spartan"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("../assets/fonts/league-spartan-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;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
  background: var(--bg);
  color: var(--text);
}

#app {
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

h1, h2, h3 { margin: 0 0 0.5em; letter-spacing: 0.02em; }
p { line-height: 1.5; }
a { color: var(--accent); }

button {
  font: inherit;
  padding: 0.6em 1.2em;
  border-radius: var(--radius);
  border: 1px solid var(--panel-edge);
  background: var(--panel);
  color: var(--text);
  cursor: pointer;
}
button:hover:not(:disabled) { border-color: var(--accent); }
button:disabled { opacity: 0.5; cursor: default; }
button.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-text);
  font-weight: bold;
}
button.danger {
  border-color: var(--danger);
  color: #ff9d8d;
}
button.danger:hover:not(:disabled) { background: #3a1713; border-color: #ff735e; }

.muted { color: var(--muted); }
.error { color: var(--danger); }

.watermark { position: fixed; right: 8px; bottom: 6px; z-index: 9999; opacity: 0.7; pointer-events: none; font: 18px Arial, sans-serif; color: #fff; text-shadow: 1px 1px 0 #000; }
.watermark canvas { display: block; image-rendering: pixelated; }
