/* ============================================================
 * Bastion Command — design tokens
 * v1.0.0 · generated 2026-11-04
 *
 * GENERATED FILE — do not edit.
 * Source of truth: design-system/tokens.json
 * Regenerate:     node design-system/build-css.js
 * ============================================================ */

:root {
  /* colour · ground */
  --void: #04060A;
  --hull: #0B1118;
  --hull-raised: #131C26;
  --hull-inset: #070C12;
  --hull-quiet: #0F1620;

  /* colour · structure */
  --grid: #1C2836;
  --grid-bright: #2A3B4E;
  --grid-faint: #121A24;
  --scanline: rgba(61, 224, 208, 0.03);

  /* colour · signal */
  --signal: #3DE0D0;
  --signal-bright: #7BFFF2;
  --signal-dim: #1B6E67;
  --signal-ghost: rgba(61, 224, 208, 0.12);
  --signal-glow: rgba(61, 224, 208, 0.35);

  /* colour · semantic */
  --caution: #F2A63B;
  --caution-dim: #7A5418;
  --hostile: #FF4D57;
  --hostile-dim: #7A2229;
  --confirm: #5BD98A;
  --shield: #3D8BFF;
  --relic: #A96BFF;

  /* colour · resource */
  --mineral: #C8CED6;
  --volatile: #3DE0D0;
  --relic-res: #A96BFF;
  --ammo: #F2A63B;

  /* colour · player */
  --p1: #FF7A45;
  --p2: #34D399;
  --p3: #F472B6;
  --p4: #A3E635;
  --p5: #818CF8;
  --p6: #E8EDF2;

  /* colour · text */
  --text: #DEE5EE;
  --text-dim: #8494A6;
  --text-faint: #556478;
  --text-inverse: #04060A;

  /* chamfer */
  --chamfer-sm: 6px;
  --chamfer-md: 10px;
  --chamfer-lg: 16px;
  --chamfer-xl: 28px;

  /* border */
  --border-hairline: 1px;
  --border-active: 2px;
  --border-accent: 3px;
  --border-heavy: 4px;

  /* space */
  --space-0: 0;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;
  --space-10: 128px;

  /* type · family */
  --font-display: 'Chakra Petch', 'Michroma', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'IBM Plex Mono', ui-monospace, monospace;
  --font-body: 'Inter', system-ui, sans-serif;

  /* type · tv */
  --type-tv-caption-size: 20px;
  --type-tv-caption-line: 28px;
  --type-tv-caption-weight: 500;
  --type-tv-caption-tracking: 0.08em;
  --type-tv-label-size: 24px;
  --type-tv-label-line: 30px;
  --type-tv-label-weight: 600;
  --type-tv-label-tracking: 0.14em;
  --type-tv-body-size: 28px;
  --type-tv-body-line: 40px;
  --type-tv-body-weight: 400;
  --type-tv-body-tracking: 0;
  --type-tv-data-size: 40px;
  --type-tv-data-line: 44px;
  --type-tv-data-weight: 600;
  --type-tv-data-tracking: 0.02em;
  --type-tv-title-size: 48px;
  --type-tv-title-line: 54px;
  --type-tv-title-weight: 700;
  --type-tv-title-tracking: 0.10em;
  --type-tv-headline-size: 72px;
  --type-tv-headline-line: 76px;
  --type-tv-headline-weight: 700;
  --type-tv-headline-tracking: 0.06em;
  --type-tv-coord-size: 96px;
  --type-tv-coord-line: 96px;
  --type-tv-coord-weight: 700;
  --type-tv-coord-tracking: 0.04em;
  --type-tv-hero-size: 120px;
  --type-tv-hero-line: 116px;
  --type-tv-hero-weight: 700;
  --type-tv-hero-tracking: 0.02em;

  /* type · phone */
  --type-phone-micro-size: 11px;
  --type-phone-micro-line: 14px;
  --type-phone-micro-weight: 600;
  --type-phone-micro-tracking: 0.10em;
  --type-phone-caption-size: 13px;
  --type-phone-caption-line: 18px;
  --type-phone-caption-weight: 500;
  --type-phone-caption-tracking: 0.04em;
  --type-phone-label-size: 13px;
  --type-phone-label-line: 16px;
  --type-phone-label-weight: 700;
  --type-phone-label-tracking: 0.12em;
  --type-phone-body-size: 15px;
  --type-phone-body-line: 22px;
  --type-phone-body-weight: 400;
  --type-phone-body-tracking: 0;
  --type-phone-data-size: 20px;
  --type-phone-data-line: 24px;
  --type-phone-data-weight: 600;
  --type-phone-data-tracking: 0.02em;
  --type-phone-title-size: 22px;
  --type-phone-title-line: 26px;
  --type-phone-title-weight: 700;
  --type-phone-title-tracking: 0.08em;
  --type-phone-hero-size: 34px;
  --type-phone-hero-line: 38px;
  --type-phone-hero-weight: 700;
  --type-phone-hero-tracking: 0.04em;

  /* motion */
  --duration-instant: 0ms;
  --duration-fast: 120ms;
  --duration-base: 200ms;
  --duration-slow: 400ms;
  --duration-reveal: 400ms;
  --duration-beat: 900ms;
  --duration-hold: 2000ms;
  --ease-machine: cubic-bezier(0.2, 0, 0, 1);
  --ease-enter: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-exit: cubic-bezier(0.4, 0, 1, 1);
  --ease-impact: cubic-bezier(0.9, 0, 0.1, 1);

  /* target sizes */
  --target-phone-min: 44px;
  --target-phone-comfortable: 56px;
  --target-phone-primary: 72px;
  --target-tv-focus-ring: 3px;
}

/* ---------- chamfer clip-paths ----------
 * The signature motif. A chamfer is always a straight 45-degree cut.
 * border-radius is never used on a structural surface.
 * -------------------------------------- */

.notch-tl { --c: var(--chamfer-lg); clip-path: polygon(var(--c) 0, 100% 0, 100% 100%, 0 100%, 0 var(--c)); }
.notch-diag { --c: var(--chamfer-lg); clip-path: polygon(var(--c) 0, 100% 0, 100% calc(100% - var(--c)), calc(100% - var(--c)) 100%, 0 100%, 0 var(--c)); }
.notch-tr-bl { --c: var(--chamfer-lg); clip-path: polygon(0 0, calc(100% - var(--c)) 0, 100% var(--c), 100% 100%, var(--c) 100%, 0 calc(100% - var(--c))); }
.notch-all { --c: var(--chamfer-lg); clip-path: polygon(var(--c) 0, calc(100% - var(--c)) 0, 100% var(--c), 100% calc(100% - var(--c)), calc(100% - var(--c)) 100%, var(--c) 100%, 0 calc(100% - var(--c)), 0 var(--c)); }
.notch-top { --c: var(--chamfer-lg); clip-path: polygon(var(--c) 0, calc(100% - var(--c)) 0, 100% var(--c), 100% 100%, 0 100%, 0 var(--c)); }

@media (max-width: 900px) {
  .notch-tl, .notch-diag, .notch-tr-bl, .notch-all, .notch-top { --c: var(--chamfer-md); }
}

/* ---------- textures ---------- */
.hazard {
  background-image: repeating-linear-gradient(45deg, currentColor 0 6px, transparent 6px 12px);
}
.grid-texture {
  background-image: linear-gradient(var(--grid-faint) 1px, transparent 1px), linear-gradient(90deg, var(--grid-faint) 1px, transparent 1px);
  background-size: 32px 32px;
}

/* ---------- reduced motion ----------
 * Every named motion degrades to a cross-fade or nothing.
 * -------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  :root {
    --duration-fast: 0ms;
    --duration-base: 0ms;
    --duration-slow: 0ms;
    --duration-reveal: 0ms;
    --duration-beat: 0ms;
  }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
