/* Approved Redline identity. Existing screen layout and flow remain in styles.css. */
@font-face {
  font-family: RedlineDisplay;
  src: url("assets/design-lab/barlow-black-italic.ttf") format("truetype");
  font-weight: 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: RedlineInstrument;
  src: url("assets/design-lab/rajdhani-semibold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
:root {
  --bg: #0d1017;
  --panel: #1a1d26;
  --line: #3d4350;
  --text: #f3f2ed;
  --muted: #b9c1d0;
  --mint: #f3f2ed;
  --gold: #f4cda5;
  --red: #ff344d;
  --race-display: RedlineDisplay, Impact, "Arial Narrow", sans-serif;
  --race-instrument: RedlineInstrument, "Arial Narrow", Arial, sans-serif;
}
body {
  background:
    radial-gradient(ellipse at 50% 15%, #38202b, transparent 65%), #090b10;
}
.screen {
  background:
    radial-gradient(ellipse at 100% 0%, #ff344d12, transparent 60%), var(--bg);
}
#app {
  border-color: #474b57;
}
h1,
h2 {
  font-family: var(--race-display);
  font-weight: 900;
  font-style: italic;
  letter-spacing: -0.01em;
}
h2 em {
  color: var(--red);
  font-style: inherit;
}
h3 {
  font-family: var(--race-display);
  font-weight: 900;
  font-style: italic;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.redline-title {
  height: 1.82em;
}
.redline-title img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: left center;
  filter: drop-shadow(0 3px 0 #0006);
}
p,
.text-btn,
.setting-row,
.text-input,
select,
summary,
.consent-row,
dialog p {
  font-family: var(--race-instrument);
  font-weight: 600;
}
p {
  font-size: 16px;
  line-height: 1.4;
}
.eyebrow,
.edition,
.track-tag,
.home-footer,
.meter-label,
.reward-hint,
.race-footer,
.hoodie-number,
.hoodie-note,
.tier-row,
.micro-stats,
.personal-best,
dl,
.leaderboard-list li,
.leaderboard-list small,
.reward-panel code,
.reward-status {
  font-family: var(--race-instrument);
  font-weight: 600;
}
.eyebrow {
  letter-spacing: 0.16em;
}
.home-copy .eyebrow {
  color: #ff9aa8;
}
.live-dot {
  width: 16px;
  height: 4px;
  border-radius: 0;
  transform: skewX(-20deg);
  background: var(--red);
  box-shadow: none;
}
.primary-btn {
  position: relative;
  isolation: isolate;
  font-family: var(--race-display);
  font-weight: 900;
  font-style: italic;
  font-size: 21px;
  line-height: 1;
  letter-spacing: 0.025em;
  color: #fff;
  background: var(--red);
  border: 0;
  border-radius: 0;
  box-shadow: inset 0 -4px 0 #0003;
  clip-path: polygon(
    12px 0,
    100% 0,
    100% calc(100% - 12px),
    calc(100% - 12px) 100%,
    0 100%,
    0 12px
  );
  text-transform: uppercase;
}
.primary-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    110deg,
    transparent 20%,
    #ffffff35 45%,
    transparent 65%
  );
  transform: translateX(-110%);
  pointer-events: none;
}
.primary-btn:hover {
  background: #ff465d;
}
.primary-btn:hover::before {
  transform: translateX(110%);
  transition: transform 0.55s;
}
.primary-btn:active {
  transform: translateY(2px);
  background: #db243e;
}
.primary-btn:focus-visible {
  outline-color: #fff;
  outline-offset: -5px;
}
.primary-btn > span {
  font-family: var(--race-instrument);
  font-style: normal;
}
.secondary-btn {
  font-family: var(--race-instrument);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-color: #626b7d;
  border-radius: 0;
  background: linear-gradient(110deg, #ffffff08, #171b25);
}
.secondary-btn:hover {
  background: #ff344d12;
  border-color: var(--red);
}
.text-btn {
  letter-spacing: 0.025em;
}
.icon-btn {
  border-color: #626b7d;
  border-radius: 0;
  background: #151a24cc;
}
.home-links .text-btn {
  text-transform: uppercase;
  font-size: 13px;
}
.home-footer {
  color: #b9c1d0;
  letter-spacing: 0.055em;
}
.hoodie-card {
  background: linear-gradient(145deg, #272c36, #11151d);
  border-radius: 0;
  clip-path: polygon(
    0 0,
    calc(100% - 10px) 0,
    100% 10px,
    100% 100%,
    10px 100%,
    0 calc(100% - 10px)
  );
}
.hoodie-card.selected {
  border-color: var(--red);
  background: linear-gradient(145deg, #ff344d1c, #11151d);
}
.hoodie-card:focus-visible {
  outline-color: #fff;
  outline-offset: -4px;
}
.hoodie-label {
  font-family: var(--race-display);
  font-weight: 900;
  font-style: italic;
  font-size: 19px;
  line-height: 1.15;
  text-transform: uppercase;
}
.selection-mark {
  color: var(--red);
}
.info-strip {
  background: #1c212b;
  border-left-color: var(--red);
}
.info-strip p {
  color: #d2d8e3;
}
.hud {
  background: linear-gradient(#0b0e17f5, #0b0e17b3, transparent);
}
.hud-top strong {
  font-family: var(--race-display);
  font-weight: 900;
  font-style: italic;
  font-size: 30px;
  line-height: 1.05;
  letter-spacing: 0.02em;
}
.meter-label,
.hud .eyebrow {
  letter-spacing: 0.12em;
}
.hud .meter {
  border-radius: 0;
}
.hud .meter span {
  background: var(--red);
}
.reward-steps span {
  font-family: var(--race-instrument);
  font-weight: 600;
  border-radius: 0;
}
.reward-steps .reached {
  color: #13141a;
  background: var(--gold);
  border-color: var(--gold);
}
.reward-hint {
  letter-spacing: 0.02em;
}
.race-footer {
  background: #0b0f19e8;
}
#hudSpeed {
  font-family: var(--race-display);
  font-weight: 900;
  font-style: italic;
  font-size: 18px;
}
.race-notice {
  font-family: var(--race-instrument);
  font-weight: 600;
}
.speed-announcement {
  border-left-color: var(--red);
  width: 205px;
  padding: 9px 12px;
  background: linear-gradient(100deg, #11131ba6, #11131b59);
}
.ride-briefing-choice {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 18px 0 0;
  font-size: 12px;
  color: var(--muted);
}
.ride-briefing-choice input {
  flex: 0 0 auto;
}
.speed-announcement strong {
  font-size: 32px;
}
.speed-announcement strong,
.reward-announcement strong,
.outcome-scene > strong,
#countdownDisplay {
  font-family: var(--race-display);
  font-weight: 900;
  font-style: italic;
}
.speed-announcement span,
.speed-announcement b,
.reward-announcement span,
.reward-announcement b {
  font-family: var(--race-instrument);
  font-weight: 600;
}
.speed-announcement span {
  color: #ff8f9f;
}
.reward-announcement {
  border-color: var(--gold);
  width: min(270px, calc(100% - 36px));
  margin-inline: auto;
  padding: 11px 12px;
  background: linear-gradient(120deg, #611c2ba6, #13182480);
  border-radius: 0;
}
.reward-announcement strong {
  font-size: 28px;
  margin: 5px 0;
}
.outcome-scene {
  border-top-color: var(--red);
  background: linear-gradient(120deg, #141a26f5, #11151eea);
}
.outcome-scene .eyebrow {
  color: #ff97a6;
}
.result-stats strong {
  font-family: var(--race-display);
  font-weight: 900;
  font-style: italic;
  letter-spacing: 0;
}
.result-stats > div:last-child strong {
  color: var(--gold);
}
.results-layout .reward-panel {
  background: linear-gradient(120deg, #252932, #12161e);
  border-radius: 0;
}
.reward-product h3 {
  font-size: 25px;
  line-height: 1;
  text-transform: uppercase;
}
#rewardLink {
  font-family: var(--race-display);
  font-weight: 900;
  font-style: italic;
  font-size: 17px;
  line-height: 1.1;
  letter-spacing: 0.015em;
}
.reward-status {
  border-radius: 0;
  letter-spacing: 0.045em;
}
.reward-status[data-earned="true"] {
  border-color: var(--gold);
  color: #ffdfb8;
}
.reward-panel code {
  color: var(--gold);
  letter-spacing: 0.08em;
}
dialog {
  background: #10151ff5;
  border-color: #596174;
  border-radius: 4px;
}
dialog h2 {
  font-family: var(--race-display);
  font-style: italic;
}
.text-input,
select {
  background: #171d29;
  border-color: #515c70;
  border-radius: 0;
}
input[type="checkbox"],
input[type="range"] {
  accent-color: var(--red);
}
.object-row,
.toast {
  border-radius: 0;
}
.toast {
  background: #222a39;
  color: #f3f2ed;
  border-color: #737f94;
  font-family: var(--race-instrument);
}
@media (max-width: 360px) {
  .primary-btn {
    font-size: 19px;
  }
  #rewardLink {
    font-size: 15px;
  }
  .reward-product h3 {
    font-size: 22px;
  }
  .hoodie-label {
    font-size: 17px;
  }
}
@media (orientation: landscape) and (max-height: 500px) {
  .hud-top strong {
    font-size: 17px;
  }
  #hudSpeed {
    font-size: 13px;
  }
}
/* Small purchase labels need stronger contrast than the large ignition buttons. */
#rewardLink {
  background: #e51e36;
}
#rewardLink:hover {
  background: #cb1f38;
}

/* Partner content sits below the full-height play screen. */
.home-partners {
  padding: 24px 25px 32px;
  background: #0d1017;
  border-top: 1px solid var(--line);
}
.partners-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.partners-heading h2 {
  margin: 0;
  font-size: 24px;
}
.partners-heading > span {
  font: 600 12px var(--race-instrument);
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.partner-drop {
  display: block;
  color: #fff;
  text-decoration: none;
  border: 1px solid #454957;
  background: #10131b;
}
.partner-drop:hover {
  border-color: var(--red);
}
.partner-drop:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 4px;
}
.partner-drop-art {
  position: relative;
  isolation: isolate;
}
.partner-drop-art img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.partner-drop-art::after {
  content: "";
  position: absolute;
  inset: 55% 0 0;
  background: linear-gradient(transparent, #090b10e6);
  pointer-events: none;
}
.partner-drop-art h3 {
  position: absolute;
  z-index: 1;
  left: 16px;
  bottom: 12px;
  margin: 0;
  font-size: clamp(26px, 8vw, 34px);
  line-height: 0.95;
  text-shadow: 0 2px 10px #000;
}
.partner-drop-art h3 em {
  color: #ff6275;
}
.partner-drop-cta {
  color: #0d1017;
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 48px;
  padding: 12px 16px;
  background: var(--red);
  font: 600 15px var(--race-instrument);
  letter-spacing: 0.06em;
}
.partner-drop-cta > span {
  font-size: 24px;
  line-height: 1;
}
