/* Template 1 — Obsidian Gold (default)
   The look is the base in app/globals.css; this file only adds the
   few touches that would be noise on top of the other templates.

   Theme file contract (all five files):
   - first line re-declares the layer order, so this file can never
     reorder Tailwind's layers when it happens to load first;
   - tokens under `:root:root`, element rules under `:root …`, so they
     beat globals.css whatever the load order;
   - component overrides inside `@layer components`, so utilities at a
     call site still win;
   - page widgets (the `ui-*` hooks listed in app/globals.css) inside
     `@layer template`, which sits after the utilities, so a template can
     redraw a widget whatever utility classes the page put on it. Every
     state a widget can be in is an attribute (data-active, data-state,
     data-tone, data-kind) — style each one, the utility for it loses.
   Obsidian draws its widgets with the utilities alone, so it has no
   template layer. */
@layer theme, base, components, utilities, template;

@layer components {
  :root .site-header {
    border-image: linear-gradient(90deg, transparent, color-mix(in srgb, var(--gold) 55%, transparent), transparent) 1;
  }
  :root .site-brand__name {
    background: linear-gradient(180deg, var(--gold-pale), var(--gold));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
}

/* Lucky wheel stage colours (components/features/luckyWheel/wheel.css). */
:root:root {
  --lw-stage-bg: radial-gradient(70% 60% at 50% 42%, color-mix(in oklab, rgb(255, 215, 0) 24%, #141414) 0%, color-mix(in oklab, rgb(255, 215, 0) 8%, #141414) 55%, #141414 100%);
  --lw-seg-a: #f0c14a;
  --lw-seg-b: color-mix(in oklab, #f0c14a 14%, #141414);
  --lw-seg-c: color-mix(in oklab, #f0c14a 55%, #141414);
  --lw-seg-none: color-mix(in oklab, #daa520 22%, #141414);
  --lw-seg-line: #fff4a3;
  --lw-puck: color-mix(in oklab, #daa520 12%, #141414);
  --lw-puck-text: #ffffff;
  --lw-puck-ring: #ffd700;
  --lw-peg: #fff4a3;
  --lw-bulb: #fff4a3;
  --lw-bulb-glow: rgba(255, 215, 0, 0.85);
  --lw-rim-a: #fff4a3;
  --lw-rim-b: #daa520;
  --lw-rim-c: #8a6410;
  --lw-rim-band: color-mix(in oklab, #8a6410 30%, #141414);
  --lw-hub-a: #ffd700;
  --lw-hub-b: #daa520;
  --lw-hub-ink: #5c3d00;
  --lw-pointer: #ffd700;
  --lw-pointer-edge: #b8860b;
  --lw-pointer-gem: color-mix(in oklab, rgb(255, 215, 0) 55%, rgb(20, 14, 0));
  --lw-win: #fff4a3;
}
