/* =========================================================
   NOVA SIMRACING — Stylesheet
   Paleta baseada no logo: fundo grafite + LEDs (verde, amarelo, vermelho, azul)
   ========================================================= */
:root {
  --bg: #0b0e14;
  --bg-2: #10141c;
  --surface: #151a24;
  --surface-2: #1b2130;
  --border: rgba(255, 255, 255, 0.08);
  --text: #f0f3f8;
  --muted: #9aa3b5;

  --green: #22c55e;
  --yellow: #facc15;
  --red: #e10600;
  --blue: #38bdf8;

  --radius: 16px;
  --font-display: "Saira", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --container: 1200px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

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

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* ---------- Brand ---------- */
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand__icon { width: 40px; height: 40px; border-radius: 10px; box-shadow: 0 0 0 1px var(--border); }
.brand__text {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.brand__text b { font-weight: 800; font-size: 1.35rem; letter-spacing: -0.01em; margin-right: 2px; }

/* ---------- LEDs (marca registrada do logo) ---------- */
.leds { display: flex; gap: 5px; }
.leds i {
  width: 18px; height: 6px; border-radius: 2px;
  transform: skewX(-20deg);
  background: var(--green);
}
.leds i:nth-child(n+4) { background: var(--yellow); }
.leds i:nth-child(n+7) { background: var(--red); }
.leds i:nth-child(n+10) { background: var(--blue); }
.leds--lg { gap: 8px; margin: 18px 0 28px; }
.leds--lg i { width: 34px; height: 10px; border-radius: 3px; opacity: .15; animation: led 2.8s infinite; }
.leds--lg i:nth-child(1)  { animation-delay: 0s; }
.leds--lg i:nth-child(2)  { animation-delay: .08s; }
.leds--lg i:nth-child(3)  { animation-delay: .16s; }
.leds--lg i:nth-child(4)  { animation-delay: .24s; }
.leds--lg i:nth-child(5)  { animation-delay: .32s; }
.leds--lg i:nth-child(6)  { animation-delay: .40s; }
.leds--lg i:nth-child(7)  { animation-delay: .48s; }
.leds--lg i:nth-child(8)  { animation-delay: .56s; }
.leds--lg i:nth-child(9)  { animation-delay: .64s; }
.leds--lg i:nth-child(10) { animation-delay: .72s; }
.leds--lg i:nth-child(11) { animation-delay: .80s; }
.leds--lg i:nth-child(12) { animation-delay: .88s; }
@keyframes led {
  0%, 10% { opacity: .15; }
  20%, 70% { opacity: 1; box-shadow: 0 0 14px currentColor; }
  85%, 100% { opacity: .15; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 26px;
  font-family: var(--font-display);
  font-weight: 700; font-style: italic;
  text-transform: uppercase; letter-spacing: .06em; font-size: .95rem;
  border-radius: 10px;
  transition: transform .2s, box-shadow .2s, background .2s, border-color .2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn--sm { padding: 10px 18px; font-size: .8rem; }
.btn--primary { background: var(--red); color: #fff; box-shadow: 0 8px 24px -8px rgba(225, 6, 0, .6); }
.btn--primary:hover { box-shadow: 0 12px 30px -6px rgba(225, 6, 0, .8); background: #ff1a10; }
.btn--ghost { border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.03); }
.btn--ghost:hover { border-color: var(--blue); color: var(--blue); }
.btn--discord { background: #5865f2; color: #fff; display: inline-flex; align-items: center; justify-content: center; gap: 10px; font-weight: 600; }
.btn--discord:hover { background: #4752c4; box-shadow: 0 12px 30px -8px rgba(88,101,242,.7); }
.btn--google { background: #ffffff; color: #1f2937; display: inline-flex; align-items: center; justify-content: center; gap: 10px; font-weight: 600; border: 1px solid #d1d5db; }
.btn--google:hover { background: #f3f4f6; color: #111827; box-shadow: 0 12px 30px -8px rgba(255,255,255,.3); }

/* ---------- Pilot Auth & Profile Modals ---------- */
.pilot-auth-box { max-width: 440px; padding: 36px 30px; text-align: center; }
.pilot-auth__head { margin-bottom: 24px; }
.pilot-auth__logo { width: 56px; height: 56px; margin: 0 auto 12px; }
.pilot-auth__head h2 { font-family: var(--font-display); font-style: italic; font-weight: 800; font-size: 1.75rem; margin-bottom: 8px; }
.pilot-auth__reason { font-size: 0.9rem; color: var(--muted); line-height: 1.45; }
.pilot-auth__buttons { display: flex; flex-direction: column; gap: 12px; margin-bottom: 20px; }
.pilot-auth__divider { position: relative; text-align: center; margin: 16px 0; }
.pilot-auth__divider::before { content: ""; position: absolute; left: 0; top: 50%; width: 100%; height: 1px; background: var(--border); }
.pilot-auth__divider span { position: relative; background: var(--surface); padding: 0 12px; color: var(--muted); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; }

.pilot-profile-box { max-width: 600px; padding: 32px 28px; }
.pilot-profile__head { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; padding-bottom: 18px; border-bottom: 1px solid var(--border); }
.pilot-profile__avatar { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; border: 2px solid var(--blue); }
.pilot-profile__head h2 { font-family: var(--font-display); font-size: 1.45rem; font-weight: 800; margin: 0 0 4px; }
.btn[aria-disabled="true"] { opacity: .45; pointer-events: none; }

.link { color: var(--blue); font-weight: 600; font-size: .9rem; display: inline-block; margin-top: 12px; }
.link:hover { text-decoration: underline; }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background .3s, backdrop-filter .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
.header.scrolled {
  background: rgba(11, 14, 20, .85);
  backdrop-filter: blur(14px);
  border-color: var(--border);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.nav { display: flex; align-items: center; gap: 30px; }
.nav a:not(.btn) {
  font-size: .92rem; font-weight: 500; color: var(--muted);
  position: relative; transition: color .2s;
}
.nav a:not(.btn):hover, .nav a.active { color: var(--text); }
.nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0;
  background: linear-gradient(90deg, var(--green), var(--yellow), var(--red), var(--blue));
  transition: width .3s;
}
.nav a:not(.btn):hover::after, .nav a.active::after { width: 100%; }

.burger { display: none; width: 40px; height: 40px; flex-direction: column; justify-content: center; gap: 6px; padding: 8px; }
.burger span { height: 2px; background: var(--text); border-radius: 2px; transition: .3s; }
.burger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 130px 0 60px; overflow: hidden;
}
.hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero__streaks { position: absolute; top: 0; bottom: 0; width: 55%; opacity: .9; }
.hero__streaks--red {
  left: 0;
  background:
    radial-gradient(ellipse 60% 40% at 0% 50%, rgba(225, 6, 0, .35), transparent 70%),
    repeating-linear-gradient(172deg, transparent 0 38px, rgba(225, 6, 0, .18) 39px 40px, transparent 41px 90px);
  mask-image: linear-gradient(90deg, #000 0%, transparent 85%);
  animation: streakL 6s ease-in-out infinite alternate;
}
.hero__streaks--blue {
  right: 0;
  background:
    radial-gradient(ellipse 60% 40% at 100% 50%, rgba(56, 189, 248, .30), transparent 70%),
    repeating-linear-gradient(8deg, transparent 0 44px, rgba(56, 189, 248, .16) 45px 46px, transparent 47px 100px);
  mask-image: linear-gradient(270deg, #000 0%, transparent 85%);
  animation: streakR 6s ease-in-out infinite alternate;
}
@keyframes streakL { from { transform: translateX(-20px); } to { transform: translateX(10px); } }
@keyframes streakR { from { transform: translateX(20px); } to { transform: translateX(-10px); } }
.hero__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, #000 20%, transparent 75%);
}
.hero__content { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; text-align: center; }

.tag {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 16px; border-radius: 999px;
  background: rgba(255,255,255,.05); border: 1px solid var(--border);
  font-size: .82rem; font-weight: 500; color: var(--muted);
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.dot--live { box-shadow: 0 0 0 0 rgba(34,197,94,.7); animation: pulse 1.8s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(34,197,94,0); } 100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); } }

.hero__title {
  font-family: var(--font-display); font-style: italic; line-height: .95;
  margin-top: 26px; display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 0 .3em;
}
.hero__nova { font-weight: 800; font-size: clamp(4rem, 13vw, 9.5rem); letter-spacing: -0.03em; }
.hero__sim { font-weight: 500; font-size: clamp(2.2rem, 7vw, 5.4rem); letter-spacing: .03em; }
.hero__subtitle {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.6rem, 4vw, 2.7rem);
  line-height: 1.15;
  letter-spacing: 0.02em;
  margin-top: 20px;
  color: #d1d8e6;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: baseline;
  gap: 0 0.35em;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.45);
}
.hero__sub-auto {
  font-weight: 500;
  letter-spacing: 0.03em;
}
.hero__sub-inova {
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--text);
}
.hero__sub-nova {
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #ffffff;
  text-shadow: 0 0 25px rgba(255, 255, 255, 0.4);
}
.hero__actions { display: flex; gap: 14px; margin-top: 32px; flex-wrap: wrap; justify-content: center; }

/* Next race widget */
.next-race {
  margin-top: 52px; width: 100%; max-width: 920px;
  display: grid; grid-template-columns: 1fr auto auto; gap: 28px; align-items: center;
  padding: 22px 26px; text-align: left;
  background: linear-gradient(135deg, rgba(27,33,48,.85), rgba(21,26,36,.85));
  border: 1px solid var(--border); border-radius: var(--radius);
  backdrop-filter: blur(10px);
  position: relative; overflow: hidden;
}
.next-race::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
  background: linear-gradient(var(--green), var(--yellow), var(--red), var(--blue));
}
.next-race__label { font-size: .75rem; text-transform: uppercase; letter-spacing: .14em; color: var(--red); font-weight: 700; }
.next-race__title { font-family: var(--font-display); font-style: italic; font-weight: 700; font-size: 1.35rem; line-height: 1.2; margin: 4px 0; }
.next-race__meta { color: var(--muted); font-size: .9rem; }
.countdown { display: flex; gap: 10px; }
.countdown div {
  display: flex; flex-direction: column; align-items: center; min-width: 62px;
  padding: 10px 6px; border-radius: 10px; background: rgba(0,0,0,.35); border: 1px solid var(--border);
}
.countdown span { font-family: var(--font-display); font-weight: 700; font-size: 1.6rem; line-height: 1; font-variant-numeric: tabular-nums; }
.countdown small { font-size: .65rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-top: 4px; }



/* ---------- Sections ---------- */
.section { padding: 110px 0; }
.section--alt { background: var(--bg-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 48px; flex-wrap: wrap; }
.section__head--center { flex-direction: column; align-items: center; text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .18em; color: var(--red);
}
.eyebrow::before { content: ""; width: 22px; height: 4px; border-radius: 2px; transform: skewX(-20deg); background: currentColor; }
.section__title {
  font-family: var(--font-display); font-style: italic; font-weight: 800;
  font-size: clamp(2rem, 4.5vw, 3.2rem); line-height: 1.05; margin-top: 8px; letter-spacing: -0.01em;
}
.section__desc { color: var(--muted); max-width: 460px; }
.section__head--center .section__desc { max-width: 560px; margin-top: 12px; }

/* Filters / tabs */
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  padding: 9px 16px; border-radius: 999px; font-size: .85rem; font-weight: 600;
  border: 1px solid var(--border); color: var(--muted); background: var(--surface);
  transition: .2s;
}
.chip:hover { color: var(--text); border-color: rgba(255,255,255,.2); }
.chip.active { background: var(--text); color: var(--bg); border-color: var(--text); }

/* ---------- Races ---------- */
.races { display: grid; gap: 14px; }
.race {
  display: grid; grid-template-columns: 96px 1fr auto auto; gap: 24px; align-items: center;
  padding: 20px 24px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border);
  transition: transform .25s, border-color .25s, background .25s;
  position: relative; overflow: hidden;
}
.race::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--c, var(--red)); }
.race:hover { transform: translateX(6px); border-color: rgba(255,255,255,.16); background: var(--surface-2); }
.race__date { text-align: center; padding-right: 20px; border-right: 1px solid var(--border); }
.race__day { display: block; font-family: var(--font-display); font-weight: 800; font-style: italic; font-size: 2.2rem; line-height: 1; }
.race__month { font-size: .78rem; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); font-weight: 600; }
.race__champ { font-size: .75rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 700; color: var(--c, var(--red)); }
.race__title { font-family: var(--font-display); font-style: italic; font-weight: 700; font-size: 1.3rem; line-height: 1.2; margin: 2px 0 6px; }
.race__meta { display: flex; gap: 18px; flex-wrap: wrap; color: var(--muted); font-size: .86rem; }
.race__meta span { display: inline-flex; align-items: center; gap: 6px; }
.race__slots { text-align: right; min-width: 120px; }
.race__slots small { color: var(--muted); font-size: .78rem; display: block; margin-bottom: 6px; }
.bar { height: 6px; background: rgba(255,255,255,.08); border-radius: 4px; overflow: hidden; }
.bar > i { display: block; height: 100%; background: var(--c, var(--red)); border-radius: 4px; }
.empty { text-align: center; padding: 40px; color: var(--muted); border: 1px dashed var(--border); border-radius: var(--radius); }

/* ---------- Championships ---------- */
.champs { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 22px; }
.champ {
  border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .3s, box-shadow .3s, border-color .3s;
}
.champ:hover { transform: translateY(-6px); border-color: var(--c); box-shadow: 0 24px 50px -24px var(--c); }
.champ__cover {
  height: 150px; position: relative; display: flex; align-items: flex-end; padding: 18px;
  background:
    linear-gradient(180deg, transparent 20%, rgba(0,0,0,.6)),
    repeating-linear-gradient(135deg, rgba(255,255,255,.04) 0 2px, transparent 2px 12px),
    radial-gradient(circle at 80% 20%, var(--c), transparent 65%),
    var(--surface-2);
}
.champ__class {
  font-family: var(--font-display); font-style: italic; font-weight: 900; font-size: 3.4rem; line-height: .8;
  color: rgba(255,255,255,.95); letter-spacing: -0.02em; text-shadow: 0 4px 20px rgba(0,0,0,.4);
}
.champ__status {
  position: absolute; top: 14px; right: 14px; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em;
  padding: 5px 10px; border-radius: 999px; background: rgba(0,0,0,.55); backdrop-filter: blur(6px); display: inline-flex; align-items: center; gap: 6px;
}
.champ__status .dot { width: 6px; height: 6px; }
.champ__status--soon .dot { background: var(--yellow); }
.champ__status--def .dot { background: var(--blue); box-shadow: 0 0 8px var(--blue); }
.champ__status--def { border: 1px solid rgba(56, 189, 248, 0.35); }
.champ__body { padding: 20px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.champ__name { font-family: var(--font-display); font-style: italic; font-weight: 700; font-size: 1.3rem; line-height: 1.2; }
.champ__desc { color: var(--muted); font-size: .9rem; }
.champ__specs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--border); }
.champ__specs div small { display: block; font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.champ__specs div strong { font-size: .92rem; font-weight: 600; }
.champ__progress small { font-size: .78rem; color: var(--muted); display: flex; justify-content: space-between; margin-bottom: 6px; }
.champ .btn { width: 100%; margin-top: 6px; }
.champ .btn--outline { border: 1px solid var(--c); color: var(--c); background: transparent; }
.champ .btn--outline:hover { background: var(--c); color: var(--bg); }

/* ---------- Standings ---------- */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); }
.standings { width: 100%; border-collapse: collapse; min-width: 520px; }
.standings th {
  text-align: left; font-size: .72rem; text-transform: uppercase; letter-spacing: .14em; color: var(--muted);
  font-weight: 600; padding: 16px 20px; background: var(--surface-2); border-bottom: 1px solid var(--border);
}
.standings td { padding: 14px 20px; border-bottom: 1px solid var(--border); font-size: .95rem; }
.standings tr:last-child td { border-bottom: none; }
.standings tbody tr { transition: background .2s; }
.standings tbody tr:hover { background: rgba(255,255,255,.03); }
.standings .num { text-align: right; font-variant-numeric: tabular-nums; }
.standings td.num:last-child { font-family: var(--font-display); font-weight: 800; font-style: italic; font-size: 1.15rem; }
.pos {
  display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 8px;
  font-family: var(--font-display); font-weight: 800; font-style: italic; background: rgba(255,255,255,.06);
}
.pos--1 { background: var(--yellow); color: #1a1500; }
.pos--2 { background: #cbd5e1; color: #111; }
.pos--3 { background: #d97706; color: #1a0f00; }
.driver { display: flex; align-items: center; gap: 12px; font-weight: 600; }
.driver__num {
  font-family: var(--font-display); font-style: italic; font-weight: 800; font-size: .8rem;
  min-width: 34px; text-align: center; padding: 3px 6px; border-radius: 6px; background: var(--c, var(--red)); color: #fff;
}
.flag { font-size: 1.1rem; }
.muted { color: var(--muted); }

/* ---------- News ---------- */
.news { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.news-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column; cursor: pointer; transition: transform .3s, border-color .3s; text-align: left;
}
.news-card:hover { transform: translateY(-6px); border-color: rgba(255,255,255,.18); }
.news-card:hover .news-card__img::after { opacity: 1; }
.news-card--featured { grid-column: span 2; grid-row: span 2; }
.news-card__img {
  aspect-ratio: 16/9; position: relative; overflow: hidden;
  background:
    linear-gradient(180deg, transparent 30%, rgba(0,0,0,.7)),
    repeating-linear-gradient(100deg, transparent 0 30px, rgba(255,255,255,.04) 30px 32px),
    radial-gradient(circle at 20% 30%, var(--c), transparent 60%),
    radial-gradient(circle at 90% 90%, var(--c2, var(--blue)), transparent 55%),
    var(--surface-2);
  background-size: cover; background-position: center;
}
.news-card__img::after {
  content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, transparent 40%, rgba(255,255,255,.08), transparent 60%);
  opacity: 0; transition: opacity .3s;
}
.news-card__cat {
  position: absolute; left: 16px; top: 16px; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em;
  padding: 5px 10px; border-radius: 6px; background: var(--c); color: #0b0e14;
}
.news-card__body { padding: 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.news-card__date { font-size: .78rem; color: var(--muted); }
.news-card__title { font-family: var(--font-display); font-style: italic; font-weight: 700; font-size: 1.2rem; line-height: 1.25; }
.news-card--featured .news-card__title { font-size: 1.8rem; }
.news-card__excerpt { color: var(--muted); font-size: .92rem; }
.news-card__more { margin-top: auto; padding-top: 8px; color: var(--c); font-weight: 600; font-size: .88rem; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.step {
  padding: 28px 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border);
  position: relative; overflow: hidden; transition: border-color .3s, transform .3s;
}
.step:hover { border-color: var(--c); transform: translateY(-4px); }
.step::after { content: ""; position: absolute; left: 24px; right: 24px; top: 0; height: 3px; background: var(--c); border-radius: 0 0 3px 3px; }
.step__n { font-family: var(--font-display); font-style: italic; font-weight: 900; font-size: 3rem; line-height: 1; color: var(--c); opacity: .9; }
.step h3 { font-family: var(--font-display); font-style: italic; font-weight: 700; font-size: 1.2rem; margin: 14px 0 8px; }
.step p { color: var(--muted); font-size: .92rem; }

/* ---------- CTA ---------- */
.cta { padding: 90px 0; position: relative; overflow: hidden; }
.cta::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 40% 80% at 0% 50%, rgba(225,6,0,.25), transparent),
    radial-gradient(ellipse 40% 80% at 100% 50%, rgba(56,189,248,.22), transparent);
}
.cta__inner {
  position: relative; display: grid; grid-template-columns: auto 1fr auto; gap: 36px; align-items: center;
  padding: 44px; border-radius: 24px; background: rgba(21,26,36,.8); border: 1px solid var(--border); backdrop-filter: blur(10px);
}
.cta__logo { width: 96px; height: 96px; border-radius: 22px; box-shadow: 0 20px 40px -10px rgba(0,0,0,.6); }
.cta__text h2 { font-family: var(--font-display); font-style: italic; font-weight: 800; font-size: clamp(1.8rem, 3.5vw, 2.6rem); line-height: 1.1; }
.cta__text p { color: var(--muted); margin-top: 8px; max-width: 520px; }
.cta__actions { display: flex; flex-direction: column; gap: 12px; }

/* ---------- Footer ---------- */
.footer { background: #080a0f; border-top: 1px solid var(--border); padding-top: 70px; }
.footer__inner { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 50px; }
.footer__brand p { color: var(--muted); margin: 16px 0 20px; max-width: 320px; font-size: .92rem; }
.footer__col { display: flex; flex-direction: column; gap: 10px; }
.footer__col h4 { font-family: var(--font-display); font-style: italic; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; font-size: .9rem; margin-bottom: 6px; }
.footer__col a { color: var(--muted); font-size: .92rem; transition: color .2s; }
.footer__col a:hover { color: var(--text); }
.footer__bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 22px 24px; border-top: 1px solid var(--border); color: var(--muted); font-size: .82rem; }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 20px; visibility: hidden; opacity: 0; transition: .3s; }
.modal.open { visibility: visible; opacity: 1; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.75); backdrop-filter: blur(6px); }
.modal__box {
  position: relative; width: 100%; max-width: 720px; max-height: 88vh; overflow-y: auto;
  background: var(--surface); border: 1px solid var(--border); border-radius: 20px;
  transform: translateY(20px) scale(.98); transition: transform .3s;
}
.modal.open .modal__box { transform: none; }
.modal__close {
  position: absolute; top: 14px; right: 14px; z-index: 2; width: 38px; height: 38px; border-radius: 50%;
  background: rgba(0,0,0,.6); font-size: 1.5rem; line-height: 1; display: grid; place-items: center;
}
.modal__close:hover { background: var(--red); }
.modal .news-card__img { aspect-ratio: 21/9; }
.modal__body { padding: 28px 32px 34px; }
.modal__body h2 { font-family: var(--font-display); font-style: italic; font-weight: 800; font-size: 2rem; line-height: 1.15; margin: 6px 0 16px; }
.modal__body p { color: #c9d0dd; margin-bottom: 14px; }

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

/* ---------- Real Races & Broadcast Widget ---------- */
.real-races {
  margin-bottom: 34px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
}
.real-race-card {
  background: linear-gradient(135deg, rgba(27, 33, 48, 0.9), rgba(21, 26, 36, 0.95));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 24px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform .25s, border-color .25s;
}
.real-race-card:hover {
  transform: translateY(-3px);
  border-color: var(--c);
}
.real-race-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--c, var(--red));
}
.real-race-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.real-race-card__badge {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c, var(--red));
  background: rgba(255, 255, 255, 0.05);
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.real-race-card__date {
  font-size: 0.8rem;
  color: var(--muted);
}
.real-race-card__title {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 700;
  font-size: 1.25rem;
  line-height: 1.2;
  margin-top: 2px;
}
.real-race-card__track {
  color: #c0c8d6;
  font-size: 0.88rem;
  margin-top: 4px;
}
.real-race-card__info {
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 2px;
}
.real-race-card__countdown {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 14px;
  margin-top: 6px;
  flex-wrap: wrap;
}
.countdown-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-weight: 600;
}
.countdown-digits {
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.countdown-digits span {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  font-variant-numeric: tabular-nums;
  color: #ffffff;
}
.countdown-digits small {
  font-size: 0.7rem;
  color: var(--muted);
  margin-right: 4px;
  text-transform: uppercase;
}
.real-race-card__broadcast {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}
.broadcast-label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--c, var(--red));
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.broadcast-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.broadcast-chip {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 5px 11px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  cursor: pointer;
  transition: all .2s ease;
}
.broadcast-chip:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: var(--c, var(--blue));
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px -4px rgba(0, 0, 0, 0.5), 0 0 10px rgba(56, 189, 248, 0.15);
}
.broadcast-chip__icon {
  opacity: 0.6;
  flex-shrink: 0;
  transition: opacity .2s, transform .2s;
}
.broadcast-chip:hover .broadcast-chip__icon {
  opacity: 1;
  transform: translate(1px, -1px);
}

/* ---------- News extras ---------- */
.news__source { margin-top: 22px; color: var(--muted); font-size: .82rem; text-align: center; }
.link-btn { color: var(--blue); font-weight: 600; text-decoration: underline; font-size: inherit; }
.news-card__cat--nova { background: var(--text); }
.news-card--skeleton { cursor: default; pointer-events: none; }
.news-card--skeleton .news-card__img,
.news-card--skeleton i {
  background: linear-gradient(90deg, var(--surface-2) 25%, #232a3b 50%, var(--surface-2) 75%);
  background-size: 200% 100%; animation: shimmer 1.4s infinite;
}
.news-card--skeleton i { display: block; height: 14px; border-radius: 6px; }
.news-card--skeleton i:nth-child(2) { height: 22px; width: 85%; }
.news-card--skeleton i:nth-child(3) { width: 60%; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- Paddock Chat ---------- */
.chat-box {
  max-width: 980px; margin: 0 auto;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 20px 40px -15px rgba(0,0,0,.5);
  display: flex; flex-direction: column;
}
.chat-header {
  display: flex; justify-content: space-between; align-items: center; gap: 14px;
  padding: 14px 22px; background: rgba(255,255,255,.02);
  border-bottom: 1px solid var(--border); flex-wrap: wrap;
}
.chat-header__info { display: flex; align-items: center; gap: 10px; }
.chat-header__dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--green); box-shadow: 0 0 10px var(--green);
  display: inline-block;
}
.chat-header__info strong {
  font-family: var(--font-display); font-style: italic; font-weight: 800;
  font-size: 1.05rem; letter-spacing: .04em; color: var(--text);
}
.chat-header__auth { display: flex; align-items: center; gap: 10px; }

.chat-user-pill {
  display: inline-flex; align-items: center; gap: 10px; padding: 4px 10px 4px 6px;
  background: rgba(88,101,242,.12); border: 1px solid rgba(88,101,242,.35);
  border-radius: 999px;
}
.chat-user-pill--warning {
  background: rgba(234,179,8,.12); border-color: rgba(234,179,8,.35);
}
.chat-user-pill__avatar {
  width: 28px; height: 28px; border-radius: 50%; object-fit: cover;
}
.chat-user-pill__info { display: flex; align-items: baseline; gap: 6px; }
.chat-user-pill__info strong { font-size: .84rem; font-weight: 700; color: #fff; }
.chat-user-pill__badge {
  font-size: .64rem; font-weight: 800; padding: 1px 5px; border-radius: 4px;
  background: rgba(56,189,248,.2); color: var(--blue); letter-spacing: .05em;
}
.chat-user-pill__logout {
  background: transparent; border: none; color: var(--muted); cursor: pointer;
  padding: 2px 6px; font-size: .95rem; line-height: 1; border-radius: 4px;
  transition: color .2s;
}
.chat-user-pill__logout:hover { color: var(--red); }

.chat-messages {
  height: 380px; overflow-y: auto; padding: 20px 22px;
  display: flex; flex-direction: column; gap: 14px;
  scrollbar-width: thin; scrollbar-color: var(--border) transparent;
}
.chat-messages::-webkit-scrollbar { width: 6px; }
.chat-messages::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

.chat-msg {
  display: flex; gap: 12px; max-width: 82%; align-items: flex-start;
}
.chat-msg--me {
  align-self: flex-end; flex-direction: row-reverse; text-align: right;
}
.chat-msg__avatar {
  width: 36px; height: 36px; border-radius: 10px; flex-shrink: 0;
  object-fit: cover; background: var(--surface-2); border: 1px solid var(--border);
}
.chat-msg__bubble {
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: 12px; padding: 10px 14px; min-width: 140px;
}
.chat-msg--me .chat-msg__bubble {
  background: rgba(56,189,248,.08); border-color: rgba(56,189,248,.28);
}
.chat-msg--sys .chat-msg__bubble {
  background: rgba(225,6,0,.06); border-color: rgba(225,6,0,.25);
}
.chat-msg__meta {
  display: flex; align-items: center; gap: 8px; font-size: .8rem;
  margin-bottom: 4px; flex-wrap: wrap;
}
.chat-msg--me .chat-msg__meta { justify-content: flex-end; }
.chat-msg__meta strong { color: var(--text); font-weight: 700; }
.chat-msg__meta time { color: var(--muted); font-size: .72rem; }
.msg-role {
  font-size: .64rem; font-weight: 800; letter-spacing: .06em;
  padding: 1px 6px; border-radius: 4px;
  background: rgba(56,189,248,.15); color: var(--blue);
}
.msg-role--sys {
  background: rgba(225,6,0,.2); color: #ff6b63;
}
.chat-msg__text {
  font-size: .92rem; line-height: 1.45; word-break: break-word; color: rgba(255,255,255,.92);
}

.chat-notice {
  background: rgba(234,179,8,.08); border-top: 1px solid rgba(234,179,8,.2);
  border-bottom: 1px solid rgba(234,179,8,.2); padding: 14px 22px;
}
.notice-box { display: flex; flex-direction: column; gap: 10px; width: 100%; font-size: .9rem; }
.notice-box p { color: rgba(255,255,255,.9); line-height: 1.4; margin: 0; }
.notice-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

.chat-input-bar {
  display: flex; gap: 10px; padding: 14px 20px;
  background: rgba(0,0,0,.25); border-top: 1px solid var(--border);
}
.chat-input-bar input {
  flex: 1; padding: 11px 16px; border-radius: 10px;
  background: var(--bg); border: 1px solid var(--border);
  color: var(--text); font: inherit; font-size: .95rem;
  transition: border-color .2s, box-shadow .2s;
}
.chat-input-bar input:focus {
  outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(56,189,248,.15);
}
.chat-input-bar input:disabled {
  opacity: .55; cursor: not-allowed;
}

/* ---------- Forms ---------- */
.form { display: flex; flex-direction: column; gap: 16px; }
.form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field--full { grid-column: 1 / -1; }
.field > span { font-size: .78rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.field input, .field select, .field textarea {
  width: 100%; padding: 11px 14px; border-radius: 10px;
  background: var(--bg); border: 1px solid var(--border); color: var(--text);
  font: inherit; font-size: .95rem; transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 80px; line-height: 1.5; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(56,189,248,.15);
}
.field input[type="datetime-local"], .field input[type="date"] { color-scheme: dark; }
.field__pass { position: relative; }
.field__pass input { padding-right: 46px; }
.field__eye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; border-radius: 8px; opacity: .7; }
.field__eye:hover { opacity: 1; background: rgba(255,255,255,.06); }
.form__error { color: #ff6b63; font-size: .88rem; min-height: 1.2em; margin: -4px 0; }
.form__hint { color: var(--muted); font-size: .86rem; }
.form__hint code { background: var(--bg); padding: 2px 6px; border-radius: 4px; font-size: .82rem; }
.btn--block { width: 100%; }
.btn--danger { background: transparent; border: 1px solid rgba(225,6,0,.5); color: #ff6b63; }
.btn--danger:hover { background: var(--red); color: #fff; border-color: var(--red); }

/* ---------- Login ---------- */
.login { max-width: 420px; padding: 36px 32px 28px; overflow: hidden; }
.login__head { text-align: center; margin-bottom: 24px; }
.login__logo { width: 64px; height: 64px; border-radius: 16px; margin: 0 auto 16px; }
.login__head h2 { font-family: var(--font-display); font-style: italic; font-weight: 800; font-size: 1.6rem; line-height: 1.2; }
.login__head p { color: var(--muted); font-size: .9rem; margin-top: 6px; }
.login__leds { justify-content: center; margin-top: 24px; }
.login__leds i { width: 14px; height: 5px; }
.is-admin #adminQuickBtn { display: inline-flex !important; background: rgba(250, 204, 21, 0.14); border-color: rgba(250, 204, 21, 0.5); color: var(--yellow); font-weight: 700; }
.is-admin #adminQuickBtn:hover { background: var(--yellow); color: #0b0e14; }

/* ---------- Admin panel ---------- */
.admin { position: fixed; inset: 0; z-index: 150; visibility: hidden; }
.admin.open { visibility: visible; }
.admin__backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.6); backdrop-filter: blur(4px); opacity: 0; transition: opacity .3s; }
.admin.open .admin__backdrop { opacity: 1; }
.admin__panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(1080px, 100%);
  background: var(--bg-2); border-left: 1px solid var(--border);
  display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform .35s ease;
}
.admin.open .admin__panel { transform: none; }
.admin__head {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 18px 26px; border-bottom: 1px solid var(--border); background: var(--surface);
}
.admin__title { display: flex; align-items: center; gap: 14px; }
.admin__title img { width: 42px; height: 42px; border-radius: 10px; }
.admin__title strong { display: block; font-family: var(--font-display); font-style: italic; font-weight: 800; font-size: 1.2rem; line-height: 1.2; }
.admin__title small { color: var(--green); font-size: .8rem; font-weight: 600; }
.admin__head-actions { display: flex; align-items: center; gap: 10px; }
.admin__x { width: 40px; height: 40px; border-radius: 50%; font-size: 1.6rem; line-height: 1; background: rgba(255,255,255,.05); }
.admin__x:hover { background: var(--red); }
.admin__tabs { display: flex; gap: 4px; padding: 0 20px; border-bottom: 1px solid var(--border); overflow-x: auto; background: var(--surface); }
.admin__tabs button {
  padding: 14px 16px; font-weight: 600; font-size: .9rem; color: var(--muted); white-space: nowrap;
  border-bottom: 3px solid transparent; transition: color .2s, border-color .2s;
}
.admin__tabs button:hover { color: var(--text); }
.admin__tabs button.active { color: var(--text); border-color: var(--red); }
.admin__content { flex: 1; overflow-y: auto; padding: 24px 26px 40px; }

.ed { display: grid; grid-template-columns: 300px 1fr; gap: 24px; align-items: start; }
.ed__list { display: flex; flex-direction: column; gap: 12px; position: sticky; top: 0; }
.ed__list ul { display: flex; flex-direction: column; gap: 6px; max-height: calc(100vh - 300px); overflow-y: auto; padding-right: 4px; }
.ed__item {
  width: 100%; text-align: left; padding: 11px 14px 11px 16px; border-radius: 10px;
  background: var(--surface); border: 1px solid var(--border); position: relative; overflow: hidden;
  display: flex; flex-direction: column; gap: 2px; transition: border-color .2s, background .2s;
}
.ed__item::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--c); }
.ed__item strong { font-size: .9rem; font-weight: 600; line-height: 1.3; }
.ed__item small { font-size: .76rem; color: var(--muted); }
.ed__item:hover { border-color: rgba(255,255,255,.18); }
.ed__item.active { background: var(--surface-2); border-color: var(--c); }
.ed__empty { padding: 10px; font-size: .88rem; }
.ed__form, .card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.ed__form h3, .card h3 { font-family: var(--font-display); font-style: italic; font-weight: 700; font-size: 1.3rem; }
.ed__actions { display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
.settings { display: grid; gap: 20px; max-width: 760px; }
.card { display: flex; flex-direction: column; gap: 16px; }
.settings__btns { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 300; transform: translate(-50%, 30px);
  padding: 13px 22px; border-radius: 12px; font-weight: 600; font-size: .92rem;
  background: var(--surface-2); border: 1px solid var(--border); border-left: 4px solid var(--green);
  box-shadow: 0 20px 40px -10px rgba(0,0,0,.6); opacity: 0; pointer-events: none; transition: .3s;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast--error { border-left-color: var(--red); }

/* ---------- Signup Modal & Grid Entry ---------- */
.signup-modal { max-width: 680px; padding: 32px 30px; }
.signup-modal__head { text-align: center; margin-bottom: 20px; }
.signup-modal__head h2 { font-family: var(--font-display); font-style: italic; font-weight: 800; font-size: 1.85rem; margin: 8px 0 6px; }
.signup-modal__head p { color: var(--muted); font-size: .92rem; }
.signup-modal__badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 700;
  color: var(--blue); background: rgba(56,189,248,.1); border: 1px solid rgba(56,189,248,.3);
  padding: 3px 10px; border-radius: 99px;
}
.signup-number-badge {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 44px; height: 38px; padding: 0 10px; border-radius: 8px;
  font-family: var(--font-display); font-weight: 800; font-style: italic; font-size: 1.15rem;
  background: #0f172a; border: 1px solid var(--blue); color: var(--blue);
  box-shadow: 0 0 12px rgba(56,189,248,.2);
}
.steam-guide {
  margin-top: 10px; padding: 12px 14px; border-radius: 8px;
  background: rgba(15,23,42,.8); border: 1px solid rgba(56,189,248,.25);
  font-size: .84rem; color: #cbd5e1; line-height: 1.5;
}
.steam-guide ol { padding-left: 20px; margin: 6px 0 0; }
.steam-guide li { margin-bottom: 4px; }
.steam-guide a { color: var(--blue); text-decoration: underline; }
.signup-success { text-align: center; padding: 10px 0; }
.signup-success__icon { font-size: 3rem; margin-bottom: 8px; }
.signup-success h3 { font-family: var(--font-display); font-style: italic; font-size: 1.7rem; font-weight: 800; color: var(--text); margin-bottom: 6px; }
.signup-success p { color: var(--muted); margin-bottom: 18px; }
.signup-success__card {
  text-align: left; background: var(--bg); border: 1px solid var(--border);
  border-radius: 12px; padding: 16px 20px; margin-bottom: 22px;
  display: flex; flex-direction: column; gap: 10px;
}
.signup-success__row { display: flex; justify-content: space-between; align-items: center; font-size: .92rem; border-bottom: 1px solid rgba(255,255,255,.05); padding-bottom: 8px; }
.signup-success__row:last-child { border-bottom: none; padding-bottom: 0; }
.signup-success__row span { color: var(--muted); }
.signup-success__row strong { color: var(--text); }
.signup-success__row code { font-family: monospace; color: var(--blue); background: rgba(56,189,248,.1); padding: 2px 6px; border-radius: 4px; }
.signup-success__actions { display: flex; gap: 12px; justify-content: center; }

/* Admin Entry List Generator & Grid Management */
.entry-generator-box {
  background: #090d14; border: 1px solid var(--border); border-radius: 12px;
  padding: 18px; margin-top: 14px;
}
.entry-code-pre {
  background: #04060a; border: 1px solid rgba(56,189,248,.2); border-radius: 8px;
  padding: 14px; font-family: 'Consolas', 'Courier New', monospace; font-size: .84rem;
  color: #38bdf8; max-height: 280px; overflow-y: auto; white-space: pre-wrap; line-height: 1.45;
}
.entry-stats-bar {
  display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 16px;
}
.entry-stat-card {
  flex: 1; min-width: 140px; background: var(--surface); border: 1px solid var(--border);
  border-radius: 10px; padding: 12px 14px; display: flex; flex-direction: column; gap: 4px;
}
.entry-stat-card small { color: var(--muted); font-size: .75rem; text-transform: uppercase; font-weight: 600; letter-spacing: .05em; }
.entry-stat-card strong { font-family: var(--font-display); font-size: 1.4rem; font-weight: 800; color: var(--text); }
.driver-entry-item {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 14px; border-bottom: 1px solid var(--border);
  transition: background .2s;
}
.driver-entry-item:hover { background: rgba(255,255,255,.02); }
.driver-entry-item:last-child { border-bottom: none; }
.driver-entry-info { display: flex; align-items: center; gap: 12px; flex: 1; }
.driver-entry-num {
  font-family: var(--font-display); font-weight: 800; font-size: 1rem; color: var(--blue);
  background: rgba(56,189,248,.1); border: 1px solid rgba(56,189,248,.25);
  padding: 2px 8px; border-radius: 6px; min-width: 38px; text-align: center;
}
.driver-entry-meta { display: flex; flex-direction: column; gap: 2px; }
.driver-entry-meta strong { font-size: .95rem; color: var(--text); }
.driver-entry-meta small { color: var(--muted); font-size: .8rem; }
.driver-entry-actions { display: flex; gap: 8px; }

@media (max-width: 860px) {
  .ed { grid-template-columns: 1fr; }
  .ed__list { position: static; }
  .ed__list ul { max-height: 220px; }
  .admin__content { padding: 18px 16px 40px; }
  .admin__head { padding: 14px 16px; }
  .admin__title small { display: none; }
}
@media (max-width: 560px) {
  .form__grid { grid-template-columns: 1fr; }
  .login { padding: 30px 20px 22px; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
  .news { grid-template-columns: repeat(2, 1fr); }
  .news-card--featured { grid-column: span 2; grid-row: auto; }
  .next-race { grid-template-columns: 1fr; text-align: center; }
  .next-race__info, .countdown { justify-self: center; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .cta__inner { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .cta__actions { flex-direction: row; flex-wrap: wrap; justify-content: center; }
}

@media (max-width: 900px) {
  .burger { display: flex; }
  .nav {
    position: fixed; top: 76px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(11,14,20,.97); backdrop-filter: blur(14px); border-bottom: 1px solid var(--border);
    padding: 10px 24px 24px; transform: translateY(-120%); transition: transform .35s; z-index: -1;
  }
  .nav.open { transform: none; }
  .nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--border); font-size: 1rem; }
  .nav a:not(.btn)::after { display: none; }
  .nav__cta { margin-top: 18px; }
  .race { grid-template-columns: 76px 1fr; }
  .race__slots, .race .btn { grid-column: 1 / -1; }
  .race__slots { text-align: left; }

}

@media (max-width: 640px) {
  .section { padding: 80px 0; }
  .steps, .news { grid-template-columns: 1fr; }
  .news-card--featured { grid-column: auto; }
  .news-card--featured .news-card__title { font-size: 1.4rem; }
  .hide-sm { display: none; }
  .leds--lg i { width: 20px; height: 7px; }
  .countdown div { min-width: 54px; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
  .cta__inner { padding: 30px 22px; }
  .modal__body { padding: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Downloads do Campeonato & Corridas ---------- */
.nav__link-mods {
  display: inline-flex !important;
  align-items: center;
  gap: 5px;
  color: #38bdf8 !important;
}
.nav__link-mods:hover {
  color: #7dd3fc !important;
  text-shadow: 0 0 10px rgba(56, 189, 248, 0.5);
}

.champ__downloads {
  margin-top: 14px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
}
.champ__downloads-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 8px;
}
.champ__downloads-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.champ__download-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 7px 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.champ__download-btn:hover {
  background: rgba(56, 189, 248, 0.15);
  border-color: var(--blue);
  color: #fff;
  transform: translateY(-1px);
}
.champ__download-btn--drive {
  grid-column: 1 / -1;
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.3);
  color: #ff8b85;
}
.champ__download-btn--drive:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: var(--red);
  color: #fff;
}

.race__mod-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}
.race__mod-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 5px;
  font-size: 0.74rem;
  font-weight: 500;
  color: var(--blue);
  text-decoration: none;
  transition: all 0.15s ease;
}
.race__mod-chip:hover {
  background: rgba(56, 189, 248, 0.2);
  border-color: var(--blue);
  color: #fff;
}

/* ---------- Central de Login Reformulada (Discord + Admin) ---------- */
.pilot-auth-box {
  max-width: 460px;
  padding: 32px 28px 26px;
}
.pilot-auth__head {
  text-align: center;
  margin-bottom: 22px;
}
.pilot-auth__logo {
  width: 60px;
  height: 60px;
  border-radius: 14px;
  margin: 0 auto 14px;
}
.pilot-auth__head h2 {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 800;
  font-size: 1.65rem;
}
.pilot-auth__reason {
  color: var(--muted);
  font-size: 0.88rem;
  margin-top: 6px;
  line-height: 1.45;
}
.auth-section {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
}
.auth-section--pilot {
  border-color: rgba(88, 101, 242, 0.35);
  background: linear-gradient(180deg, rgba(88, 101, 242, 0.08) 0%, rgba(15, 23, 42, 0.4) 100%);
}
.auth-section__badge {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #818cf8;
  margin-bottom: 10px;
  text-align: center;
}
.btn--discord {
  background: #5865F2;
  color: #fff;
  padding: 13px 20px;
  font-size: 1rem;
  border-radius: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 10px 25px -6px rgba(88, 101, 242, 0.6);
  transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}
.btn--discord:hover {
  background: #4752C4;
  transform: translateY(-1px);
  box-shadow: 0 14px 30px -6px rgba(88, 101, 242, 0.75);
}
.auth-remember {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
  font-size: 0.84rem;
  color: var(--muted);
  cursor: pointer;
  user-select: none;
}
.auth-remember input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: #5865F2;
  cursor: pointer;
}
.pilot-auth__divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px 0;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.pilot-auth__divider::before,
.pilot-auth__divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}
.btn--admin-toggle {
  background: rgba(250, 204, 21, 0.08);
  border: 1px solid rgba(250, 204, 21, 0.35);
  color: var(--yellow);
  padding: 12px 18px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.94rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  transition: all 0.2s ease;
}
.btn--admin-toggle:hover {
  background: rgba(250, 204, 21, 0.16);
  border-color: var(--yellow);
  color: #fff;
}
.auth-admin-box {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

/* ---------- Item Row com Botão Excluir Rápido no Admin ---------- */
.ed__row {
  display: flex;
  align-items: stretch;
  gap: 6px;
}
.ed__row .ed__item {
  flex: 1;
}
.ed__quick-del {
  width: 38px;
  border-radius: 10px;
  background: rgba(225, 6, 0, 0.08);
  border: 1px solid rgba(225, 6, 0, 0.28);
  color: #ff6b63;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  transition: all 0.18s ease;
  flex-shrink: 0;
}
.ed__quick-del:hover {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}

/* ---------- Modal de Regulamento & Calendário ---------- */
.champ-details-box {
  padding: 30px;
  max-height: 88vh;
  overflow-y: auto;
}
.reg-box {
  background: rgba(11, 14, 20, 0.75);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 20px;
  font-size: 0.92rem;
  color: #e2e8f0;
  line-height: 1.65;
  white-space: pre-wrap;
  max-height: 320px;
  overflow-y: auto;
}
.cal-stage-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 8px;
}
@media (max-width: 640px) {
  .cal-stage-item {
    flex-direction: column;
    align-items: flex-start;
  }
}


