:root {
  --bg: #05070a;
  --panel: rgba(7, 13, 18, 0.82);
  --cyan: #00f5ff;
  --magenta: #ff2bd6;
  --red: #ff3158;
  --text: #e9fbff;
  --muted: #7fa7b7;
  --border: rgba(0, 245, 255, 0.38);
  --shadow-cyan: 0 0 18px rgba(0, 245, 255, 0.48);
  --shadow-magenta: 0 0 22px rgba(255, 43, 214, 0.38);
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background:
    radial-gradient(circle at 18% 20%, rgba(255, 43, 214, 0.18), transparent 32%),
    radial-gradient(circle at 82% 78%, rgba(0, 245, 255, 0.14), transparent 30%),
    linear-gradient(135deg, #05070a 0%, #071017 54%, #040509 100%);
  color: var(--text);
  font-family: "Share Tech Mono", "Courier New", monospace;
  overflow: hidden;
}

button {
  font: inherit;
}

.site-shell {
  position: relative;
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 32px;
  isolation: isolate;
}

.noise-layer,
.scanline-layer,
.grid-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.noise-layer {
  z-index: -1;
  opacity: 0.13;
  background-image:
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 7px 7px;
  animation: noiseShift 0.8s steps(2) infinite;
}

.scanline-layer {
  z-index: 1;
  background: repeating-linear-gradient(
    0deg,
    rgba(255, 255, 255, 0.025) 0,
    rgba(255, 255, 255, 0.025) 1px,
    transparent 1px,
    transparent 5px
  );
  mix-blend-mode: screen;
}

.grid-layer {
  z-index: -2;
  background-image:
    linear-gradient(rgba(0, 245, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 245, 255, 0.08) 1px, transparent 1px);
  background-size: 64px 64px;
  transform: perspective(700px) rotateX(62deg) translateY(14vh) scale(1.6);
  transform-origin: center bottom;
  opacity: 0.45;
}

.terminal-panel {
  position: relative;
  width: min(860px, 100%);
  min-height: 430px;
  display: grid;
  place-items: center;
  padding: clamp(32px, 6vw, 72px);
  border: 1px solid var(--border);
  background:
    linear-gradient(135deg, rgba(0, 245, 255, 0.08), transparent 24%),
    linear-gradient(315deg, rgba(255, 43, 214, 0.08), transparent 28%),
    var(--panel);
  box-shadow:
    0 0 0 1px rgba(255, 43, 214, 0.18),
    0 0 46px rgba(0, 245, 255, 0.16),
    inset 0 0 44px rgba(0, 245, 255, 0.06);
  backdrop-filter: blur(14px);
  clip-path: polygon(0 18px, 18px 0, 100% 0, 100% calc(100% - 18px), calc(100% - 18px) 100%, 0 100%);
}

.terminal-panel::before,
.terminal-panel::after {
  content: "";
  position: absolute;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  opacity: 0.75;
}

.terminal-panel::before {
  top: 22px;
  left: 12%;
  right: 12%;
}

.terminal-panel::after {
  bottom: 22px;
  left: 18%;
  right: 18%;
}

.corner {
  position: absolute;
  width: 28px;
  height: 28px;
  border-color: var(--cyan);
  filter: drop-shadow(var(--shadow-cyan));
}

.corner-top-left {
  top: 12px;
  left: 12px;
  border-top: 2px solid;
  border-left: 2px solid;
}

.corner-top-right {
  top: 12px;
  right: 12px;
  border-top: 2px solid;
  border-right: 2px solid;
}

.corner-bottom-left {
  bottom: 12px;
  left: 12px;
  border-bottom: 2px solid;
  border-left: 2px solid;
}

.corner-bottom-right {
  right: 12px;
  bottom: 12px;
  border-right: 2px solid;
  border-bottom: 2px solid;
}

.screen {
  width: 100%;
  max-width: 720px;
  text-align: center;
  opacity: 0;
  transform: translateY(18px) scale(0.985);
  transition:
    opacity 420ms ease,
    transform 420ms ease;
}

.screen-active {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.system-tag {
  margin: 0 0 18px;
  color: var(--red);
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-shadow: 0 0 12px rgba(255, 49, 88, 0.75);
}

.glitch-title,
h2 {
  margin: 0;
  font-family: "Orbitron", "Courier New", monospace;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.glitch-title {
  position: relative;
  font-size: clamp(2.25rem, 7vw, 5.4rem);
  line-height: 0.95;
  color: var(--text);
  text-shadow:
    0 0 14px rgba(0, 245, 255, 0.65),
    0 0 34px rgba(255, 43, 214, 0.34);
  animation: titleFlicker 4.8s infinite;
}

.glitch-title::before,
.glitch-title::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.72;
}

.glitch-title::before {
  color: var(--cyan);
  transform: translate(2px, -1px);
  clip-path: inset(0 0 57% 0);
  animation: glitchSlice 2.7s infinite linear alternate-reverse;
}

.glitch-title::after {
  color: var(--magenta);
  transform: translate(-2px, 1px);
  clip-path: inset(55% 0 0 0);
  animation: glitchSlice 3.2s infinite linear alternate;
}

.subtitle {
  margin: 22px auto 38px;
  width: fit-content;
  max-width: 100%;
  color: var(--muted);
  font-size: clamp(1rem, 2.2vw, 1.25rem);
  letter-spacing: 0.14em;
  overflow: hidden;
  white-space: nowrap;
  border-right: 2px solid var(--cyan);
  animation:
    typing 2.7s steps(32, end) 350ms both,
    caretPulse 760ms step-end infinite;
}

.primary-action {
  position: relative;
  min-width: 210px;
  min-height: 58px;
  padding: 0 28px;
  border: 1px solid var(--cyan);
  background: rgba(0, 245, 255, 0.06);
  color: var(--text);
  cursor: pointer;
  font-family: "Orbitron", "Courier New", monospace;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  box-shadow: var(--shadow-cyan), inset 0 0 18px rgba(0, 245, 255, 0.11);
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px));
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.primary-action:hover,
.primary-action:focus-visible {
  border-color: var(--magenta);
  color: #fff;
  box-shadow: var(--shadow-magenta), inset 0 0 22px rgba(255, 43, 214, 0.14);
  transform: translateY(-2px);
}

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

.quiz-mode-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 0 auto;
  max-width: 620px;
}

.mode-option {
  position: relative;
  min-height: 132px;
  padding: 18px;
  border: 1px solid rgba(0, 245, 255, 0.34);
  background:
    linear-gradient(135deg, rgba(0, 245, 255, 0.09), transparent 52%),
    linear-gradient(315deg, rgba(255, 43, 214, 0.08), transparent 58%),
    rgba(0, 0, 0, 0.24);
  color: var(--text);
  cursor: pointer;
  text-align: left;
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px));
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.mode-option::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.16), transparent);
  opacity: 0;
  transform: translateX(-110%);
  pointer-events: none;
}

.mode-option:hover,
.mode-option:focus-visible {
  border-color: var(--magenta);
  box-shadow: var(--shadow-magenta), inset 0 0 22px rgba(255, 43, 214, 0.12);
  transform: translateY(-2px);
}

.mode-option:hover::after,
.mode-option:focus-visible::after {
  opacity: 1;
  animation: answerDistort 680ms ease;
}

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

.mode-kicker,
.mode-title,
.mode-detail {
  display: block;
}

.mode-kicker {
  color: var(--red);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-shadow: 0 0 10px rgba(255, 49, 88, 0.75);
}

.mode-title {
  margin-top: 12px;
  color: var(--cyan);
  font-family: "Orbitron", "Courier New", monospace;
  font-size: clamp(1.15rem, 2.8vw, 1.55rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-shadow: var(--shadow-cyan);
}

.mode-detail {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.9rem;
  letter-spacing: 0.06em;
}

.button-glow {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.22), transparent);
  transform: translateX(-120%);
  animation: buttonSweep 2.8s infinite;
}

h2 {
  color: var(--text);
  font-size: clamp(1.55rem, 4vw, 2.8rem);
  text-shadow: var(--shadow-cyan);
}

.loading-log {
  display: grid;
  gap: 14px;
  min-height: 132px;
  margin: 34px auto 26px;
  padding: 0;
  list-style: none;
  color: var(--muted);
  text-align: left;
}

.loading-log li {
  position: relative;
  padding-left: 28px;
  opacity: 0;
  transform: translateX(-10px);
  animation: logReveal 360ms ease forwards;
}

.loading-log li::before {
  content: ">";
  position: absolute;
  left: 0;
  color: var(--cyan);
  text-shadow: var(--shadow-cyan);
}

.loading-log li.complete {
  color: var(--text);
}

.progress-frame {
  height: 12px;
  overflow: hidden;
  border: 1px solid rgba(0, 245, 255, 0.45);
  background: rgba(0, 0, 0, 0.35);
  box-shadow: inset 0 0 16px rgba(0, 245, 255, 0.14);
}

.progress-bar {
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--red), var(--magenta), var(--cyan));
  box-shadow: var(--shadow-cyan);
  transition: width 520ms ease;
}

.question-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-bottom: 22px;
  text-align: left;
}

.question-meta .system-tag {
  margin: 0;
}

.question-progress {
  margin: 0;
  color: var(--cyan);
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-shadow: var(--shadow-cyan);
  white-space: nowrap;
}

.question-stage {
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 240ms ease,
    transform 240ms ease,
    filter 240ms ease;
}

.question-stage.question-stage-exit {
  opacity: 0;
  transform: translateY(14px);
  filter: blur(3px);
}

.question-stage.question-stage-enter {
  animation: questionEnter 340ms ease;
}

#question-text {
  min-height: 2.7em;
  font-size: clamp(1.35rem, 3vw, 2.15rem);
  line-height: 1.35;
}

.answer-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 34px;
  text-align: left;
}

.answer-option {
  position: relative;
  min-height: 96px;
  padding: 18px 18px 18px 54px;
  border: 1px solid rgba(0, 245, 255, 0.34);
  background:
    linear-gradient(135deg, rgba(0, 245, 255, 0.08), transparent 52%),
    linear-gradient(315deg, rgba(255, 43, 214, 0.08), transparent 58%),
    rgba(255, 255, 255, 0.02);
  color: var(--text);
  cursor: pointer;
  letter-spacing: 0.03em;
  text-align: left;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease,
    background-color 180ms ease;
}

.answer-option::before {
  content: attr(data-key);
  position: absolute;
  top: 18px;
  left: 18px;
  color: var(--red);
  font-family: "Orbitron", "Courier New", monospace;
  font-size: 0.78rem;
  font-weight: 700;
  text-shadow: 0 0 10px rgba(255, 49, 88, 0.8);
}

.answer-option::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.18), transparent);
  opacity: 0;
  transform: translateX(-110%);
  pointer-events: none;
}

.answer-option:hover,
.answer-option:focus-visible {
  border-color: var(--magenta);
  box-shadow: var(--shadow-magenta), inset 0 0 22px rgba(255, 43, 214, 0.12);
  transform: translateY(-2px) skewX(-0.8deg);
}

.answer-option:hover::after,
.answer-option:focus-visible::after {
  opacity: 1;
  animation: answerDistort 680ms ease;
}

.answer-option:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 4px;
}

.answer-option.answer-flash {
  border-color: #fff;
  background-color: rgba(0, 245, 255, 0.16);
  box-shadow:
    0 0 26px rgba(255, 255, 255, 0.8),
    var(--shadow-cyan),
    inset 0 0 26px rgba(0, 245, 255, 0.22);
}

.answer-label {
  display: block;
  font-size: 1.02rem;
  line-height: 1.35;
}

.answer-value {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.answer-effects {
  display: none;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

body.debug-mode .answer-effects {
  display: flex;
}

.effect-chip {
  padding: 3px 7px;
  border: 1px solid rgba(0, 245, 255, 0.28);
  color: var(--cyan);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(0, 245, 255, 0.06);
}

.effect-chip.negative {
  border-color: rgba(255, 49, 88, 0.34);
  color: var(--red);
  background: rgba(255, 49, 88, 0.07);
}

.result-screen {
  max-width: 780px;
  text-align: left;
}

.report-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}

.report-header .system-tag {
  margin: 0;
}

.report-stamp {
  margin: 0;
  padding: 6px 10px;
  border: 1px solid rgba(255, 49, 88, 0.5);
  color: var(--red);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-shadow: 0 0 10px rgba(255, 49, 88, 0.7);
}

.result-title {
  position: relative;
  font-size: clamp(1.5rem, 4vw, 2.7rem);
  animation: resultFlicker 3.8s infinite;
}

.result-title::before,
.result-title::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.42;
}

.result-title::before {
  color: var(--cyan);
  transform: translate(2px, 0);
  clip-path: inset(0 0 58% 0);
}

.result-title::after {
  color: var(--magenta);
  transform: translate(-2px, 0);
  clip-path: inset(54% 0 0 0);
}

.report-body {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(240px, 0.85fr);
  gap: 18px;
  margin-top: 28px;
}

.report-lines,
.faction-card,
.score-panel {
  border: 1px solid rgba(0, 245, 255, 0.28);
  background:
    linear-gradient(135deg, rgba(0, 245, 255, 0.06), transparent 48%),
    rgba(0, 0, 0, 0.24);
  box-shadow: inset 0 0 20px rgba(0, 245, 255, 0.08);
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
}

.report-lines {
  min-height: 224px;
  grid-row: span 2;
  padding: 18px;
}

.report-line {
  position: relative;
  min-height: 1.45em;
  margin: 0 0 10px;
  padding-left: 22px;
  color: var(--text);
  line-height: 1.45;
  text-shadow: 0 0 8px rgba(0, 245, 255, 0.32);
}

.report-line::before {
  content: ">";
  position: absolute;
  left: 0;
  color: var(--cyan);
  text-shadow: var(--shadow-cyan);
}

.report-line.typing::after {
  content: "";
  display: inline-block;
  width: 8px;
  height: 1em;
  margin-left: 4px;
  background: var(--cyan);
  box-shadow: var(--shadow-cyan);
  transform: translateY(2px);
  animation: caretPulse 720ms step-end infinite;
}

.faction-card,
.score-panel {
  padding: 18px;
}

.faction-label {
  margin: 0 0 10px;
  color: var(--red);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-shadow: 0 0 10px rgba(255, 49, 88, 0.65);
}

#faction-name {
  margin: 0 0 12px;
  color: var(--cyan);
  font-family: "Orbitron", "Courier New", monospace;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-shadow: var(--shadow-cyan);
}

#faction-summary {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.score-list {
  display: grid;
  gap: 10px;
}

.score-row {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr) 44px;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.score-track {
  height: 8px;
  overflow: hidden;
  border: 1px solid rgba(0, 245, 255, 0.32);
  background: rgba(0, 0, 0, 0.35);
}

.score-fill {
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--red), var(--magenta), var(--cyan));
  box-shadow: var(--shadow-cyan);
  transition: width 900ms ease;
}

.restart-action {
  display: block;
  margin: 28px auto 0;
}

.system-footer {
  position: fixed;
  right: 24px;
  bottom: 18px;
  left: 24px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: rgba(233, 251, 255, 0.54);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.secret-toggle {
  width: 28px;
  height: 18px;
  margin-left: 8px;
  padding: 0;
  border: 1px solid rgba(0, 245, 255, 0.12);
  background: transparent;
  color: rgba(233, 251, 255, 0.18);
  cursor: pointer;
  font-size: 0.55rem;
  letter-spacing: 0.04em;
  vertical-align: middle;
  transition:
    border-color 180ms ease,
    color 180ms ease,
    box-shadow 180ms ease;
}

.secret-toggle:hover,
.secret-toggle:focus-visible,
body.debug-mode .secret-toggle {
  border-color: rgba(0, 245, 255, 0.7);
  color: var(--cyan);
  box-shadow: var(--shadow-cyan);
  outline: none;
}

.debug-panel {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 5;
  width: min(320px, calc(100vw - 36px));
  padding: 14px;
  border: 1px solid rgba(255, 43, 214, 0.38);
  background:
    linear-gradient(135deg, rgba(255, 43, 214, 0.08), transparent 48%),
    rgba(5, 7, 10, 0.9);
  box-shadow: var(--shadow-magenta), inset 0 0 18px rgba(255, 43, 214, 0.08);
  backdrop-filter: blur(12px);
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
}

.debug-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  color: var(--red);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-shadow: 0 0 10px rgba(255, 49, 88, 0.65);
}

.debug-stats {
  display: grid;
  gap: 8px;
}

.debug-stat-row {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr) 36px;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.debug-stat-track {
  position: relative;
  height: 8px;
  overflow: hidden;
  border: 1px solid rgba(0, 245, 255, 0.28);
  background: rgba(0, 0, 0, 0.36);
}

.debug-stat-fill {
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, var(--magenta), var(--cyan));
  box-shadow: var(--shadow-cyan);
  transition: width 240ms ease;
}

@keyframes typing {
  from {
    width: 0;
  }
  to {
    width: 32ch;
  }
}

@keyframes caretPulse {
  50% {
    border-color: transparent;
  }
}

@keyframes titleFlicker {
  0%,
  100% {
    opacity: 1;
  }
  92% {
    opacity: 0.82;
  }
  94% {
    opacity: 1;
  }
  96% {
    opacity: 0.68;
  }
  98% {
    opacity: 1;
  }
}

@keyframes glitchSlice {
  0%,
  100% {
    transform: translate(0, 0);
  }
  24% {
    transform: translate(3px, -2px);
  }
  26% {
    transform: translate(-3px, 2px);
  }
  28% {
    transform: translate(0, 0);
  }
  74% {
    transform: translate(-2px, 1px);
  }
  76% {
    transform: translate(2px, -1px);
  }
}

@keyframes buttonSweep {
  45%,
  100% {
    transform: translateX(120%);
  }
}

@keyframes logReveal {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes noiseShift {
  to {
    transform: translate(7px, -7px);
  }
}

@keyframes questionEnter {
  from {
    opacity: 0;
    transform: translateY(-10px);
    filter: blur(3px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

@keyframes answerDistort {
  0% {
    transform: translateX(-110%) skewX(-18deg);
  }
  100% {
    transform: translateX(110%) skewX(-18deg);
  }
}

@keyframes resultFlicker {
  0%,
  100% {
    filter: none;
    opacity: 1;
  }
  79% {
    filter: none;
  }
  80% {
    filter: drop-shadow(2px 0 rgba(255, 43, 214, 0.6));
    opacity: 0.82;
  }
  82% {
    filter: drop-shadow(-2px 0 rgba(0, 245, 255, 0.6));
    opacity: 1;
  }
}

@media (max-width: 640px) {
  body {
    overflow-y: auto;
  }

  .site-shell {
    padding: 22px;
  }

  .terminal-panel {
    min-height: 470px;
    padding: 44px 22px;
  }

  .subtitle {
    white-space: normal;
    border-right: 0;
    animation: none;
  }

  .quiz-mode-grid {
    grid-template-columns: 1fr;
  }

  .question-meta {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .answer-grid {
    grid-template-columns: 1fr;
  }

  .answer-option {
    min-height: 84px;
  }

  .report-header,
  .report-body {
    grid-template-columns: 1fr;
  }

  .report-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .score-row {
    grid-template-columns: 86px minmax(0, 1fr) 40px;
  }

  .system-footer {
    position: static;
    width: 100%;
    margin-top: 20px;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .debug-panel {
    position: static;
    width: 100%;
    margin-top: 18px;
  }
}
