/* ============================================================
   EXTREME E ACADEMY — shared design system
   Brand: off-black / white / volt green, Bariol type stack
   ============================================================ */

/* ---- Self-hosted fonts (drop files into fonts/ to activate) ---- */
@font-face {
  font-family: 'Chaney Wide Local';
  src: url('fonts/chaney-wide.woff2') format('woff2'),
       url('fonts/chaney-wide.woff') format('woff'),
       url('fonts/chaney-wide.otf') format('opentype'),
       url('fonts/chaney-wide.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Bariol Local';
  src: url('fonts/bariol-regular.woff2') format('woff2'),
       url('fonts/bariol-regular.woff') format('woff'),
       url('fonts/bariol-regular.otf') format('opentype'),
       url('fonts/bariol-regular.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Bariol Local';
  src: url('fonts/bariol-bold.woff2') format('woff2'),
       url('fonts/bariol-bold.woff') format('woff'),
       url('fonts/bariol-bold.otf') format('opentype'),
       url('fonts/bariol-bold.ttf') format('truetype');
  font-weight: 600 900;
  font-display: swap;
}

:root {
  --ink: #111210;
  --ink-soft: #1c1d1b;
  --paper: #ffffff;
  --paper-warm: #f7f7f4;
  --volt: #21f09e;
  --volt-deep: #0bd183;
  --grey: #5d5f5b;
  --line: rgba(17, 18, 16, 0.12);
  --line-light: rgba(255, 255, 255, 0.14);
  --font: 'Bariol Local', 'Bariol', 'Bariol Regular', "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-display: 'Chaney Wide Local', 'CHANEY Wide', 'CHANEY Wide Regular', 'CHANEY', 'Chaney', "Arial Black", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--volt); color: var(--ink); }

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

a { color: inherit; }

/* ---------- Type scale ---------- */
h1, h2, h3, .display {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.08;
}
/* CHANEY Ultra Extended is ~2x the width of a normal face:
   scale headings down so titles fit their containers */
h1 { font-size: clamp(1.7rem, 3.6vw, 3.2rem) !important; }
h2 { font-size: clamp(1.25rem, 2.6vw, 2.1rem) !important; }
h3 { font-size: clamp(0.95rem, 1.8vw, 1.3rem) !important; }

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-transform: uppercase;
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
}
.kicker::before {
  content: "";
  width: 26px; height: 3px;
  background: var(--volt);
}

.body-copy { color: var(--grey); max-width: 62ch; font-size: 1.04rem; }

/* ---------- X-marker (brand motif) ---------- */
.xmark {
  display: inline-block;
  width: 1em; height: 1em;
  flex: none;
}

/* ---------- Layout ---------- */
.wrap { max-width: 1400px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 56px); }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--ink);
  color: #fff;
  border-bottom: 1px solid var(--line-light);
}
.nav-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 56px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-size: 1.02rem;
}
.nav-brand .logo-x {
  width: 30px; height: 30px;
  background: var(--volt);
  display: grid;
  place-items: center;
  transition: transform 0.4s var(--ease);
}
.nav-brand:hover .logo-x { transform: rotate(90deg); }
.nav-brand span em { color: var(--volt); font-style: normal; }

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(8px, 2vw, 28px);
  list-style: none;
}
.nav-links a {
  display: flex;
  align-items: center;
  min-height: 64px;
  padding: 0 6px;
  text-decoration: none;
  text-transform: uppercase;
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.82);
  border-bottom: 3px solid transparent;
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.nav-links a:hover { color: #fff; }
.nav-links a.active { color: var(--volt); border-bottom-color: var(--volt); }

.nav-cta {
  display: flex;
  align-items: center;
  gap: 10px;
  align-self: center;
  background: var(--volt);
  color: var(--ink);
  text-decoration: none;
  text-transform: uppercase;
  font-weight: 900;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  padding: 12px 18px;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease);
}
.nav-cta:hover { background: #fff; }
.nav-cta:active { transform: translateY(1px) scale(0.98); }

@media (max-width: 860px) {
  .nav-links { display: none; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--volt);
  color: var(--ink);
  border: none;
  cursor: pointer;
  font-family: var(--font);
  text-decoration: none;
  text-transform: uppercase;
  font-weight: 900;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  padding: 16px 26px;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s var(--ease);
}
.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
  z-index: 0;
}
.btn:hover::after { transform: scaleX(1); }
.btn:hover { color: var(--volt); }
.btn > * { position: relative; z-index: 1; }
.btn:active { transform: translateY(1px) scale(0.98); }

.btn--ghost {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 2px var(--ink);
}
.btn--ghost:hover { color: var(--volt); }

.btn--dark { background: var(--ink); color: #fff; }
.btn--dark::after { background: var(--volt); }
.btn--dark:hover { color: var(--ink); }

/* ---------- Footer ---------- */
.footer {
  background: var(--ink);
  color: rgba(255,255,255,0.7);
  margin-top: clamp(60px, 9vw, 130px);
}
.footer-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: clamp(40px, 6vw, 80px) clamp(20px, 4vw, 56px);
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
}
.footer h4 {
  color: #fff;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  margin-bottom: 14px;
}
.footer a { color: rgba(255,255,255,0.7); text-decoration: none; }
.footer a:hover { color: var(--volt); }
.footer ul { list-style: none; display: grid; gap: 8px; font-size: 0.92rem; }
.footer ul.plain li { color: rgba(255,255,255,0.65); }
.footer ul.plain li b {
  color: var(--volt);
  font-weight: 800;
  font-size: 0.7rem;
  margin-right: 8px;
}
.footer-brand-row { display: flex; align-items: center; gap: 14px; }
.footer-brand {
  font-weight: 900;
  text-transform: uppercase;
  color: #fff;
  font-size: 1.4rem;
  letter-spacing: -0.01em;
}
.footer-brand em { color: var(--volt); font-style: normal; }
.footer-note { font-size: 0.8rem; margin-top: 16px; max-width: 38ch; }
@media (max-width: 760px) {
  .footer-inner { grid-template-columns: 1fr; }
}

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: var(--d, 0s);
}
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Topographic background helper ---------- */
.topo {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='600' height='600' viewBox='0 0 600 600'%3E%3Cg fill='none' stroke='%23111210' stroke-opacity='0.06' stroke-width='1.5'%3E%3Cpath d='M-50 480c120-90 180-30 290-90s140-180 260-160 160 120 150 220'/%3E%3Cpath d='M-50 520c130-100 200-40 310-100s150-190 270-170 170 130 160 230'/%3E%3Cpath d='M-50 560c140-110 220-50 330-110s160-200 280-180 180 140 170 240'/%3E%3Cpath d='M80 -40c-30 110 40 170 30 270s-120 140-100 250'/%3E%3Cpath d='M140 -40c-30 120 50 180 40 280s-130 150-110 260'/%3E%3Cpath d='M200 -40c-30 130 60 190 50 290s-140 160-120 270'/%3E%3C/g%3E%3C/svg%3E");
}

/* ---------- Progress chip ---------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 6px 12px;
  background: var(--ink);
  color: var(--volt);
}
.chip--outline {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 1.5px var(--ink);
}

/* ============================================================
   PHOTO CARDS: clear image fading into glass (catalog + partners)
   ============================================================ */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.photo-card {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  min-height: 500px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  isolation: isolate;
  box-shadow: 0 24px 60px rgba(17,18,16,0.18);
}
.photo-card .pbg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
  z-index: -1;
}
.photo-card:hover .pbg { transform: scale(1.05); }
.pc-eyebrow {
  position: absolute;
  top: 18px; left: 18px;
  display: inline-flex; align-items: center; gap: 10px;
  text-transform: uppercase; font-weight: 800;
  font-size: 0.64rem; letter-spacing: 0.16em;
  color: #fff;
  background: rgba(17,18,16,0.4);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 100px;
  padding: 8px 14px;
}
.pc-eyebrow b { color: var(--volt); font-weight: 900; }
.pc-logo {
  position: absolute;
  top: 18px; right: 18px;
  background: #fff;
  border-radius: 14px;
  padding: 8px 10px;
  display: grid; place-items: center;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
}
.pc-logo img { max-height: 30px; max-width: 86px; width: auto; object-fit: contain; display: block; }
.pc-body {
  position: relative;
  padding: 56px 24px 24px;
  background: linear-gradient(180deg, rgba(17,18,16,0) 0%, rgba(17,18,16,0.38) 26%, rgba(17,18,16,0.66) 100%);
  -webkit-backdrop-filter: blur(14px) saturate(1.15);
  backdrop-filter: blur(14px) saturate(1.15);
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 17%);
  mask-image: linear-gradient(180deg, transparent 0, #000 17%);
}
.pc-body h3 {
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  margin-bottom: 8px;
  text-shadow: 0 2px 18px rgba(0,0,0,0.35);
}
.pc-sub {
  color: rgba(255,255,255,0.82);
  font-size: 0.92rem;
  line-height: 1.5;
  max-width: 34ch;
}
.pc-sub b { color: var(--volt); font-weight: 800; }
.pc-meta {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
}
.pc-meta small {
  text-transform: uppercase; font-weight: 800;
  font-size: 0.62rem; letter-spacing: 0.14em;
  color: rgba(255,255,255,0.6);
}
.pc-cta {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--volt); color: var(--ink);
  border-radius: 100px;
  text-transform: uppercase; font-weight: 900;
  font-size: 0.68rem; letter-spacing: 0.1em;
  padding: 9px 15px;
  transition: background 0.25s var(--ease);
}
a.photo-card:hover .pc-cta { background: #fff; }
.pc-cta--soon {
  background: rgba(255,255,255,0.14);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.3);
}
a.photo-card:hover .pc-cta--soon { background: rgba(255,255,255,0.14); }
@media (max-width: 1020px) { .card-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 680px) { .card-grid { grid-template-columns: 1fr; } .photo-card { min-height: 440px; } }

/* ============================================================
   SECTOR CARDS: glassmorphic catalog
   ============================================================ */
.sector-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.sector-card {
  position: relative;
  overflow: hidden;
  min-height: 480px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(16px, 2vw, 26px);
  color: #fff;
  background: var(--ink);
}
.sector-card .sbg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}
.sector-card::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(17,18,16,0.78) 0%, rgba(17,18,16,0.25) 55%, rgba(17,18,16,0.35));
}
.sector-card:hover .sbg { transform: scale(1.06); }
.sector-card > * { position: relative; }
.sector-eyebrow {
  position: absolute;
  top: clamp(16px, 2vw, 26px);
  left: clamp(16px, 2vw, 26px);
  display: flex; align-items: center; gap: 12px;
}
.sector-eyebrow .sno {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--volt);
  line-height: 1;
}
.sector-eyebrow small {
  text-transform: uppercase; font-weight: 800;
  font-size: 0.66rem; letter-spacing: 0.16em;
  color: rgba(255,255,255,0.85);
  background: rgba(17,18,16,0.45);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  padding: 7px 12px;
  border: 1px solid rgba(255,255,255,0.16);
}
.sector-glass {
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  backdrop-filter: blur(16px) saturate(1.2);
  background: rgba(17,18,16,0.52);
  border: 1px solid rgba(255,255,255,0.16);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.14), 0 18px 50px rgba(0,0,0,0.35);
  padding: clamp(18px, 2.4vw, 26px);
}
.sector-glass h3 {
  font-size: clamp(1.15rem, 2.2vw, 1.55rem);
  margin-bottom: 4px;
}
.sector-glass .sector-sub {
  text-transform: uppercase; font-weight: 800;
  font-size: 0.66rem; letter-spacing: 0.14em;
  color: var(--volt);
}
.scourse {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 0;
  border-top: 1px solid rgba(255,255,255,0.16);
  margin-top: 13px;
  text-decoration: none;
  color: #fff;
}
.scourse:first-of-type { margin-top: 18px; }
.scourse b {
  display: block;
  text-transform: uppercase;
  font-weight: 900;
  font-size: 0.92rem;
  letter-spacing: 0.01em;
}
.scourse small { color: rgba(255,255,255,0.62); font-size: 0.82rem; display: block; margin-top: 3px; }
.scourse .chip { flex: none; }
.scourse .chip--soon {
  background: transparent;
  color: rgba(255,255,255,0.75);
  box-shadow: inset 0 0 0 1.5px rgba(255,255,255,0.35);
}
a.scourse:hover b { color: var(--volt); }
@media (max-width: 860px) {
  .sector-grid { grid-template-columns: 1fr; }
  .sector-card { min-height: 420px; }
}

/* ============================================================
   PARTNER STRIP: sponsor logo tiles
   ============================================================ */
.partner-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.partner-tile {
  background: #fff;
  border: 1px solid var(--line);
  padding: 24px 18px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.partner-tile:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 34px rgba(17,18,16,0.12);
}
.partner-tile img {
  height: 44px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}
.partner-tile span {
  text-transform: uppercase;
  font-weight: 800;
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  color: var(--grey);
  text-align: center;
}
@media (max-width: 860px) { .partner-strip { grid-template-columns: repeat(2, 1fr); } }

/* ============================================================
   TRACK MAP: race-course progress indicator
   ============================================================ */
.trackmap { width: 100%; height: auto; overflow: visible; }
.track-base {
  fill: none;
  stroke: rgba(255,255,255,0.18);
  stroke-width: 7;
  stroke-linejoin: round;
}
.track-progress {
  fill: none;
  stroke: var(--volt);
  stroke-width: 7;
  stroke-linejoin: round;
  stroke-linecap: round;
}
.checkpoint rect {
  fill: var(--ink);
  stroke: rgba(255,255,255,0.5);
  stroke-width: 1.5;
}
.checkpoint.cleared rect { fill: var(--volt); stroke: var(--volt); }
.checkpoint.here rect {
  stroke: var(--volt);
  stroke-width: 2;
  animation: cp-pulse 1.6s ease-in-out infinite;
}
@keyframes cp-pulse { 50% { stroke-width: 5; } }
.checkpoint text {
  fill: rgba(255,255,255,0.75);
  font-family: var(--font);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.checkpoint.here text { fill: var(--volt); }
.trackmap--lg .checkpoint text { font-size: 12px; }
.track-car { filter: drop-shadow(0 3px 5px rgba(0,0,0,0.5)); }

/* light-background variant */
.trackmap--light .track-base { stroke: rgba(17,18,16,0.15); }
.trackmap--light .checkpoint rect { fill: #fff; stroke: rgba(17,18,16,0.5); }
.trackmap--light .checkpoint text { fill: var(--grey); }
.trackmap--light .checkpoint.here text { fill: var(--ink); }

/* ============================================================
   PIT WALL: course overview side navbar
   ============================================================ */
.pitwall {
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: 300px;
  background: var(--ink);
  border-right: 1px solid rgba(255,255,255,0.12);
  color: #fff;
  z-index: 70;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 22px 22px 18px;
  overflow-y: auto;
  transform: translateX(-100%);
  transition: transform 0.4s var(--ease);
}
.pitwall-head { display: flex; gap: 12px; align-items: center; }
.pitwall-head img { flex: none; }
.pitwall-head b {
  display: block;
  text-transform: uppercase; font-weight: 900; font-size: 0.95rem;
  letter-spacing: 0.02em; line-height: 1.1;
}
.pitwall-head span {
  font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.12em;
  font-weight: 800; color: var(--volt);
}
.pitwall-list { display: grid; gap: 6px; }
.pitwall-item {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none;
  padding: 11px 12px;
  border: 1px solid rgba(255,255,255,0.12);
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
}
.pitwall-item:hover { border-color: var(--volt); }
.pitwall-item.current { background: rgba(33,240,158,0.1); border-color: var(--volt); }
.pitwall-item i {
  flex: none;
  width: 10px; height: 10px;
  transform: rotate(45deg);
  background: transparent;
  border: 1.5px solid rgba(255,255,255,0.45);
}
.pitwall-item.cleared i { background: var(--volt); border-color: var(--volt); }
.pitwall-item b {
  display: block;
  font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.12em;
  font-weight: 900; color: var(--volt);
}
.pitwall-item span { font-size: 0.86rem; font-weight: 700; }
.pitwall-foot {
  margin-top: auto;
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 14px;
  display: grid; gap: 8px;
}
.pitwall-pct { display: flex; justify-content: space-between; align-items: baseline; }
.pitwall-pct span {
  text-transform: uppercase; font-size: 0.64rem; font-weight: 800;
  letter-spacing: 0.12em; color: rgba(255,255,255,0.55);
}
.pitwall-pct b { color: var(--volt); font-weight: 900; font-size: 1.1rem; }
.pitwall-foot a {
  text-decoration: none;
  font-size: 0.78rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: rgba(255,255,255,0.7);
}
.pitwall-foot a:hover { color: var(--volt); }

.pitwall-tab {
  position: fixed;
  left: 0; bottom: 28px;
  z-index: 71;
  background: var(--volt);
  color: var(--ink);
  border: none;
  font-family: var(--font);
  font-weight: 900; text-transform: uppercase;
  font-size: 0.72rem; letter-spacing: 0.1em;
  padding: 12px 16px;
  cursor: pointer;
}
@media (min-width: 1180px) {
  .has-pitwall .pitwall { transform: none; }
  .has-pitwall { padding-left: 300px; }
  .has-pitwall .nav-inner,
  .has-pitwall .footer-inner { max-width: 1180px; }
  .pitwall-tab { display: none; }
}
@media (max-width: 1179px) {
  .pitwall-open .pitwall { transform: none; box-shadow: 20px 0 60px rgba(0,0,0,0.5); }
}

/* ============================================================
   PIT RADIO: narrator + chat popup
   ============================================================ */
.pitradio-fab {
  position: fixed;
  right: 22px; bottom: 22px;
  z-index: 80;
  width: 62px; height: 62px;
  border-radius: 50%;
  border: none;
  padding: 0;
  cursor: pointer;
  background: var(--volt);
  transition: transform 0.2s var(--ease);
}
.pitradio-fab:hover { transform: scale(1.06); }
.pitradio-fab:active { transform: scale(0.96); }
.pitradio-fab img {
  width: 100%; height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--volt);
}
.pitradio-ring {
  position: absolute; inset: -5px;
  border-radius: 50%;
  border: 2px solid var(--volt);
  animation: radio-ping 2.2s var(--ease) infinite;
  pointer-events: none;
}
@keyframes radio-ping {
  0% { transform: scale(0.9); opacity: 0.9; }
  70%, 100% { transform: scale(1.35); opacity: 0; }
}
.pitradio.open .pitradio-ring { animation: none; opacity: 0; }

.pitradio-panel {
  position: fixed;
  right: 22px; bottom: 96px;
  z-index: 80;
  width: min(380px, calc(100vw - 44px));
  background: var(--ink-soft);
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: 0 24px 70px rgba(0,0,0,0.55), inset 0 1px 0 rgba(255,255,255,0.08);
  color: #fff;
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateY(14px) scale(0.98);
  pointer-events: none;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
.pitradio.open .pitradio-panel {
  opacity: 1; transform: none; pointer-events: auto;
}
.pitradio-panel header {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  background: rgba(33,240,158,0.06);
}
.pitradio-panel header img {
  width: 42px; height: 42px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--volt);
}
.pitradio-panel header b {
  display: block;
  font-size: 0.82rem; text-transform: uppercase;
  letter-spacing: 0.06em; font-weight: 900;
}
.pitradio-panel header span {
  font-size: 0.72rem; color: rgba(255,255,255,0.6);
}
.pitradio-close {
  margin-left: auto;
  background: none; border: none;
  color: rgba(255,255,255,0.6);
  font-size: 1.5rem; line-height: 1;
  cursor: pointer;
  font-family: var(--font);
}
.pitradio-close:hover { color: #fff; }

.pitradio-feed {
  max-height: 300px;
  min-height: 120px;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.pr-msg {
  max-width: 85%;
  padding: 10px 13px;
  font-size: 0.9rem;
  line-height: 1.45;
  animation: pr-in 0.3s var(--ease);
}
@keyframes pr-in { from { opacity: 0; transform: translateY(6px); } }
.pr-msg.jb {
  align-self: flex-start;
  background: rgba(255,255,255,0.07);
  border-left: 3px solid var(--volt);
}
.pr-msg.me {
  align-self: flex-end;
  background: var(--volt);
  color: var(--ink);
  font-weight: 700;
}
.pr-msg.typing { color: rgba(255,255,255,0.5); letter-spacing: 0.2em; }

.pitradio-bar {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding: 12px 14px;
  display: grid;
  gap: 10px;
}
.pitradio-play {
  display: inline-flex; align-items: center; gap: 9px;
  justify-content: center;
  background: var(--volt); color: var(--ink);
  border: none; cursor: pointer;
  font-family: var(--font);
  font-weight: 900; text-transform: uppercase;
  font-size: 0.72rem; letter-spacing: 0.1em;
  padding: 11px 14px;
  transition: background 0.2s var(--ease);
}
.pitradio-play:hover { background: #fff; }
.pitradio-play.on { background: #ff5d49; color: #fff; }
.pitradio-voicerow { display: flex; gap: 8px; }
.pitradio-voicerow .pitradio-play { flex: none; }
.pitradio-voice {
  flex: 1;
  min-width: 0;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.18);
  color: rgba(255,255,255,0.85);
  font-family: var(--font);
  font-size: 0.78rem;
  padding: 0 8px;
  outline: none;
  cursor: pointer;
}
.pitradio-voice:focus { border-color: var(--volt); }
.pitradio-voice option { background: var(--ink-soft); color: #fff; }
.pitradio-form { display: flex; gap: 8px; }
.pitradio-form input {
  flex: 1;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.18);
  color: #fff;
  font-family: var(--font);
  font-size: 0.88rem;
  padding: 10px 12px;
  outline: none;
}
.pitradio-form input:focus { border-color: var(--volt); }
.pitradio-form input::placeholder { color: rgba(255,255,255,0.4); }
.pitradio-form button {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.25);
  color: var(--volt);
  width: 42px;
  cursor: pointer;
  display: grid; place-items: center;
  transition: border-color 0.2s var(--ease);
}
.pitradio-form button:hover { border-color: var(--volt); }
.pitradio-note {
  font-size: 0.62rem;
  color: rgba(255,255,255,0.35);
  padding: 0 14px 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
