/* =====================================================================
   Integrated Boogaloo Wiki — design tokens
   Source of truth for every color/size. Never hard-code values in
   components or pages; add a token here first (see ib-design-system skill).
   Brand values come from the pack itself:
     config/dark_loading_screen.json  -> bg, purple, purple-deep, border, gold
     config/fancymenu/assets/*.png    -> chevron purple, hover orange
     AntOS (antos jar, theme "green") -> antos greens
   ===================================================================== */
@font-face { font-family: "Silkscreen"; src: url(../fonts/Silkscreen-Regular.ttf) format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Silkscreen"; src: url(../fonts/Silkscreen-Bold.ttf) format("truetype"); font-weight: 700; font-display: swap; }

:root {
  /* ---- brand: gold (INTEGRATED) ---- */
  --ib-gold-100: #fff3b8;
  --ib-gold-300: #ffe26b;
  --ib-gold-500: #f2c81a;   /* loading-screen logo */
  --ib-gold-700: #c58a00;
  --ib-gold-900: #4a2a00;   /* logo outline / text drop shadow */

  /* ---- brand: purple (BOOGALOO) ---- */
  --ib-purple-200: #d6b8ff;
  --ib-purple-300: #b98cff;
  --ib-purple-500: #8c52ff; /* loading-screen background */
  --ib-purple-600: #6722ef; /* loading-screen bar */
  --ib-purple-800: #3a128f;
  --ib-purple-950: #1a0638;
  --ib-chevron:    #6a4fa3; /* main-menu button chevrons */
  --ib-orange:     #f5a742; /* main-menu button hover text */

  /* ---- AntOS terminal ---- */
  --ib-antos-300: #8dffb3;
  --ib-antos-500: #3cff7a;
  --ib-antos-700: #1f7a43;
  --ib-antos-800: #12381f;
  --ib-antos-900: #06100a;
  --ib-antos-screen: #030806;

  /* ---- surfaces (dark night) ---- */
  --ib-bg:          #14181c; /* loading-screen barBackground */
  --ib-bg-deep:     #0d0f12;
  --ib-surface:     #1d2126;
  --ib-surface-2:   #252a30;
  --ib-surface-3:   #2e343b;
  --ib-border:      #303336; /* loading-screen border */
  --ib-border-strong: #4a4f57;

  /* ---- text ---- */
  --ib-text:        #ece9f5;
  --ib-text-muted:  #a6a3b6;
  --ib-text-faint:  #6f6c7e;
  --ib-link:        var(--ib-purple-300);
  --ib-link-hover:  var(--ib-gold-300);

  /* ---- semantic ---- */
  --ib-danger:  #ff5a4e;
  --ib-warn:    var(--ib-gold-500);
  --ib-ok:      var(--ib-antos-500);
  --ib-info:    #5aa9ff;

  /* ---- Minecraft-native colors (tooltips, rarities, source badges) ---- */
  --mc-tooltip-bg: rgba(16, 0, 16, .94);
  --mc-tooltip-border-top: #5000ff;
  --mc-tooltip-border-bottom: #28007f;
  --mc-modname: #5555ff;      /* JEI/EMI mod-name line */
  --mc-white: #ffffff;
  --mc-yellow: #ffff55;       /* uncommon */
  --mc-aqua: #55ffff;         /* rare */
  --mc-pink: #ff55ff;         /* epic */
  --mc-gray: #aaaaaa;
  --mc-slot: #8b8b8b;
  --mc-slot-dark: #373737;

  /* ---- entity-kind colors (badges, search groups, map nodes) ---- */
  --kind-item: var(--ib-gold-500);
  --kind-task: var(--ib-antos-500);
  --kind-mob: var(--ib-danger);
  --kind-entry: #5ce0d0;
  --kind-guide: var(--ib-purple-300);
  --kind-mod: var(--ib-orange);
  --kind-biome: #7ccf5a;
  --kind-structure: #c79a6b;
  --kind-quiz: #ff9ad5;

  /* ---- type ---- */
  --ib-font-display: "Silkscreen", "Courier New", monospace;
  --ib-font-body: system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --ib-font-mono: ui-monospace, "Cascadia Mono", Consolas, monospace;
  --ib-fs-2xs: 11px;
  --ib-fs-xs: 12px;
  --ib-fs-sm: 13px;
  --ib-fs-md: 15px;
  --ib-fs-lg: 18px;
  --ib-fs-xl: 22px;
  --ib-fs-2xl: 28px;
  --ib-fs-3xl: 36px;
  --ib-lh: 1.55;

  /* ---- space (4px grid) ---- */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px;

  /* ---- shape: pixel world = square corners, hard shadows ---- */
  --ib-radius: 0;
  --ib-bw: 2px;                       /* border width */
  --ib-bevel: inset 2px 2px 0 rgba(255,255,255,.05), inset -2px -2px 0 rgba(0,0,0,.38);
  --ib-bevel-in: inset 2px 2px 0 rgba(0,0,0,.55), inset -2px -2px 0 rgba(255,255,255,.06);
  --ib-drop: 0 4px 0 #08090b;
  --ib-text-shadow-gold: 2px 2px 0 var(--ib-gold-900);
  --ib-text-shadow: 2px 2px 0 #000;

  /* ---- icons: integer scales only ---- */
  --icon-16: 16px; --icon-32: 32px; --icon-48: 48px; --icon-64: 64px;

  /* ---- layout ---- */
  --ib-max: 1240px;
  --ib-rail: 300px;
  --ib-topbar: 60px;

  /* ---- motion ---- */
  --ib-fast: 90ms;
  --ib-med: 180ms;
}

@media (prefers-reduced-motion: reduce) {
  :root { --ib-fast: 0ms; --ib-med: 0ms; }
}
