:root {
  color-scheme: light;
  --bg: #fff8f2;
  --bg-soft: #f4fbff;
  --ink: #2d2430;
  --muted: #7b6c7f;
  --line: rgba(45, 36, 48, 0.12);
  --accent: #e85f7f;
  --accent-2: #2b9c8f;
  --surface: rgba(255, 255, 255, 0.82);
  --shadow: 0 22px 70px rgba(99, 54, 80, 0.16);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 16% 12%, rgba(255, 185, 205, 0.52), transparent 30%),
    radial-gradient(circle at 88% 18%, rgba(126, 218, 205, 0.38), transparent 28%),
    linear-gradient(135deg, var(--bg), var(--bg-soft));
}

button {
  font: inherit;
}

.app-shell {
  width: min(1040px, calc(100vw - 28px));
  min-height: 100vh;
  margin: 0 auto;
  display: grid;
  place-items: center;
  padding: 32px 0;
}

.screen {
  width: 100%;
  animation: rise 520ms ease both;
}

.intro,
.ending,
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.intro,
.ending {
  min-height: min(720px, calc(100vh - 64px));
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 24px;
  padding: clamp(28px, 7vw, 72px);
  border-radius: 28px;
  overflow: hidden;
  position: relative;
}

.intro::after,
.ending::after {
  content: "";
  position: absolute;
  inset: auto -10% -26% 34%;
  height: 360px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(232, 95, 127, 0.28), rgba(43, 156, 143, 0.22));
  filter: blur(3px);
  transform: rotate(-8deg);
}

.eyebrow {
  margin: 0;
  color: var(--accent-2);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0;
}

h1,
h2 {
  max-width: 760px;
  margin: 0;
  line-height: 1.08;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(42px, 8vw, 84px);
}

h2 {
  font-size: clamp(30px, 5vw, 56px);
}

.lead {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.75;
}

.primary-button,
.ghost-button {
  min-height: 48px;
  border: 0;
  border-radius: 999px;
  padding: 0 24px;
  cursor: pointer;
  font-weight: 800;
}

.primary-button {
  color: white;
  background: linear-gradient(135deg, var(--accent), #ff9d6c);
  box-shadow: 0 14px 34px rgba(232, 95, 127, 0.26);
}

.ghost-button {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
}

.question-top {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.progress {
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
}

.panel {
  padding: clamp(18px, 4vw, 34px);
  border-radius: 24px;
}

.options {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.option-card {
  position: relative;
  display: grid;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  cursor: pointer;
  text-align: left;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.option-card:hover,
.option-card:focus-visible {
  outline: none;
  transform: translateY(-4px);
  border-color: rgba(232, 95, 127, 0.48);
  box-shadow: 0 18px 38px rgba(92, 57, 72, 0.14);
}

.option-card.selected {
  border-color: var(--accent);
  box-shadow: 0 20px 44px rgba(232, 95, 127, 0.22);
  transform: translateY(-4px) scale(1.01);
}

.option-card img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 13px;
  background: #eee;
}

.option-label {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.28;
}

.option-letter {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  border-radius: 50%;
  color: white;
  background: var(--accent-2);
  font-size: 13px;
}

.status-line {
  margin-top: 18px;
  min-height: 28px;
  color: var(--muted);
  font-weight: 700;
}

.answers {
  width: min(680px, 100%);
  display: grid;
  gap: 10px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
  z-index: 1;
}

.answers li {
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid var(--line);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  z-index: 1;
}

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

@media (max-width: 780px) {
  .app-shell {
    width: min(100% - 18px, 540px);
    padding: 9px 0;
  }

  .intro,
  .ending {
    min-height: calc(100vh - 18px);
    border-radius: 22px;
  }

  .question-top {
    display: grid;
    align-items: start;
  }

  .options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .panel {
    border-radius: 20px;
  }

  .option-card {
    padding: 8px;
    border-radius: 15px;
  }

  .option-card img {
    border-radius: 11px;
  }

  .option-label {
    font-size: 13px;
    min-height: 42px;
  }
}

