:root {
  color-scheme: dark;
  --bg: #101318;
  --panel: #181d25;
  --panel-strong: #202733;
  --text: #f7f3ea;
  --muted: #a9b0bd;
  --line: rgba(255, 255, 255, 0.12);
  --red: #d53b3b;
  --cyan: #4ecdc4;
  --gold: #f5c451;
  --green: #6bd66b;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 18% 10%, rgba(213, 59, 59, 0.34), transparent 30rem),
    radial-gradient(circle at 86% 18%, rgba(78, 205, 196, 0.2), transparent 22rem),
    linear-gradient(145deg, #101318 0%, #161922 48%, #0c0f14 100%);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button {
  border: 0;
  font: inherit;
}

.shell {
  width: min(100%, 760px);
  min-height: 100vh;
  margin: 0 auto;
  padding: max(18px, env(safe-area-inset-top)) 16px max(24px, env(safe-area-inset-bottom));
}

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

.eyebrow,
.question-kicker {
  margin: 0 0 6px;
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: clamp(2rem, 8vw, 4.2rem);
  line-height: 0.95;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(1.7rem, 7vw, 3.6rem);
  line-height: 1;
}

p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.45;
}

.score-pill {
  min-width: 64px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  font-weight: 800;
  text-align: center;
}

.hero,
.quiz,
.result {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(24, 29, 37, 0.86);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
}

.hero {
  display: grid;
  gap: 18px;
  padding: 20px;
}

.hero-art {
  position: relative;
  display: grid;
  min-height: 280px;
  place-items: center;
  overflow: hidden;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(213, 59, 59, 0.25), transparent 38%),
    linear-gradient(315deg, rgba(245, 196, 81, 0.22), transparent 36%),
    #11161f;
}

.hero-art::before,
.hero-art::after {
  position: absolute;
  content: "";
  width: 340px;
  height: 340px;
  border: 2px solid rgba(255, 255, 255, 0.12);
  border-radius: 42%;
  animation: spin 12s linear infinite;
}

.hero-art::after {
  width: 250px;
  height: 250px;
  border-color: rgba(78, 205, 196, 0.18);
  animation-duration: 8s;
  animation-direction: reverse;
}

.core,
.result-badge {
  display: grid;
  width: 116px;
  height: 116px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 28px;
  background: linear-gradient(145deg, #f5c451, #d53b3b);
  color: #101318;
  font-size: 2.2rem;
  font-weight: 950;
  box-shadow: 0 18px 50px rgba(213, 59, 59, 0.35);
  transform: rotate(-7deg);
}

.spark {
  position: absolute;
  display: block;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 26px var(--cyan);
}

.spark-a {
  left: 18%;
  top: 26%;
}

.spark-b {
  right: 16%;
  top: 38%;
  background: var(--gold);
}

.spark-c {
  bottom: 20%;
  left: 48%;
  background: var(--green);
}

.primary,
.secondary,
.option {
  width: 100%;
  min-height: 56px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 850;
}

.primary {
  background: linear-gradient(135deg, var(--gold), var(--red));
  color: #111318;
}

.secondary {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.quiz,
.result {
  padding: 18px;
}

.progress {
  height: 10px;
  margin-bottom: 18px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
}

.progress-fill {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--cyan), var(--gold), var(--red));
  transition: width 220ms ease;
}

.options {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.option {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  background: var(--panel-strong);
  color: var(--text);
  text-align: left;
  transition: transform 150ms ease, border-color 150ms ease, background 150ms ease;
}

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

.option-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
}

.result {
  text-align: center;
}

.result-badge {
  margin: 6px auto 18px;
  font-size: 3rem;
}

.actions {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}

.hidden {
  display: none;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (min-width: 680px) {
  .hero {
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
  }

  .hero-art {
    grid-row: span 2;
  }

  .primary {
    align-self: end;
  }
}
