:root {
  --bg: #10110f;
  --panel: #191a17;
  --line: #33342d;
  --yellow: #f4f520;
  --muted: #93958a;
  --white: #f4f4e9;
  --display: "Barlow Condensed", Impact, sans-serif;
  --body: Inter, Arial, sans-serif;
  color-scheme: dark;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--white);
  font-family: var(--body);
  font-size: 14px;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
a {
  color: inherit;
  text-decoration: none;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--yellow);
  outline-offset: 5px;
}
button:disabled {
  opacity: 0.4;
  cursor: default;
}
::selection {
  background: var(--yellow);
  color: var(--bg);
}
header {
  height: 100px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4.5%;
  gap: 25px;
  position: relative;
  z-index: 10;
  background: var(--bg);
}
.brand {
  display: flex;
  align-items: center;
  gap: 13px;
}
.brand img {
  width: 61px;
  height: 61px;
  object-fit: contain;
}
.brand span {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.2px;
  line-height: 1.5;
}
.nav {
  display: flex;
  gap: 28px;
  align-items: center;
}
.nav a {
  font-size: 12px;
  color: #a7a99e;
  position: relative;
  padding: 40px 0;
}
.nav a.active,
.nav a:hover {
  color: var(--white);
}
.nav a.active:after {
  content: "";
  position: absolute;
  bottom: 24px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--yellow);
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}
.tiny {
  font-size: 10px;
  letter-spacing: 1.5px;
  font-weight: 600;
  text-transform: uppercase;
}
.muted {
  color: var(--muted);
}
.yellow {
  color: var(--yellow);
}
.button,
.outline,
.text-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 25px;
  border: 0;
  min-height: 46px;
  padding: 0 24px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  background: var(--yellow);
  color: #12130e;
  border-radius: 3px;
  transition:
    transform 0.2s,
    background 0.2s;
}
.button:hover {
  background: #ffff69;
  transform: translateY(-2px);
}
.outline {
  border: 1px solid #494a40;
  background: transparent;
  color: var(--white);
}
.outline:hover {
  border-color: var(--yellow);
}
.text-button {
  padding: 0;
  background: transparent;
  color: var(--white);
  min-height: 34px;
}
.text-button:hover {
  color: var(--yellow);
}
.arrow {
  font-size: 19px;
  font-weight: 400;
}
.menu-button {
  display: none;
  background: transparent;
  color: var(--white);
  border: 1px solid var(--line);
  padding: 10px;
}
.hero {
  height: 785px;
  position: relative;
  overflow: hidden;
  padding: 40px 4.5% 0;
  background: radial-gradient(ellipse at 50% 54%, #34351b33, transparent 55%);
}
.hero:after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.055;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Cpath fill='%23fff' filter='url(%23n)' opacity='.6' d='M0 0h180v180H0z'/%3E%3C/svg%3E");
}
.hero-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.live-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--yellow);
  border-radius: 50%;
  margin-right: 9px;
  box-shadow: 0 0 12px #f4f56070;
}
.hero h1 {
  font-family: var(--display);
  font-size: clamp(100px, 13.2vw, 205px);
  font-weight: 800;
  font-style: italic;
  line-height: 0.9;
  letter-spacing: -3px;
  text-align: center;
  color: var(--yellow);
  margin: 40px -15px 0;
  white-space: nowrap;
  position: relative;
  z-index: 1;
}
.hero h1 span {
  color: transparent;
  -webkit-text-stroke: 1px #bfc124;
}
.car-stage {
  position: absolute;
  inset: 175px 12% 95px;
  z-index: 2;
  cursor: grab;
}
.car-stage canvas {
  width: 100%;
  height: 100%;
  display: block;
}
.car-stage:active {
  cursor: grabbing;
}
.car-stage .load-state {
  position: absolute;
  inset: 40% 0;
  text-align: center;
  color: var(--muted);
}
.orbit {
  position: absolute;
  width: 80%;
  height: 220px;
  border: 1px solid #b7b83830;
  border-radius: 50%;
  left: 10%;
  top: 380px;
  transform: rotate(-9deg);
  pointer-events: none;
}
.orbit:after {
  content: "";
  position: absolute;
  inset: 25px -30px;
  border: 1px solid #b7b83815;
  border-radius: 50%;
}
.hero-side {
  position: absolute;
  top: 336px;
  z-index: 3;
  font-size: 9px;
  letter-spacing: 2px;
  color: #85877a;
  writing-mode: vertical-rl;
}
.hero-side.right {
  right: 4.5%;
}
.hero-bottom {
  position: absolute;
  bottom: 43px;
  left: 4.5%;
  right: 4.5%;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  z-index: 4;
}
.hero-copy {
  max-width: 320px;
}
.hero-copy p {
  font-size: 13px;
  color: #adafa3;
  line-height: 1.85;
  margin: 0 0 22px;
}
.hero-controls {
  display: flex;
  align-items: center;
  gap: 16px;
}
.hero-controls button {
  font-size: 10px;
  letter-spacing: 1px;
  background: transparent;
  border: 0;
  color: #aaa;
  margin-top: 10px;
}
.spec {
  display: flex;
  gap: 32px;
  margin-bottom: 5px;
}
.spec div {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.spec strong {
  font-family: var(--display);
  font-size: 24px;
  font-weight: 600;
}
.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 40px;
  color: #909280;
  text-align: center;
  font-size: 9px;
  letter-spacing: 2px;
}
.scroll-cue span {
  display: block;
  font-size: 25px;
  margin-bottom: 9px;
}
.ticker {
  background: var(--yellow);
  color: #16170d;
  display: flex;
  gap: 45px;
  align-items: center;
  height: 48px;
  overflow: hidden;
  white-space: nowrap;
  font-family: var(--display);
  font-weight: 700;
  font-size: 21px;
  letter-spacing: 1.5px;
}
.ticker-inner {
  display: flex;
  gap: 45px;
  animation: ticker 35s linear infinite;
}
.ticker b {
  font-family: var(--body);
  font-size: 15px;
}
@keyframes ticker {
  to {
    transform: translateX(-50%);
  }
}
.section {
  padding: 75px 4.5%;
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  margin-bottom: 30px;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 15px;
}
.eyebrow:before {
  content: "//";
  color: var(--yellow);
  margin-right: 11px;
}
h2,
h3,
h4,
p {
  margin-top: 0;
}
h2,
.page-title {
  font-family: var(--display);
  font-size: 56px;
  font-weight: 700;
  line-height: 1;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: -0.5px;
}
h3 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 31px;
  letter-spacing: 0.1px;
  line-height: 1.1;
  margin-bottom: 13px;
}
h4 {
  font-size: 17px;
}
.event-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.event-card {
  border: 1px solid var(--line);
  border-radius: 5px;
  overflow: hidden;
  background: #171814;
  transition:
    border-color 0.2s,
    transform 0.2s;
}
.event-card:hover {
  border-color: #73764b;
  transform: translateY(-4px);
}
.event-image {
  position: relative;
  height: 220px;
  overflow: hidden;
}
.event-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}
.event-card:hover .event-image img {
  transform: scale(1.04);
}
.tag {
  font-size: 9px;
  letter-spacing: 1.2px;
  font-weight: 700;
  background: var(--yellow);
  color: #1e2012;
  padding: 7px 9px;
  border-radius: 2px;
  display: inline-block;
}
.event-image .tag {
  position: absolute;
  top: 16px;
  left: 16px;
}
.event-image .round {
  position: absolute;
  bottom: 15px;
  right: 18px;
  font-family: var(--display);
  font-size: 42px;
  font-style: italic;
  color: #fff9;
}
.event-content {
  padding: 24px;
}
.event-meta {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 9px;
  letter-spacing: 1px;
  color: #999e88;
  margin-bottom: 13px;
}
.session-toggle,
.tabs {
  display: inline-flex;
  padding: 4px;
  background: #0d0e0b;
  border: 1px solid var(--line);
  border-radius: 4px;
  gap: 4px;
}
.session-toggle button,
.tabs button {
  background: transparent;
  color: var(--muted);
  border: 0;
  padding: 8px 15px;
  font-size: 10px;
  font-weight: 600;
  border-radius: 2px;
}
.session-toggle button.selected,
.tabs button.selected {
  background: #34362c;
  color: var(--white);
}
.event-time {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  margin-top: 20px;
  font-size: 11px;
}
.event-time span {
  color: var(--muted);
}
.event-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 20px;
}
.section.soft {
  background: #151610;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.split {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 8%;
  align-items: center;
}
.large-copy {
  font-family: var(--display);
  font-size: 76px;
  line-height: 0.97;
  font-weight: 700;
  max-width: 510px;
}
.body-copy {
  line-height: 1.9;
  color: var(--muted);
  max-width: 400px;
  margin: 25px 0;
}
.mini-board {
  border-top: 1px solid #656747;
}
.mini-board .board-row {
  display: grid;
  grid-template-columns: 40px 1fr 110px;
  align-items: center;
  padding: 22px 5px;
  border-bottom: 1px solid var(--line);
}
.driver-name {
  display: flex;
  gap: 12px;
  align-items: center;
}
.avatar {
  height: 34px;
  width: 34px;
  background: #2c3024;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 10px;
  font-weight: 700;
  color: #e4e7c8;
  object-fit: cover;
}
.number {
  font-family: var(--display);
  font-size: 22px;
  color: var(--muted);
}
.lap {
  font-variant-numeric: tabular-nums;
  letter-spacing: 1px;
  font-size: 13px;
}
.community-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 50px 4.5%;
  background: var(--yellow);
  color: #16180f;
}
.community-strip h2 {
  font-size: 52px;
}
.community-strip .outline {
  border-color: #171810;
  color: #171810;
}
footer {
  padding: 45px 4.5% 24px;
  background: #0b0c09;
}
.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 35px;
  border-bottom: 1px solid var(--line);
}
.footer-links {
  display: flex;
  gap: 30px;
  font-size: 11px;
  color: var(--muted);
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-top: 23px;
  font-size: 9px;
  color: #777a6c;
  line-height: 1.7;
}
.page {
  padding: 60px 4.5% 85px;
  min-height: 75vh;
}
.page-heading {
  margin-bottom: 40px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-end;
}
.page-heading p {
  color: var(--muted);
  line-height: 1.8;
  max-width: 560px;
  margin: 20px 0 0;
}
.page-title {
  font-size: 76px;
}
.filters {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 30px 0;
  align-items: center;
}
input,
select,
textarea {
  background: #1c1e17;
  color: var(--white);
  border: 1px solid #414537;
  min-height: 44px;
  border-radius: 3px;
  padding: 12px 14px;
  max-width: 100%;
}
input::placeholder,
textarea::placeholder {
  color: #818677;
}
select {
  padding-right: 30px;
}
.filters input {
  flex: 1;
  min-width: 180px;
}
.filters label {
  font-size: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--muted);
}
.filters label select {
  min-width: 155px;
}
.notice {
  background: #252719;
  color: #babe9a;
  border: 1px solid #474c29;
  padding: 15px 18px;
  font-size: 11px;
  line-height: 1.8;
  border-radius: 4px;
  margin-bottom: 28px;
}
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 5px;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 12px;
  text-align: left;
}
th {
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--muted);
  padding: 18px;
  background: #191b15;
  white-space: nowrap;
}
td {
  padding: 20px 18px;
  border-top: 1px solid var(--line);
  white-space: nowrap;
}
tbody tr:hover {
  background: #1a1d14;
}
td .text-button {
  min-height: 22px;
  font-size: 11px;
}
.pill {
  font-size: 9px;
  padding: 6px 9px;
  background: #303523;
  border-radius: 3px;
  color: #d5dcb8;
}
.pill.pending {
  color: #e5c957;
  background: #3a3421;
}
.pill.rejected {
  color: #e49b86;
  background: #37251d;
}
.empty {
  padding: 50px 20px;
  color: var(--muted);
  text-align: center;
  line-height: 1.8;
}
.creator-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 45px 0 20px;
}
.creator-title {
  display: flex;
  gap: 15px;
  align-items: center;
}
.creator-title h3 {
  margin: 0;
}
.creator-title p {
  color: var(--muted);
  font-size: 11px;
  margin: 5px 0 0;
}
.track-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.track-card {
  border: 1px solid var(--line);
  border-radius: 5px;
  overflow: hidden;
  background: var(--panel);
}
.track-visual {
  height: 230px;
  position: relative;
}
.track-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.track-card .event-content p {
  color: var(--muted);
  line-height: 1.8;
  font-size: 12px;
  min-height: 43px;
}
.track-card .event-bottom {
  border-top: 1px solid var(--line);
  padding-top: 15px;
}
.track-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.track-chips span {
  padding: 5px 8px;
  border: 1px solid #444938;
  border-radius: 2px;
  font-size: 9px;
  color: #b8c39e;
}
.form-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.7fr);
  gap: 45px;
}
.form-panel {
  padding: 30px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 5px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 9px;
  min-width: 0;
}
.field label,
.label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: #c1c6b2;
}
.field small {
  font-size: 10px;
  line-height: 1.6;
  color: var(--muted);
}
.full {
  grid-column: 1/-1;
}
.field textarea {
  min-height: 90px;
  resize: vertical;
}
.checks {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}
.checks label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
}
.checks input {
  min-height: 0;
  accent-color: var(--yellow);
  width: 15px;
  height: 15px;
}
.rule {
  display: flex;
  gap: 18px;
  padding: 23px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
}
.rule b {
  font-family: var(--display);
  font-size: 25px;
  color: var(--yellow);
}
.rule strong {
  display: block;
  color: var(--white);
  font-size: 13px;
  margin-bottom: 6px;
}
.admin-nav {
  display: flex;
  gap: 7px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 18px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}
.admin-nav button {
  padding: 12px 18px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  border-radius: 3px;
  font-size: 11px;
}
.admin-nav button.selected {
  color: #15170c;
  background: var(--yellow);
  border-color: var(--yellow);
}
.admin-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.admin-toolbar h3 {
  margin: 0;
}
.admin-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}
.admin-stat {
  border: 1px solid var(--line);
  padding: 26px;
  background: var(--panel);
  border-radius: 4px;
}
.admin-stat strong {
  font-family: var(--display);
  font-size: 48px;
  color: var(--yellow);
  display: block;
  margin-bottom: 10px;
}
.admin-stat span {
  font-size: 10px;
  color: var(--muted);
}
.profile-hero {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 30px;
}
.profile-hero .avatar {
  width: 90px;
  height: 90px;
  font-size: 24px;
}
.profile-hero h2 {
  font-size: 50px;
  margin-bottom: 8px;
}
.profile-hero p {
  color: var(--muted);
}
dialog {
  border: 1px solid #555b3e;
  border-radius: 7px;
  background: #1a1d15;
  color: var(--white);
  width: min(680px, calc(100% - 32px));
  max-height: 90vh;
  padding: 30px;
  box-shadow: 0 30px 100px #000a;
}
dialog::backdrop {
  background: #050704c9;
  backdrop-filter: blur(8px);
}
.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 25px;
}
.modal-head h3 {
  margin: 0;
}
.close {
  color: var(--white);
  background: #303526;
  border: 0;
  width: 32px;
  height: 32px;
  font-size: 22px;
  border-radius: 50%;
}
.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 28px;
}
.danger {
  color: #e59a83;
}
.helper {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.8;
}
.error {
  color: #ffb49a;
  font-size: 12px;
  line-height: 1.7;
}
.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  background: var(--yellow);
  color: #1a1d11;
  padding: 15px 22px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 4px;
  box-shadow: 0 10px 40px #0009;
  max-width: 90vw;
}
.proof-video {
  width: 100%;
  max-height: 360px;
  background: #000;
}
.event-detail {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 35px;
}
.event-detail > img {
  width: 100%;
  border-radius: 5px;
}
.detail-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
  padding: 25px 0;
}
.detail-list span {
  font-size: 10px;
  color: var(--muted);
  display: block;
  margin-bottom: 10px;
}
.detail-list strong {
  font-size: 13px;
}
.hidden {
  display: none !important;
}
.motion-off * {
  animation: none !important;
}
.track-map {
  height: 270px;
  position: relative;
}
@media (min-width: 1500px) {
  header,
  .hero,
  .section,
  .page,
  .community-strip,
  footer {
    padding-left: max(4.5%, calc((100% - 1500px) / 2));
    padding-right: max(4.5%, calc((100% - 1500px) / 2));
  }
  .hero-bottom {
    left: max(4.5%, calc((100% - 1500px) / 2));
    right: max(4.5%, calc((100% - 1500px) / 2));
  }
  .hero {
    height: 860px;
  }
  .car-stage {
    inset: 180px 15% 110px;
  }
}
@media (max-width: 1000px) {
  header {
    padding: 0 4%;
    gap: 15px;
  }
  .brand span {
    display: none;
  }
  .nav {
    gap: 18px;
  }
  .nav-actions {
    gap: 10px;
  }
  .hero {
    height: 720px;
  }
  .hero h1 {
    font-size: 15vw;
    margin-top: 70px;
  }
  .car-stage {
    inset: 210px 3% 120px;
  }
  .hero-side {
    display: none;
  }
  .spec {
    gap: 20px;
  }
  .event-image {
    height: 170px;
  }
  .event-content {
    padding: 18px;
  }
  .event-grid {
    gap: 14px;
  }
  .split {
    gap: 5%;
  }
  .large-copy {
    font-size: 63px;
  }
  .event-detail {
    grid-template-columns: 1fr;
  }
  .page-title {
    font-size: 66px;
  }
}
@media (max-width: 720px) {
  header {
    height: 80px;
  }
  .brand img {
    width: 50px;
    height: 50px;
  }
  .brand span {
    display: block;
    font-size: 8px;
  }
  .nav-actions > .button {
    min-height: 36px;
    padding: 0 13px;
    font-size: 9px;
  }
  .nav-actions > .text-button {
    font-size: 10px;
  }
  .menu-button {
    display: block;
  }
  .nav {
    display: none;
    position: absolute;
    top: 79px;
    left: 0;
    right: 0;
    background: #181b13;
    flex-direction: column;
    gap: 0;
    align-items: stretch;
    padding: 10px 6%;
    border-bottom: 1px solid var(--line);
  }
  .nav.open {
    display: flex;
  }
  .nav a {
    padding: 18px 0;
  }
  .nav a.active:after {
    bottom: 8px;
    width: 24px;
  }
  .hero {
    height: 730px;
    padding-top: 26px;
  }
  .hero-top {
    font-size: 8px;
  }
  .hero-top .tiny {
    font-size: 8px;
    letter-spacing: 0.8px;
  }
  .hero-top > span:last-child {
    display: none;
  }
  .hero h1 {
    font-size: 18vw;
    white-space: normal;
    line-height: 0.86;
    margin: 40px 0 0;
    letter-spacing: -1px;
    max-width: 95%;
  }
  .hero h1 span {
    display: block;
  }
  .car-stage {
    inset: 180px -18% 240px;
  }
  .orbit {
    top: 300px;
    height: 120px;
    left: 1%;
    width: 98%;
  }
  .hero-bottom {
    bottom: 30px;
    flex-direction: column;
    align-items: flex-start;
    gap: 30px;
  }
  .hero-copy {
    max-width: 90%;
  }
  .hero-copy p {
    font-size: 12px;
    margin-bottom: 18px;
    max-width: 280px;
  }
  .hero-controls {
    gap: 12px;
  }
  .hero-controls .button {
    padding: 0 18px;
  }
  .hero-controls .text-button {
    font-size: 10px;
  }
  .spec {
    width: 100%;
    justify-content: space-between;
    gap: 12px;
  }
  .spec strong {
    font-size: 21px;
  }
  .spec .tiny {
    font-size: 8px;
    letter-spacing: 1px;
  }
  .scroll-cue {
    display: none;
  }
  .ticker {
    height: 40px;
    font-size: 17px;
  }
  .section {
    padding: 45px 5%;
  }
  .section-head {
    align-items: flex-end;
  }
  .section-head > .text-button {
    font-size: 9px;
    gap: 8px;
  }
  h2 {
    font-size: 40px;
  }
  .eyebrow {
    font-size: 8px;
    letter-spacing: 1.5px;
  }
  .event-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .event-image {
    height: 220px;
  }
  .event-content {
    padding: 23px;
  }
  .split {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .large-copy {
    font-size: 62px;
  }
  .community-strip {
    padding: 35px 5%;
    flex-direction: column;
    align-items: flex-start;
  }
  .community-strip h2 {
    font-size: 42px;
  }
  .footer-top {
    align-items: flex-start;
    gap: 30px;
  }
  .footer-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 12px;
  }
  .page {
    padding: 40px 5% 55px;
  }
  .page-heading {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }
  .page-title {
    font-size: 60px;
  }
  .page-heading p {
    font-size: 12px;
  }
  .filters {
    gap: 10px;
  }
  .filters label {
    flex: 1;
    min-width: 130px;
  }
  .filters label select {
    min-width: 0;
    width: 100%;
    font-size: 11px;
  }
  .track-grid {
    grid-template-columns: 1fr;
  }
  .creator-header {
    gap: 12px;
    align-items: center;
  }
  .creator-title h3 {
    font-size: 27px;
  }
  .creator-header .outline {
    font-size: 9px;
    padding: 0 12px;
    min-height: 35px;
  }
  .form-layout {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .form-panel {
    padding: 20px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .full {
    grid-column: auto;
  }
  .admin-stat-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .admin-stat {
    padding: 20px;
  }
  .admin-nav button {
    padding: 10px 12px;
    font-size: 10px;
  }
  .admin-toolbar {
    align-items: center;
    gap: 16px;
  }
  .admin-toolbar h3 {
    font-size: 26px;
  }
  dialog {
    padding: 22px;
  }
  .event-detail {
    gap: 23px;
  }
  .track-visual {
    height: 200px;
  }
  .profile-hero h2 {
    font-size: 38px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
@media (max-width: 720px) {
  header .brand span {
    display: none;
  }
  header .nav-actions {
    gap: 12px;
  }
  header .nav-actions > .text-button {
    font-size: 9px;
    gap: 6px;
  }
  header .nav-actions > .button {
    gap: 12px;
  }
  header .brand {
    gap: 0;
  }
  .result-row .field label {
    display: flex;
    flex-direction: column;
    gap: 9px;
  }
  .result-row input,
  .result-row select {
    width: 100%;
  }
}
.result-row .field label {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.result-row input,
.result-row select {
  width: 100%;
}
.lap-record {
  margin: 5px 0 22px;
}
.lap-record.compact {
  padding: 20px 0 0;
  margin: 23px 0 0;
  border-top: 1px solid var(--line);
}
.lap-record .eyebrow {
  margin-bottom: 12px;
}
.record-main {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.record-main > strong {
  font-family: var(--display);
  font-size: 62px;
  line-height: 1;
  color: var(--yellow);
  font-variant-numeric: tabular-nums;
}
.compact .record-main {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}
.compact .record-main > strong {
  font-size: 34px;
}
.lap-record .helper {
  margin: 15px 0 0;
  min-height: 0 !important;
}
.no-record {
  font-family: var(--display);
  font-size: 26px;
  font-weight: 600;
}
.track-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.8fr);
  gap: 36px;
}
.track-detail-image {
  display: block;
  width: 100%;
  border-radius: 5px;
}
.track-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-top: 30px;
  padding: 25px 0;
  border-top: 1px solid var(--line);
}
.track-facts > div {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}
.track-facts strong {
  font-size: 15px;
}
.track-facts .helper {
  margin: 0;
}
.track-detail-actions {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 30px;
}
.tire-settings {
  border: 1px solid var(--line);
  padding: 20px;
  border-radius: 4px;
}
.tire-settings legend {
  padding: 0 8px;
  font-size: 9px;
}
.compound-dot,
.compound:before {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #e7dfb2;
  flex-shrink: 0;
}
.compound:before {
  content: "";
  margin-right: 7px;
}
.ultrasoft {
  --tire: #be76ea;
}
.soft {
  --tire: #f76b67;
}
.medium {
  --tire: #f4df4b;
}
.hard {
  --tire: #e5e8e0;
}
.ultrahard {
  --tire: #f7a455;
}
.intermediate {
  --tire: #7cc581;
}
.wet {
  --tire: #6cacf4;
}
.compound-dot,
.compound:before {
  background: var(--tire, #e7dfb2);
}
.tire-compounds {
  gap: 10px;
}
.tire-settings .checks {
  gap: 20px;
}
.track-card .event-meta {
  line-height: 1.8;
  flex-wrap: wrap;
}
.nav {
  gap: 22px;
}
@media (max-width: 1100px) and (min-width: 721px) {
  header .nav {
    gap: 15px;
  }
  header .nav a {
    font-size: 11px;
  }
  header .nav-actions > .text-button {
    gap: 7px;
    font-size: 10px;
  }
  header .nav-actions > .button {
    gap: 12px;
    padding: 0 16px;
  }
  .brand span {
    display: none;
  }
}
@media (max-width: 720px) {
  .track-detail-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .record-main > strong {
    font-size: 56px;
  }
  .compact .driver-name {
    font-size: 11px;
  }
  .track-facts {
    gap: 23px;
  }
  .tire-settings {
    padding: 15px;
  }
  .track-facts .full {
    grid-column: 1/-1;
  }
  .admin-toolbar .outline {
    font-size: 9px;
    padding: 0 12px;
  }
  .nav {
    gap: 0;
  }
  .track-card .event-content p {
    min-height: 0;
  }
}
/* Driver accounts and public profile dialogs */
.driver-link {
  background: none;
  border: 0;
  padding: 0;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  display: inline-flex;
}
.driver-link:hover {
  color: var(--yellow);
}
.driver-link:focus-visible {
  outline: 2px solid var(--yellow);
  outline-offset: 5px;
}
.profile-banner {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 5px;
  margin: 0 0 24px;
}
.profile-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 26px 0 30px;
}
.profile-stats > div {
  padding: 17px 12px;
  background: #171816;
  border: 1px solid var(--line);
}
.profile-stats strong {
  font:
    600 38px "Barlow Condensed",
    sans-serif;
  color: var(--yellow);
  display: block;
}
.profile-stats span {
  font-size: 11px;
  color: var(--muted);
}
.profile-record {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.profile-record small {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-top: 7px;
}
.profile-records {
  margin-bottom: 20px;
}
.driver-history {
  max-height: 55vh;
  overflow: auto;
  overscroll-behavior: contain;
  padding-right: 10px;
}
.history-entry {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}
.history-entry h3 {
  font-size: 27px;
  margin: 10px 0;
}
.history-entry p {
  font-size: 12px;
  color: var(--muted);
}
.account-signin {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
  padding: 45px;
}
.account-signin h3 {
  margin-top: 24px;
}
.account-signin .body-copy {
  margin: 20px auto 28px;
}
.account-signin .helper {
  margin-top: 20px;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
.field input[type="file"] {
  font-size: 12px;
  padding: 12px;
}
.field input[type="file"]::file-selector-button {
  background: #2a2c25;
  border: 0;
  color: #fff;
  padding: 8px;
  margin-right: 12px;
}
.profile-hero .avatar {
  width: 72px;
  height: 72px;
  font-size: 24px;
}
.form-actions {
  flex-wrap: wrap;
}
@media (max-width: 650px) {
  .profile-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .profile-banner {
    height: 125px;
  }
  .history-entry {
    flex-direction: column;
    gap: 5px;
  }
  .account-signin {
    padding: 24px;
  }
  .nav-actions {
    gap: 10px;
  }
  .nav-actions > .text-button {
    font-size: 11px;
  }
  .nav-actions > .text-button[href="#admin"] {
    display: none;
  }
}
