:root {
  --bg: #f3eadf;
  --bg-strong: #e4d1bb;
  --ink: #2b1d14;
  --muted: #6d5749;
  --panel: rgba(255, 248, 241, 0.82);
  --panel-border: rgba(92, 58, 36, 0.14);
  --accent: #9e4d1d;
  --accent-strong: #71330f;
  --shadow: 0 24px 70px rgba(65, 36, 19, 0.15);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Manrope", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.8), transparent 36%),
    radial-gradient(circle at bottom right, rgba(158, 77, 29, 0.24), transparent 30%),
    linear-gradient(135deg, var(--bg) 0%, #d8b99b 100%);
}

.shell {
  width: min(960px, calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0 64px;
}

.hero {
  padding: 24px 8px 32px;
}

.eyebrow {
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  color: var(--accent-strong);
  font-size: 0.78rem;
  font-weight: 800;
}

h1,
h2 {
  font-family: "Cormorant Garamond", serif;
  margin: 0;
  line-height: 0.95;
}

h1 {
  font-size: clamp(3.2rem, 10vw, 5.6rem);
  max-width: 8ch;
}

h2 {
  font-size: clamp(2rem, 5vw, 3rem);
}

.intro {
  max-width: 620px;
  font-size: 1.08rem;
  line-height: 1.65;
  color: var(--muted);
  margin: 18px 0 0;
}

.panel {
  background: var(--panel);
  backdrop-filter: blur(14px);
  border: 1px solid var(--panel-border);
  border-radius: 28px;
  box-shadow: var(--shadow);
  padding: 24px;
  margin-top: 20px;
}

.options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.option {
  position: relative;
}

.option input {
  position: absolute;
  opacity: 0;
}

.option-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 132px;
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(84, 49, 26, 0.12);
  background: rgba(255, 255, 255, 0.66);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease;
  cursor: pointer;
}

.option-card strong {
  font-size: 1.05rem;
}

.option-card span {
  color: var(--muted);
  line-height: 1.45;
}

.option input:checked + .option-card {
  transform: translateY(-2px);
  border-color: rgba(158, 77, 29, 0.5);
  background: rgba(255, 247, 239, 0.95);
  box-shadow: inset 0 0 0 1px rgba(158, 77, 29, 0.16);
}

.cta {
  margin-top: 20px;
  border: 0;
  border-radius: 999px;
  padding: 14px 22px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-strong) 100%);
  color: white;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.cta:disabled {
  opacity: 0.7;
  cursor: progress;
}

.message {
  min-height: 24px;
  margin: 14px 4px 0;
  color: var(--accent-strong);
  font-weight: 700;
}

.scoreboard-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: end;
  margin-bottom: 18px;
}

.scoreboard-head p {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

.results {
  display: grid;
  gap: 14px;
}

.result {
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(84, 49, 26, 0.12);
  overflow: hidden;
}

.result-copy {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 16px 10px;
}

.result-copy strong {
  font-size: 1rem;
}

.result-copy span {
  color: var(--muted);
  font-weight: 700;
}

.bar {
  height: 10px;
  width: 100%;
  background: rgba(82, 56, 41, 0.08);
}

.bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #d59c5f 0%, var(--accent) 100%);
  border-radius: 0 999px 999px 0;
}

@media (max-width: 720px) {
  .shell {
    width: min(100% - 20px, 960px);
    padding-top: 28px;
  }

  .panel {
    padding: 18px;
    border-radius: 22px;
  }

  .scoreboard-head,
  .result-copy {
    flex-direction: column;
    align-items: flex-start;
  }
}
