@font-face {
  font-family: "Chewy";
  src: url("assets/fonts/Chewy-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --ink: #111;
  --cream: #fff7df;
  --paper: #fffdf6;
  --sun: #ffd84d;
  --green: #0f9f5f;
  --sky: #289ee4;
  --grass: #38b765;
  --muted: #4b453c;
  --red: #d93d43;
  --line: 4px solid var(--ink);
  --thin: 3px solid var(--ink);
  --shadow: 6px 6px 0 var(--ink);
}

* {
  box-sizing: border-box;
}

html {
  height: 100%;
  overflow: hidden;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  height: 100%;
  margin: 0;
  color: var(--ink);
  font-family: Chewy, system-ui, sans-serif;
  background:
    radial-gradient(ellipse at 8% 20%, rgba(255,255,255,.42) 0 42px, transparent 43px),
    radial-gradient(ellipse at 94% 25%, rgba(255,255,255,.42) 0 52px, transparent 53px),
    linear-gradient(180deg, var(--sky) 0 54%, var(--grass) 54% 100%);
  letter-spacing: 0;
  overflow: hidden;
}

button,
input,
select {
  font: inherit;
  letter-spacing: 0;
}

button,
.button,
.tab,
.view-tabs a,
.filter,
.preset,
h2,
h3,
.skin-card strong,
.skin-card em,
.race-main h3 {
  font-family: Chewy, system-ui, sans-serif;
}

.app-shell {
  display: flex;
  flex-direction: column;
  width: min(1180px, calc(100% - 28px));
  height: calc(100vh - 32px);
  height: calc(100dvh - 32px);
  margin: 16px auto;
  border: var(--line);
  border-radius: 8px;
  background: var(--cream);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(390px, 510px);
  align-items: center;
  min-height: 118px;
  border-bottom: var(--thin);
  background: var(--cream);
}

.hero-copy {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
  padding: 15px 28px;
}

.brand-mark {
  width: 58px;
  height: 58px;
  border: 3px solid var(--ink);
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 3px 3px 0 rgba(17,17,17,.25);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin: 0;
  font-family: Chewy, system-ui, sans-serif;
  font-size: clamp(2.9rem, 5vw, 4.35rem);
  line-height: .78;
  text-shadow: 2px 2px 0 rgba(17,17,17,.14);
  text-transform: uppercase;
}

.brand-title {
  display: inline-flex;
  align-items: baseline;
  flex-wrap: nowrap;
  min-width: 0;
  white-space: nowrap;
}

.brand-title .char {
  display: inline-block;
  transform: translateY(var(--lift)) rotate(var(--tilt));
}

.brand-title .space {
  display: inline-block;
  width: .35em;
}

.skin-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 120px;
  gap: 18px;
  align-items: center;
  justify-items: stretch;
  min-height: 118px;
  padding: 12px 24px;
  border-left: var(--thin);
  background: var(--paper);
  text-align: left;
}

.skin-card img {
  width: 115px;
  justify-self: center;
  filter: drop-shadow(3px 4px 0 rgba(17,17,17,.25));
}

.skin-copy {
  display: grid;
  place-items: center;
  min-width: 0;
  text-align: center;
  transform: translateX(12px);
}

.skin-card strong,
.skin-card em {
  display: block;
  font-style: normal;
}

.skin-card strong {
  font-size: clamp(1.2rem, 2.1vw, 1.75rem);
  line-height: 1.05;
  width: 100%;
}

.skin-card em {
  margin-top: 3px;
  color: var(--green);
  font-size: clamp(1.35rem, 2.4vw, 2rem);
  line-height: 1;
  width: 100%;
}

.view-tabs {
  flex: 0 0 auto;
  display: flex;
  gap: 20px;
  align-items: center;
  min-height: 56px;
  padding: 8px 20px;
  border-bottom: var(--thin);
  background: var(--paper);
}

.button,
.tab,
.filter,
.refresh-button,
.preset {
  min-height: 42px;
  border: var(--thin);
  border-radius: 8px;
  color: var(--ink);
  background: var(--paper);
  box-shadow: 4px 4px 0 var(--ink);
  cursor: pointer;
  text-decoration: none;
  text-align: center;
}

.button,
.tab,
.filter,
.refresh-button,
.preset {
  padding: 9px 18px;
}

.button.primary,
.tab.active,
.filter.active,
.preset:hover {
  background: var(--sun);
}

.button:hover,
.button:focus-visible,
.tab:hover,
.tab:focus-visible,
.filter:hover,
.filter:focus-visible,
.refresh-button:hover,
.refresh-button:focus-visible,
.preset:focus-visible {
  transform: translateY(-1px);
  outline: none;
}

.view {
  position: relative;
  display: none;
  flex: 1 1 auto;
  min-height: 0;
  padding: 16px 20px 18px;
  background: var(--cream);
  overflow: hidden;
}

.view.active {
  display: flex;
  flex-direction: column;
}

.section-heading {
  flex: 0 0 auto;
  display: flex;
  gap: 18px;
  align-items: end;
  justify-content: space-between;
  margin: 0 0 12px;
}

.race-heading {
  display: grid;
  grid-template-columns: minmax(0, .86fr) auto minmax(0, 1.14fr);
  align-items: end;
}

.race-heading > .event-timer {
  align-self: end;
  justify-self: center;
  transform: translate(-64px, -4px);
}

.race-heading > .filters {
  justify-self: end;
  flex-wrap: nowrap;
}

.race-heading-actions {
  display: flex;
  flex-wrap: nowrap;
  gap: 12px;
  align-items: center;
  justify-content: flex-end;
  align-self: end;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

h2 {
  margin: 0 0 4px;
  font-size: clamp(1.9rem, 3.5vw, 2.75rem);
  line-height: .95;
  text-transform: uppercase;
}

.section-note {
  margin: 0;
  color: var(--muted);
  font-size: .95rem;
}

.sync-status {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  min-height: 28px;
  margin: 7px 0 0;
  padding: 4px 9px;
  border: 2px solid var(--ink);
  border-radius: 7px;
  color: var(--ink);
  background: #fffdf8;
  font-size: .82rem;
  line-height: 1.05;
}

.sync-status[data-state="live"] {
  background: #dff8df;
}

.sync-status[data-state="fallback"] {
  background: #fff0c2;
}

.contract-strip {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: minmax(155px, .8fr) minmax(0, 1.7fr) auto;
  gap: 12px;
  align-items: center;
  margin: 0 0 12px;
  padding: 10px 12px;
  border: var(--thin);
  border-radius: 8px;
  background: var(--paper);
}

.contract-strip span,
.contract-strip p {
  color: var(--muted);
  font-size: .82rem;
}

.contract-strip strong,
.contract-source {
  color: var(--ink);
  font-size: 1.02rem;
  line-height: 1;
  text-transform: uppercase;
}

.contract-strip span,
.contract-strip strong,
.contract-card span,
.contract-card strong,
.contract-card p {
  display: block;
}

.contract-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.contract-card {
  min-width: 0;
  padding: 8px 10px;
  border: 2px solid var(--ink);
  border-radius: 7px;
  color: inherit;
  background: #fffdf8;
  text-decoration: none;
}

.contract-card strong {
  margin: 2px 0;
  overflow-wrap: anywhere;
}

.contract-card p {
  margin: 0;
  line-height: 1;
}

.contract-source {
  justify-self: end;
  text-decoration-thickness: 3px;
  text-underline-offset: 3px;
  white-space: nowrap;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
}

.race-heading-actions .filters {
  flex-wrap: nowrap;
}

.filter {
  min-width: 116px;
  text-transform: uppercase;
}

.refresh-button {
  min-width: 92px;
  background: #fff0c2;
  text-transform: uppercase;
}

.refresh-button:disabled {
  cursor: wait;
  opacity: .75;
  transform: none;
}

.icon-filter {
  min-width: 54px;
  font-size: 1.25rem;
}

.help-toggle[aria-expanded="true"] {
  background: var(--sun);
}

.how-panel {
  position: absolute;
  top: 92px;
  right: 20px;
  z-index: 30;
  width: min(430px, calc(100% - 40px));
  padding: 14px;
  border: var(--thin);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.how-panel[hidden] {
  display: none;
}

.how-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.how-panel-head strong {
  font-size: 1.35rem;
  line-height: 1;
  text-transform: uppercase;
}

.how-close {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: var(--thin);
  border-radius: 8px;
  background: var(--sun);
  box-shadow: 3px 3px 0 var(--ink);
  cursor: pointer;
  line-height: 1;
}

.how-steps {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.how-steps li {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.how-steps span {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: var(--thin);
  border-radius: 50%;
  background: var(--sun);
  box-shadow: 3px 3px 0 var(--ink);
}

.how-steps a,
.how-steps strong {
  color: var(--ink);
  font-size: 1.05rem;
  line-height: 1;
  text-transform: uppercase;
}

.how-steps a {
  text-decoration-thickness: 3px;
  text-underline-offset: 3px;
}

.how-steps p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.1;
}

.race-list,
.leaderboard-list {
  display: grid;
  gap: 12px;
  align-content: start;
  grid-auto-rows: max-content;
}

.race-list {
  flex: 1 1 auto;
  min-height: 0;
  padding-right: 8px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

.leaderboard-list,
.admin-layout {
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}

.race-card {
  display: grid;
  grid-template-columns: minmax(240px, 1.35fr) minmax(230px, 1fr) 90px 150px;
  gap: 14px;
  align-items: center;
  min-height: 96px;
  padding: 10px 14px;
  border: var(--thin);
  border-radius: 8px;
  background: var(--paper);
}

.race-main {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-width: 0;
}

.status-dot {
  width: 13px;
  height: 13px;
  border: 3px solid var(--ink);
  border-radius: 50%;
  background: var(--green);
}

.race-main h3 {
  margin: 0;
  font-size: clamp(1.25rem, 2.3vw, 1.8rem);
  line-height: 1;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.race-id {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 1.02rem;
}

.race-stats {
  display: grid;
  gap: 2px;
}

.race-stats p {
  margin: 0;
  font-size: .92rem;
  line-height: 1.15;
}

.race-id,
.race-stats p,
.fill,
.leader-row span:not(.rank),
.rank {
  font-family: Chewy, system-ui, sans-serif;
}

.event-timer {
  display: inline-grid;
  place-items: center;
  align-self: center;
  flex: 0 0 auto;
  width: auto;
  min-width: 270px;
  max-width: none;
  min-height: 42px;
  padding: 8px 14px;
  border: var(--thin);
  border-radius: 8px;
  background: #fff0c2;
  box-shadow: 4px 4px 0 var(--ink);
  font-size: 1rem;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
}

.event-timer[data-state="soon"] {
  background: #fff0c2;
}

.event-timer[data-state="empty"] {
  background: var(--paper);
}

.setup-shell {
  max-height: calc(100dvh - 32px);
}

.setup-hero {
  grid-template-columns: minmax(0, 1fr) minmax(300px, 390px);
}

.mini-label {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: .95rem;
  text-transform: uppercase;
}

.setup-title {
  font-size: clamp(3rem, 8vw, 5rem);
}

.setup-view {
  overflow-y: auto;
}

.setup-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.setup-card,
.setup-panel,
.creator-race-card {
  border: var(--thin);
  border-radius: 8px;
  background: var(--paper);
}

.setup-card {
  display: grid;
  gap: 8px;
  align-content: start;
  min-height: 188px;
  padding: 14px;
}

.setup-card span,
.creator-race-card span {
  color: var(--muted);
  font-size: .85rem;
  text-transform: uppercase;
}

.setup-card strong,
.creator-race-card strong {
  display: block;
  min-width: 0;
  font-size: 1.25rem;
  line-height: 1;
  overflow-wrap: anywhere;
}

.setup-card p,
.creator-race-card p {
  margin: 0;
  color: var(--muted);
  font-size: .94rem;
  line-height: 1.15;
}

.setup-card code {
  display: block;
  min-width: 0;
  padding: 8px;
  border: 2px solid var(--ink);
  border-radius: 7px;
  background: #fffdf8;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .76rem;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.setup-panel {
  padding: 14px;
}

.setup-panel-head {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.setup-panel h3 {
  margin: 0;
  font-size: 1.6rem;
  text-transform: uppercase;
}

.race-builder-panel {
  display: grid;
  gap: 14px;
  margin-bottom: 14px;
}

.preset-actions,
.builder-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.preset-actions .filter {
  min-width: 96px;
}

.race-builder-form {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 0;
  border: 0;
  background: transparent;
}

.race-builder-form label {
  min-width: 0;
}

.race-builder-form label:first-child,
.race-builder-form label:nth-child(6),
.race-builder-form label:nth-child(7) {
  grid-column: span 2;
}

.builder-output {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: 12px;
}

.builder-output > div {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.builder-output span {
  color: var(--muted);
  font-size: .85rem;
  text-transform: uppercase;
}

.builder-output code {
  min-height: 58px;
  padding: 10px;
  border: 2px solid var(--ink);
  border-radius: 7px;
  background: #fffdf8;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .78rem;
  line-height: 1.28;
  overflow-wrap: anywhere;
}

.creator-races {
  display: grid;
  gap: 10px;
}

.creator-race-card {
  display: grid;
  gap: 4px;
  padding: 12px;
  color: inherit;
  text-decoration: none;
}

.admin-form label,
.ops-panel li,
.help-grid p,
.section-note {
  font-family: Chewy, system-ui, sans-serif;
}

.race-stats strong {
  color: var(--green);
}

.giggling-avatar {
  width: 64px;
  height: 64px;
  justify-self: center;
  border: var(--thin);
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 34%, var(--avatar-face, #ffd84d) 0 18px, transparent 19px),
    radial-gradient(circle at 38% 30%, #151515 0 3px, transparent 4px),
    radial-gradient(circle at 62% 30%, #151515 0 3px, transparent 4px),
    linear-gradient(180deg, var(--avatar-bg, #e84a64), #7c1f33);
  box-shadow: 3px 3px 0 var(--ink);
}

.fill {
  font-size: 1.45rem;
  text-align: center;
}

.race-actions {
  display: grid;
  gap: 6px;
  justify-items: stretch;
}

.race-actions .button {
  min-width: 0;
  min-height: 36px;
  padding-inline: 10px;
}

.leader-row {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 90px 90px 120px;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: var(--thin);
  border-radius: 8px;
  background: var(--paper);
}

.rank {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: var(--thin);
  border-radius: 50%;
  background: var(--sun);
  box-shadow: 3px 3px 0 var(--ink);
}

.admin-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(260px, .75fr);
  gap: 18px;
}

.admin-form,
.ops-panel,
.help-grid article {
  border: var(--thin);
  border-radius: 8px;
  background: var(--paper);
}

.admin-form,
.ops-panel {
  padding: 18px;
}

.admin-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.admin-form label {
  display: grid;
  gap: 6px;
}

.admin-form input,
.admin-form select {
  width: 100%;
  min-height: 42px;
  border: var(--thin);
  border-radius: 7px;
  padding: 8px 10px;
  background: #fff;
}

.preset {
  display: block;
  width: 100%;
  margin-bottom: 10px;
}

.market-panel {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 240px) auto;
  gap: 14px;
  align-items: center;
  margin-top: 12px;
  padding: 12px 14px;
  border: var(--thin);
  border-radius: 8px;
  background: var(--paper);
}

.market-panel h3,
.market-panel p,
.floor-preview span,
.floor-preview strong {
  margin: 0;
}

.market-panel h3 {
  font-size: 1.4rem;
  line-height: 1;
  text-transform: uppercase;
}

.market-panel p,
.floor-preview span {
  color: var(--muted);
  font-size: .92rem;
  line-height: 1.1;
}

.floor-preview {
  display: grid;
  gap: 2px;
  padding: 9px 12px;
  border: 2px solid var(--ink);
  border-radius: 7px;
  background: #fffdf8;
}

.floor-preview strong {
  color: var(--green);
  font-size: 1.1rem;
  line-height: 1;
  text-transform: uppercase;
}

.help-view {
  overflow-y: auto;
}

.help-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.help-image-panel {
  display: grid;
  justify-items: center;
  margin: 18px auto 0;
  width: min(100%, 610px);
}

.help-image-panel img {
  display: block;
  width: min(100%, 610px);
  max-height: none;
  object-fit: contain;
  border: var(--thin);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.help-grid article {
  padding: 18px;
}

.help-card-action {
  display: inline-grid;
  place-items: center;
  min-height: 38px;
  margin-top: 14px;
  padding: 7px 12px;
  font-size: .95rem;
  line-height: 1;
}

.help-rewards {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}

.help-grid .help-rewards span {
  margin-bottom: 0;
}

.help-grid span {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 10px;
  border: var(--thin);
  border-radius: 50%;
  background: var(--sun);
  box-shadow: 3px 3px 0 var(--ink);
}

.help-grid h3 {
  margin-bottom: 6px;
  font-size: 1.35rem;
  line-height: 1;
  text-transform: uppercase;
}

.help-grid p {
  margin: 0;
  color: var(--muted);
  font-size: .98rem;
  line-height: 1.15;
}

.empty-state {
  padding: 24px;
  border: var(--thin);
  border-radius: 8px;
  background: var(--paper);
  font-family: Chewy, system-ui, sans-serif;
  font-weight: 900;
}

@media (max-width: 920px) {
  .app-shell {
    margin-top: 12px;
  }

  .hero,
  .race-card,
  .admin-layout,
  .help-grid,
  .market-panel {
    grid-template-columns: 1fr;
  }

  .skin-card {
    border-left: 0;
    border-top: var(--thin);
  }

  .race-card {
    gap: 12px;
    align-items: start;
  }

  .fill {
    justify-self: start;
  }

  .race-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  html {
    height: auto;
    overflow: auto;
  }

  body {
    min-height: 100vh;
    min-height: 100dvh;
    height: auto;
    overflow-x: hidden;
    overflow-y: auto;
  }

  .app-shell {
    width: min(100% - 14px, 1180px);
    height: auto;
    min-height: calc(100dvh - 24px);
    margin-bottom: 16px;
  }

  .hero-copy {
    padding: 16px 18px;
  }

  .brand-mark {
    width: 52px;
    height: 52px;
  }

  h1 {
    font-size: 2.05rem;
  }

  .skin-card {
    grid-template-columns: minmax(0, 1fr) 102px;
    min-height: 104px;
    padding: 14px 18px;
  }

  .skin-card img {
    width: 101px;
  }

  .skin-copy {
    transform: translateX(8px);
  }

  .view-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 8px 14px;
  }

  .race-heading-actions,
  .event-timer,
  .filters {
    width: 100%;
  }

  .race-heading {
    display: flex;
  }

  .race-heading > .event-timer {
    transform: none;
  }

  .race-heading-actions {
    flex-wrap: wrap;
    justify-content: stretch;
  }

  .race-heading-actions .filters {
    flex-wrap: wrap;
  }

  .view {
    padding: 14px;
    overflow: visible;
  }

  .race-list {
    padding-right: 0;
    overflow: visible;
  }

  .race-card {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px 12px;
    min-height: 0;
    padding: 12px;
  }

  .race-main {
    grid-column: 1 / -1;
  }

  .fill {
    align-self: start;
    justify-self: start;
    font-size: 1.35rem;
  }

  .race-actions {
    grid-column: 1 / -1;
  }

  .section-heading {
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
  }

  .filters {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    justify-content: stretch;
  }

  .filter,
  .refresh-button {
    min-height: 38px;
    min-width: 0;
    width: 100%;
    padding: 8px 4px;
    font-size: clamp(.82rem, 3.3vw, .96rem);
    line-height: 1;
  }

  .icon-filter {
    flex: 0 0 54px;
  }

  .race-card {
    padding: 14px;
  }

  .market-panel {
    gap: 10px;
  }

  .leaderboard-list,
  .admin-layout {
    overflow: visible;
  }

  .setup-grid,
  .race-builder-form,
  .builder-output {
    grid-template-columns: 1fr;
  }

  .race-builder-form label:first-child,
  .race-builder-form label:nth-child(6),
  .race-builder-form label:nth-child(7) {
    grid-column: auto;
  }

  .race-main h3 {
    font-size: 1.45rem;
  }

  .admin-form {
    grid-template-columns: 1fr;
  }

  .leader-row {
    grid-template-columns: 42px minmax(0, 1fr) 82px;
  }

  .leader-row span:nth-child(4),
  .leader-row span:nth-child(5) {
    grid-column: 2 / -1;
  }
}
