/* ============================================================
   Chicken Road — independent fan hub
   Theme: "Neon Night Highway" — asphalt navy, amber headlights,
   a streak of hazard pink. One mood, everywhere.
   ============================================================ */

:root {
  /* palette */
  --bg: #0b0f1c;
  --bg-soft: #10162a;
  --surface: #151c33;
  --surface-2: #1a2340;
  --line: rgba(233, 240, 255, 0.10);
  --line-strong: rgba(233, 240, 255, 0.22);
  --text: #e9effc;
  --muted: #94a1c0;
  --accent: #ffc233;        /* amber headlights */
  --accent-soft: rgba(255, 194, 51, 0.14);
  --accent-2: #ff5c8a;      /* hazard pink */
  --accent-2-soft: rgba(255, 92, 138, 0.14);
  --ok: #3ddc97;
  --ok-soft: rgba(61, 220, 151, 0.14);

  /* type */
  --font-display: 'Bungee', 'Arial Black', sans-serif;
  --font-body: 'Space Grotesk', 'Segoe UI', system-ui, sans-serif;

  /* shape */
  --radius: 16px;
  --radius-sm: 10px;
  --glow: 0 0 26px rgba(255, 194, 51, 0.12);
  --glow-pink: 0 0 26px rgba(255, 92, 138, 0.14);

  --maxw: 1140px;
}

/* ---------- reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* subtle asphalt texture: faint lane dashes drifting down the page */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(90deg, transparent 0 46px, rgba(233,240,255,0.022) 46px 52px);
  z-index: 0;
}

img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0.01em;
  margin: 0 0 0.6em;
}

h1 { font-size: clamp(2rem, 5vw, 3.4rem); text-transform: uppercase; }
h2 { font-size: clamp(1.5rem, 3.4vw, 2.2rem); text-transform: uppercase; }
h3 { font-size: 1.15rem; }

p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.3em; }
li { margin-bottom: 0.4em; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; position: relative; z-index: 1; }

section { padding: 72px 0; }
section + section { border-top: 1px solid var(--line); }

.muted { color: var(--muted); }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 62ch; }

.section-head { max-width: 720px; margin-bottom: 40px; }
.section-head p { margin: 0; color: var(--muted); }

.kicker {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent-2);
  margin-bottom: 12px;
}

mark, .hl {
  background: none;
  color: var(--accent);
}

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 14px 26px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--accent);
  background: var(--accent);
  color: #161300;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
  box-shadow: var(--glow);
}
.btn:hover { transform: translateY(-2px); text-decoration: none; }
.btn:active { transform: translateY(0); }

.btn-ghost {
  background: transparent;
  color: var(--accent);
}
.btn-ghost:hover { background: var(--accent-soft); }

.btn-pink {
  background: var(--accent-2);
  border-color: var(--accent-2);
  color: #1c0410;
  box-shadow: var(--glow-pink);
}

.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }

/* ---------- news ticker ---------- */
.ticker {
  background: var(--accent);
  color: #161300;
  overflow: hidden;
  white-space: nowrap;
  border-bottom: 2px solid #d99f10;
  position: relative;
  z-index: 5;
}
.ticker-track {
  display: inline-block;
  padding: 8px 0;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  animation: ticker-move 38s linear infinite;
}
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-track span { margin-right: 42px; }
@keyframes ticker-move {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(11, 15, 28, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 20px;
  max-width: var(--maxw);
  margin: 0 auto;
}
.logo {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo:hover { text-decoration: none; }
.logo .egg { color: var(--accent); }

.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.92rem;
  padding: 8px 12px;
  border-radius: 8px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.main-nav a:hover { color: var(--text); background: var(--surface); text-decoration: none; }
.main-nav a.active { color: var(--accent); }

.nav-toggle {
  display: none;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  color: var(--text);
  font-size: 1.3rem;
  line-height: 1;
  padding: 8px 14px;
  border-radius: 8px;
  cursor: pointer;
}

/* ---------- hero ---------- */
.hero {
  padding: 84px 0 72px;
  background:
    radial-gradient(ellipse 60% 55% at 78% 18%, rgba(255, 194, 51, 0.10), transparent 65%),
    radial-gradient(ellipse 45% 50% at 12% 80%, rgba(255, 92, 138, 0.08), transparent 60%),
    var(--bg);
  border-bottom: 1px solid var(--line);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.hero h1 .lane-accent { color: var(--accent-2); }
.hero .lead { margin-bottom: 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* road sign chip */
.sign-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 6px 16px;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 22px;
}
.sign-chip b { color: var(--ok); }

/* ---------- run simulator panel ---------- */
.sim {
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--glow);
}
.sim-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 14px;
}
.sim-score {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--accent);
  line-height: 1;
}
.sim-lane-label { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); }

.sim-road {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--line);
  margin-bottom: 14px;
}
.sim-lane {
  height: 40px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  font-size: 0.78rem;
  color: var(--muted);
  border-bottom: 1px dashed rgba(233, 240, 255, 0.12);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  position: relative;
  transition: background 0.25s ease;
}
.sim-lane:last-child { border-bottom: none; }
.sim-lane .lane-x { position: absolute; right: 12px; opacity: 0.5; }
.sim-lane.done { background: rgba(61, 220, 151, 0.10); color: var(--text); }
.sim-lane.crash { background: var(--accent-2-soft); }
.sim-lane.crash .lane-x { opacity: 1; }

.sim-chicken {
  position: absolute;
  left: 10px;
  top: 0;
  font-size: 1.5rem;
  transition: transform 0.28s cubic-bezier(0.34, 1.4, 0.64, 1);
  z-index: 2;
  line-height: 40px;
}
.sim-traffic { position: absolute; right: -2rem; top: 0; font-size: 1.3rem; line-height: 40px; transition: right 0.6s ease; }

.sim-controls { display: flex; gap: 10px; flex-wrap: wrap; }
.sim-controls .btn { padding: 10px 18px; font-size: 0.8rem; }
.sim-log {
  margin-top: 12px;
  font-size: 0.85rem;
  color: var(--muted);
  min-height: 44px;
  max-height: 90px;
  overflow-y: auto;
  border-top: 1px solid var(--line);
  padding-top: 10px;
}
.sim-log div { margin-bottom: 2px; }
.sim-log .log-good { color: var(--ok); }
.sim-log .log-bad { color: var(--accent-2); }
.sim-log .log-bank { color: var(--accent); }

/* ---------- stats counters ---------- */
.stats-band {
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 44px 0;
}
.stat { text-align: center; }
.stat-num {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  color: var(--accent);
  line-height: 1.1;
}
.stat-num .suffix { font-size: 0.6em; color: var(--accent-2); }
.stat-label { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); margin-top: 6px; }

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

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.card:hover { transform: translateY(-4px); border-color: var(--line-strong); }
.card .card-emoji {
  font-size: 2rem;
  display: inline-block;
  background: var(--accent-soft);
  border-radius: 12px;
  padding: 10px 12px;
  margin-bottom: 16px;
}
.card p { color: var(--muted); margin: 0; }
.card h3 { margin-bottom: 8px; }
.card-pink .card-emoji { background: var(--accent-2-soft); }
.card-ok .card-emoji { background: var(--ok-soft); }

/* ---------- difficulty table ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line-strong); border-radius: var(--radius); }
table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
  background: var(--surface);
  font-size: 0.95rem;
}
th, td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); }
thead th {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.78rem;
  color: var(--accent);
  background: var(--bg-soft);
}
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: rgba(255, 255, 255, 0.03); }
td .dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 8px; }
.dot-easy { background: var(--ok); }
.dot-medium { background: var(--accent); }
.dot-hard { background: #ff8a4c; }
.dot-hardcore { background: var(--accent-2); }
td:first-child { font-weight: 700; }

.note {
  margin-top: 18px;
  font-size: 0.9rem;
  color: var(--muted);
  border-left: 3px solid var(--accent);
  padding: 10px 16px;
  background: var(--surface);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

/* ---------- steps / walkthrough ---------- */
.steps { counter-reset: step; }
.step {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 20px;
  padding: 26px 0;
  border-bottom: 1px dashed var(--line-strong);
}
.step:last-child { border-bottom: none; }
.step-num {
  counter-increment: step;
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--accent);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.step-num::before { content: counter(step, decimal-leading-zero); }

/* ---------- tips ---------- */
.tip-card h3::before { content: "💡 "; }

/* ---------- accordion ---------- */
.accordion { border: 1px solid var(--line-strong); border-radius: var(--radius); overflow: hidden; }
.acc-item { background: var(--surface); }
.acc-item + .acc-item { border-top: 1px solid var(--line); }
.acc-q {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.02rem;
  font-weight: 700;
  padding: 20px 56px 20px 24px;
  cursor: pointer;
  position: relative;
  line-height: 1.45;
}
.acc-q:hover { color: var(--accent); }
.acc-q::after {
  content: "+";
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  color: var(--accent-2);
  transition: transform 0.25s ease;
}
.acc-item.open .acc-q::after { content: "–"; }
.acc-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.acc-a-inner {
  padding: 0 24px 22px;
  color: var(--muted);
}
.acc-item.open .acc-a { max-height: 420px; }

/* ---------- quiz ---------- */
.quiz {
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 30px;
  max-width: 760px;
  box-shadow: var(--glow-pink);
}
.quiz-progress { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); margin-bottom: 8px; }
.quiz-question { font-weight: 700; font-size: 1.15rem; margin-bottom: 18px; }
.quiz-options { display: grid; gap: 10px; }
.quiz-opt {
  text-align: left;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: var(--radius-sm);
  padding: 13px 18px;
  font-family: var(--font-body);
  font-size: 0.98rem;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.quiz-opt:hover { border-color: var(--accent); }
.quiz-opt.correct { border-color: var(--ok); background: var(--ok-soft); }
.quiz-opt.wrong { border-color: var(--accent-2); background: var(--accent-2-soft); }
.quiz-feedback { margin-top: 14px; font-size: 0.95rem; color: var(--muted); min-height: 24px; }
.quiz-result { text-align: center; }
.quiz-result .big { font-family: var(--font-display); font-size: 2.4rem; color: var(--accent); display: block; margin-bottom: 8px; }

/* ---------- tip generator ---------- */
.tipgen {
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 30px;
  text-align: center;
  box-shadow: var(--glow);
}
.tipgen-output {
  font-size: 1.15rem;
  font-weight: 600;
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--text);
}
.tipgen-output .t-emoji { font-size: 1.6rem; margin-right: 12px; }

/* ---------- checklist ---------- */
.checklist { list-style: none; padding: 0; margin: 0 0 18px; }
.checklist li {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 13px 18px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: border-color 0.15s ease;
  user-select: none;
}
.checklist li:hover { border-color: var(--accent); }
.checklist li input { accent-color: var(--accent); width: 18px; height: 18px; cursor: pointer; }
.checklist li.checked { border-color: var(--ok); background: var(--ok-soft); }
.checklist-status { font-weight: 700; color: var(--accent); min-height: 26px; }

/* ---------- trust badges ---------- */
.badges { display: flex; flex-wrap: wrap; gap: 14px; }
.badge-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 10px 20px;
  font-size: 0.88rem;
  font-weight: 600;
}
.badge-item .b-ico { font-size: 1.1rem; }

/* ---------- CTA banner ---------- */
.cta-banner {
  background: linear-gradient(120deg, var(--accent-soft), var(--accent-2-soft));
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.cta-banner h2 { margin-bottom: 6px; }
.cta-banner p { margin: 0; color: var(--muted); }

/* ---------- glossary ---------- */
.glossary { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.glossary dt {
  font-weight: 700;
  color: var(--accent);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 4px;
}
.glossary dd { margin: 0 0 14px; color: var(--muted); font-size: 0.95rem; }
.glossary div {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
}

/* ---------- forms ---------- */
.form-grid { display: grid; gap: 18px; max-width: 620px; }
.form-field label { display: block; font-weight: 700; font-size: 0.88rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 8px; color: var(--muted); }
.form-field input, .form-field textarea, .form-field select {
  width: 100%;
  background: var(--bg-soft);
  border: 1px solid var(--line-strong);
  color: var(--text);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  font-family: var(--font-body);
  font-size: 1rem;
}
.form-field input:focus, .form-field textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.form-field .err { color: var(--accent-2); font-size: 0.85rem; margin-top: 6px; display: none; }
.form-field.invalid input, .form-field.invalid textarea { border-color: var(--accent-2); }
.form-field.invalid .err { display: block; }
.form-success {
  display: none;
  background: var(--ok-soft);
  border: 1px solid var(--ok);
  color: var(--text);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  margin-top: 18px;
}
.form-success.show { display: block; }

/* ---------- footer ---------- */
.site-footer {
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  padding: 56px 0 32px;
  margin-top: 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 36px;
}
.footer-brand p { color: var(--muted); font-size: 0.92rem; max-width: 34ch; }
.footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: 14px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { color: var(--muted); font-size: 0.92rem; }
.footer-col a:hover { color: var(--text); }
.footer-disclaimer {
  border-top: 1px solid var(--line);
  padding-top: 22px;
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.6;
}

/* ---------- cookie banner ---------- */
.cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  max-width: 560px;
  margin: 0 auto;
  background: var(--surface-2);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 22px 24px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5), var(--glow);
  z-index: 100;
  display: none;
}
.cookie-banner.show { display: block; }
.cookie-banner p { font-size: 0.9rem; color: var(--muted); margin-bottom: 14px; }
.cookie-banner a { color: var(--accent); }
.cookie-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie-actions .btn { padding: 9px 18px; font-size: 0.78rem; }

/* ---------- reveal animations ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.js .reveal.visible { opacity: 1; transform: none; }

/* ---------- page hero (subpages) ---------- */
.page-hero {
  padding: 64px 0 48px;
  border-bottom: 1px solid var(--line);
  background: radial-gradient(ellipse 50% 70% at 85% 10%, rgba(255, 194, 51, 0.08), transparent 60%), var(--bg);
}
.page-hero .lead { margin-bottom: 0; }
.crumbs { font-size: 0.82rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 16px; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--accent); }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .glossary { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  section { padding: 52px 0; }
  .nav-toggle { display: block; }
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--bg-soft);
    border-bottom: 1px solid var(--line-strong);
    padding: 12px 20px 18px;
    gap: 4px;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px 10px; }
  .header-inner { position: relative; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .step { grid-template-columns: 48px 1fr; gap: 14px; }
  .step-num { width: 48px; height: 48px; font-size: 1.1rem; }
  .cta-banner { padding: 30px; }
  .stats-grid { gap: 12px; }
  .sim-lane { font-size: 0.7rem; }
}