:root {
  color-scheme: dark;
  --void: #02040a;
  --night: #050916;
  --panel: rgba(9, 18, 39, .90);
  --line: rgba(79, 194, 255, .34);
  --cyan: #4edcff;
  --violet: #a37aff;
  --orange: #ff982e;
  --gold: #ffc45c;
  --text: #f4f8ff;
  --muted: #9babc2;
  --bad: #ff7894;
  --good: #72ffc1;
  --font-display: "Barlow Condensed", "Arial Narrow", "Segoe UI", sans-serif;
  --font-ui: "Barlow Condensed", "Segoe UI", sans-serif;
  --font-body: "Barlow", "Segoe UI", Arial, sans-serif;
}
/* Type system (2026-10-11): Barlow Condensed for a motorsport/combat feel,
 * Barlow for reading. Self-hosted (SIL OFL, fonts/OFL.txt); the CSP allows
 * only same-origin fonts. */
@font-face { font-family: "Barlow Condensed"; src: url("fonts/barlow-condensed-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("fonts/barlow-condensed-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("fonts/barlow-condensed-latin-800-italic.woff2") format("woff2"); font-weight: 800; font-style: italic; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("fonts/barlow-condensed-latin-900-italic.woff2") format("woff2"); font-weight: 900; font-style: italic; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("fonts/barlow-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("fonts/barlow-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("fonts/barlow-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("fonts/barlow-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
* { box-sizing: border-box; }
html { min-width: 320px; background: var(--void); }
body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--text);
  font: 400 1.0625rem/1.6 var(--font-body);
  background: radial-gradient(ellipse at 12% 8%, rgba(24,116,199,.31), transparent 34%), radial-gradient(ellipse at 88% 28%, rgba(109,50,176,.20), transparent 31%), linear-gradient(145deg,#02040b 0%,#071022 48%,#02040a 100%);
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  background: linear-gradient(112deg,transparent 0 57%,rgba(50,157,255,.045) 57.1% 57.4%,transparent 57.5%), repeating-linear-gradient(90deg,transparent 0 118px,rgba(72,185,255,.025) 119px 120px), repeating-linear-gradient(0deg,transparent 0 79px,rgba(72,185,255,.018) 80px 81px);
  mask-image: linear-gradient(to bottom,black,transparent 88%);
}
body::after {
  content: "";
  position: fixed;
  left: -10vw;
  right: -10vw;
  bottom: 9vh;
  height: 1px;
  z-index: -2;
  pointer-events: none;
  background: linear-gradient(90deg,transparent,rgba(75,207,255,.7),rgba(169,100,255,.4),transparent);
  box-shadow: 0 0 40px 8px rgba(50,139,255,.15);
  transform: rotate(-4deg);
}
.site-atmosphere { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.site-atmosphere i { position: absolute; width: 34vw; height: 2px; opacity: .3; background: linear-gradient(90deg,transparent,var(--cyan),transparent); transform: rotate(-25deg); }
.site-atmosphere i:nth-child(1) { top: 27%; left: -8%; }
.site-atmosphere i:nth-child(2) { top: 58%; right: -10%; transform: rotate(18deg); opacity: .2; }
.site-atmosphere i:nth-child(3) { bottom: 14%; left: 26%; width: 50vw; transform: rotate(-7deg); opacity: .12; }
a { color: #aeeaff; text-underline-offset: .22em; }
a:hover { color: #fff; }
.site-header {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: .85rem clamp(1rem,4vw,4.5rem);
  border-bottom: 1px solid rgba(108,203,255,.24);
  background: linear-gradient(90deg,rgba(2,5,15,.96),rgba(8,18,40,.90) 58%,rgba(8,9,25,.94));
  box-shadow: 0 12px 35px rgba(0,0,0,.28), inset 0 -1px rgba(178,232,255,.04);
  backdrop-filter: blur(18px);
}
.brand { display: inline-flex; align-items: center; gap: .72rem; color: #fff; text-decoration: none; letter-spacing: .12em; }
.brand:hover { color: #fff; }
.brand-copy { display: flex; flex-wrap: wrap; align-items: baseline; font-weight: 300; font-size: 1.22rem; line-height: 1; text-shadow: 0 0 18px rgba(69,214,255,.38); }
.brand-copy strong { font-weight: 900; }
.brand-copy small { flex-basis: 100%; margin-top: .32rem; color: #7995b5; font-size: 0.8rem; letter-spacing: .28em; }
.brand-mark { position: relative; width: 37px; height: 37px; border: 2px solid var(--cyan); border-radius: 50%; box-shadow: 0 0 22px rgba(55,215,255,.45), inset 0 0 12px rgba(55,215,255,.25); }
.brand-mark::before,.brand-mark::after,.brand-mark i { content: ""; position: absolute; border-radius: 50%; background: #dff9ff; box-shadow: 0 0 10px var(--cyan); }
.brand-mark::before { width: 8px; height: 8px; left: 6px; top: 9px; }
.brand-mark::after { width: 8px; height: 8px; right: 6px; top: 9px; }
.brand-mark i { width: 9px; height: 9px; left: 12px; bottom: 5px; }
nav { display: flex; align-items: center; justify-content: flex-end; gap: .2rem; flex-wrap: wrap; }
nav a,.nav-form button {
  position: relative;
  border: 0;
  padding: .58rem .82rem;
  color: #aebed3;
  background: transparent;
  font: 700 0.91rem/1 var(--font-ui);
  letter-spacing: .07em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: color .18s ease,background .18s ease,transform .18s ease;
  clip-path: polygon(8px 0,100% 0,100% calc(100% - 8px),calc(100% - 8px) 100%,0 100%,0 8px);
}
nav a:hover,.nav-form button:hover { color: #fff; background: rgba(48,157,218,.16); transform: translateY(-1px); }
nav a::after { content: ""; position: absolute; left: 15%; right: 15%; bottom: 2px; height: 1px; background: var(--cyan); transform: scaleX(0); transition: transform .18s ease; box-shadow: 0 0 8px var(--cyan); }
nav a:hover::after { transform: scaleX(1); }
nav .nav-access { margin-left: .35rem; color: #fff; border: 1px solid rgba(255,170,74,.6); background: rgba(255,135,35,.12); }
.nav-form { margin: 0; }
.page-shell { width: min(1180px,calc(100% - 2rem)); min-height: calc(100vh - 180px); margin: clamp(2rem,5vw,4.7rem) auto 5rem; }
.panel {
  position: relative;
  overflow: hidden;
  padding: clamp(1.25rem,2.8vw,2rem);
  border: 1px solid var(--line);
  background: linear-gradient(135deg,rgba(29,69,116,.18),transparent 38%), linear-gradient(118deg,rgba(10,23,48,.95),rgba(10,14,34,.90));
  box-shadow: 0 18px 55px rgba(0,0,0,.26), inset 0 0 35px rgba(60,151,255,.045);
  clip-path: polygon(15px 0,100% 0,100% calc(100% - 15px),calc(100% - 15px) 100%,0 100%,0 15px);
}
.panel::before { content: ""; position: absolute; top: 0; left: 15px; width: min(180px,35%); height: 2px; background: linear-gradient(90deg,var(--cyan),transparent); box-shadow: 0 0 14px var(--cyan); }
.panel::after { content: ""; position: absolute; right: -90px; top: -90px; width: 180px; height: 180px; border-radius: 50%; background: rgba(72,85,255,.11); filter: blur(30px); pointer-events: none; }
.panel > * { position: relative; z-index: 1; }
.panel-hero { min-height: 470px; display: grid; grid-template-columns: minmax(0,1.25fr) minmax(280px,.75fr); align-items: center; gap: 2rem; padding: clamp(2.2rem,6vw,5.6rem); overflow: hidden; }
.panel-hero::after { right: 4%; top: 8%; width: 340px; height: 340px; background: radial-gradient(circle,rgba(81,210,255,.2),rgba(94,64,190,.13) 42%,transparent 70%); filter: none; }
.hero-copy { max-width: 720px; }
.page-title h1,.narrow h1 {
  margin: .18rem 0 1.15rem;
  color: #fff;
  font-family: var(--font-display);
  font-size: clamp(2.7rem,7.6vw,6.7rem);
  font-style: italic;
  font-weight: 900;
  letter-spacing: .005em;
  line-height: .86;
  text-transform: uppercase;
  text-shadow: 4px 4px 0 rgba(45,57,145,.5), 0 0 34px rgba(66,209,255,.18);
}
.hero-title {
  position: relative;
  display: flex;
  width: fit-content;
  max-width: 100%;
  flex-direction: column;
  gap: .16rem;
  margin: .25rem 0 1.25rem;
  padding: .25rem 2.8rem .58rem .95rem;
  border-left: 4px solid var(--cyan);
  color: #fff;
  font-family: var(--font-display);
  font-style: italic;
  line-height: .9;
  text-transform: uppercase;
  transform: skewX(-5deg);
  text-shadow: 3px 3px 0 rgba(45,57,145,.52),0 0 26px rgba(66,209,255,.18);
}
.hero-title::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: linear-gradient(90deg,var(--cyan),rgba(76,159,255,.38),transparent); box-shadow: 0 0 12px rgba(78,220,255,.55); }
.hero-title::after { content: "ONLINE RACING NETWORK"; position: absolute; right: .2rem; bottom: .35rem; color: #6d87a5; font: 800 0.8rem/1 var(--font-ui); letter-spacing: .18em; text-shadow: none; }
.hero-title-mark { color: var(--cyan); font-size: clamp(.92rem,1.8vw,1.2rem); font-style: normal; font-weight: 900; letter-spacing: .28em; }
.hero-title-main { font-size: clamp(3rem,6.4vw,5.6rem); font-weight: 900; letter-spacing: .005em; }
.narrow h1 { font-size: clamp(2.25rem,5vw,4rem); line-height: .95; }
.page-title { position: relative; margin: 0 0 1.7rem; padding: 0 0 1.2rem 1.25rem; border-left: 3px solid var(--cyan); }
.page-title::after { content: ""; position: absolute; left: 0; bottom: 0; width: min(520px,70vw); height: 1px; background: linear-gradient(90deg,var(--cyan),transparent); }
.page-title h1 { margin-bottom: 0; font-size: clamp(2rem,3.8vw,3rem); }
.lead { max-width: 680px; color: #c1cee0; font-size: clamp(1rem,1.7vw,1.2rem); }
.eyebrow { margin: 0 0 .85rem; color: var(--cyan); font-size: 0.86rem; font-weight: 900; letter-spacing: .22em; text-transform: uppercase; }
.live-pip { display: inline-block; width: 7px; height: 7px; margin-right: .35rem; border-radius: 50%; background: var(--good); box-shadow: 0 0 11px var(--good); }
.hero-orbit { position: relative; width: min(320px,29vw); aspect-ratio: 1; margin: auto; display: grid; place-items: center; color: #fff; filter: drop-shadow(0 0 18px rgba(63,204,255,.24)); }
.hero-orbit span { position: absolute; inset: 8%; border: 1px solid rgba(83,216,255,.48); border-radius: 50%; box-shadow: inset 0 0 28px rgba(62,166,255,.08); }
.hero-orbit span:nth-child(2) { inset: 21%; border-color: rgba(172,118,255,.58); border-style: dashed; transform: rotate(21deg); }
.hero-orbit span:nth-child(3) { inset: 34%; border: 8px solid rgba(66,201,255,.15); box-shadow: 0 0 35px rgba(64,182,255,.22), inset 0 0 28px rgba(143,85,255,.3); }
.hero-orbit::before,.hero-orbit::after { content: ""; position: absolute; background: var(--cyan); box-shadow: 0 0 13px var(--cyan); }
.hero-orbit::before { left: 1%; right: 1%; height: 1px; }
.hero-orbit::after { top: 1%; bottom: 1%; width: 1px; }
.hero-orbit b { z-index: 1; font-size: clamp(1rem,2.2vw,1.7rem); font-style: italic; letter-spacing: .16em; text-shadow: 0 0 12px var(--cyan); }
.hero-orbit small { position: absolute; bottom: 23%; z-index: 1; color: var(--orange); font-weight: 900; letter-spacing: .18em; }
.actions { display: flex; align-items: center; gap: .85rem; margin-top: 1.8rem; flex-wrap: wrap; }
.button {
  position: relative;
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: .8rem;
  padding: .82rem 1.45rem .82rem 1.7rem;
  border: 0;
  color: #13100a;
  background: linear-gradient(105deg,#ff7b20,var(--gold));
  font: 900 .82rem/1 var(--font-ui);
  letter-spacing: .055em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  clip-path: polygon(13px 0,calc(100% - 7px) 0,100% 7px,100% calc(100% - 13px),calc(100% - 13px) 100%,7px 100%,0 calc(100% - 7px),0 13px);
  filter: drop-shadow(0 0 9px rgba(255,145,38,.28));
  transition: transform .16s ease,filter .16s ease,background .16s ease,color .16s ease;
}
.button::before { content: ""; position: absolute; inset: 2px; z-index: -1; background: linear-gradient(105deg,rgba(255,255,255,.18),transparent 42%); clip-path: inherit; }
.button::after { content: "›"; font-size: 1.18rem; line-height: .5; transition: transform .16s ease; }
.button:hover { color: #080705; background: linear-gradient(105deg,#ff9a2f,#ffe07f); transform: translateY(-2px); filter: drop-shadow(0 5px 14px rgba(255,145,38,.35)); }
.button:hover::after { transform: translateX(3px); }
.button:active { transform: translateY(0); }
.button:focus-visible,nav a:focus-visible,.nav-form button:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }
.button.secondary { color: #ecfaff; background: linear-gradient(105deg,#0b3150,#135f83); filter: drop-shadow(0 0 8px rgba(64,210,255,.18)); }
.button.secondary:hover { color: #fff; background: linear-gradient(105deg,#104a74,#138cad); filter: drop-shadow(0 5px 14px rgba(64,210,255,.28)); }
.button.ghost { color: #b8c8dc; background: rgba(10,18,39,.82); box-shadow: inset 0 0 0 1px rgba(126,181,224,.4); filter: none; }
.button.ghost:hover { color: #fff; background: rgba(26,48,82,.88); }
.grid { display: grid; gap: 1.2rem; }
.grid.three { grid-template-columns: repeat(3,minmax(0,1fr)); }
.feature-card { min-height: 210px; padding-top: 3.2rem; transition: transform .2s ease,border-color .2s ease,background .2s ease; }
.feature-card::before { content: attr(data-index); top: 1rem; left: 1.35rem; width: auto; height: auto; color: rgba(85,218,255,.45); background: none; box-shadow: none; font-weight: 900; letter-spacing: .18em; }
.feature-card:hover { transform: translateY(-5px); border-color: rgba(93,218,255,.62); background: linear-gradient(135deg,rgba(25,80,125,.3),rgba(10,14,34,.94)); }
.feature-card h2,.panel h2 { margin-top: 0; color: #fff; font-family: var(--font-display); font-style: italic; font-weight: 900; letter-spacing: .005em; text-transform: uppercase; }
.stats { display: grid; grid-template-columns: repeat(auto-fit,minmax(130px,1fr)); gap: 0; padding: 0; margin: 1.2rem 0; }
.stats div { position: relative; min-height: 128px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 1.1rem; text-align: center; border-right: 1px solid rgba(111,170,222,.18); }
.stats div:last-child { border-right: 0; }
.stats div::after { content: ""; position: absolute; left: 25%; right: 25%; bottom: 0; height: 2px; background: linear-gradient(90deg,transparent,var(--violet),transparent); opacity: .65; }
.stats small { position: absolute; top: .7rem; left: .9rem; color: #4d6d91; font: 800 0.8rem/1 var(--font-ui); letter-spacing: .13em; }
.stats strong { display: block; color: #fff; font-size: clamp(1.6rem,3vw,2.25rem); line-height: 1; text-shadow: 0 0 16px rgba(176,116,255,.7); }
.stats span { margin-top: .45rem; color: var(--muted); font-size: 0.88rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.narrow { max-width: 650px; margin: 0 auto; }
form { position: relative; }
label { display: block; margin: 1.05rem 0; color: #dfeaff; font-size: 0.94rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
input[type="text"],input[type="password"],select {
  display: block;
  width: 100%;
  min-height: 48px;
  margin-top: .42rem;
  padding: .78rem .9rem;
  border: 1px solid rgba(103,161,211,.45);
  border-radius: 0;
  outline: 0;
  color: #fff;
  background: rgba(2,7,18,.82);
  box-shadow: inset 3px 0 0 rgba(64,208,255,.18);
  font: 500 1rem/1.2 var(--font-ui);
  transition: border-color .18s ease,box-shadow .18s ease,background .18s ease;
}
select { appearance: none; background-image: linear-gradient(45deg,transparent 50%,var(--cyan) 50%),linear-gradient(135deg,var(--cyan) 50%,transparent 50%); background-position: calc(100% - 16px) 20px,calc(100% - 10px) 20px; background-size: 6px 6px; background-repeat: no-repeat; }
select option { color: #fff; background: #071022; }
input[type="text"]:focus,input[type="password"]:focus,select:focus { border-color: var(--cyan); background-color: rgba(5,16,35,.96); box-shadow: inset 3px 0 0 var(--cyan),0 0 18px rgba(64,205,255,.13); }
fieldset { margin: 1.2rem 0; padding: 1rem 1.15rem; border: 1px solid rgba(84,152,206,.35); background: rgba(4,10,24,.45); }
legend { padding: 0 .5rem; color: var(--cyan); font-size: 0.84rem; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
fieldset ul { margin: 0; padding: 0; list-style: none; }
fieldset label { display: flex; align-items: center; gap: .65rem; margin: .65rem 0; color: #c8d5e8; font-size: 0.94rem; letter-spacing: .03em; text-transform: none; }
input[type="radio"],input[type="checkbox"] { width: 17px; height: 17px; accent-color: var(--orange); }
.check { display: flex; align-items: flex-start; gap: .72rem; }
.check input { flex: 0 0 auto; margin-top: .16rem; }
.errorlist { margin: .5rem 0 0; padding-left: 1.2rem; color: var(--bad); font-weight: 600; text-transform: none; letter-spacing: 0; }
.notice { display: flex; flex-direction: column; gap: .2rem; margin: 1.2rem 0; padding: 1rem 1.15rem; border-left: 3px solid var(--cyan); color: #c5d3e6; background: linear-gradient(90deg,rgba(21,62,98,.62),rgba(10,18,39,.34)); box-shadow: inset 0 0 25px rgba(55,178,255,.04); }
.notice.error { border-color: var(--bad); color: #ffe0e7; background: linear-gradient(90deg,rgba(104,24,52,.48),transparent); }
.notice.success { border-color: var(--good); color: #dcfff1; background: linear-gradient(90deg,rgba(14,86,67,.45),transparent); }
.lock-notice { margin-top: 1.5rem; border-color: var(--orange); background: linear-gradient(90deg,rgba(105,55,17,.42),rgba(15,20,40,.2)); }
.lock-notice strong { color: #ffd49b; text-transform: uppercase; letter-spacing: .08em; }
.rules { color: var(--muted); }
.rules li { margin: .65rem 0; padding-left: .3rem; }
.rule-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; padding: 0; }
.rule-duo article { min-height: 260px; padding: clamp(1.5rem,4vw,3rem); background: linear-gradient(130deg,rgba(21,67,108,.35),rgba(7,13,30,.35)); }
.rule-duo article + article { border-left: 1px solid rgba(91,181,236,.22); }
.rule-duo article > span { color: var(--orange); font: italic 900 2.7rem/1 var(--font-display); text-shadow: 0 0 20px rgba(255,146,46,.35); }
.rule-duo h2 { margin: .8rem 0 .35rem; font-size: clamp(1.5rem,3vw,2.2rem); }
.privacy-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem 2.4rem; }
.privacy-grid article { padding: .35rem 0 .8rem; border-bottom: 1px solid rgba(111,170,222,.16); }
.setup-card { max-width: 820px; }
.download-proof { margin-top: 1.4rem; padding: .9rem 1rem; border: 1px solid rgba(86,163,216,.26); background: rgba(3,10,24,.5); }
.download-proof summary { color: #bcecff; font-size: 0.91rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; cursor: pointer; }
.download-proof p { margin-bottom: .55rem; }
.download-proof ol { margin: .8rem 0 1rem; padding-left: 1.45rem; color: #b8c7da; }
.download-proof li { margin: .55rem 0; padding-left: .25rem; line-height: 1.5; }
.download-proof li::marker { color: var(--orange); font-weight: 900; }
.download-proof li code { display: inline; padding: .15rem .35rem; color: #e4fbff; background: rgba(0,0,0,.3); }
.download-proof .download-fingerprint { display: block; padding: .7rem; background: rgba(0,0,0,.25); }
.news-feed { display: grid; gap: 1rem; }
.news-entry { padding: clamp(1.4rem,3.6vw,2.5rem); }
.news-entry h2 { margin-bottom: .65rem; font-size: clamp(1.35rem,3vw,2rem); }
.news-entry p:last-child { max-width: 850px; margin-bottom: 0; }
.news-entry.launch-entry { border-color: rgba(255,155,53,.42); background: linear-gradient(115deg,rgba(102,50,11,.32),rgba(11,20,43,.94) 46%,rgba(29,31,91,.7)); }
.news-entry.launch-entry::before { background: linear-gradient(90deg,var(--orange),transparent); box-shadow: 0 0 14px var(--orange); }
.rivalry-manifesto { margin: 1.25rem 0; padding: clamp(1.6rem,4.5vw,3.4rem); border-color: rgba(255,137,39,.56); background: linear-gradient(108deg,rgba(113,42,7,.5),rgba(11,14,34,.94) 45%,rgba(25,25,87,.83)); }
.rivalry-manifesto::before { width: min(360px,65%); background: linear-gradient(90deg,var(--orange),#ffdd78,transparent); box-shadow: 0 0 18px rgba(255,130,30,.8); }
.rivalry-kicker { margin: 0 0 .7rem; color: #ffb151 !important; font-size: 0.82rem; font-weight: 900; letter-spacing: .2em; text-transform: uppercase; }
.rivalry-manifesto h2 { max-width: 900px; margin-bottom: .7rem; font-size: clamp(1.75rem,4.8vw,3.5rem); line-height: .94; }
.rivalry-manifesto > p:not(.rivalry-kicker):not(.rivalry-last-word) { max-width: 900px; font-size: clamp(.98rem,1.8vw,1.15rem); }
.war-callout { display: block; width: fit-content; max-width: 100%; margin: 1.5rem 0 1rem; padding: .65rem 1.5rem .72rem 1.15rem; color: #11101a; background: linear-gradient(100deg,#ff7b22,#ffd05c 62%,#ff9c35); box-shadow: 0 0 28px rgba(255,116,25,.38),inset -10px 0 0 rgba(255,255,255,.18); clip-path: polygon(10px 0,100% 0,calc(100% - 13px) 100%,0 100%,0 10px); font: italic 900 clamp(1.1rem,3.4vw,2.05rem)/1 var(--font-display); letter-spacing: .035em; text-transform: uppercase; transform: skewX(-3deg); }
.rivalry-last-word { margin: 0; color: #dbe9f8 !important; font-weight: 800; }
.dashboard-count { display: flex; align-items: baseline; gap: .7rem; }
.dashboard-count strong { color: #fff; font-size: 2.2rem; text-shadow: 0 0 16px rgba(176,116,255,.65); }
small,.panel p,.list span,.row span { color: var(--muted); }
.row,.list p { display: flex; justify-content: space-between; gap: 1rem; margin: 0; padding: .78rem .2rem; border-bottom: 1px solid rgba(122,169,210,.17); }
.row:last-child,.list p:last-child { border-bottom: 0; }
.panel > a:not(.button) { display: inline-block; margin-top: .8rem; color: var(--cyan); font-size: 0.91rem; font-weight: 900; letter-spacing: .08em; text-decoration: none; text-transform: uppercase; }
.panel > a:not(.button)::after { content: "  ›"; color: var(--orange); }
.table-wrap { margin-bottom: 1.4rem; padding: 0; overflow: auto; }
.table-wrap h2 { margin: 0; padding: 1.35rem 1.5rem .8rem; }
table { width: 100%; min-width: 560px; border-collapse: collapse; }
th,td { padding: .9rem 1.1rem; text-align: left; border-bottom: 1px solid rgba(122,169,210,.16); }
th { color: var(--cyan); background: rgba(16,46,78,.36); font-size: 0.82rem; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; }
td { color: #c4d0df; }
tbody tr { transition: background .15s ease,color .15s ease; }
tbody tr:hover { background: rgba(42,130,190,.12); }
tbody tr:hover td { color: #fff; }
code { color: #cfefff; overflow-wrap: anywhere; }
.operator-login::before { background: linear-gradient(90deg,var(--orange),transparent); box-shadow: 0 0 14px var(--orange); }
.operator-heading { border-left-color: var(--orange); }
.operator-heading::after { background: linear-gradient(90deg,var(--orange),transparent); }
.ops-status-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(170px,1fr)); gap: .9rem; margin-bottom: 1.2rem; }
.ops-live-bar { display: flex; align-items: center; gap: .65rem; margin: 0 0 .8rem; color: #a9bed5; font-size: 0.82rem; letter-spacing: .09em; text-transform: uppercase; }
.ops-live-bar .live-pip { position: static; width: 7px; height: 7px; }
.ops-live-bar strong { color: #e9f9ff; }
.ops-live-bar [data-live-age] { margin-left: auto; }
.ops-live-bar.offline .live-pip { background: var(--bad); box-shadow: 0 0 10px var(--bad); }
.ops-service { min-height: 132px; display: flex; flex-direction: column; justify-content: center; gap: .3rem; padding: 1.25rem 1.35rem; }
.ops-service small { color: #7188a4; font-size: 0.8rem; font-weight: 900; letter-spacing: .18em; }
.ops-service strong { max-width: 100%; overflow: hidden; color: #fff; font: italic 900 clamp(.95rem,1.7vw,1.35rem)/1.05 var(--font-display); text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }
.ops-service > span:last-child { color: var(--muted); font-size: 0.86rem; letter-spacing: .08em; text-transform: uppercase; }
.status-pip { position: absolute; top: 1rem; right: 1rem; width: 8px; height: 8px; border-radius: 50%; background: var(--bad); box-shadow: 0 0 10px var(--bad); }
.status-pip.online { background: var(--good); box-shadow: 0 0 11px var(--good); }
.ops-stats { grid-template-columns: repeat(auto-fit,minmax(120px,1fr)); overflow: hidden; }
.ops-control-grid { grid-template-columns: 1.1fr .9fr .9fr; margin: 1.2rem 0; }
.ops-bottom-grid { grid-template-columns: repeat(3,minmax(0,1fr)); margin-top: 1.2rem; }
.ops-overview-grid { grid-template-columns: repeat(3,minmax(0,1fr)); margin: 1.2rem 0; }
.ops-action-grid { grid-template-columns: repeat(2,minmax(0,1fr)); margin: 1.2rem 0; }
.ops-nav { display: flex; gap: .45rem; margin: -1rem 0 1.25rem; padding: .45rem; overflow-x: auto; border: 1px solid rgba(89,169,225,.24); background: rgba(4,10,25,.72); }
.ops-nav a { flex: 0 0 auto; padding: .65rem .95rem; color: #8fa6c2; font-size: 0.84rem; font-weight: 900; letter-spacing: .1em; text-decoration: none; text-transform: uppercase; }
.ops-nav a:hover,.ops-nav a.active { color: #fff; background: linear-gradient(100deg,rgba(255,126,34,.34),rgba(61,124,210,.24)); box-shadow: inset 3px 0 0 var(--orange); }
.ops-account-control { margin: 1.2rem 0; border-color: rgba(255,164,61,.42); }
.ops-account-control form { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); align-items: start; gap: .75rem; margin-top: 1rem; }
.ops-account-control form p { margin: 0; }
.ops-account-control form label { margin: 0 0 .42rem; }
.ops-account-control form .button { grid-column: 1/-1; justify-self: start; }
.ops-form-field { display: grid; grid-template-rows: auto 48px minmax(2.8rem,auto); align-items: start; min-width: 0; }
.ops-form-field input,.ops-form-field select { height: 48px; margin: 0; }
.helptext,.field-help { display: block; margin-top: .35rem; color: #71849c; font-size: 0.82rem; font-weight: 500; letter-spacing: 0; line-height: 1.35; text-transform: none; }
.ops-summary-list .row { align-items: center; }
.ops-summary-list .row > span:first-child { display: grid; gap: .18rem; }
.ops-summary-list .row > span:last-child { flex: 0 0 auto; text-align: right; }
.ops-stats-focused { grid-template-columns: repeat(6,minmax(100px,1fr)); }
.record-header,.session-card > header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.record-header { padding: 0 0 1rem; border-bottom: 1px solid rgba(122,169,210,.2); }
.record-header h2 { margin: 0; }
.record-header > span { color: var(--muted); font-size: 0.86rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.ops-record-list { padding-bottom: .6rem; }
.record-row { display: grid; grid-template-columns: 1.1fr .8fr .7fr .8fr 1.4fr; gap: 1rem; align-items: center; padding: 1rem .15rem; border-bottom: 1px solid rgba(122,169,210,.16); }
.record-row:last-child { border-bottom: 0; }
.record-row > div { display: grid; gap: .28rem; min-width: 0; }
.record-row small { color: #71849c; font-size: 0.8rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.record-row b,.record-row strong { overflow-wrap: anywhere; color: #e7f4ff; }
.invite-record > div:last-child { justify-items: start; }
.session-record { grid-template-columns: 1fr .9fr .65fr 1fr 1.1fr; }
.compact-filter { margin-bottom: 1rem; padding: 1rem 1.2rem; }
.compact-filter label { margin: 0; }
.compact-filter form > div { display: flex; gap: .7rem; align-items: center; }
.compact-filter input { margin: 0; }
.compact-filter .button { flex: 0 0 auto; }
.pagination { display: flex; align-items: center; justify-content: center; gap: 1rem; margin: 1.2rem 0; }
.pagination a { padding: .65rem .9rem; color: #dffaff; border: 1px solid rgba(78,220,255,.42); background: rgba(12,55,80,.55); font-size: 0.84rem; font-weight: 900; text-decoration: none; text-transform: uppercase; }
.pagination span { color: var(--muted); font-size: 0.86rem; }
.ops-system-grid { grid-template-columns: 1fr 1fr; }
.ops-audit-list { margin-top: 1.2rem; }
.ops-command-card { display: flex; align-items: center; justify-content: space-between; gap: 2rem; margin-top: 1.2rem; border-color: rgba(78,220,255,.45); background: linear-gradient(100deg,rgba(18,70,108,.58),rgba(8,17,38,.92)); }
.ops-command-card h2 { margin-bottom: .3rem; }
.ops-command-card p:last-child { margin-bottom: 0; }
.ops-command-card .button { flex: 0 0 auto; }
.database-health-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(220px,1fr)); gap: .65rem; padding-top: 1rem; }
.database-health-grid p,.backup-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin: 0; padding: .8rem; border: 1px solid rgba(111,170,222,.15); background: rgba(3,10,24,.38); }
.database-health-grid strong,.backup-row strong { overflow-wrap: anywhere; color: #e9f6ff; }
.backup-row span { color: var(--muted); }
.ops-system-section { margin-top: 1.2rem; }
.session-card-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1.2rem; }
.race-archive-heading { margin-top: 2.3rem; }
.race-detail-results .telemetry-note { margin: 1rem 1.4rem 1.4rem; }
.session-card { min-width: 0; }
.session-card h2 { margin-bottom: 0; }
.session-card h3 { margin: 1rem 0 .6rem; color: #e9f6ff; font-size: 0.91rem; letter-spacing: .12em; text-transform: uppercase; }
.session-facts { display: grid; grid-template-columns: 1fr 1fr; gap: .65rem; margin: 1rem 0; }
.session-facts p { display: grid; gap: .25rem; margin: 0; padding: .75rem; border: 1px solid rgba(93,159,211,.2); background: rgba(5,14,32,.56); }
.session-facts small { color: #66809e; font-size: 0.8rem; font-weight: 900; letter-spacing: .12em; }
.session-facts strong { color: #eaf7ff; font-size: .82rem; overflow-wrap: anywhere; }
.racer-list { display: flex; gap: .5rem; flex-wrap: wrap; }
.racer-list > span { display: grid; gap: .12rem; min-width: 120px; padding: .55rem .7rem; border-left: 2px solid var(--cyan); background: rgba(18,51,82,.46); }
.racer-list b { color: #eaffff; font-size: 0.94rem; }
.racer-list small { font-size: 0.8rem; text-transform: uppercase; }
.telemetry-note { margin: 1rem 0 0; padding: .8rem; border-left: 2px solid rgba(255,151,49,.7); color: #8ea2ba !important; background: rgba(61,32,18,.25); font-size: 0.89rem; }
.empty-state { grid-column: 1/-1; min-height: 220px; display: grid; place-content: center; text-align: center; }
.owner-credit { color: #d8f7ff; font-style: italic; font-weight: 900; letter-spacing: .1em; text-shadow: 0 0 14px rgba(78,220,255,.32); text-transform: none; }
.ops-table { margin-top: 1.2rem; }
.ops-table td:first-child small { display: block; color: #71849c; }
.ops-table form { margin: 0; }
.table-action { min-height: 32px; padding: .42rem .65rem; border: 1px solid rgba(78,220,255,.48); color: #dffaff; background: rgba(12,55,80,.6); font: 800 0.8rem/1 var(--font-ui); letter-spacing: .06em; text-transform: uppercase; cursor: pointer; }
.table-action:hover { color: #fff; border-color: var(--cyan); background: rgba(21,103,138,.78); }
.table-action.danger { border-color: rgba(255,120,148,.48); color: #ffdce4; background: rgba(93,22,46,.48); }
.tag { display: inline-flex; align-items: center; padding: .32rem .52rem; border: 1px solid rgba(119,151,188,.3); color: #aebdd0; background: rgba(31,45,67,.55); font-size: 0.8rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.tag-good { border-color: rgba(114,255,193,.4); color: var(--good); background: rgba(18,83,66,.36); }
.tag-bad { border-color: rgba(255,105,137,.42); color: #ff9aae; background: rgba(99,22,49,.42); }
.one-time-secret { margin-bottom: 1.2rem; border-color: rgba(255,164,61,.58); }
.one-time-secret code { display: block; margin-top: .8rem; padding: .85rem; border: 1px solid rgba(255,164,61,.28); background: rgba(4,8,18,.82); user-select: all; }
.audit-row { display: grid; grid-template-columns: 1fr auto; gap: .15rem .75rem; margin: 0; padding: .75rem 0; border-bottom: 1px solid rgba(122,169,210,.17); }
.audit-row strong { color: #eaf5ff; font-size: 0.94rem; text-transform: uppercase; }
.audit-row span { color: var(--cyan); font-size: 0.86rem; }
.audit-row small { grid-column: 1/-1; color: #71849c; overflow-wrap: anywhere; }
footer { display: flex; align-items: center; justify-content: space-between; gap: 1rem 2rem; flex-wrap: wrap; padding: 1.6rem clamp(1rem,4vw,4.5rem); border-top: 1px solid rgba(92,181,234,.18); color: #657991; background: rgba(2,5,14,.7); font-size: 0.84rem; letter-spacing: .07em; text-transform: uppercase; }
footer span { display: flex; gap: 1rem; }
footer a { color: #8ea6bf; text-decoration: none; }
.footer-brand { color: #b9c9dc; font-weight: 900; }
@media (max-width: 900px) {
  .site-header { align-items: flex-start; flex-direction: column; gap: .75rem; }
  nav { justify-content: flex-start; }
  .panel-hero { min-height: 0; grid-template-columns: 1fr; }
  .hero-orbit { position: absolute; right: -6%; bottom: -25%; width: 250px; opacity: .42; }
  .hero-copy { position: relative; z-index: 2; }
  .grid.three { grid-template-columns: 1fr; }
  .feature-card { min-height: 0; }
  .ops-status-grid { grid-template-columns: 1fr 1fr; }
  .ops-stats { grid-template-columns: repeat(4,minmax(90px,1fr)); }
  .ops-control-grid,.ops-bottom-grid,.ops-overview-grid,.ops-action-grid { grid-template-columns: 1fr; }
  .ops-stats-focused { grid-template-columns: repeat(3,minmax(90px,1fr)); }
  .record-row { grid-template-columns: 1fr 1fr; }
  .record-row > div:last-child { grid-column: 1/-1; }
  .session-card-grid { grid-template-columns: 1fr; }
  .ops-system-grid { grid-template-columns: 1fr; }
  .ops-command-card { align-items: stretch; flex-direction: column; }
  .ops-command-card .button { width: 100%; }
  .ops-account-control form { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .site-header { min-height: 0; padding: .8rem .75rem; gap: .55rem; }
  .brand { gap: .55rem; }
  .brand-mark { width: 31px; height: 31px; }
  .brand-mark::before,.brand-mark::after { width: 7px; height: 7px; }
  .brand-mark i { width: 8px; height: 8px; left: 10px; }
  .brand-copy { font-size: 1rem; }
  .brand-copy small { display: none; }
  nav { width: 100%; gap: .18rem; overflow: visible; flex-wrap: wrap; }
  nav a,.nav-form button { flex: 0 0 auto; padding: .52rem .58rem; font-size: 0.8rem; }
  nav .nav-access { margin-left: 0; }
  .page-shell { width: min(100% - 1rem,1180px); margin-top: 1.2rem; }
  .panel { padding: 1.15rem; }
  .panel-hero { padding: 2rem 1.3rem 2.4rem; }
  .hero-title { padding-left: .72rem; padding-right: 1.1rem; }
  .hero-title-main { font-size: clamp(2.15rem,12vw,3.25rem); }
  .hero-title::after { display: none; }
  .page-title h1 { font-size: clamp(1.8rem,8vw,2.2rem); line-height: .96; }
  .operator-heading h1 { font-size: clamp(1.8rem,8.8vw,2.25rem); letter-spacing: .005em; }
  .hero-orbit { display: none; }
  .actions { align-items: stretch; flex-direction: column; }
  .button { width: 100%; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stats div { min-height: 105px; border-bottom: 1px solid rgba(111,170,222,.14); }
  .stats div:nth-child(2n) { border-right: 0; }
  .ops-status-grid { grid-template-columns: 1fr 1fr; gap: .55rem; }
  .ops-service { min-height: 112px; padding: 1rem; }
  .ops-stats { grid-template-columns: 1fr 1fr; }
  .ops-account-control form { grid-template-columns: 1fr; }
  .ops-account-control form .button { width: 100%; }
  .table-wrap { margin-left: -.1rem; margin-right: -.1rem; }
  .table-wrap h2 { padding-left: 1rem; }
  table { min-width: 610px; }
  footer { align-items: flex-start; flex-direction: column; }
  .ops-nav { margin-top: -.6rem; }
  .ops-stats-focused { grid-template-columns: 1fr 1fr; }
  .record-row,.session-record { grid-template-columns: 1fr; gap: .55rem; }
  .record-row > div:last-child { grid-column: auto; }
  .compact-filter form > div { align-items: stretch; flex-direction: column; }
  .pagination { flex-wrap: wrap; }
  .session-facts { grid-template-columns: 1fr; }
  .mobile-race-table { min-width: 0; display: block; }
  .mobile-race-table thead { display: none; }
  .mobile-race-table tbody,.mobile-race-table tr { display: block; }
  .mobile-race-table tr { padding: .55rem 0; border-bottom: 1px solid rgba(111,170,222,.18); }
  .mobile-race-table td { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; width: 100%; border: 0; text-align: right; overflow-wrap: anywhere; }
  .mobile-race-table td::before { content: attr(data-label); color: #7b9bb5; font-size: 0.8rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; text-align: left; }
  .mobile-race-table td[colspan] { display: block; text-align: left; }
  .mobile-race-table td[colspan]::before { display: none; }
  .rule-duo,.privacy-grid { grid-template-columns: 1fr; }
  .rule-duo article + article { border-left: 0; border-top: 1px solid rgba(91,181,236,.22); }
  .war-callout { width: 100%; padding-left: .9rem; padding-right: .9rem; text-align: center; }
}
@media (max-width: 380px) {
  .page-shell { width: calc(100% - .7rem); }
  .panel-hero { padding: 1.7rem 1rem 2rem; }
  .hero-title-main { font-size: 2.05rem; }
  .stats,.ops-status-grid,.ops-stats { grid-template-columns: 1fr; }
  .stats div,.ops-stats div { border-right: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *,*::before,*::after { scroll-behavior: auto !important; transition: none !important; }
}

/* Race result: game track picture, car, mods and fans (2026-10-11). */
.race-hero { display: grid; grid-template-columns: minmax(0,384px) 1fr; gap: 1.4rem; align-items: center; padding: 1.1rem; margin-top: 1rem; }
.race-hero:not(.has-image) { grid-template-columns: 1fr; }
.race-hero img { width: 100%; height: auto; display: block; border-radius: 6px; border: 1px solid rgba(111,170,222,.28); box-shadow: 0 0 22px rgba(176,116,255,.25); }
.race-hero h1 { margin: .2rem 0 .4rem; }
.race-card { overflow: hidden; }
.race-card-image { display: block; width: 100%; height: 132px; object-fit: cover; margin: 0 0 1rem; border-radius: 6px; border: 1px solid rgba(111,170,222,.22); }
.race-results-table td { vertical-align: top; }
.race-pos { font-weight: 800; color: #fff; }
.race-sub { display: block; margin-top: .25rem; color: var(--muted); font-size: 0.86rem; font-weight: 600; line-height: 1.35; }
.car-class { display: inline-block; margin-left: .3rem; padding: 0 .4rem; border-radius: 3px; background: rgba(176,116,255,.22); color: #fff; font-size: 0.82rem; font-weight: 800; }
.mod-chip { display: inline-block; margin: 0 .25rem .25rem 0; padding: .12rem .5rem; border-radius: 999px; border: 1px solid rgba(255,190,90,.45); color: #ffd79a; font-size: 0.86rem; font-weight: 700; white-space: nowrap; }
@media (max-width: 720px) {
  .race-hero { grid-template-columns: 1fr; }
}

/* Live public grid (2026-10-11): Blur in-game style effects. */
.live-indicator { display: inline-flex; align-items: center; gap: .35rem; margin-left: .6rem; padding: .1rem .55rem; border-radius: 999px; border: 1px solid rgba(114,255,193,.5); color: var(--good); font-size: 0.8rem; letter-spacing: .14em; }
.live-indicator::before { content: ""; width: .45rem; height: .45rem; border-radius: 50%; background: var(--good); box-shadow: 0 0 8px var(--good); }
.live-offline .live-indicator { border-color: rgba(140,150,170,.4); color: #8a95a8; }
.live-offline .live-indicator::before { background: #6c7686; box-shadow: none; }
.live-degraded .live-indicator { border-color: rgba(255,154,61,.6); color: #ffb062; }
.live-degraded .live-indicator::before { background: var(--orange); box-shadow: 0 0 8px var(--orange); }
.live-degraded .fx-beat::before { animation-name: fx-beat-warn; }
@keyframes fx-beat-warn { 0% { transform: scale(1); } 30% { transform: scale(1.8); box-shadow: 0 0 16px var(--orange); } 100% { transform: scale(1); } }
.fx-beat::before { animation: fx-beat .9s ease-out; }
@keyframes fx-beat { 0% { transform: scale(1); } 30% { transform: scale(1.8); box-shadow: 0 0 16px var(--good); } 100% { transform: scale(1); } }

/* Shunt: new race drops in with a purple shockwave ring. */
.fx-shunt { animation: fx-shunt-drop .7s cubic-bezier(.2,1.2,.3,1), fx-shunt-ring 1.1s ease-out; }
@keyframes fx-shunt-drop { 0% { opacity: 0; transform: translateY(-28px) scale(1.07); filter: brightness(1.9); } 100% { opacity: 1; transform: none; filter: none; } }
/* The panel is clip-pathed, so the shockwave is drawn inward from the frame. */
@keyframes fx-shunt-ring { 0% { box-shadow: inset 0 0 0 4px rgba(176,116,255,.95), inset 0 0 60px rgba(176,116,255,.75); } 100% { box-shadow: inset 0 0 0 0 rgba(176,116,255,0), inset 0 0 0 rgba(176,116,255,0); } }

.fx-fade { animation: fx-fade .6s ease-in forwards; }
@keyframes fx-fade { to { opacity: 0; transform: translateY(10px); } }

/* Neon flicker when a live number changes. */
.fx-tick { animation: fx-tick .8s steps(1,end); }
@keyframes fx-tick {
  0% { color: #fff; text-shadow: 0 0 22px #b074ff, 0 0 8px #fff; }
  20% { opacity: .35; }
  35% { opacity: 1; }
  50% { opacity: .55; }
  65% { opacity: 1; text-shadow: 0 0 18px #48e6ff; }
  100% { text-shadow: 0 0 16px rgba(176,116,255,.7); }
}

@media (prefers-reduced-motion: reduce) {
  .fx-shunt,.fx-fade,.fx-tick,.fx-beat::before { animation: none !important; }
}


/* Racing type hierarchy (2026-10-11). Headings read like Blur's menus:
 * heavy, slanted, uppercase. Labels are condensed and spaced for scanning. */
body { color: #e9f1ff; font-feature-settings: "lnum" 1; }
p, li, td, .lead { font-family: var(--font-body); }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: #b9c8de; }
:where(h1, h2) {
  font-family: var(--font-display); font-style: italic; font-weight: 900;
  text-transform: uppercase; letter-spacing: .005em; line-height: 1.02;
}
:where(.page-title h1, .race-hero h1) { font-size: clamp(2.3rem, 5vw, 3.6rem); }
:where(.page-title h2, .panel h2) { font-size: clamp(1.45rem, 2.6vw, 2.05rem); }
:where(h3) { font-family: var(--font-ui); font-weight: 700; font-size: .95rem; letter-spacing: .12em; text-transform: uppercase; }
.eyebrow, th, .tag, .stats span, .stats small, .session-facts small, nav a, .button, button, .nav-form button, .live-indicator, footer, .race-sub, .car-class {
  font-family: var(--font-ui);
}
.eyebrow { font-size: .92rem; font-weight: 700; letter-spacing: .16em; }
nav a, .nav-form button { font-size: .98rem; font-weight: 700; letter-spacing: .08em; }
.button, button { font-weight: 700; letter-spacing: .08em; font-size: 1rem; }
th { font-size: .86rem; font-weight: 700; letter-spacing: .12em; }
td { font-size: 1rem; }
.tag { font-size: .8rem; font-weight: 700; letter-spacing: .12em; }
.stats strong { font-family: var(--font-display); font-style: italic; font-weight: 900; font-size: clamp(2rem, 4vw, 2.9rem); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.stats span { font-size: .9rem; font-weight: 700; letter-spacing: .12em; }
.session-facts strong { font-family: var(--font-display); font-style: italic; font-weight: 800; font-size: 1.25rem; font-variant-numeric: tabular-nums; }
.session-facts small { font-size: .8rem; font-weight: 700; letter-spacing: .14em; }
.racer-list b { font-family: var(--font-ui); font-size: 1.02rem; font-weight: 700; letter-spacing: .03em; }
.racer-list small { font-family: var(--font-ui); font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; }
.race-pos { font-family: var(--font-display); font-style: italic; font-weight: 900; font-size: 1.35rem; }
.race-results-table td strong { font-family: var(--font-ui); font-size: 1.1rem; font-weight: 700; }
.race-results-table td[data-label="Race time"], .race-results-table td[data-label="Fans"] strong { font-family: var(--font-display); font-style: italic; font-weight: 800; font-size: 1.15rem; font-variant-numeric: tabular-nums; }
.race-sub { font-size: .85rem; font-weight: 600; letter-spacing: .04em; }
.mod-chip { font-family: var(--font-ui); font-size: .85rem; font-weight: 700; letter-spacing: .04em; }
.car-class { font-size: .78rem; }
.telemetry-note { font-size: .92rem; line-height: 1.55; }
/* Brand stays upright: logo and name are not slanted. */
.brand-copy { font-family: var(--font-ui); font-style: normal; font-weight: 600; font-size: 1.35rem; color: #bfeeff; }
.brand-copy strong { font-weight: 700; color: #fff; }
.brand-copy small { font-family: var(--font-ui); font-style: normal; font-size: .72rem; letter-spacing: .22em; }

.hero-title::after { position: static; display: block; margin-top: .45rem; text-align: right; }
.mobile-race-table td::before { font-family: var(--font-ui); font-style: normal; font-weight: 700; }

@media (max-width: 620px) {
  :where(.page-title h1, .race-hero h1) { font-size: clamp(2rem, 10vw, 2.6rem); }
  nav a, .nav-form button { font-size: .86rem; }
  /* Long values (mod chips, names) wrap inside the card instead of
   * widening the table and pushing values off screen. */
  .mobile-race-table td { flex-wrap: wrap; row-gap: .35rem; }
  .mobile-race-table td::before { font-size: .8rem; flex: 0 0 auto; }
  .mobile-race-table td[data-label="Mods"] { justify-content: flex-end; }
  .race-results-table .race-sub { flex-basis: 100%; text-align: right; }
}

/* In-place navigation (nav.js): a Blur "nitro" boost between pages.
 * The old page streaks out, a light trail and speed lines sweep the screen,
 * and the new page's panels drive in one after another. */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.nav-boost { position: fixed; inset: 0; z-index: 90; pointer-events: none; overflow: hidden; }
.nav-boost i { position: absolute; display: block; opacity: 0; }
.nav-boost-trail { top: 38%; left: 0; width: 55vw; height: 26%; background: linear-gradient(90deg, transparent, rgba(66,209,255,.08) 30%, rgba(120,235,255,.55) 78%, #fff 92%, transparent); filter: drop-shadow(0 0 22px rgba(66,209,255,.75)); transform: translateX(-60vw) skewX(-24deg); mix-blend-mode: screen; }
.nav-boost-lines { inset: 0; background: repeating-linear-gradient(180deg, transparent 0 34px, rgba(120,225,255,.22) 34px 35px, transparent 35px 81px, rgba(155,120,255,.18) 81px 82px); transform: translateX(30vw) scaleX(2.4); }
.nav-boost-bar { top: 0; left: 0; width: 100%; height: 3px; background: linear-gradient(90deg, transparent, var(--cyan), #9b7bff, var(--orange), transparent); box-shadow: 0 0 14px rgba(66,209,255,.9); transform: translateX(-100%); }
.nav-boost.boost .nav-boost-trail { animation: boost-trail .62s cubic-bezier(.3,.6,.2,1); }
.nav-boost.boost .nav-boost-lines { animation: boost-lines .55s ease-out; }
.nav-boost.loading .nav-boost-bar { opacity: 1; animation: boost-bar .9s linear infinite; }
@keyframes boost-trail {
  0% { opacity: 0; transform: translateX(-60vw) skewX(-24deg); }
  18% { opacity: 1; }
  100% { opacity: 0; transform: translateX(130vw) skewX(-24deg); }
}
@keyframes boost-lines {
  0% { opacity: 0; transform: translateX(40vw) scaleX(2.4); }
  30% { opacity: .9; }
  100% { opacity: 0; transform: translateX(-60vw) scaleX(2.4); }
}
@keyframes boost-bar { from { transform: translateX(-100%); } to { transform: translateX(100%); } }

main.page-shell.nav-leave { animation: page-leave .23s cubic-bezier(.55,0,1,.45) forwards; }
@keyframes page-leave { to { opacity: 0; transform: translateX(-6vw) skewX(-4deg); } }
main.page-shell.nav-enter > * { animation: page-enter .5s cubic-bezier(.16,.9,.25,1) backwards; }
main.page-shell.nav-enter > :nth-child(2) { animation-delay: .05s; }
main.page-shell.nav-enter > :nth-child(3) { animation-delay: .1s; }
main.page-shell.nav-enter > :nth-child(4) { animation-delay: .15s; }
main.page-shell.nav-enter > :nth-child(n+5) { animation-delay: .2s; }
@keyframes page-enter {
  0% { opacity: 0; transform: translateX(9vw) skewX(-7deg); }
  60% { opacity: 1; transform: translateX(-.6vw) skewX(1deg); }
  100% { opacity: 1; transform: none; }
}

/* Current page in the menu: lit like a selected item in Blur's menus. */
.site-header nav a[aria-current="page"] { color: #fff; text-shadow: 0 0 14px rgba(66,209,255,.75); }
.site-header nav a[aria-current="page"]::after { transform: scaleX(1); }

@media (prefers-reduced-motion: reduce) {
  .nav-boost i, main.page-shell.nav-leave, main.page-shell.nav-enter > * { animation: none !important; }
}
/* nav.js moves focus to the new page title for screen readers; no ring. */
main.page-shell :is(h1, h2)[tabindex="-1"]:focus { outline: none; }
/* The menu stays on screen while scrolling either way. */
.site-header { position: sticky; top: 0; z-index: 50; }
html { scroll-padding-top: 110px; }

/* Live lobby effects (2026-10-12), in the same boost style as page changes.
 * Boost launch: a new lobby drives in from the right and overshoots, while a
 * light trail and speed lines sweep through it. */
.fx-launch { animation: fx-launch .78s cubic-bezier(.16,.9,.25,1), fx-launch-glow 1.3s ease-out; }
@keyframes fx-launch {
  0% { opacity: 0; transform: translateX(14vw) skewX(-12deg); filter: brightness(2.1) saturate(1.4); }
  55% { opacity: 1; transform: translateX(-1.4vw) skewX(2.5deg); filter: brightness(1.3); }
  78% { transform: translateX(.35vw) skewX(-.6deg); }
  100% { opacity: 1; transform: none; filter: none; }
}
/* The panel is clip-pathed, so the glow is drawn inward from the frame. */
@keyframes fx-launch-glow {
  0%, 30% { box-shadow: inset 0 0 0 2px rgba(110,230,255,.95), inset 0 0 70px rgba(66,209,255,.45); }
  100% { box-shadow: inset 0 0 0 0 rgba(110,230,255,0), inset 0 0 0 rgba(66,209,255,0); }
}

/* Drive off: a closed lobby revs back, then rockets away to the right. */
.fx-driveoff { animation: fx-driveoff .65s cubic-bezier(.55,0,.85,.45) forwards; pointer-events: none; }
@keyframes fx-driveoff {
  0% { transform: none; opacity: 1; }
  24% { transform: translateX(-16px) skewX(4deg); filter: brightness(1.25); }
  100% { opacity: 0; transform: translateX(65vw) skewX(-20deg); filter: brightness(2.2); }
}

/* Trail and speed lines inside a card (added by sessions-live.js). */
.panel > .fx-streak { position: absolute; inset: 0; z-index: 3; overflow: hidden; pointer-events: none; }
.fx-streak::before { content: ""; position: absolute; top: -25%; bottom: -25%; left: 0; width: 55%; background: linear-gradient(90deg, transparent, rgba(66,209,255,.1) 30%, rgba(140,240,255,.62) 80%, #fff 92%, transparent); filter: drop-shadow(0 0 18px rgba(66,209,255,.8)); mix-blend-mode: screen; transform: translateX(-130%) skewX(-24deg); animation: fx-trail .85s .12s cubic-bezier(.3,.6,.2,1) both; }
.fx-streak::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(180deg, transparent 0 22px, rgba(120,225,255,.32) 22px 23px, transparent 23px 53px, rgba(155,120,255,.26) 53px 54px); animation: fx-lines .7s ease-out both; }
.fx-streak-out::before { animation-delay: .1s; }
.fx-streak-out::after { animation-name: fx-lines-out; }
@keyframes fx-trail { 0% { opacity: 0; transform: translateX(-130%) skewX(-24deg); } 20% { opacity: 1; } 100% { opacity: 0; transform: translateX(260%) skewX(-24deg); } }
@keyframes fx-lines { 0% { opacity: 0; transform: translateX(50%) scaleX(2.4); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateX(-60%) scaleX(2.4); } }
@keyframes fx-lines-out { 0% { opacity: 0; transform: translateX(-50%) scaleX(2.4); } 35% { opacity: 1; } 100% { opacity: 0; transform: translateX(60%) scaleX(2.4); } }

/* Racers get the lobby treatment at their own scale: launch in with an
 * overshoot, frame glow, trail and speed lines; drive off with a trail. */
.racer-list > span { position: relative; overflow: hidden; }
.racer-list > span > .fx-streak { position: absolute; inset: 0; z-index: 3; overflow: hidden; pointer-events: none; }
.racer-list .fx-streak::after { background: repeating-linear-gradient(180deg, transparent 0 7px, rgba(120,225,255,.42) 7px 8px, transparent 8px 17px, rgba(155,120,255,.34) 17px 18px); }
.fx-launch-racer { animation: fx-launch-racer .72s cubic-bezier(.16,.9,.25,1), fx-launch-racer-glow 1.2s ease-out; }
@keyframes fx-launch-racer {
  0% { opacity: 0; transform: translateX(150px) skewX(-14deg); filter: brightness(2.2) saturate(1.4); }
  55% { opacity: 1; transform: translateX(-9px) skewX(3deg); filter: brightness(1.35); }
  78% { transform: translateX(3px) skewX(-.8deg); }
  100% { opacity: 1; transform: none; filter: none; }
}
@keyframes fx-launch-racer-glow {
  0%, 30% { box-shadow: inset 0 0 0 1px rgba(110,230,255,.95), inset 0 0 26px rgba(66,209,255,.55), 0 0 18px rgba(66,209,255,.55); }
  100% { box-shadow: inset 0 0 0 0 rgba(110,230,255,0), inset 0 0 0 rgba(66,209,255,0), 0 0 0 rgba(66,209,255,0); }
}
.fx-launch-racer b { animation: fx-name-flash .9s ease-out; }
@keyframes fx-name-flash { 0%, 40% { color: #fff; text-shadow: 0 0 12px #6ee6ff, 0 0 4px #fff; } 100% { text-shadow: none; } }
.fx-driveoff-racer { animation: fx-driveoff-racer .6s cubic-bezier(.55,0,.85,.45) forwards; pointer-events: none; }
@keyframes fx-driveoff-racer {
  0% { transform: none; opacity: 1; }
  24% { transform: translateX(-10px) skewX(5deg); filter: brightness(1.3); }
  100% { opacity: 0; transform: translateX(170px) skewX(-22deg); filter: brightness(2.2); }
}

/* "No public lobby" placeholder: powers down and on like a screen, so it
 * never flashes beside a real lobby. */
.fx-standby-off { animation: fx-standby-off .32s ease-in forwards; pointer-events: none; }
@keyframes fx-standby-off {
  0% { transform: none; opacity: 1; filter: none; }
  45% { transform: scaleY(.03); opacity: 1; filter: brightness(2.6); }
  100% { transform: scaleY(.02) scaleX(0); opacity: 0; }
}
.fx-standby-on { animation: fx-standby-on .5s ease-out; }
@keyframes fx-standby-on {
  0% { transform: scaleY(.02) scaleX(0); opacity: 0; }
  40% { transform: scaleY(.03) scaleX(1); opacity: 1; filter: brightness(2.6); }
  100% { transform: none; filter: none; }
}

@media (prefers-reduced-motion: reduce) {
  .fx-launch, .fx-driveoff, .fx-launch-racer, .fx-launch-racer b, .fx-driveoff-racer, .fx-standby-off, .fx-standby-on, .fx-streak::before, .fx-streak::after { animation: none !important; }
}

/* Setup page: one-step download check (verify-download.js). */
.setup-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
.setup-meta { color: #8fa6c2; font-family: var(--font-ui); font-size: .9rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.verify-box { margin-top: 1.6rem; padding: 1.1rem 1.2rem 1.2rem; border: 1px solid rgba(86,163,216,.3); border-left: 3px solid var(--cyan); background: rgba(3,10,24,.55); }
.verify-box h3 { margin: 0 0 .4rem; color: #e9f6ff; }
.verify-box > p { margin: 0 0 .9rem; color: #b8c7da; }
.verify-zone { position: relative; display: grid; place-items: center; gap: .2rem; min-height: 120px; padding: 1rem; border: 2px dashed rgba(110,200,255,.45); background: rgba(18,51,82,.25); text-align: center; cursor: pointer; transition: border-color .15s ease, background .15s ease, transform .15s ease; }
.verify-zone:hover, .verify-zone.drag-over, .verify-zone:focus-within { border-color: var(--cyan); background: rgba(40,120,180,.22); }
.verify-zone.drag-over { transform: scale(1.01); }
.verify-zone input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.verify-zone-title { font-family: var(--font-display); font-style: italic; font-weight: 800; font-size: 1.3rem; color: #fff; text-transform: uppercase; }
.verify-zone-sub { color: #8fa6c2; font-size: .95rem; }
.verify-result { display: grid; gap: .15rem; margin: .9rem 0 0; min-height: 1.5rem; }
.verify-result:empty { display: none; }
.verify-result strong { font-family: var(--font-display); font-style: italic; font-weight: 900; font-size: 1.5rem; text-transform: uppercase; }
.verify-result span { color: #b8c7da; }
.verify-box[data-state="good"] { border-color: rgba(114,255,193,.55); border-left-color: var(--good); box-shadow: inset 0 0 40px rgba(114,255,193,.08); }
.verify-box[data-state="good"] .verify-result strong { color: var(--good); }
.verify-box[data-state="good"] .verify-result strong::before { content: "✔ "; }
.verify-box[data-state="bad"] { border-color: rgba(255,96,64,.6); border-left-color: #ff5a3c; box-shadow: inset 0 0 40px rgba(255,90,60,.1); }
.verify-box[data-state="bad"] .verify-result strong { color: #ff8a70; }
.verify-box[data-state="bad"] .verify-result strong::before { content: "✘ "; }
.verify-box[data-state="busy"] .verify-result strong { color: #bcecff; }
.download-command { display: block; margin: .4rem 0 .6rem; padding: .7rem; color: #e4fbff; background: rgba(0,0,0,.3); overflow-wrap: anywhere; user-select: all; }
.download-proof .download-fingerprint { overflow-wrap: anywhere; user-select: all; }

/* Operator console (2026-10-13): live moderation. */
.ops-status-strip { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1rem; }
.ops-chip { position: relative; display: inline-flex; align-items: center; gap: .45rem; padding: .45rem .75rem; border: 1px solid rgba(110,170,220,.25); background: rgba(6,16,34,.7); color: #a9bed5; font-family: var(--font-ui); font-size: .85rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.ops-chip b { color: #e9f6ff; }
.ops-chip .status-pip { position: static; }
.ops-chip-release b { font-family: var(--font-body); font-weight: 600; letter-spacing: 0; text-transform: none; }
.ops-hint { margin: .2rem 0 1rem; color: #9fb3ca; font-size: .95rem; }
.ops-hint b { color: #e9f6ff; }
.text-bad { color: #ff9aae !important; }
.tag-warn { border-color: rgba(255,170,80,.5); color: #ffc078; background: rgba(110,60,10,.38); }

.online-list { display: grid; gap: .55rem; }
.online-row, .player-row { display: grid; grid-template-columns: minmax(180px,1.4fr) minmax(110px,.7fr) minmax(110px,.7fr) auto; gap: 1rem; align-items: center; padding: .8rem .9rem; border: 1px solid rgba(110,170,220,.18); border-left: 3px solid var(--good); background: rgba(6,18,38,.6); }
.player-row { grid-template-columns: minmax(180px,1.3fr) minmax(150px,1fr) minmax(80px,.5fr) minmax(130px,.8fr) auto; border-left-color: rgba(110,170,220,.35); }
.player-row.status-suspended { border-left-color: var(--orange); }
.player-row.status-banned { border-left-color: #ff5a6e; background: rgba(40,10,24,.5); }
.online-who, .player-who { display: flex; align-items: center; gap: .65rem; min-width: 0; }
.online-who strong, .player-who strong { display: block; font-family: var(--font-ui); font-size: 1.15rem; letter-spacing: .02em; color: #fff; }
.online-who small, .player-who small, .online-facts small, .player-facts small { display: block; color: #8fa6c2; font-size: .82rem; }
.online-facts small, .player-facts small { font-family: var(--font-ui); font-weight: 700; letter-spacing: .12em; }
.online-facts b, .player-facts b { color: #e4f2ff; font-weight: 600; }
.player-state { display: grid; justify-items: start; gap: .2rem; }
.player-state small { color: #9fb3ca; font-size: .85rem; }
.player-reason { font-style: italic; }
.online-pip { flex: 0 0 auto; width: 10px; height: 10px; border-radius: 50%; background: var(--good); box-shadow: 0 0 10px var(--good); animation: online-pulse 2s ease-in-out infinite; }
@keyframes online-pulse { 50% { box-shadow: 0 0 2px var(--good); } }

.mod-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .4rem; }
.mod-actions form { margin: 0; }
.mod-btn { display: inline-flex; align-items: center; min-height: 36px; padding: .35rem .85rem; border: 1px solid; background: transparent; font-family: var(--font-ui); font-size: .9rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; cursor: pointer; list-style: none; transition: background .15s ease, color .15s ease; }
.mod-btn::-webkit-details-marker { display: none; }
.mod-kick { border-color: rgba(110,200,255,.55); color: #9fe3ff; }
.mod-kick:hover { background: rgba(60,160,220,.25); color: #fff; }
.mod-suspend { border-color: rgba(255,170,80,.6); color: #ffc078; }
.mod-suspend:hover, .mod-pop[open] > .mod-suspend { background: rgba(200,110,20,.3); color: #fff; }
.mod-ban { border-color: rgba(255,90,110,.65); color: #ff9aae; }
.mod-ban:hover, .mod-pop[open] > .mod-ban { background: rgba(190,30,60,.32); color: #fff; }
.mod-restore { border-color: rgba(114,255,193,.55); color: var(--good); }
.mod-restore:hover, .mod-pop[open] > .mod-restore { background: rgba(30,140,100,.3); color: #fff; }
.mod-pop { position: relative; }
/* An open Suspend/Ban form takes the full row width under the player, so the
 * row keeps its shape and the form is never clipped by the panel. */
.online-row:has(.mod-pop[open]) > .mod-actions, .player-row:has(.mod-pop[open]) > .mod-actions { grid-column: 1 / -1; }
.mod-pop[open] { order: 99; flex-basis: 100%; display: flex; flex-direction: column; align-items: flex-end; }
.mod-pop > form { display: grid; gap: .6rem; width: min(340px, 100%); margin-top: .5rem; padding: .9rem; border: 1px solid rgba(110,170,220,.4); background: #071226; box-shadow: 0 18px 40px rgba(0,0,0,.45); }
.mod-pop > form label { display: grid; gap: .3rem; color: #a9bed5; font-family: var(--font-ui); font-size: .82rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.mod-pop > form input, .mod-pop > form select { width: 100%; font-family: var(--font-body); letter-spacing: 0; text-transform: none; }
.mod-pop > form small { color: #8fa6c2; font-size: .82rem; }
.mod-pop-title { margin: 0; color: #fff; font-family: var(--font-display); font-style: italic; font-weight: 800; font-size: 1.15rem; text-transform: uppercase; }

.ops-filter-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
.ops-filter-chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.ops-filter-chips a { padding: .45rem .8rem; border: 1px solid rgba(110,170,220,.25); color: #a9bed5; font-family: var(--font-ui); font-size: .9rem; font-weight: 700; letter-spacing: .08em; text-decoration: none; text-transform: uppercase; }
.ops-filter-chips a b { margin-left: .25rem; color: #fff; }
.ops-filter-chips a.active, .ops-filter-chips a:hover { border-color: var(--cyan); color: #fff; background: rgba(40,120,180,.25); }
.ops-search { display: flex; gap: .5rem; }
.ops-search input { min-width: 200px; }
.ops-player-list { display: grid; gap: .55rem; }

.mod-log-row { display: grid; grid-template-columns: minmax(130px,auto) minmax(110px,.6fr) 1fr auto; gap: 1rem; align-items: center; padding: .7rem .2rem; border-bottom: 1px solid rgba(122,169,210,.14); }
.mod-log-row strong { font-family: var(--font-ui); font-size: 1.05rem; color: #fff; }
.mod-log-detail { color: #b8c7da; }
.mod-log-row small { color: #8fa6c2; }
.ops-rules ul { margin: .4rem 0 0; padding-left: 1.2rem; color: #b8c7da; }
.ops-rules li { margin: .35rem 0; }
.ops-rules b { color: #fff; }
.ops-advanced > summary { cursor: pointer; font-family: var(--font-ui); font-size: 1.05rem; font-weight: 700; color: #e9f6ff; }
.ops-advanced > summary .eyebrow { margin-right: .5rem; }
.ops-advanced[open] > summary { margin-bottom: .8rem; }

@media (max-width: 860px) {
  .online-row, .player-row { grid-template-columns: 1fr 1fr; }
  .mod-actions { grid-column: 1 / -1; justify-content: flex-start; }
  .mod-pop[open] { align-items: flex-start; }
  .mod-log-row { grid-template-columns: auto 1fr; }
  .ops-search { width: 100%; }
  .ops-search input { flex: 1; min-width: 0; }
}

/* Super-admin record management (race records, race editor, players). */
input[type="number"],input[type="datetime-local"] { display: block; width: 100%; min-height: 44px; margin-top: .42rem; padding: .6rem .7rem; border: 1px solid rgba(103,161,211,.45); border-radius: 0; outline: 0; color: #fff; background: rgba(2,7,18,.82); box-shadow: inset 3px 0 0 rgba(64,208,255,.18); font: 500 1rem/1.2 var(--font-ui); color-scheme: dark; }
input[type="number"]:focus,input[type="datetime-local"]:focus { border-color: var(--cyan); box-shadow: inset 3px 0 0 var(--cyan),0 0 18px rgba(64,205,255,.13); }
.mod-neutral { border-color: rgba(170,190,220,.5); color: #d5e2f2; }
.mod-neutral:hover, .mod-pop[open] > .mod-neutral { background: rgba(80,110,160,.3); color: #fff; }
.mod-pop > .mod-pop-body { display: grid; gap: .6rem; width: min(340px, 100%); margin-top: .5rem; padding: .9rem; border: 1px solid rgba(110,170,220,.4); background: #071226; box-shadow: 0 18px 40px rgba(0,0,0,.45); }
.mod-pop > .mod-pop-body label { display: grid; gap: .3rem; margin: 0; color: #a9bed5; font-family: var(--font-ui); font-size: .82rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.mod-pop > .mod-pop-body small { color: #8fa6c2; font-size: .82rem; }
.mod-pop > form .check-line { display: flex; align-items: center; gap: .5rem; text-transform: none; letter-spacing: 0; font-size: .92rem; }
.mod-pop > form .check-line input { width: 17px; }
.ops-cleanup { margin-bottom: 1.2rem; }
.ops-cleanup .ops-filter-chips { margin: 1rem 0; }
.cleanup-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(200px,1fr)); gap: .8rem; }
.cleanup-item { display: flex; flex-direction: column; gap: .5rem; padding: .9rem 1rem; border: 1px solid rgba(255,170,80,.35); border-left: 3px solid var(--orange); background: rgba(6,18,38,.6); transition: border-color .2s ease, transform .2s ease; }
.cleanup-item:hover { transform: translateY(-2px); }
.cleanup-item.is-clean { border-color: rgba(110,170,220,.18); border-left-color: var(--good); }
.cleanup-item > div { display: flex; align-items: baseline; justify-content: space-between; gap: .6rem; }
.cleanup-item strong { color: #fff; font-family: var(--font-display); font-style: italic; font-size: 1.05rem; text-transform: uppercase; }
.cleanup-count { color: var(--orange); font: italic 900 1.6rem/1 var(--font-display); }
.cleanup-item.is-clean .cleanup-count { color: #6f86a3; }
.cleanup-item > small { color: #8fa6c2; font-size: .86rem; }
.cleanup-item .mod-pop, .cleanup-item > .tag { align-self: flex-start; }
.cleanup-item .mod-pop[open] { align-items: flex-start; }
.records-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem; padding: .9rem .15rem; border-bottom: 1px solid rgba(122,169,210,.2); }
.records-toolbar .check-all { display: flex; align-items: center; gap: .5rem; margin: 0 auto 0 0; font-size: .86rem; }
.records-toolbar .mod-pop[open] { align-items: flex-start; }
.records-toolbar .mod-btn b { margin-left: .4rem; color: #fff; }
.session-record.selectable-record { grid-template-columns: auto 1fr .9fr 1fr .6fr .5fr 1.1fr; transition: background .18s ease, box-shadow .18s ease; }
.selectable-record.is-selected { background: rgba(190,30,60,.12); box-shadow: inset 3px 0 0 #ff5a6e; }
.record-check { margin: 0; }
.record-links { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .9rem; }
.record-links small { flex-basis: 100%; }
.danger-zone { border-color: rgba(255,90,110,.4); }
.danger-zone .mod-pop[open] { align-items: flex-start; }
@media (max-width: 860px) {
  .session-record.selectable-record { grid-template-columns: auto 1fr; }
}

/* Operator action dialog (operator-dialogs.js): one modal for every
 * Kick/Suspend/Ban/Password/Delete/clean-up panel and confirmation. */
.op-dialog { --tone: var(--cyan); width: min(460px, calc(100vw - 32px)); max-height: calc(100vh - 48px); margin: auto; padding: 0; overflow: visible; border: 0; color: #dfeaff; background: transparent; }
.op-dialog[data-tone="mod-ban"] { --tone: #ff5a6e; }
.op-dialog[data-tone="mod-suspend"] { --tone: var(--orange); }
.op-dialog[data-tone="mod-restore"] { --tone: var(--good); }
.op-dialog[data-tone="mod-kick"] { --tone: #6fd2ff; }
.op-dialog[data-tone="mod-neutral"] { --tone: #b9cbe4; }
.op-dialog::backdrop { background: rgba(2,6,16,.72); backdrop-filter: blur(6px); animation: op-backdrop-in .2s ease-out; }
.op-dialog[open] .op-dialog-card { animation: op-dialog-in .26s cubic-bezier(.16,.9,.25,1); }
.op-dialog.closing .op-dialog-card { animation: op-dialog-out .16s ease-in forwards; }
.op-dialog.closing::backdrop { animation: op-backdrop-out .16s ease-in forwards; }
.op-dialog-card { position: relative; display: grid; gap: 1.1rem; max-height: calc(100vh - 48px); overflow: auto; padding: 1.5rem 1.5rem 1.3rem; border: 1px solid rgba(110,170,220,.32); border-top: 3px solid var(--tone); background: linear-gradient(160deg,#0b1a33 0%,#071226 60%,#050c1c 100%); box-shadow: 0 30px 80px rgba(0,0,0,.6), 0 0 40px color-mix(in srgb, var(--tone) 18%, transparent); clip-path: polygon(0 0,100% 0,100% calc(100% - 16px),calc(100% - 16px) 100%,0 100%); }
.op-dialog-head { display: grid; gap: .25rem; padding-right: 2rem; }
.op-dialog-head .eyebrow { margin: 0; color: var(--tone); }
.op-dialog-head h2 { margin: 0; color: #fff; font: italic 900 1.45rem/1.1 var(--font-display); letter-spacing: .01em; text-transform: uppercase; }
.op-dialog-x { position: absolute; top: .8rem; right: .8rem; width: 36px; height: 36px; border: 1px solid rgba(110,170,220,.3); color: #a9bed5; background: transparent; font-size: 1.3rem; line-height: 1; cursor: pointer; transition: color .15s ease, border-color .15s ease; }
.op-dialog-x:hover { color: #fff; border-color: var(--tone); }
.op-dialog-body { display: grid; gap: .9rem; }
.op-dialog-body form, .op-dialog-body .mod-pop-body { display: grid; gap: .9rem; width: auto; margin: 0; padding: 0; border: 0; background: none; box-shadow: none; }
.op-dialog-body label { display: grid; gap: .35rem; margin: 0; color: #a9bed5; font-family: var(--font-ui); font-size: .82rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.op-dialog-body input[type="text"], .op-dialog-body input[type="password"], .op-dialog-body select { min-height: 44px; margin: 0; font-family: var(--font-body); letter-spacing: 0; text-transform: none; }
.op-dialog-body .check-line { display: flex; align-items: center; gap: .6rem; color: #dfeaff; font-size: .95rem; letter-spacing: 0; text-transform: none; }
.op-dialog-body .check-line input { width: 18px; height: 18px; }
.op-dialog-body small, .op-dialog-text { margin: 0; color: #9db2cc; font-size: .92rem; line-height: 1.45; letter-spacing: 0; text-transform: none; }
.op-dialog-text { color: #dfeaff; font-size: 1rem; }
.op-dialog-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .6rem; padding-top: .9rem; border-top: 1px solid rgba(110,170,220,.18); }
.op-dialog-cancel { min-height: 42px; padding: .45rem 1.1rem; border: 1px solid rgba(110,170,220,.35); color: #c5d3e6; background: transparent; font-family: var(--font-ui); font-size: .9rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; cursor: pointer; }
.op-dialog-cancel:hover { color: #fff; border-color: #c5d3e6; }
.op-dialog .op-dialog-confirm { min-height: 42px; padding: .45rem 1.2rem; color: #fff; background: color-mix(in srgb, var(--tone) 28%, transparent); border-color: var(--tone); }
.op-dialog .op-dialog-confirm:hover { background: color-mix(in srgb, var(--tone) 45%, transparent); }
.op-dialog .op-dialog-confirm.is-sending { opacity: .7; cursor: progress; }
.op-dialog .op-dialog-confirm.is-sending::after { content: ""; width: 12px; height: 12px; margin-left: .6rem; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: op-spin .7s linear infinite; }
@keyframes op-dialog-in { from { opacity: 0; transform: translateY(18px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes op-dialog-out { to { opacity: 0; transform: translateY(10px) scale(.97); } }
@keyframes op-backdrop-in { from { opacity: 0; } }
@keyframes op-backdrop-out { to { opacity: 0; } }
@keyframes op-spin { to { transform: rotate(360deg); } }
@media (max-width: 520px) {
  .op-dialog-card { padding: 1.2rem 1rem 1rem; }
  .op-dialog-actions { flex-direction: column-reverse; }
  .op-dialog-actions > * { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  .op-dialog .op-dialog-card, .op-dialog::backdrop { animation: none !important; }
}
.mod-btn.is-off { opacity: .38; cursor: not-allowed; filter: grayscale(.6); }
.legal { max-width: 860px; line-height: 1.65; }
.legal h2 { margin: 1.9rem 0 .55rem; font-size: 1.15rem; letter-spacing: .02em; }
.legal p, .legal li { color: var(--muted, #b9c6d6); }
.legal ul { padding-left: 1.2rem; margin: .4rem 0; }
.legal li { margin: .45rem 0; }
.legal strong { color: inherit; }
.legal a { text-decoration: underline; text-underline-offset: 3px; }
.legal-updated { font-size: .85rem; opacity: .75; margin-top: 0; }
.legal-links { font-size: .85rem; margin: .3rem 0 0; }
