/* Tracker shell foundation */
:root {
  --accent: #facc15;
  --accent-soft: rgba(250, 204, 21, 0.14);
  --surface-glow: rgba(250, 204, 21, 0.05);
  --surface-line-height: 1.5;
  --wr: #facc15;
  --leaderboard: #f0bf67;
  --displayname: #58cbff;
  --club: #4ade80;
}

/* Backdrop: faint subway texture */
.backdrop {
  opacity: 0.12;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1540 540'%3E%3Cg fill='none' stroke='%23facc15' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M24 86H158L206 134H370L426 190H612L680 258H812L888 334H1058L1128 404H1432' stroke-opacity='.15' stroke-width='3' stroke-dasharray='10 12'/%3E%3Cpath d='M72 420H210L272 358H458L520 296H678' stroke-opacity='.1' stroke-width='4'/%3E%3Cpath d='M866 118H1008L1060 66H1284L1348 130H1510' stroke-opacity='.12' stroke-width='4'/%3E%3Cpath d='M944 472H1104L1160 416H1328L1394 482' stroke-opacity='.1' stroke-width='3' stroke-dasharray='11 11'/%3E%3C/g%3E%3Cg fill='%23020406' stroke='%23facc15'%3E%3Ccircle cx='158' cy='86' r='7' stroke-opacity='.16' stroke-width='4'/%3E%3Ccircle cx='370' cy='134' r='7' stroke-opacity='.12' stroke-width='4'/%3E%3Ccircle cx='612' cy='190' r='7' stroke-opacity='.12' stroke-width='4'/%3E%3Ccircle cx='812' cy='258' r='7' stroke-opacity='.13' stroke-width='4'/%3E%3Ccircle cx='1058' cy='334' r='7' stroke-opacity='.13' stroke-width='4'/%3E%3Ccircle cx='210' cy='420' r='7' stroke-opacity='.12' stroke-width='4'/%3E%3Ccircle cx='458' cy='358' r='7' stroke-opacity='.11' stroke-width='4'/%3E%3Ccircle cx='1008' cy='118' r='7' stroke-opacity='.13' stroke-width='4'/%3E%3Ccircle cx='1284' cy='66' r='7' stroke-opacity='.13' stroke-width='4'/%3E%3Ccircle cx='1328' cy='416' r='7' stroke-opacity='.11' stroke-width='4'/%3E%3C/svg%3E")
    center top / 1540px auto no-repeat;
}

/* Main + hero */
.trk-main {
  width: min(100%, 1440px);
  margin: 0 auto;
  padding: 18px 22px 16px;
  display: grid;
  gap: 12px;
}

.trk-hero {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: center;
  justify-items: center;
  min-height: 104px;
}

.trk-hero::before,
.trk-hero::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: min(42%, 520px);
  z-index: -1;
  pointer-events: none;
  opacity: 0.7;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 560 96'%3E%3Cg fill='none' stroke='%23facc15' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 84H344' stroke-opacity='0.25' stroke-width='2'/%3E%3Cpath d='M64 84V78M124 84V78M184 84V78M244 84V78M304 84V78' stroke-opacity='0.3' stroke-width='2'/%3E%3Cpath d='M6 58H64L94 26L124 70L154 46H208L238 18H298' stroke-opacity='0.62' stroke-width='3'/%3E%3Cpath d='M298 18H348' stroke-opacity='0.38' stroke-width='2.5' stroke-dasharray='9 11'/%3E%3C/g%3E%3Cg fill='%23020406' stroke='%23facc15'%3E%3Ccircle cx='64' cy='58' r='4.5' stroke-opacity='0.5' stroke-width='3'/%3E%3Ccircle cx='124' cy='70' r='4.5' stroke-opacity='0.5' stroke-width='3'/%3E%3Ccircle cx='208' cy='46' r='5' stroke-opacity='0.55' stroke-width='3'/%3E%3Ccircle cx='298' cy='18' r='6.5' stroke-opacity='0.75' stroke-width='3.5'/%3E%3C/g%3E%3Ccircle cx='298' cy='18' r='2.6' fill='%23facc15' fill-opacity='.85'/%3E%3C/svg%3E")
    left center / auto 100% no-repeat;
  -webkit-mask-image: linear-gradient(90deg, #000 0 56%, transparent 88%);
  mask-image: linear-gradient(90deg, #000 0 56%, transparent 88%);
}

.trk-hero::before {
  left: 0;
}

.trk-hero::after {
  right: 0;
  transform: scaleX(-1);
}

.hero-copy {
  display: grid;
  justify-items: center;
  gap: 3px;
  text-align: center;
}

.trk-hero h1 {
  font-family: "Space Mono", ui-monospace, monospace;
  font-size: clamp(28px, 2.8vw, 38px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: 0.04em;
}

.trk-hero h1 .hero-accent {
  color: var(--accent);
}

.hero-copy p {
  margin-top: 7px;
  color: var(--text-muted);
  font-family: "Space Mono", ui-monospace, monospace;
  font-size: 13px;
}

/* Runtime routes compact the hero so the embedded UI gets the space. */
body.route-runtime .trk-hero {
  display: none;
}
