/* ============================================================
   Chicken Road Hub — Gaming Info Site
   Dark esports theme / amber accent
   ============================================================ */

:root {
  --bg: #0c0e13;
  --bg-soft: #12151d;
  --panel: #181c26;
  --panel-2: #1f2432;
  --line: #2a3040;
  --line-soft: #222836;
  --text: #e8eaf1;
  --muted: #9aa3b8;
  --dim: #6b7488;
  --accent: #ffb020;
  --accent-2: #ff6a3d;
  --accent-soft: rgba(255, 176, 32, 0.12);
  --green: #3ddc84;
  --red: #ff5470;
  --radius: 14px;
  --radius-sm: 10px;
  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --mono: "Cascadia Code", "Consolas", monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  width: min(1180px, 92%);
  margin: 0 auto;
}

.section { padding: 72px 0; }
.section-alt { background: var(--bg-soft); }

.section-head { max-width: 640px; margin-bottom: 40px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

.kicker {
  display: inline-block;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid rgba(255, 176, 32, 0.3);
  border-radius: 999px;
  padding: 4px 14px;
  margin-bottom: 14px;
}

h1 {
  font-size: clamp(2.2rem, 5.5vw, 3.6rem);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.6rem, 3.4vw, 2.3rem);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.02em;
}

h3 { font-size: 1.15rem; font-weight: 700; }

.lead {
  color: var(--muted);
  font-size: 1.08rem;
  margin-top: 14px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #14100a;
  box-shadow: 0 6px 24px rgba(255, 140, 32, 0.3);
}
.btn-primary:hover { box-shadow: 0 10px 30px rgba(255, 140, 32, 0.45); }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line);
}
.btn-ghost:hover { background: var(--panel); border-color: var(--dim); }

.btn-sm { padding: 8px 16px; font-size: 0.85rem; }

/* ---------- News ticker ---------- */
.ticker {
  background: var(--panel);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  white-space: nowrap;
  font-size: 0.85rem;
  padding: 9px 0;
}
.ticker-track {
  display: inline-block;
  animation: ticker 38s linear infinite;
}
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-item {
  display: inline-block;
  padding: 0 30px;
  color: var(--muted);
}
.ticker-item b { color: var(--accent); font-weight: 700; }
@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(12, 14, 19, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 66px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  color: var(--text);
}
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-radius: 10px;
}
.brand span.accent { color: var(--accent); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}
.nav-links a {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.93rem;
  padding: 8px 14px;
  border-radius: 8px;
}
.nav-links a:hover { color: var(--text); background: var(--panel); text-decoration: none; }
.nav-links a.active { color: var(--accent); background: var(--accent-soft); }

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

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 90px 0 80px;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(600px 340px at 15% 10%, rgba(255, 176, 32, 0.14), transparent 70%),
    radial-gradient(700px 400px at 85% 90%, rgba(255, 106, 61, 0.12), transparent 70%);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--green);
  background: rgba(61, 220, 132, 0.1);
  border: 1px solid rgba(61, 220, 132, 0.35);
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.hero p.lead { font-size: 1.15rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero-note {
  margin-top: 18px;
  font-size: 0.82rem;
  color: var(--dim);
  font-family: var(--mono);
}

/* Hero side panel */
.hero-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}
.hero-card h3 { margin-bottom: 14px; font-size: 1rem; }
.hero-card h3 span { color: var(--dim); font-weight: 500; }
.match-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 0.9rem;
}
.match-row:last-child { border-bottom: none; }
.match-teams { color: var(--text); font-weight: 600; }
.match-meta { color: var(--dim); font-family: var(--mono); font-size: 0.75rem; }
.live-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red);
  margin-right: 6px;
  animation: pulse 1.4s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* ---------- Stat strip ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 40px 0;
}
.stat {
  text-align: center;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 12px;
}
.stat-num {
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
  font-family: var(--mono);
}
.stat-label {
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

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

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  transition: transform 0.18s ease, border-color 0.18s ease;
}
.card:hover { transform: translateY(-4px); border-color: var(--dim); }
.card .icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  font-size: 1.35rem;
  background: var(--accent-soft);
  border-radius: 12px;
  margin-bottom: 16px;
}
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 0.93rem; }
.card .more {
  display: inline-block;
  margin-top: 14px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent);
}

/* ---------- Game cards ---------- */
.game-card {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.18s ease, border-color 0.18s ease;
}
.game-card:hover { transform: translateY(-5px); border-color: var(--accent); }
.game-art {
  height: 150px;
  display: grid;
  place-items: center;
  font-size: 3.4rem;
  background: linear-gradient(135deg, var(--panel-2), var(--bg-soft));
  border-bottom: 1px solid var(--line-soft);
}
.game-body { padding: 20px 22px 24px; }
.game-tags { display: flex; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }
.tag {
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--line);
  padding: 3px 9px;
  border-radius: 999px;
}
.tag.hot { color: var(--red); border-color: rgba(255, 84, 112, 0.5); background: rgba(255, 84, 112, 0.08); }
.tag.new { color: var(--green); border-color: rgba(61, 220, 132, 0.5); background: rgba(61, 220, 132, 0.08); }
.tag.legend { color: var(--accent); border-color: rgba(255, 176, 32, 0.5); background: var(--accent-soft); }
.game-card h3 { font-size: 1.2rem; }
.game-card .desc { color: var(--muted); font-size: 0.9rem; margin-top: 6px; }
.game-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 16px;
  font-size: 0.8rem;
  color: var(--dim);
  font-family: var(--mono);
}
.game-actions { margin-top: 16px; }

/* ---------- News feed ---------- */
.news-item {
  display: flex;
  gap: 18px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line-soft);
}
.news-item:last-child { border-bottom: none; }
.news-time {
  flex-shrink: 0;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--dim);
  padding-top: 4px;
  min-width: 120px;
}
.news-body h3 { font-size: 1.02rem; }
.news-body p { color: var(--muted); font-size: 0.9rem; margin-top: 4px; }

/* ---------- Quiz ---------- */
.quiz-box {
  max-width: 620px;
  margin: 0 auto;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
}
.quiz-progress {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--dim);
  margin-bottom: 10px;
  letter-spacing: 0.1em;
}
.quiz-question { font-size: 1.25rem; font-weight: 700; margin-bottom: 22px; }
.quiz-options { display: grid; gap: 10px; }
.quiz-options button {
  background: var(--panel-2);
  border: 1px solid var(--line);
  color: var(--text);
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 13px 18px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.quiz-options button:hover { border-color: var(--accent); background: var(--accent-soft); }
.quiz-options button.correct { border-color: var(--green); background: rgba(61, 220, 132, 0.12); }
.quiz-options button.wrong { border-color: var(--red); background: rgba(255, 84, 112, 0.12); }
.quiz-result-title { font-size: 1.6rem; font-weight: 800; color: var(--accent); margin-bottom: 10px; }
.quiz-result p { color: var(--muted); }
.quiz-restart {
  margin-top: 22px;
  background: none;
  border: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--font);
  font-weight: 600;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.quiz-restart:hover { color: var(--text); border-color: var(--dim); }

/* ---------- FAQ ---------- */
.faq-item {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  overflow: hidden;
}
.faq-q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  background: none;
  border: none;
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 700;
  text-align: left;
  padding: 18px 22px;
  cursor: pointer;
}
.faq-q .chev { color: var(--accent); transition: transform 0.2s; flex-shrink: 0; }
.faq-item.open .chev { transform: rotate(180deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}
.faq-a p { color: var(--muted); font-size: 0.92rem; padding: 0 22px 18px; }
.faq-item.open .faq-a { max-height: 300px; }

/* ---------- CTA banner ---------- */
.cta-banner {
  position: relative;
  background: linear-gradient(135deg, rgba(255, 176, 32, 0.14), rgba(255, 106, 61, 0.1)), var(--panel);
  border: 1px solid rgba(255, 176, 32, 0.3);
  border-radius: var(--radius);
  padding: 46px 40px;
  text-align: center;
  overflow: hidden;
}
.cta-banner h2 { margin-bottom: 10px; }
.cta-banner p { color: var(--muted); max-width: 560px; margin: 0 auto 26px; }

/* ---------- Page hero (subpages) ---------- */
.page-hero {
  padding: 64px 0 44px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(500px 260px at 80% 0%, rgba(255, 176, 32, 0.1), transparent 70%);
}
.breadcrumb {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--dim);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
input, textarea, select {
  width: 100%;
  background: var(--panel);
  border: 1px solid var(--line);
  color: var(--text);
  font-family: var(--font);
  font-size: 0.95rem;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color 0.15s;
}
input:focus, textarea:focus, select:focus { border-color: var(--accent); }
textarea { resize: vertical; min-height: 130px; }
.form-status {
  margin-top: 16px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--green);
  display: none;
}
.form-status.show { display: block; }

/* ---------- Tables (guides) ---------- */
.table-wrap {
  overflow-x: auto;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
th {
  text-align: left;
  font-family: var(--mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--dim);
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}
td { padding: 14px 18px; border-bottom: 1px solid var(--line-soft); color: var(--muted); }
tr:last-child td { border-bottom: none; }
td b { color: var(--text); }

/* ---------- Trust badges ---------- */
.trust {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}
.trust-badge {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--muted);
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 8px 16px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.trust-badge b { color: var(--green); }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
  padding: 56px 0 30px;
  margin-top: 72px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 40px;
}
.footer-grid h4 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--dim);
  margin-bottom: 14px;
}
.footer-grid ul { list-style: none; }
.footer-grid li { margin-bottom: 9px; }
.footer-grid a { color: var(--muted); font-size: 0.9rem; }
.footer-grid a:hover { color: var(--accent); }
.footer-about p { color: var(--muted); font-size: 0.9rem; margin-top: 12px; max-width: 300px; }
.footer-bottom {
  border-top: 1px solid var(--line-soft);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.8rem;
  color: var(--dim);
}

/* ---------- Cookie banner ---------- */
.cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: min(680px, 94%);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
  display: none;
  align-items: center;
  gap: 18px;
  z-index: 100;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}
.cookie-banner.show { display: flex; }
.cookie-banner p { font-size: 0.85rem; color: var(--muted); flex: 1; }
.cookie-actions { display: flex; gap: 10px; flex-shrink: 0; }

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.reveal.visible { opacity: 1; transform: none; }

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

@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 66px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 12px 4%;
    gap: 2px;
  }
  .nav-links.open { display: flex; }
  .grid-3, .grid-2, .grid-4 { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .news-item { flex-direction: column; gap: 6px; }
  .cookie-banner { flex-direction: column; }
  .section { padding: 52px 0; }
}