:root {
  --background: #0a0a0a;
  --text: #e5e5e0;
  --gold: #c8a84b;
  --red: #fb7185;
  --green: #34d399;
  --slate: #94a3b8;
  --purple: #a78bfa;
  --panel: #111111;
  --line: rgba(229, 229, 224, 0.18);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button {
  font: inherit;
}

.screen {
  min-height: 100vh;
  opacity: 1;
  transition: opacity 200ms ease;
}

.screen.is-fading {
  opacity: 0;
}

.landing,
.question,
.reveal,
.results,
.missed {
  min-height: 100vh;
  padding: 28px;
}

.landing,
.reveal,
.results {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.landing-inner,
.reveal-inner,
.results-inner,
.missed-inner {
  width: min(100%, 760px);
}

.label,
.kicker,
.classification,
.missed th {
  color: var(--gold);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.landing h1 {
  margin: 30px auto 20px;
  max-width: 760px;
  color: var(--text);
  font-family: "Courier New", monospace;
  font-size: 68px;
  font-weight: 400;
  line-height: 1.05;
}

.subtext,
.question-text,
.reveal-line,
.verdict {
  color: rgba(229, 229, 224, 0.74);
}

.subtext {
  margin: 0 0 42px;
  font-size: 15px;
}

.button,
.answer-button {
  border: 1px solid var(--gold);
  border-radius: 0;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  font-family: "Courier New", monospace;
  transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease;
}

.button {
  min-height: 48px;
  padding: 14px 24px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.button:hover,
.button:focus-visible {
  background: var(--gold);
  color: #0a0a0a;
}

.button:focus-visible,
.answer-button:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 3px;
}

.question {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 20px;
  overflow: hidden;
}

.question-top {
  width: 100%;
}

.check-label {
  margin-bottom: 14px;
  text-align: left;
}

.progress-track {
  width: 100%;
  height: 2px;
  background: rgba(200, 168, 75, 0.2);
}

.progress-fill {
  width: 0%;
  height: 100%;
  background: var(--gold);
  transition: width 400ms ease;
}

.question-body {
  display: flex;
  min-height: 0;
  align-items: center;
  justify-content: center;
  padding-bottom: 28px;
}

.question-inner {
  width: min(100%, 720px);
  text-align: center;
}

.subject {
  margin: 0 0 22px;
  color: var(--text);
  font-size: 48px;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1.08;
  text-transform: uppercase;
}

.question-text {
  margin: 0 auto 34px;
  max-width: 620px;
  font-size: 21px;
  line-height: 1.45;
}

.answers {
  display: grid;
  gap: 12px;
  width: min(100%, 480px);
  margin: 0 auto;
}

.answer-button {
  width: 100%;
  min-height: 52px;
  padding: 14px 20px;
  color: var(--text);
  font-size: 15px;
  line-height: 1.35;
}

.answer-button:hover,
.answer-button:focus-visible {
  background: rgba(200, 168, 75, 0.08);
}

.answer-button.neutral {
  border-color: rgba(148, 163, 184, 0.55);
  color: var(--slate);
  font-size: 13px;
}

.reveal-icon {
  margin-bottom: 18px;
  font-size: 64px;
  line-height: 1;
}

.reveal-icon,
.reveal .label {
  animation: revealIn 300ms ease both;
}

.reveal .label {
  animation-delay: 40ms;
}

@keyframes revealIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal-line {
  margin: 18px auto 0;
  max-width: 690px;
  font-size: 20px;
  line-height: 1.55;
}

.reveal-link {
  display: inline-block;
  margin-top: 28px;
  color: var(--gold);
  font-family: "Courier New", monospace;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-decoration: none;
  text-transform: uppercase;
}

.reveal-link:hover,
.reveal-link:focus-visible {
  text-decoration: underline;
}

.reveal .button,
.results .button,
.missed .button {
  margin-top: 42px;
}

.score {
  margin: 24px 0 12px;
  color: var(--gold);
  font-family: "Courier New", monospace;
  font-size: 112px;
  line-height: 0.9;
}

.classification {
  margin: 0 0 18px;
  font-size: 17px;
}

.verdict {
  margin: 0;
  font-size: 16px;
  font-style: italic;
}

.result-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 64px;
  flex-wrap: wrap;
}

.result-actions .button {
  margin-top: 0;
}

.copy-status {
  min-height: 22px;
  margin-top: 18px;
  color: var(--slate);
  font-family: "Courier New", monospace;
  font-size: 13px;
}

.missed {
  display: flex;
  justify-content: center;
  padding-top: 48px;
  padding-bottom: 48px;
}

.missed h1 {
  margin: 22px 0 28px;
  font-size: 44px;
  letter-spacing: 0.1em;
  line-height: 1.1;
  text-transform: uppercase;
}

.missed-table-wrap {
  overflow-x: auto;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

th,
td {
  padding: 15px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

th {
  color: var(--gold);
  font-size: 11px;
}

td {
  color: rgba(229, 229, 224, 0.82);
  font-size: 14px;
  line-height: 1.45;
}

tr:last-child td {
  border-bottom: 0;
}

.empty-missed {
  margin: 36px 0;
  color: var(--slate);
  font-style: italic;
}

@media (max-width: 520px) {
  .landing,
  .question,
  .reveal,
  .results,
  .missed {
    padding: 22px;
  }

  .landing h1 {
    font-size: 38px;
  }

  .subject {
    font-size: 28px;
  }

  .question-text,
  .reveal-line {
    font-size: 17px;
  }

  .score {
    font-size: 72px;
  }

  .missed h1 {
    font-size: 28px;
  }

  .answer-button {
    font-size: 14px;
  }

  .result-actions {
    display: grid;
  }

  .result-actions .button {
    width: 100%;
  }

  th,
  td {
    padding: 13px 10px;
    font-size: 13px;
  }
}
