/* ── 2-FONT LOCKDOWN: OffBit DotBold (Primary) & OffBit Dot (Secondary) ── */
@font-face {
  font-family: 'OffBit-DotBold';
  src: url('/assets/fonts/OffBit-DotBold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'OffBit-Dot';
  src: url('/assets/fonts/OffBit-Dot.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ═══════════════════════════════════════════════════════════════════
   COLOR PALETTE — exactly 4 colors per mode. Nothing else in this
   stylesheet uses a raw color value: every other color below is a
   transparency-derived mix of these four tokens. To retheme, edit
   only these twelve lines.
     --c1  base / page background
     --c2  panel / raised surface
     --c3  ink — text, borders, icons
     --c4  accent — highlights, danger, active state
   ═══════════════════════════════════════════════════════════════════ */
:root {
  --c1: #DCF4A2; /* Creamy Avocado */
  --c2: #C7E885; /* Deep Avocado panel / box fill */
  --c3: #0055A4; /* French Blue ink — typography, lines, icons */
  --c4: #003870; /* Deep French Blue — active accent, badges, danger */
}

/* ── Derived tokens — transparency variants of the 4 palette colors and
      semantic aliases mapped onto them. No new colors are introduced. ── */
:root {
  /* ink at reduced opacity — borders, dividers, muted text */
  --border-light:  color-mix(in srgb, var(--c3) 20%, transparent);
  --border-medium: color-mix(in srgb, var(--c3) 45%, transparent);
  --border-heavy:  color-mix(in srgb, var(--c3) 80%, transparent);
  --text-muted:    color-mix(in srgb, var(--c3) 86%, var(--c1));
  /* modal / overlay scrim — the page background at high opacity */
  --scrim:         color-mix(in srgb, var(--c1) 92%, transparent);
  --scanline-c:    color-mix(in srgb, var(--c3) 3%, transparent);
  --noise-op: 0.03;

  /* semantic aliases → all resolve to the Creamy Avocado & French Blue palette */
  --bg-main:       var(--c1);
  --bg-card:       var(--c2);
  --bg-modal:      var(--c1);
  --text-main:     var(--c3);
  --text-modal:    var(--c3);
  --accent:        var(--c3);
  --danger:        var(--c4);
  --card-bg:       var(--c2);
  --card-hover:    color-mix(in srgb, var(--c1) 70%, var(--c3));
  --active-art-bg: color-mix(in srgb, var(--c3) 85%, var(--c1));

  /* ── Flat & High Contrast Tokens (Zero Gradients, Zero Glows) ── */
  --accent-soft:       color-mix(in srgb, var(--c3) 15%, transparent);
  --accent-glow:       transparent;
  --surface-hover:     color-mix(in srgb, var(--c3) 12%, var(--c2));
  --focus-ring:        color-mix(in srgb, var(--c3) 45%, transparent);
  --gradient-accent:   var(--c3);
  --card-border-hover: var(--c4);

  /* ── Strict 2-Font System ── */
  --font-sans:      'OffBit-DotBold', monospace;
  --font-mono:      'OffBit-Dot', monospace;
  --font-primary:   'OffBit-DotBold', monospace;
  --font-secondary: 'OffBit-Dot', monospace;
  --font-display:   'OffBit-DotBold', monospace;

  --border-main: 1.5px solid var(--c3);
  --radius-card: 8px;
  --radius-pill: 99px;

  /* ── Z-Index Hierarchy Layering ── */
  --z-bg: 0;
  --z-content: 10;
  --z-dock: 100;
  --z-auth-overlay: 500;
  --z-status-bar: 9000;
  --z-overlay-base: 10000;
  --z-toast: 20000;
}

*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html,body{
  width:100%;height:100%;overflow:hidden;
  background:var(--c1);
  color:var(--c3);
  font-family:var(--font-mono);
  user-select:none;
}

.bg{
  position:fixed;inset:0;z-index:0;
  background:var(--c1);
}

