:root {
  color-scheme: dark;
  --ink: #f8f6ff;
  --muted: #bab7ce;
  --surface: rgba(24, 26, 58, 0.9);
  --surface-strong: #292a58;
  --outline: rgba(232, 216, 255, 0.18);
  --violet: #a886ff;
  --pink: #fd88b7;
  --gold: #f5d090;
}

* { box-sizing: border-box; }

body {
  min-width: 320px;
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 85% 2%, rgba(184, 117, 255, 0.34), transparent 28rem),
    radial-gradient(circle at 5% 95%, rgba(255, 106, 171, 0.2), transparent 25rem),
    #0b0c1d;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}

button, a { font: inherit; }

.app-shell {
  width: min(100%, 720px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 22px 16px 40px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 0.86rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.brand-mark {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid rgba(245, 208, 144, 0.7);
  border-radius: 11px;
  color: var(--gold);
  background: rgba(13, 14, 35, 0.7);
  font-size: 1.15rem;
}

.panel {
  overflow: hidden;
  border: 1px solid var(--outline);
  border-radius: 26px;
  background: linear-gradient(145deg, rgba(44, 45, 91, 0.96), var(--surface));
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.35);
}

.panel-body { padding: clamp(24px, 6vw, 46px); }

.eyebrow {
  margin: 0 0 13px;
  color: var(--gold);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1, h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  line-height: 1.08;
}

h1 { font-size: clamp(2rem, 9vw, 3.6rem); }
h2 { font-size: clamp(1.65rem, 6vw, 2.4rem); }

.lead, .question-text, .result-copy {
  white-space: pre-line;
  line-height: 1.58;
}

.lead { margin: 24px 0 0; color: #e7e4f4; font-size: 1.05rem; }
.question-text { margin: 20px 0 26px; color: #f1effa; font-size: 1.08rem; }

.primary-button, .answer-card, .result-link, .restart-button {
  width: 100%;
  cursor: pointer;
  border: 0;
  border-radius: 16px;
  transition: transform 140ms ease, box-shadow 140ms ease, background 140ms ease;
}

.primary-button, .result-link, .restart-button {
  display: block;
  margin-top: 30px;
  padding: 16px 18px;
  color: #171124;
  background: linear-gradient(100deg, var(--gold), #f7b9d5 55%, #b7a4ff);
  box-shadow: 0 10px 28px rgba(214, 150, 255, 0.24);
  font-weight: 850;
  letter-spacing: 0.04em;
  text-align: center;
  text-decoration: none;
}

.primary-button:hover, .result-link:hover, .restart-button:hover,
.answer-card:hover { transform: translateY(-2px); }

.progress-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  color: var(--muted);
  font-size: 0.85rem;
}

.progress-track {
  flex: 1;
  height: 5px;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.13);
}

.progress-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--pink), var(--violet));
  transition: width 200ms ease;
}

.answers { display: grid; gap: 11px; }

.answer-card {
  padding: 17px 18px;
  color: var(--ink);
  border: 1px solid rgba(221, 208, 255, 0.2);
  background: rgba(10, 11, 30, 0.46);
  font-size: 1rem;
  line-height: 1.42;
  text-align: left;
}

.answer-card:hover, .answer-card:focus-visible {
  border-color: rgba(253, 136, 183, 0.8);
  outline: none;
  background: rgba(76, 52, 103, 0.58);
  box-shadow: 0 8px 24px rgba(170, 101, 255, 0.2);
}

.result-cover {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center top;
  background: #12142e;
}

.result-copy p { margin: 0 0 16px; }
.disclaimer { margin-top: 25px; color: #f7d391; font-size: 0.95rem; line-height: 1.5; }

.restart-button {
  margin-top: 12px;
  padding: 14px;
  color: var(--ink);
  border: 1px solid var(--outline);
  background: transparent;
  font-weight: 750;
}

@media (max-width: 420px) {
  .app-shell { padding: 14px 10px 28px; }
  .panel { border-radius: 21px; }
  .panel-body { padding: 24px 19px; }
  .answer-card { padding: 15px; font-size: 0.98rem; }
}
