:root {
  --ink: #181221;
  --muted: #756c7e;
  --purple: #6f4cff;
  --pink: #ff5b9d;
  --yellow: #ffd84d;
  --paper: #fffaf4;
  --line: rgba(24, 18, 33, 0.13);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100svh;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 18%, rgba(255, 216, 77, 0.38), transparent 26%),
    radial-gradient(circle at 88% 16%, rgba(255, 91, 157, 0.25), transparent 24%),
    radial-gradient(circle at 75% 90%, rgba(111, 76, 255, 0.18), transparent 30%),
    linear-gradient(140deg, #fffaf4, #f6f0ff 58%, #fff5fa);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", sans-serif;
}

a { color: inherit; text-decoration: none; }

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1040px, calc(100% - 40px));
  min-height: 76px;
  margin: 0 auto;
  border-bottom: 1px solid var(--line);
}

.brand { font-size: 14px; font-weight: 900; }
.brand span { margin-right: 7px; font-size: 20px; }
.game-label { color: var(--muted); font-size: 12px; font-weight: 800; }

main {
  display: grid;
  width: min(1040px, calc(100% - 40px));
  min-height: calc(100svh - 76px);
  margin: 0 auto;
  padding: 42px 0 64px;
  place-items: center;
}

.game-shell {
  position: relative;
  width: min(100%, 860px);
  min-height: 590px;
  overflow: hidden;
  border: 1px solid rgba(24, 18, 33, 0.11);
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.75);
  box-shadow: 0 38px 100px rgba(72, 47, 92, 0.16);
  backdrop-filter: blur(16px);
}

.progress-row {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 24px 30px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.06em;
}

.progress-track {
  flex: 1;
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(24, 18, 33, 0.08);
}

.progress-track span {
  display: block;
  width: 20%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--purple), var(--pink));
  transition: width 350ms ease;
}

.question-view,
.result-view {
  display: flex;
  flex-direction: column;
  min-height: 510px;
  padding: clamp(40px, 7vw, 76px);
}

.question-view { justify-content: center; }
.result-view { position: relative; align-items: center; justify-content: center; text-align: center; }
[hidden] { display: none !important; }

.eyebrow {
  margin: 0 0 18px;
  color: var(--purple);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1 { margin: 0; font-family: Georgia, "Noto Serif SC", serif; }

.question-view h1 {
  max-width: 700px;
  min-height: 2.25em;
  font-size: clamp(38px, 6vw, 66px);
  line-height: 1.12;
  letter-spacing: -0.035em;
}

.question-note {
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.countdown {
  display: flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  margin-top: 18px;
  padding: 8px 13px;
  border: 1px solid rgba(255, 91, 157, 0.24);
  border-radius: 999px;
  color: #9c3662;
  background: rgba(255, 91, 157, 0.09);
  font-size: 13px;
  font-weight: 800;
}

.countdown strong { min-width: 22px; color: var(--pink); font-size: 18px; text-align: center; }

.answer-zone {
  position: relative;
  min-height: 150px;
  margin-top: 22px;
  border-radius: 22px;
}

.answer-button {
  position: absolute;
  top: 40px;
  min-width: 142px;
  min-height: 58px;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
  font-size: 17px;
  font-weight: 900;
  transition: transform 180ms ease, box-shadow 180ms ease, left 130ms ease, top 130ms ease;
}

.yes-button {
  left: calc(50% - 166px);
  color: white;
  background: var(--ink);
  box-shadow: 0 14px 30px rgba(24, 18, 33, 0.2);
}

.no-button {
  left: calc(50% + 24px);
  color: var(--ink);
  border: 1px solid var(--line);
  background: white;
}

.answer-button:hover { transform: translateY(-2px); }
.answer-button:active { transform: scale(0.96); }
.no-button.evasive { transition: left 90ms linear, top 90ms linear; }

.result-view h1 {
  font-size: clamp(58px, 10vw, 104px);
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.result-view h1 em { color: var(--pink); font-weight: inherit; }

.result-copy {
  margin: 28px 0 8px;
  color: var(--ink);
  font-size: 17px;
  line-height: 1.7;
}

.disclaimer {
  max-width: 520px;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.result-actions { display: flex; gap: 12px; margin-top: 30px; }

.result-actions button,
.result-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 19px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: white;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 900;
}

.result-actions button { color: white; border-color: var(--ink); background: var(--ink); }

.confetti i {
  position: absolute;
  width: 14px;
  height: 34px;
  border-radius: 5px;
  background: var(--yellow);
  animation: float 2.5s ease-in-out infinite;
}

.confetti i:nth-child(1) { top: 13%; left: 10%; transform: rotate(22deg); }
.confetti i:nth-child(2) { top: 20%; right: 12%; background: var(--pink); animation-delay: -0.7s; }
.confetti i:nth-child(3) { bottom: 14%; left: 18%; background: var(--purple); animation-delay: -1.2s; }
.confetti i:nth-child(4) { right: 18%; bottom: 13%; transform: rotate(70deg); animation-delay: -1.7s; }
.confetti i:nth-child(5) { top: 9%; left: 48%; width: 24px; height: 24px; border-radius: 50%; background: var(--pink); animation-delay: -0.3s; }
.confetti i:nth-child(6) { right: 5%; bottom: 42%; width: 20px; height: 20px; border-radius: 50%; background: var(--purple); animation-delay: -1s; }

@keyframes float { 0%, 100% { translate: 0 -5px; } 50% { translate: 0 9px; } }

button:focus-visible,
a:focus-visible { outline: 3px solid var(--pink); outline-offset: 4px; }

@media (max-width: 620px) {
  .site-header, main { width: min(100% - 24px, 1040px); }
  main { padding-top: 24px; }
  .game-shell { min-height: 620px; border-radius: 24px; }
  .progress-row { padding: 20px; }
  .question-view, .result-view { min-height: 550px; padding: 34px 22px; }
  .question-view h1 { min-height: 3.3em; }
  .answer-zone { min-height: 190px; }
  .answer-button { min-width: 118px; }
  .yes-button { left: calc(50% - 130px); }
  .no-button { left: calc(50% + 12px); }
  .result-actions { flex-direction: column; width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
