/* Balls Race 3D — shared site styles (game look) */
:root {
  --bg: #07090e;
  --bg2: #0c1018;
  --panel: #121722;
  --panel2: #1a2130;
  --line: #2a3243;
  --text: #f2f4f8;
  --muted: #9aa5b8;
  --accent: #ff8a00;
  --accent2: #ffb020;
  --hot: #ff5a1f;
  --radius: 6px;
  --max: 1200px;
  --cut: 14px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 17px/1.55 "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--accent2); }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }
h1, h2, h3 { line-height: 1; margin: 0; }
.display {
  font-family: "Barlow Condensed", Impact, sans-serif; font-weight: 800; font-style: italic;
  text-transform: uppercase; letter-spacing: .01em;
}
.kicker {
  display: inline-block; font-family: "Barlow Condensed", sans-serif; font-weight: 700; font-style: italic;
  font-size: 15px; letter-spacing: .12em; text-transform: uppercase; color: #160a00;
  background: var(--accent); padding: 3px 18px 3px 12px;
  clip-path: polygon(0 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
}
.orange { color: var(--accent); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(7,9,14,.9); backdrop-filter: blur(10px); border-bottom: 2px solid var(--accent); }
.site-header .wrap { display: flex; align-items: center; gap: 20px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.brand img { width: 38px; height: 38px; }
.brand span { font-family: "Barlow Condensed", sans-serif; font-weight: 800; font-style: italic; font-size: 24px; color: var(--accent); letter-spacing: .02em; }
.nav { display: flex; gap: 2px; margin-left: auto; }
.nav a {
  color: var(--muted); text-decoration: none; font-family: "Barlow Condensed", sans-serif; font-weight: 700;
  font-style: italic; text-transform: uppercase; letter-spacing: .06em; font-size: 17px; padding: 8px 16px;
  clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
}
.nav a:hover { color: var(--text); background: var(--panel2); }
.nav a.active { color: #160a00; background: var(--accent); }
.nav-cta { margin-left: 8px; }
.menu-btn { display: none; margin-left: auto; background: none; border: 1px solid var(--line); color: var(--text); padding: 6px 12px; font: 700 16px "Barlow Condensed", sans-serif; text-transform: uppercase; cursor: pointer; }
@media (max-width: 860px) {
  .menu-btn { display: block; }
  .nav { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; background: var(--bg); border-bottom: 2px solid var(--accent); padding: 8px 16px 16px; }
  .nav.open { display: flex; }
  .nav-cta { display: none; }
}

/* Buttons: angled like the game menu */
.btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 14px 30px 14px 26px;
  font-family: "Barlow Condensed", sans-serif; font-weight: 800; font-style: italic; text-transform: uppercase;
  letter-spacing: .05em; font-size: 20px; text-decoration: none; border: 0; cursor: pointer;
  clip-path: polygon(var(--cut) 0, 100% 0, calc(100% - var(--cut)) 100%, 0 100%);
  transition: transform .12s, background .12s, filter .12s;
}
.btn:hover { transform: translateY(-2px); filter: brightness(1.08); }
.btn-primary { background: linear-gradient(180deg, var(--accent2), var(--accent)); color: #1a0b00; }
.btn-ghost { background: rgba(255,255,255,.1); color: var(--text); }
.btn-ghost:hover { background: rgba(255,255,255,.18); }
.btn-small { padding: 8px 20px 8px 16px; font-size: 16px; --cut: 9px; }
.btn[aria-disabled="true"] { cursor: default; }
.btn[aria-disabled="true"]:hover { transform: none; }
.btn svg { width: 20px; height: 20px; flex-shrink: 0; }

/* Hero */
.hero { position: relative; overflow: hidden; min-height: min(86vh, 780px); display: flex; align-items: center; }
.hero-bg { position: absolute; inset: 0; background: center/cover no-repeat; animation: heroZoom 18s ease-in-out infinite alternate; }
@keyframes heroZoom { from { transform: scale(1.02); } to { transform: scale(1.12); } }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(7,9,14,.95) 0%, rgba(7,9,14,.75) 40%, rgba(7,9,14,.15) 75%),
    linear-gradient(0deg, var(--bg) 0%, rgba(7,9,14,0) 35%);
}
.hero .wrap { position: relative; z-index: 2; padding-top: 72px; padding-bottom: 110px; width: 100%; }
.hero-logo { width: min(680px, 100%); height: auto; margin: 22px 0 18px; filter: drop-shadow(0 8px 30px rgba(255,120,0,.45)); }
.hero p.lead { font-family: "Barlow Condensed", sans-serif; font-weight: 700; font-style: italic; text-transform: uppercase; font-size: clamp(24px, 3.2vw, 36px); line-height: 1.1; max-width: 640px; margin: 0 0 12px; }
.hero p.sub { color: #c7cfdc; max-width: 520px; margin: 0 0 30px; font-size: 18px; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 14px; }
.badge { display: inline-flex; gap: 8px; align-items: center; margin-left: 8px; font: 700 13px "Barlow", sans-serif; letter-spacing: .1em; text-transform: uppercase; color: var(--accent2); }
.badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--hot); box-shadow: 0 0 10px var(--hot); animation: pulse 1.4s infinite; }
@keyframes pulse { 50% { opacity: .3; } }
@media (max-width: 700px) {
  .hero { min-height: 0; }
  .hero::after { background: linear-gradient(0deg, rgba(7,9,14,.98) 25%, rgba(7,9,14,.55) 100%); }
  .hero .wrap { padding-top: 140px; padding-bottom: 80px; }
}

/* Ticker band */
.ticker { position: relative; z-index: 3; background: var(--accent); color: #160a00; transform: rotate(-1.5deg); margin: -34px -20px 0; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,.5); }
.ticker-track { display: flex; width: max-content; animation: tick 40s linear infinite; }
.ticker span { font-family: "Barlow Condensed", sans-serif; font-weight: 800; font-style: italic; text-transform: uppercase; font-size: 26px; padding: 10px 0; white-space: nowrap; }
.ticker span::after { content: "◆"; margin: 0 26px; font-size: 16px; vertical-align: 3px; }
@keyframes tick { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker-track, .hero-bg { animation: none; } }

/* Sections */
section.block { padding: 96px 0 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 30px; flex-wrap: wrap; }
.section-head h2 { font-size: clamp(40px, 6vw, 68px); margin-top: 12px; }
.section-head p { color: var(--muted); max-width: 520px; margin: 10px 0 0; }

/* Steps (how you play) */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.step { position: relative; background: var(--panel); overflow: hidden; clip-path: polygon(0 0, 100% 0, 100% calc(100% - 22px), calc(100% - 22px) 100%, 0 100%); }
.step img { aspect-ratio: 16/9; object-fit: cover; width: 100%; transition: transform .4s; }
.step:hover img { transform: scale(1.05); }
.step .num { position: absolute; top: 10px; left: 14px; font: 800 italic 64px/1 "Barlow Condensed", sans-serif; color: var(--accent); text-shadow: 0 4px 18px rgba(0,0,0,.8); }
.step .txt { padding: 18px 20px 26px; }
.step h3 { font-size: 30px; margin-bottom: 6px; }
.step p { color: var(--muted); margin: 0; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

/* Mode cards */
.modes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.mode { position: relative; min-height: 300px; overflow: hidden; display: flex; align-items: flex-end; background: var(--panel); border-bottom: 3px solid var(--accent); }
.mode img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.mode:hover img { transform: scale(1.06); }
.mode::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(7,9,14,.96) 10%, rgba(7,9,14,.2) 65%); }
.mode .txt { position: relative; z-index: 2; padding: 24px 26px; }
.mode h3 { font-size: 40px; margin-bottom: 6px; }
.mode p { color: #c7cfdc; margin: 0; max-width: 440px; }
@media (max-width: 760px) { .modes { grid-template-columns: 1fr; } .mode { min-height: 240px; } }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.stat { background: var(--panel); padding: 22px 24px; border-left: 4px solid var(--accent); }
.stat b { display: block; font: 800 italic 60px/1 "Barlow Condensed", sans-serif; color: var(--accent); }
.stat span { color: var(--muted); font-size: 15px; text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, 1fr); } .stat b { font-size: 46px; } }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 180px; gap: 10px; }
.gallery a { position: relative; overflow: hidden; display: block; background: var(--panel); }
.gallery a:first-child { grid-column: span 2; grid-row: span 2; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s, filter .4s; }
.gallery a:hover img { transform: scale(1.06); filter: brightness(1.1); }
@media (max-width: 760px) { .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 120px; } }
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(0,0,0,.92); display: none; align-items: center; justify-content: center; padding: 16px; cursor: zoom-out; }
.lightbox.open { display: flex; }
.lightbox img { max-height: 92vh; max-width: 100%; box-shadow: 0 20px 80px rgba(0,0,0,.8); }

/* Trailer */
.video { position: relative; aspect-ratio: 16/9; overflow: hidden; background: #000 center/cover no-repeat; border-bottom: 3px solid var(--accent); }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-placeholder { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 24px; background: rgba(7,9,14,.6); }
.video-placeholder b { font: 800 italic clamp(34px, 5vw, 60px)/1 "Barlow Condensed", sans-serif; text-transform: uppercase; }
.video-placeholder span { color: #c7cfdc; display: block; margin-top: 8px; }

/* Track cards */
.track-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
.track-card { position: relative; overflow: hidden; text-decoration: none; color: var(--text); display: block; background: var(--panel); }
.track-card img { aspect-ratio: 640/612; object-fit: cover; width: 100%; transition: transform .4s; }
.track-card:hover img { transform: scale(1.07); }
.track-card .meta { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 14px 12px; background: linear-gradient(0deg, rgba(7,9,14,.95), transparent); display: flex; justify-content: space-between; align-items: end; gap: 8px; }
.track-card .meta b { font: 800 italic 26px/1 "Barlow Condensed", sans-serif; text-transform: uppercase; }
.track-card .meta span { font: 700 13px "Barlow", sans-serif; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; white-space: nowrap; }
.track-card .meta span.play { color: var(--accent); }
.track-card::before { content: ""; position: absolute; inset: 0; border: 2px solid transparent; z-index: 2; transition: border-color .2s; pointer-events: none; }
.track-card:hover::before { border-color: var(--accent); }

/* Split panels */
.split { display: grid; grid-template-columns: 1.2fr 1fr; gap: 18px; }
.panel { position: relative; background: var(--panel); padding: 30px; overflow: hidden; }
.panel.img { background: var(--panel) center/cover no-repeat; min-height: 320px; display: flex; flex-direction: column; justify-content: flex-end; }
.panel.img::before { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(7,9,14,.97) 30%, rgba(7,9,14,.35)); }
.panel > * { position: relative; }
.panel h3 { font-size: 42px; margin: 14px 0 10px; }
.panel p { color: #c7cfdc; margin: 0 0 20px; }
.mini-stats { display: flex; gap: 30px; margin: 0 0 22px; flex-wrap: wrap; }
.mini-stats b { display: block; font: 800 italic 46px/1 "Barlow Condensed", sans-serif; color: var(--accent); }
.mini-stats span { font-size: 14px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

/* Big call to action */
.cta-band { position: relative; overflow: hidden; text-align: center; padding: 90px 16px; background: center/cover no-repeat; }
.cta-band::before { content: ""; position: absolute; inset: 0; background: rgba(7,9,14,.78); }
.cta-band > * { position: relative; }
.cta-band h2 { font-size: clamp(44px, 7vw, 84px); margin: 16px 0 26px; }

/* Inner page header */
.page-head { position: relative; padding: 80px 0 46px; overflow: hidden; background: var(--bg2) center/cover no-repeat; border-bottom: 3px solid var(--accent); }
.page-head::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(7,9,14,.96) 20%, rgba(7,9,14,.6)); }
.page-head .wrap { position: relative; }
.page-head h1 { font-size: clamp(52px, 8vw, 96px); margin-top: 14px; }
.page-head p { color: #c7cfdc; max-width: 640px; margin: 14px 0 0; }

/* FAQ / prose */
.prose { max-width: 860px; }
.prose h2 { font: 800 italic 36px/1 "Barlow Condensed", sans-serif; text-transform: uppercase; color: var(--accent); margin: 48px 0 12px; }
.prose .muted { color: var(--muted); }
details.faq { background: var(--panel); border-left: 4px solid var(--accent); padding: 0 22px; margin-bottom: 10px; }
details.faq summary { cursor: pointer; padding: 18px 0; font: 700 20px "Barlow Condensed", sans-serif; text-transform: uppercase; letter-spacing: .03em; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
details.faq summary::after { content: "+"; color: var(--accent); font-size: 26px; line-height: .8; }
details.faq[open] summary::after { content: "–"; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq div { padding: 0 0 18px; color: #c7cfdc; }
table.specs { width: 100%; border-collapse: collapse; background: var(--panel); }
table.specs th, table.specs td { text-align: left; padding: 13px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.specs th { color: var(--muted); font-weight: 600; width: 34%; }
table.specs tr:last-child th, table.specs tr:last-child td { border-bottom: 0; }

/* Press */
.copybox { position: relative; background: var(--panel); border-left: 4px solid var(--accent); padding: 18px 20px; }
.copybox button { position: absolute; top: 12px; right: 12px; }
.assets-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.asset { background: var(--panel); overflow: hidden; }
.asset .thumb { background: repeating-conic-gradient(#121722 0 25%, #0c1018 0 50%) 0 0/20px 20px; display: grid; place-items: center; aspect-ratio: 16/10; padding: 16px; }
.asset .thumb img { max-height: 100%; object-fit: contain; }
.asset .row { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; font-size: 15px; color: var(--muted); }

/* Footer */
.site-footer { margin-top: 110px; border-top: 3px solid var(--accent); background: var(--bg2); }
.site-footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; padding-top: 46px; padding-bottom: 32px; }
.site-footer h4 { font: 700 italic 16px "Barlow Condensed", sans-serif; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin: 0 0 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: 6px 0; }
.site-footer a { color: var(--text); text-decoration: none; }
.site-footer a:hover { color: var(--accent2); }
.site-footer p { color: var(--muted); font-size: 15px; margin: 10px 0 0; max-width: 340px; }
.socials { display: flex; gap: 10px; margin-top: 16px; }
.socials a { width: 40px; height: 40px; display: grid; place-items: center; background: var(--panel2); color: var(--muted); clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%); }
.socials a:hover { color: #160a00; background: var(--accent); }
.socials svg { width: 18px; height: 18px; }
.legal { border-top: 1px solid var(--line); padding: 16px; text-align: center; color: var(--muted); font-size: 13px; }
@media (max-width: 760px) { .site-footer .wrap { grid-template-columns: 1fr; } }

.hidden { display: none !important; }
