:root,
[data-theme="night"] {
  --bg: #1c242c;
  --panel: #262f38;
  --panel2: #2c3640;
  --line: #3d4a56;
  --text: #f3f6f8;
  --muted: #9aa8b4;
  --red: #ff304f;
  --cyan: #23d9ff;
  --green: #42e6a4;
  --gold: #f5c518;
  --shadow: 0 18px 40px #0004;
  --title-page-size: clamp(28px, 4vw, 42px);
  --title-page-tracking: -1.5px;
  --title-block-size: 14px;
  --title-block-tracking: 1.3px;
  --table-font: 12px;
  --table-th-size: 9px;
}
[data-theme="day"] {
  --bg: #e8eef2;
  --panel: #ffffff;
  --panel2: #f4f7f9;
  --line: #c5d0d8;
  --text: #141a1f;
  --muted: #5c6b76;
  --shadow: 0 12px 28px #0001;
  --gold: #8a5800;
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, Segoe UI, sans-serif;
}
button, input { font: inherit; }
button { cursor: pointer; }

body:before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 70% 46% at 0% -8%, color-mix(in srgb, var(--red) 18%, transparent), transparent 62%),
    radial-gradient(ellipse 48% 38% at 100% 0%, color-mix(in srgb, var(--cyan) 12%, transparent), transparent 58%),
    radial-gradient(ellipse 42% 32% at 86% 108%, color-mix(in srgb, var(--red) 9%, transparent), transparent 60%),
    linear-gradient(118deg, transparent 42%, color-mix(in srgb, var(--red) 6%, transparent) 50%, transparent 58%);
}
[data-theme="day"] body:before {
  background:
    radial-gradient(ellipse 70% 46% at 0% -8%, color-mix(in srgb, var(--red) 10%, transparent), transparent 62%),
    radial-gradient(ellipse 48% 38% at 100% 0%, color-mix(in srgb, var(--cyan) 8%, transparent), transparent 58%),
    radial-gradient(ellipse 42% 32% at 86% 108%, color-mix(in srgb, var(--red) 5%, transparent), transparent 60%),
    linear-gradient(118deg, transparent 42%, color-mix(in srgb, var(--red) 4%, transparent) 50%, transparent 58%);
}
.app {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 235px 1fr;
}

.app > aside {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 18px 12px 12px;
  border-right: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 88%, #000);
  overflow: hidden;
}

.brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 0 8px 4px;
}
.logo {
  font-weight: 1000;
  letter-spacing: -2px;
  font-size: 27px;
  margin: 0;
  line-height: 1;
}
.logo b { color: var(--red); }
.brand-row .brand-auth-btn {
  width: 32px;
  height: 32px;
  font-size: 16px;
  flex: 0 0 auto;
  background: var(--red);
  border-color: var(--red);
  color: #fff;
  box-shadow: none;
  text-decoration: none;
}
.brand-row .brand-auth-btn:hover {
  filter: brightness(1.08);
  color: #fff;
  border-color: var(--red);
}
.tag {
  margin: 0 8px 12px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  line-height: 1.35;
}
.lang-switch {
  display: flex;
  gap: 4px;
  margin: 0 8px 12px;
}
.lang-switch a {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 30px;
  padding: 0;
  border-radius: 6px;
  border: 1px solid var(--line);
  text-decoration: none;
  opacity: 0.72;
}
.lang-switch a:hover { opacity: 1; background: var(--panel2); }
.lang-switch a.is-on {
  opacity: 1;
  background: var(--panel2);
  border-color: var(--red);
}
.lang-switch .lang-flag {
  width: 22px;
  height: 15px;
  display: block;
  border-radius: 2px;
  box-shadow: 0 0 0 1px #0004;
}

.nav { display: grid; gap: 2px; flex: 1 1 auto; min-height: 0; overflow: hidden; }
.nav a, .nav button {
  border: 0;
  background: transparent;
  color: #93a1ad;
  text-align: left;
  padding: 7px 10px;
  border-radius: 8px;
  font-weight: 750;
  font-size: 13px;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
  line-height: 1.2;
}
.nav a i {
  width: 18px;
  font-size: 15px;
  text-align: center;
  color: var(--cyan);
  flex: 0 0 auto;
}
[data-theme="day"] .nav a { color: #4d5c68; }
.nav a:hover, .nav a.active {
  color: var(--text);
  background: var(--panel2);
}
.nav a.active { box-shadow: inset 3px 0 var(--red); }
.nav a.active i { color: var(--red); }
.nav small {
  display: block;
  color: #6a7a86;
  font-size: 9px;
  margin: 8px 8px 2px;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.server {
  position: static;
  flex: 0 0 auto;
  margin-top: 8px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.4px;
}
.me-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 6px 8px 12px;
  padding: 10px;
  min-height: 58px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  color: var(--text);
  min-width: 0;
  position: relative;
}
.me-chip-main {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1 1 auto;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  text-decoration: none;
  text-align: left;
  cursor: pointer;
  font: inherit;
}
.me-chip-main:hover { color: inherit; }
.me-chip.is-guest {
  border-style: dashed;
}
.me-chip.is-guest .me-chip-main span { display: flex; align-items: center; }
.me-chip .auth-dock-btn {
  width: 32px;
  height: 32px;
  font-size: 16px;
  flex: 0 0 auto;
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}
.me-chip:hover {
  border-color: var(--red);
  color: var(--text);
}
.me-chip img {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--panel2);
  flex: 0 0 auto;
}
.me-chip span {
  min-width: 0;
  display: grid;
  gap: 1px;
}
.me-chip small {
  font-size: 9px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 800;
}
.me-chip b {
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.jv-me-cal {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 0 0 auto;
}
.jv-me-cal-btn,
.jv-me-bell {
  width: 28px;
  height: 28px;
  padding: 0;
  margin: 0;
  font-size: 17px;
  line-height: 1;
  color: var(--cyan);
  background: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.jv-me-cal-btn:hover,
.jv-me-cal-btn:focus-visible,
.jv-me-bell:hover,
.jv-me-bell:focus-visible {
  color: var(--cyan);
  filter: brightness(1.15);
  background: none;
  border: 0;
  box-shadow: none;
  outline: none;
}
[data-theme="day"] .jv-me-cal-btn,
[data-theme="day"] .jv-me-bell {
  color: #0098b8;
}
[data-theme="day"] .jv-me-cal-btn:hover,
[data-theme="day"] .jv-me-bell:hover {
  color: #007a96;
}
.jv-me-bell {
  position: relative;
}
.jv-me-bell::after {
  content: "";
  position: absolute;
  top: 4px;
  right: 5px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--red);
}
.jv-me-cal-panel {
  position: fixed;
  z-index: 2400;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow);
  padding: 8px;
  max-height: min(70vh, 420px);
  overflow: auto;
}
.jv-me-cal-head {
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--muted);
  margin: 2px 6px 8px;
}
.jv-me-cal-empty {
  margin: 8px 6px;
  font-size: 12px;
  color: var(--muted);
  font-weight: 700;
}
.jv-me-cal-more {
  display: block;
  margin: 6px 6px 2px;
  font-size: 10px;
  font-weight: 700;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
  text-decoration: none;
}
.jv-me-cal-more:hover { color: var(--cyan); }
.jv-me-cal-row {
  display: grid;
  gap: 1px;
  padding: 7px 8px;
  border-radius: 8px;
  text-decoration: none;
  color: inherit;
}
.jv-me-cal-row:hover { background: var(--panel2); }
.jv-me-cal-row b {
  font-size: 11px;
  color: var(--cyan);
  white-space: nowrap;
}
.jv-me-cal-row span {
  display: block;
  font-size: 12px;
  font-weight: 800;
}
.jv-me-cal-row em {
  font-size: 11px;
  color: var(--muted);
  font-style: normal;
}
.jv-me-cal-row.is-today {
  background: color-mix(in srgb, var(--gold) 12%, transparent);
}
.jv-me-cal-row.is-today b { color: var(--gold); }
.jv-me-cal-row.is-past { opacity: 0.55; }
.jv-me-cal-foot {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  margin-top: 8px;
  padding: 6px 2px 0;
  border-top: 1px solid var(--line);
}
.jv-me-cal-foot a {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 800;
  color: var(--cyan);
  text-decoration: none;
  border-radius: 8px;
}
.jv-me-cal-foot a:hover {
  color: var(--text);
  background: var(--panel2);
}
.jv-me-cal-foot #jvMeCalGoogle { color: #ea4335; }
.jv-me-cal-foot #jvMeCalApple { color: var(--text); }
.dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 12px var(--green);
  margin-right: 7px;
}

main { min-width: 0; position: relative; }
.theme-dock {
  position: fixed;
  top: 16px;
  right: 20px;
  z-index: 40;
  display: grid;
  grid-template-columns: 40px 40px;
  gap: 8px;
}
.lang-dock {
  margin: 0;
  position: relative;
}
.lang-dock-btn {
  padding: 0;
}
.lang-dock-btn .lang-flag {
  width: 22px;
  height: 15px;
  display: block;
  border-radius: 2px;
  box-shadow: 0 0 0 1px #0004;
}
.lang-dock-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  margin: 0;
  padding: 6px;
  list-style: none;
  min-width: 148px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
  box-shadow: var(--shadow);
  z-index: 50;
}
.lang-dock-menu li { margin: 0; }
.lang-dock-menu a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 8px;
  border-radius: 7px;
  text-decoration: none;
  color: var(--text);
  font-size: 12px;
  font-weight: 800;
}
.lang-dock-menu a:hover,
.lang-dock-menu a.is-on {
  background: var(--panel2);
}
.lang-dock-menu .lang-flag {
  width: 22px;
  height: 15px;
  display: block;
  border-radius: 2px;
  box-shadow: 0 0 0 1px #0004;
  flex: 0 0 auto;
}
.theme-dock .dock-radio {
  box-shadow: var(--shadow);
  color: var(--cyan);
  text-decoration: none;
  font-size: 18px;
}
.theme-dock .dock-radio:hover,
.theme-dock .dock-radio.is-on {
  border-color: var(--cyan);
  color: var(--text);
  background: color-mix(in srgb, var(--cyan) 12%, var(--panel));
}
.theme-dock .dock-discord {
  box-shadow: var(--shadow);
  background: #5865F2;
  border-color: #5865F2;
  color: #fff;
  font-size: 18px;
  text-decoration: none;
}
.theme-dock .dock-discord:hover {
  background: #4752c4;
  border-color: #4752c4;
  color: #fff;
}
.auth-dock-btn {
  box-shadow: var(--shadow);
  background: var(--red);
  border-color: var(--red);
  color: #fff;
  font-size: 22px;
}
.auth-dock-btn:hover { filter: brightness(1.08); color: #fff; }
.logout-dock-btn {
  box-shadow: var(--shadow);
  background: var(--red);
  border-color: var(--red);
  color: #fff;
  font-size: 18px;
  text-decoration: none;
}
.logout-dock-btn:hover {
  filter: brightness(1.08);
  color: #fff;
  border-color: var(--red);
}

.modal { z-index: 2200; }
#authModal { z-index: 2200; }
#choosePseudoModal { z-index: 2210; }
#radioModal { z-index: 2220; }
.modal-backdrop { z-index: 2190; }
.btn {
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--text);
  padding: 9px 13px;
  border-radius: 7px;
  font-weight: 800;
}
.btn.red { background: var(--red); border-color: var(--red); color: #fff; }
.btn.auth-dock-btn,
a.btn.auth-dock-btn {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}
.icon-btn {
  width: 40px;
  height: 40px;
  padding: 0;
  display: grid;
  place-items: center;
  font-size: 18px;
}
.search {
  width: 220px;
  background: var(--panel);
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 7px;
  padding: 9px 11px;
}

.content { padding: 22px 108px 28px 28px; max-width: 1500px; margin: auto; }
.site-credit {
  margin: 36px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.4px;
  color: var(--muted);
}
.hero { display: grid; grid-template-columns: 1fr; gap: 12px; }
.hero-card, .card {
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 12px;
  box-shadow: var(--shadow);
}
.hero-card { padding: 0; position: relative; overflow: hidden; }
.hero-card:after { display: none; }
.hero-art {
  position: relative;
  line-height: 0;
  background: var(--panel);
  aspect-ratio: 950 / 250;
  height: auto;
  overflow: hidden;
}
.hero-art img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: center;
  filter: none;
}
.hero-art::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--panel) 42%, transparent) 0%, transparent 16%, transparent 84%, color-mix(in srgb, var(--panel) 42%, transparent) 100%),
    linear-gradient(180deg, transparent 38%, color-mix(in srgb, var(--panel) 35%, transparent) 72%, var(--panel) 100%);
}
.hero-kpis {
  display: flex;
  width: 100%;
  justify-content: stretch;
  gap: 8px;
}
.hero-kpi {
  flex: 1 1 0;
  min-width: 0;
  text-align: left;
  text-decoration: none;
  color: inherit;
  padding: 8px 10px 10px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--panel) 88%, transparent);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
a.hero-kpi:hover {
  border-color: color-mix(in srgb, var(--cyan) 45%, var(--line));
  color: inherit;
}
.hero-kpi .section-title {
  margin-bottom: 4px;
  align-items: flex-start;
}
.hero-kpi .section-title h2 {
  font-size: 10px;
  letter-spacing: 0.5px;
  white-space: normal;
  overflow: visible;
  line-height: 1.2;
  min-height: 2.4em;
  hyphens: none;
  -webkit-hyphens: none;
  word-break: keep-all;
  overflow-wrap: normal;
}
.hero-kpi .stat {
  font-size: 22px;
  line-height: 1;
  margin: 2px 0 3px;
}
.hero-kpi .muted {
  font-size: 9px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hero-kpi .bar {
  height: 4px;
  margin-top: 7px;
  background: color-mix(in srgb, var(--line) 80%, #3a4650);
}
.hero-cta {
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.hero-cta .btn {
  text-decoration: none;
  min-height: 36px;
  padding: 7px 14px;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.hero-cta .hero-discord {
  width: 36px;
  min-width: 36px;
  padding: 0;
  background: #5865F2;
  border-color: #5865F2;
  color: #fff;
  font-size: 18px;
}
.hero-cta .hero-discord:hover {
  background: #4752c4;
  border-color: #4752c4;
  color: #fff;
}
.telemetry { display: flex; gap: 10px; margin-top: 22px; flex-wrap: wrap; }
.metric {
  min-width: 115px;
  padding: 10px 12px;
  border-left: 2px solid var(--cyan);
  background: var(--panel2);
}
.metric b { font-size: 20px; display: block; }
.metric span {
  font-size: 9px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.radio-jv {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: stretch;
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: color-mix(in srgb, var(--panel) 88%, #000);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.radio-jv-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  border-right: 1px solid var(--line);
  background: color-mix(in srgb, var(--panel2) 70%, #000);
  white-space: nowrap;
  text-decoration: none;
  color: inherit;
}
a.radio-jv-brand:hover {
  color: inherit;
  background: color-mix(in srgb, var(--panel2) 40%, #000);
}
.radio-jv-on {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--red) 22%, transparent);
  animation: radio-pulse 1.4s ease infinite;
}
.radio-jv-brand b {
  font-size: 11px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}
.radio-jv-brand em {
  font-style: normal;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 1.2px;
  color: var(--red);
}
.radio-jv-track {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 18px, #000 calc(100% - 18px), transparent);
}
.radio-jv-tape {
  display: flex;
  align-items: center;
  gap: 0;
  width: max-content;
  animation: radio-scroll var(--radio-s, 42s) linear infinite;
}
.radio-jv:hover .radio-jv-tape { animation-play-state: paused; }
.radio-jv-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px 11px 18px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
  white-space: nowrap;
}
.radio-jv-item + .radio-jv-item,
.radio-jv-clone .radio-jv-item:first-child {
  border-left: 1px solid var(--line);
}
.radio-jv-item time {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.2px;
  font-variant-numeric: tabular-nums;
}
.radio-jv-ico {
  font-size: 13px;
  line-height: 1;
  flex: 0 0 auto;
}
.radio-jv-item.is-win .radio-jv-ico { color: var(--cyan); }
.radio-jv-item.is-first_win .radio-jv-ico { color: var(--gold); }
.radio-jv-item.is-record .radio-jv-ico { color: var(--green); }
.radio-jv-item.is-dnf .radio-jv-ico { color: var(--red); }
.radio-jv-item.is-elo_up .radio-jv-ico { color: var(--green); }
.radio-jv-item.is-elo_down .radio-jv-ico { color: var(--red); }
.radio-jv-item.is-new_circuit .radio-jv-ico { color: var(--cyan); }
.radio-jv-item.is-upcoming .radio-jv-ico { color: var(--gold); }
.radio-jv-pilot,
.radio-jv-pilot .pilot {
  color: var(--cyan);
  font-weight: 900;
}
.radio-jv-author {
  color: var(--text);
  font-weight: 800;
}
.radio-jv-verb {
  color: var(--muted);
  font-weight: 700;
}
.radio-jv-colon { color: var(--muted); }
.radio-jv-label {
  font-weight: 900;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  font-size: 10px;
  color: var(--green);
}
.radio-jv-track-name,
.radio-jv-track-name .circuit {
  color: var(--text);
  font-weight: 800;
}
.radio-jv-stat {
  font-weight: 900;
  color: var(--text);
}
.radio-jv-stat.is-up { color: var(--green); }
.radio-jv-stat.is-down { color: var(--red); }
.radio-jv-item.is-win .radio-jv-pilot,
.radio-jv-item.is-win .radio-jv-pilot .pilot { color: var(--cyan); }
.radio-jv-item.is-first_win .radio-jv-pilot,
.radio-jv-item.is-first_win .radio-jv-pilot .pilot { color: var(--gold); }
.radio-jv-item.is-record .radio-jv-pilot,
.radio-jv-item.is-record .radio-jv-pilot .pilot { color: var(--green); }
.radio-jv-item.is-dnf .radio-jv-stat { color: var(--red); }
.radio-jv-verb.is-crash { color: var(--red); font-weight: 800; }
.radio-jv-item.is-elo_up .radio-jv-pilot,
.radio-jv-item.is-elo_up .radio-jv-pilot .pilot { color: var(--green); }
.radio-jv-item.is-elo_down .radio-jv-pilot,
.radio-jv-item.is-elo_down .radio-jv-pilot .pilot { color: var(--red); }
.radio-jv-item.is-new_circuit .radio-jv-label { color: var(--cyan); }
.radio-jv-item.is-upcoming .radio-jv-label { color: var(--gold); }
.radio-jv-clone { display: contents; }
@keyframes radio-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@keyframes radio-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}
@media (prefers-reduced-motion: reduce) {
  .radio-jv-tape { animation: none; }
  .radio-jv-on { animation: none; }
  .radio-jv-track { overflow-x: auto; }
  .radio-jv-clone { display: none; }
}

.hero-side { padding: 20px; }
.section-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}
.section-title h2,
.jv-block-title {
  font-size: var(--title-block-size);
  margin: 0;
  text-transform: uppercase;
  letter-spacing: var(--title-block-tracking);
  font-weight: 900;
  color: var(--cyan);
  padding-left: 10px;
  position: relative;
}
.section-title h2::before,
.jv-block-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.12em;
  bottom: 0.12em;
  width: 3px;
  border-radius: 99px;
  background: var(--red);
}
.section-title span { font-size: 10px; color: var(--muted); }
.live-board-links {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.live-all {
  font-size: 11px;
  font-weight: 800;
  color: var(--cyan);
  text-decoration: none;
  letter-spacing: 0.3px;
}
.live-shown {
  font-size: 11px;
  font-weight: 800;
  color: var(--muted);
  letter-spacing: 0.3px;
}
.live-all:hover { text-decoration: underline; }
.feed { display: grid; gap: 9px; }
.feed div {
  padding: 11px;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 10px;
}
.feed time { color: var(--cyan); font-size: 10px; min-width: 92px; }
.feed p { margin: 0; font-size: 12px; color: var(--muted); }

.grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 18px;
  margin-top: 18px;
}
.card { padding: 18px; grid-column: span 4; }
.card.wide { grid-column: span 8; }
.card.full { grid-column: 1 / -1; }
.card.live-board { grid-column: span 7; }
.card.play-card { grid-column: span 5; }
.card.kpi { grid-column: span 3; }
a.kpi-link {
  display: block;
  color: inherit;
  text-decoration: none;
}
a.kpi-link:hover .stat { color: var(--cyan); }
.stat { font-size: 30px; font-weight: 950; }
.muted { color: var(--muted); font-size: 11px; }
.bar {
  height: 6px;
  background: #3a4650;
  border-radius: 99px;
  overflow: hidden;
  margin-top: 9px;
}
.bar i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--red), var(--cyan));
}

.play-card { scroll-margin-top: 16px; }
.play-lead {
  margin: 4px 0 16px;
  max-width: none;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
  color: var(--muted);
}
.play-card .muted {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
}
.play-dl {
  color: var(--text);
}
.play-dl b {
  font-size: 14px;
  font-weight: 900;
  letter-spacing: -0.2px;
  color: var(--text);
}
.play-dl em {
  font-style: normal;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}
.play-faq li,
.play-faq p {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
}
.play-cta {
  margin: 12px 0 0 !important;
}
.play-faq .live-empty-actions {
  margin-top: 10px !important;
}
.play-card .play-faq + .play-downloads {
  margin-top: 16px;
}
.play-downloads {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin: 0 0 22px;
}
.play-dl {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel2);
  color: var(--text);
  text-decoration: none;
  min-height: 78px;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.play-dl:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px #0004;
  color: var(--text);
}
.play-dl i {
  font-size: 28px;
  line-height: 1;
  flex: 0 0 auto;
}
.play-dl span { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.play-dl.is-java { border-color: color-mix(in srgb, #e76f00 45%, var(--line)); }
.play-dl.is-java i { color: #e76f00; }
.play-dl.is-java:hover { border-color: #e76f00; }
.play-dl.is-launcher { border-color: color-mix(in srgb, var(--cyan) 45%, var(--line)); }
.play-dl.is-launcher i { color: var(--cyan); }
.play-dl.is-launcher:hover { border-color: var(--cyan); }
.play-faq {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px 20px;
}
.play-faq h3 { margin: 0 0 8px; }
.play-faq p,
.play-faq ul { margin: 0; padding-left: 16px; }
.play-faq p { padding-left: 0; }
.play-faq li { margin: 0 0 6px; }
.play-faq a { font-weight: 800; }
.gallery-scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin-top: 12px;
  padding-bottom: 4px;
}

.table { width: 100%; border-collapse: collapse; font-size: var(--table-font); }
.table th {
  color: var(--muted);
  text-align: left;
  font-size: var(--table-th-size);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.table td, .table th {
  padding: 11px 8px;
  border-bottom: 1px solid var(--line);
}
.pilot, .circuit, .team, .champ {
  color: var(--text);
  font-weight: 900;
  cursor: pointer;
}
.pilot:hover, .circuit:hover, .team:hover, .champ:hover { color: var(--cyan); }

.soon {
  padding: 48px 8px;
  color: var(--muted);
}

.drawer {
  position: fixed;
  z-index: 20;
  right: 0;
  top: 0;
  height: 100vh;
  width: min(480px, 92vw);
  background: var(--panel);
  border-left: 1px solid var(--line);
  box-shadow: -25px 0 70px #0005;
  transform: translateX(105%);
  transition: .3s cubic-bezier(.2, .8, .2, 1);
  overflow: auto;
}
.drawer.open { transform: none; }
.drawer-head {
  padding: 20px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
}
.close {
  border: 1px solid var(--line);
  background: var(--panel2);
  color: var(--text);
  border-radius: 6px;
  width: 34px;
  height: 34px;
}
.drawer-body { padding: 22px; }
.profile { display: flex; gap: 14px; align-items: center; }
.avatar {
  width: 64px;
  height: 64px;
  border-radius: 10px;
  background: linear-gradient(145deg, var(--red), #62152a);
  display: grid;
  place-items: center;
  font-size: 25px;
  font-weight: 1000;
  color: #fff;
}
.chips { display: flex; gap: 7px; flex-wrap: wrap; margin: 8px 0 20px; }
.chip {
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--muted);
  font-size: 10px;
}
.duel { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 18px 0; }
.duel .box {
  padding: 14px;
  background: var(--panel2);
  border: 1px solid var(--line);
  text-align: center;
}
.live-dot {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--red) !important;
  font-weight: 900;
  letter-spacing: 1.4px;
}
.live-dot:before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 0 #ff304f99;
  animation: live-pulse 1.6s ease-out infinite;
}
@keyframes live-pulse {
  70% { box-shadow: 0 0 0 8px #ff304f00; }
  100% { box-shadow: 0 0 0 0 #ff304f00; }
}
.live-empty { margin: 8px 0 4px; }
.live-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
}
.live-tile {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel2);
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.live-tile.is-off { display: none; }
.live-tile:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px #0005;
  border-color: color-mix(in srgb, var(--cyan) 35%, var(--line));
}
.live-tile.is-new { animation: live-in .45s ease; }
.live-tile.is-changed { animation: live-flash .9s ease; }
@keyframes live-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}
@keyframes live-flash {
  0%, 100% { box-shadow: none; }
  30% { box-shadow: 0 0 0 2px color-mix(in srgb, var(--cyan) 70%, transparent); }
}
.live-tile-track {
  height: 92px;
  background: #0006;
}
.live-tile-track img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .45s ease;
}
body.index .live-board .live-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
body.index .live-board .live-tile {
  min-width: 0;
}
@media (min-width: 721px) {
  body.index .live-board .live-grid:has(> .live-tile:only-child) {
    display: flex;
    justify-content: center;
  }
  body.index .live-board .live-grid:has(> .live-tile:only-child) .live-tile {
    flex: 0 0 calc((100% - 12px) / 2);
    width: calc((100% - 12px) / 2);
    max-width: calc((100% - 12px) / 2);
  }
}
@media (max-width: 720px) {
  body.index .live-board .live-grid {
    grid-template-columns: 1fr;
  }
}
.live-tile:hover .live-tile-track img { transform: scale(1.06); }
.live-tile-body { padding: 10px 12px 12px; }
.live-tile-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
  font-size: 10px;
  font-weight: 800;
  color: var(--muted);
  letter-spacing: 0.3px;
}
.live-status,
.live-priv {
  border: 1px solid var(--line);
  border-radius: 99px;
  padding: 2px 7px;
  text-transform: uppercase;
  letter-spacing: 0.7px;
}
.live-status.is-open { color: var(--cyan); border-color: color-mix(in srgb, var(--cyan) 45%, var(--line)); }
.live-status.is-running {
  color: var(--red);
  border-color: color-mix(in srgb, var(--red) 45%, var(--line));
  animation: live-status-glow 1.8s ease-in-out infinite;
}
@keyframes live-status-glow {
  50% { box-shadow: 0 0 0 3px #ff304f33; }
}
.live-status.is-done,
.live-status.is-closed,
.live-status.is-unknown { color: var(--muted); border-color: var(--line); }
.live-priv { color: var(--red); border-color: color-mix(in srgb, var(--red) 45%, var(--line)); }
.live-circuit {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 900;
  line-height: 1.25;
}
.live-desc {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}
.live-facts {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  margin: 0 0 10px;
}
.live-facts div { min-width: 0; }
.live-facts dt {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--muted);
  font-weight: 800;
}
.live-facts dd {
  margin: 1px 0 0;
  font-size: 12px;
  font-weight: 800;
  word-break: break-word;
}
.live-wx {
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
}
.live-wx img { width: 60px; height: 60px; object-fit: contain; }
.live-wx-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-bottom: 10px;
}
.live-wx-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 0;
  padding: 8px 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--panel) 70%, transparent);
  text-align: center;
}
.live-wx-cell > span {
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.7px;
  text-transform: uppercase;
  color: var(--muted);
}
.live-rules-label {
  display: block;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.7px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 5px;
}
.live-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  align-items: center;
}
.live-chip {
  font-size: 10px;
  font-weight: 800;
  padding: 3px 7px;
  border-radius: 99px;
  border: 1px solid var(--line);
  background: var(--panel);
}
.live-rules-more { display: inline; }
.live-rules-more summary {
  display: inline-flex;
  cursor: pointer;
  font-size: 10px;
  font-weight: 900;
  color: var(--cyan);
  list-style: none;
}
.live-rules-more summary::-webkit-details-marker { display: none; }
.live-rules-more[open] summary { margin-right: 4px; }
.live-rules-more[open] { display: contents; }

.live-count-inline {
  font-size: 11px;
  letter-spacing: 0.4px;
  color: var(--muted);
  font-weight: 800;
  text-transform: none;
}
.live-main-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.live-updated {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.4px;
  color: var(--muted);
}
.live-rules-fold {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  background: color-mix(in srgb, var(--panel2) 80%, transparent);
}
.live-rules-fold > summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--muted);
}
.live-rules-fold > summary::-webkit-details-marker { display: none; }
.live-rules-fold > summary::after {
  content: "+";
  margin-left: auto;
  color: var(--cyan);
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
}
.live-rules-fold[open] > summary::after { content: "−"; }
.live-rules-sel {
  min-width: 16px;
  padding: 1px 6px;
  border-radius: 99px;
  background: var(--red);
  color: #fff;
  font-size: 10px;
  letter-spacing: 0;
}
.live-rule-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 8px;
}
.courses-live .live-rule-check {
  display: flex !important;
  flex-direction: row;
  align-items: center;
  gap: 6px;
  text-transform: none;
  letter-spacing: 0;
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
  margin: 0;
}
.courses-live .live-rule-check input { margin: 0; }
.courses-live #livePlayMe.is-on {
  border-color: var(--cyan);
  color: var(--cyan);
}
.courses-live .f1-dash-item[role="button"] { cursor: pointer; }
.courses-live .is-hero-kpis .f1-dash-item[role="button"]:hover {
  background: color-mix(in srgb, var(--cyan) 10%, var(--panel));
}
.courses-live .is-hero-kpis .f1-dash-item.is-on {
  background: color-mix(in srgb, var(--cyan) 14%, var(--panel));
  box-shadow: inset 3px 0 0 var(--red);
}
.live-fill-bar {
  grid-column: 1 / -1;
  height: 5px;
  margin: 4px 8px 2px;
  border-radius: 99px;
  background: var(--panel2);
  overflow: hidden;
}
.live-fill-bar i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--cyan), var(--green, #42e6a4));
  border-radius: 99px;
  transition: width .4s ease;
}
.courses-live .f1-layout.is-empty {
  grid-template-columns: 1fr;
}
.courses-live .f1-layout.is-empty .f1-sidebar { display: none; }
.live-empty-card {
  padding: 28px 24px 32px;
}
.live-empty-card h2 {
  margin: 12px 0 8px;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.6px;
}
.live-empty-card > p {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
  max-width: 640px;
}
.live-empty-card > p + p {
  margin-top: 6px;
}
.live-empty-actions .btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.live-empty-actions .btn-nav-courses {
  background: #23d9ff;
  border-color: #18c8ee;
  color: #082028;
}
.live-empty-actions .btn-nav-courses:hover { filter: brightness(1.08); color: #082028; }
.live-empty-actions .btn-nav-champs {
  background: #f5c518;
  border-color: #e8b30a;
  color: #1a1400;
}
.live-empty-actions .btn-nav-champs:hover { filter: brightness(1.08); color: #1a1400; }
.live-empty-actions .btn-nav-paddock {
  background: #22d38a;
  border-color: #14c47b;
  color: #042016;
}
.live-empty-actions .btn-nav-paddock:hover { filter: brightness(1.08); color: #042016; }
[data-theme="day"] .live-empty-actions .btn-nav-courses {
  background: #23d9ff;
  border-color: #12b8dc;
  color: #082028;
  box-shadow: 0 1px 0 #b8f3ff inset;
}
[data-theme="day"] .live-empty-actions .btn-nav-champs {
  background: #f5c518;
  border-color: #e8b30a;
  color: #1a1400;
  box-shadow: 0 1px 0 #ffe9a3 inset;
}
[data-theme="day"] .live-empty-actions .btn-nav-paddock {
  background: #22d38a;
  border-color: #14c47b;
  color: #042016;
  box-shadow: 0 1px 0 #b6ffdc inset;
}
.live-empty-actions .btn-nav-auth {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}
.live-empty-actions .btn-nav-auth:hover { filter: brightness(1.08); color: #fff; }
.live-empty-actions .btn-discord {
  background: #5865F2;
  border-color: #5865F2;
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.live-empty-actions .btn-discord:hover {
  background: #4752c4;
  border-color: #4752c4;
  color: #fff;
}
.home-live-empty {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 16px;
  padding: 12px 4px 6px;
}
.home-live-empty-copy {
  flex: none;
}
.home-live-empty h2 {
  font-size: 18px;
}
.home-live-empty-copy > p {
  max-width: none;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
}
.home-live-empty-copy > p + p {
  margin-top: 6px;
}
.home-live-empty .live-standby {
  margin-top: 0;
  width: 100%;
}
.home-live-empty .live-standby .f1-filters-title {
  margin-bottom: 8px;
}
.home-live-empty .live-standby-grid {
  grid-template-columns: 1fr 1fr;
  margin-top: 0;
  gap: 10px;
}
.home-live-empty .standby-tile-track { height: 64px; }
.home-live-empty .standby-tile-body { padding: 8px 10px 10px; }
.live-standby { margin-top: 22px; }
.live-standby-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
  margin-top: 10px;
}
.standby-tile {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel2);
  overflow: hidden;
  cursor: pointer;
  transition: transform .2s ease, border-color .2s ease;
}
.standby-tile:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--cyan) 35%, var(--line));
}
.standby-tile-track { height: 84px; background: #0006; }
.standby-tile-track img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.standby-tile-body { padding: 10px 12px 12px; }
.standby-tile-body time {
  display: block;
  font-size: 10px;
  font-weight: 800;
  color: var(--muted);
  letter-spacing: 0.3px;
  margin-bottom: 4px;
}
.standby-tile-body h3 {
  margin: 0 0 4px;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.25;
}
.standby-tile-body p {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}
.standby-champs {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: 0 0 8px;
}
.standby-champs .champ-badge {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .3px;
  text-transform: uppercase;
  text-decoration: none;
  padding: 3px 7px;
  border-radius: 99px;
  line-height: 1.2;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  background: color-mix(in srgb, var(--red) 18%, var(--panel2));
  border: 1px solid color-mix(in srgb, var(--red) 45%, var(--line));
  color: var(--text);
  cursor: pointer;
}
.standby-champs .champ-badge:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}
.standby-gp {
  font-size: 11px;
  font-weight: 800;
  color: var(--cyan);
}
.courses-live .f1-dash-item b.is-tick {
  animation: kpi-tick .45s ease;
}
@keyframes kpi-tick {
  0% { transform: scale(1); color: var(--cyan); }
  40% { transform: scale(1.12); }
  100% { transform: scale(1); }
}

.choose-pseudo-page,
.auth-page {
  display: flex;
  justify-content: center;
  padding: 8px 0 36px;
}
.choose-pseudo-card,
.auth-card {
  width: min(560px, 100%);
  padding: 22px 22px 24px;
}
.choose-pseudo-card > .muted,
.auth-card > .muted {
  margin: 0 0 16px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
}
.choose-pseudo-form,
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.auth-form .form-label {
  margin: 0;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: var(--muted);
}
.auth-form .form-control {
  margin-top: 6px;
}
.auth-form-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin: 0;
  font-size: 13px;
  font-weight: 800;
}
.auth-ok {
  margin: 0 0 16px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid color-mix(in srgb, var(--green) 40%, var(--line));
  background: color-mix(in srgb, var(--green) 12%, var(--panel2));
  color: var(--text);
  font-weight: 700;
  font-size: 14px;
}
.choose-opt {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel2);
  cursor: pointer;
}
.choose-opt:has(input:checked) {
  border-color: var(--cyan);
}
.choose-opt input[type="radio"] {
  margin-top: 4px;
  accent-color: var(--cyan);
}
.choose-opt span {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  flex: 1;
}
.choose-opt b {
  font-size: 14px;
  font-weight: 900;
}
.choose-pseudo-form .btn,
.auth-form .btn {
  margin-top: 6px;
  min-height: 44px;
  font-weight: 800;
}
.choose-pseudo-card .summary-card,
.auth-card .summary-card {
  margin-bottom: 14px;
}

@media (max-width: 1100px) {
  .card.kpi { grid-column: span 6; }
  .card.live-board,
  .card.play-card { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  .app { grid-template-columns: 1fr; }
  .app > aside { position: relative; height: auto; }
  .hero { grid-template-columns: 1fr; }
  .radio-jv { grid-template-columns: 1fr; }
  .radio-jv-brand {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 8px 14px;
  }
  .card, .card.wide, .card.full { grid-column: 1 / -1; }
  .card.kpi { grid-column: span 6; }
  .play-faq { grid-template-columns: 1fr; }
  .play-downloads { grid-template-columns: 1fr; }
  .hero-kpis { flex-wrap: wrap; }
  .hero-kpi { flex: 1 1 calc(25% - 6px); }
  .hero-art { height: auto; }
  .content { padding: 16px 96px 16px 16px; }
  .search { width: 140px; }
}

#authModal .auth-modal-card,
#choosePseudoModal .modal-content {
  position: relative;
  overflow: hidden;
  background: var(--panel);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
}
#authModal .auth-modal-card::after {
  content: "";
  position: absolute;
  right: -80px;
  top: -80px;
  width: 220px;
  height: 220px;
  border: 1px solid #ff304f44;
  border-radius: 50%;
  box-shadow: 0 0 0 34px #ff304f0d, 0 0 0 68px #ff304f08;
  pointer-events: none;
}
#authModal .modal-header,
#choosePseudoModal .modal-header {
  position: relative;
  z-index: 1;
  background: var(--panel2);
  border-bottom: 1px solid var(--line);
  color: var(--text);
}
#authModal .modal-title,
#choosePseudoModal .modal-title {
  font-weight: 900;
  letter-spacing: -0.3px;
  color: var(--text);
}
#authModal .modal-body {
  position: relative;
  z-index: 1;
  color: var(--text);
}
#authModal .auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 6px;
  border-bottom: 0;
  margin-bottom: 4px;
}
#authModal .auth-tabs .nav-item { width: 100%; }
#authModal .auth-tabs .nav-link {
  width: 100%;
  border: 1px solid var(--line) !important;
  background: var(--panel2) !important;
  color: var(--text) !important;
  font-weight: 800;
  font-size: 12px;
  line-height: 1.2;
  border-radius: 10px !important;
  padding: 10px 6px;
  text-align: center;
}
#authModal .auth-tabs .nav-link:hover {
  border-color: var(--red) !important;
  color: var(--red) !important;
}
#authModal .auth-tabs .nav-link.active {
  background: var(--red) !important;
  border-color: var(--red) !important;
  color: #fff !important;
  box-shadow: none;
}
#authModal .form-control {
  background: var(--panel2);
  color: var(--text);
  border: 1px solid var(--line);
  font-weight: 700;
}
#authModal .form-control:focus {
  outline: 2px solid color-mix(in srgb, var(--cyan) 50%, transparent);
  border-color: var(--cyan);
  box-shadow: none;
  background: var(--panel2);
  color: var(--text);
}
#authModal .form-label { font-weight: 800; color: var(--muted); }
#authModal .btn-primary {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
  font-weight: 800;
}
#authModal .btn-warning {
  background: #f5c518;
  border-color: #f5c518;
  color: #1a1404;
  font-weight: 800;
}
#authModal .btn-discord {
  background: #5865f2;
  border: 1px solid #5865f2;
  color: #fff;
  font-weight: 800;
}
#authModal .btn-discord:hover { filter: brightness(1.08); color: #fff; }
#authModal .btn-outline-secondary {
  background: var(--panel2);
  border: 1px solid var(--line);
  color: var(--text);
  font-weight: 800;
}
#authModal hr { border-color: var(--line); opacity: 1; }
#authModal .text-muted,
#authModal .alt-login p { color: var(--muted) !important; font-weight: 700; }

.champ-sched-modal .modal-content {
  background: var(--panel);
  color: var(--text);
  border: 1px solid var(--line);
}
.champ-sched-modal .modal-header,
.champ-sched-modal .modal-footer {
  border-color: var(--line);
}
.champ-sched-table {
  color: var(--text);
  --bs-table-bg: transparent;
  --bs-table-color: var(--text);
}
.champ-sched-table th {
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  border-color: var(--line);
}
.champ-sched-table td {
  border-color: var(--line);
  vertical-align: middle;
}
.champ-sched-table tr.is-past td { color: var(--muted); }
.champ-sched-table tr.is-next td {
  color: var(--gold);
  font-weight: 800;
  background: color-mix(in srgb, var(--gold) 12%, transparent);
}
#jvDialogModal { z-index: 4000; }
#jvDialogModal .modal-dialog { margin: 1.75rem auto; }
#jvDialogModal .modal-content {
  background: var(--panel);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 12px;
}
#jvDialogModal .modal-header,
#jvDialogModal .modal-footer {
  background: var(--panel2);
  border-color: var(--line);
}
#jvDialogModal .modal-title {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}
#jvDialogModal .modal-body { color: var(--text); }
#jvDialogModal #jvDialogOk {
  background: var(--cyan, #2ad4ff);
  border-color: var(--cyan, #2ad4ff);
  color: #041018;
  font-weight: 800;
}
