/* DUMBGEON design tokens. Every colour, size and the pixel frame live here; the other CSS files only use these.
   The look: a classic online RPG interface in a hard pixel style. No rounded corners, no blur, no soft shadow, no gradient. */
@font-face { font-family: 'Press Start 2P'; src: url('/fonts/PressStart2P-Regular.ttf') format('truetype'); font-display: block; }
@font-face { font-family: 'VT323'; src: url('/fonts/VT323-Regular.ttf') format('truetype'); font-display: block; }
/* the interface type (SIL Open Font Licence, files and licences in /fonts): Cinzel for display, Barlow for text, Barlow Semi Condensed for numbers */
@font-face { font-family: 'Cinzel'; src: url('/fonts/Cinzel-var.woff2') format('woff2'); font-weight: 400 900; font-display: swap; }
@font-face { font-family: 'Barlow'; src: url('/fonts/Barlow-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Barlow'; src: url('/fonts/Barlow-500.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Barlow'; src: url('/fonts/Barlow-600.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Barlow Semi Condensed'; src: url('/fonts/BarlowSemiCondensed-500.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Barlow Semi Condensed'; src: url('/fonts/BarlowSemiCondensed-600.woff2') format('woff2'); font-weight: 600; font-display: swap; }

:root {
  /* ink and slate (panels) */
  --ink: #07090d;
  --slate-0: #10151e;
  --slate-1: #1b2230;
  --slate-2: #252e3f;
  --slate-3: #313c51;
  --edge-hi: #5a6b85;
  --edge-lo: #0a0d13;
  /* deep teal (title bars, main buttons) */
  --teal-0: #0b3236;
  --teal-1: #12514f;
  --teal-2: #1c706b;
  --teal-hi: #3fa79a;
  --teal-lo: #072224;
  /* parchment (quest and NPC text) */
  --parch: #e6d3a3;
  --parch-2: #d7c08a;
  --parch-hi: #f6e8c3;
  --parch-lo: #8f7443;
  --parch-ink: #3a2812;
  --parch-dim: #6e5631;
  /* money and loot */
  --amber: #ffad33; /* Silver and prices */
  --amber-lo: #8a5208;
  --gold: #ffd94a; /* relic stars and the token */
  --gold-lo: #94700b;
  /* bars */
  --hp: #3fc24c; --hp-lo: #1a5f22; --hp-bg: #0f2a12;
  --sp: #3d7df0; --sp-lo: #193f86; --sp-bg: #0c1a35;
  --exp: #9a52ff; --exp-lo: #4b2296; --exp-bg: #1a0f33;
  --enemy: #e04848; --enemy-lo: #6d1717;
  /* grades */
  --g-common: #9aa4b0;
  --g-uncommon: #4fd36a;
  --g-rare: #4aa3ff;
  --g-epic: #b86cff;
  /* text */
  --text: #e8edf4;
  --dim: #8d99ab;
  --dimmer: #5c6779;
  --good: #59e06b;
  --bad: #ff5a55;
  --warn: #ffb347;
  --info: #7cc7ff;
  --live: #ff6b3d;
  --practice: #3fa79a;

  /* the pixel frame: a 2 px black outline, a 2 px light edge top-left, a 2 px dark edge bottom-right */
  --frame: 0 0 0 2px var(--ink), inset 2px 2px 0 var(--edge-hi), inset -2px -2px 0 var(--edge-lo);
  --frame-in: 0 0 0 2px var(--ink), inset 2px 2px 0 var(--edge-lo), inset -2px -2px 0 var(--edge-hi);
  --frame-teal: 0 0 0 2px var(--ink), inset 2px 2px 0 var(--teal-hi), inset -2px -2px 0 var(--teal-lo);
  --frame-teal-in: 0 0 0 2px var(--ink), inset 2px 2px 0 var(--teal-lo), inset -2px -2px 0 var(--teal-hi);
  --frame-parch: 0 0 0 2px var(--ink), inset 2px 2px 0 var(--parch-hi), inset -2px -2px 0 var(--parch-lo);
  --frame-amber: 0 0 0 2px var(--ink), inset 2px 2px 0 #ffd28a, inset -2px -2px 0 var(--amber-lo);
  --frame-red: 0 0 0 2px var(--ink), inset 2px 2px 0 #ff8a85, inset -2px -2px 0 #5a1010;
  --drop: 4px 4px 0 0 rgba(0, 0, 0, .55); /* a hard pixel drop, no blur */

  /* type */
  /* --f-px was the pixel font: it is now the number and label face; the pixel font is --f-pixel (damage numbers, key labels) */
  --f-display: 'Cinzel', 'Trajan Pro', Georgia, serif;
  --f-px: 'Barlow Semi Condensed', 'Barlow', 'Arial Narrow', sans-serif;
  --f-body: 'Barlow', 'Segoe UI', Arial, sans-serif;
  --f-pixel: 'Press Start 2P', monospace;
  --t-xs: 12px;
  --t-s: 13px;
  --t-m: 15px;
  --t-l: 19px;
  --t-xl: 28px;
  --b-s: 14px;
  --b-m: 15px;
  --b-l: 17px;

  /* sizes */
  --u: 4px;
  --gap: 8px;
  --slot: 44px;
  --hot: 48px;
  --touch: 44px;
  --bar-h: 10px;
  --top-h: 28px;
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-r: env(safe-area-inset-right, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-l: env(safe-area-inset-left, 0px);
  --edge-t: calc(8px + var(--safe-t));
  --edge-r: calc(8px + var(--safe-r));
  --edge-b: calc(8px + var(--safe-b));
  --edge-l: calc(8px + var(--safe-l));
}

/* the frame family: every panel, slot, bar and button uses one of these */
.fr { background: var(--slate-1); box-shadow: var(--frame); }
.fr-in { background: var(--slate-0); box-shadow: var(--frame-in); }
.fr-teal { background: var(--teal-1); box-shadow: var(--frame-teal); }
.fr-parch { background: var(--parch); color: var(--parch-ink); box-shadow: var(--frame-parch); }
.g-common { --gc: var(--g-common); }
.g-uncommon { --gc: var(--g-uncommon); }
.g-rare { --gc: var(--g-rare); }
.g-epic { --gc: var(--g-epic); }
.g-relic { --gc: var(--gold); }
.t-amber { color: var(--amber); }
.t-gold { color: var(--gold); }
.t-dim { color: var(--dim); }
.t-good { color: var(--good); }
.t-bad { color: var(--bad); }
.t-teal { color: var(--teal-hi); }
.px { font-family: var(--f-px); }
