:root {
  --bg: #0f1020;
  --panel: #1b1d3a;
  --panel-2: #262950;
  --line: #e8e8e8;
  --muted: #a3a8d0;
  --text: #f4f4f4;
  --yellow: #ffd23f;
  --red: #e43b44;
  --green: #3fbf6f;
  --blue: #3b8bea;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  background-image: radial-gradient(#1a1c38 1px, transparent 1px);
  background-size: 8px 8px;
  color: var(--text);
  font-family: 'Press Start 2P', ui-monospace, monospace;
  font-size: 11px;
  line-height: 1.8;
}
img.px { image-rendering: pixelated; image-rendering: crisp-edges; }
a { color: var(--yellow); }
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 16px; }

header.top { position: sticky; top: 0; z-index: 10; background: rgba(15, 16, 32, 0.95); border-bottom: 4px solid #000; }
header.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 10px; padding-bottom: 10px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-size: 13px; }
.brand img { width: 32px; height: 32px; }
.brand b { color: var(--yellow); font-weight: normal; }
nav { display: flex; gap: 14px; flex-wrap: wrap; font-size: 9px; }
nav a { color: var(--muted); text-decoration: none; }
nav a:hover { color: var(--yellow); }

.btn {
  display: inline-block;
  font: inherit;
  font-size: 12px;
  color: #111;
  background: var(--yellow);
  text-decoration: none;
  padding: 14px 20px;
  box-shadow: inset -4px -4px 0 #c79a12, 0 0 0 4px #000;
  margin: 6px;
}
.btn:hover { filter: brightness(1.1); }
.btn.secondary { background: #d8d8e8; box-shadow: inset -4px -4px 0 #8f90a8, 0 0 0 4px #000; }
.btn.small { font-size: 9px; padding: 10px 14px; }

.hero { padding: 48px 0 32px; }
.hero .wrap { display: grid; grid-template-columns: 1fr 1.1fr; gap: 32px; align-items: center; }
.hero h1 { font-size: 26px; line-height: 1.4; color: var(--yellow); text-shadow: 4px 4px 0 var(--red); margin: 0 0 18px; font-weight: normal; }
.hero p.lead { font-size: 12px; color: var(--text); margin: 0 0 20px; }
.hero .tags { color: var(--muted); font-size: 9px; margin-top: 12px; }
.lights { display: flex; gap: 8px; margin-bottom: 18px; }
.lights span { width: 18px; height: 18px; background: #ff2a2a; border: 3px solid #000; box-shadow: 0 0 0 2px #333; }
.frame { border: 4px solid var(--line); box-shadow: 0 0 0 4px #000, 8px 8px 0 4px #000; background: #000; display: block; width: 100%; height: auto; }

.parade { overflow: hidden; border-top: 4px dashed #555; border-bottom: 4px dashed #555; padding: 10px 0; margin: 12px 0 0; }
.parade .lane { display: flex; gap: 28px; width: max-content; animation: parade 30s linear infinite; }
.parade img { width: 120px; height: 42px; }
@keyframes parade { from { transform: translateX(0); } to { transform: translateX(-50%); } }

section { padding: 48px 0; }
section h2 { font-size: 18px; color: var(--yellow); font-weight: normal; margin: 0 0 8px; }
section p.sub { color: var(--muted); margin: 0 0 24px; }
.grid { display: grid; gap: 16px; }
.g3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.g2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.g5 { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.card { background: var(--panel); border: 4px solid var(--line); box-shadow: 6px 6px 0 #000; padding: 16px; }
.card h3 { font-size: 11px; color: var(--yellow); margin: 0 0 10px; font-weight: normal; }
.card p { margin: 0; color: var(--text); font-size: 9px; }
.card .day { font-size: 22px; color: var(--yellow); }
.card .when { color: var(--muted); font-size: 8px; }
.legend { text-align: center; padding: 12px; }
.legend img.car { width: 100%; max-width: 120px; height: auto; aspect-ratio: 40 / 14; display: block; margin: 0 auto 6px; }
.legend img.helmet { width: 24px; height: 24px; vertical-align: middle; margin-right: 6px; }
.legend .who { font-size: 9px; }
.legend .what { color: var(--muted); font-size: 8px; }
.tracks { display: flex; flex-wrap: wrap; gap: 8px; }
.tracks span { background: var(--panel-2); border: 3px solid #5a5f9a; padding: 6px 10px; font-size: 9px; }
.shot { margin: 0; }
.shot.narrow { max-width: 820px; }
.shot figcaption { color: var(--muted); font-size: 8px; margin-top: 10px; }
.band { background: var(--panel); border-top: 4px solid #000; border-bottom: 4px solid #000; }
.cta { text-align: center; }
footer { color: var(--muted); font-size: 8px; padding: 32px 0 48px; border-top: 4px solid #000; }
footer p { margin: 0 0 8px; }

@media (max-width: 800px) {
  body { font-size: 10px; }
  .hero .wrap { grid-template-columns: 1fr; }
  .hero h1 { font-size: 18px; }
  section h2 { font-size: 14px; }
  header.top nav { display: none; }
  .legend { padding: 8px; }
  .g5 { grid-template-columns: repeat(2, 1fr); }
  .btn { font-size: 10px; padding: 12px 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .parade .lane { animation: none; }
  html { scroll-behavior: auto; }
}

/* ------------------------------------------------ páginas de conteúdo --- */
.article { padding-top: 24px; padding-bottom: 48px; }
.article h1 { font-size: 20px; line-height: 1.5; color: var(--yellow); text-shadow: 3px 3px 0 var(--red); font-weight: normal; margin: 8px 0 18px; }
.article h2 { font-size: 13px; color: var(--yellow); font-weight: normal; margin: 32px 0 12px; }
.article h3 { font-size: 11px; font-weight: normal; margin: 20px 0 8px; }
.article p, .article li { font-size: 10px; line-height: 2; }
.article p.lead { font-size: 11px; color: var(--text); }
.article ul, .article ol { padding-left: 22px; }
.crumbs { font-size: 8px; color: var(--muted); }
.crumbs a { color: var(--muted); }
.split { margin: 20px 0; align-items: start; }
.map-card, .sprite-card { margin: 0; text-align: center; }
.map-card figcaption, .sprite-card figcaption { color: var(--muted); font-size: 8px; margin-top: 10px; }
.track-map { width: 100%; max-height: 320px; background: #183018; }
.track-map.small { max-height: 140px; }
.sprite-card > img { width: 100%; max-width: 320px; height: auto; }
.sprite-card figcaption img { width: 32px; height: 32px; vertical-align: middle; }
.facts { width: 100%; border-collapse: collapse; font-size: 9px; }
.facts th { text-align: left; font-weight: normal; color: var(--muted); padding: 5px 6px 5px 0; }
.facts td { padding: 5px 4px; }
.bar { display: inline-flex; gap: 2px; vertical-align: middle; }
.bar i { width: 6px; height: 8px; background: #3a3d6a; display: block; }
.bar i.on { background: var(--green); }
.table-wrap { overflow-x: auto; }
.data { width: 100%; border-collapse: collapse; font-size: 8px; margin: 8px 0 16px; }
.data th { color: var(--yellow); font-weight: normal; text-align: left; padding: 6px; border-bottom: 2px solid #2e3160; }
.data td { padding: 6px; border-bottom: 1px solid #2e3160; vertical-align: top; }
.link-card { display: block; color: var(--text); text-decoration: none; }
.link-card:hover { border-color: var(--yellow); }
.link-card h2 { font-size: 10px; margin: 10px 0 6px; }
.link-card p { font-size: 8px; }
.cta-box { margin-top: 40px; text-align: center; }
.cta-box h2 { margin-top: 0; }
.foot-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-bottom: 20px; }
.foot-links div { display: flex; flex-direction: column; gap: 4px; }
.foot-links b { color: var(--text); font-weight: normal; margin-bottom: 4px; }
.foot-links a { color: var(--muted); text-decoration: none; }
.foot-links a:hover { color: var(--yellow); }
.faq h3 { font-size: 11px; color: var(--yellow); font-weight: normal; margin: 22px 0 8px; }
.faq p { max-width: 820px; }

/* ---------------------------------------------- vitrine animada (topo) --- */
.showreel { margin: 0; }
.showreel canvas { width: 100%; height: auto; aspect-ratio: 16 / 10; image-rendering: pixelated; image-rendering: crisp-edges; background: #0f1020; opacity: 0; transition: opacity 0.4s; }
.showreel canvas.ready { opacity: 1; }
.showreel-bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.reel-dots { display: flex; gap: 5px; flex-wrap: wrap; }
.reel-dots button { width: 12px; height: 12px; padding: 0; border: 2px solid #000; background: #3a3d6a; cursor: pointer; }
.reel-dots button:last-child { background: #7a5a10; }
.reel-dots button[aria-current='true'] { background: var(--yellow); }
.showreel-bar .btn { margin: 4px; }

/* ------------------------------------------------ carrossel das lendas --- */
.carousel { position: relative; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; }
.carousel-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 6px 4px 14px;
  scrollbar-width: none;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel .slide { flex: 0 0 calc((100% - 48px) / 4); scroll-snap-align: start; text-align: center; padding: 16px 12px; }
.carousel .slide img.car { width: 100%; max-width: 240px; height: auto; aspect-ratio: 40 / 14; }
.carousel .slide .who { font-size: 10px; margin: 8px 0 4px; }
.carousel .slide .more { display: inline-block; margin-top: 10px; color: var(--yellow); font-size: 8px; }
.carousel-btn { font: inherit; font-size: 14px; width: 40px; height: 40px; background: var(--yellow); color: #111; border: 0; box-shadow: inset -3px -3px 0 #c79a12, 0 0 0 3px #000; cursor: pointer; }
.carousel-dots { grid-column: 1 / -1; display: flex; justify-content: center; gap: 6px; }
.carousel-dots button { width: 12px; height: 12px; padding: 0; border: 2px solid #000; background: #3a3d6a; cursor: pointer; }
.carousel-dots button[aria-current='true'] { background: var(--yellow); }
@media (max-width: 900px) {
  .carousel .slide { flex-basis: calc((100% - 16px) / 2); }
}
@media (max-width: 560px) {
  .carousel { grid-template-columns: 1fr; }
  .carousel-btn { display: none; }
  .carousel .slide { flex-basis: 80%; }
}
section[id] { scroll-margin-top: 80px; }
