:root {
  --gauntlet-ink: #edf7ff;
  --gauntlet-muted: #9fb4c8;
  --gauntlet-panel: rgba(12, 22, 38, 0.91);
  --gauntlet-panel-soft: rgba(18, 32, 52, 0.82);
  --gauntlet-line: rgba(159, 205, 236, 0.18);
  --gauntlet-cyan: #62ddff;
  --gauntlet-cyan-deep: #149ac4;
  --gauntlet-violet: #9c7cff;
  --gauntlet-star: #ffcf5a;
  --gauntlet-danger: #ff7e8d;
}

.gauntlet-page {
  color: var(--gauntlet-ink);
  background:
    radial-gradient(circle at 18% 12%, rgba(98, 221, 255, 0.16), transparent 28%),
    radial-gradient(circle at 84% 30%, rgba(156, 124, 255, 0.18), transparent 30%),
    linear-gradient(150deg, #07101d 0%, #0d1830 48%, #15122d 100%);
}

.gauntlet-page .site-board {
  opacity: 0.18;
  background-image:
    linear-gradient(rgba(98, 221, 255, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(98, 221, 255, 0.09) 1px, transparent 1px);
  background-size: 42px 42px;
}

.gauntlet-page .scorebar {
  color: #253d1b;
}

/*
 * The public campaign shares the same warm, light site language as Play and
 * Profile. The protected builder deliberately keeps its purpose-built forge
 * palette; renderer-owned canvas colors also remain cosmetic-driven.
 */
body.gauntlet-page:not(.gauntlet-builder-page) {
  --gauntlet-ink: var(--ink, #2d4518);
  --gauntlet-muted: var(--ink-soft, #5b7440);
  --gauntlet-panel: color-mix(in srgb, var(--paper, #fff) 94%, var(--cream, #f6faea));
  --gauntlet-panel-soft: color-mix(in srgb, var(--paper, #fff) 82%, var(--cream, #f6faea));
  --gauntlet-line: color-mix(in srgb, var(--sky, #4f8df6) 24%, transparent);
  --gauntlet-cyan: var(--sky-deep, #3475e6);
  --gauntlet-cyan-deep: #285fbe;
  --gauntlet-violet: #6f5ab5;
  --gauntlet-star: #956000;
  --gauntlet-danger: #b83f48;
  color: var(--gauntlet-ink);
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.34), transparent 36%),
    linear-gradient(180deg, #dff0ae 0%, #cde97c 52%, #c4e36b 100%);
}

body.gauntlet-page:not(.gauntlet-builder-page) .site-board {
  opacity: 0.3;
  background-image: conic-gradient(
    rgba(170, 215, 81, 0.38) 0 25%,
    rgba(162, 209, 73, 0.32) 0 50%,
    rgba(170, 215, 81, 0.38) 0 75%,
    rgba(162, 209, 73, 0.32) 0
  );
  background-size: 152px 152px;
}

body.gauntlet-page:not(.gauntlet-builder-page) .scorebar {
  color: var(--gauntlet-ink);
}

body.gauntlet-page:not(.gauntlet-builder-page) .gauntlet-panel,
body.gauntlet-page:not(.gauntlet-builder-page) .gauntlet-arena {
  background: var(--gauntlet-panel);
  box-shadow: var(--shadow, 0 24px 48px rgba(78, 117, 28, 0.16));
}

body.gauntlet-page:not(.gauntlet-builder-page) .gauntlet-campaigns a,
body.gauntlet-page:not(.gauntlet-builder-page) .gauntlet-chapters button,
body.gauntlet-page:not(.gauntlet-builder-page) .gauntlet-settings-button,
body.gauntlet-page:not(.gauntlet-builder-page) .gauntlet-level-select-button,
body.gauntlet-page:not(.gauntlet-builder-page) .gauntlet-hud > div,
body.gauntlet-page:not(.gauntlet-builder-page) .gauntlet-pars > div,
body.gauntlet-page:not(.gauntlet-builder-page) .gauntlet-retained-progress__facts > div,
body.gauntlet-page:not(.gauntlet-builder-page) .gauntlet-setting-choice,
body.gauntlet-page:not(.gauntlet-builder-page) .gauntlet-setting-field,
body.gauntlet-page:not(.gauntlet-builder-page) .gauntlet-pace-options span {
  background: color-mix(in srgb, var(--paper, #fff) 72%, var(--cream, #f6faea));
}

body.gauntlet-page:not(.gauntlet-builder-page) .gauntlet-campaigns a[aria-current="page"],
body.gauntlet-page:not(.gauntlet-builder-page) .gauntlet-pace-options input:checked + span {
  color: #fff;
  background: linear-gradient(180deg, var(--sky, #4f8df6), var(--sky-deep, #3475e6));
}

body.gauntlet-page:not(.gauntlet-builder-page) .gauntlet-pace-options input:checked + span small {
  color: rgba(255, 255, 255, 0.86);
}

body.gauntlet-page:not(.gauntlet-builder-page) .gauntlet-level-select__progress,
body.gauntlet-page:not(.gauntlet-builder-page) .gauntlet-retained-progress,
body.gauntlet-page:not(.gauntlet-builder-page) .gauntlet-mobile-briefing {
  background: color-mix(in srgb, var(--sky-soft, #e9f1ff) 64%, var(--paper, #fff));
}

body.gauntlet-page:not(.gauntlet-builder-page) .gauntlet-practice-banner,
body.gauntlet-page:not(.gauntlet-builder-page) .gauntlet-practice-warning,
body.gauntlet-page:not(.gauntlet-builder-page) .gauntlet-next-target {
  border-color: color-mix(in srgb, var(--gold, #f6c445) 58%, #9a6400);
  color: #6f4b00;
  background: color-mix(in srgb, var(--gold, #f6c445) 17%, var(--paper, #fff));
}

body.gauntlet-page:not(.gauntlet-builder-page) .gauntlet-panel__heading h1,
body.gauntlet-page:not(.gauntlet-builder-page) .gauntlet-progress-summary,
body.gauntlet-page:not(.gauntlet-builder-page) .gauntlet-account-link,
body.gauntlet-page:not(.gauntlet-builder-page) .gauntlet-chapters button strong,
body.gauntlet-page:not(.gauntlet-builder-page) .gauntlet-level-card__copy strong,
body.gauntlet-page:not(.gauntlet-builder-page) .gauntlet-level-card__best,
body.gauntlet-page:not(.gauntlet-builder-page) .gauntlet-play-screen__bar strong,
body.gauntlet-page:not(.gauntlet-builder-page) .gauntlet-hud strong,
body.gauntlet-page:not(.gauntlet-builder-page) .gauntlet-pars dd,
body.gauntlet-page:not(.gauntlet-builder-page) .gauntlet-retained-progress__heading h3,
body.gauntlet-page:not(.gauntlet-builder-page) .gauntlet-retained-progress__facts dd,
body.gauntlet-page:not(.gauntlet-builder-page) .gauntlet-result h1,
body.gauntlet-page:not(.gauntlet-builder-page) .gauntlet-result h3,
body.gauntlet-page:not(.gauntlet-builder-page) .gauntlet-result__progress,
body.gauntlet-page:not(.gauntlet-builder-page) .gauntlet-legend h3,
body.gauntlet-page:not(.gauntlet-builder-page) .gauntlet-settings-dialog__header h2,
body.gauntlet-page:not(.gauntlet-builder-page) .gauntlet-setting-choice strong,
body.gauntlet-page:not(.gauntlet-builder-page) .gauntlet-setting-field strong,
body.gauntlet-page:not(.gauntlet-builder-page) .gauntlet-pace-options span,
body.gauntlet-page:not(.gauntlet-builder-page) .gauntlet-mobile-briefing p:first-child strong,
body.gauntlet-page:not(.gauntlet-builder-page) .gauntlet-mobile-briefing__progress {
  color: var(--gauntlet-ink);
}

body.gauntlet-page:not(.gauntlet-builder-page) .gauntlet-progress-summary,
body.gauntlet-page:not(.gauntlet-builder-page) .gauntlet-result__progress {
  color: var(--gauntlet-ink) !important;
}

body.gauntlet-page:not(.gauntlet-builder-page) .gauntlet-result__progress[data-improved="true"] {
  color: var(--gauntlet-star) !important;
}

body.gauntlet-page:not(.gauntlet-builder-page) .gauntlet-account-link {
  text-decoration-color: color-mix(in srgb, var(--sky-deep, #3475e6) 72%, transparent);
}

body.gauntlet-page:not(.gauntlet-builder-page) .gauntlet-chapters button:hover,
body.gauntlet-page:not(.gauntlet-builder-page) .gauntlet-chapters button:focus-visible,
body.gauntlet-page:not(.gauntlet-builder-page) .gauntlet-chapters button[aria-pressed="true"],
body.gauntlet-page:not(.gauntlet-builder-page) .gauntlet-level-card:hover:not([data-locked="true"]),
body.gauntlet-page:not(.gauntlet-builder-page) .gauntlet-level-card:focus-visible,
body.gauntlet-page:not(.gauntlet-builder-page) .gauntlet-level-card.is-selected {
  border-color: color-mix(in srgb, var(--sky-deep, #3475e6) 58%, transparent);
  color: var(--gauntlet-cyan);
  background: color-mix(in srgb, var(--sky-soft, #e9f1ff) 72%, var(--paper, #fff));
}

body.gauntlet-page:not(.gauntlet-builder-page) .gauntlet-level-card {
  background: linear-gradient(
    145deg,
    var(--paper, #fff),
    color-mix(in srgb, var(--cream, #f6faea) 82%, var(--paper, #fff))
  );
  box-shadow: 0 12px 28px rgba(78, 117, 28, 0.1);
}

body.gauntlet-page:not(.gauntlet-builder-page) .gauntlet-level-card[data-locked="true"] {
  background: color-mix(in srgb, var(--cream, #f6faea) 86%, #d9dfd0);
  box-shadow: none;
}

body.gauntlet-page:not(.gauntlet-builder-page) .gauntlet-level-card__number {
  color: #fff;
  background: linear-gradient(180deg, var(--sky, #4f8df6), var(--sky-deep, #3475e6));
}

body.gauntlet-page:not(.gauntlet-builder-page) .gauntlet-level-card__stars {
  background: color-mix(in srgb, var(--gold, #f6c445) 13%, var(--paper, #fff));
}

body.gauntlet-page:not(.gauntlet-builder-page) .gauntlet-level-card[data-locked="true"] .gauntlet-level-card__stars {
  color: #79836d;
  background: color-mix(in srgb, var(--cream, #f6faea) 80%, #d9dfd0);
}

body.gauntlet-page:not(.gauntlet-builder-page) .gauntlet-arena {
  background: color-mix(in srgb, var(--paper, #fff) 92%, var(--cream, #f6faea));
}

body.gauntlet-page:not(.gauntlet-builder-page) .gauntlet-board-frame {
  border-color: color-mix(in srgb, var(--sky-deep, #3475e6) 36%, transparent);
  background: var(--cream, #f6faea);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.72),
    0 14px 34px rgba(78, 117, 28, 0.15);
}

body.gauntlet-page:not(.gauntlet-builder-page) .gauntlet-state-chip {
  border-color: rgba(255, 255, 255, 0.78);
  color: var(--gauntlet-ink);
  background: rgba(255, 250, 241, 0.9);
  box-shadow: 0 4px 14px rgba(45, 69, 24, 0.14);
}

body.gauntlet-page:not(.gauntlet-builder-page) .gauntlet-state-chip[data-state="running"] {
  color: #fff;
  background: var(--gauntlet-cyan);
}

body.gauntlet-page:not(.gauntlet-builder-page) .gauntlet-state-chip[data-state="failed"] {
  color: #fff;
  background: var(--gauntlet-danger);
}

body.gauntlet-page:not(.gauntlet-builder-page) .gauntlet-button--primary {
  color: #fff;
  background: linear-gradient(180deg, var(--sky, #4f8df6), var(--sky-deep, #3475e6));
  box-shadow: inset 0 -3px rgba(0, 0, 0, 0.12);
}

body.gauntlet-page:not(.gauntlet-builder-page) .gauntlet-button--secondary {
  color: var(--gauntlet-ink);
  background: color-mix(in srgb, var(--paper, #fff) 72%, var(--cream, #f6faea));
}

body.gauntlet-page:not(.gauntlet-builder-page) .gauntlet-hint {
  background: color-mix(in srgb, var(--sky-soft, #e9f1ff) 52%, var(--paper, #fff));
}

body.gauntlet-page:not(.gauntlet-builder-page) .gauntlet-hint summary {
  color: color-mix(in srgb, var(--gauntlet-violet) 76%, var(--gauntlet-ink));
}

body.gauntlet-page:not(.gauntlet-builder-page) .gauntlet-result {
  background: linear-gradient(
    150deg,
    color-mix(in srgb, var(--gold, #f6c445) 16%, var(--paper, #fff)),
    color-mix(in srgb, var(--sky-soft, #e9f1ff) 54%, var(--paper, #fff))
  );
}

body.gauntlet-page:not(.gauntlet-builder-page) .gauntlet-result-screen {
  background: var(--gauntlet-panel);
  box-shadow: var(--shadow, 0 24px 48px rgba(78, 117, 28, 0.16));
}

body.gauntlet-page:not(.gauntlet-builder-page) .gauntlet-result[data-outcome="failed"] {
  border-color: color-mix(in srgb, var(--gauntlet-danger) 48%, transparent);
  background: color-mix(in srgb, var(--gauntlet-danger) 9%, var(--paper, #fff));
}

body.gauntlet-page:not(.gauntlet-builder-page) .gauntlet-settings-dialog {
  border-color: color-mix(in srgb, var(--sky-deep, #3475e6) 28%, transparent);
  color: var(--gauntlet-ink);
  background: var(--paper, #fff);
  box-shadow: 0 30px 80px rgba(45, 69, 24, 0.3);
}

body.gauntlet-page:not(.gauntlet-builder-page) .gauntlet-settings-dialog::backdrop {
  background: rgba(45, 69, 24, 0.34);
}

body.gauntlet-page:not(.gauntlet-builder-page) .gauntlet-settings-dialog__close,
body.gauntlet-page:not(.gauntlet-builder-page) .gauntlet-settings-dialog fieldset {
  background: color-mix(in srgb, var(--paper, #fff) 70%, var(--cream, #f6faea));
}

body.gauntlet-page:not(.gauntlet-builder-page) .gauntlet-setting-field select {
  color: var(--gauntlet-ink);
  background: var(--paper, #fff);
}

.gauntlet-shell {
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(18px, 3vw, 30px);
}

.gauntlet-shell > *,
.gauntlet-workbench > *,
.gauntlet-level-select > *,
.gauntlet-play-screen > * {
  min-width: 0;
}

.gauntlet-level-select[hidden],
.gauntlet-play-screen[hidden],
.gauntlet-result-screen[hidden] {
  display: none;
}

.gauntlet-eyebrow {
  margin: 0 0 8px;
  color: var(--gauntlet-cyan);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.gauntlet-workbench {
  display: grid;
  width: 100%;
  min-width: 0;
  grid-template-columns: minmax(230px, 0.78fr) minmax(420px, 1.55fr) minmax(250px, 0.85fr);
  gap: clamp(14px, 2vw, 22px);
  align-items: start;
}

.gauntlet-workbench--play {
  margin-inline: auto;
  grid-template-columns: minmax(460px, 1.45fr) minmax(300px, 0.75fr);
}

.gauntlet-panel,
.gauntlet-arena {
  border: 1px solid var(--gauntlet-line);
  border-radius: 24px;
  background: var(--gauntlet-panel);
  box-shadow: 0 22px 52px rgba(0, 0, 0, 0.26);
}

.gauntlet-panel {
  padding: 20px;
}

.gauntlet-level-select {
  padding: clamp(20px, 3vw, 34px);
}

.gauntlet-campaigns {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--gauntlet-line);
}

.gauntlet-campaigns > span {
  color: var(--gauntlet-muted);
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.gauntlet-campaigns > div {
  display: flex;
  gap: 7px;
}

.gauntlet-campaigns a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 7px 13px;
  border: 1px solid var(--gauntlet-line);
  border-radius: 999px;
  color: var(--gauntlet-muted);
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.72rem;
  font-weight: 900;
  text-decoration: none;
}

.gauntlet-campaigns a[aria-current="page"] {
  border-color: var(--gauntlet-cyan);
  color: #07111e;
  background: var(--gauntlet-cyan);
}

.gauntlet-campaigns a:focus-visible {
  outline: 3px solid var(--gauntlet-cyan);
  outline-offset: 3px;
}

.gauntlet-level-select__heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
}

.gauntlet-level-select__heading .gauntlet-panel__heading {
  max-width: 700px;
}

.gauntlet-level-select__progress {
  flex: 0 1 360px;
  padding: 15px 17px;
  border: 1px solid var(--gauntlet-line);
  border-radius: 16px;
  background: rgba(98, 221, 255, 0.055);
}

.gauntlet-level-select__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}

.gauntlet-level-select__actions .gauntlet-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.gauntlet-level-select__progress .gauntlet-progress-summary {
  margin-top: 0 !important;
}

.gauntlet-play-screen__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 auto 12px;
  gap: 16px;
}

.gauntlet-play-screen__bar p {
  margin: 0;
  color: var(--gauntlet-muted);
  font-size: 0.8rem;
  font-weight: 800;
}

.gauntlet-play-screen__bar strong {
  color: #fff;
}

.gauntlet-play-screen__tools {
  display: flex;
  align-items: center;
  gap: 8px;
}

.gauntlet-settings-button {
  min-height: 38px;
  padding: 7px 11px;
  border-color: var(--gauntlet-line);
  background: rgba(255, 255, 255, 0.035);
}

.gauntlet-level-select__progress .gauntlet-settings-button {
  margin-top: 10px;
}

.gauntlet-practice-banner {
  margin: 0 auto 12px;
  padding: 10px 14px;
  border: 1px solid rgba(255, 207, 90, 0.48);
  border-radius: 13px;
  color: #fff1c4;
  background: rgba(255, 207, 90, 0.1);
  font-size: 0.72rem;
  font-weight: 850;
  line-height: 1.4;
}

.gauntlet-practice-banner[hidden] {
  display: none;
}

.gauntlet-level-select-button {
  border-color: var(--gauntlet-line);
  background: rgba(255, 255, 255, 0.04);
}

.gauntlet-panel__heading h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  line-height: 1.15;
}

.gauntlet-panel__heading > p:last-child {
  margin: 10px 0 0;
  color: var(--gauntlet-muted);
  font-size: 0.84rem;
  line-height: 1.5;
}

.gauntlet-progress-summary {
  margin: 14px 0 0 !important;
  color: #fff !important;
  font-size: 0.78rem !important;
  font-weight: 900;
}

.gauntlet-progress-persistence {
  margin: 4px 0 0 !important;
  color: var(--gauntlet-cyan) !important;
  font-size: 0.66rem !important;
  font-weight: 800;
  line-height: 1.35 !important;
}

.gauntlet-account-link {
  display: inline-flex;
  margin-top: 10px;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 900;
  line-height: 1.4;
  text-decoration-color: rgba(49, 224, 255, 0.72);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.gauntlet-account-link:hover,
.gauntlet-account-link:focus-visible {
  color: var(--gauntlet-cyan);
}

.gauntlet-chapters {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--gauntlet-line);
}

.gauntlet-chapters[hidden],
.gauntlet-level-card[hidden] {
  display: none;
}

.gauntlet-chapters__label {
  flex: 0 0 auto;
  color: var(--gauntlet-muted);
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.gauntlet-chapters__list {
  display: flex;
  min-width: 0;
  gap: 8px;
  overflow-x: auto;
  padding: 2px;
  scrollbar-width: thin;
}

.gauntlet-chapters button {
  display: grid;
  flex: 0 0 auto;
  min-width: 138px;
  min-height: 48px;
  padding: 8px 12px;
  border: 1px solid var(--gauntlet-line);
  border-radius: 13px;
  color: var(--gauntlet-muted);
  background: rgba(255, 255, 255, 0.035);
  text-align: left;
  cursor: pointer;
}

.gauntlet-chapters button strong,
.gauntlet-chapters button span {
  display: block;
}

.gauntlet-chapters button strong {
  color: #fff;
  font-size: 0.74rem;
}

.gauntlet-chapters button span {
  margin-top: 2px;
  font-size: 0.59rem;
  font-weight: 800;
}

.gauntlet-chapters button:hover,
.gauntlet-chapters button:focus-visible,
.gauntlet-chapters button[aria-pressed="true"] {
  border-color: rgba(98, 221, 255, 0.72);
  color: var(--gauntlet-cyan);
  background: rgba(98, 221, 255, 0.1);
}

.gauntlet-level-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 14px;
  margin-top: 26px;
}

.gauntlet-level-card {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 14px;
  align-items: stretch;
  width: 100%;
  min-width: 0;
  min-height: 226px;
  padding: 18px;
  border: 1px solid var(--gauntlet-line);
  border-radius: 20px;
  color: var(--gauntlet-ink);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018));
  text-align: left;
  cursor: pointer;
  transition: border-color 140ms ease, background-color 140ms ease, transform 140ms ease;
}

.gauntlet-level-card:hover:not([data-locked="true"]),
.gauntlet-level-card:focus-visible,
.gauntlet-level-card.is-selected {
  border-color: rgba(98, 221, 255, 0.72);
  background: rgba(98, 221, 255, 0.1);
}

.gauntlet-level-card:hover:not([data-locked="true"]) {
  transform: translateY(-1px);
}

.gauntlet-level-card[data-locked="true"] {
  cursor: not-allowed;
  border-style: dashed;
  background: rgba(4, 10, 20, 0.42);
}

.gauntlet-level-card__topline,
.gauntlet-level-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.gauntlet-level-card__number {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 12px;
  color: #07101d;
  background: linear-gradient(145deg, var(--gauntlet-cyan), #b6f2ff);
  font-size: 0.78rem;
  font-weight: 950;
}

.gauntlet-level-card__stars {
  display: inline-grid;
  min-width: 78px;
  min-height: 40px;
  place-items: center;
  border: 1px solid var(--gauntlet-line);
  border-radius: 999px;
  color: var(--gauntlet-star);
  background: rgba(255, 255, 255, 0.035);
  font-size: 1.15rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1;
}

.gauntlet-level-card__stars::before { content: "☆☆☆"; }
.gauntlet-level-card__stars[data-stars="1"]::before { content: "★☆☆"; }
.gauntlet-level-card__stars[data-stars="2"]::before { content: "★★☆"; }
.gauntlet-level-card__stars[data-stars="3"]::before { content: "★★★"; }

.gauntlet-level-card[data-locked="true"] .gauntlet-level-card__stars {
  color: #75889b;
}

.gauntlet-level-card__copy {
  min-width: 0;
}

.gauntlet-level-card__copy strong,
.gauntlet-level-card__copy small,
.gauntlet-level-card__best {
  display: block;
}

.gauntlet-level-card__copy strong {
  color: #fff;
  font-size: 1.05rem;
}

.gauntlet-level-card__copy small {
  display: -webkit-box;
  margin-top: 3px;
  overflow: hidden;
  color: var(--gauntlet-muted);
  font-size: 0.76rem;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.gauntlet-level-card__pars {
  display: block;
  margin-top: 12px;
  color: var(--gauntlet-star);
  font-size: 0.67rem;
  font-weight: 850;
  line-height: 1.35;
}

.gauntlet-level-card__best {
  margin-top: 7px;
  color: #dbeaf4;
  font-size: 0.64rem;
  font-weight: 800;
  line-height: 1.3;
}

.gauntlet-level-card__footer {
  padding-top: 12px;
  border-top: 1px solid var(--gauntlet-line);
}

.gauntlet-level-card__state {
  color: var(--gauntlet-cyan);
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.gauntlet-level-card__state:not([data-stars="0"]) { color: var(--gauntlet-star); }

.gauntlet-level-card__access {
  color: var(--gauntlet-muted);
  font-size: 0.62rem;
  font-weight: 850;
  line-height: 1.3;
  text-align: right;
}

.gauntlet-level-card[data-locked="false"] .gauntlet-level-card__access {
  color: var(--gauntlet-cyan);
}

.gauntlet-arena {
  min-width: 0;
  padding: clamp(14px, 2vw, 20px);
  background:
    linear-gradient(180deg, rgba(19, 34, 56, 0.96), rgba(7, 16, 29, 0.98));
}

.gauntlet-mobile-briefing {
  display: none;
}

.gauntlet-hud {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}

.gauntlet-hud > div {
  min-width: 0;
  padding: 9px 11px;
  border: 1px solid var(--gauntlet-line);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.035);
}

.gauntlet-hud span,
.gauntlet-hud strong {
  display: block;
}

.gauntlet-hud span {
  color: var(--gauntlet-muted);
  font-size: 0.61rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.gauntlet-hud strong {
  margin-top: 2px;
  color: #fff;
  font-size: 1rem;
}

.gauntlet-board-frame {
  position: relative;
  width: 100%;
  overflow: hidden;
  border: 2px solid rgba(98, 221, 255, 0.32);
  border-radius: 20px;
  background: #091427;
  box-shadow: inset 0 0 38px rgba(0, 0, 0, 0.5), 0 0 36px rgba(98, 221, 255, 0.07);
}

.gauntlet-board-frame::before {
  content: "";
  display: block;
  padding-top: 100%;
}

.gauntlet-board-glow {
  position: absolute;
  inset: 12%;
  border-radius: 50%;
  background: rgba(98, 221, 255, 0.07);
  filter: blur(45px);
  pointer-events: none;
}

#gauntletBoard {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
}

#gauntletBoard:focus-visible {
  outline: 3px solid var(--gauntlet-cyan);
  outline-offset: -5px;
}

.gauntlet-state-chip {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  color: #fff;
  background: rgba(5, 13, 25, 0.8);
  backdrop-filter: blur(8px);
  font-size: 0.67rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.gauntlet-state-chip[data-state="running"] {
  color: #081322;
  background: var(--gauntlet-cyan);
}

.gauntlet-state-chip[data-state="failed"] {
  color: #2b0710;
  background: var(--gauntlet-danger);
}

.gauntlet-state-chip[data-state="complete"] {
  color: #2f2000;
  background: var(--gauntlet-star);
}

.gauntlet-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) repeat(2, auto);
  gap: 10px;
  margin-top: 13px;
}

.gauntlet-button {
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid transparent;
  border-radius: 14px;
  font-weight: 900;
  cursor: pointer;
}

.gauntlet-button--primary {
  color: #06111d;
  background: linear-gradient(135deg, var(--gauntlet-cyan), #b6f2ff);
  box-shadow: inset 0 -3px rgba(0, 0, 0, 0.15);
}

.gauntlet-button--secondary {
  color: var(--gauntlet-ink);
  border-color: var(--gauntlet-line);
  background: rgba(255, 255, 255, 0.055);
}

.gauntlet-button--tertiary {
  color: var(--gauntlet-muted);
  border-color: transparent;
  background: transparent;
}

.gauntlet-button:hover,
.gauntlet-button:focus-visible {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.gauntlet-button:focus-visible,
.gauntlet-level-card:focus-visible,
.gauntlet-account-link:focus-visible,
.gauntlet-hint summary:focus-visible {
  outline: 3px solid var(--gauntlet-cyan);
  outline-offset: 3px;
}

.gauntlet-keyboard-help {
  margin: 11px 0 0;
  color: var(--gauntlet-muted);
  font-size: 0.7rem;
  text-align: center;
}

.gauntlet-pars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  margin: 18px 0 0;
}

.gauntlet-pars > div {
  min-width: 0;
  padding: 9px;
  border: 1px solid var(--gauntlet-line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
}

.gauntlet-pars dt {
  color: var(--gauntlet-muted);
  font-size: 0.59rem;
  font-weight: 800;
  text-transform: uppercase;
}

.gauntlet-pars dd {
  margin: 4px 0 0;
  color: #fff;
  font-size: 0.94rem;
  font-weight: 900;
}

.gauntlet-star-guide {
  margin: 11px 0 0;
  color: var(--gauntlet-muted);
  font-size: 0.7rem;
  line-height: 1.45;
}

.gauntlet-star-guide strong {
  color: var(--gauntlet-star);
}

.gauntlet-retained-progress {
  margin-top: 14px;
  padding: 13px;
  border: 1px solid var(--gauntlet-line);
  border-radius: 15px;
  background: rgba(98, 221, 255, 0.055);
}

.gauntlet-retained-progress__heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.gauntlet-retained-progress__heading h3 {
  margin: 0;
  color: #fff;
  font-size: 0.82rem;
}

.gauntlet-retained-progress__heading span {
  color: var(--gauntlet-muted);
  font-size: 0.57rem;
  font-weight: 800;
  text-align: right;
}

.gauntlet-retained-progress__facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin: 11px 0 0;
}

.gauntlet-retained-progress__facts > div {
  min-width: 0;
  padding: 8px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.045);
}

.gauntlet-retained-progress__facts dt,
.gauntlet-retained-progress__facts dd {
  margin: 0;
}

.gauntlet-retained-progress__facts dt {
  color: var(--gauntlet-muted);
  font-size: 0.54rem;
  font-weight: 850;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.gauntlet-retained-progress__facts dd {
  margin-top: 3px;
  color: #fff;
  font-size: 0.76rem;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.gauntlet-next-target {
  margin-top: 10px;
  padding: 10px;
  border: 1px solid rgba(255, 207, 90, 0.28);
  border-radius: 11px;
  background: rgba(255, 207, 90, 0.07);
}

.gauntlet-next-target strong {
  display: block;
  color: var(--gauntlet-star);
  font-size: 0.59rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.gauntlet-next-target p,
.gauntlet-retained-progress__note {
  margin: 5px 0 0;
  color: var(--gauntlet-muted);
  font-size: 0.67rem;
  line-height: 1.4;
}

.gauntlet-retained-progress__note {
  margin-top: 9px;
}

.gauntlet-hint {
  margin-top: 14px;
  border: 1px solid var(--gauntlet-line);
  border-radius: 14px;
  background: rgba(156, 124, 255, 0.08);
}

.gauntlet-hint summary {
  padding: 11px 13px;
  color: #d8ceff;
  font-size: 0.78rem;
  font-weight: 850;
  cursor: pointer;
}

.gauntlet-hint p {
  margin: 0;
  padding: 0 13px 13px;
  color: var(--gauntlet-muted);
  font-size: 0.76rem;
  line-height: 1.5;
}

.gauntlet-result {
  margin-top: 15px;
  padding: 16px;
  border: 1px solid rgba(255, 207, 90, 0.5);
  border-radius: 17px;
  background: linear-gradient(150deg, rgba(255, 207, 90, 0.13), rgba(156, 124, 255, 0.08));
}

.gauntlet-result-screen {
  width: min(100%, 720px);
  margin: 0 auto;
  padding: clamp(24px, 5vw, 48px);
  border-radius: 26px;
  box-shadow: 0 26px 64px rgba(0, 0, 0, 0.3);
  text-align: center;
}

.gauntlet-result[data-outcome="failed"] {
  border-color: rgba(255, 126, 141, 0.5);
  background: rgba(255, 126, 141, 0.08);
}

.gauntlet-result__stars {
  margin: 0 0 6px;
  color: var(--gauntlet-star);
  font-size: 0.68rem;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.gauntlet-result__stars::before {
  display: block;
  margin-bottom: 10px;
  content: "☆☆☆";
  font-size: clamp(1.8rem, 6vw, 2.8rem);
  letter-spacing: 0.1em;
  line-height: 1;
}

.gauntlet-result__stars[data-stars="1"]::before { content: "★☆☆"; }
.gauntlet-result__stars[data-stars="2"]::before { content: "★★☆"; }
.gauntlet-result__stars[data-stars="3"]::before { content: "★★★"; }
.gauntlet-result[data-outcome="failed"] .gauntlet-result__stars { color: var(--gauntlet-danger); }

.gauntlet-result h1,
.gauntlet-result h3 {
  margin: 0;
  color: #fff;
}

.gauntlet-result-screen h1 {
  font-size: clamp(1.8rem, 5vw, 3rem);
}

.gauntlet-result > p:not(.gauntlet-result__stars) {
  margin: 8px 0 0;
  color: var(--gauntlet-muted);
  font-size: 0.78rem;
  line-height: 1.45;
}

.gauntlet-result__metrics {
  font-weight: 800;
}

.gauntlet-result__progress {
  color: #fff !important;
  font-weight: 850;
}

.gauntlet-result__progress[data-improved="true"] {
  color: var(--gauntlet-star) !important;
}

.gauntlet-result__target {
  padding-top: 8px;
  border-top: 1px solid var(--gauntlet-line);
}

.gauntlet-result__persistence {
  color: var(--gauntlet-cyan) !important;
  font-size: 0.67rem !important;
  font-weight: 800;
}

.gauntlet-result__actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 13px;
}

.gauntlet-result-screen .gauntlet-result__actions {
  max-width: 520px;
  margin-inline: auto;
}

.gauntlet-result__actions .gauntlet-button {
  width: 100%;
  min-width: 0;
  padding-inline: 10px;
  font-size: 0.72rem;
}

.gauntlet-result__actions .gauntlet-button--primary {
  grid-column: 1 / -1;
}

.gauntlet-result[data-final="true"] .gauntlet-result__actions .gauntlet-button--secondary,
.gauntlet-result[data-outcome="failed"] .gauntlet-result__actions .gauntlet-button--tertiary {
  grid-column: 1 / -1;
}

.gauntlet-legend {
  margin-top: 18px;
  padding-top: 17px;
  border-top: 1px solid var(--gauntlet-line);
}

.gauntlet-legend h3 {
  margin: 0;
  color: #fff;
  font-size: 0.8rem;
}

.gauntlet-legend ul {
  display: grid;
  gap: 9px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.gauntlet-legend li {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  color: var(--gauntlet-muted);
  font-size: 0.7rem;
  line-height: 1.35;
}

.gauntlet-legend li > span {
  width: 18px;
  height: 18px;
}

.gauntlet-legend__fruit {
  border: 3px solid #07101d;
  border-radius: 50% 50% 48% 52%;
  background: var(--gauntlet-star);
  box-shadow: 0 0 0 2px var(--gauntlet-star);
}

.gauntlet-legend__obstacle {
  border: 2px solid #b4c4d4;
  border-radius: 4px;
  background: repeating-linear-gradient(45deg, #637588 0 3px, #334456 3px 6px);
}

.gauntlet-legend__hazard {
  border: 2px solid #ff9a68;
  border-radius: 50%;
  background: repeating-linear-gradient(90deg, #ffcf5a 0 3px, #7d2f3c 3px 6px);
  box-shadow: 0 0 0 2px rgba(255, 154, 104, 0.2);
}

.gauntlet-legend__exit {
  border: 3px double var(--gauntlet-cyan);
  border-radius: 3px;
  background: rgba(98, 221, 255, 0.08);
}

.gauntlet-settings-dialog {
  width: min(680px, calc(100% - 28px));
  max-height: min(820px, calc(100dvh - 28px));
  padding: 0;
  overflow: auto;
  border: 1px solid rgba(159, 205, 236, 0.32);
  border-radius: 22px;
  color: var(--gauntlet-ink);
  background: #101d31;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.58);
}

.gauntlet-settings-dialog::backdrop {
  background: rgba(3, 8, 17, 0.76);
  backdrop-filter: blur(7px);
}

.gauntlet-settings-dialog form {
  display: grid;
  gap: 17px;
  padding: clamp(18px, 4vw, 28px);
}

.gauntlet-settings-dialog__header,
.gauntlet-settings-dialog__actions,
.gauntlet-setting-field,
.gauntlet-setting-choice {
  display: flex;
  align-items: center;
}

.gauntlet-settings-dialog__header {
  justify-content: space-between;
  gap: 18px;
}

.gauntlet-settings-dialog__header h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(1.2rem, 4vw, 1.65rem);
}

.gauntlet-settings-dialog__close {
  width: 42px;
  height: 42px;
  border: 1px solid var(--gauntlet-line);
  border-radius: 50%;
  color: var(--gauntlet-muted);
  background: rgba(255, 255, 255, 0.045);
  font: inherit;
  font-size: 1.35rem;
  cursor: pointer;
}

.gauntlet-settings-dialog fieldset {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 15px;
  border: 1px solid var(--gauntlet-line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.025);
}

.gauntlet-settings-dialog legend {
  padding: 0 7px;
  color: var(--gauntlet-cyan);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.gauntlet-setting-choice,
.gauntlet-setting-field {
  min-height: 52px;
  gap: 12px;
  justify-content: space-between;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
}

.gauntlet-setting-choice {
  justify-content: flex-start;
  cursor: pointer;
}

.gauntlet-setting-choice input {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  accent-color: var(--gauntlet-cyan);
}

.gauntlet-setting-choice span,
.gauntlet-setting-field > span,
.gauntlet-pace-options span {
  display: grid;
  gap: 2px;
}

.gauntlet-setting-choice strong,
.gauntlet-setting-field strong,
.gauntlet-pace-options span {
  color: #fff;
  font-size: 0.78rem;
}

.gauntlet-setting-choice small,
.gauntlet-setting-field small,
.gauntlet-pace-options small {
  color: var(--gauntlet-muted);
  font-size: 0.65rem;
  font-weight: 700;
  line-height: 1.35;
}

.gauntlet-setting-field select {
  min-width: 138px;
  min-height: 40px;
  padding: 7px 30px 7px 10px;
  border: 1px solid var(--gauntlet-line);
  border-radius: 10px;
  color: #fff;
  background: #1b2b42;
  font: inherit;
  font-size: 0.74rem;
  font-weight: 800;
}

.gauntlet-settings-dialog__explanation {
  margin: 0;
  color: var(--gauntlet-muted);
  font-size: 0.7rem;
  line-height: 1.45;
}

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

.gauntlet-pace-options label {
  position: relative;
  cursor: pointer;
}

.gauntlet-pace-options input {
  position: absolute;
  inset: 0;
  opacity: 0;
}

.gauntlet-pace-options span {
  min-height: 62px;
  place-content: center;
  padding: 8px;
  border: 1px solid var(--gauntlet-line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
  text-align: center;
}

.gauntlet-pace-options input:checked + span {
  border-color: var(--gauntlet-cyan);
  color: #07111e;
  background: var(--gauntlet-cyan);
}

.gauntlet-pace-options input:checked + span small {
  color: #173748;
}

.gauntlet-pace-options input:focus-visible + span,
.gauntlet-settings-dialog input:focus-visible,
.gauntlet-settings-dialog select:focus-visible,
.gauntlet-settings-dialog__close:focus-visible {
  outline: 3px solid var(--gauntlet-cyan);
  outline-offset: 3px;
}

.gauntlet-practice-warning {
  margin: 0;
  padding: 9px 11px;
  border-radius: 10px;
  color: #fff1c4;
  background: rgba(255, 207, 90, 0.1);
  font-size: 0.67rem;
  font-weight: 800;
  line-height: 1.4;
}

.gauntlet-practice-warning[hidden] {
  display: none;
}

.gauntlet-settings-dialog__actions {
  justify-content: flex-end;
  gap: 9px;
}

@media (max-width: 1120px) {
  .gauntlet-workbench {
    grid-template-columns: minmax(210px, 0.7fr) minmax(420px, 1.3fr);
  }

  .gauntlet-workbench--play {
    grid-template-columns: minmax(0, 1fr);
  }

  .gauntlet-briefing {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 1fr;
    gap: 18px;
  }

  .gauntlet-briefing .gauntlet-pars,
  .gauntlet-briefing .gauntlet-legend {
    margin-top: 0;
  }

  .gauntlet-briefing .gauntlet-hint,
  .gauntlet-briefing .gauntlet-retained-progress,
  .gauntlet-briefing .gauntlet-result {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .gauntlet-workbench {
    grid-template-columns: 1fr;
  }

  .gauntlet-level-select__heading,
  .gauntlet-play-screen__bar {
    align-items: stretch;
    flex-direction: column;
  }

  .gauntlet-play-screen__tools {
    justify-content: space-between;
  }

  .gauntlet-level-select__progress {
    flex-basis: auto;
  }

  .gauntlet-chapters {
    align-items: stretch;
    flex-direction: column;
    gap: 7px;
    margin-top: 14px;
    padding-top: 12px;
  }

  .gauntlet-level-panel {
    order: 2;
  }

  .gauntlet-arena {
    order: 1;
  }

  .gauntlet-mobile-briefing {
    display: block;
    margin-bottom: 12px;
    padding: 12px 13px;
    border: 1px solid var(--gauntlet-line);
    border-radius: 14px;
    background: rgba(98, 221, 255, 0.06);
  }

  .gauntlet-mobile-briefing p {
    margin: 0;
  }

  .gauntlet-mobile-briefing p:first-child {
    display: flex;
    align-items: baseline;
    gap: 8px;
  }

  .gauntlet-mobile-briefing p:first-child span {
    color: var(--gauntlet-cyan);
    font-size: 0.61rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .gauntlet-mobile-briefing p:first-child strong {
    color: #fff;
    font-size: 0.94rem;
  }

  #gauntletArenaObjective {
    margin-top: 5px;
    color: var(--gauntlet-muted);
    font-size: 0.72rem;
    line-height: 1.4;
  }

  .gauntlet-mobile-briefing__pars {
    margin-top: 6px !important;
    color: var(--gauntlet-star);
    font-size: 0.66rem;
    font-weight: 850;
  }

  .gauntlet-mobile-briefing__progress {
    margin-top: 5px !important;
    color: #dbeaf4;
    font-size: 0.66rem;
    font-weight: 800;
    line-height: 1.35;
  }

  .gauntlet-briefing {
    order: 3;
    grid-column: auto;
    display: block;
  }

  .gauntlet-level-list {
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  }

  .gauntlet-pars,
  .gauntlet-retained-progress,
  .gauntlet-briefing .gauntlet-legend {
    margin-top: 16px;
  }
}

@media (pointer: coarse),
  (max-width: 760px),
  (orientation: landscape) and (max-width: 900px) and (max-height: 600px) {
  #gauntletStartPauseBtn[data-action="pause"] {
    position: absolute;
    width: 1px;
    height: 1px;
    min-width: 1px;
    min-height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
  }

  #gauntletStartPauseBtn[data-action="pause"]:focus-visible {
    position: static;
    width: auto;
    height: auto;
    min-width: 0;
    min-height: 44px;
    padding: 10px 16px;
    margin: 0;
    overflow: visible;
    clip: auto;
    clip-path: none;
    white-space: normal;
    border: 1px solid transparent;
  }
}

@media (max-width: 430px) {
  .gauntlet-panel {
    padding: 16px;
    border-radius: 20px;
  }

  .gauntlet-level-select {
    padding: 13px;
  }

  .gauntlet-level-select__heading {
    gap: 9px;
  }

  .gauntlet-campaigns {
    align-items: stretch;
    flex-direction: column;
    gap: 7px;
    margin-bottom: 12px;
    padding-bottom: 11px;
  }

  .gauntlet-level-select .gauntlet-eyebrow {
    margin-bottom: 4px;
    font-size: 0.62rem;
  }

  .gauntlet-level-select .gauntlet-panel__heading > p:last-child {
    margin-top: 6px;
    font-size: 0.72rem;
    line-height: 1.35;
  }

  .gauntlet-level-select__progress {
    padding: 9px 11px;
  }

  .gauntlet-level-select__progress .gauntlet-progress-persistence {
    font-size: 0.61rem !important;
  }

  .gauntlet-chapters {
    margin-top: 10px;
    padding-top: 9px;
  }

  .gauntlet-chapters__list {
    margin-inline: -2px;
  }

  .gauntlet-chapters button {
    min-width: 128px;
    min-height: 44px;
    padding: 6px 10px;
  }

  .gauntlet-arena {
    padding: 9px;
    border-radius: 19px;
  }

  .gauntlet-result-screen {
    padding: 24px 17px;
    border-radius: 20px;
  }

  .gauntlet-level-list {
    display: grid;
    margin-top: 12px;
    margin-inline: 0;
    padding: 0;
    overflow-x: visible;
    scroll-snap-type: none;
  }

  .gauntlet-level-card {
    min-height: 0;
    width: 100%;
  }

  .gauntlet-hud > div {
    padding: 7px;
  }

  .gauntlet-hud span {
    font-size: 0.52rem;
  }

  .gauntlet-hud strong {
    font-size: 0.86rem;
  }

  .gauntlet-retained-progress__heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }

  .gauntlet-retained-progress__heading span {
    text-align: left;
  }

  .gauntlet-settings-dialog form {
    padding: 15px;
  }

  .gauntlet-setting-field {
    align-items: stretch;
    flex-direction: column;
  }

  .gauntlet-setting-field select {
    width: 100%;
  }

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

  .gauntlet-pace-options span {
    min-height: 48px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .gauntlet-level-card,
  .gauntlet-button {
    transition: none;
  }
}

@media (forced-colors: active) {
  .gauntlet-panel,
  .gauntlet-level-select,
  .gauntlet-arena,
  .gauntlet-level-card,
  .gauntlet-board-frame,
  .gauntlet-button,
  .gauntlet-hint,
  .gauntlet-retained-progress,
  .gauntlet-result,
  .gauntlet-settings-dialog,
  .gauntlet-settings-dialog fieldset,
  .gauntlet-setting-choice,
  .gauntlet-setting-field {
    border-color: CanvasText;
    forced-color-adjust: auto;
  }

  .gauntlet-level-card.is-selected,
  .gauntlet-button--primary,
  .gauntlet-state-chip[data-state="running"],
  .gauntlet-state-chip[data-state="complete"] {
    color: HighlightText;
    background: Highlight;
  }

  .gauntlet-level-card__stars,
  .gauntlet-result__stars::before {
    color: CanvasText;
    forced-color-adjust: none;
  }

  body.gauntlet-page:not(.gauntlet-builder-page) .gauntlet-panel,
  body.gauntlet-page:not(.gauntlet-builder-page) .gauntlet-level-select,
  body.gauntlet-page:not(.gauntlet-builder-page) .gauntlet-arena,
  body.gauntlet-page:not(.gauntlet-builder-page) .gauntlet-level-card,
  body.gauntlet-page:not(.gauntlet-builder-page) .gauntlet-board-frame,
  body.gauntlet-page:not(.gauntlet-builder-page) .gauntlet-button,
  body.gauntlet-page:not(.gauntlet-builder-page) .gauntlet-hint,
  body.gauntlet-page:not(.gauntlet-builder-page) .gauntlet-retained-progress,
  body.gauntlet-page:not(.gauntlet-builder-page) .gauntlet-result,
  body.gauntlet-page:not(.gauntlet-builder-page) .gauntlet-settings-dialog,
  body.gauntlet-page:not(.gauntlet-builder-page) .gauntlet-settings-dialog fieldset,
  body.gauntlet-page:not(.gauntlet-builder-page) .gauntlet-setting-choice,
  body.gauntlet-page:not(.gauntlet-builder-page) .gauntlet-setting-field {
    border-color: CanvasText;
    color: CanvasText;
    background: Canvas;
    box-shadow: none;
    forced-color-adjust: auto;
  }

  body.gauntlet-page:not(.gauntlet-builder-page) .gauntlet-level-card.is-selected,
  body.gauntlet-page:not(.gauntlet-builder-page) .gauntlet-button--primary,
  body.gauntlet-page:not(.gauntlet-builder-page) .gauntlet-state-chip[data-state="running"],
  body.gauntlet-page:not(.gauntlet-builder-page) .gauntlet-state-chip[data-state="complete"] {
    color: HighlightText;
    background: Highlight;
  }

  body.gauntlet-page:not(.gauntlet-builder-page) .gauntlet-level-card__stars,
  body.gauntlet-page:not(.gauntlet-builder-page) .gauntlet-result__stars::before {
    color: CanvasText;
    forced-color-adjust: none;
  }
}
