:root {
  color-scheme: dark;
  --bg: #151515;
  --panel: #1d1d1d;
  --paper: #f3eee5;
  --muted: #b9b2a9;
  --red: #ff503d;
  --line: #3b3835;
  --mono: Consolas,'Courier New',monospace;
  --head: 'Impact','Arial Narrow','Franklin Gothic Heavy',system-ui,sans-serif;
  --body: system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--paper);
  font-family: var(--body);
  line-height: 1.55;
  overflow-wrap: anywhere;
}

button,select,input {
  font: inherit;
}

button,select {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  color: inherit;
}

button:disabled {
  cursor: default;
  opacity: .65;
}

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

h1,h2,p {
  margin: 0;
}

:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 5px;
}

[hidden] {
  display: none!important;
}

.frame {
  width: min(1172px,calc(100% - 88px));
  margin-inline: auto;
}

.site-header {
  border-bottom: 1px solid #292725;
}

.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--head);
  font-size: 23px;
  line-height: 1;
  letter-spacing: .035em;
  min-inline-size: 0;
}

.brand strong {
  color: var(--red);
  font-weight: inherit;
}

.brand img {
  flex: none;
}

.header-inner nav {
  display: flex;
  align-items: center;
  gap: 33px;
  font-size: 14px;
  font-weight: 650;
  color: var(--muted);
}

.header-inner nav a:hover,.footer a:hover {
  color: var(--red);
}

.header-inner nav a:first-child {
  color: var(--paper);
}

.language {
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line);
  min-height: 38px;
  padding: 0 8px 0 10px;
}

.language svg {
  width: 16px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
}

.language select {
  min-inline-size: 0;
  max-width: 118px;
  border: 0;
  background: var(--bg);
  color: var(--paper);
  font-size: 13px;
  padding: 4px;
}

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 422px;
  display: flex;
  align-items: center;
  margin-top: 28px;
  background: #201d1b;
  border: 1px solid #39332e;
}

.hero::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: '';
  background: linear-gradient(90deg,#151313 1%,#151313eb 25%,#15131399 46%,#15131316 74%);
}

.hero::after {
  position: absolute;
  inset: 0;
  z-index: -2;
  content: '';
  background: url('./assets/march.webp') center 43%/cover no-repeat;
  filter: grayscale(1) sepia(.20) contrast(1.13);
}

.hero-credit {
  text-align: right;
}

.hero-inner {
  padding: 39px 50px 43px;
  width: 100%;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--paper);
  margin-bottom: 16px;
}

.eyebrow span:first-child {
  width: 20px;
  height: 3px;
  background: var(--red);
}

.hero h1,.section-heading h2,.screen h1 {
  font-family: var(--head);
  font-weight: 850;
  text-transform: uppercase;
  line-height: 1.04;
  letter-spacing: .015em;
}

.hero h1 {
  font-size: clamp(47px,7.35vw,103px);
  max-width: 100%;
}

.hero h1 span,.hero h1 strong {
  display: block;
  overflow-wrap: anywhere;
}

.hero h1 strong {
  color: var(--red);
  font-weight: inherit;
}

.hero-text {
  max-width: 377px;
  color: #e7e0d4;
  font-size: 15px;
  margin-top: 19px;
  margin-bottom: 24px;
}

.button {
  min-height: 46px;
  display: inline-flex;
  max-inline-size: 100%;
  align-items: center;
  justify-content: center;
  gap: 21px;
  border: 1px solid var(--line);
  background: #242220;
  color: var(--paper);
  padding: 10px 17px;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .02em;
}

.button:hover {
  border-color: var(--red);
}

.primary {
  background: var(--red);
  color: #161311;
  border-color: var(--red);
}

.primary:hover {
  background: #ff7566;
}

.section-heading {
  display: flex;
  align-items: center;
  gap: 21px;
  margin: 31px 0 13px;
}

.section-heading h2 {
  font-size: 27px;
}

.section-heading>span {
  height: 1px;
  background: var(--line);
  flex: 1;
}

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

.mode-card,.topic-card {
  width: 100%;
  text-align: left;
  background: var(--panel);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  min-width: 0;
}

.mode-card {
  padding: 19px 20px;
  gap: 17px;
  min-height: 94px;
}

.mode-card:hover,.topic-card:hover {
  border-color: var(--red);
  background: #261e1c;
}

.duel-card {
  border-color: #72352e;
  background: #231c1b;
}

.mode-symbol {
  width: 46px;
  height: 46px;
  border: 1px solid #63382f;
  background: #30201d;
  color: var(--red);
  display: grid;
  place-items: center;
  flex: none;
}

.mode-symbol svg {
  width: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mode-copy {
  display: grid;
  gap: 3px;
  flex: 1;
  min-inline-size: 0;
}

.mode-copy strong,.topic-card strong {
  font-weight: 850;
  text-transform: uppercase;
  line-height: 1.13;
}

.mode-copy strong {
  font-size: 20px;
  letter-spacing: .015em;
}

.mode-copy span,.topic-card small,.muted {
  color: var(--muted);
  font-size: 13px;
}

.card-arrow {
  font-family: var(--mono);
  font-size: 19px;
  color: var(--red);
  flex: none;
}

.topic-grid {
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 11px;
}

.topic-card {
  padding: 12px 14px;
  gap: 12px;
  min-height: 68px;
}

.topic-card>span:nth-child(2) {
  display: grid;
  gap: 3px;
  flex: 1;
  min-inline-size: 0;
}

.topic-card strong {
  font-size: 13px;
  letter-spacing: .025em;
}

.topic-symbol {
  font-family: var(--mono);
  color: var(--red);
  width: 26px;
  text-align: center;
  font-size: 21px;
  flex: none;
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding-block: 17px 27px;
  margin-top: 32px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
}

.footer span {
  color: var(--paper);
  font-weight: 700;
  letter-spacing: .08em;
}

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

.skip:focus {
  position: fixed;
  z-index: 20;
  top: 10px;
  left: 10px;
  background: var(--paper);
  color: var(--bg);
  padding: 9px 12px;
}

.screen {
  width: min(760px,100%);
  margin: 44px auto 0;
  min-height: 55vh;
}

.screen h1 {
  font-size: clamp(33px,6vw,57px);
  margin: 12px 0 16px;
  overflow-wrap: anywhere;
}

.screen .back {
  display: inline-flex;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 13px;
  margin-bottom: 12px;
}

.screen .back:hover {
  color: var(--red);
}

.screen p+p {
  margin-top: 9px;
}

.screen .eyebrow {
  margin: 0;
  color: var(--red);
}

.screen-panel {
  border: 1px solid var(--line);
  background: var(--panel);
  padding: clamp(16px,4vw,32px);
  margin-top: 18px;
}

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

.choice {
  background: #261f1d;
  border: 1px solid #524741;
  min-height: 59px;
  text-align: left;
  padding: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.choice:hover:not(:disabled) {
  border-color: var(--red);
}

.choice kbd {
  border: 1px solid #655650;
  font-family: var(--mono);
  padding: 2px 6px;
  flex: none;
}

.choice.correct {
  border-color: #80c79c;
  background: #23392a;
  opacity: 1;
}

.choice.incorrect {
  border-color: var(--red);
  background: #492923;
  opacity: 1;
}

.question-picture {
  margin: 16px 0 0;
}

.question-picture img {
  width: 100%;
  max-height: 390px;
  object-fit: contain;
  background: #141414;
  border: 1px solid var(--line);
}

.hero-credit,.question-picture figcaption {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  margin-top: 5px;
}

.hero-credit a,.question-picture figcaption a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.progress {
  height: 4px;
  background: #393532;
  margin-top: 10px;
}

.progress span {
  display: block;
  height: 100%;
  background: var(--red);
}

.progress-label {
  display: flex;
  justify-content: space-between;
  gap: 9px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
}

.actions {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.facts {
  margin-top: 16px;
  min-inline-size: 0;
  max-inline-size: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  overflow-wrap: anywhere;
}

.facts summary {
  cursor: pointer;
  color: var(--paper);
  font-weight: 700;
}

.facts p {
  margin-top: 8px;
  color: var(--muted);
}

.facts a {
  display: inline-block;
  color: #ff8a7c;
  text-decoration: underline;
  margin-top: 8px;
}

.background-text {
  max-inline-size: 68ch;
  font-size: 1rem;
  line-height: 1.65;
}

.background-text p + p {
  margin-block-start: .85em;
}

.background-sources {
  display: flex;
  flex-wrap: wrap;
  gap: .25rem 1rem;
  margin-block-start: .4rem;
}

.background-sources a {
  max-inline-size: 100%;
}

.error {
  color: #ff988b;
  margin-top: 12px;
}

.duel-forms {
  display: grid;
  gap: 18px;
}

.duel-forms form+form {
  border-top: 1px solid var(--line);
  padding-top: 17px;
}

.duel-forms label,.invite label {
  display: block;
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 6px;
}

.level-choice {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-block: 10px 16px;
}

.level-choice label,.duel-forms .level-choice label {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.level-choice select {
  min-height: 42px;
  max-inline-size: 100%;
  padding: 6px 10px;
  color: var(--paper);
  background: var(--bg);
  border: 1px solid var(--line);
}

.duel-forms input,.invite input {
  width: min(100%,440px);
  background: #151515;
  color: var(--paper);
  border: 1px solid var(--line);
  padding: 10px;
  min-height: 44px;
}

.invite {
  margin: 16px 0;
}

.review-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  margin-top: 16px;
}

.review-list .facts {
  margin: 0;
}

.score {
  font-family: var(--head);
  font-size: 64px;
  color: var(--red);
  line-height: 1;
}

.rounds {
  width: 100%;
  border-collapse: collapse;
  margin: 14px 0;
}

.rounds th,.rounds td {
  text-align: left;
  padding: 9px 6px;
  border-bottom: 1px solid var(--line);
}

@media(max-width:800px) {
  .frame {
    width: calc(100% - 40px);
  }
  .hero-inner {
    padding-inline: 29px;
  }
  .hero {
    min-height: 370px;
  }
  .header-inner nav {
    gap: 15px;
  }
  .topic-grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
}

@media(max-width:520px) {
  .facts {
    padding: 8px 12px 12px;
  }
  .facts summary {
    padding-block: 10px;
  }
  .frame {
    width: calc(100% - 26px);
  }
  .header-inner {
    min-height: 61px;
  }
  .brand {
    font-size: 19px;
    gap: 6px;
  }
  .brand img {
    width: 33px;
    height: 33px;
  }
  .header-inner nav {
    display: none;
  }
  .hero {
    margin-top: 14px;
    min-height: 351px;
  }
  .hero::before {
    background: linear-gradient(90deg,#151313f5,#151313d9 49%,#15131362);
  }
  .hero::after {
    background-position: 56% center;
  }
  .hero-inner {
    padding: 29px 15px;
  }
  .hero h1 {
    font-size: clamp(38px,11vw,62px);
  }
  .eyebrow {
    font-size: 10px;
  }
  .hero-text {
    font-size: 14px;
    max-width: 260px;
  }
  .mode-grid,.choices {
    grid-template-columns: 1fr;
  }
  .mode-card {
    min-height: 76px;
    padding: 12px;
  }
  .mode-copy strong {
    font-size: 17px;
  }
  .topic-card {
    padding: 8px;
    gap: 5px;
  }
  .topic-card strong {
    font-size: 11px;
  }
  .topic-symbol {
    width: 17px;
    font-size: 16px;
  }
  .topic-card small {
    font-size: 11px;
  }
  .section-heading {
    margin-top: 24px;
  }
  .section-heading h2 {
    font-size: 23px;
  }
  .screen {
    margin-top: 24px;
  }
}

@media(prefers-reduced-motion:reduce) {
  html {
    scroll-behavior: auto;
  }
}
.question-report {
  margin-top: 16px;
  color: var(--muted);
  font-size: .9rem;
}

.question-report summary {
  width: fit-content;
  cursor: pointer;
}

.question-report form {
  display: grid;
  justify-items: start;
  gap: 8px;
  margin-top: 12px;
}

.question-report select,.question-report textarea {
  width: min(100%, 400px);
  min-height: 40px;
  padding: 8px;
  color: var(--paper);
  background: var(--bg);
  border: 1px solid var(--line);
  font: inherit;
}

.question-report textarea { resize: vertical; }
.question-report [role="status"] { margin: 0; }
.question-report [role="status"]:not(:empty) { margin-top: 8px; }
