/**
 * Design tokens — sourced from Figma UI kit section `325:7273` (in-scope components only).
 * Sampled via `scripts/figma-extract-ui-tokens.mjs` (REST, node fills/type).
 * Shop UI (`filter_list`, etc.) excluded per T01_T02A_SPEC §4.4.
 *
 * Fonts load from HTML `<link href="/css/fonts.css">`, not `@import` here,
 * so the token sheet does not block on an extra CSS dependency chain.
 */

:root {
  /* Breakpoints (desktop-first media queries in layout.css) */
  --bp-tablet-max: 1024px;
  --bp-mobile-max: 375px;
  --layout-max-width: 1474px;
  --game-frame-width: 1920px;
  --game-frame-height: 1080px;

  /* Surfaces */
  --color-bg: #040f23;
  --color-bg-deep: #020810;
  --color-surface: #0a1628;
  --color-surface-muted: #121e33;
  --color-surface-header: #040f23;
  --color-surface-overlay: rgba(10, 22, 40, 0.72);
  --color-surface-overlay-strong: rgba(4, 15, 35, 0.72);
  --color-border: #2b3449;
  --color-line: rgba(221, 233, 255, 0.12);
  /* FAQ rules — Figma 516:10780 / 670:1747, same hex as footer frame */
  --color-rule: #5a5c77;

  /* Text */
  --color-text: #dde9ff;
  --color-text-soft: #dce8ff;
  --color-text-muted: #b7c4dc;
  --color-text-gold: #d0b16f;
  --color-text-gold-light: #fbf0c9;
  /* Landing battle triangle — Figma 516:10522 / 670:1603 (not in UI kit 325:7273) */
  --color-text-steel: #aebbd1;
  /* Final CTA shade — Figma 516:10755 / 670:1763, same ink as --color-bg */
  --color-cta-shade-top: rgb(4 15 35 / 45%);
  --color-cta-shade-bottom: rgb(4 15 35 / 92%);
  --color-surface-ink: rgba(40, 45, 61, 0.55);
  --color-gold-wash: rgba(208, 177, 111, 0.07);
  --color-gold-line: rgba(208, 177, 111, 0.35);
  --shadow-lift: 0 2px 6.75px rgba(0, 0, 0, 0.32);

  /* Brand / actions */
  --color-accent: #d0b16f;
  --color-accent-hover: #e0c07f;
  --color-focus-ring: #8ea7ff;
  --color-danger: #ff7d7d;
  --color-success: #63d4a9;

  /* ui.btn (325:617 / 325:615) */
  --color-btn-bg: #ffffff;
  --color-btn-bg-hover: #e8eef8;
  --color-btn-text: #29324c;
  --radius-btn: 5px;

  /* Typography — Oswald (nav, headings, buttons), Commissioner (body) */
  --font-display: "Oswald", "Segoe UI", sans-serif;
  --font-body: "Commissioner", "Segoe UI", system-ui, sans-serif;

  --text-nav-size: 0.875rem;
  --text-nav-lh: 1.375rem;
  --text-nav-tracking: 0.0625em;

  --text-eyebrow-size: 0.875rem;
  --text-eyebrow-tracking: 0.08em;

  --text-body-size: 1.125rem;
  --text-body-lh: 1.65;

  /* Reading text for defaults and Strapi. Larger than Figma body 16px
     so paragraphs and subtitles stay readable on the dark background. */
  --text-paragraph-size: var(--text-body-size);
  --text-paragraph-lh: var(--text-body-lh);
  --text-lead-size: 1.25rem;
  --text-lead-lh: 1.6;
  --text-subhead-size: 1.5rem;
  --text-subhead-lh: 1.35;

  --text-display-xl: clamp(2.5rem, 5vw, 6.25rem);
  --text-display-lh: 1.05;

  /* Spacing scale */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 2.5rem;
  --space-8: 3rem;
  --space-10: 4rem;

  /* Radii */
  --radius-sm: 0.3125rem;
  --radius-md: 0.625rem;
  --radius-lg: 1rem;
  --radius-pill: 999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(2, 8, 16, 0.35);
  --shadow-md: 0 8px 24px rgba(2, 8, 16, 0.45);
  --shadow-header: 0 10px 35px rgba(0, 0, 0, 0.28);

  /* Shared site header — Figma 586:2716 / 670:3363 (MCP) */
  --header-backdrop-blur: 18px;
  --header-border: rgba(221, 233, 255, 0.14);
  --header-padding-x: 3.125rem;
  --header-padding-mobile: 1.25rem 2.5rem 0 1.875rem;
  --header-nav-gap: 1.98rem;
  --header-bar-height: 4.125rem;
  --header-logo-slot-width: 9.875rem;
  --header-cta-width: 9.875rem;
  --header-cta-height: 4.125rem;
  --header-logo-width: 9.375rem;
  --header-logo-height: 2.875rem;
  --header-logo-width-mobile: 6.05225rem;
  --header-logo-height-mobile: 1.8725rem;
  --header-logo-slot-height-mobile: 2.663rem;
  --header-logo-slot-width-mobile: 6.375rem;
  --header-cta-label-size: 1.5rem;
  --header-cta-label-color: #29354c;
  --header-burger-width: 1.625rem;
  --header-burger-height: 1.0625rem;
  --header-burger-bar-height: 3px;

  /* Mobile header menu open — Figma 670:1222 / 702:2182 */
  --header-mobile-bar-height: 5.125rem;
  --header-mobile-nav-gap: 1.25rem;
  --header-mobile-nav-padding: 1.25rem 1.875rem;
  --header-mobile-nav-min-height: 17.0625rem;
  --header-mobile-nav-tracking: 0.0625rem;

  /* Shared site footer — Figma 594:3364 desktop, 695:3658 mobile */
  --footer-frame-border: #5a5c77;
  --footer-shell-padding-top: 3.75rem;
  --footer-padding-x: 5.3125rem;
  --footer-padding-top: 5rem;
  --footer-padding-bottom: 7.006875rem;
  --footer-logo-width: 18.75rem;
  --footer-logo-height: 12.84375rem;
  --footer-center-max-width: 18.75rem;
  --footer-top-column-gap: 3rem;
  --footer-top-to-bottom: 3.599609375rem;
  --footer-payment-height: 2.75rem;
  --footer-payment-gap: 1.25rem;
  --footer-badge-visa-width: 5.845703125rem;
  --footer-badge-visa-height: 2.375rem;
  --footer-badge-mastercard-width: 6.4853515625rem;
  --footer-badge-mastercard-height: 2.375rem;
  --footer-badge-security-width: 6.5rem;
  --footer-badge-security-height: 2.625rem;
  --footer-legal-padding-top: 1.5rem;
  --footer-legal-min-height: 2.875rem;
  --footer-link-gap: 0.625rem;
  --footer-link-color: #aebbd1;
  --footer-divider-color: rgba(90, 92, 119, 0.55);
  --footer-legal-size: 0.875rem;
  --footer-legal-lh: 1.5rem;
  --footer-title-size: 1.125rem;
  --footer-title-lh: 1.75rem;
  --footer-title-tracking: 0.125rem;
  --footer-link-size: 1rem;
  --footer-link-lh: 1.625rem;

  /* Mobile footer — Figma 695:3658 */
  --footer-mobile-outer-padding: 1.25rem 1.25rem 1.875rem;
  --footer-mobile-frame-padding-top: 1.25rem;
  --footer-mobile-logo-width: 17.5rem;
  --footer-mobile-logo-height: 12rem;
  --footer-mobile-nav-padding-block: 1.875rem;
  --footer-mobile-nav-col-gap: 2.125rem;
  --footer-mobile-payment-padding-bottom: 0.875rem;
  --footer-mobile-legal-padding-top: 0.875rem;
  --footer-mobile-badge-visa-width: 3.962425rem;
  --footer-mobile-badge-visa-height: 1.60984375rem;
  --footer-mobile-badge-mastercard-width: 4.396rem;
  --footer-mobile-badge-mastercard-height: 1.60984375rem;
  --footer-mobile-badge-security-width: 4.40593125rem;
  --footer-mobile-badge-security-height: 1.77931875rem;

  /* Z-index */
  --z-base: 1;
  --z-header: 20;
  --z-overlay: 100;

  /* Motion */
  --motion-fast: 150ms ease;
  --motion-base: 250ms ease;

  /* Password reset dialog — email landing on the site.
     Sampled from the provided auth screens. No F01 frame for this dialog. */
  --color-auth-panel: #232f4a;
  --color-auth-panel-border: rgba(184, 202, 232, 0.72);
  --color-auth-input: rgba(5, 10, 22, 0.92);
  --color-auth-input-border: rgba(156, 178, 214, 0.82);
  --color-auth-placeholder: #9aabc4;
  --color-auth-heading: #f4f7ff;
  --color-auth-danger: #e23d3d;
  --color-auth-danger-wash: color-mix(in srgb, var(--color-auth-danger) 18%, transparent);
  --shadow-auth-danger: 0 0 0 1px var(--color-auth-danger), 0 0 0.75rem color-mix(in srgb, var(--color-auth-danger) 55%, transparent);
  --shadow-auth-panel: 0 18px 40px rgba(2, 8, 16, 0.45);
  --radius-auth-panel: 0.375rem;
  --radius-auth-input: 0.25rem;
}
