:root {
  color-scheme: dark;
  --bg: #0a1423;
  --panel: #132135;
  --line: #304257;
  --text: #ecf0e6;
  --muted: #a5b4bc;
  --mint: #adf7dd;
  --gold: #ffdb91;
  --red: #ff947c;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  background: #060d17;
  color: var(--text);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  background:
    radial-gradient(ellipse at 50% 10%, #1d3348, transparent 60%), #060d17;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
summary {
  -webkit-tap-highlight-color: transparent;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
a {
  color: var(--mint);
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible,
canvas:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 4px;
}
[hidden] {
  display: none !important;
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}
#app {
  position: relative;
  width: min(100%, 460px);
  height: min(900px, 100dvh);
  background: var(--bg);
  overflow: hidden;
  border: 1px solid #304256;
  border-radius: 22px;
  box-shadow: 0 24px 100px #0008;
}
.screen {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 90% 0%, #203a4733, transparent 50%), var(--bg);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.screen-inner {
  min-height: 100%;
  padding: 28px 24px 32px;
}
.centered {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 12px;
}
.brand-logo {
  width: 85%;
  height: auto;
}
h1,
h2,
h3,
p {
  margin: 0 0 16px;
}
h1,
h2 {
  font-family: Impact, "Arial Narrow", sans-serif;
  text-transform: uppercase;
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1;
}
h2 {
  font-size: clamp(34px, 10vw, 48px);
  margin: 14px 0 20px;
}
h3 {
  font-size: 20px;
  line-height: 1.2;
}
em {
  font-style: normal;
  color: var(--mint);
}
p {
  color: var(--muted);
  font-size: 15px;
}
strong {
  color: var(--text);
}
.eyebrow {
  font: 700 10px/1.5 monospace;
  letter-spacing: 0.14em;
  color: var(--mint);
  display: block;
}
.muted,
small {
  color: var(--muted);
  font-size: 12px;
}
.back {
  margin-bottom: 25px !important;
}
.primary-btn,
.secondary-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 54px;
  padding: 16px 19px;
  border: 1px solid transparent;
  border-radius: 5px;
  text-decoration: none;
  text-align: left;
  font: 700 12px/1.4 monospace;
  letter-spacing: 0.05em;
  transition:
    background 0.15s,
    transform 0.15s;
}
.primary-btn {
  color: #10251f;
  background: var(--mint);
  box-shadow: 0 4px 0 #5b9e8a;
}
.primary-btn:hover {
  background: #c9ffe8;
}
.primary-btn:active,
.secondary-btn:active {
  transform: translateY(2px);
}
.secondary-btn {
  background: var(--panel);
  border-color: var(--line);
  color: var(--text);
}
.secondary-btn:hover {
  background: #21364a;
}
.wide {
  width: 100%;
  margin-top: 14px;
}
.text-btn {
  background: none;
  border: 0;
  color: var(--muted);
  padding: 12px 0;
  min-height: 44px;
  text-decoration: none;
  font-size: 13px;
  text-align: left;
}
.text-btn:hover {
  color: var(--mint);
}
.icon-btn {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: var(--text);
  background: #203146;
  border: 1px solid #42586b;
  border-radius: 4px;
}
.brand-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.brand-row img {
  object-fit: contain;
  width: 155px;
  height: 65px;
}
.edition {
  font: 10px monospace;
  color: #8b9aa8;
  letter-spacing: 0.1em;
}
.home-layout {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px 25px 22px;
}
.home-copy {
  position: relative;
  margin-top: 15px;
}
.home-copy .eyebrow {
  font-size: 9px;
}
.live-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--mint);
  margin-right: 6px;
  box-shadow: 0 0 9px #adf7dd66;
}
h1 {
  font-size: clamp(56px, 18vw, 80px);
  line-height: 0.91;
  letter-spacing: -0.02em;
  margin: 18px 0;
}
h1 em {
  color: var(--gold);
  font-style: italic;
}
h1 span {
  letter-spacing: 0.07em;
}
.home-sub {
  line-height: 1.4;
}
.home-track {
  position: relative;
  min-height: 160px;
  flex: 1;
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #101f30;
}
.home-track canvas {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}
.track-tag {
  position: absolute;
  left: 12px;
  bottom: 12px;
  font: 8px monospace;
  letter-spacing: 0.12em;
  color: #acbdb9;
}
.home-actions {
  padding-top: 6px;
}
.home-actions .primary-btn {
  width: 100%;
}
.home-links {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
}
.home-footer {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
  font: 8px/1.5 monospace;
  color: #a0b1b9;
  letter-spacing: 0.04em;
}
.home-footer a {
  text-decoration: none;
  white-space: nowrap;
}
.hoodie-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 28px 0;
}
.hoodie-card {
  position: relative;
  overflow: hidden;
  padding: 12px;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #142134;
  color: var(--text);
}
.hoodie-card.selected {
  border-color: var(--mint);
  background: #1b3039;
}
.hoodie-card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4/5;
  object-fit: contain;
  mix-blend-mode: lighten;
}
.hoodie-number {
  font: 10px monospace;
  color: var(--muted);
}
.hoodie-label {
  display: block;
  font-weight: 700;
  font-size: 15px;
  margin-top: 14px;
}
.hoodie-note {
  display: block;
  font: 8px monospace;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-top: 6px;
}
.selection-mark {
  position: absolute;
  right: 10px;
  top: 10px;
  color: var(--mint);
  opacity: 0;
}
.selected .selection-mark {
  opacity: 1;
}
.info-strip {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 16px;
  background: #142635;
  border-left: 2px solid var(--mint);
  margin-bottom: 24px;
}
.info-strip > span {
  font-size: 26px;
  color: var(--gold);
}
.info-strip p {
  margin: 0;
  font-size: 13px;
}
.menu-list {
  display: grid;
  gap: 12px;
  margin-top: 25px;
}
.setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.setting-row strong,
.setting-row small {
  display: block;
}
.setting-row small {
  max-width: 220px;
  font-size: 12px;
  margin-top: 4px;
}
input[type="checkbox"] {
  accent-color: var(--mint);
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}
input[type="range"] {
  max-width: 45%;
  accent-color: var(--mint);
}
select {
  background: var(--panel);
  color: var(--text);
  padding: 12px 6px;
  border: 1px solid var(--line);
  border-radius: 4px;
  max-width: 130px;
}
.object-guide {
  display: grid;
  gap: 12px;
  margin: 24px 0;
}
.object-row {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 12px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 6px;
}
.object-row canvas {
  width: 80px;
  height: 100px;
  flex-shrink: 0;
}
.object-row h3 {
  font-size: 16px;
  margin-bottom: 6px;
}
.object-row p {
  font-size: 13px;
  margin: 0;
}
.tier-list {
  margin: 24px 0;
}
.tier-row {
  display: flex;
  justify-content: space-between;
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
  font: 14px monospace;
}
.tier-row strong {
  color: var(--mint);
}
.rule {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.rule h3 {
  font-size: 16px;
  margin-bottom: 5px;
}
.rule p {
  margin: 0;
  font-size: 14px;
}
#countdownDisplay {
  font: 900 100px monospace;
  color: var(--gold);
}
.game-stage {
  height: 100%;
  width: 100%;
  position: relative;
  background: #080f1b;
  display: flex;
  justify-content: center;
  align-items: center;
}
#gameCanvas {
  display: block;
  height: 100%;
  width: 100%;
  object-fit: contain;
  touch-action: none;
}
.hud {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding: 14px 15px 12px;
  background: linear-gradient(#0b1628 88%, #0b1628dd);
  pointer-events: none;
  border-bottom: 1px solid #3f5768;
}
.hud-top {
  display: flex;
  align-items: center;
  gap: 15px;
}
.hud-top strong {
  display: block;
  font: 700 22px/1.2 monospace;
  color: var(--gold);
}
.hud-time {
  margin-left: auto;
  text-align: right;
}
.hud-time strong {
  color: var(--text);
}
.hud .eyebrow {
  font-size: 8px;
  color: #afc7cb;
  letter-spacing: 0.08em;
}
.hud button {
  pointer-events: auto;
}
.meter-label {
  display: flex;
  justify-content: space-between;
  font: 8px monospace;
  letter-spacing: 0.1em;
  color: #afc7cb;
  margin-top: 11px;
}
.meter {
  height: 3px;
  background: #344256;
  margin-top: 5px;
}
.meter span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--mint);
}
.reward-hint {
  font: 9px/1.4 monospace;
  color: var(--mint);
  margin-top: 8px;
}
.race-footer {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 38px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 15px;
  background: #0b1628;
  border-top: 1px solid #3f5768;
  font: 10px monospace;
  color: var(--gold);
  pointer-events: none;
}
#controlHint {
  font-size: 8px;
  color: #b8c9cb;
}
.race-notice {
  position: absolute;
  top: 155px;
  left: 10px;
  right: 10px;
  text-align: center;
  font: 700 12px monospace;
  color: var(--gold);
  pointer-events: none;
}
.cutscene-skip {
  position: absolute;
  bottom: 85px;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
}
.results-layout {
  display: flex;
  flex-direction: column;
}
.results-layout h2 {
  margin-bottom: 14px;
}
.result-stats {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 12px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.result-stats strong {
  font: 700 32px monospace;
  color: var(--gold);
  display: block;
  margin-top: 7px;
}
.result-stats > div:last-child strong {
  color: var(--mint);
}
.micro-stats {
  display: flex;
  justify-content: space-between;
  font: 10px monospace;
  color: var(--muted);
  padding: 15px 0;
}
.personal-best {
  font: 12px monospace;
  color: var(--mint);
  margin: 0 0 12px;
}
details {
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
  margin-bottom: 6px;
}
summary {
  cursor: pointer;
  color: var(--muted);
  min-height: 32px;
  font-size: 13px;
}
dl {
  font: 12px monospace;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}
dd {
  margin: 0;
  color: var(--gold);
}
.reward-panel {
  margin-top: 16px;
  padding: 14px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 6px;
}
.reward-product {
  display: flex;
  gap: 14px;
  align-items: center;
}
.reward-product img {
  width: 95px;
  height: 115px;
  object-fit: contain;
}
.reward-product .eyebrow {
  font-size: 8px;
  margin-bottom: 8px;
}
.reward-product h3 {
  font-size: 19px;
}
.reward-panel p {
  margin: 8px 0 0;
}
.reward-panel code {
  color: var(--gold);
  font-size: 16px;
  display: block;
}
.reward-panel .text-btn {
  font-size: 12px;
  padding: 6px 0;
}
.result-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-top: 12px;
  gap: 6px;
}
.result-links .text-btn {
  font-size: 11px;
}
.text-input {
  display: block;
  width: 100%;
  padding: 14px;
  border: 1px solid var(--line);
  background: #142135;
  color: var(--text);
  border-radius: 5px;
  min-height: 52px;
  font-size: 16px;
  margin: 8px 0 18px;
}
.share-box {
  min-height: 170px;
  line-height: 1.6;
  resize: vertical;
}
.share-targets {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 4px 0 8px;
}
.share-targets .share-target {
  min-height: 44px;
  padding: 10px 4px;
  text-align: center;
  text-decoration: none;
  font-size: 13px;
  letter-spacing: 0.03em;
  display: flex;
  align-items: center;
  justify-content: center;
}
.consent-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
  margin: 20px 0;
}
.consent-row input {
  margin: 0;
}
.leaderboard-list {
  list-style: none;
  padding: 0;
}
.leaderboard-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  font: 12px monospace;
}
.leaderboard-list .current {
  color: var(--mint);
}
.leaderboard-list small {
  font: 10px monospace;
  display: block;
  margin-top: 6px;
}
.toast {
  position: absolute;
  bottom: 30px;
  left: 20px;
  right: 20px;
  background: #284235;
  color: #e6ffee;
  padding: 12px;
  border: 1px solid #658d76;
  border-radius: 5px;
  text-align: center;
  pointer-events: none;
  z-index: 100;
  font-size: 13px;
}
.toast:empty {
  display: none;
}
dialog {
  color: var(--text);
  background: var(--bg);
  border: 1px solid #557377;
  border-radius: 10px;
  width: min(360px, calc(100% - 32px));
  max-height: 90dvh;
  overflow: auto;
  padding: 24px;
  box-shadow: 0 20px 100px #000a;
}
dialog::backdrop {
  background: #030a16cc;
  backdrop-filter: blur(3px);
}
dialog h2 {
  font-size: 32px;
}
dialog p {
  font-size: 14px;
}
#tutorialCanvas {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #202d3c;
  margin-bottom: 14px;
  touch-action: none;
}
#practiceControls {
  display: flex;
  gap: 8px;
  justify-content: space-between;
}
#practiceControls button {
  flex: 1;
  padding: 12px;
  justify-content: center;
}
#tutorialNext {
  margin-top: 12px;
}
#tutorialSkip {
  width: 100%;
  text-align: center;
}
#pauseDialog .text-btn {
  width: 100%;
  text-align: center;
}
.reduced * {
  scroll-behavior: auto !important;
  animation: none !important;
  transition: none !important;
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto;
    animation: none !important;
    transition: none !important;
  }
}
@media (max-width: 480px) {
  #app {
    border: 0;
    border-radius: 0;
    height: 100dvh;
    height: var(--app-height, 100dvh);
    max-height: none;
  }
  .screen-inner {
    padding-top: max(24px, env(safe-area-inset-top));
    padding-bottom: max(28px, env(safe-area-inset-bottom));
  }
  .hud {
    padding-top: max(14px, env(safe-area-inset-top));
  }
  .race-footer {
    bottom: env(safe-area-inset-bottom);
  }
}
@media (max-height: 740px) {
  .home-copy {
    margin-top: 0;
  }
  .home-layout {
    gap: 8px;
  }
  .home-track {
    min-height: 115px;
  }
  .brand-row img {
    height: 44px;
  }
  h1 {
    font-size: 62px;
    margin: 10px 0;
  }
  .home-sub {
    font-size: 14px;
    margin-bottom: 8px;
  }
  .home-footer {
    font-size: 7px;
  }
  .home-copy .eyebrow {
    margin-bottom: 8px;
  }
}
@media (max-width: 360px) {
  .screen-inner {
    padding-inline: 18px;
  }
  .hud-top strong {
    font-size: 20px;
  }
  .hud {
    padding-inline: 12px;
  }
  .reward-hint {
    font-size: 8px;
  }
  .hoodie-label {
    font-size: 13px;
  }
  .micro-stats {
    font-size: 9px;
  }
}
@media (orientation: landscape) and (max-height: 500px) {
  #app {
    width: 100%;
    height: 100dvh;
    border-radius: 0;
  }
  .screen-inner {
    max-width: 600px;
    margin: auto;
  }
  .home-track {
    min-height: 160px;
  }
  .game-stage {
    width: 256px;
    margin: auto;
  }
  .hud {
    padding: 5px 10px;
  }
  .hud-top strong {
    font-size: 14px;
  }
  .hud .eyebrow {
    font-size: 7px;
  }
  .hud button {
    height: 32px;
    width: 32px;
  }
  .meter-label,
  .reward-hint {
    margin-top: 4px;
    font-size: 7px;
  }
  .race-footer {
    height: 25px;
    font-size: 8px;
  }
  #controlHint {
    font-size: 6px;
  }
  .race-notice {
    top: 95px;
    font-size: 9px;
  }
}
.game-stage {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.image-failed {
  visibility: hidden;
}
.screen h1:focus,
.screen h2:focus {
  outline: none;
}
.home-track::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    transparent 0 3px,
    #06101b18 3px 4px
  );
}

/* After Hours — dimensional racing, campaign typography and racing red. */
:root {
  --bg: #0d0e11;
  --panel: #1a1b20;
  --line: #37383f;
  --text: #f6f5f2;
  --muted: #b3b4bd;
  --mint: #f1f1f0;
  --gold: #f5d09a;
  --red: #ed253e;
  background: #08090c;
}
body {
  background:
    radial-gradient(ellipse at 50% 15%, #35343b, transparent 65%), #08090c;
}
#app {
  border-color: #3a3a40;
  border-radius: 14px;
  box-shadow: 0 28px 120px #000c;
}
.screen {
  background:
    radial-gradient(ellipse at 100% 0%, #3b222533, transparent 60%), var(--bg);
}
.eyebrow,
.edition,
.primary-btn,
.secondary-btn,
.track-tag,
.home-footer,
.meter-label,
.reward-hint,
.race-footer,
.hoodie-number,
.hoodie-note {
  font-family: Arial, Helvetica, sans-serif;
}
.eyebrow {
  color: #d5d4d8;
  letter-spacing: 0.17em;
}
.primary-btn {
  background: #e51e36;
  color: white;
  box-shadow: none;
  border-radius: 3px;
  font-size: 13px;
  letter-spacing: 0.09em;
  min-height: 58px;
}
.primary-btn:hover {
  background: #ff304a;
}
.secondary-btn,
.icon-btn {
  background: #202126;
  border-color: #484950;
}
.secondary-btn:hover {
  background: #303138;
}
h1 em {
  color: #f72b44;
}
.live-dot {
  background: #fb2f47;
  box-shadow: 0 0 14px #ff344b;
  border-radius: 50%;
}
.home-layout {
  position: relative;
  padding: 18px 25px 22px;
  gap: 10px;
  isolation: isolate;
}
.home-track {
  position: absolute;
  inset: 0;
  z-index: -2;
  border: 0;
  min-height: 0;
  background: #252630;
}
.home-track::after {
  background: linear-gradient(
    180deg,
    #080a0de0 0%,
    #080a0d42 35%,
    transparent 48%,
    #080a0d4d 66%,
    #080a0df5 83%
  );
}
.home-track canvas {
  object-fit: cover;
}
.track-tag {
  bottom: 190px;
  left: 25px;
  font-size: 9px;
  color: #fff;
  z-index: 1;
  text-shadow: 0 2px 5px black;
}
.brand-row img {
  width: 130px;
  height: 55px;
}
.edition {
  color: #d8d7dd;
  font-size: 8px;
}
.home-copy {
  margin-top: 12px;
}
h1 {
  font-size: clamp(65px, 19vw, 88px);
  letter-spacing: -0.045em;
}
h1 span {
  letter-spacing: 0.015em;
}
.home-sub {
  color: #ededef;
  text-shadow: 0 2px 8px #000;
}
.home-actions {
  margin-top: auto;
  padding-top: 270px;
}
.home-footer {
  color: #c2c2c8;
  font-size: 8px;
}
.home-links .text-btn {
  color: #dddde1;
}
.hoodie-card {
  background: linear-gradient(145deg, #303138, #15161b);
  border-radius: 3px;
}
.hoodie-card.selected {
  background: linear-gradient(145deg, #383238, #1b171b);
  border-color: #f32c46;
}
.selection-mark {
  color: #ff4e65;
}
.info-strip {
  background: #202126;
  border-left-color: #e92840;
}
.hud {
  background: linear-gradient(#0b0c10ee, #0b0c1099, transparent);
  border: 0;
  padding-bottom: 28px;
}
.hud-top strong {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 26px;
  letter-spacing: -0.04em;
  color: #fff;
  font-variant-numeric: tabular-nums;
}
.hud .eyebrow,
.meter-label {
  color: #eeeef2;
}
.meter {
  background: #ffffff38;
  height: 2px;
}
.meter span {
  background: #f63049;
}
.reward-hint {
  color: #f2f1ed;
}
.race-footer {
  background: #0b0c10dc;
  border: 0;
  height: 48px;
  color: #fff;
}
.race-notice {
  top: 160px;
  font: 700 11px Arial;
  letter-spacing: 0.13em;
  color: white;
  text-shadow: 0 2px 6px black;
}
.result-stats strong {
  font-family: Arial, sans-serif;
  letter-spacing: -0.05em;
  color: white;
}
.result-stats > div:last-child strong {
  color: #ff4b62;
}
.reward-panel {
  background: linear-gradient(120deg, #29272d, #17181d);
  border-radius: 3px;
}
.reward-product img {
  width: 120px;
  height: 150px;
}
.text-input {
  background: #1b1c22;
}
dialog {
  border-color: #55545a;
  background: #14151af5;
  backdrop-filter: blur(18px);
  border-radius: 8px;
}
dialog::backdrop {
  background: #050609aa;
}
.toast {
  background: #27282f;
  border-color: #6b6c75;
  color: white;
}
#loadingScreen {
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(#0a0b1044, #0a0b1077);
}
#countdownDisplay {
  font-family: Impact, "Arial Narrow", sans-serif;
  color: white;
  font-size: 130px;
}
@media (max-height: 740px) {
  .home-actions {
    padding-top: 180px;
  }
  .track-tag {
    bottom: 176px;
  }
  h1 {
    font-size: 65px;
  }
}
@media (max-height: 620px) {
  .home-actions {
    padding-top: 100px;
  }
  .home-copy {
    margin-top: 0;
  }
  .home-sub {
    font-size: 12px;
  }
}
@media (orientation: landscape) and (max-height: 500px) {
  .home-actions {
    padding-top: 100px;
  }
  .home-track {
    position: absolute;
  }
}
#selectionCanvas {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 4px;
  background: #262b38;
}
.hoodie-grid {
  margin: 16px 0;
}
#hoodieScreen .back {
  margin-bottom: 12px !important;
}
#hoodieScreen h2 {
  margin-top: 8px;
}
#tutorialCanvas {
  aspect-ratio: 16/9;
}
@media (max-width: 480px) {
  #app {
    border-radius: 0;
  }
}

.speed-announcement {
  position: absolute;
  top: 23%;
  left: 50%;
  width: 240px;
  transform: translateX(-50%) skewY(-3deg);
  padding: 13px 18px;
  border-left: 4px solid #ff304b;
  background: linear-gradient(100deg, #11131bf2, #11131b99);
  color: #fff;
  pointer-events: none;
  animation: shift-reveal 0.28s ease-out both;
}
.speed-announcement span {
  display: block;
  font:
    700 10px Arial,
    sans-serif;
  letter-spacing: 0.28em;
  color: #ff6378;
}
.speed-announcement strong {
  display: block;
  font:
    italic 44px/0.98 Impact,
    "Arial Narrow",
    sans-serif;
  margin: 5px 0;
}
.speed-announcement b {
  font:
    700 12px Arial,
    sans-serif;
  letter-spacing: 0.15em;
}
@keyframes shift-reveal {
  from {
    opacity: 0;
    transform: translateX(-65%) skewY(-3deg) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) skewY(-3deg) scale(1);
  }
}
.outcome-scene {
  position: absolute;
  top: 23%;
  left: 20px;
  right: 20px;
  padding: 24px 22px;
  border-top: 3px solid #f32c46;
  background: linear-gradient(120deg, #12131af5, #12131ad9);
  pointer-events: none;
  animation: outcome-reveal 0.25s ease-out both;
}
.outcome-scene .eyebrow {
  color: #ff8796;
  margin-bottom: 12px;
}
.outcome-scene > strong {
  display: block;
  font:
    40px/1 Impact,
    "Arial Narrow",
    sans-serif;
  text-transform: uppercase;
}
.outcome-scene p {
  color: #efedf2;
  margin: 12px 0 0;
  font-size: 14px;
}
.outcome-scene[data-cause="escape"] {
  border-color: #eee;
}
.outcome-scene[data-cause="escape"] .eyebrow {
  color: #eee;
}
@keyframes outcome-reveal {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.reduced .speed-announcement {
  transform: translateX(-50%);
}
@media (prefers-reduced-motion: reduce) {
  .speed-announcement {
    transform: translateX(-50%);
  }
}

/* Keep the product and the next action together on a phone. */
#hoodieScreen .screen-inner {
  padding: 18px 20px;
}
#hoodieScreen .back {
  min-height: 32px;
  padding: 4px 0;
  margin-bottom: 6px !important;
}
#hoodieScreen .eyebrow {
  margin-bottom: 6px;
}
#hoodieScreen h2 {
  white-space: nowrap;
  font-size: clamp(29px, 8.5vw, 38px);
  margin: 5px 0 12px;
}
#hoodieScreen .info-strip {
  padding: 9px 12px;
  margin: 0 0 8px;
  gap: 10px;
}
#hoodieScreen .info-strip > span {
  font-size: 21px;
}
#hoodieScreen .info-strip p {
  font-size: 12px;
}
.gear-sub {
  font-size: 12px;
  margin: 0 0 10px;
}
#selectionCanvas {
  height: 145px;
  object-fit: cover;
}
#hoodieScreen .hoodie-grid {
  gap: 10px;
  margin: 12px 0;
}
#hoodieScreen .hoodie-card {
  padding: 9px;
}
#hoodieScreen .hoodie-card img {
  height: 148px;
  aspect-ratio: auto;
}
#hoodieScreen .hoodie-label {
  margin-top: 7px;
}
#hoodieScreen .hoodie-note {
  margin-top: 3px;
}
#raceBtn {
  margin-top: 10px;
}
.home-footer {
  flex-wrap: wrap;
  gap: 8px;
}
.reward-steps {
  display: flex;
  justify-content: space-between;
  margin-top: 7px;
  gap: 8px;
}
.reward-steps span {
  flex: 1;
  padding: 3px 0;
  border: 1px solid #71717d;
  border-radius: 3px;
  text-align: center;
  font:
    700 11px Arial,
    sans-serif;
  color: #e5e5ed;
  background: #0d1017aa;
}
.reward-steps .reached {
  color: #141116;
  background: #f6d197;
  border-color: #f6d197;
}
.hud .meter {
  height: 6px;
  border-radius: 3px;
  overflow: hidden;
}
.hud .meter span {
  background: linear-gradient(90deg, #f6314d, #ffcc8e);
  transition: width 0.2s linear;
}
.hud .reward-hint {
  font-size: 10px;
  font-weight: 700;
  margin-top: 7px;
}
.reward-announcement {
  position: absolute;
  top: 25%;
  left: 18px;
  right: 18px;
  padding: 18px;
  text-align: center;
  color: #fff;
  background: linear-gradient(120deg, #5b1522f5, #161219f5);
  border: 1px solid #ffd198;
  border-radius: 4px;
  pointer-events: none;
  animation: outcome-reveal 0.25s ease-out both;
}
.reward-announcement span {
  display: block;
  font:
    700 10px Arial,
    sans-serif;
  letter-spacing: 0.2em;
  color: #ffd198;
}
.reward-announcement strong {
  display: block;
  margin: 8px 0;
  font:
    36px/1 Impact,
    "Arial Narrow",
    sans-serif;
}
.reward-announcement b {
  font:
    700 11px Arial,
    sans-serif;
  letter-spacing: 0.08em;
}
.reward-status {
  padding: 12px;
  margin-bottom: 12px;
  border-left: 3px solid #ff6175;
  background: #2b1920;
  font:
    700 12px/1.4 Arial,
    sans-serif;
  color: #ffbdc5;
}
.reward-status[data-earned="true"] {
  background: #29251e;
  border-color: #ffd198;
  color: #ffdfaa;
}
.results-layout .reward-panel {
  margin: 0 0 18px;
  padding: 12px;
}
.reward-product > div {
  flex: 1;
  min-width: 0;
}
.reward-product h3 {
  margin-bottom: 10px;
}
.reward-product img {
  width: 100px;
  height: 145px;
}
#rewardLink {
  margin: 0 0 10px;
  padding: 12px;
  min-height: 46px;
  font-size: 11px;
  letter-spacing: 0.025em;
}
.results-layout .result-stats {
  padding: 14px 0;
}
.results-layout h2 {
  margin-top: 8px;
}
@media (max-height: 700px) {
  #hoodieScreen .screen-inner {
    padding: 12px 16px;
  }
  #selectionCanvas {
    height: 95px;
  }
  #hoodieScreen .hoodie-card img {
    height: 105px;
  }
  #hoodieScreen .hoodie-grid {
    margin: 8px 0;
  }
  #hoodieScreen h2 {
    margin-bottom: 8px;
  }
  #hoodieScreen .hoodie-note {
    display: none;
  }
  #hoodieScreen #raceBtn {
    min-height: 50px;
    padding: 12px 16px;
    margin-top: 7px;
  }
}
.collaboration-loading {
  gap: 16px;
}
.collaboration-loading .eyebrow {
  margin-bottom: 8px;
}
.developer-credit,
.collaboration-credit {
  margin: 0;
  color: #c5c6cf;
  font-size: 14px;
}
.developer-credit strong,
.collaboration-credit strong {
  display: block;
  margin-top: 3px;
  color: #f6f5f2;
}
.developer-logo-panel {
  width: 100%;
  max-width: 310px;
  padding: 16px 22px;
  background: transparent;
  border: 0;
  box-shadow: none;
}
.developer-logo {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 0 3px #ffffffd9) drop-shadow(0 0 10px #ffffff99)
    drop-shadow(0 0 22px #ffffff66);
}
.partner-logo {
  display: block;
  width: 210px;
  height: 125px;
  object-fit: contain;
}
.collaboration-loading #assetStatus {
  margin-top: 14px;
  font-size: 12px;
}
.brand-row .home-developer-logo {
  width: 165px;
  height: 64px;
  padding: 9px 14px;
  object-fit: contain;
  background: transparent;
  border: 0;
  box-shadow: none;
  /* A tighter, brighter halo keeps the small navy lettering legible. */
  filter: drop-shadow(0 0 2px #fff) drop-shadow(0 0 5px #fffffff2)
    drop-shadow(0 0 13px #ffffffbf);
}
@media (max-height: 620px) {
  .collaboration-loading {
    gap: 10px;
  }
  .developer-logo-panel {
    max-width: 245px;
    padding: 10px;
  }
  .partner-logo {
    width: 170px;
    height: 95px;
  }
}
