/* Grand Universe THEME: the ONE place for colours, gradients, glows, fonts and radii.
   Loaded first on every page. Everything else must use var(--...) only. See NOTES.md "How to swap the look". */
/* Fonts: self-hosted latin subsets (OFL, via @fontsource, copied by web-src/scripts/copy-fonts.mjs). No third-party font host.
   Display = Anton (digits are tabular by design). Body = Inter (use font-variant-numeric: tabular-nums for money).
   The *Fallback faces are metric-adjusted local fonts so the swap does not jump and no plain Arial/Impact look shows. */
@font-face { font-family: "GU Display"; src: url("../assets/fonts/anton-latin-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "GU Sans"; src: url("../assets/fonts/manrope-latin-400.woff2") format("woff2"); font-weight: 400 500; font-style: normal; font-display: swap; }
@font-face { font-family: "GU Sans"; src: url("../assets/fonts/manrope-latin-700.woff2") format("woff2"); font-weight: 600 700; font-style: normal; font-display: swap; }
@font-face { font-family: "GU Sans"; src: url("../assets/fonts/manrope-latin-800.woff2") format("woff2"); font-weight: 800; font-style: normal; font-display: swap; }
@font-face { font-family: "GU Mono"; src: url("../assets/fonts/jetbrains-mono-latin-500.woff2") format("woff2"); font-weight: 400 500; font-style: normal; font-display: swap; }
@font-face { font-family: "GU Mono"; src: url("../assets/fonts/jetbrains-mono-latin-700.woff2") format("woff2"); font-weight: 600 800; font-style: normal; font-display: swap; }
@font-face { font-family: "GU Display Fallback"; src: local("Impact"), local("Arial Narrow Bold"), local("Arial Black"); size-adjust: 88%; ascent-override: 105%; descent-override: 25%; line-gap-override: 0%; }
@font-face { font-family: "GU Sans Fallback"; src: local("Arial"), local("ArialMT"), local("Helvetica"); size-adjust: 106%; ascent-override: 92%; descent-override: 24%; line-gap-override: 0%; }
@font-face { font-family: "GU Mono Fallback"; src: local("Menlo"), local("Consolas"), local("Courier New"); size-adjust: 100%; ascent-override: 95%; descent-override: 25%; line-gap-override: 0%; }

:root {
  /* Brand palette (final, v7): night #0B0918, deep violet, violet, royal pink, hot pink, coral, sunset orange, gold, white */
  --night: #1B1030;
  --violet-deep: #8A3FE0;
  --violet: #B76BFF;
  --pink-royal: #E0176F;
  --pink: #FF2E88;     /* hot pink */
  --coral: #FF6B5B;
  --orange: #FF7A2F;   /* sunset orange */
  --gold: #FFC94A;
  --white: #FFFFFF;

  /* Roles */
  --bg: #FFF4E8;
  --surface: #FFFFFF;
  --surface-2: #FFE6CF;
  --line: rgb(27 16 48 / .10);
  --line-strong: rgb(27 16 48 / .18);
  --text: #1B1030;
  --muted: #5F4F6B;          /* AA on night and surface */
  --violet-text: #6A25C0;    /* light violet for links / focus / text on night (AA) */
  --on-accent: #1B1030;
  --on-violet: #1B1030;
  --on-pink: #FFFFFF;
  --on-gold: #1B1030;
  --red: var(--pink);        /* alias used by legal/admin pages for errors */

  /* Scene / logo-scene extras */
  --sun-top: #FFD08A;
  --gold-hi: #FFE08A;
  --gold-lo: #FFB02E;

  /* RGB triplets so site.css can write rgb(var(--x-rgb) / alpha) glows without hex */
  --pink-rgb: 255 46 136;
  --orange-rgb: 255 122 47;
  --violet-rgb: 183 107 255;
  --gold-rgb: 255 201 74;
  --white-rgb: 255  255  255;
  --ink-rgb: 27 16 48;
  --gold-text: #8A5A00;
  --pink-strong: #E0176F; /* pink for small text on cream and under white text (>=4.5:1) */
  --pink-text: #C70F62;
  --cream: #FFF4E8; --sand: #FFE6CF; --ink: #1B1030; --teal: #00BFC4; --lilac: #B76BFF;
  --shadow-card: 0 20px 50px rgb(160 70 60 / .14);
  --text-rgb: 27 16 48;
  --bg-rgb: 255 244 232;
  --surface-rgb: 255 255 255;
  --muted-rgb: 95 79 107;
  --black-rgb: 0  0  0;

  /* Night-sky layers (dark to glow) used by scenes, panels and art fallbacks */
  --sky-0: #FFE9D6;
  --sky-1: #FFDCC8;
  --sky-2: #FFCBC4;
  --sky-3: #FFB6C2;
  --sky-4: #FFA3BE;
  --sky-5: #F08FD0;
  --glow-pink: #FF6FA5;
  --glow-coral: #FF8A6B;
  --glow-orange: #FFB38A;
  --glow-gold: #FFD27A;
  --violet-mid: #B76BFF;
  --sea-top: #8FE3E0;
  --skyline-far: #EBA9C4;
  --skyline-near: #CF7FAA;
  --shore: #B8608F;

  /* Soft text tints */
  --text-soft: #3A2C48;
  --text-soft-2: #3A2C48;
  --tint-pink: #B00A55;
  --tint-violet: #5B2BA8;

  /* Gradients: deep violet -> pink -> orange -> gold, used sparingly (primary buttons, key highlights) */
  --grad-brand: linear-gradient(100deg, #E0176F, #FF2E88);
  --grad-sunset: linear-gradient(135deg, #FFB38A 0%, #FF6FA5 55%, #B76BFF 100%);
  --grad-gold: linear-gradient(180deg, var(--gold-hi), var(--gold) 60%, var(--gold-lo));
  --grad-violet: linear-gradient(135deg, #B76BFF, #8A3FE0);

  /* Type */
  --font-display: "GU Display", "GU Display Fallback", sans-serif;
  --font-body: "GU Sans", "GU Sans Fallback", system-ui, sans-serif;
  --font-mono: "GU Mono", "GU Mono Fallback", ui-monospace, Menlo, Consolas, monospace;

  /* Hero / billboard (web-src home) */
  --hud-h: 60px;
  --dock-h: 148px;
  --bb-glow: 0 24px 60px rgb(160 70 60 / .22);
  --scrim: none;
  --scrim-phone: none;

  /* Shape & space */
  --radius-s: 8px;
  --radius: 14px;
  --radius-l: 22px;
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 32px);

  /* Motion */
  --ease: cubic-bezier(.2, .7, .2, 1);
  --fast: .16s;

  /* Texture: subtle film grain (inline SVG noise) */
  --grain: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .075 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
