/* DanfoRush — site styles. Danfo yellow and kerb black, asphalt dark, Lilita One display. */
:root {
  --yellow: #ffc61a;
  --yellow-deep: #f2a900;
  --ink: #111214;
  --asphalt: #1a1c20;
  --asphalt-2: #24272d;
  --line: #34383f;
  --paper: #fff8e6;
  --text: #f4f2ec;
  --muted: #a9adb5;
  --green: #12a150;
  --red: #e5392f;
  --radius: 18px;
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1160px;
  --display: "Lilita One", "Arial Black", system-ui, sans-serif;
  --body: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--asphalt);
  color: var(--text);
  font: 400 17px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; }
h2 { font: 400 clamp(36px, 6vw, 64px)/1 var(--display); letter-spacing: .01em; }
h3 { font: 400 26px/1.1 var(--display); letter-spacing: .01em; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; border-radius: 6px; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--yellow); color: var(--ink); padding: 8px 12px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 800 16px/1 var(--body); text-decoration: none; letter-spacing: .01em;
  border: 0; border-radius: 999px; padding: 14px 22px; cursor: pointer;
  transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-lg { padding: 18px 28px; font-size: 18px; }
.btn-sm { padding: 10px 16px; font-size: 14px; }
.btn-yellow { background: var(--yellow); color: var(--ink); box-shadow: 0 6px 0 var(--yellow-deep), 0 14px 30px rgba(255, 198, 26, .25); }
.btn-yellow:hover { background: #ffd23f; }
.btn-ghost { background: rgba(255,255,255,.08); color: var(--text); box-shadow: inset 0 0 0 2px rgba(255,255,255,.35); backdrop-filter: blur(6px); }
.btn-ghost:hover { background: rgba(255,255,255,.16); }
.btn-ink { background: var(--ink); color: var(--yellow); }
.btn-ink:hover { background: #000; }

/* Nav */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 5;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px var(--gutter);
  background: linear-gradient(to bottom, rgba(17,18,20,.75), rgba(17,18,20,0));
  transition: background-color .2s ease;
}
.nav.solid { background: rgba(17,18,20,.92); backdrop-filter: blur(10px); box-shadow: 0 1px 0 var(--line); }
.nav nav { display: flex; align-items: center; gap: clamp(10px, 2.4vw, 28px); }
.nav nav a:not(.btn) { text-decoration: none; font-weight: 700; font-size: 15px; color: #e8e6df; }
.nav nav a:not(.btn):hover { color: var(--yellow); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark {
  width: 30px; height: 30px; border-radius: 8px;
  background: repeating-linear-gradient(135deg, var(--yellow) 0 7px, var(--ink) 7px 12px);
  box-shadow: inset 0 0 0 2px var(--yellow);
}
.brand-word { font: 400 24px/1 var(--display); color: var(--yellow); letter-spacing: .02em; }

/* Hero */
.hero { position: relative; min-height: 100svh; display: grid; place-items: end start; overflow: hidden; background: #000 url("/img/hero.jpg") center/cover no-repeat; }
@media (orientation: portrait) { .hero { background-image: url("/img/hero-portrait.jpg"); } }
.hero-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-shade { position: absolute; inset: 0; background:
  linear-gradient(90deg, rgba(10,11,13,.86) 0%, rgba(10,11,13,.55) 45%, rgba(10,11,13,.1) 80%),
  linear-gradient(0deg, rgba(10,11,13,.9) 0%, rgba(10,11,13,0) 40%); }
.hero-inner { position: relative; width: 100%; max-width: var(--max); margin: 0 auto; padding: 120px var(--gutter) clamp(64px, 10vh, 120px); }
.eyebrow { display: inline-block; font: 900 13px/1 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--yellow); margin-bottom: 18px; }
.eyebrow.dark { color: var(--ink); background: var(--yellow); padding: 7px 10px; border-radius: 6px; }
.logo { display: flex; flex-wrap: nowrap; font: 400 clamp(60px, 12.5vw, 150px)/.9 var(--display); color: var(--yellow); letter-spacing: .01em; text-shadow: 0 6px 0 #000, 0 18px 40px rgba(0,0,0,.45); }
.logo span:last-child { color: #fff; }
.lede { max-width: 34ch; margin-top: 22px; font-size: clamp(18px, 2.2vw, 22px); line-height: 1.45; color: #ece9e1; font-weight: 600; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.platforms { display: flex; flex-wrap: wrap; gap: 8px 18px; list-style: none; margin: 26px 0 0; padding: 0; font-size: 14px; color: var(--muted); }
.platforms li { display: inline-flex; gap: 6px; align-items: center; }
.platforms li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.platforms li.live::before { background: var(--green); box-shadow: 0 0 0 4px rgba(18,161,80,.25); }
.platforms strong { color: var(--text); font-weight: 800; }
.countdown { display: flex; gap: 10px; margin-top: 26px; }
.countdown div { min-width: 70px; padding: 10px 8px 8px; text-align: center; background: rgba(0,0,0,.45); border: 1px solid rgba(255,255,255,.12); border-radius: 12px; backdrop-filter: blur(6px); }
.countdown b { display: block; font: 400 30px/1 var(--display); color: #fff; font-variant-numeric: tabular-nums; }
.countdown small { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 800; }
.kerb { position: absolute; left: 0; right: 0; bottom: 0; height: 14px; background: repeating-linear-gradient(90deg, var(--yellow) 0 56px, var(--ink) 56px 112px); }

/* Route strip */
.route { background: var(--ink); padding: 22px var(--gutter); overflow-x: auto; }
.route ol { display: flex; justify-content: space-between; gap: 24px; list-style: none; margin: 0 auto; padding: 0; max-width: var(--max); position: relative; min-width: 560px; }
.route ol::before { content: ""; position: absolute; left: 6px; right: 6px; top: 7px; height: 4px; background: repeating-linear-gradient(90deg, var(--yellow) 0 18px, transparent 18px 30px); }
.route li { position: relative; padding-top: 24px; font: 400 20px/1 var(--display); color: #fff; }
.route li::before { content: ""; position: absolute; top: 0; left: 0; width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 4px solid var(--ink); box-shadow: 0 0 0 3px var(--yellow); }

/* Sections */
section { scroll-margin-top: 70px; }
.section-head { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.sub { margin-top: 14px; max-width: 52ch; font-size: 19px; color: #3a3d44; font-weight: 600; }
.sub.light { color: var(--muted); }

/* Features */
.features { background: var(--paper); color: var(--ink); padding: clamp(72px, 10vw, 120px) 0; }
.feature-grid { max-width: var(--max); margin: 56px auto 0; padding: 0 var(--gutter); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.feature { display: grid; grid-template-columns: 170px 1fr; gap: 24px; align-items: center; background: #fff; border-radius: var(--radius); padding: 22px; box-shadow: 0 1px 0 rgba(0,0,0,.06), 0 18px 40px -24px rgba(0,0,0,.35); }
.feature h3 { color: var(--ink); }
.feature p { margin-top: 10px; color: #43464d; font-size: 16px; }
.phone { margin: 0; aspect-ratio: 9/19.5; border-radius: 24px; overflow: hidden; background: #000; border: 6px solid var(--ink); box-shadow: 0 10px 0 var(--yellow); }
.phone img { width: 100%; height: 100%; object-fit: cover; }

/* Leaderboard */
.board { background: radial-gradient(1200px 500px at 70% -10%, #2e2a1a 0%, var(--asphalt) 60%); padding: clamp(72px, 10vw, 120px) 0; }
.board-card { max-width: 760px; margin: 40px auto 0; padding: 0 var(--gutter); }
.tabs { display: inline-flex; gap: 6px; padding: 5px; background: var(--asphalt-2); border-radius: 999px; border: 1px solid var(--line); }
.tabs button { font: 800 14px/1 var(--body); color: var(--muted); background: transparent; border: 0; padding: 10px 16px; border-radius: 999px; cursor: pointer; }
.tabs button[aria-selected="true"] { background: var(--yellow); color: var(--ink); }
.board-list { list-style: none; margin: 18px 0 0; padding: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--asphalt-2); }
.board-list li { display: grid; grid-template-columns: 52px 1fr auto; align-items: center; gap: 12px; padding: 14px 18px; border-top: 1px solid var(--line); }
.board-list li:first-child { border-top: 0; }
.board-list .rank { font: 400 22px/1 var(--display); color: var(--muted); text-align: center; }
.board-list li:nth-child(1) .rank { color: var(--yellow); }
.board-list li:nth-child(2) .rank { color: #d9dde3; }
.board-list li:nth-child(3) .rank { color: #e0a36b; }
.board-list .name { font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.board-list .meta { display: block; font-size: 13px; color: var(--muted); font-weight: 600; }
.board-list .score { font: 400 24px/1 var(--display); color: #fff; font-variant-numeric: tabular-nums; }
.board-list .board-empty { display: block; text-align: center; color: var(--muted); padding: 34px 18px; font-weight: 700; }

/* Join */
.join { padding: clamp(72px, 10vw, 120px) var(--gutter); background: var(--asphalt); }
.join-card {
  max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center;
  background: var(--yellow); color: var(--ink); border-radius: 28px; padding: clamp(28px, 5vw, 64px);
  position: relative; overflow: hidden;
}
.join-card::after { content: ""; position: absolute; right: -60px; top: -60px; width: 260px; height: 260px; border-radius: 50%; background: repeating-linear-gradient(135deg, rgba(0,0,0,.08) 0 14px, transparent 14px 28px); }
.join-copy p { margin-top: 16px; font-size: 18px; font-weight: 600; }
.perks { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 8px; font-weight: 800; }
.perks li { display: flex; gap: 10px; align-items: center; }
.perks li::before { content: ""; width: 18px; height: 18px; border-radius: 6px; background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-7' fill='none' stroke='%23ffc61a' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat; flex: none; }
.join-form { position: relative; z-index: 1; background: rgba(255,255,255,.55); border-radius: 20px; padding: 22px; }
.join-form label { display: block; font-weight: 900; margin-bottom: 8px; }
.field { display: flex; gap: 8px; background: #fff; border-radius: 999px; padding: 6px; box-shadow: inset 0 0 0 2px var(--ink); }
.field input { flex: 1; min-width: 0; border: 0; background: transparent; font: 700 17px/1 var(--body); padding: 10px 14px; color: var(--ink); }
.field input:focus { outline: none; }
.field:focus-within { box-shadow: inset 0 0 0 3px var(--ink), 0 0 0 4px rgba(17,18,20,.15); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.fine { margin-top: 12px; font-size: 13px; font-weight: 600; color: #3b3a33; }
.form-msg { margin-top: 10px; font-weight: 800; min-height: 1.6em; }
.form-msg.ok { color: #0b6b34; }
.form-msg.err { color: #9c1c14; }

/* Footer */
.foot { background: var(--ink); padding: 56px var(--gutter) 28px; border-top: 14px solid; border-image: repeating-linear-gradient(90deg, var(--yellow) 0 56px, var(--ink) 56px 112px) 14; }
.foot-top { max-width: var(--max); margin: 0 auto; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 36px; }
.foot-note { margin-top: 14px; max-width: 38ch; color: var(--muted); font-size: 14px; }
.foot-links { display: flex; gap: clamp(32px, 6vw, 80px); }
.foot-links h4 { font: 900 12px/1 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--yellow); margin-bottom: 12px; }
.foot-links a { display: block; text-decoration: none; color: #e6e3db; font-weight: 700; font-size: 15px; padding: 4px 0; }
.foot-links a:hover { color: var(--yellow); }
.foot-legal { max-width: var(--max); margin: 40px auto 0; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }

/* Legal pages */
.doc { background: var(--paper); color: var(--ink); padding: 120px var(--gutter) 80px; }
.doc article { max-width: 760px; margin: 0 auto; }
.doc h1 { font: 400 clamp(42px, 7vw, 64px)/1 var(--display); }
.doc .updated { margin-top: 12px; color: #5b5d63; font-weight: 700; }
.doc h2 { font: 400 28px/1.15 var(--display); margin: 40px 0 10px; }
.doc h3 { font: 800 18px/1.3 var(--body); margin: 22px 0 6px; }
.doc p, .doc li { font-size: 17px; color: #2a2c31; }
.doc p + p { margin-top: 12px; }
.doc ul { padding-left: 22px; }
.doc li + li { margin-top: 6px; }
.doc a { color: #8a5a00; font-weight: 700; }
.doc .summary { margin-top: 26px; background: #fff; border-radius: var(--radius); padding: 20px 22px; box-shadow: inset 0 0 0 2px var(--yellow); }
.doc table { width: 100%; border-collapse: collapse; margin-top: 12px; font-size: 15px; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 10px 8px; border-top: 1px solid #e3dccb; }
.doc th { font-weight: 900; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .feature-grid { grid-template-columns: 1fr; }
  .join-card { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .nav nav a:not(.btn) { display: none; }
  .hero { place-items: end center; }
  .hero-shade { background: linear-gradient(0deg, rgba(10,11,13,.95) 0%, rgba(10,11,13,.55) 55%, rgba(10,11,13,.25) 100%); }
  .feature { grid-template-columns: 110px 1fr; gap: 16px; padding: 16px; }
  .phone { border-width: 4px; border-radius: 18px; box-shadow: 0 6px 0 var(--yellow); }
  .feature h3 { font-size: 21px; }
  .feature p { font-size: 15px; }
  .countdown div { min-width: 0; flex: 1; }
  .field { flex-direction: column; border-radius: 16px; }
  .field .btn { width: 100%; }
  .board-list li { grid-template-columns: 36px 1fr auto; padding: 12px 14px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-media { display: none; }
}
.join .eyebrow.dark { background: var(--ink); color: var(--yellow); }

/* Danfo FM player (plays only on tap) */
.fm { display: inline-flex; align-items: center; gap: 12px; margin-top: 26px; padding: 8px 16px 8px 8px; border-radius: 999px; background: rgba(0,0,0,.5); border: 1px solid rgba(255,255,255,.14); backdrop-filter: blur(8px); }
.fm img { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; }
.fm-play { width: 44px; height: 44px; flex: none; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--yellow); color: var(--ink); cursor: pointer; }
.fm-play svg { width: 22px; height: 22px; fill: currentColor; }
.fm .i-pause, .fm.playing .i-play { display: none; }
.fm.playing .i-pause { display: block; }
.fm-text { display: flex; flex-direction: column; line-height: 1.2; }
.fm-station { font: 900 11px/1.2 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--yellow); }
.fm-track { font-weight: 800; font-size: 15px; color: #fff; }
.fm-bars { display: inline-flex; align-items: flex-end; gap: 3px; height: 18px; width: 22px; }
.fm-bars i { width: 3px; height: 4px; background: var(--yellow); border-radius: 2px; }
.fm.playing .fm-bars i { animation: fmbar .9s ease-in-out infinite; }
.fm.playing .fm-bars i:nth-child(2) { animation-delay: -.3s; }
.fm.playing .fm-bars i:nth-child(3) { animation-delay: -.6s; }
.fm.playing .fm-bars i:nth-child(4) { animation-delay: -.15s; }
@keyframes fmbar { 0%, 100% { height: 4px; } 50% { height: 18px; } }
@media (prefers-reduced-motion: reduce) { .fm.playing .fm-bars i { animation: none; height: 12px; } }
