:root {
  --bg-deep: #05020d;
  --neon-cyan: #00f3ff;
  --neon-magenta: #ff007f;
  --neon-purple: #8a2be2;
  --neon-amber: #ff9e00;
  --glass-bg: rgba(9, 6, 24, 0.68);
  --glass-border: rgba(0, 243, 255, 0.28);
  --text-main: #f4f6ff;
  --text-muted: #a6b1d0;
  --font-display: 'Orbitron', sans-serif;
  --font-sans: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

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

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: var(--bg-deep);
  color: var(--text-main);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  user-select: none;
  touch-action: none;
}

#canvas-container {
  position: fixed;
  inset: 0;
  z-index: 1;
  opacity: 0;
  transition: opacity 0.42s cubic-bezier(0.22, 1, 0.36, 1);
}

#canvas-container.scene-ready {
  opacity: 1;
}

#canvas-container.road-switching {
  opacity: 0.76;
  transition: opacity 0.08s ease-out;
}

#canvas-container canvas {
  display: block;
  width: 100%;
  height: 100%;
}

/* Subtle CRT scanline + radial vignette */
.crt-overlay {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 45%, transparent 52%, rgba(3, 1, 10, 0.72) 100%),
    repeating-linear-gradient(
      to bottom,
      rgba(255, 255, 255, 0) 0px,
      rgba(255, 255, 255, 0) 2px,
      rgba(0, 0, 0, 0.16) 3px,
      rgba(0, 0, 0, 0.16) 4px
    );
}

/* UI Overlay Layout */
.ui-layer {
  position: fixed;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 14px 20px;
  pointer-events: none;
}

.top-bar,
.bottom-bar,
.hero-card,
.modal-panel {
  pointer-events: auto;
}

/* Top Bar — Single compact row */
.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: nowrap;
}

.brand-cluster {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: rgba(8, 5, 22, 0.68);
  border: 1px solid rgba(0, 243, 255, 0.25);
  border-radius: 6px;
  backdrop-filter: blur(10px);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.07em;
  white-space: nowrap;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--neon-cyan);
  box-shadow: 0 0 10px var(--neon-cyan);
  animation: pulseDot 2s infinite ease-in-out;
  flex-shrink: 0;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.85); }
}

.brand-domain {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--neon-cyan);
  text-shadow: 0 0 12px rgba(0, 243, 255, 0.55);
}

.brand-divider {
  color: var(--neon-magenta);
}

.brand-status {
  color: var(--text-muted);
}

.audio-cluster {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: nowrap;
}

body.warping-to-vault {
  animation: warpFlash 0.65s forwards ease-in;
}

@keyframes warpFlash {
  0% { filter: brightness(1) contrast(1); }
  50% { filter: brightness(1.6) contrast(1.35) hue-rotate(25deg); }
  100% { filter: brightness(2.8) blur(4px); opacity: 0; }
}

#audio-visualizer {
  background: rgba(8, 5, 22, 0.72);
  border: 1px solid rgba(255, 0, 127, 0.35);
  border-radius: 6px;
  padding: 2px 5px;
  backdrop-filter: blur(8px);
}

/* Outrun Radio station dial */
.radio-dial {
  display: inline-flex;
  align-items: center;
  min-height: 31px;
  padding: 0 4px 0 9px;
  background: rgba(8, 5, 22, 0.68);
  border: 1px solid rgba(0, 243, 255, 0.25);
  border-radius: 6px;
  backdrop-filter: blur(10px);
  font-family: var(--font-mono);
  white-space: nowrap;
}

.dial-label {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--neon-cyan);
  margin-right: 4px;
}

.dial-btn,
.dial-name {
  appearance: none;
  background: none;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-mono);
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s ease;
}

.dial-btn {
  font-size: 1.05rem;
  padding: 4px 6px;
}

.dial-name {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ffffff;
  padding: 5px 3px;
}

.dial-btn:hover,
.dial-name:hover {
  color: var(--neon-cyan);
}

/* Cyber Buttons */
.cyber-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 7px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  backdrop-filter: blur(10px);
  white-space: nowrap;
}

.cyber-btn-primary {
  background: linear-gradient(135deg, rgba(0, 243, 255, 0.2), rgba(255, 0, 127, 0.22));
  border: 1px solid var(--neon-cyan);
  color: #ffffff;
  box-shadow: 0 0 14px rgba(0, 243, 255, 0.22), inset 0 0 8px rgba(0, 243, 255, 0.12);
}

.cyber-btn-primary:hover,
.cyber-btn-primary.active {
  background: linear-gradient(135deg, rgba(0, 243, 255, 0.38), rgba(255, 0, 127, 0.38));
  box-shadow: 0 0 20px rgba(0, 243, 255, 0.45), 0 0 10px rgba(255, 0, 127, 0.35);
}

.cyber-btn-accent {
  background: rgba(255, 0, 127, 0.16);
  border: 1px solid rgba(255, 0, 127, 0.65);
  color: #ffd6eb;
  box-shadow: 0 0 12px rgba(255, 0, 127, 0.2);
}

.cyber-btn-accent:hover {
  background: rgba(255, 0, 127, 0.32);
  box-shadow: 0 0 20px rgba(255, 0, 127, 0.45);
}

.cyber-btn-ghost {
  background: rgba(10, 8, 26, 0.65);
  border: 1px solid rgba(166, 177, 208, 0.3);
  color: var(--text-muted);
}

.cyber-btn-ghost:hover {
  border-color: var(--neon-cyan);
  color: #ffffff;
}

.cyber-btn-small {
  padding: 6px 11px;
  font-size: 0.7rem;
  background: rgba(10, 8, 26, 0.72);
  border: 1px solid rgba(0, 243, 255, 0.3);
  color: var(--text-main);
}

.cyber-btn-small:hover,
.cyber-btn-small.active {
  border-color: var(--neon-magenta);
  color: #ffffff;
  box-shadow: 0 0 14px rgba(255, 0, 127, 0.4);
}

/* Docked Top-Left Hero Card (Never blocks the car or center highway!) */
.hero-wrapper {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  margin: 10px 0 auto 0;
  max-width: 430px;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

body.is-steering .hero-wrapper {
  opacity: 0.28;
}

.hero-wrapper.hud-hidden {
  opacity: 0;
  transform: translateY(-10px) scale(0.98);
  pointer-events: none;
}

.hero-wrapper.hud-hidden .hero-card {
  pointer-events: none;
}

.hero-card {
  position: relative;
  width: 100%;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  padding: 16px 20px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow:
    0 14px 36px rgba(0, 0, 0, 0.55),
    0 0 24px rgba(0, 243, 255, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  user-select: text;
  transition: padding 0.25s ease;
}

.hero-card.collapsed {
  padding: 10px 14px;
}

.hero-card.collapsed .card-collapsible-body {
  display: none;
}

.hero-card.collapsed .hero-title {
  margin-bottom: 0;
  font-size: 1.02rem;
}

.card-corner {
  position: absolute;
  width: 10px;
  height: 10px;
  border-color: var(--neon-cyan);
  border-style: solid;
  pointer-events: none;
}

.corner-tl { top: -1px; left: -1px; border-width: 2px 0 0 2px; border-top-left-radius: 10px; }
.corner-tr { top: -1px; right: -1px; border-width: 2px 2px 0 0; border-top-right-radius: 10px; }
.corner-bl { bottom: -1px; left: -1px; border-width: 0 0 2px 2px; border-bottom-left-radius: 10px; }
.corner-br { bottom: -1px; right: -1px; border-width: 0 2px 2px 0; border-bottom-right-radius: 10px; }

.title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.card-collapse-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 22px;
  border-radius: 4px;
  background: rgba(0, 243, 255, 0.1);
  border: 1px solid rgba(0, 243, 255, 0.35);
  color: var(--neon-cyan);
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
}

.card-collapse-btn:hover {
  background: rgba(0, 243, 255, 0.25);
  color: #fff;
}

.cyber-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  padding: 3px 8px;
  border-radius: 4px;
  background: rgba(255, 0, 127, 0.18);
  border: 1px solid rgba(255, 0, 127, 0.6);
  color: #ff7ab8;
  text-shadow: 0 0 8px rgba(255, 0, 127, 0.5);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(1.18rem, 2.2vw, 1.65rem);
  font-weight: 900;
  letter-spacing: 0.04em;
  line-height: 1.15;
  margin-bottom: 8px;
  background: linear-gradient(90deg, #ffffff 0%, #c9faff 55%, #ff85c2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 14px rgba(0, 243, 255, 0.22));
  cursor: pointer;
}

.hero-bio {
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--text-muted);
  margin-bottom: 11px;
}

.hero-bio strong {
  color: var(--text-main);
  font-weight: 600;
}

.role-box {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 11px;
  background: rgba(0, 243, 255, 0.06);
  border-left: 2px solid var(--neon-cyan);
  border-radius: 0 5px 5px 0;
  margin-bottom: 13px;
}

.role-label {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  color: var(--neon-cyan);
}

.role-value {
  font-size: 0.82rem;
  font-weight: 500;
  color: #ffffff;
}

/* Single callout to the cassette archive (the only link to the works on this page) */
.tape-callout {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 11px;
  background: rgba(255, 0, 127, 0.06);
  border-left: 2px solid var(--neon-magenta);
  border-radius: 0 5px 5px 0;
  margin-bottom: 13px;
  color: var(--text-main);
  text-decoration: none;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.tape-callout:hover {
  background: rgba(255, 0, 127, 0.14);
  box-shadow: 0 0 18px rgba(255, 0, 127, 0.18);
}

.tape-callout-icon {
  flex-shrink: 0;
  filter: drop-shadow(0 0 6px rgba(255, 42, 133, 0.55));
}

.tape-callout-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.tape-callout-label {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  color: #ff7ab8;
}

.tape-callout-title {
  font-size: 0.82rem;
  font-weight: 500;
  color: #ffffff;
}

.archive-arrow {
  margin-left: auto;
  color: #ff7ab8;
  font-family: var(--font-mono);
  transition: transform 0.2s ease;
}

.tape-callout:hover .archive-arrow {
  transform: translateX(3px);
}

.links-row {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 10px;
  border-radius: 5px;
  font-size: 0.76rem;
  font-weight: 500;
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.14);
  text-decoration: none;
  transition: all 0.2s ease;
}

.social-link:hover {
  border-color: var(--neon-cyan);
  background: rgba(0, 243, 255, 0.14);
  box-shadow: 0 0 14px rgba(0, 243, 255, 0.22);
}

.social-primary {
  background: linear-gradient(135deg, rgba(0, 243, 255, 0.18), rgba(138, 43, 226, 0.24));
  border-color: rgba(0, 243, 255, 0.5);
}

/* Bottom Bar */
.bottom-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: nowrap;
}

.telemetry-group {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 6px 12px;
  background: rgba(8, 5, 22, 0.68);
  border: 1px solid rgba(0, 243, 255, 0.22);
  border-radius: 7px;
  backdrop-filter: blur(10px);
}

.speed-readout {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.speed-value {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 900;
  color: var(--neon-cyan);
  text-shadow: 0 0 10px rgba(0, 243, 255, 0.55);
  min-width: 3ch;
}

.speed-unit {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  color: var(--neon-magenta);
  font-weight: 700;
}

.drive-hint {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.drive-hint kbd {
  padding: 1px 4px;
  font-size: 0.62rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 3px;
  color: #fff;
}

.controls-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Road Mode Selector HUD */
.road-selector {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 6px;
  background: rgba(8, 5, 22, 0.72);
  border: 1px solid rgba(0, 243, 255, 0.26);
  border-radius: 7px;
  backdrop-filter: blur(10px);
  font-family: var(--font-mono);
  box-sizing: border-box;
}

.road-nav-btn {
  appearance: none;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 1.15rem;
  line-height: 1;
  padding: 2px 6px;
  cursor: pointer;
  border-radius: 4px;
  transition: color 0.2s ease, background 0.2s ease;
}

.road-nav-btn:hover,
.road-nav-btn:focus-visible {
  color: var(--neon-cyan);
  background: rgba(0, 243, 255, 0.12);
  outline: none;
}

.road-pills {
  display: flex;
  align-items: center;
  gap: 4px;
}

.road-pill {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 5px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.25s ease;
}

.road-pill:hover {
  background: rgba(0, 243, 255, 0.12);
  border-color: rgba(0, 243, 255, 0.38);
  color: var(--text-main);
}

.road-pill:focus-visible {
  outline: 1px solid var(--neon-cyan);
}

.road-pill.active {
  background: rgba(0, 243, 255, 0.18);
  border-color: var(--neon-cyan);
  color: #ffffff;
  box-shadow: 0 0 12px rgba(0, 243, 255, 0.35);
}

.road-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  border-radius: 3px;
  background: rgba(0, 0, 0, 0.38);
  font-size: 0.58rem;
  font-weight: 700;
  color: var(--neon-cyan);
  line-height: 1;
}

.road-pill.active .road-num {
  background: var(--neon-cyan);
  color: #05020d;
}

.road-name {
  display: inline-block;
  line-height: 1;
}

/* Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 20;
  background: rgba(3, 1, 10, 0.78);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.hidden {
  display: none !important;
}

.modal-panel {
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  background: rgba(11, 8, 28, 0.95);
  border: 1px solid var(--neon-cyan);
  border-radius: 12px;
  padding: 20px 22px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.8), 0 0 32px rgba(0, 243, 255, 0.2);
  user-select: text;
}

.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.cyber-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  padding: 3px 8px;
  border-radius: 4px;
  background: rgba(255, 0, 127, 0.18);
  border: 1px solid rgba(255, 0, 127, 0.6);
  color: #ff7ab8;
  text-shadow: 0 0 8px rgba(255, 0, 127, 0.5);
}

.modal-header h2 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin-top: 5px;
  color: #fff;
}

.modal-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.modal-close:hover {
  color: var(--neon-cyan);
}

.modal-desc {
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.modal-desc code,
.lyria-status code {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--neon-cyan);
  background: rgba(0, 243, 255, 0.1);
  padding: 2px 5px;
  border-radius: 4px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 12px;
}

.form-group label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-main);
  letter-spacing: 0.04em;
}

.label-sub {
  color: var(--text-muted);
  font-weight: 400;
}

.cyber-input {
  background: rgba(5, 3, 15, 0.85);
  border: 1px solid rgba(0, 243, 255, 0.32);
  border-radius: 6px;
  padding: 8px 11px;
  color: #fff;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  outline: none;
}

.cyber-input:focus {
  border-color: var(--neon-cyan);
  box-shadow: 0 0 12px rgba(0, 243, 255, 0.25);
}

.lyria-status {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  line-height: 1.4;
  padding: 9px 11px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  margin-bottom: 14px;
}

.modal-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* ============================================================================
   RESPONSIVE TUNING FOR FOLDABLES (UNFOLDED ~760-960px) & PHONES (FOLDED <520px)
   ============================================================================ */
@media (max-width: 1024px) {
  .brand-divider,
  .brand-status,
  .drive-hint {
    display: none;
  }

  .ui-layer {
    padding: 10px 12px;
  }

  .hero-wrapper {
    max-width: 420px;
    margin-top: 6px;
  }

  .hero-card {
    padding: 10px 12px;
  }

  .hero-title {
    font-size: 1.05rem;
    margin-bottom: 5px;
    white-space: nowrap;
  }

  .hero-bio {
    font-size: 0.76rem;
    line-height: 1.35;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .role-box {
    padding: 5px 8px;
    margin-bottom: 6px;
  }

  .role-value {
    font-size: 0.75rem;
  }

  .tape-callout {
    padding: 6px 8px;
    margin-bottom: 6px;
  }

  .tape-callout-title {
    font-size: 0.76rem;
  }

  .links-row {
    gap: 5px;
  }

  .social-link {
    padding: 4px 7px;
    font-size: 0.68rem;
  }
}

@media (max-width: 1080px) {
  .road-selector {
    gap: 2px;
    padding: 3px 4px;
  }

  .road-pills {
    gap: 3px;
  }

  .road-pill {
    padding: 3px 5px;
    font-size: 0.56rem;
    letter-spacing: 0.02em;
    gap: 3px;
  }

  .road-nav-btn {
    padding: 2px 4px;
    font-size: 1.0rem;
  }

  .telemetry-group {
    padding: 5px 9px;
    gap: 8px;
  }

  .controls-group {
    gap: 5px;
  }

  .controls-group .cyber-btn {
    padding: 6px 8px;
    font-size: 0.64rem;
  }
}

@media (max-width: 850px) {
  .bottom-bar {
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 6px;
  }

  .road-selector {
    order: 2;
    margin: 0 auto;
    max-width: 540px;
    width: 100%;
    justify-content: space-between;
  }

  .telemetry-group {
    order: 1;
  }

  .controls-group {
    order: 1;
  }
}

@media (max-width: 540px) {
  #audio-visualizer,
  #btn-cinema,
  .dial-label,
  .dial-btn,
  .lyria-text {
    display: none;
  }

  .radio-dial {
    padding: 0 6px;
  }

  .dial-name {
    font-size: 0.62rem;
    letter-spacing: 0.05em;
  }

  .audio-cluster {
    gap: 5px;
  }

  .brand-cluster {
    padding: 5px 9px;
    font-size: 0.68rem;
  }

  .cyber-btn {
    padding: 5px 8px;
    font-size: 0.64rem;
    gap: 4px;
  }

  .hero-wrapper {
    max-width: 100%;
    margin-top: 4px;
  }

  .hero-card {
    padding: 8px 10px;
    border-radius: 8px;
    max-height: 175px !important;
    overflow: hidden !important;
  }

  .title-row {
    gap: 6px;
  }

  .hero-title {
    font-size: 0.95rem;
    line-height: 1.15;
    margin-bottom: 3px;
  }

  .card-collapse-btn {
    width: 20px;
    height: 18px;
    font-size: 0.8rem;
  }

  .hero-bio {
    font-size: 0.72rem;
    line-height: 1.30;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .role-box {
    display: flex;
    flex-direction: row;
    align-items: baseline;
    gap: 6px;
    padding: 3px 6px;
    margin-bottom: 4px;
  }

  .role-label {
    font-size: 0.55rem;
    letter-spacing: 0.10em;
    flex-shrink: 0;
  }

  .role-value {
    font-size: 0.68rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .tape-callout {
    padding: 4px 7px;
    margin-bottom: 4px;
    gap: 7px;
  }

  .tape-callout-icon {
    width: 22px;
    height: 15px;
  }

  .tape-callout-label {
    font-size: 0.54rem;
  }

  .tape-callout-title {
    font-size: 0.68rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .links-row {
    gap: 4px;
    flex-wrap: nowrap;
    overflow-x: auto;
  }

  .social-link {
    padding: 3px 6px;
    font-size: 0.64rem;
    gap: 3px;
    white-space: nowrap;
  }

  .speed-value {
    font-size: 1.02rem;
  }

  .bottom-bar {
    flex-wrap: wrap;
    justify-content: space-between;
    row-gap: 8px;
    column-gap: 6px;
    padding: 0;
  }

  .telemetry-group {
    order: 1;
    padding: 5px 10px;
  }

  .controls-group {
    order: 1;
    gap: 6px;
  }

  .road-selector {
    order: 2;
    width: 100%;
    max-width: 360px;
    min-width: 0;
    justify-content: space-between;
    padding: 2px 3px;
    margin: 0 auto;
    gap: 1px;
    box-sizing: border-box;
  }

  .road-nav-btn {
    padding: 1px 2px;
    font-size: 0.90rem;
    flex-shrink: 0;
  }

  .road-pills {
    gap: 2px;
    flex: 1 1 auto;
    min-width: 0;
    justify-content: space-between;
    flex-wrap: nowrap;
  }

  .road-pill {
    padding: 2px 3px;
    font-size: 0.45rem;
    letter-spacing: 0;
    gap: 1.5px;
    flex: 1 1 auto;
    min-width: 0;
    justify-content: center;
    white-space: nowrap;
  }

  .road-num {
    width: 10px;
    height: 10px;
    font-size: 0.44rem;
    flex-shrink: 0;
  }

  .road-name {
    font-size: 0.45rem;
    line-height: 1;
  }
}
