/* Theme: a tavern table of dark wood, and on it wooden boards like the
   animation's quest HUD (game.c hud_panel: dark wood, a gold trim inside an
   ink rim, gold studs, slots carved in). Only notes — hover cards and help —
   are parchment. */
/* C&C Red Alert [INET] (N3tRunn3r, freeware, web/fonts/RedAlert-README.txt) has one weight; the accented
   letters it lacks (á ã ç é…) come from our own Red Alert Accents (tools/gen_accent_font.py), drawn in its
   style; other glyphs it lacks (☠ ★ →) fall back to Pixelify Sans. */
@font-face { font-family: 'Red Alert'; src: url('../fonts/RedAlert-INET.ttf') format('truetype'); font-display: swap; }
@font-face { font-family: 'Red Alert Accents'; src: url('../fonts/RedAlert-Accents.ttf') format('truetype'); font-display: swap; }
/* Pixelify Sans (OFL, fonts/PixelifySans-OFL.txt), served from here, not
   Google's servers: no visitor's address goes to a third party for it. A
   variable font: one file per script covers every weight. */
@font-face { font-family: 'Pixelify Sans'; font-weight: 400 700; font-display: swap; src: url('../fonts/PixelifySans-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: 'Pixelify Sans'; font-weight: 400 700; font-display: swap; src: url('../fonts/PixelifySans-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; }
:root {
  /* the table */
  --wood: #2a1c13; --wood-2: #352418; --wood-line: #1a110b; --wood-hi: #5a3d26;
  /* the boards (game.c PAL_HUD, PAL_HUD_D, PAL_INK, PAL_GOLD, PAL_GOLD_D) */
  --board: #482612; --board-d: #241208; --board-deep: #120904; --board-lip: #6a3a1c; --rim: #1c1612;
  --gold: #f2c230; --gold-d: #b8860b; --gold-hover: #d39b14; --gold-ink: #fff8e0;
  --board-hover: #2e170a; --tab: #33190b; --tab-hover: #3d1f0e;
  --ink: #f3dfb0; --muted: #c9a878;
  /* the dongle as drawn on the landing: black plastic, whatever the scheme */
  --device: #16161a; --device-hi: #3b3b44;
  /* a slot carved in: shaded top and left walls, a lit lip */
  --carve: inset 3px 3px 0 var(--board-deep), inset -2px -2px 0 var(--board-lip), 0 1px 0 rgba(255, 220, 160, .12);
  --carve-sm: inset 2px 2px 0 var(--board-deep), inset -1px -1px 0 var(--board-lip);
  /* the notes */
  --parch: #efe0bd; --parch-2: #e4d0a3; --parch-line: #9b7a4c; --parch-ink: #2e2014; --parch-muted: #6f5a3d;
  /* buttons and states */
  --accent: #3f7d3a; --accent-hi: #5aa152; --accent-ink: #fff8e6;
  --danger: #c0392b; --danger-ink: #fff3ee;
  --safe: #3f8f3a; --safe-hi: #4ea848; --safe-ink: #f2fff0; --risky: #c98a14; --deadly: #b7352a;
  /* rarity, light enough for the wood; notes use the darker ones below */
  --r0: var(--ink); --r1: #66d17f; --r2: #6fa8ff; --r3: #c58cff;
  --common: #6b6052; --uncommon: #2f8f4e; --rare: #2f6fd1; --epic: #8a3fc4;
  --up: #86d878; --down: #ff8f7f; --warn: #ffb44a; --error: #ff9b8a;
  --pixel: 'Red Alert', 'Red Alert Accents', 'Pixelify Sans', ui-monospace, monospace;
  --body: var(--pixel); /* the whole page is pixel type */
  /* Red Alert's pixels are 1/12.8 of its size, so type comes in steps of
     6.4px: crisp on 2x screens, every font pixel whole device pixels */
  --fs-s: 12.8px; --fs-m: 19.2px; --fs-l: 25.6px; --fs-xl: 38.4px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { background: var(--wood); font-synthesis: none; }
body {
  margin: 0; color: var(--ink); font: var(--fs-m)/1.45 var(--body);
  background-color: var(--wood);
  background-image:
    repeating-linear-gradient(90deg, transparent 0 46px, rgba(0,0,0,.18) 46px 48px),
    repeating-linear-gradient(0deg, rgba(255,255,255,.015) 0 3px, transparent 3px 9px),
    linear-gradient(180deg, var(--wood-2), var(--wood));
  min-height: 100vh;
}
main { max-width: 1040px; margin: 0 auto; padding: 12px 16px 48px; }
h1, h2, h3, h4, button, .pixel, .tabs, .lvl-badge, .pill, .gold-pill { font-family: var(--pixel); }
h2 { font-size: var(--fs-m); margin: 0; letter-spacing: .02em; }
h3 { font-size: var(--fs-s); margin: 0; }
h4 { font-size: var(--fs-s); margin: 0; letter-spacing: .5px; }
.muted { color: var(--muted); font-size: var(--fs-s); }
.error { color: var(--error); min-height: 1.4em; }
.warn { color: var(--warn); }
.short { color: var(--down); }
.up { color: var(--up); } .down { color: var(--down); }
[hidden] { display: none !important; }
a { color: var(--gold); }
code { background: var(--board-d); box-shadow: var(--carve-sm); padding: 1px 6px; border-radius: 2px; font-size: 1em; word-break: break-all; }
.r0 { color: var(--r0); } .r1 { color: var(--r1); } .r2 { color: var(--r2); } .r3 { color: var(--r3); font-weight: 700; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
