@font-face {
  font-family: "Syne";
  src: url("assets/fonts/syne.woff2") format("woff2");
  font-style: normal;
  font-weight: 600 800;
  font-display: swap;
}

/* Competitive solo */

.topics-view {
  overflow-x: hidden;
  overflow-y: auto;
}

.topics-layout {
  grid-template-areas:
    "intro"
    "practice"
    "list"
    "competitive";
  padding-bottom: 5rem;
}

.competitive-menu {
  grid-area: competitive;
  width: 100%;
  border-top: 1px solid rgba(243, 240, 232, 0.34);
  background: #080a0a;
}

.practice-menu__header {
  grid-area: practice;
  display: flex;
  min-height: 3.2rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0;
  border-top: 1px solid rgba(243, 240, 232, 0.34);
  border-bottom: 1px solid var(--line);
  background: #080a0a;
}

.practice-menu__header > div {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.practice-menu__header span {
  color: var(--signal);
  font-size: 0.54rem;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.practice-menu__header h3 {
  margin: 0;
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.practice-menu__header p {
  margin: 0;
  color: var(--paper-muted);
  font-size: 0.56rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.competitive-menu__header {
  display: flex;
  min-height: 3.2rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--line);
}

.competitive-menu__header > div {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.competitive-menu__index,
.competitive-mode-card__number {
  color: var(--signal);
  font-size: 0.54rem;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.competitive-menu__header h3 {
  margin: 0;
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.competitive-menu__header p {
  margin: 0;
  color: var(--paper-muted);
  font-size: 0.56rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.competitive-menu__cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: rgba(243, 240, 232, 0.2);
}

.competitive-mode-card {
  min-width: 0;
  padding: clamp(1rem, 2vw, 1.4rem);
  background: #080a0a;
}

.competitive-mode-card > header {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}

.competitive-mode-card header small {
  display: block;
  margin-bottom: 0.3rem;
  color: var(--signal);
  font-size: 0.52rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.competitive-mode-card h4 {
  margin: 0;
  font-family: "Syne", sans-serif;
  font-size: clamp(1.65rem, 2.8vw, 2.35rem);
  font-weight: 600;
  letter-spacing: -0.06em;
  line-height: 0.9;
}

.competitive-mode-card > p {
  min-height: 2.6em;
  margin: 0.8rem 0 1rem 2.1rem;
  color: var(--paper-muted);
  font-size: 0.7rem;
  line-height: 1.45;
}

.competitive-format-buttons {
  display: grid;
  gap: 0.45rem;
}

.competitive-format-buttons > button {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 0.8rem;
  min-height: 4.1rem;
  padding: 0.7rem 0.8rem;
  border: 1px solid rgba(243, 240, 232, 0.22);
  background: #080a0a;
  color: var(--paper);
  cursor: pointer;
  text-align: left;
  transition: border-color 160ms ease, background-color 160ms ease, color 160ms ease;
}

.competitive-format-buttons > button:hover,
.competitive-format-buttons > button:focus-visible {
  border-color: var(--signal);
  background: var(--signal);
  color: var(--ink);
}

.competitive-format-buttons button > span:first-child,
.competitive-record {
  display: grid;
  gap: 0.2rem;
}

.competitive-format-buttons strong {
  font-size: 0.74rem;
}

.competitive-format-buttons small {
  color: inherit;
  font-size: 0.54rem;
  opacity: 0.65;
}

.competitive-record {
  justify-items: end;
}

.competitive-record b {
  font-family: "Syne", sans-serif;
  font-size: 1.35rem;
  line-height: 0.8;
}

.competitive-format-buttons kbd {
  min-width: 4.3rem;
  padding: 0.35rem 0.45rem;
  border: 1px solid currentColor;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 0.5rem;
  text-align: center;
}

.topics-legal {
  position: fixed;
}

.competitive-view {
  overflow: hidden;
  background: #080a0a;
  isolation: isolate;
}

.competitive-view__art,
.competitive-view__veil {
  position: absolute;
  z-index: -2;
  inset: 0;
  width: 100%;
  height: 100%;
}

.competitive-view__art {
  object-fit: cover;
  opacity: 0.28;
  transform: none;
  animation: none;
  transition: none;
}

.competitive-view[data-competitive-format="text"] .competitive-view__art {
  opacity: 0;
}

.competitive-view[data-competitive-format="text"].has-revealed-art .competitive-view__art {
  opacity: 0.25;
  transition: opacity 180ms ease;
}

.competitive-view__veil {
  z-index: -1;
  background: rgba(8, 10, 10, 0.68);
}

.competitive-header {
  position: absolute;
  z-index: 8;
  top: 0;
  left: 0;
  display: grid;
  width: 100%;
  height: 4.7rem;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 var(--page-pad);
  border-bottom: 1px solid rgba(243, 240, 232, 0.18);
  background: #080a0a;
}

.competitive-header .wordmark {
  grid-column: 2;
}

.competitive-header__mode {
  display: grid;
  grid-column: 3;
  justify-self: end;
  gap: 0.12rem;
  text-align: right;
}

.competitive-header__mode strong,
.competitive-header__mode span {
  font-size: 0.56rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.competitive-header__mode span {
  color: var(--paper-muted);
  font-size: 0.5rem;
}

.competitive-hud {
  position: absolute;
  z-index: 7;
  top: 4.7rem;
  left: 50%;
  display: grid;
  width: min(100% - (2 * var(--page-pad)), 58rem);
  height: 4.4rem;
  grid-template-columns: 7rem minmax(12rem, 1fr) 7rem;
  align-items: center;
  gap: 1.2rem;
  transform: translateX(-50%);
}

.competitive-hud__stat {
  display: grid;
  gap: 0.1rem;
}

.competitive-hud__stat--right {
  text-align: right;
}

.competitive-hud__stat span {
  color: var(--paper-muted);
  font-size: 0.48rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.competitive-hud__stat strong {
  font-family: "Syne", sans-serif;
  font-size: 1.15rem;
}

.competitive-hud__timer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 3.2rem;
  align-items: center;
  gap: 0.7rem;
}

.competitive-timer-track {
  height: 0.48rem;
  border: 1px solid rgba(243, 240, 232, 0.28);
  background: #080a0a;
}

.competitive-timer-track span {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--signal);
  transition: none;
}

.competitive-hud__timer > strong {
  color: var(--signal);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.85rem;
  text-align: right;
}

.competitive-hud__timer[data-urgent="true"] .competitive-timer-track span {
  background: var(--danger);
}

.competitive-hud__timer[data-urgent="true"] > strong {
  color: var(--danger);
}

.competitive-stage {
  position: absolute;
  z-index: 3;
  inset: 9.1rem 0 0;
  display: grid;
  place-items: center;
  overflow: auto;
  padding: 1rem var(--page-pad) 2rem;
  outline: none;
}

.competitive-card {
  width: min(100%, 46rem);
  border: 1px solid rgba(243, 240, 232, 0.28);
  background: #080a0a;
}

.competitive-ready {
  width: min(100%, 38rem);
  padding: clamp(1.5rem, 4vw, 3rem);
  text-align: center;
}

.competitive-eyebrow,
.competitive-pause__eyebrow {
  display: block;
  color: var(--signal);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.competitive-ready h1 {
  margin: 0.5rem 0;
  font-family: "Syne", sans-serif;
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 600;
  letter-spacing: -0.08em;
  line-height: 0.9;
}

.competitive-ready > p {
  max-width: 30rem;
  margin: 1rem auto;
  color: var(--paper-muted);
  line-height: 1.55;
}

.competitive-ready__facts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  margin: 1.4rem 0;
  border: 1px solid var(--line);
}

.competitive-ready__facts > div {
  display: grid;
  gap: 0.3rem;
  padding: 0.8rem;
}

.competitive-ready__facts > div + div {
  border-left: 1px solid var(--line);
}

.competitive-ready__facts dt,
.competitive-summary dt {
  color: var(--paper-muted);
  font-size: 0.5rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.competitive-ready__facts dd,
.competitive-summary dd {
  margin: 0;
  font-weight: 600;
}

.competitive-ready__start {
  width: 100%;
  justify-content: center;
  gap: 1rem;
  font-size: 1rem;
}

.competitive-ready__start kbd {
  padding: 0.25rem 0.45rem;
  border: 1px solid currentColor;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 0.54rem;
}

.competitive-ready > small {
  display: block;
  margin-top: 0.65rem;
  color: var(--paper-muted);
  font-size: 0.55rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.competitive-question {
  max-height: 100%;
  overflow: auto;
  padding: clamp(1rem, 2.2vw, 1.7rem);
}

.competitive-question__meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--signal);
  font-size: 0.52rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.competitive-question__meta span:last-child {
  color: var(--paper-muted);
}

.competitive-question h1 {
  margin: clamp(0.9rem, 2vh, 1.4rem) 0;
  font-family: "Syne", sans-serif;
  font-size: clamp(1.8rem, 4.2vw, 3.55rem);
  font-weight: 600;
  letter-spacing: -0.065em;
  line-height: 0.96;
}

.competitive-quote {
  margin: 1.2rem 0;
  padding: 1.4rem;
  border: 1px solid rgba(243, 240, 232, 0.25);
  color: var(--paper);
  font-family: "Syne", sans-serif;
  font-size: clamp(1.25rem, 3vw, 2.2rem);
  font-style: normal;
  letter-spacing: -0.04em;
  line-height: 1.12;
  text-align: center;
}

.competitive-icon-clue,
.competitive-question-icon {
  width: clamp(5rem, 12vh, 7rem);
  aspect-ratio: 1;
  margin: 1rem auto 0;
  border: 1px solid var(--signal);
  background: #080a0a;
}

.competitive-icon-clue img,
.competitive-question-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.competitive-splash-clue {
  position: relative;
  width: min(100%, 35rem);
  aspect-ratio: 16 / 8.5;
  margin: 1rem auto 0;
  overflow: hidden;
  border: 1px solid var(--signal);
  background: #080a0a;
}

.competitive-splash-clue img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--competitive-crop-origin);
  transform: scale(var(--competitive-crop-scale));
  transform-origin: var(--competitive-crop-origin);
  animation: none;
  transition: none;
}

.competitive-choice-list {
  display: grid;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.competitive-choice-list button {
  display: grid;
  width: 100%;
  min-height: 3.8rem;
  grid-template-columns: 2.4rem minmax(0, 1fr);
  align-items: center;
  gap: 0.8rem;
  padding: 0.45rem 0.7rem;
  border: 1px solid rgba(243, 240, 232, 0.24);
  background: #080a0a;
  color: var(--paper);
  cursor: pointer;
  text-align: left;
}

.competitive-choice-list button:hover,
.competitive-choice-list button:focus-visible {
  border-color: var(--signal);
}

.competitive-choice-list button > span {
  display: grid;
  width: 2.2rem;
  height: 2.2rem;
  place-items: center;
  border: 1px solid rgba(243, 240, 232, 0.25);
  color: var(--paper-muted);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.65rem;
}

.competitive-choice-list button strong {
  font-size: 0.84rem;
}

.competitive-answer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  border: 1px solid var(--signal);
}

.competitive-answer input,
.competitive-answer button {
  min-height: 4.2rem;
  border: 0;
  border-radius: 0;
  background: #080a0a;
  color: var(--paper);
  font: inherit;
}

.competitive-answer input {
  min-width: 0;
  padding: 0 1rem;
  outline: none;
  font-size: 1rem;
}

.competitive-answer button {
  padding: 0 1.4rem;
  border-left: 1px solid var(--signal);
  background: var(--signal);
  color: var(--ink);
  cursor: pointer;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.competitive-question__shortcuts {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  margin-top: 0.9rem;
  color: var(--paper-muted);
  font-size: 0.52rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.competitive-question__shortcuts kbd {
  border: 0;
  background: transparent;
  color: var(--signal);
  font: inherit;
}

.competitive-flash {
  position: absolute;
  z-index: 10;
  top: 50%;
  left: 50%;
  min-width: 12rem;
  margin: 0;
  padding: 0.8rem 1.2rem;
  border: 1px solid currentColor;
  background: #080a0a;
  color: var(--paper);
  transform: translate(-50%, -50%);
  font-family: "Syne", sans-serif;
  font-size: 1.4rem;
  font-weight: 600;
  text-align: center;
}

.competitive-flash[data-tone="correct"] {
  color: var(--success);
}

.competitive-flash[data-tone="wrong"] {
  color: var(--danger);
}

.competitive-pause {
  position: absolute;
  z-index: 30;
  inset: 0;
  display: grid;
  place-items: center;
  padding: var(--page-pad);
  background: rgba(8, 10, 10, 0.94);
}

.competitive-pause__panel {
  width: min(100%, 34rem);
  padding: clamp(1.4rem, 4vw, 2.7rem);
  border: 1px solid rgba(243, 240, 232, 0.35);
  background: #080a0a;
}

.competitive-pause__panel h2 {
  margin: 0.55rem 0;
  font-family: "Syne", sans-serif;
  font-size: clamp(2.1rem, 6vw, 4rem);
  letter-spacing: -0.07em;
  line-height: 0.95;
}

.competitive-pause__panel p {
  margin: 0 0 1.4rem;
  color: var(--paper-muted);
  line-height: 1.5;
}

.competitive-pause__panel > div {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.55rem;
}

.competitive-summary {
  width: min(100%, 58rem);
  margin: auto;
  padding-bottom: 2rem;
}

.competitive-summary__hero {
  display: grid;
  justify-items: center;
  padding: clamp(1.2rem, 3vw, 2.5rem);
  border: 1px solid rgba(243, 240, 232, 0.3);
  background: #080a0a;
  text-align: center;
}

.competitive-summary__hero h1 {
  margin: 0.35rem 0 0;
  font-family: "Syne", sans-serif;
  font-size: clamp(2.4rem, 6vw, 5rem);
  font-weight: 600;
  letter-spacing: -0.08em;
  line-height: 0.9;
}

.competitive-summary__hero > strong {
  margin-top: 0.5rem;
  color: var(--signal);
  font-family: "Syne", sans-serif;
  font-size: clamp(4rem, 10vw, 8rem);
  letter-spacing: -0.08em;
  line-height: 0.85;
}

.competitive-summary__hero > p {
  margin: 0.25rem 0 1rem;
  color: var(--paper-muted);
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.competitive-summary__hero dl {
  display: grid;
  width: min(100%, 34rem);
  grid-template-columns: repeat(4, 1fr);
  margin: 0;
  border: 1px solid var(--line);
}

.competitive-summary__hero dl > div {
  display: grid;
  gap: 0.25rem;
  padding: 0.7rem;
}

.competitive-summary__hero dl > div + div {
  border-left: 1px solid var(--line);
}

.competitive-summary__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.1rem;
}

.competitive-summary__review {
  margin-top: 1rem;
}

.competitive-summary__review-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(243, 240, 232, 0.3);
}

.competitive-summary__review-heading h2 {
  margin: 0;
  font-family: "Syne", sans-serif;
  font-size: 1.6rem;
  letter-spacing: -0.05em;
}

.competitive-summary__review-heading span {
  color: var(--paper-muted);
  font-size: 0.55rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.competitive-review {
  border: 1px solid rgba(243, 240, 232, 0.2);
  border-top: 0;
  background: #080a0a;
}

.competitive-review > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0.8rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.55rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.competitive-review[data-correct="true"] > header strong {
  color: var(--success);
}

.competitive-review[data-correct="false"] > header strong {
  color: var(--danger);
}

.competitive-review__body {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1rem;
  padding: 1rem;
}

.competitive-review .feedback-panel__visual {
  width: 5rem;
  height: 5rem;
  margin: 0;
}

.competitive-review h3 {
  margin: 0 0 0.7rem;
  font-size: 0.92rem;
}

.competitive-review__answer,
.competitive-review__selected {
  display: grid;
  gap: 0.18rem;
  margin: 0.45rem 0;
  font-weight: 600;
}

.competitive-review__answer span,
.competitive-review__selected span {
  color: var(--paper-muted);
  font-size: 0.5rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.competitive-review__answer {
  color: var(--signal);
}

.competitive-review__selected {
  color: var(--danger);
}

.competitive-review__explanation,
.competitive-review .feedback-panel__supplement p {
  color: var(--paper-muted);
  font-size: 0.74rem;
  line-height: 1.55;
}

.competitive-review .feedback-panel__supplement {
  margin-top: 0.8rem;
  padding-top: 0.8rem;
  border-top: 1px solid var(--line);
}

.competitive-review__body > div > small {
  display: inline-block;
  margin: 0.7rem 0.8rem 0 0;
  color: var(--paper-muted);
  font-size: 0.55rem;
}

.competitive-review__body a {
  color: var(--signal);
  font-size: 0.58rem;
  text-transform: uppercase;
}

@media (max-width: 700px) {
  .competitive-menu__cards {
    grid-template-columns: 1fr;
  }

  .competitive-mode-card > p {
    margin-left: 0;
  }

  .competitive-format-buttons > button {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .competitive-format-buttons kbd {
    display: none !important;
  }

  .competitive-header {
    height: 3.9rem;
  }

  .competitive-header__mode span {
    display: none;
  }

  .competitive-hud {
    top: 3.9rem;
    width: calc(100% - (2 * var(--page-pad)));
    height: 3.7rem;
    grid-template-columns: 3.7rem minmax(7rem, 1fr) 4.5rem;
    gap: 0.55rem;
  }

  .competitive-hud__timer {
    grid-template-columns: minmax(0, 1fr) 2.7rem;
    gap: 0.4rem;
  }

  .competitive-hud__stat strong {
    font-size: 0.85rem;
  }

  .competitive-hud__stat span {
    font-size: 0.42rem;
  }

  .competitive-stage {
    inset: 7.6rem 0 0;
    align-items: start;
    padding-top: 0.45rem;
  }

  .competitive-question {
    padding: 0.9rem;
  }

  .competitive-question h1 {
    font-size: clamp(1.55rem, 8vw, 2.2rem);
  }

  .competitive-quote {
    padding: 1rem;
    font-size: 1.2rem;
  }

  .competitive-choice-list button {
    min-height: 3.35rem;
  }

  .competitive-question__shortcuts span:first-child {
    display: none;
  }

  .competitive-answer {
    grid-template-columns: minmax(0, 1fr) 5.4rem;
  }

  .competitive-answer input,
  .competitive-answer button {
    min-height: 3.7rem;
  }

  .competitive-answer button {
    padding: 0 0.55rem;
  }

  .competitive-summary__hero dl {
    grid-template-columns: repeat(2, 1fr);
  }

  .competitive-summary__hero dl > div:nth-child(3) {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .competitive-summary__hero dl > div:nth-child(4) {
    border-top: 1px solid var(--line);
  }

  .competitive-summary__actions {
    display: grid;
    width: 100%;
  }

  .competitive-review__body {
    grid-template-columns: 1fr;
  }
}

@media (max-height: 720px) and (min-width: 701px) {
  .competitive-header {
    height: 3.7rem;
  }

  .competitive-hud {
    top: 3.7rem;
    height: 3.3rem;
  }

  .competitive-stage {
    inset: 7rem 0 0;
    padding-top: 0.45rem;
  }

  .competitive-question {
    padding: 0.9rem 1.15rem;
  }

  .competitive-question h1 {
    margin: 0.65rem 0;
    font-size: clamp(1.55rem, 4.5vw, 2.7rem);
  }

  .competitive-choice-list button {
    min-height: 3.05rem;
  }

  .competitive-quote {
    margin: 0.65rem 0;
    padding: 0.8rem;
  }

  .competitive-icon-clue,
  .competitive-question-icon {
    width: 4.4rem;
    margin-top: 0.55rem;
  }

  .competitive-splash-clue {
    width: 25rem;
    margin-top: 0.55rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .competitive-view[data-competitive-format="text"].has-revealed-art .competitive-view__art,
  .competitive-format-buttons > button {
    transition: none;
  }
}

@font-face {
  font-family: "IBM Plex Sans";
  src: url("assets/fonts/ibm-plex-sans.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --ink: #080a0a;
  --ink-soft: #111413;
  --paper: #f3f0e8;
  --paper-muted: rgba(243, 240, 232, 0.66);
  --paper-faint: rgba(243, 240, 232, 0.12);
  --signal: #d7ff4f;
  --signal-dark: #1d2308;
  --success: #7ef0b8;
  --danger: #ff756f;
  --line: rgba(243, 240, 232, 0.22);
  --page-pad: clamp(1.25rem, 4vw, 4rem);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: var(--ink);
  font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  overflow: hidden;
  background: var(--ink);
  color: var(--paper);
  -webkit-font-smoothing: antialiased;
}

button {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

[hidden] {
  display: none !important;
}

::selection {
  background: var(--signal);
  color: var(--ink);
}

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

:focus-visible {
  outline: 3px solid var(--signal);
  outline-offset: 4px;
}

.app-shell,
.view {
  width: 100%;
  height: 100vh;
  height: 100dvh;
}

.view {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--ink);
}

.view.is-active {
  animation: view-in 0.68s var(--ease-out) both;
}

@keyframes view-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.wordmark {
  position: relative;
  z-index: 2;
  display: inline-block;
  color: var(--paper);
  font-family: "Syne", sans-serif;
  font-size: clamp(1.3rem, 2vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.08em;
  line-height: 1;
  text-decoration: none;
}

.wordmark span {
  color: var(--signal);
}

.wordmark--small {
  font-size: 1.15rem;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin: 0;
  color: rgba(243, 240, 232, 0.78);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  line-height: 1.2;
  text-transform: uppercase;
}

.eyebrow > span {
  width: 1.75rem;
  height: 2px;
  background: var(--signal);
}

.button {
  min-height: 3.75rem;
  border: 0;
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease;
}

.button:active {
  transform: scale(0.98);
}

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

.button--primary {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  width: min(100%, 21rem);
  padding: 0.42rem 0.42rem 0.42rem 1.4rem;
  background: var(--signal);
  color: var(--ink);
}

#start-button {
  width: min(100%, 28rem);
  min-height: clamp(5.75rem, 9vw, 7.25rem);
  padding: 0.6rem 0.6rem 0.6rem clamp(1.4rem, 3vw, 2rem);
  font-family: "Syne", sans-serif;
  font-size: clamp(2.5rem, 4.4vw, 4.75rem);
  font-weight: 600;
  letter-spacing: -0.065em;
  line-height: 0.86;
}

#start-button .button__arrow,
#start-button .button__key {
  width: clamp(3.9rem, 6vw, 5.4rem);
  height: clamp(3.9rem, 6vw, 5.4rem);
}

#start-button .button__key {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  background: var(--ink);
  color: var(--paper);
  font-family: "IBM Plex Sans", sans-serif;
  font-size: clamp(0.56rem, 0.75vw, 0.7rem);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.button--primary:hover .button__arrow,
.button--primary:focus-visible .button__arrow {
  transform: rotate(45deg);
}

.button__arrow {
  display: grid;
  width: 2.85rem;
  height: 2.85rem;
  place-items: center;
  background: var(--ink);
  color: var(--paper);
  font-size: 1rem;
  transition: transform 260ms var(--ease-out);
}

.button--ghost {
  padding-inline: 1.5rem;
  border: 1px solid var(--line);
  background: rgba(8, 10, 10, 0.45);
  color: var(--paper);
  backdrop-filter: blur(12px);
}

.button--ghost:hover {
  border-color: var(--paper);
  background: var(--paper);
  color: var(--ink);
}

.text-button {
  padding: 0;
  border: 0;
  border-bottom: 1px solid rgba(243, 240, 232, 0.45);
  background: none;
  color: inherit;
  cursor: pointer;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.icon-button {
  display: grid;
  width: 2.7rem;
  height: 2.7rem;
  padding: 0;
  border: 1px solid var(--line);
  background: transparent;
  place-items: center;
  cursor: pointer;
  color: var(--paper);
  font-size: 1.1rem;
  transition: background 180ms ease, color 180ms ease;
}

.icon-button:hover {
  background: var(--paper);
  color: var(--ink);
}

.icon-button--key {
  width: 3.5rem;
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 0.54rem;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.icon-button--glass {
  background: rgba(8, 10, 10, 0.22);
  backdrop-filter: blur(16px);
}

/* Home */

.home-view {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100dvh;
  padding: 1.5rem var(--page-pad) 1.25rem;
}

.home-view__art,
.home-view__veil {
  position: absolute;
  z-index: -3;
  inset: 0;
  width: 100%;
  height: 100%;
}

.home-view__art {
  object-fit: cover;
  object-position: 58% center;
  opacity: 0;
  transition: opacity 180ms ease;
}

.home-view__art.is-ready {
  opacity: 1;
}

.home-view__veil {
  z-index: -2;
  background: rgba(8, 10, 10, 0.58);
}

.home-header,
.view-header,
.quiz-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.edition-mark {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--paper-muted);
  font-size: 0.58rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.edition-mark strong {
  display: grid;
  width: 2rem;
  height: 2rem;
  border: 1px solid var(--line);
  place-items: center;
  color: var(--paper);
  font-weight: 500;
}

.home-copy {
  align-self: end;
  width: min(100%, 64rem);
  padding-bottom: clamp(1.5rem, 5vh, 4rem);
}

.home-copy h1 {
  max-width: 12ch;
  margin: 1rem 0 1.15rem;
  font-family: "Syne", sans-serif;
  font-size: clamp(3rem, 7.8vw, 7.7rem);
  font-weight: 600;
  letter-spacing: -0.075em;
  line-height: 0.86;
}

.home-copy h1 em,
.topics-intro h2 em {
  color: var(--signal);
  font-style: normal;
}

.home-copy__lede {
  max-width: 35rem;
  margin: 0;
  color: var(--paper-muted);
  font-size: clamp(0.92rem, 1.25vw, 1.08rem);
  line-height: 1.55;
}

.home-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-top: 2rem;
}

.home-footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
}

.home-footer p {
  max-width: 17rem;
  margin: 0;
  color: rgba(243, 240, 232, 0.52);
  font-size: 0.68rem;
  line-height: 1.45;
  text-align: right;
}

.vertical-note {
  position: absolute;
  top: 50%;
  right: 1.1rem;
  margin: 0;
  color: rgba(243, 240, 232, 0.55);
  font-size: 0.54rem;
  letter-spacing: 0.22em;
  transform: translateY(-50%) rotate(90deg) translateX(50%);
  transform-origin: right center;
}

/* Topic selection */

.topics-view {
  padding: 1.3rem var(--page-pad) 1.25rem;
}

.topics-view::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: rgba(243, 240, 232, 0.015);
  content: "";
  mask-image: none;
}

.view-header {
  position: relative;
  z-index: 5;
  height: 3rem;
}

.view-header .wordmark {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.step-label {
  color: var(--paper-muted);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.touch-only {
  display: none !important;
}

.topics-layout {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas:
    "intro"
    "list";
  gap: clamp(1rem, 2.4vh, 1.6rem);
  width: min(100%, 58rem);
  margin: clamp(1.25rem, 3vh, 2rem) auto 0;
}

.topics-intro {
  grid-area: intro;
  align-self: center;
  text-align: center;
}

.topics-intro h2 {
  margin: 0 0 0.65rem;
  font-family: "Syne", sans-serif;
  font-size: clamp(2.7rem, 5vw, 4.6rem);
  font-weight: 600;
  letter-spacing: -0.07em;
  line-height: 0.91;
}

.topics-intro > p:last-child {
  max-width: 27rem;
  margin: 0 auto;
  color: var(--paper-muted);
  font-size: 0.88rem;
  line-height: 1.55;
}

.format-list {
  grid-area: list;
  display: grid;
  align-self: center;
  justify-self: center;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
  width: 100%;
}

.format-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(243, 240, 232, 0.22);
  background: rgba(8, 10, 10, 0.82);
}

.format-card__header {
  display: grid;
  min-height: clamp(8.5rem, 19vh, 11rem);
  grid-template-columns: 1fr auto;
  grid-template-rows: auto 1fr;
  gap: 0.7rem;
  padding: clamp(0.9rem, 1.6vw, 1.25rem);
  border-bottom: 1px solid rgba(243, 240, 232, 0.22);
}

.format-card__number {
  color: var(--paper-muted);
  font-size: 0.55rem;
  letter-spacing: 0.12em;
}

.format-card__heading {
  align-self: end;
}

.format-card__heading small {
  display: block;
  margin-bottom: 0.55rem;
  color: var(--signal);
  font-size: 0.55rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.format-card__heading h3 {
  margin: 0;
  font-family: "Syne", sans-serif;
  font-size: clamp(1.8rem, 2.7vw, 2.8rem);
  font-weight: 600;
  letter-spacing: -0.065em;
  line-height: 0.9;
}

.format-card__key {
  align-self: start;
  grid-column: 2;
  grid-row: 1 / span 2;
  justify-self: end;
  min-width: 3.1rem;
  padding: 0.42rem 0.55rem;
  border: 1px solid currentColor;
  color: var(--paper-muted);
  text-align: center;
  font-size: 0.54rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.format-card__modes {
  display: grid;
}

.format-card .topic-row {
  min-height: clamp(3.75rem, 7.2vh, 4.5rem);
  padding-inline: clamp(0.85rem, 1.4vw, 1.15rem);
}

.topic-list {
  grid-area: list;
  align-self: center;
  display: grid;
  gap: clamp(0.85rem, 1.8vh, 1.25rem);
}

.topic-group {
  border-top: 1px solid rgba(243, 240, 232, 0.28);
}

.topic-group__header {
  display: flex;
  min-height: 2.65rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid var(--line);
}

.topic-group__header > div {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.topic-group__index {
  color: var(--signal);
  font-size: 0.52rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.topic-group__header h3 {
  margin: 0;
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 0.61rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.topic-group__header p {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  color: var(--paper-muted);
  font-size: 0.54rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.topic-group__header kbd {
  min-width: 2.3rem;
  padding: 0.28rem 0.38rem;
  border: 1px solid rgba(215, 255, 79, 0.42);
  background: #080a0a;
  color: var(--signal);
  text-align: center;
  font: inherit;
  font-weight: 700;
}

.topic-row {
  position: relative;
  display: grid;
  grid-template-columns: 2.5rem 1fr 2.5rem;
  align-items: center;
  width: 100%;
  min-height: clamp(3.75rem, 6.2vh, 4.65rem);
  padding: 0.55rem 0;
  overflow: hidden;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.topic-row::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: var(--signal);
  content: "";
  transform: translateX(-102%);
  transition: transform 420ms var(--ease-out);
}

.topic-row:hover,
.topic-row:focus-visible {
  color: var(--ink);
}

.topic-row:hover::before,
.topic-row:focus-visible::before {
  transform: translateX(0);
}

.topic-row__number {
  color: var(--paper-muted);
  font-size: 0.62rem;
  transition: color 180ms ease;
}

.topic-row:hover .topic-row__number,
.topic-row:focus-visible .topic-row__number {
  color: rgba(8, 10, 10, 0.62);
}

.topic-row__copy {
  display: grid;
  gap: 0.26rem;
}

.topic-row__copy strong {
  font-family: "Syne", sans-serif;
  font-size: clamp(1.25rem, 1.8vw, 1.75rem);
  font-weight: 600;
  letter-spacing: -0.045em;
}

.topic-row__copy small {
  color: var(--paper-muted);
  font-size: 0.68rem;
  transition: color 180ms ease;
}

.topic-row:hover .topic-row__copy small,
.topic-row:focus-visible .topic-row__copy small {
  color: rgba(8, 10, 10, 0.64);
}

.topic-row__arrow {
  justify-self: end;
  font-size: 1.1rem;
  transition: transform 260ms var(--ease-out);
}

.topic-row:hover .topic-row__arrow,
.topic-row:focus-visible .topic-row__arrow {
  transform: rotate(45deg);
}

.topics-canvas {
  position: absolute;
  z-index: -2;
  top: 0;
  right: 0;
  width: 42vw;
  height: 100%;
  overflow: hidden;
  opacity: 0.56;
}

.topics-canvas__wash {
  position: absolute;
  inset: 0;
  background: rgba(8, 10, 10, 0.5);
}

/* Full-screen topic art. Reactive is the default; the other variants remain preview studies. */

.topics-canvas__variant {
  position: absolute;
  inset: 0;
  display: none;
  overflow: hidden;
}

[data-topics-bg] .topics-canvas {
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 1;
}

[data-topics-bg="splash"] .topics-canvas__variant--splash,
[data-topics-bg="abstract"] .topics-canvas__variant--abstract,
[data-topics-bg="reactive"] .topics-canvas__variant--reactive {
  display: block;
}

[data-topics-bg] .topics-view::before {
  z-index: -1;
  opacity: 0.24;
  mask-image: none;
}

/* Study 01 — one current, full-bleed Riot splash. */

.topics-canvas__hero {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 61% center;
  filter: saturate(0.9) contrast(1.09) brightness(0.84);
  animation: none;
  transform: none;
  transition: none;
}

[data-topics-bg="splash"] .topics-canvas__wash {
  background: rgba(8, 10, 10, 0.58);
}

/* Study 02 — a raster-free editorial field. */

.topics-canvas__variant--abstract {
  background: #0b1110;
}

.topics-canvas__variant--abstract::before {
  position: absolute;
  inset: -20%;
  background: transparent;
  content: "";
  mask-image: none;
  transform: rotate(-8deg);
}

.topics-canvas__variant--abstract::after {
  position: absolute;
  top: 50%;
  right: clamp(-15rem, -8vw, -4rem);
  width: min(64vw, 58rem);
  aspect-ratio: 1;
  border: 1px solid rgba(243, 240, 232, 0.12);
  border-radius: 50%;
  box-shadow:
    0 0 0 clamp(3rem, 7vw, 7rem) rgba(243, 240, 232, 0.022),
    0 0 0 clamp(7rem, 14vw, 14rem) rgba(215, 255, 79, 0.018);
  content: "";
  transform: translateY(-50%);
}

.topics-abstract__orbit {
  position: absolute;
  top: 50%;
  right: clamp(1rem, 13vw, 15rem);
  width: clamp(9rem, 18vw, 18rem);
  aspect-ratio: 1;
  border: 1px solid rgba(84, 217, 215, 0.28);
  border-radius: 50%;
  box-shadow: inset 0 0 4rem rgba(84, 217, 215, 0.045);
  transform: translateY(-50%);
}

.topics-abstract__orbit::before,
.topics-abstract__orbit::after {
  position: absolute;
  border-radius: 50%;
  content: "";
}

.topics-abstract__orbit::before {
  inset: 18%;
  border: 1px solid rgba(243, 240, 232, 0.13);
}

.topics-abstract__orbit::after {
  top: 8%;
  right: 13%;
  width: 0.48rem;
  height: 0.48rem;
  background: var(--signal);
  box-shadow: 0 0 2rem rgba(215, 255, 79, 0.7);
}

.topics-abstract__axis {
  position: absolute;
  height: 1px;
  background: rgba(243, 240, 232, 0.18);
  transform-origin: center;
}

.topics-abstract__axis--one {
  top: 31%;
  right: -4%;
  width: 58%;
  transform: rotate(-18deg);
}

.topics-abstract__axis--two {
  right: 8%;
  bottom: 24%;
  width: 42%;
  transform: rotate(27deg);
}

.topics-abstract__signal {
  position: absolute;
  top: 12%;
  right: 8%;
  width: 1px;
  height: 76%;
  background: rgba(215, 255, 79, 0.62);
  box-shadow: 0 0 2rem rgba(215, 255, 79, 0.16);
}

[data-topics-bg="abstract"] .topics-canvas__wash {
  background: rgba(8, 10, 10, 0.36);
}

/* Default — category-linked stills with opacity-only feedback. */

.topics-canvas__variant--reactive {
  background: #080a0a;
}

.topics-reactive__strips,
.topics-reactive__focus,
.topics-reactive__art {
  position: absolute;
  inset: 0;
}

.topics-reactive__strips {
  display: block;
  background-image: url("assets/wiki/splashes/Yunara.webp?v=4x-20260715");
  background-position: 64% center;
  background-repeat: no-repeat;
  background-size: cover;
  filter: saturate(0.86) contrast(1.08) brightness(0.78);
  opacity: 0.7;
  transition: opacity 240ms ease;
}

.topics-reactive__art {
  display: block;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  filter: saturate(0.86) contrast(1.08) brightness(0.78);
}

.topics-reactive__strip {
  display: none;
}

.topics-reactive__strip--quick,
.topics-reactive__art--quick {
  background-image: url("assets/wiki/splashes/Yunara.webp?v=4x-20260715");
  background-position: 62% center;
}

.topics-reactive__strip--lore,
.topics-reactive__art--lore {
  background-image: url("assets/wiki/splashes/Kindred.webp?v=4x-20260715");
  background-position: 61% center;
}

.topics-reactive__strip--abilities,
.topics-reactive__art--abilities {
  background-image: url("assets/wiki/splashes/Darius.webp?v=4x-20260715");
  background-position: 58% center;
}

.topics-reactive__strip--items,
.topics-reactive__art--items {
  background-image: url("assets/wiki/splashes/Ornn.webp?v=4x-20260715");
  background-position: 50% center;
}

.topics-reactive__strip--quotes,
.topics-reactive__art--quotes {
  background-image: url("assets/wiki/splashes/Jhin.webp?v=4x-20260715");
  background-position: 62% center;
}

.topics-reactive__strip--icons,
.topics-reactive__art--icons {
  background-image: url("assets/wiki/splashes/Hwei.webp?v=4x-20260715");
  background-position: 57% center;
}

.topics-reactive__strip--splash,
.topics-reactive__art--splash {
  background-image: url("assets/wiki/splashes/Aphelios.webp?v=4x-20260715");
  background-position: 62% center;
}

.topics-reactive__art {
  opacity: 0;
  transition: opacity 240ms ease;
}

[data-topics-bg="reactive"] .topics-view[data-active-topic] .topics-reactive__strips {
  opacity: 0;
}

[data-topics-bg="reactive"] .topics-view[data-active-topic="quick"] .topics-reactive__art--quick,
[data-topics-bg="reactive"] .topics-view[data-active-topic="lore"] .topics-reactive__art--lore,
[data-topics-bg="reactive"] .topics-view[data-active-topic="abilities"] .topics-reactive__art--abilities,
[data-topics-bg="reactive"] .topics-view[data-active-topic="items"] .topics-reactive__art--items,
[data-topics-bg="reactive"] .topics-view[data-active-topic="quotes"] .topics-reactive__art--quotes,
[data-topics-bg="reactive"] .topics-view[data-active-topic="icons"] .topics-reactive__art--icons,
[data-topics-bg="reactive"] .topics-view[data-active-topic="splash"] .topics-reactive__art--splash {
  opacity: 0.76;
}

[data-topics-bg="reactive"] .topics-canvas__wash {
  background: rgba(8, 10, 10, 0.5);
}

.topics-legal {
  position: absolute;
  z-index: 4;
  bottom: 1.4rem;
  left: var(--page-pad);
  color: var(--paper-muted);
}

/* Quiz feed */

.quiz-view {
  overflow: clip;
  background: var(--ink);
}

.quiz-header {
  position: fixed;
  z-index: 30;
  top: 0;
  left: 50%;
  width: min(100%, 35rem);
  padding: max(1rem, env(safe-area-inset-top)) 1rem 0;
  transform: translateX(-50%);
  pointer-events: none;
}

.quiz-header > * {
  pointer-events: auto;
}

.quiz-count {
  min-width: 2.7rem;
  height: 2.7rem;
  padding: 0 0.55rem;
  border: 1px solid var(--line);
  background: rgba(8, 10, 10, 0.22);
  color: var(--paper);
  cursor: pointer;
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  backdrop-filter: blur(16px);
}

.quiz-count i {
  padding-inline: 0.15rem;
  color: var(--paper-muted);
  font-style: normal;
}

.quiz-feed {
  position: relative;
  width: min(100%, 35rem);
  height: 100vh;
  height: 100dvh;
  margin: 0 auto;
  overflow-x: hidden;
  overflow-y: auto;
  border-inline: 1px solid rgba(243, 240, 232, 0.12);
  background: var(--ink);
  scroll-behavior: smooth;
  scroll-snap-type: y mandatory;
  scrollbar-width: none;
}

.quiz-feed::-webkit-scrollbar,
.question-card__content::-webkit-scrollbar {
  display: none;
}

.question-card {
  position: relative;
  isolation: isolate;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  min-height: 38rem;
  overflow: hidden;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.question-card__art,
.question-card__overlay {
  position: absolute;
  z-index: -3;
  inset: 0;
  width: 100%;
  height: 100%;
}

.question-card__art {
  object-fit: cover;
}

.question-card__overlay {
  z-index: -2;
  background: rgba(8, 10, 10, 0.5);
}

.question-card__index {
  position: absolute;
  z-index: 2;
  top: 5.1rem;
  right: 1.25rem;
  color: rgba(243, 240, 232, 0.45);
  font-family: "Syne", sans-serif;
  font-size: 4rem;
  font-weight: 600;
  letter-spacing: -0.08em;
  line-height: 1;
}

.question-card__content {
  position: absolute;
  z-index: 3;
  right: 0;
  bottom: 0;
  left: 0;
  max-height: calc(100dvh - 5rem);
  padding: 7.5rem 1.25rem max(1rem, env(safe-area-inset-bottom));
  overflow-y: auto;
  overscroll-behavior: contain;
  perspective: 90rem;
}

.question-card__flipper {
  position: relative;
  width: 100%;
  min-height: clamp(24rem, 60dvh, 34rem);
  transform-style: preserve-3d;
  transition: transform 420ms var(--ease-out);
  will-change: transform;
}

.question-card.is-answered .question-card__flipper {
  transform: rotateY(180deg);
}

.question-card__face {
  box-sizing: border-box;
  width: 100%;
  min-height: inherit;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.question-card__front {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  visibility: visible;
  transition: visibility 0s linear;
}

.question-card.is-answered .question-card__front {
  visibility: hidden;
  pointer-events: none;
  transition-delay: 210ms;
}

.question-meta {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.75rem;
}

.question-meta span {
  display: inline-flex;
  min-height: 1.55rem;
  align-items: center;
  padding-inline: 0.6rem;
  border: 1px solid var(--line);
  background: rgba(8, 10, 10, 0.28);
  color: rgba(243, 240, 232, 0.78);
  font-size: 0.56rem;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  backdrop-filter: blur(12px);
}

.question-meta span:first-child {
  border-color: rgba(215, 255, 79, 0.68);
  color: var(--signal);
}

.question-card h2 {
  max-width: 16ch;
  margin: 0 0 1rem;
  text-wrap: balance;
  font-family: "Syne", sans-serif;
  font-size: clamp(1.85rem, 5.7vw, 2.85rem);
  font-weight: 600;
  letter-spacing: -0.055em;
  line-height: 1.02;
}

.question-card.question-card--quote h2 {
  max-width: none;
  margin-bottom: 0.7rem;
  color: var(--paper-muted);
  font-family: "IBM Plex Sans", sans-serif;
  font-size: clamp(0.7rem, 1.8vw, 0.9rem);
  font-weight: 600;
  letter-spacing: 0.11em;
  line-height: 1.2;
  text-transform: uppercase;
}

.question-card.question-card--quote .question-card__art {
  opacity: 1;
  filter: none;
  transform: none;
  transition: opacity 700ms ease-in-out;
}

.question-card.question-card--quote:not(.is-answered) .question-card__art {
  opacity: 0;
}

.question-card.question-card--quote .question-card__overlay {
  background: rgba(8, 10, 10, 0.18);
}

.question-card.question-card--quote:not(.is-answered) .question-card__overlay {
  background: #080a0a;
}

.question-quote {
  position: relative;
  margin: 0 0 1rem;
  padding: clamp(1rem, 2.6vw, 1.4rem) clamp(1.3rem, 3vw, 1.8rem);
  border: 1px solid rgba(215, 255, 79, 0.42);
  background: rgba(8, 10, 10, 0.76);
  box-shadow: inset 0 0 0 1px rgba(243, 240, 232, 0.04);
}

.question-quote::before,
.question-quote::after {
  position: absolute;
  color: var(--signal);
  font-family: "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  font-size: 2.2rem;
  line-height: 1;
}

.question-quote::before {
  top: 0.45rem;
  left: 0.55rem;
  content: "“";
}

.question-quote::after {
  right: 0.55rem;
  bottom: 0.05rem;
  content: "”";
}

.question-quote p {
  margin: 0;
  color: var(--paper);
  text-align: center;
  text-wrap: balance;
  font-family: "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  font-size: clamp(1.25rem, 3.5vw, 2.15rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.18;
}

.visual-clue {
  display: grid;
  width: 5.5rem;
  height: 5.5rem;
  margin-bottom: 1rem;
  padding: 0.55rem;
  border: 1px solid rgba(243, 240, 232, 0.4);
  background: rgba(8, 10, 10, 0.56);
  place-items: center;
  box-shadow: 0 1.2rem 3rem rgba(0, 0, 0, 0.36);
  backdrop-filter: blur(18px);
}

.visual-clue img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  image-rendering: auto;
}

.question-card--ability-icon .question-card__art {
  opacity: 1;
  filter: none;
  transform: none;
  transition: opacity 700ms ease-in-out;
}

.question-card--ability-icon .question-card__overlay {
  background: rgba(8, 10, 10, 0.18);
}

.question-card--ability-icon:not(.is-answered) .question-card__art {
  opacity: 0;
}

.question-card--ability-icon:not(.is-answered) .question-card__overlay {
  background: #080a0a;
}

.question-card.question-card--ability-icon h2 {
  max-width: none;
  margin-bottom: 0.75rem;
  color: var(--paper-muted);
  font-family: "IBM Plex Sans", sans-serif;
  font-size: clamp(0.72rem, 1.8vw, 0.92rem);
  font-weight: 600;
  letter-spacing: 0.11em;
  line-height: 1.25;
  text-transform: uppercase;
}

.question-card--ability-icon .visual-clue {
  position: relative;
  width: clamp(7rem, 24vw, 9rem);
  height: clamp(7rem, 24vw, 9rem);
  margin: 0 auto 1rem;
  padding: 0.65rem;
  border-color: rgba(65, 214, 220, 0.62);
  background: #0b1012;
  box-shadow:
    0 1.5rem 4rem rgba(0, 0, 0, 0.5),
    inset 0 0 0 1px rgba(215, 255, 79, 0.12);
  backdrop-filter: none;
}

.question-card--ability-icon .visual-clue::before,
.question-card--ability-icon .visual-clue::after {
  position: absolute;
  width: 1.2rem;
  height: 1.2rem;
  border-color: var(--signal);
  content: "";
  pointer-events: none;
}

.question-card--ability-icon .visual-clue::before {
  top: -1px;
  left: -1px;
  border-top: 2px solid;
  border-left: 2px solid;
}

.question-card--ability-icon .visual-clue::after {
  right: -1px;
  bottom: -1px;
  border-right: 2px solid;
  border-bottom: 2px solid;
}

.question-card--ability-icon .visual-clue img {
  object-fit: cover;
}

.question-card.question-card--splash h2 {
  width: 100%;
  max-width: none;
  margin: 0 auto 0.75rem;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  text-align: center;
}

.question-card--splash .question-card__content {
  top: max(4.35rem, env(safe-area-inset-top));
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  width: auto;
  max-height: none;
  padding: clamp(0.75rem, 2vw, 1.4rem) clamp(1rem, 4vw, 2rem) max(0.25rem, env(safe-area-inset-bottom));
  overflow-y: auto;
  transform: none;
}

.question-card--splash .question-card__flipper {
  width: min(100%, 48rem);
  min-height: min(42rem, calc(100dvh - 6rem));
  margin: auto;
}

.question-card--splash .question-card__front {
  justify-content: center;
  padding: clamp(0.75rem, 1.7vw, 1.25rem);
  border: 1px solid rgba(243, 240, 232, 0.14);
  background: #080a0a;
  box-shadow: 0 1.5rem 4rem rgba(0, 0, 0, 0.3);
  backdrop-filter: none;
}

.question-card--splash .question-meta {
  width: 100%;
  justify-content: center;
  margin-inline: auto;
}

.question-card--splash .question-card__art {
  opacity: 1;
  transition: opacity 260ms ease;
}

.question-card--splash .question-card__overlay {
  background: rgba(8, 10, 10, 0.34);
}

.question-card--splash:not(.is-answered) .question-card__art {
  opacity: 0;
}

.question-card--splash:not(.is-answered) .question-card__overlay {
  background: #080a0a;
}

.splash-challenge {
  display: grid;
  width: 100%;
  gap: 0.8rem;
  justify-items: center;
  margin-inline: auto;
}

.splash-crop {
  position: relative;
  width: min(100%, 48rem, calc((100dvh - 23rem) * 1.69456));
  aspect-ratio: 1215 / 717;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid rgba(65, 214, 220, 0.58);
  background: #0b1012;
  box-shadow:
    0 1.5rem 4rem rgba(0, 0, 0, 0.38),
    inset 0 0 0 1px rgba(215, 255, 79, 0.08);
}

.splash-crop::before,
.splash-crop::after {
  position: absolute;
  z-index: 2;
  width: 1.35rem;
  height: 1.35rem;
  border-color: var(--signal);
  content: "";
  pointer-events: none;
}

.splash-crop::before {
  top: -1px;
  left: -1px;
  border-top: 2px solid;
  border-left: 2px solid;
}

.splash-crop::after {
  right: -1px;
  bottom: -1px;
  border-right: 2px solid;
  border-bottom: 2px solid;
}

.splash-crop > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(var(--splash-scale));
  transform-origin: var(--crop-origin);
  transition: transform 360ms var(--ease-out);
}

.splash-crop figcaption {
  position: absolute;
  z-index: 3;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.5rem 0.65rem;
  background: rgba(8, 10, 10, 0.92);
  color: rgba(243, 240, 232, 0.76);
  font-size: 0.52rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.splash-crop figcaption span:first-child {
  color: var(--signal);
}

.champion-challenge {
  display: grid;
  width: 100%;
  margin-top: 0.85rem;
}

.champion-answer {
  display: grid;
  width: min(100%, 48rem);
  gap: 0.42rem;
  margin-inline: auto;
}

.champion-answer__control {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  min-height: 3.4rem;
  border: 1px solid rgba(243, 240, 232, 0.28);
  background: rgba(8, 10, 10, 0.8);
  transition: border-color 160ms ease;
}

.champion-answer__control:focus-within {
  border-color: var(--signal);
}

.champion-answer input {
  min-width: 0;
  padding: 0 0.9rem;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--paper);
  font: inherit;
  font-size: 0.86rem;
}

.champion-answer input::placeholder {
  color: rgba(243, 240, 232, 0.42);
}

.champion-answer button {
  min-width: 6.5rem;
  padding: 0 0.9rem;
  border: 0;
  border-left: 1px solid rgba(243, 240, 232, 0.22);
  background: var(--signal);
  color: var(--ink);
  cursor: pointer;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.champion-answer input:disabled,
.champion-answer button:disabled {
  cursor: default;
  opacity: 0.55;
}

.champion-answer__status {
  min-height: 1rem;
  margin: 0;
  color: var(--paper-muted);
  font-size: 0.58rem;
  letter-spacing: 0.06em;
}

.champion-answer__status[data-tone="error"] {
  color: var(--danger);
}

.champion-answer__status[data-tone="success"] {
  color: var(--success);
}

.choice-list {
  display: grid;
  gap: 0.45rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.choice-button {
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr);
  align-items: center;
  width: 100%;
  min-height: 3.3rem;
  padding: 0.35rem 0.8rem 0.35rem 0.45rem;
  border: 1px solid rgba(243, 240, 232, 0.22);
  background: rgba(8, 10, 10, 0.58);
  color: var(--paper);
  cursor: pointer;
  text-align: left;
  backdrop-filter: blur(16px);
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.choice-button:hover:not(:disabled) {
  border-color: rgba(215, 255, 79, 0.8);
  background: rgba(8, 10, 10, 0.78);
  transform: translateX(0.2rem);
}

.choice-button:disabled {
  cursor: default;
}

.choice-button__key {
  display: grid;
  width: 1.75rem;
  height: 1.75rem;
  border: 1px solid var(--line);
  place-items: center;
  color: var(--paper-muted);
  font-size: 0.6rem;
}

.choice-button__text {
  padding-inline: 0.55rem;
  font-size: 0.76rem;
  font-weight: 500;
}

.choice-button__key,
.choice-button__text {
  pointer-events: none;
}

.feedback-panel {
  position: absolute;
  inset: 0;
  display: flex;
  min-height: 0;
  flex-direction: column;
  padding: clamp(0.9rem, 2.8vw, 1.25rem);
  overflow: hidden;
  border: 1px solid rgba(243, 240, 232, 0.2);
  background: var(--ink);
  box-shadow: 0 1.5rem 4rem rgba(0, 0, 0, 0.38);
  isolation: isolate;
  visibility: hidden;
  cursor: progress;
  pointer-events: none;
  transform: rotateY(180deg);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.question-card.is-answered .feedback-panel {
  visibility: visible;
  pointer-events: auto;
}

.question-card.is-feedback-ready .feedback-panel {
  cursor: pointer;
}

.question-card.is-right .feedback-panel {
  border-color: rgba(72, 211, 143, 0.55);
}

.question-card.is-wrong .feedback-panel {
  border-color: rgba(255, 115, 105, 0.55);
}

.feedback-panel:focus-visible {
  outline: 2px solid rgba(243, 240, 232, 0.72);
  outline-offset: -2px;
}

.question-card.is-right .feedback-panel:focus-visible {
  outline-color: var(--success);
}

.question-card.is-wrong .feedback-panel:focus-visible {
  outline-color: var(--danger);
}

.feedback-panel__scroll {
  min-height: 0;
  flex: 1;
  padding-right: 0.25rem;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(243, 240, 232, 0.3) transparent;
}

.feedback-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: clamp(0.85rem, 2vh, 1.3rem);
}

.feedback-panel__result,
.feedback-panel__category,
.feedback-panel__label {
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.feedback-panel__result {
  color: var(--paper);
  font-family: "IBM Plex Sans", sans-serif;
}

.question-card.is-right .feedback-panel__result {
  color: var(--success);
}

.question-card.is-wrong .feedback-panel__result {
  color: var(--danger);
}

.feedback-panel__category,
.feedback-panel__label {
  color: var(--paper-muted);
}

.feedback-panel__answer-block {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 0.9rem;
  padding-bottom: clamp(0.9rem, 2vh, 1.25rem);
  border-bottom: 1px solid var(--line);
}

.feedback-panel__answer-block:has(.feedback-panel__visual) {
  grid-template-columns: auto minmax(0, 1fr);
}

.feedback-panel__answer-block:not(:has(.feedback-panel__visual)) {
  grid-template-columns: 1fr;
}

.feedback-panel__visual {
  position: relative;
  width: clamp(3.4rem, 9vw, 4.6rem);
  height: clamp(3.4rem, 9vw, 4.6rem);
  margin: 0;
  border: 1px solid rgba(243, 240, 232, 0.26);
  background: rgba(243, 240, 232, 0.05);
}

.feedback-panel__visual > img {
  display: block;
  width: 100%;
  height: 100%;
}

.feedback-panel__visual--champion > img {
  object-fit: cover;
  object-position: center 20%;
}

.feedback-panel__visual--icon {
  padding: 0.28rem;
}

.feedback-panel__visual--icon > img {
  object-fit: contain;
}

.feedback-panel__ability-badge {
  position: absolute;
  right: -0.38rem;
  bottom: -0.38rem;
  display: grid;
  width: 1.75rem;
  height: 1.75rem;
  border: 2px solid var(--ink);
  background: var(--ink);
  place-items: center;
  box-shadow: 0 0 0 1px rgba(215, 255, 79, 0.55);
}

.feedback-panel__ability-badge img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feedback-panel__ability-badge > span {
  position: absolute;
  right: -0.24rem;
  bottom: -0.24rem;
  display: grid;
  width: 0.9rem;
  height: 0.9rem;
  border: 1px solid rgba(243, 240, 232, 0.34);
  background: var(--ink);
  color: var(--signal);
  font-size: 0.45rem;
  font-weight: 700;
  place-items: center;
}

.feedback-panel__answer-block h3 {
  margin: 0.25rem 0 0;
  color: var(--signal);
  text-wrap: balance;
  font-family: "Syne", sans-serif;
  font-size: clamp(1.2rem, 4.2vw, 2.2rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.feedback-panel__selected {
  display: grid;
  gap: 0.18rem;
  margin: 0.8rem 0 0;
  padding: 0.65rem 0.75rem;
  border: 1px solid rgba(255, 115, 105, 0.34);
  background: rgba(96, 38, 35, 0.25);
}

.feedback-panel__selected[hidden] {
  display: none;
}

.feedback-panel__selected span {
  color: var(--paper-muted);
  font-size: 0.54rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.feedback-panel__selected strong {
  color: var(--danger);
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.4;
}

.feedback-panel__attempt-note {
  margin: 0.65rem 0 0;
  padding-left: 0.7rem;
  border-left: 2px solid var(--signal);
  color: var(--paper-muted);
  font-size: clamp(0.68rem, 2.2vw, 0.8rem);
  line-height: 1.5;
}

.feedback-panel__attempt-note[hidden] {
  display: none;
}

.feedback-panel__detail {
  margin-top: clamp(0.9rem, 2.2vh, 1.35rem);
}

.feedback-panel__detail p,
.feedback-panel__supplement p,
.feedback-panel__stats {
  margin: 0.38rem 0 0;
  color: var(--paper-muted);
  font-size: clamp(0.72rem, 2.4vw, 0.86rem);
  line-height: 1.58;
}

.feedback-panel__stats {
  width: fit-content;
  padding: 0.3rem 0.48rem;
  border: 1px solid rgba(215, 255, 79, 0.28);
  color: var(--paper);
  font-weight: 600;
}

.feedback-panel__stats + p {
  margin-top: 0.65rem;
}

.feedback-panel__supplement {
  margin-top: clamp(0.9rem, 2.2vh, 1.35rem);
  padding-top: clamp(0.8rem, 1.8vh, 1.05rem);
  border-top: 1px solid var(--line);
}

.feedback-panel__supplement strong {
  display: block;
  margin-top: 0.35rem;
  color: var(--paper);
  font-size: clamp(0.72rem, 2.4vw, 0.86rem);
  font-weight: 600;
  line-height: 1.35;
}

.feedback-panel__source {
  display: inline-block;
  margin-top: 0.9rem;
  color: var(--paper);
  font-size: 0.6rem;
  letter-spacing: 0.09em;
  text-decoration-color: rgba(215, 255, 79, 0.7);
  text-underline-offset: 0.22rem;
  text-transform: uppercase;
}

.feedback-panel__source:hover,
.feedback-panel__source:focus-visible {
  color: var(--signal);
}

.feedback-panel__continue {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.85rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--line);
  color: var(--paper-muted);
  font-size: 0.56rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  opacity: 0.48;
  transition: color 160ms ease, opacity 160ms ease;
}

.feedback-panel__shortcut {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.keycap {
  display: inline-grid;
  min-width: 3.25rem;
  min-height: 1.65rem;
  padding: 0.18rem 0.5rem;
  place-items: center;
  border: 1px solid rgba(243, 240, 232, 0.7);
  background: var(--paper);
  color: var(--ink);
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 0.52rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  line-height: 1;
  text-transform: uppercase;
}

.question-card.is-feedback-ready .feedback-panel__continue {
  color: var(--paper);
  opacity: 1;
}

.question-card.is-feedback-ready .feedback-panel:hover .feedback-panel__continue {
  color: var(--signal);
}

.progress-rail {
  position: fixed;
  z-index: 20;
  top: 50%;
  left: calc(50% + 20rem);
  display: grid;
  gap: 1rem;
  width: 8rem;
  transform: translateY(-50%);
}

.progress-rail > span,
.progress-rail > small {
  color: var(--paper-muted);
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.quiz-space-hint {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 0.55rem;
  width: max-content;
  min-height: 2.35rem;
  padding: 0.3rem 0.5rem 0.3rem 0.3rem;
  border: 1px solid rgba(243, 240, 232, 0.3);
  background: var(--ink);
  color: var(--paper);
  cursor: pointer;
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 0.54rem;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  transition: border-color 160ms ease, color 160ms ease;
}

.quiz-space-hint:hover,
.quiz-space-hint:focus-visible {
  border-color: var(--signal);
  color: var(--signal);
}

.quiz-space-hint .keycap {
  min-width: 3rem;
  min-height: 1.55rem;
}

.progress-markers {
  display: grid;
  gap: 0.42rem;
}

.progress-marker {
  display: grid;
  grid-template-columns: 1fr 1.5rem;
  align-items: center;
  gap: 0.55rem;
  width: 100%;
  height: 0.6rem;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

.progress-marker::before {
  height: 1px;
  background: rgba(243, 240, 232, 0.25);
  content: "";
  transition: height 180ms ease, background 180ms ease;
}

.progress-marker span {
  color: rgba(243, 240, 232, 0.38);
  font-size: 0.52rem;
}

.progress-marker.is-active::before {
  height: 3px;
  background: var(--signal);
}

.progress-marker.is-active span {
  color: var(--paper);
}

.progress-marker.is-answered::before {
  background: rgba(126, 240, 184, 0.66);
}

/* Summary */

.summary-view {
  display: grid;
  min-height: 100dvh;
  padding: 1.3rem var(--page-pad) 1.4rem;
}

.summary-view__art,
.summary-view__veil {
  position: absolute;
  z-index: -3;
  inset: 0;
  width: 100%;
  height: 100%;
}

.summary-view__art {
  object-fit: cover;
  object-position: 64% center;
}

.summary-view__veil {
  z-index: -2;
  background: rgba(8, 10, 10, 0.62);
}

.view-header--summary {
  align-self: start;
}

.view-header--summary .wordmark {
  position: static;
  transform: none;
}

.summary-content {
  align-self: center;
  width: min(100%, 40rem);
}

.summary-content h2 {
  margin: 0;
  font-family: "Syne", sans-serif;
  font-size: clamp(2.5rem, 5vw, 5.5rem);
  font-weight: 600;
  letter-spacing: -0.07em;
  line-height: 0.95;
}

.summary-score {
  display: flex;
  align-items: baseline;
  margin-block: -0.4rem -0.75rem;
  color: var(--signal);
  font-family: "Syne", sans-serif;
  letter-spacing: -0.1em;
}

.summary-score strong {
  font-size: clamp(7rem, 20vw, 17rem);
  font-weight: 600;
  line-height: 1;
}

.summary-score span {
  color: var(--paper);
  font-size: clamp(1.7rem, 4vw, 3.5rem);
}

.summary-content > p:not(.eyebrow) {
  max-width: 26rem;
  margin: 0;
  color: var(--paper-muted);
  font-size: 0.87rem;
  line-height: 1.55;
}

.summary-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.summary-detail {
  color: var(--paper);
  font-size: 0.8rem;
  letter-spacing: 0.05em;
}

.summary-caption {
  align-self: end;
  justify-self: end;
  margin: 0;
  color: rgba(243, 240, 232, 0.54);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* Dialog */

.legal-dialog {
  width: min(calc(100% - 2rem), 34rem);
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 0;
  background: #111412;
  color: var(--paper);
  box-shadow: 0 2rem 8rem rgba(0, 0, 0, 0.65);
}

.legal-dialog::backdrop {
  background: rgba(4, 5, 5, 0.8);
  backdrop-filter: blur(10px);
}

.legal-dialog form {
  position: relative;
  padding: clamp(1.5rem, 5vw, 3rem);
}

.legal-dialog h2 {
  margin: 1rem 0 1.4rem;
  font-family: "Syne", sans-serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 600;
  letter-spacing: -0.065em;
  line-height: 0.96;
}

.legal-dialog p:not(.eyebrow) {
  color: var(--paper-muted);
  font-size: 0.78rem;
  line-height: 1.55;
}

.legal-dialog a {
  display: inline-block;
  margin-top: 0.8rem;
  color: var(--signal);
  font-size: 0.72rem;
  text-underline-offset: 0.3rem;
}

.dialog-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--paper);
  cursor: pointer;
  font-size: 1.2rem;
}

.dialog-close--key {
  width: 3.5rem;
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 0.54rem;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

noscript {
  position: fixed;
  z-index: 1000;
  inset: auto 1rem 1rem;
  padding: 1rem;
  background: var(--danger);
  color: var(--ink);
}

@media (max-width: 899px) {
  .home-view {
    padding-top: max(1.25rem, env(safe-area-inset-top));
    padding-bottom: max(1rem, env(safe-area-inset-bottom));
  }

  .home-view__art {
    object-position: 52% center;
  }

  .home-view__veil {
    background: rgba(8, 10, 10, 0.64);
  }

  .home-copy {
    padding-bottom: 1.1rem;
  }

  .home-copy h1 {
    max-width: 10ch;
    font-size: clamp(3rem, 13vw, 5rem);
    line-height: 0.89;
  }

  .home-copy__lede {
    max-width: 30rem;
  }

  .vertical-note,
  .progress-rail {
    display: none;
  }

  .topics-view {
    overflow-y: auto;
    padding-top: max(1.1rem, env(safe-area-inset-top));
    padding-bottom: max(1rem, env(safe-area-inset-bottom));
  }

  .topics-layout {
    grid-template-columns: 1fr;
    grid-template-areas:
      "intro"
      "list";
    gap: 1.25rem;
    margin-top: 1.5rem;
    padding-bottom: 1.5rem;
  }

  .topics-legal {
    position: relative;
    bottom: auto;
    left: auto;
    display: inline-block;
    margin-bottom: 0.5rem;
  }

  .topics-intro h2 {
    font-size: clamp(2.8rem, 12vw, 4.7rem);
  }

  .topics-intro > p:last-child {
    max-width: 23rem;
  }

  .format-card__header {
    min-height: 9rem;
  }

  .topic-row {
    min-height: 4.7rem;
  }

  .topics-canvas {
    width: 100%;
    opacity: 0.25;
  }

  .topics-canvas__wash {
    background: rgba(8, 10, 10, 0.64);
  }

  [data-topics-bg="splash"] .topics-canvas__hero {
    object-position: 58% center;
  }

  [data-topics-bg="splash"] .topics-canvas__wash,
  [data-topics-bg="reactive"] .topics-canvas__wash {
    background: rgba(8, 10, 10, 0.66);
  }

  [data-topics-bg="abstract"] .topics-canvas__wash {
    background: rgba(8, 10, 10, 0.52);
  }

  .topics-abstract__orbit {
    top: 28%;
    right: -2rem;
    width: min(58vw, 18rem);
  }

  .quiz-feed {
    border: 0;
  }

  .summary-view__veil {
    background: rgba(8, 10, 10, 0.66);
  }

  .summary-view__art {
    object-position: 62% center;
  }
}

@media (max-width: 599px) {
  .home-actions,
  .summary-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .home-actions {
    gap: 0.8rem;
    margin-top: 1.3rem;
  }

  .home-footer p {
    display: none;
  }

  .home-footer {
    justify-content: flex-start;
  }

  .topics-view .step-label {
    display: none;
  }

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

  .format-card__header {
    min-height: 8.5rem;
  }

  .format-card__heading h3 {
    font-size: 2.25rem;
  }

  .topic-row__copy strong {
    font-size: 1.32rem;
  }

  .topic-group__header {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.45rem;
    padding: 0.7rem 0;
  }

  .topic-group__header p {
    padding-left: 1.85rem;
  }

  .question-card__content {
    padding-inline: 1rem;
  }

  .question-card__index {
    right: 1rem;
    font-size: 3.3rem;
  }

  .summary-content {
    align-self: end;
    padding-bottom: 4.5rem;
  }

  .summary-score {
    margin-block: 0 -0.4rem;
  }

  .summary-score strong {
    font-size: clamp(7.2rem, 37vw, 10rem);
  }

  .summary-caption {
    justify-self: start;
  }
}

@media (max-height: 720px) {
  .home-copy h1 {
    font-size: clamp(2.7rem, 10vh, 4.3rem);
  }

  .home-copy__lede {
    display: none;
  }

  .home-actions {
    margin-top: 1rem;
  }

  .topics-layout {
    gap: 1rem;
    margin-top: 1rem;
  }

  .topics-intro h2 {
    margin-bottom: 0.65rem;
    font-size: clamp(2.25rem, 8vh, 3.6rem);
  }

  .topic-list {
    gap: 0.55rem;
  }

  .format-card__header {
    min-height: 7.2rem;
  }

  .topic-group__header {
    min-height: 2.15rem;
  }

  .topic-row {
    min-height: 3.25rem;
    padding-block: 0.35rem;
  }

  .topic-row__copy {
    gap: 0.12rem;
  }

  .topic-row__copy strong {
    font-size: clamp(1rem, 3.2vh, 1.3rem);
  }

  .question-card__content {
    padding-top: 6rem;
  }

  .question-card h2 {
    margin-bottom: 0.7rem;
    font-size: clamp(1.55rem, 4.2vh, 2.05rem);
  }

  .choice-button {
    min-height: 2.85rem;
  }

  .visual-clue {
    width: 4.5rem;
    height: 4.5rem;
    margin-bottom: 0.65rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .question-card__flipper,
  .question-card.is-answered .question-card__flipper {
    transform: none !important;
  }

  .feedback-panel {
    transform: none !important;
  }

  .question-card.is-answered .question-card__front {
    visibility: hidden;
    transition: none !important;
  }
}

/* Account controls */

.account-button {
  display: inline-flex;
  min-height: 2.6rem;
  align-items: center;
  gap: 0.7rem;
  padding: 0.55rem 0.75rem 0.55rem 0.9rem;
  border: 1px solid var(--line);
  background: rgba(8, 10, 10, 0.32);
  color: var(--paper);
  cursor: pointer;
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  backdrop-filter: blur(14px);
  transition: border-color 180ms ease, background 180ms ease;
}

.account-button:hover,
.account-button:focus-visible {
  border-color: var(--signal);
  background: rgba(8, 10, 10, 0.7);
}

.account-button__dot {
  width: 0.48rem;
  height: 0.48rem;
  border: 1px solid var(--paper-muted);
  border-radius: 50%;
}

.account-button.is-connected .account-button__dot {
  border-color: var(--signal);
  background: var(--signal);
  box-shadow: 0 0 0 0.2rem rgba(215, 255, 79, 0.12);
}

.home-actions {
  flex-wrap: wrap;
}

.home-actions .review-button {
  min-width: 12rem;
}

.sync-status {
  position: fixed;
  z-index: 100;
  right: 1rem;
  bottom: max(1rem, env(safe-area-inset-bottom));
  max-width: min(26rem, calc(100% - 2rem));
  margin: 0;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--line);
  background: rgba(17, 20, 19, 0.96);
  color: var(--paper);
  box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.42);
  font-size: 0.72rem;
  line-height: 1.4;
  backdrop-filter: blur(18px);
}

.sync-status[data-tone="pending"] {
  border-color: rgba(215, 255, 79, 0.55);
}

.sync-status[data-tone="success"] {
  border-color: var(--success);
}

.sync-status[data-tone="error"] {
  border-color: var(--danger);
}

/* Profile */

.profile-view {
  min-height: 100dvh;
  padding: 1.3rem var(--page-pad) 4rem;
  overflow-x: hidden;
  overflow-y: auto;
  background: var(--ink);
}

.profile-view::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  background: transparent;
  content: "";
  mask-image: none;
}

.profile-header {
  position: sticky;
  top: 0;
  background: var(--ink);
}

.profile-layout {
  display: grid;
  width: min(100%, 72rem);
  margin: clamp(3rem, 8vh, 6rem) auto 0;
}

.profile-heading h2 {
  margin: 0.65rem 0 0.5rem;
  font-family: "Syne", sans-serif;
  font-size: clamp(3.6rem, 8vw, 7rem);
  font-weight: 600;
  letter-spacing: -0.075em;
  line-height: 0.9;
}

.profile-heading > p:last-child {
  margin: 0;
  color: var(--paper-muted);
  font-size: 0.78rem;
}

.profile-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: clamp(2.5rem, 6vh, 5rem);
  border-block: 1px solid var(--line);
}

.profile-stats article {
  display: grid;
  min-height: 9rem;
  align-content: center;
  gap: 0.45rem;
  padding: 1.25rem clamp(1rem, 3vw, 2.5rem);
  border-right: 1px solid var(--line);
}

.profile-stats article:last-child {
  border-right: 0;
}

.profile-stats strong {
  color: var(--signal);
  font-family: "Syne", sans-serif;
  font-size: clamp(2.4rem, 5vw, 4.5rem);
  font-weight: 600;
  letter-spacing: -0.07em;
  line-height: 1;
}

.profile-stats span {
  color: var(--paper-muted);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.profile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.mistakes-panel {
  margin-top: clamp(3rem, 8vh, 6rem);
}

.mistakes-panel__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

.mistakes-panel__header h3 {
  margin: 0;
  font-family: "Syne", sans-serif;
  font-size: clamp(1.55rem, 3vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -0.05em;
}

.mistakes-panel__header span {
  color: var(--signal);
  font-family: "Syne", sans-serif;
  font-size: 1rem;
}

.mistakes-list {
  display: grid;
}

.mistakes-empty {
  margin: 0;
  padding: 2rem 0;
  color: var(--paper-muted);
  font-size: 0.8rem;
}

.mistake-row {
  display: grid;
  grid-template-columns: 4.2rem minmax(0, 1fr) 3rem;
  align-items: center;
  gap: 1rem;
  min-height: 5.4rem;
  border-bottom: 1px solid var(--line);
}

.mistake-row img {
  width: 4.2rem;
  height: 4.2rem;
  object-fit: cover;
  filter: saturate(0.75);
}

.mistake-row div {
  display: grid;
  gap: 0.32rem;
  min-width: 0;
}

.mistake-row span {
  color: var(--paper-muted);
  font-size: 0.55rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.mistake-row strong {
  overflow: hidden;
  font-size: 0.8rem;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mistake-row small {
  justify-self: end;
  color: var(--signal);
  font-family: "Syne", sans-serif;
  font-size: 0.8rem;
}

/* Global navigation */

.home-header__actions,
.view-header__actions {
  display: flex;
  align-items: center;
  gap: clamp(0.85rem, 2vw, 1.5rem);
}

.header-link {
  position: relative;
  padding-block: 0.45rem;
  color: var(--paper-muted);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 180ms ease;
}

.header-link::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: var(--signal);
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 240ms var(--ease-out);
}

.header-link:hover,
.header-link:focus-visible,
.header-link.is-current {
  color: var(--paper);
}

.header-link:hover::after,
.header-link:focus-visible::after,
.header-link.is-current::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* Champion wiki */

.champions-view {
  padding: 1.3rem var(--page-pad) 0;
  overflow: hidden;
  background: var(--ink);
}

.champions-view::before,
.champion-dossier::before {
  content: none;
  display: none;
}

.wiki-header {
  z-index: 20;
}

.champions-layout {
  display: grid;
  grid-template-columns: minmax(17rem, 22rem) minmax(0, 1fr);
  gap: clamp(2.5rem, 5vw, 6rem);
  width: min(100%, 96rem);
  height: calc(100dvh - 5.3rem);
  margin: 1rem auto 0;
  min-height: 0;
}

.champions-intro {
  display: flex;
  min-height: 0;
  flex-direction: column;
  justify-content: space-between;
  gap: 3rem;
  padding: clamp(2rem, 5vh, 4.5rem) 0 3rem;
  overflow-y: auto;
  scrollbar-width: none;
}

.champions-intro::-webkit-scrollbar,
.champion-results::-webkit-scrollbar,
.champion-dossier::-webkit-scrollbar {
  display: none;
}

.champions-intro h1 {
  margin: 0.9rem 0 1.3rem;
  font-family: "Syne", sans-serif;
  font-size: clamp(3.7rem, 5.2vw, 4.5rem);
  font-weight: 600;
  letter-spacing: -0.075em;
  line-height: 0.86;
}

.champions-intro h1 em {
  color: var(--signal);
  font-style: normal;
}

#champions-title:focus,
#champion-detail-title:focus {
  outline: 0;
}

.champions-intro > div:first-child > p:last-child {
  max-width: 24rem;
  margin: 0;
  color: var(--paper-muted);
  font-size: 0.8rem;
  line-height: 1.6;
}

.champion-tools {
  display: grid;
  gap: 1.25rem;
}

.champion-search {
  display: grid;
  gap: 0.45rem;
}

.champion-search > span {
  color: var(--paper-muted);
  font-size: 0.56rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.champion-search input {
  width: 100%;
  height: 3.4rem;
  padding: 0 0.9rem;
  border: 1px solid var(--line);
  border-radius: 0;
  outline: 0;
  background: rgba(8, 10, 10, 0.58);
  color: var(--paper);
  font: inherit;
  font-size: 0.82rem;
  appearance: none;
}

.champion-search input:focus {
  border-color: var(--signal);
  box-shadow: inset 3px 0 0 var(--signal);
}

.champion-search input::placeholder {
  color: rgba(243, 240, 232, 0.38);
}

.champion-role-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.champion-role-filters button {
  min-height: 1.85rem;
  padding: 0.3rem 0.58rem;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--paper-muted);
  cursor: pointer;
  font-size: 0.53rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.champion-role-filters button:hover,
.champion-role-filters button:focus-visible {
  border-color: var(--paper);
  color: var(--paper);
}

.champion-role-filters button.is-active {
  border-color: var(--signal);
  background: var(--signal);
  color: var(--ink);
}

.champion-results {
  min-width: 0;
  min-height: 0;
  padding: clamp(1.5rem, 3vh, 2.7rem) 0 4rem;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
}

.champion-results__header {
  position: sticky;
  z-index: 4;
  top: -2.7rem;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
  background: var(--ink);
}

.champion-results__header h2 {
  margin: 0;
  font-family: "Syne", sans-serif;
  font-size: clamp(1.7rem, 2.6vw, 2.6rem);
  font-weight: 600;
  letter-spacing: -0.055em;
}

.champion-results__header p {
  margin: 0;
  color: var(--paper-muted);
  font-size: 0.58rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.champion-roster {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(10.5rem, 1fr));
  gap: 1px;
  padding: 1px;
  background: var(--line);
}

.champion-card {
  position: relative;
  display: grid;
  min-width: 0;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  background: #0d100f;
  color: var(--paper);
  text-decoration: none;
}

.champion-card::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 3px;
  background: var(--signal);
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 280ms var(--ease-out);
}

.champion-card figure {
  position: relative;
  aspect-ratio: 1;
  margin: 0;
  overflow: hidden;
  background: var(--ink-soft);
}

.champion-card figure::after {
  content: none;
  display: none;
}

.champion-card figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: none;
  transition: transform 520ms var(--ease-out);
}

.champion-card figure > span {
  position: absolute;
  z-index: 2;
  right: 0.65rem;
  bottom: 0.55rem;
  color: rgba(243, 240, 232, 0.62);
  font-family: "Syne", sans-serif;
  font-size: 0.58rem;
  letter-spacing: 0.08em;
}

.champion-card__copy {
  min-width: 0;
  padding: 0.9rem 0.85rem 1.05rem;
}

.champion-card__copy small {
  display: block;
  overflow: hidden;
  color: var(--signal);
  font-size: 0.48rem;
  letter-spacing: 0.11em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.champion-card__copy h3 {
  margin: 0.38rem 0 0.16rem;
  overflow: hidden;
  font-family: "Syne", sans-serif;
  font-size: clamp(1.1rem, 1.5vw, 1.42rem);
  font-weight: 600;
  letter-spacing: -0.045em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.champion-card__copy p {
  margin: 0;
  overflow: hidden;
  color: var(--paper-muted);
  font-size: 0.65rem;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.champion-card:hover::after,
.champion-card:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.champion-card:hover figure img,
.champion-card:focus-visible figure img {
  filter: none;
  transform: scale(1.055);
}

.champion-empty {
  margin: 0;
  padding: clamp(4rem, 14vh, 9rem) 1rem;
  border-block: 1px solid var(--line);
  color: var(--paper-muted);
  font-family: "Syne", sans-serif;
  font-size: clamp(1.5rem, 3vw, 2.7rem);
  letter-spacing: -0.045em;
  text-align: center;
}

.champion-view {
  overflow: hidden;
}

.champion-view__header {
  position: fixed;
  z-index: 20;
  top: 1.3rem;
  right: var(--page-pad);
  left: var(--page-pad);
}

.champion-detail {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(29rem, 0.92fr);
  width: 100%;
  height: 100dvh;
  min-height: 0;
}

.champion-detail__visual {
  position: relative;
  min-width: 0;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: var(--ink-soft);
}

.champion-detail__visual > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.champion-detail__veil {
  display: none;
  background: transparent;
}

.champion-detail__visual figcaption {
  position: absolute;
  z-index: 2;
  right: clamp(1.5rem, 4vw, 4rem);
  bottom: clamp(2rem, 6vh, 5rem);
  left: clamp(1.5rem, 4vw, 4rem);
  display: grid;
  gap: 0.45rem;
}

.champion-detail__visual figcaption span {
  color: var(--signal);
  font-size: 0.58rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.champion-detail__visual figcaption strong {
  font-family: "Syne", sans-serif;
  font-size: clamp(4rem, 8vw, 9rem);
  font-weight: 600;
  letter-spacing: -0.09em;
  line-height: 0.78;
}

.champion-dossier {
  position: relative;
  min-width: 0;
  min-height: 0;
  padding: clamp(6.5rem, 11vh, 8.5rem) clamp(2rem, 4.5vw, 5rem) 4rem;
  overflow-y: auto;
  background: var(--ink);
  overscroll-behavior: contain;
  scrollbar-width: none;
}

.champion-dossier__heading h1 {
  margin: 0.75rem 0 0;
  font-family: "Syne", sans-serif;
  font-size: clamp(3.6rem, 6vw, 6.8rem);
  font-weight: 600;
  letter-spacing: -0.08em;
  line-height: 0.84;
}

.champion-dossier__title {
  margin: 0.7rem 0 1.6rem;
  color: var(--signal);
  font-family: "Syne", sans-serif;
  font-size: clamp(1rem, 1.6vw, 1.35rem);
  letter-spacing: -0.025em;
  text-transform: capitalize;
}

.champion-dossier dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
  border-block: 1px solid var(--line);
}

.champion-dossier dl > div {
  display: grid;
  gap: 0.3rem;
  padding: 0.9rem 0;
}

.champion-dossier dt {
  color: var(--paper-muted);
  font-size: 0.52rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.champion-dossier dd {
  margin: 0;
  font-size: 0.78rem;
}

.champion-dossier__blurb {
  margin: 1.5rem 0 0;
  color: var(--paper-muted);
  font-size: 0.82rem;
  line-height: 1.68;
}

.ability-list {
  margin-top: clamp(3rem, 7vh, 5rem);
}

.ability-list__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-bottom: 1rem;
}

.ability-list__header h2 {
  margin: 0;
  font-family: "Syne", sans-serif;
  font-size: clamp(1.7rem, 3vw, 2.65rem);
  font-weight: 600;
  letter-spacing: -0.055em;
}

.ability-list__header > span {
  color: var(--paper-muted);
  font-size: 0.52rem;
  letter-spacing: 0.14em;
}

.ability-row {
  display: grid;
  grid-template-columns: 4rem minmax(0, 1fr);
  gap: 1rem;
  padding: 1.15rem 0;
  border-top: 1px solid var(--line);
}

.ability-row__icon {
  position: relative;
  width: 4rem;
  height: 4rem;
  border: 1px solid var(--line);
  background: var(--ink-soft);
}

.ability-row__icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ability-row__icon > span {
  position: absolute;
  right: -1px;
  bottom: -1px;
  display: grid;
  width: 1.35rem;
  height: 1.35rem;
  border: 1px solid var(--signal);
  background: var(--ink);
  place-items: center;
  color: var(--signal);
  font-size: 0.52rem;
  font-weight: 700;
}

.ability-row__copy h3 {
  display: flex;
  align-items: baseline;
  gap: 0.55rem;
  margin: 0.05rem 0 0.35rem;
  font-family: "Syne", sans-serif;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.025em;
}

.ability-row__copy h3 span {
  color: var(--signal);
  font-size: 0.56rem;
  letter-spacing: 0.08em;
}

.ability-row__copy p {
  margin: 0;
  color: var(--paper-muted);
  font-size: 0.72rem;
  line-height: 1.58;
}

.riot-source {
  display: inline-block;
  margin-top: 1.5rem;
  color: var(--signal);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-underline-offset: 0.3rem;
  text-transform: uppercase;
}

/* Authentication */

.auth-dialog {
  width: min(calc(100% - 2rem), 36rem);
  max-height: calc(100dvh - 2rem);
  padding: 0;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 0;
  background: #0f1211;
  color: var(--paper);
  box-shadow: 0 2rem 8rem rgba(0, 0, 0, 0.72);
}

.auth-dialog::backdrop {
  background: rgba(4, 5, 5, 0.82);
  backdrop-filter: blur(12px);
}

.auth-dialog__panel {
  position: relative;
  padding: clamp(1.5rem, 6vw, 3.25rem);
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: 3rem;
  border-bottom: 1px solid var(--line);
}

.auth-tab {
  min-height: 2.8rem;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--paper-muted);
  cursor: pointer;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.auth-tab.is-active {
  border-color: var(--signal);
  color: var(--paper);
}

.auth-dialog h2 {
  margin: 2rem 0 1.5rem;
  font-family: "Syne", sans-serif;
  font-size: clamp(2.6rem, 8vw, 4.7rem);
  font-weight: 600;
  letter-spacing: -0.07em;
  line-height: 0.92;
}

.auth-config-message,
.auth-status {
  margin: 0 0 1.2rem;
  color: var(--paper-muted);
  font-size: 0.76rem;
  line-height: 1.5;
}

.auth-config-message {
  padding: 0.85rem;
  border-left: 2px solid var(--signal);
  background: rgba(215, 255, 79, 0.06);
}

.auth-form {
  display: grid;
  gap: 1rem;
}

.auth-form label {
  display: grid;
  gap: 0.45rem;
}

.auth-form label > span {
  color: var(--paper-muted);
  font-size: 0.6rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.auth-form input {
  width: 100%;
  min-height: 3.3rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--ink);
  color: var(--paper);
  font: inherit;
}

.auth-form input:focus {
  border-color: var(--signal);
  outline: 0;
}

.auth-form .button {
  width: 100%;
  margin-top: 0.5rem;
}

.auth-reset {
  margin-top: 1.25rem;
}

.auth-status {
  min-height: 1.2rem;
  margin-top: 1rem;
  color: var(--paper);
}

@media (max-width: 699px) {
  .account-button {
    max-width: 11rem;
  }

  #account-button-label {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .profile-view {
    padding-top: max(1.1rem, env(safe-area-inset-top));
  }

  .profile-layout {
    margin-top: 2.5rem;
  }

  .profile-stats {
    grid-template-columns: 1fr;
  }

  .profile-stats article {
    min-height: 6.3rem;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .profile-stats article:last-child {
    border-bottom: 0;
  }

  .profile-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .mistake-row {
    grid-template-columns: 3.35rem minmax(0, 1fr) 2.4rem;
    gap: 0.75rem;
  }

  .mistake-row img {
    width: 3.35rem;
    height: 3.35rem;
  }

  .sync-status {
    right: 0.75rem;
    bottom: max(0.75rem, env(safe-area-inset-bottom));
  }
}

@media (max-width: 599px) {
  .home-actions .review-button,
  .summary-actions .review-button {
    width: 100%;
  }

  .summary-content {
    padding-bottom: 2rem;
  }

  .auth-dialog {
    width: calc(100% - 1rem);
    max-height: calc(100dvh - 1rem);
  }
}

@media (max-width: 899px) {
  .champions-view {
    padding-top: max(1.1rem, env(safe-area-inset-top));
    padding-bottom: max(2rem, env(safe-area-inset-bottom));
    overflow-x: hidden;
    overflow-y: auto;
  }

  .champions-layout {
    display: block;
    height: auto;
    margin-top: 1.5rem;
  }

  .champions-intro {
    gap: 2.2rem;
    padding: 2rem 0 2.5rem;
    overflow: visible;
  }

  .champions-intro h1 {
    font-size: clamp(3.4rem, 12vw, 5.8rem);
  }

  .champion-results {
    padding: 0 0 3rem;
    overflow: visible;
  }

  .champion-results__header {
    top: 0;
    padding-top: 0.85rem;
  }

  .champion-roster {
    grid-template-columns: repeat(auto-fill, minmax(9.6rem, 1fr));
  }

  .champion-view {
    overflow-x: hidden;
    overflow-y: auto;
  }

  .champion-view__header {
    top: max(1.1rem, env(safe-area-inset-top));
  }

  .champion-detail {
    display: block;
    height: auto;
    min-height: 100dvh;
  }

  .champion-detail__visual {
    width: 100%;
    height: clamp(21rem, 48dvh, 32rem);
  }

  .champion-detail__veil {
    background: transparent;
  }

  .champion-detail__visual figcaption {
    bottom: 2rem;
  }

  .champion-detail__visual figcaption strong {
    font-size: clamp(3.6rem, 14vw, 7rem);
    line-height: 0.84;
  }

  .champion-dossier {
    padding: 2.8rem var(--page-pad) 4rem;
    overflow: visible;
  }

  .champion-dossier__heading h1 {
    font-size: clamp(3.4rem, 12vw, 5.7rem);
  }

  .ability-list {
    margin-top: 3.2rem;
  }
}

@media (max-width: 599px) {
  .home-header__actions,
  .view-header__actions {
    gap: 0.7rem;
  }

  .header-link {
    font-size: 0.54rem;
  }

  .home-header__actions .account-button {
    padding-inline: 0.65rem;
  }

  .champions-intro h1 {
    font-size: clamp(3.2rem, 16vw, 4.6rem);
  }

  .champion-role-filters {
    flex-wrap: nowrap;
    padding-bottom: 0.3rem;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .champion-role-filters::-webkit-scrollbar {
    display: none;
  }

  .champion-role-filters button {
    flex: 0 0 auto;
  }

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

  .champion-card__copy {
    padding: 0.75rem 0.68rem 0.9rem;
  }

  .champion-card__copy h3 {
    font-size: 1.05rem;
  }

  .champion-detail__visual figcaption {
    right: 1.25rem;
    left: 1.25rem;
  }

  .champion-detail__visual figcaption strong {
    font-size: clamp(3.1rem, 16vw, 5.2rem);
  }

  .champion-dossier dl {
    grid-template-columns: 1fr;
  }

  .champion-dossier dl > div + div {
    border-top: 1px solid var(--line);
  }

  .ability-row {
    grid-template-columns: 3.35rem minmax(0, 1fr);
    gap: 0.8rem;
  }

  .ability-row__icon {
    width: 3.35rem;
    height: 3.35rem;
  }

  .ability-row__copy h3 {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.15rem;
  }
}

/* Compact desktop workspace: the app can be narrower than a conventional
   desktop viewport when the Codex sidebar is open. */

@media (min-width: 600px) and (max-width: 1199px) and (min-aspect-ratio: 9/10) and (hover: hover) and (pointer: fine) {
  .champions-view {
    padding: 0.8rem 1rem 0;
    overflow: hidden;
  }

  .champions-layout {
    display: grid;
    grid-template-columns: clamp(11.5rem, 25vw, 14rem) minmax(0, 1fr);
    gap: 1rem;
    width: 100%;
    height: calc(100dvh - 4.5rem);
    margin-top: 0.7rem;
    min-width: 0;
  }

  .champions-intro {
    min-width: 0;
    justify-content: flex-start;
    gap: 0.9rem;
    padding: 0.75rem 0 1.25rem;
    overflow-x: hidden;
    overflow-y: auto;
  }

  .champions-intro h1 {
    max-width: 100%;
    margin-block: 0.45rem 0.65rem;
    font-size: clamp(2rem, 4.6vw, 2.6rem);
    letter-spacing: -0.065em;
    line-height: 0.88;
  }

  .champions-intro > div:first-child > p:last-child {
    max-width: 100%;
    font-size: 0.66rem;
    line-height: 1.45;
  }

  .champion-tools {
    gap: 0.65rem;
  }

  .champion-search {
    gap: 0.35rem;
  }

  .champion-search input {
    height: 2.65rem;
    padding-inline: 0.7rem;
    font-size: 0.72rem;
  }

  .champion-role-filters {
    flex-wrap: wrap;
    gap: 0.3rem;
    padding: 0;
    overflow: visible;
  }

  .champion-role-filters button {
    min-height: 1.65rem;
    padding: 0.24rem 0.45rem;
    font-size: 0.48rem;
  }

  .champion-results {
    min-width: 0;
    padding: 0.4rem 0 2rem;
    overflow-y: auto;
  }

  .champion-results__header {
    top: -0.4rem;
    margin-bottom: 0.75rem;
    padding: 0.65rem 0;
  }

  .champion-results__header h2 {
    font-size: clamp(1.45rem, 3vw, 2rem);
  }

  .champion-roster {
    grid-template-columns: repeat(auto-fill, minmax(7.2rem, 1fr));
  }

  .champion-view {
    overflow: hidden;
  }

  .champion-view__header {
    top: 0.8rem;
    right: 1rem;
    left: 1rem;
  }

  .champion-detail {
    display: grid;
    grid-template-columns: minmax(0, 42%) minmax(0, 58%);
    height: 100dvh;
    min-height: 0;
  }

  .champion-detail__visual {
    height: 100%;
  }

  .champion-detail__visual figcaption {
    right: 1.1rem;
    bottom: 1.25rem;
    left: 1.1rem;
  }

  .champion-detail__visual figcaption strong {
    font-size: clamp(2.45rem, 6vw, 4.5rem);
  }

  .champion-dossier {
    padding: 4.4rem clamp(1rem, 2vw, 1.5rem) 2.5rem;
    overflow-y: auto;
  }

  .champion-dossier__heading h1 {
    font-size: clamp(2.3rem, 5vw, 3.5rem);
  }

  .champion-dossier__title {
    margin-bottom: 1rem;
  }

  .champion-dossier__blurb {
    margin-top: 1.1rem;
    font-size: 0.72rem;
    line-height: 1.55;
  }

  .ability-list {
    margin-top: 2.2rem;
  }

  .ability-row {
    grid-template-columns: 3.2rem minmax(0, 1fr);
    gap: 0.75rem;
    padding: 0.9rem 0;
  }

  .ability-row__icon {
    width: 3.2rem;
    height: 3.2rem;
  }

  .ability-row__copy p {
    font-size: 0.68rem;
    line-height: 1.5;
  }
}

/* Permanent adaptive quiz layout. Compact desktop panes use a 58/42 reading/art split;
   large landscape screens switch to the cinematic reading plane. */

@media (min-width: 600px) and (max-width: 1199px) and (min-aspect-ratio: 9/10) and (hover: hover) and (pointer: fine) {
  .quiz-view {
    overflow: clip;
  }

  .quiz-header {
    top: 0;
    left: 0;
    width: 100%;
    padding: max(0.8rem, env(safe-area-inset-top)) 0.85rem 0;
    transform: none;
  }

  .quiz-feed {
    width: 100vw;
    max-width: none;
    height: 100vh;
    height: 100dvh;
    margin: 0;
    border: 0;
  }

  .question-card {
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    min-height: 0;
    background: var(--ink);
  }

  .question-card__art {
    right: 0;
    left: auto;
    width: 42%;
  }

  .question-card__overlay {
    background: rgba(8, 10, 10, 0.46);
  }

  .question-card::after {
    position: absolute;
    z-index: 1;
    top: 0;
    bottom: 0;
    right: 42%;
    left: auto;
    width: 1px;
    background: rgba(243, 240, 232, 0.14);
    content: "";
  }

  .question-card__content {
    top: 50%;
    right: calc(42% + clamp(0.9rem, 2vw, 1.5rem));
    bottom: auto;
    left: clamp(0.9rem, 2vw, 1.5rem);
    width: auto;
    max-height: calc(100dvh - 4.8rem);
    padding: 0.15rem 0.15rem 0.75rem;
    overflow-y: auto;
    transform: translateY(-48%);
    scrollbar-width: none;
  }

  .question-card__flipper {
    min-height: min(32rem, calc(100dvh - 6rem));
  }

  .question-card__front {
    justify-content: center;
    padding: clamp(0.75rem, 1.5vw, 1rem);
    border: 1px solid rgba(243, 240, 232, 0.14);
    background: rgba(8, 10, 10, 0.74);
    box-shadow: 0 1.5rem 4rem rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(18px);
  }

  .question-card h2 {
    max-width: 17ch;
    margin-bottom: 0.75rem;
    font-size: clamp(1.45rem, 3.5vw, 2.25rem);
    line-height: 0.99;
  }

  .question-meta {
    gap: 0.4rem;
    margin-bottom: 0.55rem;
  }

  .question-meta span {
    min-height: 1.35rem;
    padding-inline: 0.45rem;
    font-size: 0.49rem;
  }

  .choice-list {
    gap: 0.35rem;
  }

  .choice-button {
    min-height: clamp(2.55rem, 6vh, 2.85rem);
    padding: 0.25rem 0.55rem 0.25rem 0.35rem;
    background: rgba(8, 10, 10, 0.76);
  }

  .choice-button__key {
    width: 1.55rem;
    height: 1.55rem;
  }

  .choice-button__text {
    padding-inline: 0.35rem;
    font-size: clamp(0.66rem, 1.25vw, 0.76rem);
  }

  .visual-clue {
    width: clamp(3.4rem, 7vw, 4.2rem);
    height: clamp(3.4rem, 7vw, 4.2rem);
    margin-bottom: 0.65rem;
    padding: 0.35rem;
  }

  .feedback-panel__detail p,
  .feedback-panel__supplement p,
  .feedback-panel__stats {
    font-size: clamp(0.64rem, 1.1vw, 0.72rem);
  }

  .question-card__index {
    top: auto;
    right: 3.5rem;
    bottom: 1rem;
    left: auto;
    font-size: clamp(3.5rem, 7vw, 4.5rem);
  }

  .progress-rail {
    top: 50%;
    right: 0.55rem;
    left: auto;
    display: grid;
    width: 2.35rem;
    transform: translateY(-50%);
  }

  .progress-rail > span,
  .progress-rail > small {
    display: none;
  }

  .progress-markers {
    gap: 0.24rem;
  }

  .progress-marker {
    grid-template-columns: 1fr 0.8rem;
    gap: 0.25rem;
    height: 0.45rem;
  }

  .progress-marker span {
    font-size: 0.42rem;
  }
}

@media (min-width: 1200px) and (orientation: landscape) and (hover: hover) and (pointer: fine) {
  .quiz-view {
    overflow: clip;
  }

  .quiz-header {
    top: 0;
    left: 0;
    width: 100%;
    padding: max(1.15rem, env(safe-area-inset-top)) clamp(1.5rem, 2.6vw, 3.25rem) 0;
    transform: none;
  }

  .quiz-feed {
    width: 100vw;
    max-width: none;
    height: 100vh;
    height: 100dvh;
    margin: 0;
    border: 0;
  }

  .question-card {
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    min-height: 0;
  }

  .question-card__overlay {
    background: rgba(8, 10, 10, 0.5);
  }

  .question-card__content {
    top: 50%;
    right: auto;
    bottom: auto;
    left: clamp(9rem, 10.5vw, 12.5rem);
    width: min(39vw, 37rem);
    max-height: calc(100dvh - 7rem);
    padding: 0;
    overflow-y: auto;
    border: 0;
    background: transparent;
    box-shadow: none;
    transform: translateY(-47%);
    backdrop-filter: none;
    scrollbar-width: none;
  }

  .question-card__flipper {
    min-height: min(42rem, calc(100dvh - 7rem));
  }

  .question-card__front,
  .feedback-panel {
    padding: clamp(1.15rem, 1.8vw, 2rem);
    border: 1px solid rgba(243, 240, 232, 0.14);
    box-shadow: 0 2rem 6rem rgba(0, 0, 0, 0.38);
  }

  .question-card__front {
    justify-content: center;
    background: rgba(8, 10, 10, 0.62);
    backdrop-filter: blur(22px);
  }

  .feedback-panel {
    background: var(--ink);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .question-card h2 {
    max-width: 14ch;
    margin-bottom: clamp(0.9rem, 1.6vh, 1.35rem);
    font-size: clamp(2.2rem, 3.1vw, 4rem);
    line-height: 0.98;
  }

  .question-meta {
    margin-bottom: 0.8rem;
  }

  .choice-list {
    gap: clamp(0.4rem, 0.7vh, 0.65rem);
  }

  .choice-button {
    min-height: clamp(3.1rem, 5.5vh, 3.85rem);
    padding-right: 1rem;
    background: rgba(8, 10, 10, 0.7);
  }

  .choice-button__text {
    font-size: clamp(0.76rem, 0.8vw, 0.88rem);
  }

  .visual-clue {
    width: clamp(4.4rem, 5.5vw, 5.8rem);
    height: clamp(4.4rem, 5.5vw, 5.8rem);
    margin-bottom: 1rem;
  }

  .feedback-panel__detail p,
  .feedback-panel__supplement p,
  .feedback-panel__stats {
    font-size: clamp(0.72rem, 0.76vw, 0.83rem);
  }

  .question-card__index {
    top: auto;
    right: clamp(1.5rem, 4vw, 5rem);
    bottom: clamp(1.5rem, 3vh, 2.5rem);
    left: auto;
    color: rgba(243, 240, 232, 0.28);
    font-size: clamp(6rem, 10vw, 11rem);
  }

  .progress-rail {
    top: 50%;
    right: clamp(1.5rem, 2.7vw, 3.25rem);
    left: auto;
    display: grid;
    width: clamp(6.5rem, 7vw, 8.5rem);
    transform: translateY(-50%);
  }

  .progress-markers {
    gap: clamp(0.32rem, 0.65vh, 0.5rem);
  }
}

/* Keep the expanded game menu in normal document flow. */
.topics-layout {
  grid-template-areas:
    "intro"
    "practice"
    "list"
    "competitive";
  padding-bottom: 5rem;
}

.topics-view {
  overflow-x: hidden;
  overflow-y: auto;
}

@media (max-width: 899px) {
  .topics-layout {
    grid-template-areas:
      "intro"
      "practice"
      "list"
      "competitive";
    padding-bottom: 1.5rem;
  }
}

@media (min-width: 600px) and (max-width: 1199px) and (min-aspect-ratio: 9/10) and (max-height: 760px) and (hover: hover) and (pointer: fine) {
  .question-card__content {
    max-height: calc(100dvh - 4.4rem);
    transform: translateY(-46%);
  }

  .question-card h2 {
    margin-bottom: 0.6rem;
    font-size: clamp(1.35rem, 3.2vw, 2rem);
  }

  .choice-button {
    min-height: 2.45rem;
  }

  .visual-clue {
    width: 3.35rem;
    height: 3.35rem;
    margin-bottom: 0.5rem;
  }
}

@media (min-width: 1200px) and (max-height: 760px) and (orientation: landscape) and (hover: hover) and (pointer: fine) {
  .question-card__content {
    max-height: calc(100dvh - 5.5rem);
    transform: translateY(-45%);
  }

  .question-card h2 {
    margin-bottom: 0.75rem;
    font-size: clamp(2rem, 2.8vw, 3.2rem);
  }

  .choice-button {
    min-height: 3rem;
  }

  .visual-clue {
    width: 4.2rem;
    height: 4.2rem;
    margin-bottom: 0.65rem;
  }
}

@media (hover: none), (pointer: coarse) {
  [data-topics-bg="reactive"] .topics-reactive__strips {
    display: block;
    background-position: 64% 24%;
    opacity: 0.42 !important;
  }

  [data-topics-bg="reactive"] .topics-reactive__focus {
    display: none;
  }

}

/* Splash Art is a centered, self-contained guessing surface on every viewport. */

.question-card--splash::after {
  background: none;
  content: none;
}

@media (min-width: 600px) and (max-width: 1199px) and (min-aspect-ratio: 9/10) and (hover: hover) and (pointer: fine) {
  .question-card--splash .question-card__art {
    inset: 0;
    width: 100%;
    height: 100%;
  }

  .question-card--splash .question-card__flipper {
    width: min(calc(100% - 6rem), 48rem);
  }
}

@media (min-width: 1200px) and (orientation: landscape) and (hover: hover) and (pointer: fine) {
  .question-card--splash .question-card__flipper {
    width: min(calc(100% - 15rem), 48rem);
  }
}

/* Voice Lines and Ability Icons keep their answer surfaces centered on desktop
   while the session progress and question index remain anchored to the right. */

@media (min-width: 600px) and (min-aspect-ratio: 9/10) and (hover: hover) and (pointer: fine) {
  .question-card--quote::after,
  .question-card--ability-icon::after {
    background: none;
    content: none;
  }

  .question-card--quote .question-card__art,
  .question-card--ability-icon .question-card__art {
    inset: 0;
    width: 100%;
    height: 100%;
  }

  .question-card--quote .question-card__content,
  .question-card--ability-icon .question-card__content {
    top: max(4.35rem, env(safe-area-inset-top));
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    width: auto;
    max-height: none;
    padding: clamp(0.75rem, 2vw, 1.4rem) clamp(1rem, 4vw, 2rem) max(0.25rem, env(safe-area-inset-bottom));
    overflow-y: auto;
    transform: none;
  }

  .question-card--quote .question-card__flipper,
  .question-card--ability-icon .question-card__flipper {
    width: min(calc(100% - 6rem), 37rem);
    min-height: min(42rem, calc(100dvh - 6rem));
    margin: auto;
  }
}

/* Touch UI: preserve the editorial layout while replacing desktop-only key
   hints with direct, tappable actions. */
@media (max-width: 599px), (hover: none), (pointer: coarse) {
  .keyboard-only {
    display: none !important;
  }

  .touch-only {
    display: inline !important;
  }

  #start-button .button__key.touch-only {
    display: grid !important;
  }

  .format-card__key.touch-only {
    display: inline-grid !important;
    place-items: center;
  }

  .feedback-panel__shortcut.touch-only {
    display: inline-flex !important;
  }

  button,
  a,
  input {
    touch-action: manipulation;
  }

  .icon-button--key {
    width: 3.5rem;
    font-size: 1.25rem;
    letter-spacing: 0;
  }

  .touch-back {
    transform: translateY(-0.06rem);
  }

  .header-link,
  .account-button {
    min-height: 2.75rem;
  }

  .champion-answer input,
  .champion-search input,
  .auth-dialog input {
    font-size: 16px;
  }

  .quiz-count {
    display: none;
  }

  .quiz-header .wordmark {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }

  .quiz-view .progress-rail {
    position: static;
    display: block;
    width: auto;
    transform: none;
  }

  .quiz-view .progress-rail > span,
  .quiz-view .progress-markers {
    display: none;
  }

  .quiz-view .quiz-space-hint {
    position: fixed;
    z-index: 32;
    top: max(1rem, env(safe-area-inset-top));
    right: 1rem;
    display: inline-flex;
    min-width: 3.5rem;
    min-height: 2.7rem;
    justify-content: center;
    padding: 0.55rem 0.72rem;
    border-color: rgba(243, 240, 232, 0.34);
    background: rgba(8, 10, 10, 0.82);
    font-size: 0.58rem;
  }

  .quiz-view .quiz-space-hint .keycap {
    display: none;
  }
}

@media (max-width: 599px) {
  .topics-layout {
    margin-top: 1.5rem;
  }

  .format-list {
    gap: 0.8rem;
  }

  .format-card .topic-row {
    min-height: 4.75rem;
  }

  .format-card__heading small {
    margin-bottom: 0.45rem;
  }
}

@media (max-width: 599px) and (max-height: 600px) {
  .question-card {
    min-height: 100dvh;
  }

  .question-card__content {
    padding-top: 4.25rem;
  }

  .question-card__flipper {
    min-height: 19rem;
  }

  .question-card--ability-icon .visual-clue {
    width: 5rem;
    height: 5rem;
    margin-bottom: 0.6rem;
  }

  .question-card h2 {
    margin-bottom: 0.6rem;
    font-size: 1.45rem;
  }

  .question-meta {
    margin-bottom: 0.5rem;
  }
}

@media (min-width: 1200px) and (orientation: landscape) and (hover: hover) and (pointer: fine) {
  .question-card--quote .question-card__flipper,
  .question-card--ability-icon .question-card__flipper {
    width: min(calc(100% - 15rem), 37rem);
  }
}
