:root {
  color-scheme: light;
  --navy: #071d33;
  --navy-2: #0c2d4b;
  --navy-3: #12395a;
  --gold: #f7aa17;
  --gold-2: #ffd268;
  --paper: #f4ead5;
  --paper-2: #fffaf0;
  --ink: #06172a;
  --muted: #637184;
  --line: rgba(255, 255, 255, 0.18);
  --white: #ffffff;
  --good: #2f8f5a;
  --bad: #b84a3c;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  width: 100%;
  margin: 0;
  max-width: 100%;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 10% 0%, rgba(247, 170, 23, 0.22), transparent 34%),
    radial-gradient(circle at 90% 8%, rgba(255, 255, 255, 0.12), transparent 28%),
    linear-gradient(160deg, #03101d 0%, #08223b 48%, #04131f 100%);
  color: var(--white);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.2;
  background-image:
    linear-gradient(30deg, rgba(255, 255, 255, 0.05) 12%, transparent 12.5%, transparent 87%, rgba(255, 255, 255, 0.05) 87.5%),
    linear-gradient(150deg, rgba(255, 255, 255, 0.05) 12%, transparent 12.5%, transparent 87%, rgba(255, 255, 255, 0.05) 87.5%);
  background-size: 42px 74px;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.46;
}

svg {
  width: 1.25em;
  height: 1.25em;
}

.welcome-shell {
  position: relative;
  width: min(900px, calc(100% - 28px));
  margin: 0 auto;
}

.app-shell {
  position: relative;
  width: min(1120px, calc(100vw - 28px));
  max-width: calc(100vw - 28px);
  margin: 0 auto;
}

.welcome-shell {
  padding: 22px 0 34px;
}

.hero {
  position: relative;
  aspect-ratio: 1072 / 840;
  min-height: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  background: #05090c;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.36);
}

.hero-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.x-three {
  left: 57%;
  bottom: 20%;
}

.start-panel,
.briefing,
.scoreboard,
.team-manager,
.leaderboard,
.challenge-tabs,
.clue-card,
.lineup,
.coach-panel,
.bottom-nav {
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(9, 36, 60, 0.98), rgba(3, 17, 30, 0.98));
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
}

.start-panel {
  display: grid;
  grid-template-columns: 1fr 0.65fr 1fr auto;
  gap: 14px;
  align-items: end;
  margin-top: 14px;
  padding: 18px;
}

label {
  display: grid;
  gap: 7px;
  color: var(--white);
  font-size: 0.88rem;
  font-weight: 900;
  text-transform: uppercase;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--ink);
  outline: none;
}

input,
select {
  min-height: 50px;
  padding: 0 14px;
}

textarea {
  min-height: 92px;
  padding: 12px 14px;
  resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(247, 170, 23, 0.22);
}

.primary-button,
.secondary-button,
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  border-radius: 8px;
  font-weight: 950;
  text-transform: uppercase;
}

.primary-button {
  border: 0;
  background: linear-gradient(180deg, var(--gold-2), var(--gold));
  color: var(--ink);
  padding: 0 20px;
  box-shadow: 0 10px 24px rgba(247, 170, 23, 0.28);
}

.secondary-button,
.icon-button {
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  padding: 0 14px;
}

.icon-button {
  position: static;
  width: 52px;
  padding: 0;
}

.briefing {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 14px;
  padding: 14px;
}

.access-hero {
  aspect-ratio: 1072 / 620;
}

.access-panel {
  margin-top: 14px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(9, 36, 60, 0.98), rgba(3, 17, 30, 0.98));
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
}

.access-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}

.access-card {
  display: grid;
  gap: 14px;
  align-content: start;
  min-height: 260px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.team-login-card {
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.55fr) auto;
  align-items: end;
  min-height: 0;
  border-color: rgba(247, 170, 23, 0.34);
  background: rgba(247, 170, 23, 0.08);
}

.team-login-card .access-card-intro {
  align-self: center;
}

.judge-access {
  display: grid;
  gap: 10px;
  justify-items: start;
  margin-top: 12px;
}

.judge-access-toggle {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  min-height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.72);
  padding: 0 11px;
  font-size: 0.76rem;
  font-weight: 950;
  text-transform: uppercase;
}

.judge-access-toggle svg {
  color: var(--gold);
}

.judge-access-toggle.open {
  border-color: rgba(247, 170, 23, 0.3);
  color: var(--white);
}

.judge-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 0.55fr) auto;
  gap: 12px;
  align-items: end;
  width: 100%;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.judge-card[hidden] {
  display: none;
}

.judge-card strong {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.88rem;
  font-weight: 950;
  text-transform: uppercase;
}

.judge-card p {
  margin: 4px 0 0;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.35;
}

.access-card-intro {
  display: grid;
  gap: 8px;
  justify-items: start;
}

.login-emblem {
  position: relative;
  display: grid;
  width: 74px;
  height: 74px;
  overflow: hidden;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background:
    radial-gradient(circle at 28% 24%, rgba(255, 255, 255, 0.24), transparent 28%),
    linear-gradient(145deg, #12395a 0%, #071d33 52%, #020b14 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    inset 0 -8px 18px rgba(0, 0, 0, 0.32),
    0 14px 26px rgba(0, 0, 0, 0.32);
  transform: rotate(-5deg);
}

.login-emblem::before {
  content: "";
  position: absolute;
  inset: 7px;
  border: 2px solid rgba(247, 170, 23, 0.72);
  border-radius: 8px;
  pointer-events: none;
}

.login-emblem-team img {
  position: relative;
  z-index: 1;
  width: 66px;
  height: 66px;
  object-fit: contain;
  filter: drop-shadow(0 8px 10px rgba(0, 0, 0, 0.4));
}

.login-emblem-judge {
  transform: rotate(5deg);
}

.login-emblem-art {
  position: relative;
  z-index: 1;
  width: 92px;
  max-width: none;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 10px 12px rgba(0, 0, 0, 0.48));
}

.login-emblem-score {
  transform: rotate(-5deg) translateY(2px) scale(1.12);
}

.access-card svg {
  color: var(--gold);
  font-size: 2rem;
}

.access-card h3 {
  margin: 8px 0 0;
  color: var(--white);
  font-size: 1.35rem;
  font-weight: 950;
  text-transform: uppercase;
}

.access-card p {
  margin: 6px 0 0;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.45;
}

.info-pill {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  min-width: 0;
  padding: 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.info-pill svg {
  color: var(--gold);
  flex: 0 0 auto;
}

.info-pill strong,
.info-pill span {
  display: block;
}

.info-pill span {
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.9rem;
  line-height: 1.4;
}

.app-shell {
  padding: 14px 0 120px;
}

.topbar {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  width: 100%;
  margin: 0 auto 14px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(9, 36, 60, 0.88), rgba(3, 17, 30, 0.92));
}

.topbar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
}

.app-brand {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  justify-self: start;
  min-width: 0;
  text-align: left;
}

.app-brand img {
  width: 82px;
  max-height: 70px;
  object-fit: contain;
  filter: drop-shadow(0 10px 16px rgba(0, 0, 0, 0.42));
}

.app-brand-text {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.app-brand-text strong {
  display: block;
  overflow-wrap: anywhere;
  color: var(--gold);
  font-family: "Arial Black", Impact, sans-serif;
  font-size: clamp(1.65rem, 5vw, 2.7rem);
  font-weight: 1000;
  letter-spacing: 0;
  line-height: 0.9;
  text-transform: uppercase;
  text-shadow: 0 4px 0 var(--navy);
}

.app-brand-text span {
  display: inline-block;
  justify-self: start;
  padding: 4px 11px 7px;
  border-radius: 8px;
  background: var(--navy);
  color: var(--white);
  font-family: "Marker Felt", "Bradley Hand", "Comic Sans MS", "Trebuchet MS", cursive;
  font-size: clamp(0.95rem, 2.3vw, 1.22rem);
  font-style: normal;
  font-weight: 900;
  line-height: 0.95;
  text-transform: uppercase;
  transform: rotate(-1deg);
}

.scoreboard {
  display: grid;
  grid-template-columns: 1.5fr 0.75fr 0.9fr;
  margin: 18px 0 12px;
  overflow: hidden;
}

.scoreboard div {
  display: grid;
  gap: 4px;
  align-content: center;
  min-height: 126px;
  padding: 18px;
  border-right: 1px solid rgba(255, 255, 255, 0.17);
}

.scoreboard div:last-child {
  border-right: 0;
}

.scoreboard svg {
  color: var(--gold);
  font-size: 2.1rem;
}

.score-art {
  width: clamp(54px, 7vw, 78px);
  height: clamp(38px, 5vw, 58px);
  object-fit: contain;
  filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.34));
}

.score-label {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
}

.scoreboard strong {
  color: var(--white);
  font-size: clamp(1.7rem, 6vw, 3rem);
  font-weight: 1000;
  line-height: 1;
  text-transform: uppercase;
}

.active-team-logo {
  display: block;
  width: clamp(62px, 12vw, 88px);
  height: clamp(62px, 12vw, 88px);
  object-fit: contain;
  border-radius: 50%;
  filter: drop-shadow(0 9px 18px rgba(0, 0, 0, 0.34));
}

.active-team-card strong {
  color: var(--gold);
  font-family: "Arial Black", Impact, "Trebuchet MS", sans-serif;
  font-size: clamp(2rem, 6vw, 3.45rem);
  font-style: normal;
  letter-spacing: 0;
  line-height: 0.9;
  text-transform: uppercase;
  text-shadow:
    0 3px 0 var(--navy),
    0 9px 18px rgba(0, 0, 0, 0.42);
}

.score-total {
  justify-items: center;
  text-align: center;
}

.score-total strong {
  font-size: clamp(3rem, 11vw, 5rem);
}

.score-total small {
  color: var(--gold);
  font-size: 1rem;
  font-weight: 950;
  text-transform: uppercase;
}

.route-boundary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  margin: 0 0 12px;
  padding: 9px;
  border: 1px solid rgba(247, 170, 23, 0.3);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(14, 43, 69, 0.98), rgba(4, 18, 31, 0.98));
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.2);
}

.route-boundary-stop {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  min-width: 0;
  padding: 9px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.route-boundary-stop > span {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 50%;
  background: rgba(247, 170, 23, 0.16);
  color: var(--gold);
}

.route-boundary-stop.finish > span {
  background: rgba(86, 185, 130, 0.16);
  color: #9fe4bb;
}

.route-boundary-stop svg {
  width: 20px;
  height: 20px;
}

.route-boundary-stop small,
.route-boundary-stop strong {
  display: block;
}

.route-boundary-stop small {
  color: var(--gold);
  font-size: 0.7rem;
  font-weight: 950;
  text-transform: uppercase;
}

.route-boundary-stop strong {
  margin-top: 3px;
  color: var(--white);
  font-size: 0.88rem;
  font-weight: 900;
  line-height: 1.18;
}

.route-boundary-arrow {
  color: var(--gold);
}

.route-boundary-arrow svg {
  display: block;
  width: 20px;
  height: 20px;
}

.progress-track {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
}

.progress-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--gold), var(--gold-2));
  transition: width 220ms ease;
}

.judge-portal {
  display: grid;
  gap: 12px;
  margin-top: 12px;
  padding: 14px;
  border: 1px solid rgba(247, 170, 23, 0.26);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(14, 43, 69, 0.98), rgba(4, 18, 31, 0.98));
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
}

.judge-portal .section-heading {
  margin-bottom: 0;
}

.judge-only-note {
  margin: 0;
  padding: 10px 12px;
  border: 1px solid rgba(247, 170, 23, 0.22);
  border-radius: 8px;
  background: rgba(247, 170, 23, 0.1);
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.88rem;
  font-weight: 850;
  line-height: 1.35;
}

.route-settings-form {
  display: grid;
  grid-template-columns: minmax(190px, 1fr) minmax(230px, 1fr) auto;
  gap: 10px;
  align-items: end;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.route-settings-form strong,
.route-settings-form span {
  display: block;
}

.route-settings-form strong {
  color: var(--gold);
  font-size: 0.88rem;
  text-transform: uppercase;
}

.route-settings-form span {
  margin-top: 5px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.8rem;
  font-weight: 800;
  line-height: 1.28;
}

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

.judge-dashboard div {
  display: grid;
  gap: 3px;
  min-height: 82px;
  align-content: center;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.judge-dashboard span,
.judge-dashboard small {
  overflow: hidden;
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.74rem;
  font-weight: 950;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.judge-dashboard strong {
  overflow: hidden;
  color: var(--gold);
  font-size: 1.65rem;
  font-weight: 950;
  line-height: 1;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.judge-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.judge-steps div {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  min-width: 0;
  padding: 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.judge-steps svg {
  flex: 0 0 auto;
  color: var(--gold);
}

.judge-steps span {
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.84rem;
  font-weight: 850;
  line-height: 1.35;
}

.team-code-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 8px;
}

.team-code-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 10px;
  align-items: center;
  min-height: 58px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.team-code-card strong,
.team-code-card span {
  display: block;
}

.team-code-card strong {
  overflow: hidden;
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 950;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.team-code-card span {
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.64);
  font-size: 0.76rem;
  font-weight: 850;
}

.team-code-card b {
  padding: 7px 9px;
  border-radius: 8px;
  background: var(--gold);
  color: var(--ink);
  font-size: 0.85rem;
}

.team-code-card small {
  color: var(--gold);
  font-weight: 950;
  text-transform: uppercase;
  white-space: nowrap;
}

.team-manager {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  gap: 12px;
  margin-top: 12px;
  padding: 12px;
}

.team-setup {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 14px;
  align-items: center;
  margin-top: 12px;
  padding: 14px;
  border: 1px solid rgba(247, 170, 23, 0.3);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(14, 43, 69, 0.98), rgba(4, 18, 31, 0.98));
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.2);
}

.team-setup.complete {
  border-color: rgba(159, 228, 187, 0.3);
}

.setup-eyebrow {
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 950;
  text-transform: uppercase;
}

.team-setup h2,
.team-setup p {
  margin: 0;
}

.team-setup h2 {
  margin-top: 3px;
  color: var(--white);
  font-size: 1.08rem;
  text-transform: uppercase;
}

.team-setup p {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.84rem;
  font-weight: 800;
  line-height: 1.35;
}

.setup-checklist {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  justify-content: flex-end;
}

.setup-checklist span {
  display: inline-flex;
  gap: 5px;
  align-items: center;
  padding: 6px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.7rem;
  font-weight: 950;
  text-transform: uppercase;
}

.setup-checklist span.complete {
  background: rgba(69, 171, 110, 0.16);
  color: #9fe4bb;
}

.setup-checklist svg {
  width: 15px;
  height: 15px;
}

.setup-profile-button {
  white-space: nowrap;
}

.team-profile {
  margin-top: 12px;
  overflow: hidden;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(9, 36, 60, 0.98), rgba(3, 17, 30, 0.98));
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
}

.team-profile-summary {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
}

.profile-summary-photo {
  width: 68px;
  height: 68px;
  overflow: hidden;
  border: 2px solid rgba(247, 170, 23, 0.64);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.profile-summary-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-summary-copy span {
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 950;
  text-transform: uppercase;
}

.profile-summary-copy h2,
.profile-summary-copy p {
  margin: 0;
}

.profile-summary-copy h2 {
  margin-top: 3px;
  color: var(--white);
  font-size: 1rem;
  text-transform: uppercase;
}

.profile-summary-copy p {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.8rem;
  font-weight: 800;
  line-height: 1.35;
}

.profile-collapse-button {
  margin-left: auto;
}

.team-profile .section-heading {
  margin: 0;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.profile-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(220px, 0.75fr) minmax(220px, 0.75fr);
  gap: 0;
  align-items: stretch;
}

.team-only-profile .profile-grid {
  grid-template-columns: minmax(0, 1.1fr) minmax(220px, 0.75fr) minmax(220px, 0.75fr);
}

.judge-profile .profile-grid {
  grid-template-columns: minmax(0, 1.1fr) minmax(220px, 0.75fr) minmax(220px, 0.75fr);
}

.profile-field {
  display: grid;
  gap: 12px;
  align-content: start;
  min-width: 0;
  min-height: 100%;
  padding: 14px 16px;
}

.profile-field + .profile-field {
  border-left: 1px solid rgba(255, 255, 255, 0.14);
}

.profile-field-heading {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  min-height: 42px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.82rem;
  font-weight: 950;
  text-transform: uppercase;
}

.compact-upload {
  min-height: 42px;
  padding: 0 12px;
  font-size: 0.78rem;
  white-space: nowrap;
}

.profile-field-heading small {
  color: var(--gold);
  font-size: 0.76rem;
  font-weight: 950;
}

.roster-field {
  grid-template-rows: auto auto minmax(98px, 1fr);
}

.player-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 74px auto;
  gap: 8px;
}

.adult-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.player-chip-list {
  display: grid;
  gap: 0;
  align-content: start;
  min-height: 98px;
  overflow: hidden;
  border: 2px solid #d9c6a5;
  border-radius: 8px;
  background:
    repeating-linear-gradient(180deg, transparent 0 42px, rgba(7, 29, 51, 0.08) 42px 43px),
    #fffaf0;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.55);
}

.lineup-card-header {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) 34px;
  gap: 8px;
  align-items: center;
  min-height: 36px;
  padding: 0 10px;
  background: var(--navy);
  color: var(--gold);
  font-size: 0.74rem;
  font-weight: 950;
  text-transform: uppercase;
}

.lineup-card-header span:nth-child(2) {
  grid-column: 2 / 4;
}

.lineup-card-empty {
  display: grid;
  min-height: 132px;
  place-items: center;
  padding: 18px;
  text-align: center;
}

.lineup-card-empty span {
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
}

.lineup-card-empty p {
  margin: 6px 0 0;
  color: rgba(6, 23, 42, 0.64);
  font-weight: 900;
  text-transform: uppercase;
}

.player-chip {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) 34px;
  gap: 8px;
  align-items: center;
  min-height: 43px;
  padding: 0 8px;
  border-bottom: 1px solid rgba(7, 29, 51, 0.12);
  color: var(--ink);
  font-weight: 950;
}

.player-chip:last-child {
  border-bottom: 0;
}

.player-chip b {
  display: grid;
  width: 48px;
  height: 30px;
  place-items: center;
  border-radius: 999px;
  background: var(--navy);
  color: var(--white);
  font-size: 0.82rem;
  box-shadow: inset 0 -3px 0 rgba(247, 170, 23, 0.35);
}

.player-chip span {
  overflow: hidden;
  border-bottom: 2px solid rgba(7, 29, 51, 0.28);
  color: var(--navy);
  font-family: "Marker Felt", "Comic Sans MS", "Arial Black", cursive;
  font-size: 1.12rem;
  font-style: italic;
  line-height: 1.2;
  padding-bottom: 2px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.player-chip button {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(184, 74, 60, 0.12);
  color: var(--bad);
  padding: 0;
}

.player-chip button svg {
  width: 14px;
  height: 14px;
}

.adult-leads-field {
  grid-template-rows: auto auto minmax(98px, 1fr);
}

.adult-chip-list {
  display: grid;
  gap: 8px;
  align-content: start;
  min-height: 98px;
}

.adult-chip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 28px;
  gap: 8px;
  align-items: center;
  min-height: 42px;
  padding: 8px 8px 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
}

.adult-chip span {
  overflow: hidden;
  color: var(--white);
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.adult-chip button {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(184, 74, 60, 0.16);
  color: #ffc6bd;
  padding: 0;
}

.adult-chip button svg {
  width: 14px;
  height: 14px;
}

.empty-leads {
  display: grid;
  min-height: 98px;
  margin: 0;
  place-items: center;
  border: 1px dashed rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.82rem;
  font-weight: 950;
  text-align: center;
  text-transform: uppercase;
}

.empty-lineup {
  margin: 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.86rem;
  font-weight: 900;
  text-transform: uppercase;
}

.team-photo-box {
  grid-template-rows: auto minmax(172px, 1fr);
}

.team-photo-frame {
  display: grid;
  min-height: 172px;
  overflow: hidden;
  place-items: center;
  border: 1px dashed rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.team-photo-placeholder {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.team-photo-preview {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 240px;
  object-fit: contain;
  border: 0;
  border-radius: 8px;
}

.team-awards-info {
  margin-top: 12px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(9, 36, 60, 0.96), rgba(3, 17, 30, 0.98));
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.22);
}

.team-finish-summary {
  display: grid;
  gap: 7px;
  justify-items: center;
  margin-top: 12px;
  padding: 18px;
  border: 1px solid rgba(247, 170, 23, 0.42);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(14, 43, 69, 0.98), rgba(4, 18, 31, 0.98));
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.24);
  text-align: center;
}

.team-finish-summary svg {
  width: 42px;
  height: 42px;
  color: var(--gold);
}

.team-finish-summary > span {
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
}

.team-finish-summary h2,
.team-finish-summary p {
  margin: 0;
}

.team-finish-summary h2 {
  color: var(--white);
  font-size: 1.45rem;
  text-transform: uppercase;
}

.team-finish-summary p {
  color: rgba(255, 255, 255, 0.75);
  font-weight: 800;
}

.finish-score-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  width: min(440px, 100%);
  margin-top: 4px;
}

.finish-score-grid span {
  display: grid;
  gap: 3px;
  padding: 9px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.7rem;
  font-weight: 950;
  text-transform: uppercase;
}

.finish-score-grid b {
  color: var(--gold);
  font-size: 1.2rem;
}

.team-awards-info .section-heading {
  margin-bottom: 8px;
}

.team-awards-intro {
  max-width: 760px;
  margin: 0 0 12px;
  color: rgba(255, 255, 255, 0.76);
  font-weight: 850;
  line-height: 1.45;
}

.team-awards-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.team-award-card {
  display: grid;
  gap: 6px;
  align-content: start;
  min-height: 122px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.team-award-card strong {
  color: var(--white);
  font-size: 0.82rem;
  line-height: 1.1;
  text-transform: uppercase;
}

.team-award-card span {
  width: fit-content;
  padding: 5px 7px;
  border-radius: 999px;
  background: rgba(247, 170, 23, 0.16);
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 950;
  text-transform: uppercase;
}

.team-award-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.76rem;
  font-weight: 800;
  line-height: 1.28;
}

.judge-awards {
  grid-column: 1 / -1;
  grid-template-rows: auto 1fr;
}

.award-note {
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.86rem;
  font-weight: 850;
}

.award-controls {
  display: grid;
  grid-template-columns: repeat(5, minmax(150px, 1fr));
  gap: 12px;
  align-content: start;
}

.award-control {
  display: grid;
  gap: 9px;
  align-content: start;
  min-height: 210px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.award-control span {
  display: grid;
  gap: 5px;
}

.award-control b {
  color: var(--white);
  font-size: 0.9rem;
  line-height: 1.1;
  text-transform: uppercase;
}

.award-control small {
  color: rgba(255, 255, 255, 0.64);
  font-size: 0.76rem;
  font-weight: 800;
  line-height: 1.25;
}

.award-evidence-note,
.award-evidence-team {
  display: grid;
  gap: 6px;
  min-height: 42px;
  align-content: center;
  padding: 8px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
}

.award-evidence-note span,
.award-evidence-team span {
  color: rgba(255, 255, 255, 0.56);
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1.25;
  text-transform: uppercase;
}

.award-evidence-list {
  display: grid;
  gap: 7px;
}

.award-evidence-team strong {
  color: var(--gold);
  font-size: 0.74rem;
  font-weight: 950;
  text-transform: uppercase;
}

.award-evidence-team.has-proof {
  border: 1px solid rgba(159, 228, 187, 0.24);
}

.award-proof-strip {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.award-proof-thumb {
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  object-fit: cover;
  border-radius: 8px;
}

.team-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.team-tabs button {
  display: grid;
  gap: 4px;
  min-width: 150px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--white);
  padding: 10px 12px;
  text-align: left;
}

.team-tabs button.active {
  border-color: var(--gold);
  background: rgba(247, 170, 23, 0.15);
  box-shadow: inset 0 -4px 0 var(--gold);
}

.team-tabs strong,
.team-tabs span {
  display: block;
}

.team-tabs strong {
  font-size: 0.92rem;
  font-weight: 950;
  text-transform: uppercase;
}

.team-tabs span {
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 900;
}

.add-team-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(130px, 0.45fr) auto;
  gap: 8px;
  align-items: center;
}

.leaderboard {
  margin-top: 12px;
  padding: 14px;
}

.leaderboard-list {
  display: grid;
  gap: 8px;
}

.leaderboard-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) minmax(240px, auto) auto;
  gap: 12px;
  align-items: center;
  min-height: 54px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  padding: 10px 12px;
}

.leaderboard-row > span {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 2px solid var(--gold);
  border-radius: 50%;
  color: var(--gold);
  font-weight: 950;
}

.leaderboard-row strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.leaderboard-row small {
  color: rgba(255, 255, 255, 0.68);
  font-weight: 800;
}

.leaderboard-row b {
  color: var(--gold);
  font-size: 1.1rem;
  text-transform: uppercase;
}

.score-breakdown {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.score-breakdown span {
  padding: 6px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.72rem;
  font-weight: 950;
  text-transform: uppercase;
}

.challenge-tabs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  margin-top: 12px;
  overflow: hidden;
}

.challenge-tabs button {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 8px;
  align-items: center;
  min-height: 74px;
  border: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.15);
  background: transparent;
  color: var(--white);
  padding: 10px 12px;
  text-align: left;
}

.challenge-tabs button:last-child {
  border-right: 0;
}

.challenge-tabs svg,
.challenge-tabs small {
  color: var(--gold);
}

.category-art {
  width: 56px;
  height: 44px;
  object-fit: contain;
  filter: drop-shadow(0 8px 10px rgba(0, 0, 0, 0.28));
}

.challenge-tabs span {
  font-size: 0.83rem;
  font-weight: 950;
  line-height: 1.1;
  text-transform: uppercase;
}

.challenge-tabs small {
  display: inline-grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 50%;
  background: rgba(247, 170, 23, 0.15);
  font-weight: 950;
}

.challenge-tabs .active {
  background: rgba(247, 170, 23, 0.11);
  box-shadow: inset 0 -5px 0 var(--gold);
}

.layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr) 240px;
  gap: 14px;
  align-items: start;
  margin-top: 14px;
}

.team-layout {
  grid-template-columns: 250px minmax(0, 1fr);
}

.lineup,
.coach-panel,
.clue-card {
  padding: 16px;
}

.section-heading {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 12px;
  color: var(--white);
}

.section-heading svg {
  color: var(--gold);
}

.heading-art {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  object-fit: contain;
  filter: drop-shadow(0 7px 10px rgba(0, 0, 0, 0.3));
}

.section-heading h2 {
  margin: 0;
  font-size: 1rem;
  font-weight: 950;
  text-transform: uppercase;
}

.stop-list {
  display: grid;
  gap: 8px;
}

.stop-chip {
  display: grid;
  grid-template-columns: 38px 1fr 18px;
  gap: 10px;
  align-items: center;
  width: 100%;
  min-height: 66px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--white);
  text-align: left;
}

.stop-chip > span {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 2px solid var(--gold);
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  font-weight: 950;
}

.stop-chip strong,
.stop-chip small {
  display: block;
}

.stop-chip strong {
  font-size: 0.9rem;
  line-height: 1.12;
  text-transform: uppercase;
}

.stop-chip small {
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.65);
}

.stop-state {
  display: inline-flex;
  width: fit-content;
  margin-top: 6px;
  padding: 4px 6px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.62rem;
  font-style: normal;
  font-weight: 950;
  line-height: 1;
  text-transform: uppercase;
}

.stop-state.not-started {
  background: rgba(255, 255, 255, 0.07);
}

.stop-state.proof {
  background: rgba(247, 170, 23, 0.15);
  color: var(--gold);
}

.stop-state.complete {
  background: rgba(69, 171, 110, 0.16);
  color: #9fe4bb;
}

.stop-chip.active {
  border-color: var(--gold);
  background: rgba(247, 170, 23, 0.14);
}

.stop-chip.complete > span {
  background: var(--gold);
  color: var(--ink);
}

.stop-chip.complete svg {
  color: var(--gold);
}

.clue-card {
  background: var(--paper-2);
  color: var(--ink);
}

.card-top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.eyebrow {
  margin: 0 0 8px;
  color: #d18600;
  font-size: 0.76rem;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

.card-top h2 {
  margin: 0 0 8px;
  color: var(--navy);
  font-size: clamp(1.75rem, 5vw, 3.05rem);
  font-style: italic;
  font-weight: 1000;
  line-height: 0.96;
  text-transform: uppercase;
}

.location-line {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  color: var(--muted);
  font-weight: 850;
}

.point-badge {
  display: inline-grid;
  grid-template-rows: min-content min-content;
  gap: 1px;
  align-content: center;
  justify-items: center;
  min-width: 70px;
  min-height: 70px;
  padding: 8px 10px;
  place-items: center;
  align-self: flex-start;
  border-radius: 8px;
  background: linear-gradient(180deg, var(--gold-2), var(--gold));
  color: var(--ink);
  text-align: center;
  text-transform: uppercase;
}

.point-badge strong {
  font-size: 2rem;
  line-height: 0.86;
}

.point-badge span {
  font-size: 0.82rem;
  font-weight: 950;
  line-height: 1;
}

.clue-box {
  display: flex;
  gap: 14px;
  margin: 18px 0;
  padding: 18px;
  border: 1px solid #e4d4b7;
  border-radius: 8px;
  background: #ffffff;
}

.clue-box svg {
  flex: 0 0 auto;
  color: var(--gold);
  font-size: 1.55rem;
}

.clue-box p {
  margin: 0;
  color: var(--navy);
  font-size: 1.12rem;
  font-weight: 850;
  line-height: 1.5;
}

.stop-step {
  display: grid;
  gap: 12px;
  margin-top: 14px;
  padding: 14px;
  border: 1px solid #e4d4b7;
  border-radius: 8px;
  background: #ffffff;
}

.stop-step-find {
  background: #fffaf0;
}

.stop-step-complete {
  border-color: #c9d8e5;
  background: #f4f9fc;
}

.stop-step-heading {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.stop-step-heading h3,
.stop-step-heading p {
  margin: 0;
}

.stop-step-heading h3 {
  color: var(--navy);
  font-size: 0.96rem;
  font-weight: 950;
  line-height: 1.12;
  text-transform: uppercase;
}

.stop-step-heading p {
  margin-top: 4px;
  color: #637184;
  font-size: 0.86rem;
  font-weight: 800;
  line-height: 1.38;
}

.stop-step-number,
.stop-step-badge {
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 999px;
  background: var(--navy);
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
}

.stop-step-number {
  width: 26px;
  height: 26px;
}

.stop-step-badge {
  min-height: 26px;
  padding: 0 9px;
  background: var(--gold);
  color: var(--ink);
}

.stop-step .clue-box,
.stop-step .actions-row,
.stop-step .answer-form,
.stop-step .hint,
.stop-step .photo-preview {
  margin-top: 0;
}

.task-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.task-block {
  display: flex;
  gap: 12px;
  min-width: 0;
  padding: 14px;
  border: 1px solid #e4d4b7;
  border-radius: 8px;
  background: #ffffff;
}

.task-block svg {
  color: var(--navy);
  flex: 0 0 auto;
}

.task-block h3,
.task-block p {
  margin: 0;
}

.task-block h3 {
  color: var(--navy);
  font-size: 0.95rem;
  font-weight: 950;
  text-transform: uppercase;
}

.task-block p {
  margin-top: 5px;
  color: #2a3542;
  line-height: 1.45;
}

.proof-upload-row {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  min-width: 0;
  padding: 12px;
  border: 1px dashed #d4b86d;
  border-radius: 8px;
  background: #fffaf0;
}

.proof-upload-row div {
  min-width: 0;
}

.proof-upload-row strong,
.proof-upload-row span {
  display: block;
}

.proof-upload-row strong {
  color: var(--navy);
  font-size: 0.86rem;
  font-weight: 950;
  text-transform: uppercase;
}

.proof-upload-row span {
  margin-top: 3px;
  color: #637184;
  font-size: 0.8rem;
  font-weight: 800;
  line-height: 1.35;
}

.proof-upload-row .upload-button {
  flex: 0 0 auto;
  white-space: nowrap;
}

.proof-upload-row.has-proof {
  border-color: #8fd2a8;
  background: #eff9f2;
}

.proof-upload-copy {
  display: flex;
  gap: 9px;
  align-items: flex-start;
}

.proof-upload-copy svg {
  flex: 0 0 auto;
  color: var(--good);
}

.trivia-card {
  display: grid;
  gap: 12px;
  margin-top: 14px;
  padding: 14px;
  border: 1px solid #e2be61;
  border-radius: 8px;
  background: #fff8de;
}

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

.trivia-title {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  min-width: 0;
}

.trivia-title-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.trivia-title-copy h3,
.trivia-title-copy span {
  margin: 0;
}

.trivia-title-copy h3 {
  color: var(--navy);
  font-size: 0.96rem;
  font-weight: 950;
  text-transform: uppercase;
}

.trivia-title-copy span {
  color: #637184;
  font-size: 0.8rem;
  font-weight: 800;
  line-height: 1.35;
}

.trivia-header strong {
  flex: 0 0 auto;
  padding: 6px 8px;
  border-radius: 8px;
  background: var(--gold);
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 950;
  text-transform: uppercase;
}

.trivia-card p {
  margin: 0;
  color: var(--navy);
  font-size: 1rem;
  font-weight: 850;
  line-height: 1.42;
}

.trivia-question {
  padding-top: 3px;
}

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

.trivia-options button {
  min-height: 54px;
  border: 1px solid #d7c8aa;
  border-radius: 8px;
  background: #fffaf0;
  color: var(--navy);
  padding: 10px;
  font-weight: 900;
  line-height: 1.18;
  text-align: left;
}

.trivia-options button:not(:disabled):hover,
.trivia-options button:not(:disabled):focus-visible {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(247, 170, 23, 0.16);
}

.trivia-options button.correct-answer {
  border-color: #8fd2a8;
  background: #e9f8ee;
  color: var(--good);
}

.trivia-options button.wrong-answer {
  border-color: #e7b4ad;
  background: #fff1ef;
  color: var(--bad);
}

.trivia-options button.selected {
  box-shadow: inset 0 0 0 2px currentColor;
}

.trivia-card small,
.trivia-result {
  color: #627083;
  font-size: 0.82rem;
  font-weight: 900;
  line-height: 1.3;
  text-transform: uppercase;
}

.trivia-result.good {
  color: var(--good);
}

.trivia-result.retry {
  color: var(--bad);
}

.actions-row,
.nav-row,
.answer-form {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

.clue-card .secondary-button {
  border-color: #d1c0a1;
  background: #ffffff;
  color: var(--navy);
}

.upload-button {
  position: relative;
  overflow: hidden;
}

.upload-button input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.hint,
.status {
  margin-top: 14px;
  border-radius: 8px;
  padding: 12px 14px;
  line-height: 1.45;
}

.hint {
  border: 1px solid #efd086;
  background: #fff4d4;
  color: var(--ink);
}

.photo-preview {
  display: block;
  width: 100%;
  max-height: 320px;
  object-fit: cover;
  margin-top: 14px;
  border: 1px solid #d8c9ad;
  border-radius: 8px;
}

.answer-form {
  align-items: end;
}

.answer-form label {
  flex: 1;
  color: var(--navy);
}

.status.good {
  border: 1px solid #a7d6b8;
  background: #e9f8ee;
  color: var(--good);
  font-weight: 950;
}

.stop-complete-note {
  display: flex;
  gap: 8px;
  align-items: center;
}

.stop-complete-note svg {
  flex: 0 0 auto;
}

.completion-celebration {
  display: grid;
  gap: 6px;
  justify-items: center;
  padding: 15px;
  border: 1px solid #8fd2a8;
  border-radius: 8px;
  background: #e9f8ee;
  color: var(--good);
  text-align: center;
}

.completion-celebration > div {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 50%;
  background: var(--good);
  color: #ffffff;
}

.completion-celebration > span {
  font-size: 0.82rem;
  font-weight: 950;
  text-transform: uppercase;
}

.completion-celebration > strong {
  color: #17663b;
  font-size: 1.14rem;
  text-transform: uppercase;
}

.completion-celebration .primary-button {
  margin-top: 4px;
}

.status.retry {
  border: 1px solid #e7b4ad;
  background: #fff1ef;
  color: var(--bad);
  font-weight: 950;
}

.notes {
  margin-top: 14px;
  color: var(--navy);
}

.stop-notes {
  margin-top: 14px;
  border: 1px solid #e4d4b7;
  border-radius: 8px;
  background: #ffffff;
}

.stop-notes summary {
  display: flex;
  gap: 8px;
  align-items: center;
  min-height: 52px;
  padding: 10px 12px;
  color: var(--navy);
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 950;
  list-style: none;
  text-transform: uppercase;
}

.stop-notes summary::-webkit-details-marker {
  display: none;
}

.stop-notes summary svg {
  color: var(--gold);
}

.stop-notes summary small {
  margin-left: auto;
  color: #637184;
  font-size: 0.72rem;
  font-weight: 950;
}

.stop-notes .notes {
  margin: 0;
  padding: 0 12px 12px;
  color: var(--navy);
  font-size: 0.78rem;
}

.nav-row {
  justify-content: space-between;
}

.coach-panel ul {
  margin: 0;
  padding-left: 19px;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.55;
}

.answer-key {
  display: grid;
  gap: 8px;
  margin-top: 16px;
  padding: 13px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.answer-key h3 {
  margin: 0 0 2px;
  color: var(--gold);
  font-size: 0.95rem;
  font-weight: 950;
  text-transform: uppercase;
}

.answer-key span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.9rem;
  font-weight: 900;
}

.adult-code-sheet p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.84rem;
  line-height: 1.4;
}

.code-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 8px;
  align-items: center;
  padding: 9px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.code-row span {
  overflow: hidden;
  color: var(--white);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.code-row small {
  grid-column: 1;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.74rem;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.code-row b {
  grid-column: 2;
  grid-row: 1 / span 2;
  padding: 7px 8px;
  border-radius: 8px;
  background: var(--gold);
  color: var(--ink);
  font-size: 0.82rem;
  text-transform: uppercase;
}

.finish-box {
  display: grid;
  gap: 6px;
  margin-top: 16px;
  padding: 14px;
  border-radius: 8px;
  background: rgba(247, 170, 23, 0.15);
  color: var(--gold);
}

.finish-box p {
  margin: 0;
  color: var(--white);
}

.judge-review-center {
  display: grid;
  gap: 12px;
  margin-top: 12px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(9, 36, 60, 0.98), rgba(3, 17, 30, 0.98));
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.24);
}

.judge-review-center .section-heading {
  margin-bottom: 0;
}

.judge-review-note {
  margin: 0;
  color: rgba(255, 255, 255, 0.74);
  font-weight: 850;
  line-height: 1.45;
}

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

.review-meter-grid div {
  display: grid;
  gap: 3px;
  min-height: 66px;
  align-content: center;
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.review-meter-grid strong {
  color: var(--gold);
  font-size: 1.55rem;
  line-height: 1;
}

.review-meter-grid span {
  color: rgba(255, 255, 255, 0.64);
  font-size: 0.74rem;
  font-weight: 950;
  text-transform: uppercase;
}

.judge-review-center .proof-gallery {
  margin-top: 0;
}

.proof-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.proof-filter-bar button {
  min-height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.68);
  padding: 0 10px;
  font-size: 0.7rem;
  font-weight: 950;
  text-transform: uppercase;
}

.proof-filter-bar button.active {
  border-color: var(--gold);
  background: rgba(247, 170, 23, 0.15);
  color: var(--gold);
}

.judge-danger-zone {
  display: grid;
  gap: 12px;
  margin-top: 12px;
  padding: 14px;
  border: 1px solid rgba(184, 74, 60, 0.32);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(56, 18, 24, 0.8), rgba(3, 17, 30, 0.98));
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.24);
}

.judge-danger-zone .section-heading {
  margin-bottom: 0;
}

.judge-danger-zone .section-heading svg {
  color: #ffc6bd;
}

.danger-note {
  margin: 0;
  color: rgba(255, 226, 221, 0.82);
  font-weight: 850;
  line-height: 1.45;
}

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

.danger-button,
.danger-reset-form {
  display: grid;
  gap: 6px;
  align-content: start;
  min-height: 122px;
  border: 1px solid rgba(255, 198, 189, 0.28);
  border-radius: 8px;
  background: rgba(184, 74, 60, 0.14);
  color: var(--white);
  padding: 12px;
  text-align: left;
}

.danger-button:hover,
.danger-reset-form:hover {
  background: rgba(184, 74, 60, 0.22);
}

.danger-button strong,
.danger-reset-form strong {
  display: block;
  color: #ffd5cf;
  font-size: 0.82rem;
  line-height: 1.12;
  text-transform: uppercase;
}

.danger-button span,
.danger-reset-form span {
  display: block;
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.76rem;
  font-weight: 800;
  line-height: 1.3;
}

.danger-reset-form label {
  display: grid;
  gap: 5px;
  color: #ffd5cf;
  font-size: 0.72rem;
  font-weight: 950;
  text-transform: uppercase;
}

.danger-reset-form input {
  min-height: 38px;
}

.danger-button-submit {
  min-height: 38px;
  border: 1px solid rgba(255, 198, 189, 0.38);
  border-radius: 8px;
  background: rgba(255, 198, 189, 0.12);
  color: #ffd5cf;
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
}

.danger-button-full {
  border-color: rgba(255, 198, 189, 0.46);
  background: rgba(184, 74, 60, 0.22);
}

.proof-gallery {
  display: grid;
  gap: 10px;
  margin-top: 16px;
  padding: 13px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.proof-gallery h3 {
  margin: 0;
  color: var(--gold);
  font-size: 0.95rem;
  font-weight: 950;
  text-transform: uppercase;
}

.proof-gallery p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.45;
}

.proof-team-card {
  overflow: hidden;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.proof-team-card summary,
.proof-team-photo,
.proof-row {
  display: grid;
  gap: 8px;
  align-items: center;
}

.proof-team-card summary {
  grid-template-columns: minmax(0, 1fr) auto;
  min-height: 56px;
  padding: 10px;
  cursor: pointer;
  list-style: none;
}

.proof-team-card summary::-webkit-details-marker {
  display: none;
}

.proof-team-card[open] summary {
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.proof-summary-text {
  min-width: 0;
}

.proof-summary-text strong,
.proof-summary-text small {
  display: block;
}

.proof-summary-text strong {
  overflow: hidden;
  color: var(--white);
  font-size: 0.92rem;
  font-weight: 950;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.proof-summary-text small {
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.proof-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  min-height: 34px;
  border: 1px solid rgba(247, 170, 23, 0.34);
  border-radius: 999px;
  background: rgba(247, 170, 23, 0.12);
  color: var(--gold);
  font-size: 0.76rem;
  font-weight: 950;
  text-transform: uppercase;
}

.proof-details {
  display: grid;
  gap: 8px;
  padding: 10px;
}

.proof-team-photo,
.proof-row {
  grid-template-columns: minmax(0, 1fr) auto;
  min-height: 58px;
  padding: 9px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.proof-row > div {
  min-width: 0;
}

.proof-team-photo span,
.proof-row span {
  display: block;
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 950;
  line-height: 1.18;
}

.proof-row small,
.proof-team-photo small,
.proof-row b {
  display: inline-flex;
  width: fit-content;
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.proof-row.has-proof small {
  color: #9fe4bb;
}

.proof-row b,
.proof-team-photo small {
  justify-self: end;
  padding: 6px 8px;
  border-radius: 8px;
  background: rgba(184, 74, 60, 0.18);
  color: #ffc6bd;
  white-space: nowrap;
}

.proof-checklist {
  display: grid;
  gap: 8px;
  max-height: 340px;
  overflow: auto;
  padding-right: 2px;
}

.proof-thumb,
.proof-gallery img,
.proof-gallery video {
  width: 100%;
  max-height: 64px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 8px;
}

.bottom-nav {
  position: static;
  z-index: 4;
  bottom: 12px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  align-items: center;
  margin-top: 14px;
  overflow: visible;
}

.bottom-nav button {
  display: grid;
  gap: 5px;
  place-items: center;
  min-height: 84px;
  border: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.16);
  background: transparent;
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 950;
  text-transform: uppercase;
}

.bottom-nav svg {
  color: var(--gold);
  font-size: 1.65rem;
}

.rules-modal,
.map-modal {
  position: fixed;
  z-index: 10;
  inset: 0;
  display: none;
  place-items: center;
  padding: 18px;
  background: rgba(1, 8, 15, 0.72);
  backdrop-filter: blur(8px);
}

.rules-modal.open,
.map-modal.open {
  display: grid;
}

.rules-dialog,
.map-dialog {
  position: relative;
  width: min(520px, 100%);
  max-height: min(760px, calc(100vh - 36px));
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(9, 36, 60, 0.98), rgba(3, 17, 30, 0.98));
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
  padding: 22px;
}

.map-dialog {
  display: grid;
  gap: 12px;
  width: min(760px, 100%);
}

.close-rules,
.close-map {
  position: absolute;
  top: 14px;
  right: 14px;
}

.rules-dialog .section-heading,
.map-dialog .section-heading {
  padding-right: 60px;
}

.map-dialog .section-heading {
  margin-bottom: 0;
}

.map-intro {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 800;
  line-height: 1.42;
}

.map-tools {
  display: flex;
  gap: 10px;
  align-items: center;
}

.map-tools .secondary-button {
  flex: 0 0 auto;
}

.map-tools span {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.8rem;
  font-weight: 800;
  line-height: 1.35;
}

.hunt-map {
  display: block;
  width: 100%;
  height: clamp(270px, 44vh, 390px);
  overflow: hidden;
  border: 2px solid rgba(247, 170, 23, 0.5);
  border-radius: 8px;
  background: #dbe8ef;
}

.map-unavailable {
  display: grid;
  gap: 5px;
  min-height: 100%;
  place-content: center;
  padding: 20px;
  color: var(--navy);
  text-align: center;
}

.map-unavailable span {
  color: #4c5e70;
  font-weight: 800;
}

.hunt-map-marker-wrap {
  border: 0;
  background: transparent;
}

.hunt-map-marker {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 3px solid #ffffff;
  border-radius: 50% 50% 50% 0;
  background: var(--navy);
  color: var(--gold);
  font-size: 0.85rem;
  font-weight: 1000;
  line-height: 1;
  transform: rotate(-45deg);
  box-shadow: 0 4px 9px rgba(0, 0, 0, 0.34);
}

.hunt-map-marker b {
  transform: rotate(45deg);
}

.hunt-map-marker.active {
  background: var(--gold);
  color: var(--ink);
  box-shadow:
    0 0 0 5px rgba(247, 170, 23, 0.28),
    0 4px 9px rgba(0, 0, 0, 0.34);
}

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

.map-stop-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px;
  align-items: stretch;
  min-width: 0;
}

.map-stop-select,
.map-stop-row a {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--white);
}

.map-stop-select {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  min-width: 0;
  padding: 9px;
  text-align: left;
}

.map-stop-select b {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 50%;
  background: var(--gold);
  color: var(--ink);
  font-size: 0.78rem;
}

.map-stop-row.active .map-stop-select {
  border-color: var(--gold);
  background: rgba(247, 170, 23, 0.13);
}

.map-stop-row.active .map-stop-select b {
  box-shadow: 0 0 0 3px rgba(247, 170, 23, 0.22);
}

.map-stop-select strong,
.map-stop-select small {
  display: block;
}

.map-stop-select strong {
  overflow: hidden;
  font-size: 0.78rem;
  font-weight: 950;
  line-height: 1.15;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.map-stop-select small {
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1.15;
}

.map-stop-row a {
  display: grid;
  gap: 3px;
  min-width: 58px;
  place-content: center;
  padding: 6px;
  color: var(--gold);
  font-size: 0.62rem;
  font-weight: 950;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
}

.map-stop-row a svg {
  justify-self: center;
}

.map-flexible-note {
  display: grid;
  gap: 5px;
  padding: 10px 12px;
  border: 1px solid rgba(247, 170, 23, 0.24);
  border-radius: 8px;
  background: rgba(247, 170, 23, 0.08);
}

.map-flexible-note strong {
  display: flex;
  gap: 7px;
  align-items: center;
  color: var(--gold);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.map-flexible-note span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.8rem;
  font-weight: 800;
  line-height: 1.4;
}

.rules-dialog ul {
  margin: 0;
  padding-left: 20px;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.58;
}

.rules-help-note {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  margin-top: 14px;
  padding: 10px;
  border-radius: 8px;
  background: rgba(247, 170, 23, 0.1);
}

.rules-help-note svg {
  flex: 0 0 auto;
  color: var(--gold);
}

.rules-help-note strong,
.rules-help-note span {
  display: block;
}

.rules-help-note strong {
  color: var(--gold);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.rules-help-note span {
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.8rem;
  font-weight: 800;
  line-height: 1.4;
}

@media (max-width: 1080px) {
  .layout {
    grid-template-columns: 1fr;
  }

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

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

  .team-awards-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .lineup {
    order: 2;
  }

  .coach-panel {
    order: 3;
  }

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

@media (max-width: 760px) {
  .welcome-shell,
  .app-shell {
    width: min(900px, calc(100vw - 18px));
    max-width: calc(100vw - 18px);
  }

  .app-shell {
    display: flex;
    flex-direction: column;
    padding-bottom: 104px;
  }

  .welcome-shell > *,
  .app-shell > * {
    min-width: 0;
    max-width: 100%;
  }

  .topbar,
  .scoreboard,
  .route-boundary,
  .layout,
  .clue-card,
  .team-profile,
  .team-awards-info,
  .bottom-nav,
  .progress-track {
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }

  .start-panel,
  .briefing,
  .access-grid,
  .judge-steps,
  .task-grid,
  .answer-form,
  .actions-row {
    display: grid;
    grid-template-columns: 1fr;
  }

  .access-card {
    min-height: auto;
  }

  .team-login-card,
  .judge-card {
    grid-template-columns: 1fr;
  }

  .judge-access-toggle {
    width: auto;
  }

  .access-card p {
    font-size: 0.96rem;
  }

  .topbar {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    overflow: hidden;
    padding: 9px;
  }

  .topbar-actions {
    justify-content: flex-end;
  }

  .app-brand {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 8px;
    justify-self: stretch;
    text-align: left;
  }

  .app-brand img {
    width: 48px;
    max-height: 46px;
  }

  .app-brand-text strong {
    font-size: clamp(1.08rem, 5.7vw, 1.48rem);
    line-height: 0.96;
  }

  .app-brand-text span {
    padding: 4px 8px 5px;
    font-size: 0.72rem;
  }

  .icon-button {
    width: 42px;
    min-height: 42px;
  }

  .scoreboard {
    grid-template-columns: minmax(0, 1.38fr) minmax(0, 0.62fr) minmax(0, 0.8fr);
    order: 0;
    margin: 8px 0 10px;
  }

  .scoreboard .score-total {
    grid-column: auto;
    border-top: 0;
  }

  .scoreboard div {
    min-width: 0;
    min-height: 116px;
    overflow: hidden;
    padding: 8px;
  }

  .score-label {
    font-size: 0.68rem;
    line-height: 1.12;
  }

  .scoreboard strong {
    font-size: clamp(1.24rem, 6.4vw, 1.82rem);
    overflow-wrap: anywhere;
  }

  .active-team-card {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 4px 8px;
    align-content: center;
  }

  .active-team-logo {
    grid-row: 1 / span 2;
    width: 40px;
    height: 40px;
  }

  .active-team-card .score-label,
  .active-team-card strong {
    grid-column: 2;
  }

  .active-team-card strong {
    font-size: clamp(1.1rem, 5.8vw, 1.55rem);
    line-height: 0.88;
    transform: none;
  }

  .score-total svg {
    display: none;
  }

  .score-art {
    width: 38px;
    height: 30px;
  }

  .score-total strong {
    font-size: clamp(1.8rem, 9vw, 2.45rem);
  }

  .score-total small {
    font-size: 0.68rem;
  }

  .progress-track {
    order: 1;
    margin-bottom: 10px;
  }

  .team-code-card {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .route-boundary {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .route-boundary-arrow {
    justify-self: center;
    transform: rotate(90deg);
  }

  .team-code-card small {
    grid-column: 1 / -1;
  }

  .team-manager,
  .route-settings-form,
  .add-team-form,
  .player-form,
  .adult-form,
  .profile-grid,
  .team-only-profile .profile-grid,
  .judge-profile .profile-grid,
  .award-controls,
  .team-awards-list,
  .judge-dashboard,
  .review-meter-grid,
  .danger-action-grid {
    grid-template-columns: 1fr;
  }

  .team-setup {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .setup-checklist {
    justify-content: flex-start;
  }

  .setup-profile-button {
    width: 100%;
  }

  .team-profile-summary {
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 10px;
  }

  .profile-summary-photo {
    width: 54px;
    height: 54px;
  }

  .team-profile-summary .secondary-button {
    grid-column: 1 / -1;
    width: 100%;
  }

  .danger-button,
  .danger-reset-form {
    min-height: 0;
  }

  .team-awards-info {
    order: 4;
  }

  .team-award-card {
    min-height: 0;
  }

  .award-control {
    min-height: 0;
  }

  .profile-field + .profile-field {
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
  }

  .team-only-profile {
    order: 3;
  }

  .profile-field-heading {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .player-form,
  .adult-form {
    gap: 7px;
  }

  .lineup-card-header {
    grid-template-columns: 50px minmax(0, 1fr) 28px;
    gap: 6px;
    padding: 0 8px;
  }

  .player-chip {
    grid-template-columns: 44px minmax(0, 1fr) 28px;
    gap: 7px;
    min-height: 48px;
    padding: 5px 7px;
  }

  .player-chip b {
    width: 40px;
    height: 28px;
    font-size: 0.76rem;
  }

  .player-chip span {
    display: block;
    min-width: 0;
    overflow: visible;
    color: #071d33;
    font-size: 1.05rem;
    line-height: 1.1;
    overflow-wrap: anywhere;
    text-overflow: clip;
    white-space: normal;
  }

  .player-chip button {
    width: 26px;
    height: 26px;
  }

  .leaderboard-row {
    grid-template-columns: 36px minmax(0, 1fr) auto;
  }

  .leaderboard-row b {
    grid-column: 3;
    grid-row: 1;
  }

  .score-breakdown {
    grid-column: 2 / -1;
    justify-content: flex-start;
  }

  .score-breakdown span {
    font-size: 0.68rem;
  }

  .challenge-tabs {
    display: none;
  }

  .layout {
    order: 2;
    margin-top: 0;
  }

  .stop-list {
    grid-template-columns: 1fr;
  }

  .card-top {
    display: grid;
    gap: 12px;
  }

  .card-top h2 {
    font-size: clamp(1.55rem, 9vw, 2.35rem);
    overflow-wrap: anywhere;
  }

  .point-badge {
    justify-self: start;
    min-width: 60px;
    min-height: 60px;
  }

  .point-badge strong {
    font-size: 1.65rem;
  }

  .location-line {
    font-size: 0.92rem;
    line-height: 1.3;
  }

  .stop-step,
  .clue-box,
  .task-block,
  .proof-upload-row,
  .stop-notes {
    min-width: 0;
    max-width: 100%;
  }

  .clue-box {
    padding: 14px;
  }

  .clue-box p {
    font-size: 1rem;
  }

  .trivia-options {
    grid-template-columns: 1fr;
  }

  .proof-upload-row,
  .trivia-header {
    display: grid;
    grid-template-columns: 1fr;
  }

  .proof-upload-row .upload-button {
    width: 100%;
  }

  .trivia-header strong {
    justify-self: start;
  }

  .trivia-options button {
    min-height: 50px;
  }

  .secondary-button,
  .primary-button {
    width: 100%;
    min-width: 0;
  }

  input,
  textarea,
  select {
    min-width: 0;
    font-size: 16px;
  }

  .profile-field-heading .compact-upload {
    width: auto;
    max-width: 100%;
  }

  .bottom-nav {
    order: 9;
    position: sticky;
    grid-template-columns: repeat(4, 1fr);
    bottom: 8px;
    margin-top: 12px;
  }

  .bottom-nav button {
    min-height: 72px;
    font-size: 0.65rem;
  }

  .map-dialog {
    max-height: calc(100vh - 18px);
    padding: 14px;
  }

  .map-tools,
  .map-stop-list {
    display: grid;
    grid-template-columns: 1fr;
  }

  .map-tools .secondary-button {
    width: 100%;
  }

  .hunt-map {
    height: min(42vh, 320px);
  }
}
