/* =====================================================================
   THEME TOKENS: "Defaced Proclamations"
   Brightmarch's royal blue walls and ivory proclamations, gilt trim,
   claw-red monster marks, moss for health.
   Two surfaces: the WALL (royal blue, ivory text: the default) and PAPER
   (ivory, ink text). Anything that is a notice, a sheet or a scrap of paper
   gets .paper-surface tokens (see 31-homesworn.css), so its text flips to ink.
   ===================================================================== */
:root {
  /* the page's zoom-corrected viewport units (src/core/zoom.js sets --skz) */
  --hvw: calc(1vw / var(--skz, 1)); --hvh: calc(1vh / var(--skz, 1)); --hdvh: calc(1dvh / var(--skz, 1));
  /* palette */
  --ivory: #efe6d2;
  --paper: #e6dbc2; --paper-2: #d8ccad; --royal: #24346b; --royal-deep: #1b2750; --royal-mid: #1c2a5a; --royal-night: #0d1430; --gilt: #c9a13b;
  --gilt-dark: #8a6d27; --claw: #a3261f; --claw-dark: #6f1813; --moss: #4f6b3a; --moss-2: #6f8f4f; --ink: #1e1b16; --ink-muted: #4a4336;
  /* more palette: colours used in several sheets */
  --gilt-light: #f0dc9a; --paper-edge: #9a8e72; --gilt-aged: #b08a2e; --mist: #d6dbee; --moss-dark: #3f5a2c; --black: #000000;
  --white: #ffffff; --ink-35: rgba(30, 27, 22, .35); --ink-45: rgba(30, 27, 22, .45); --ink-25: rgba(30, 27, 22, .25);
  --night-55: rgba(5, 9, 24, .55); --night-35: rgba(5, 9, 24, .35); --shade-50: rgba(0, 0, 0, .5); --shade-55: rgba(0, 0, 0, .55);
  --shade-60: rgba(0, 0, 0, .6); --shade-45: rgba(0, 0, 0, .45); --shade-25: rgba(0, 0, 0, .25); --shade-35: rgba(0, 0, 0, .35);
  --shade-30: rgba(0, 0, 0, .3);
  --font-display: "HS Fell SC", "IM Fell English SC", Georgia, "Times New Roman", serif;
  --font-body: "HS Fell", "IM Fell English", Georgia, "Times New Roman", serif; --font-scrawl: "HS Scrawl", "Rock Salt", "Comic Sans MS", cursive;
  /* wall surface (default) */
  --bg: var(--royal-night);
  --bg-2: var(--royal-deep); --panel: var(--royal-mid); --panel-2: var(--royal); --line: #4a5c9c; --gold: var(--gilt); --gold-2: #f3e3b0;
  --text: var(--ivory); --muted: #c3c9de; --hp: var(--moss); --hp-2: var(--moss-2); --hp-bg: #2a2620; --block: #5d7bc0; --block-2: #a9bdf0;
  --energy: var(--claw); --attack-2: #d0453a; --skill-2: #7f9fd0; --shadow: 0 10px 30px rgba(5, 9, 24, 0.5); --radius: 4px;
  --damask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='90' height='90' viewBox='0 0 90 90'%3E%3Cg fill='none' stroke='%2333478a' stroke-width='1.6'%3E%3Cpath d='M45 12 C56 28 56 34 45 45 C34 34 34 28 45 12 Z M45 78 C56 62 56 56 45 45 C34 56 34 62 45 78 Z'/%3E%3C/g%3E%3Cg fill='%2333478a'%3E%3Ccircle cx='0' cy='0' r='5'/%3E%3Ccircle cx='90' cy='0' r='5'/%3E%3Ccircle cx='0' cy='90' r='5'/%3E%3Ccircle cx='90' cy='90' r='5'/%3E%3C/g%3E%3C/svg%3E");
  --card-w: 146px !important; --card-h: 210px !important; --pc0: #a3261f; --pc1: #17788f;
  color-scheme: dark;
}

* { box-sizing: border-box; }
body {
  margin: 0; min-height: calc(100 * var(--hvh)); background-attachment: fixed; color: var(--text); font-family: var(--font-body); font-size: 14px;
  overflow-x: hidden; user-select: none; background: var(--bg);
}
html { margin: 0; background: var(--bg); }
button { font: inherit; color: inherit; cursor: pointer; }
button:disabled { cursor: not-allowed; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 400; }
