/* ==========================================================================
   CTTR Evolved — box-art theme
   Deep blue speed streaks, a yellow/green race track, red-orange explosion
   and chunky yellow lettering with an orange 3D edge. Standalone stylesheet.
   ========================================================================== */

@font-face {
  font-family: "Titan One";
  src: url("/assets/fonts/titan-one.woff2") format("woff2");
  font-display: swap;
}

@font-face {
  font-family: "Lilita One";
  src: url("/assets/fonts/lilita-one.woff2") format("woff2");
  font-display: swap;
}

@font-face {
  font-family: "Nunito";
  src: url("/assets/fonts/nunito-variable.woff2") format("woff2");
  font-weight: 200 1000;
  font-display: swap;
}

:root {
  --blue-deep: #1d0647;
  --blue: #5b1796;
  --blue-hi: #c2268f;
  --ice: #ffe9a0;
  --yel: #ffe01a;
  --yel-hi: #fff98c;
  --orange: #ff8a12;
  --red: #e2310e;
  --brown: #3a1500;
  --navy: #2b0b63;
  --ink: #1d0647;
  --paper: #fbf4ff;
  --card: #ffffff;
  --text: #2b0b63;
  --muted: #6a4a8c;
  --display: "Titan One", "Arial Black", sans-serif;
  --sub: "Lilita One", "Arial Black", sans-serif;
  --body: "Nunito", system-ui, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; background: var(--blue-deep); }

body {
  margin: 0;
  background: linear-gradient(180deg, #2b0b63 0%, #4d1490 22%, #8f1f98 48%, #c9288c 72%, #f0661e 100%);
  color: #f6eefc;
  font: 500 18px/1.65 var(--body);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--ice); }

.card a, .faq a, .dl a, .release a, .stats a { color: var(--blue); }

img { max-width: 100%; height: auto; }

:focus-visible { outline: 3px solid var(--yel); outline-offset: 3px; }

.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  z-index: 50;
  padding: 8px 14px;
  background: var(--yel);
  color: var(--brown);
  font-weight: 800;
}

.skip:focus { left: 8px; }

/* ---------- Top bar ---------- */

.bar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 24px;
  background: rgba(29, 6, 71, 0.82);
  border-bottom: 4px solid var(--ink);
  backdrop-filter: blur(8px);
}

.bar__home {
  color: var(--yel);
  font: 400 18px/1 var(--display);
  text-decoration: none;
  text-shadow: 2px 2px 0 var(--red);
  white-space: nowrap;
}

.bar__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.bar__links a {
  display: block;
  padding: 6px 12px;
  border-radius: 999px;
  color: #fff;
  font: 400 17px/1 var(--sub);
  letter-spacing: 0.02em;
  text-decoration: none;
}

.bar__links a:hover { background: var(--yel); color: var(--brown); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  z-index: 1;
  overflow: hidden;
  padding: 36px 20px 190px;
  background: radial-gradient(ellipse at 50% 28%, rgba(194, 38, 143, 0.55) 0%, transparent 62%);
  text-align: center;
}

.hero__fx { position: absolute; inset: 0; pointer-events: none; }

.streaks { position: absolute; inset: 0; width: 100%; height: 100%; }

.hero__inner { position: relative; max-width: 860px; margin: 0 auto; }

.hero__logo { margin: 0 auto; width: min(74vw, 400px); line-height: 0; }

.hero__logo img {
  display: block;
  width: 100%;
  filter: drop-shadow(0 14px 0 rgba(20, 4, 60, 0.35));
  animation: pop 0.6s cubic-bezier(0.2, 1.6, 0.4, 1) both;
}

@keyframes pop { from { transform: scale(0.6) rotate(-4deg); opacity: 0; } }

.hero__tagline {
  margin: 4px 0 0;
  color: var(--yel);
  font: 400 clamp(26px, 4.2vw, 42px)/1.15 var(--display);
  letter-spacing: 0.02em;
  text-shadow: 0 4px 0 var(--brown);
}

.hero__lede {
  max-width: 620px;
  margin: 18px auto 0;
  color: #f6eefc;
  font-size: 19px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 22px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border: 3px solid var(--ink);
  border-radius: 999px;
  background: #fff;
  color: var(--navy);
  font: 400 15px/1.2 var(--sub);
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.chip--live { background: var(--yel); color: var(--brown); }

.chip--live::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--red);
  animation: blink 1.2s ease-in-out infinite;
}

@keyframes blink { 50% { opacity: 0.25; } }

.btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 26px; }

.btn {
  display: inline-block;
  padding: 12px 24px;
  border: 4px solid var(--ink);
  border-radius: 16px;
  background: #fff;
  color: var(--navy);
  font: 400 20px/1 var(--sub);
  letter-spacing: 0.03em;
  text-decoration: none;
  box-shadow: 0 6px 0 var(--ink);
  transition: transform 0.12s, box-shadow 0.12s;
}

.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 0 var(--ink); }
.btn:active { transform: translateY(5px); box-shadow: 0 1px 0 var(--ink); }

.btn--go {
  background: linear-gradient(180deg, #ff9d2e, var(--red));
  color: #fff;
  text-shadow: 0 2px 0 #7a0a02;
}

.btn--off,
.btn--off:hover,
.btn--off:active {
  background: #efe3fa;
  color: #8f78ad;
  cursor: not-allowed;
  transform: none;
  box-shadow: 0 6px 0 #b9a3d3;
  border-color: #b9a3d3;
}

/* Floating fruit beside the tagline, sparks around the logo */
.fruit {
  position: absolute;
  width: 120px;
  filter: drop-shadow(0 10px 0 rgba(20, 4, 60, 0.35));
  animation: bob 4s ease-in-out infinite;
}

.fruit--1 { left: 6%; top: 24%; transform: rotate(-14deg); }
.fruit--2 { right: 8%; top: 40%; width: 92px; animation-delay: -2s; transform: rotate(12deg); }

@keyframes bob { 50% { translate: 0 -14px; } }

.spark {
  position: absolute;
  width: 14px;
  height: 14px;
  background: var(--yel-hi);
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
  animation: twinkle 1.8s ease-in-out infinite;
}

.spark--1 { left: 22%; top: 14%; }
.spark--2 { right: 20%; top: 22%; width: 20px; height: 20px; animation-delay: -0.6s; }
.spark--3 { left: 30%; top: 70%; animation-delay: -1.2s; }

@keyframes twinkle { 50% { opacity: 0.2; transform: scale(0.6) rotate(45deg); } }

/* ---------- Sections ---------- */


/* One continuous blue page: two winding roads run down the sides, wumpa fruit sit on them */
main { position: relative; overflow: hidden; }

/* Faded speed streaks and sparkles run behind the whole page */
.pagefx { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.pagefx svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.pagefx :is(polyline, line) { vector-effect: non-scaling-stroke; stroke-linecap: round; stroke-linejoin: round; }
.pagefx .spark { width: var(--s, 16px); height: var(--s, 16px); }

.flow { position: relative; z-index: 1; overflow: hidden; }

.sideroad { position: absolute; inset: 140px 0 0 0; z-index: 0; pointer-events: none; }
.sideroad svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.sideroad polyline { vector-effect: non-scaling-stroke; stroke-linecap: butt; stroke-linejoin: round; }
.r-sh { stroke: rgba(20, 4, 60, 0.45); stroke-width: 62px; transform: translate(0.4px, 0); }
.r-kerb { stroke: #fff; stroke-width: 56px; }
.r-red { stroke: #e2231a; stroke-width: 56px; stroke-dasharray: 22 22; }
.r-road { stroke: #2a1a48; stroke-width: 42px; }
.r-line { stroke: #fff; stroke-width: 3px; stroke-dasharray: 16 14; opacity: 0.9; }

/* Start gantry and finish banner across the ends of each road */
.gate { position: absolute; z-index: 1; translate: -50% 0; width: 80px; line-height: 0; filter: drop-shadow(0 5px 0 rgba(20, 4, 60, 0.4)); }
.gate svg { position: static; display: block; width: 100%; height: auto; }
.gate--start { top: -8px; }
.gate--finish { bottom: 0; }

.pick {
  position: absolute;
  width: 54px;
  translate: -50% -50%;
  filter: drop-shadow(0 6px 0 rgba(20, 4, 60, 0.4));
  animation: bob 4s ease-in-out infinite;
}

@media (max-width: 1180px) { .sideroad { opacity: 0.3; } }
@media (max-width: 1000px) { .gate { display: none; } }
@media (max-width: 700px) { .sideroad { display: none; } }

.section { position: relative; padding: 80px 20px; }

.section > .wrap { position: relative; z-index: 1; }

.wrap { max-width: 1080px; margin: 0 auto; text-align: center; }

.eyebrow {
  display: inline-block;
  padding: 4px 14px;
  border: 3px solid var(--ink);
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font: 400 15px/1.2 var(--sub);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transform: rotate(-3deg);
  box-shadow: 3px 3px 0 var(--ink);
}

.title {
  margin: 14px 0 22px;
  color: var(--yel);
  font: 400 clamp(32px, 5vw, 52px)/1.1 var(--display);
  letter-spacing: 0.02em;
  text-shadow: 0 4px 0 var(--brown);
}

.lede { margin: -8px 0 28px; color: #e6d3f5; }

.section p { max-width: 640px; margin-left: auto; margin-right: auto; }

.split { display: grid; grid-template-columns: 1fr; justify-items: center; gap: 36px; }

.stats { display: grid; gap: 12px; width: 100%; max-width: 560px; margin: 0 auto; }

.stats div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  border: 4px solid var(--ink);
  border-radius: 18px;
  background: var(--card);
  box-shadow: 5px 6px 0 var(--ink);
}

.stats dt { color: var(--muted); font-weight: 700; }
.stats dd { margin: 0; color: var(--navy); font: 400 18px/1.2 var(--sub); text-align: right; }

.footnote { text-align: center; margin-top: 26px; color: #e6d3f5; font-size: 15px; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }

.card {
  position: relative;
  padding: 30px 24px 22px;
  border: 4px solid var(--ink);
  border-radius: 22px;
  background: var(--card);
  color: var(--text);
  box-shadow: 6px 8px 0 var(--ink);
}

.card:nth-child(2) { transform: rotate(0.8deg); }
.card:nth-child(3) { transform: rotate(-0.8deg); }

.card__num {
  position: absolute;
  top: -22px;
  left: 20px;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 4px solid var(--ink);
  border-radius: 50%;
  background: var(--yel);
  color: var(--brown);
  font: 400 22px/1 var(--display);
}

.card h3,
.dl h3 { margin: 0 0 6px; color: var(--navy); font: 400 23px/1.2 var(--sub); letter-spacing: 0.01em; }

.card p { margin: 0; }

/* Release notes and credits use the same chunky cards */
.release,
.credits li {
  border: 4px solid var(--ink);
  border-radius: 18px;
  background: var(--card);
  color: var(--text);
  box-shadow: 5px 6px 0 var(--ink);
}

.releases { display: grid; gap: 16px; max-width: 820px; margin: 0 auto; text-align: left; }

.release { padding: 18px 22px; }

.release__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; }

.release h3 { margin: 0; color: var(--navy); font: 400 23px/1.2 var(--sub); letter-spacing: 0.01em; }

.release p { margin: 8px 0 0; color: var(--muted); }

.credits { display: grid; gap: 12px; max-width: 820px; margin: 0 auto; padding: 0; list-style: none; }

.credits li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; padding: 14px 18px; }

.credits li span:first-child { color: var(--navy); font: 400 19px/1.3 var(--sub); }

.credits li a { color: var(--blue); text-decoration-color: var(--red); text-decoration-thickness: 3px; text-underline-offset: 3px; }

.credits li span:last-child { color: var(--muted); font-weight: 700; }

.dl {
  display: flex;
  flex-direction: column;
  text-align: center;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 24px 28px;
  border: 4px solid var(--ink);
  border-radius: 22px;
  background: var(--card);
  color: var(--text);
  box-shadow: 6px 8px 0 var(--ink);
}

.dl p { margin: 0; color: var(--muted); }

.faq details {
  max-width: 820px;
  margin: 0 auto 14px;
  text-align: left;
  border: 4px solid var(--ink);
  border-radius: 18px;
  background: var(--card);
  color: var(--text);
  box-shadow: 5px 6px 0 var(--ink);
}

.faq summary {
  padding: 16px 20px;
  color: var(--navy);
  font: 400 20px/1.3 var(--sub);
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::before { content: "▶"; display: inline-block; margin-right: 12px; color: var(--red); transition: transform 0.2s; }
.faq details[open] summary::before { transform: rotate(90deg); }

.faq details p { margin: 0; padding: 0 20px 18px 50px; }

/* ---------- Footer ---------- */

.foot {
  padding: 34px 20px 40px;
  background: var(--blue-deep);
  color: #e6c9ef;
  font-size: 15px;
  text-align: center;
}

.foot p { max-width: 760px; margin: 0 auto; }

/* ---------- Responsive ---------- */

@media (max-width: 1100px) {
  .fruit--1 { left: 3%; top: 60%; width: 96px; }
  .fruit--2 { right: 3%; top: 46%; width: 76px; }
}

@media (max-width: 860px) {
  .cards { grid-template-columns: 1fr; }
  .cards { gap: 36px; }
  .card:nth-child(n) { transform: none; }
  .bar { flex-direction: column; gap: 8px; padding: 10px 12px; position: static; }
  .bar__links { justify-content: center; }
  .fruit--1 { top: auto; bottom: 30px; left: -10px; width: 84px; }
  .fruit--2 { display: none; }
}

@media (max-width: 560px) {
  body { font-size: 17px; }
  .section { padding: 60px 16px; }
  .title, .hero__tagline { text-shadow: 0 3px 0 var(--brown); }
  .hero { padding: 24px 16px 90px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
