/* Roadster League brand kit: fonts, colour tokens, gradients and a few UI primitives.
   Rocket League key-art energy on a Tesla-dark, minimal base. Usage notes: docs/BRAND.md
   Everything is prefixed --rl- / .rl- so it can sit next to the game's own ui.css. */

/* ---------- Fonts (SIL OFL 1.1, self-hosted, Latin subset, variable weight) ---------- */
@font-face {
  font-family: 'RL Display';               /* Unbounded: wide, heavy, geometric (wordmark, headlines, numerals) */
  src: url('../fonts/Unbounded-Latin.var.woff2') format('woff2-variations'),
       url('../fonts/Unbounded-Latin.var.woff2') format('woff2');
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'RL UI';                    /* Manrope: clean geometric grotesque (body copy, labels, menus) */
  src: url('../fonts/Manrope-Latin.var.woff2') format('woff2-variations'),
       url('../fonts/Manrope-Latin.var.woff2') format('woff2');
  font-weight: 300 800;
  font-style: normal;
  font-display: swap;
}
/* v2: HUD numerals. 'RL HUD' = "Roadster HUD", a modified Turret Road (SIL OFL 1.1): thin squared figures,
   slashed zero by default (font-feature-settings: 'ss01' gives the plain zero), tabular digits, Latin subset.
   r1: 'ss02' = closed-top 4 and square-shouldered M/m for text at 16 px and below; the Medium face uses them by default. */
@font-face {
  font-family: 'RL HUD';
  src: url('../fonts/RoadsterHUD-Light.woff2') format('woff2');
  font-weight: 100 399;
  font-style: normal;
  font-display: block;           /* r1: no fallback flash in the first HUD frame */
}
@font-face {
  font-family: 'RL HUD';
  src: url('../fonts/RoadsterHUD-Medium.woff2') format('woff2');
  font-weight: 400 900;
  font-style: normal;
  font-display: block;
}

:root {
  /* ---------- Type ---------- */
  --rl-font-display: 'RL Display', 'Arial Black', system-ui, sans-serif;
  --rl-font-ui: 'RL UI', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --rl-italic: skewX(-11deg);              /* the wordmark slant; use on display text, never on body copy */

  /* ---------- Base and panels (Tesla dark) ---------- */
  --rl-base: #07080B;                      /* page / canvas background */
  --rl-panel: #0E1016;                     /* cards, menus */
  --rl-panel-2: #151821;                   /* raised panel, inputs */
  --rl-panel-3: #1D212C;                   /* hover */
  --rl-scrim: rgba(7, 8, 11, 0.72);        /* overlay over the 3D view */
  --rl-glass: rgba(14, 16, 22, 0.58);      /* translucent HUD panel (use with backdrop-filter) */
  --rl-line: rgba(255, 255, 255, 0.08);    /* hairlines */
  --rl-line-strong: rgba(255, 255, 255, 0.18);

  /* ---------- Text ---------- */
  --rl-text: #F2F1EE;
  --rl-text-dim: #A3A8B1;
  --rl-text-mute: #6B717C;
  --rl-ink: #05060A;                       /* outlines, text on light buttons */

  /* ---------- Car materials ---------- */
  --rl-ano-white: #E7E5DF;                 /* Ano White paint */
  --rl-white: #FFFFFF;
  --rl-titanium: #B9BEC5;
  --rl-titanium-hi: #F4F5F7;
  --rl-titanium-lo: #3E434B;
  --rl-gold: #D6A55E;                      /* gold glaze (glass tint) */
  --rl-gold-hi: #F7E2B0;
  --rl-gold-lo: #5A3518;
  --rl-red: #FF2B2B;                       /* thin red light bar */
  --rl-red-core: #FFD2C8;

  /* ---------- Teams ---------- */
  --rl-blue: #2C9BFF;
  --rl-blue-deep: #0B4FA8;
  --rl-blue-glow: rgba(44, 155, 255, 0.55);
  --rl-orange: #FF8A1F;
  --rl-orange-deep: #B24A00;
  --rl-orange-glow: rgba(255, 138, 31, 0.55);

  /* ---------- Synthwave accents (key art, celebrations, logo extrusion) ---------- */
  --rl-sw-gold: #FFC65A;
  --rl-sw-orange: #FF7A3C;
  --rl-sw-pink: #FF3D7F;
  --rl-sw-magenta: #C42A9A;
  --rl-sw-violet: #6A2CFF;
  --rl-sw-indigo: #1C0F45;
  --rl-sw-cyan: #3FE0FF;

  /* ---------- Gradients ---------- */
  --rl-grad-synthwave: linear-gradient(90deg, #FFC65A 0%, #FF7A3C 28%, #FF3D7F 58%, #6A2CFF 100%);
  --rl-grad-sunset: linear-gradient(180deg, #07070D 0%, #1C0F45 38%, #5A1670 68%, #C42A9A 86%, #FF3D7F 95%, #FF7A3C 100%);
  --rl-grad-gold-glaze: linear-gradient(135deg, #F7E2B0 0%, #D6A55E 45%, #5A3518 72%, #D6A55E 100%);
  --rl-grad-titanium: linear-gradient(180deg, #F4F5F7 0%, #B9BEC5 48%, #8D939C 52%, #DADDE2 100%);
  --rl-grad-chrome: linear-gradient(180deg, #FFFFFF 0%, #F3F1EC 46%, #C9CED6 50%, #E9EAEC 78%, #FFFFFF 100%);
  --rl-grad-lightbar: linear-gradient(90deg, rgba(255, 43, 43, 0) 0%, #FF2B2B 30%, #FF6B5E 50%, #FF2B2B 70%, rgba(255, 43, 43, 0) 100%);
  --rl-grad-panel: linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0) 40%), #0E1016;
  --rl-grad-stage: radial-gradient(60% 55% at 50% 60%, #3A1458 0%, #1A0B33 45%, #07080B 100%);

  /* ---------- Shape and motion ---------- */
  --rl-radius: 4px;                        /* Tesla-small radii */
  --rl-radius-lg: 10px;
  --rl-cut: 14px;                          /* chamfer size for faceted panels and buttons */
  --rl-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  --rl-ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --rl-fast: 120ms;
  --rl-med: 220ms;
}

/* ---------- Type helpers ---------- */
.rl-display {
  font-family: var(--rl-font-display);
  font-weight: 900;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  line-height: 0.95;
}
.rl-display--italic { display: inline-block; transform: var(--rl-italic); }
.rl-kicker {
  font-family: var(--rl-font-ui);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--rl-text-dim);
}
.rl-body { font-family: var(--rl-font-ui); font-weight: 500; color: var(--rl-text); }
.rl-chrome-text {                          /* chrome face like the wordmark (display sizes only) */
  background: var(--rl-grad-chrome);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-stroke: 0;
  filter: drop-shadow(0 2px 0 #FF3D7F) drop-shadow(0 2px 0 #6A2CFF) drop-shadow(0 0 1px #05060A);
}
.rl-synth-text {
  background: var(--rl-grad-synthwave);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Light bar: the thin red Tesla accent line ---------- */
.rl-lightbar {
  display: block;
  height: 2px;
  border: 0;
  background: var(--rl-grad-lightbar);
  box-shadow: 0 0 8px rgba(255, 43, 43, 0.65);
}
.rl-lightbar--blue { background: linear-gradient(90deg, transparent, var(--rl-blue) 30%, #9FD2FF 50%, var(--rl-blue) 70%, transparent); box-shadow: 0 0 8px var(--rl-blue-glow); }
.rl-lightbar--orange { background: linear-gradient(90deg, transparent, var(--rl-orange) 30%, #FFD0A0 50%, var(--rl-orange) 70%, transparent); box-shadow: 0 0 8px var(--rl-orange-glow); }

/* ---------- Panels ---------- */
.rl-panel {
  background: var(--rl-grad-panel);
  border: 1px solid var(--rl-line);
  border-radius: var(--rl-radius-lg);
  box-shadow: var(--rl-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  color: var(--rl-text);
}
.rl-panel--glass {
  background: var(--rl-glass);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
}
.rl-panel--faceted {                       /* chamfered corners, echoing the crest */
  border-radius: 0;
  clip-path: polygon(var(--rl-cut) 0, 100% 0, 100% calc(100% - var(--rl-cut)), calc(100% - var(--rl-cut)) 100%, 0 100%, 0 var(--rl-cut));
}

/* ---------- Buttons ---------- */
.rl-btn {
  --rl-btn-bg: var(--rl-panel-2);
  --rl-btn-fg: var(--rl-text);
  --rl-btn-edge: var(--rl-line-strong);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  min-height: 44px;                        /* touch target */
  padding: 0 1.4em;
  border: 1px solid var(--rl-btn-edge);
  border-radius: var(--rl-radius);
  background: var(--rl-btn-bg);
  color: var(--rl-btn-fg);
  font-family: var(--rl-font-display);
  font-weight: 800;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition: transform var(--rl-fast) var(--rl-ease), background var(--rl-med) var(--rl-ease), box-shadow var(--rl-med) var(--rl-ease), border-color var(--rl-med);
}
.rl-btn:hover { background: var(--rl-panel-3); border-color: rgba(255, 255, 255, 0.3); }
.rl-btn:active { transform: translateY(1px) scale(0.985); }
.rl-btn:focus-visible { outline: 2px solid var(--rl-sw-cyan); outline-offset: 3px; }
.rl-btn:disabled, .rl-btn[aria-disabled='true'] { opacity: 0.45; cursor: default; pointer-events: none; }
/* Primary: Ano White slab, ink text, red light bar underneath (the PLAY button) */
.rl-btn--primary {
  --rl-btn-bg: linear-gradient(180deg, #FFFFFF 0%, var(--rl-ano-white) 55%, #CFCDC6 100%);
  --rl-btn-fg: var(--rl-ink);
  --rl-btn-edge: rgba(255, 255, 255, 0.9);
  min-height: 52px;
  padding: 0 2.2em;
  font-weight: 900;
  font-size: 1.05rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(0, 0, 0, 0.4);
}
.rl-btn--primary::after {
  content: '';
  position: absolute;
  left: 12%;
  right: 12%;
  bottom: -7px;
  height: 2px;
  background: var(--rl-grad-lightbar);
  box-shadow: 0 0 10px rgba(255, 43, 43, 0.8);
  transition: left var(--rl-med) var(--rl-ease), right var(--rl-med) var(--rl-ease);
}
.rl-btn--primary:hover { background: linear-gradient(180deg, #FFFFFF 0%, #F3F1EC 60%, #DAD8D1 100%); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 24px rgba(255, 61, 127, 0.25); }
.rl-btn--primary:hover::after { left: 2%; right: 2%; }
/* Synthwave: celebratory / secondary call to action (POST YOUR SCORE) */
.rl-btn--synth {
  --rl-btn-bg: linear-gradient(var(--rl-panel-2), var(--rl-panel-2)) padding-box, var(--rl-grad-synthwave) border-box;
  --rl-btn-edge: transparent;
  border-width: 2px;
}
.rl-btn--synth:hover { --rl-btn-bg: linear-gradient(var(--rl-panel-3), var(--rl-panel-3)) padding-box, var(--rl-grad-synthwave) border-box; box-shadow: 0 0 22px rgba(255, 61, 127, 0.35); }
.rl-btn--ghost { --rl-btn-bg: transparent; --rl-btn-edge: var(--rl-line-strong); }
.rl-btn--blue { --rl-btn-bg: linear-gradient(180deg, #46AAFF, var(--rl-blue) 55%, var(--rl-blue-deep)); --rl-btn-fg: #fff; --rl-btn-edge: rgba(159, 210, 255, 0.6); }
.rl-btn--orange { --rl-btn-bg: linear-gradient(180deg, #FFA24A, var(--rl-orange) 55%, var(--rl-orange-deep)); --rl-btn-fg: #fff; --rl-btn-edge: rgba(255, 208, 160, 0.6); }
.rl-btn--slant { transform: var(--rl-italic); }          /* Rocket League parallelogram */
.rl-btn--slant > * { display: inline-block; transform: skewX(11deg); }
.rl-btn--slant:active { transform: var(--rl-italic) translateY(1px) scale(0.985); }

/* ---------- Toggle / segmented control (mode: DUEL | DOUBLES) ---------- */
.rl-seg { display: inline-flex; padding: 3px; gap: 3px; border-radius: var(--rl-radius-lg); background: var(--rl-panel); border: 1px solid var(--rl-line); }
.rl-seg > button {
  min-height: 38px; padding: 0 1.1em; border: 0; border-radius: 7px; background: transparent; color: var(--rl-text-dim);
  font-family: var(--rl-font-display); font-weight: 800; font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; cursor: pointer;
}
.rl-seg > button[aria-pressed='true'] { background: var(--rl-ano-white); color: var(--rl-ink); }

/* ---------- Paint swatch ---------- */
.rl-swatch {
  width: 36px; height: 36px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.14); cursor: pointer;
  background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0) 45%), var(--rl-swatch, var(--rl-ano-white));
  box-shadow: inset 0 -4px 8px rgba(0, 0, 0, 0.35);
  transition: transform var(--rl-fast) var(--rl-ease), border-color var(--rl-med);
}
.rl-swatch:hover { transform: scale(1.08); }
.rl-swatch[aria-checked='true'], .rl-swatch[aria-pressed='true'] { border-color: var(--rl-white); box-shadow: inset 0 -4px 8px rgba(0, 0, 0, 0.35), 0 0 0 3px var(--rl-base), 0 0 0 5px var(--rl-red); }

/* ---------- HUD numerals (scoreboard, clock, boost) ---------- */
.rl-hud-num {
  font-family: var(--rl-font-display);
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  font-feature-settings: 'tnum' 1;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--rl-white);
  /* crisp dark keyline so numerals read over any part of the 3D scene */
  text-shadow: 0 0 1px var(--rl-ink), 0 1px 0 var(--rl-ink), 0 -1px 0 var(--rl-ink), 1px 0 0 var(--rl-ink), -1px 0 0 var(--rl-ink), 0 3px 10px rgba(0, 0, 0, 0.6);
}
.rl-hud-num--blue { color: #CFE8FF; text-shadow: 0 0 1px var(--rl-ink), 0 1px 0 var(--rl-ink), 0 -1px 0 var(--rl-ink), 1px 0 0 var(--rl-ink), -1px 0 0 var(--rl-ink), 0 0 14px var(--rl-blue-glow); }
.rl-hud-num--orange { color: #FFE2C4; text-shadow: 0 0 1px var(--rl-ink), 0 1px 0 var(--rl-ink), 0 -1px 0 var(--rl-ink), 1px 0 0 var(--rl-ink), -1px 0 0 var(--rl-ink), 0 0 14px var(--rl-orange-glow); }
.rl-hud-label { font-family: var(--rl-font-ui); font-weight: 800; font-size: 0.62rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--rl-text-dim); }

/* Scoreboard: blue score | clock | orange score */
.rl-scoreboard { display: inline-flex; align-items: stretch; font-size: clamp(16px, 4.2vmin, 30px); filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.5)); }
.rl-scoreboard > * { display: grid; place-items: center; padding: 0.28em 0.6em; }
.rl-scoreboard__blue { background: linear-gradient(180deg, #3AA5FF, var(--rl-blue) 60%, var(--rl-blue-deep)); clip-path: polygon(0.5em 0, 100% 0, 100% 100%, 0 100%); padding-left: 0.9em; }
.rl-scoreboard__clock { background: var(--rl-panel); border-top: 2px solid var(--rl-red); min-width: 3.6em; }
.rl-scoreboard__orange { background: linear-gradient(180deg, #FF9C3E, var(--rl-orange) 60%, var(--rl-orange-deep)); clip-path: polygon(0 0, calc(100% - 0.5em) 0, 100% 100%, 0 100%); padding-right: 0.9em; }

/* ---------- Team chips / nameplates ---------- */
.rl-team-blue { color: var(--rl-blue); }
.rl-team-orange { color: var(--rl-orange); }
.rl-chip { display: inline-flex; align-items: center; gap: 0.4em; padding: 0.2em 0.65em; border-radius: 999px; background: var(--rl-panel-2); border: 1px solid var(--rl-line); font: 700 0.75rem/1.4 var(--rl-font-ui); color: var(--rl-text); }
.rl-chip--blue { border-color: rgba(44, 155, 255, 0.6); box-shadow: inset 0 0 0 1px rgba(44, 155, 255, 0.25); }
.rl-chip--orange { border-color: rgba(255, 138, 31, 0.6); box-shadow: inset 0 0 0 1px rgba(255, 138, 31, 0.25); }

/* ---------- Banner (GOAL!, VICTORY, OVERTIME) ---------- */
.rl-banner {
  font-family: var(--rl-font-display);
  font-weight: 900;
  font-size: clamp(36px, 12vmin, 120px);
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 0.9;
  transform: var(--rl-italic);
  background: var(--rl-grad-chrome);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 4px 0 var(--rl-sw-pink)) drop-shadow(0 4px 0 var(--rl-sw-violet)) drop-shadow(0 0 2px var(--rl-ink)) drop-shadow(0 10px 24px rgba(0, 0, 0, 0.6));
}
.rl-banner--blue { filter: drop-shadow(0 4px 0 var(--rl-blue)) drop-shadow(0 4px 0 var(--rl-blue-deep)) drop-shadow(0 0 2px var(--rl-ink)) drop-shadow(0 0 30px var(--rl-blue-glow)); }
.rl-banner--orange { filter: drop-shadow(0 4px 0 var(--rl-orange)) drop-shadow(0 4px 0 var(--rl-orange-deep)) drop-shadow(0 0 2px var(--rl-ink)) drop-shadow(0 0 30px var(--rl-orange-glow)); }

/* ---------- Logo helpers ---------- */
.rl-logo { display: block; width: min(78vmin, 420px); height: auto; filter: drop-shadow(0 12px 30px rgba(0, 0, 0, 0.55)); }
.rl-stage { background: var(--rl-grad-stage); }

@media (prefers-reduced-motion: reduce) {
  .rl-btn, .rl-btn--primary::after, .rl-swatch { transition: none; }
}

/* ======================================================================================================
   v2 additions (brand v2: Rocket League crest family, Tesla T, HUD numerals). Nothing above was renamed.
   ====================================================================================================== */
:root {
  /* HUD numerals: thin, squared, slashed zero, tabular (scoreboard, clock, boost, countdown, popups) */
  --font-hud: 'RL HUD', 'RL UI', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --rl-font-hud: var(--font-hud);

  /* Crest colourways (crest-classic / crest-season / crest-tesla.svg) */
  --rl-classic-hi: #00AEFF;                /* Rocket League blue field */
  --rl-classic: #0065BA;
  --rl-classic-lo: #00217A;
  --rl-season-pink: #FF3D9A;               /* synthwave field (the hero colourway) */
  --rl-season-magenta: #C42AD8;
  --rl-season-violet: #6A2CFF;
  --rl-season-blue: #2A36D8;
  --rl-season-deep: #141A78;
  --rl-keyart-gold: #FFC65A;               /* wordmark face: gold -> white -> cyan */
  --rl-keyart-cyan: #29C9FF;
  --rl-keyart-ink: #120826;                /* wordmark keyline */
  --rl-keyart-extrude: #5A22B0;            /* wordmark extrusion (gradient #8A3AE0 -> #1D0B45) */
  --rl-tesla-red: #E82127;                 /* the Tesla T (logo only; UI accents keep --rl-red) */
  --rl-moment-gold: #FFE48F;               /* RL thin gold moment text: 3-2-1, SCORED!, OVERTIME */

  --rl-grad-classic: radial-gradient(120% 120% at 15% 15%, #00AEFF 0%, #008DE0 30%, #0065BA 58%, #002F87 88%, #00217A 100%);
  --rl-grad-season: radial-gradient(130% 130% at 15% 15%, #FF8AD0 0%, #FF3D9A 16%, #C42AD8 38%, #6A2CFF 60%, #2A36D8 82%, #141A78 100%);
  --rl-grad-tesla: radial-gradient(120% 120% at 15% 15%, #3A3F47 0%, #22262C 25%, #121418 55%, #08090C 85%, #050608 100%);
  --rl-grad-keyart: linear-gradient(180deg, #FFE08A 0%, #FFC65A 30%, #FFE9B8 42%, #FFFFFF 47%, #9FF0FF 62%, #29C9FF 100%);
}

/* HUD text in the thin squared face. Digits are tabular by default; zero is slashed. */
.rl-hud {
  font-family: var(--font-hud);
  font-weight: 300;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  line-height: 1;
}
.rl-hud--medium { font-weight: 500; }      /* use under ~18 px (the 480 card) so strokes stay crisp */
.rl-hud--plain0 { font-feature-settings: 'ss01' 1; }   /* plain zero, like RL's big scoreboard digits */
/* Opt-in switch for the existing numerals: <span class="rl-hud-num rl-hud-num--thin">2:47</span> */
.rl-hud-num--thin { font-family: var(--font-hud); font-weight: 300; letter-spacing: 0.02em; }
/* Moment text: thin gold capitals with a soft glow (countdown, NAME SCORED!, OVERTIME, ONE MINUTE REMAINING) */
.rl-moment {
  font-family: var(--font-hud);
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  line-height: 1;
  color: var(--rl-moment-gold);
  text-shadow: 0 0 2px rgba(255, 198, 90, 0.9), 0 0 14px rgba(255, 166, 40, 0.55), 0 2px 10px rgba(0, 0, 0, 0.6);
}
/* Key-art gradient text (display sizes): gold -> white -> cyan, as on the wordmark */
.rl-keyart-text {
  background: var(--rl-grad-keyart);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 1px var(--rl-keyart-ink)) drop-shadow(0 3px 0 var(--rl-keyart-extrude));
}
/* Tesla T as an icon that takes the current text colour: <i class="rl-tesla-t" aria-hidden="true"></i> */
.rl-tesla-t {
  display: inline-block;
  width: 1em;
  height: 1em;
  vertical-align: -0.12em;
  background: currentColor;
  -webkit-mask: url('tesla-t.svg') center / contain no-repeat;
  mask: url('tesla-t.svg') center / contain no-repeat;
}
.rl-tesla-t--red { color: var(--rl-tesla-red); }
/* Logo image helpers (v2 files): crest, horizontal lockup */
.rl-crest { display: block; width: min(40vmin, 220px); height: auto; filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.55)); }
.rl-logo--horizontal { width: min(92vw, 560px); }

/* ======================================================================================================
   v2 r1 additions. Nothing above was renamed or removed.
   ====================================================================================================== */
/* Logo face: Jost 800-900 (SIL OFL 1.1, Latin subset), the face the ROADSTER LEAGUE wordmark is outlined from.
   Use it for headlines that sit next to the logo; --rl-font-display (Unbounded) stays for existing layouts. */
@font-face {
  font-family: 'RL Logo';
  src: url('../fonts/Jost-Logo-Latin.var.woff2') format('woff2-variations'),
       url('../fonts/Jost-Logo-Latin.var.woff2') format('woff2');
  font-weight: 800 900;
  font-style: normal;
  font-display: swap;
}
:root {
  --rl-font-logo: 'RL Logo', 'RL Display', 'Arial Black', system-ui, sans-serif;
  /* gold-glazed glass as painted in the hero crests (r2: bronze under the roof rail -> pale gold at the beltline, so the
     windshield, which sits lowest, is the lightest pane; one bright mass with the white car) */
  --rl-grad-gold-glass: linear-gradient(200deg, #B8803F 0%, #E2BC78 50%, #F7E2B0 100%);
  --rl-ano-satin: linear-gradient(180deg, #FFFFFF 0%, #EEECE7 100%);   /* the crest car's Ano White (r2: lighter) */
}
/* Headline in the wordmark's face: <h1 class="rl-display rl-display--logo">So yes, it can fly.</h1> */
.rl-display--logo { font-family: var(--rl-font-logo); font-weight: 900; letter-spacing: -0.015em; line-height: 0.92; }
/* HUD text at 16 px and below: closed 4, square M (Light face; the Medium face has them by default) */
.rl-hud--legible { font-feature-settings: 'ss02' 1; }
.rl-hud--plain0.rl-hud--legible { font-feature-settings: 'ss01' 1, 'ss02' 1; }
/* Horizontal lockups (logo-horizontal-stacked.svg is Rocket League's own arrangement; best for the 480 title) */
.rl-logo--hstack { display: block; width: min(92vw, 520px); height: auto; filter: drop-shadow(0 10px 26px rgba(0, 0, 0, 0.55)); }
/* Over gameplay video or photos: the solid one-colour files (logo-white-solid.svg, crest-white-solid.svg) */
.rl-logo--over-video { filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.45)) drop-shadow(0 8px 22px rgba(0, 0, 0, 0.35)); }

/* ======================================================================================================
   v2 r2 additions. Nothing above was renamed or removed; two r1 values were updated to match the r2 crest:
   --rl-grad-gold-glass (dark top -> light low, like the tesla.com canopy) and --rl-ano-satin.
   ====================================================================================================== */
:root {
  /* the Tesla colourway's glass, and key art over 300 px: near-black under the rail, bronze, rose-gold low */
  --rl-grad-gold-glass-dark: linear-gradient(200deg, #1A120C 0%, #6B4527 55%, #C9A07A 100%);
  --rl-glass-seam: #3A2414;                /* the A and B pillar seams on the light glaze */
  --rl-glass-seam-dark: #0D0907;           /* ... and on the dark glaze */
  /* the Tesla crest's titanium frame (with a 2-unit Ano White outer hairline in the SVG) */
  --rl-grad-titanium-frame: linear-gradient(135deg, #F4F5F7 0%, #D2D6DB 30%, #A9AEB6 50%, #BEC3CA 56%, #E4E6EA 80%, #AEB3BB 100%);
  /* the right bevel of each crest, tinted toward its field (classic keeps Rocket League's black) */
  --rl-bevel-season: rgba(26, 11, 74, 0.40);
  --rl-bevel-tesla: rgba(11, 13, 18, 0.45);
}
/* Crest sizes: crest.svg from 160 px, crest-mid.svg 64-160 px, crest-mini.svg 24-64 px (crest-tesla.svg from 96 px) */
.rl-crest--mid { width: min(30vmin, 160px); }
.rl-crest--mini { width: clamp(24px, 10vmin, 64px); height: auto; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5)); }
/* The 480 x 480 title: logo-horizontal-stacked.svg (built on crest-mid) at about 300 px wide, ~26 px caps */
.rl-logo--title { display: block; width: min(64vw, 300px); height: auto; filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.55)); }
/* The loading screen and other stacked placements between 120 and 320 px tall: logo-mid.svg */
.rl-logo--mid { display: block; height: min(46vmin, 320px); width: auto; filter: drop-shadow(0 12px 30px rgba(0, 0, 0, 0.55)); }
