:root {
  --pink: #e83e72;
  --pink-dark: #c82459;
  --pink-pale: #fff0f5;
  --red: #e6324b;
  --yellow: #ffd65a;
  --ink: #442d38;
  --muted: #715e67;
  --line: #f4ccd9;
  --white: #fff;
  font-family: "Yu Gothic", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: linear-gradient(145deg, #fff 0%, #fff7fa 50%, #fffdf5 100%);
  line-height: 1.85;
  overflow-x: hidden;
}

button, a { font: inherit; }
button { cursor: pointer; }

.decor { position: fixed; z-index: -1; border-radius: 50%; filter: blur(2px); opacity: .55; }
.decor-one { width: 330px; height: 330px; top: -130px; right: -90px; background: radial-gradient(circle, #ffd4e3, transparent 68%); }
.decor-two { width: 300px; height: 300px; left: -120px; bottom: -100px; background: radial-gradient(circle, #fff0a8, transparent 68%); }

.app-shell { width: min(820px, calc(100% - 32px)); min-height: calc(100vh - 70px); margin: 0 auto; display: grid; align-items: center; padding: 44px 0; }
.screen { width: 100%; animation: appear .45s ease both; }
.hidden { display: none !important; }
@keyframes appear { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.hero-screen, .result-screen { text-align: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 16px; border-radius: 999px; color: var(--pink-dark); background: var(--pink-pale); font-weight: 700; letter-spacing: .04em; }
.eyebrow span { color: #f4b300; }
.hero-icon { width: 78px; height: 78px; margin: 24px auto 12px; display: grid; place-items: center; border-radius: 50%; background: linear-gradient(135deg, #ff668f, #e7355e); color: #fff; font-size: 42px; box-shadow: 0 12px 30px #e83e7240; }
h1 { margin: 10px 0 24px; font-family: "Yu Mincho", "Hiragino Mincho ProN", serif; font-size: clamp(34px, 6vw, 54px); line-height: 1.45; letter-spacing: .02em; }
h1 span { color: var(--red); }
.intro { margin: 0 auto 30px; max-width: 680px; font-size: 18px; font-weight: 600; }
.primary-button, .secondary-button { min-height: 62px; border-radius: 999px; padding: 14px 35px; font-weight: 800; font-size: 18px; text-decoration: none; display: inline-flex; justify-content: center; align-items: center; gap: 16px; transition: transform .2s, box-shadow .2s; }
.primary-button { border: 0; color: #fff; background: linear-gradient(135deg, #f0527e, #db274e); box-shadow: 0 10px 24px #d6275740; }
.primary-button:hover, .primary-button:focus-visible, .secondary-button:hover, .secondary-button:focus-visible { transform: translateY(-2px); box-shadow: 0 13px 27px #d6275745; }
.time-note, .link-note { color: var(--muted); font-size: 14px; margin: 10px 0 0; }
.mobile-only { display: none; }

.quiz-screen { max-width: 760px; margin: auto; }
.quiz-top { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; margin-bottom: 10px; }
.back-button { justify-self: start; border: 0; background: transparent; color: var(--muted); padding: 8px 0; font-weight: 700; }
.back-button:disabled { opacity: .25; cursor: default; }
.progress-text { grid-column: 2; margin: 0; font-weight: 800; font-size: 18px; color: var(--pink-dark); }
.progress-track { height: 8px; overflow: hidden; border-radius: 99px; background: #f7dce5; margin-bottom: 24px; }
.progress-bar { height: 100%; width: 10%; border-radius: inherit; background: linear-gradient(90deg, #ff769d, var(--pink)); transition: width .35s ease; }
.question-card { padding: clamp(28px, 6vw, 52px); border: 1px solid #fae1e9; border-radius: 28px; background: #ffffffee; box-shadow: 0 18px 55px #a9416514; text-align: center; }
.question-number { margin: 0 0 10px; color: var(--pink); font-size: 25px; font-weight: 900; }
.question-card h2 { min-height: 106px; margin: 0 auto 30px; max-width: 630px; display: grid; place-items: center; font-size: clamp(22px, 4vw, 29px); line-height: 1.65; }
.answers { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.answer-button { min-height: 68px; padding: 12px; border: 2px solid var(--line); border-radius: 16px; color: var(--ink); background: #fff; font-weight: 700; font-size: 17px; transition: .18s ease; }
.answer-button:hover, .answer-button:focus-visible { border-color: var(--pink); color: var(--pink-dark); background: var(--pink-pale); transform: translateY(-2px); }
.answer-button.selected { border-color: var(--pink); background: var(--pink); color: #fff; }
.answer-hint { text-align: center; color: var(--muted); font-size: 14px; }

.score-ring { width: 190px; height: 190px; margin: 22px auto 4px; padding: 12px; border-radius: 50%; background: conic-gradient(var(--pink) 0%, #fce0e9 0); box-shadow: 0 15px 38px #d7376940; transition: background .6s ease; }
.score-ring > div { width: 100%; height: 100%; border-radius: 50%; display: grid; place-content: center; grid-auto-flow: column; align-items: baseline; background: #fff; }
#score-number { font-family: Georgia, serif; color: var(--red); font-size: 68px; font-weight: 700; line-height: 1; }
.score-ring small { color: var(--red); font-size: 24px; font-weight: 800; }
.score-label { margin: 4px 0 20px; font-size: 19px; font-weight: 800; }
.result-card { padding: 32px clamp(24px, 6vw, 52px); border-radius: 26px; background: #fff; border: 1px solid #fae0e8; box-shadow: 0 16px 45px #a9416512; }
.result-kicker { margin: 0; color: var(--muted); font-weight: 700; }
.result-card h2 { margin: 4px 0 18px; color: var(--pink-dark); font-family: "Yu Mincho", serif; font-size: clamp(25px, 5vw, 34px); line-height: 1.5; }
.result-message { font-size: 17px; }
.result-message p { margin: 8px 0; }
.hope-message { margin: 28px 0 0; padding: 28px; border-radius: 24px; background: linear-gradient(135deg, #fff1f6, #fffbea); }
.hope-message > span { color: #f2af00; font-size: 25px; }
.hope-message h3 { margin: 2px 0 10px; color: var(--red); font-family: "Yu Mincho", serif; font-size: clamp(26px, 5vw, 35px); }
.hope-message p { margin: 0; font-size: 17px; font-weight: 600; }
.affirmation { margin: 30px 0 25px; color: var(--red); font-family: "Yu Mincho", serif; font-size: clamp(25px, 5vw, 36px); font-weight: 800; }
.result-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; }
.secondary-button { border: 2px solid var(--pink); color: var(--pink-dark); background: #fff; }
.secondary-button[aria-disabled="true"] { cursor: default; }
footer { padding: 18px 16px 28px; color: var(--muted); font-size: 12px; text-align: center; }

@media (max-width: 600px) {
  .app-shell { width: min(100% - 22px, 820px); min-height: calc(100vh - 55px); padding: 24px 0; }
  .hero-icon { width: 66px; height: 66px; margin-top: 18px; font-size: 35px; }
  h1 { font-size: 31px; margin-bottom: 18px; }
  .mobile-only { display: initial; }
  .intro { font-size: 16px; line-height: 1.9; }
  .intro br { display: none; }
  .primary-button, .secondary-button { width: 100%; min-height: 60px; font-size: 17px; }
  .question-card { padding: 26px 16px; border-radius: 22px; }
  .question-card h2 { min-height: 0; margin-bottom: 25px; font-size: 21px; }
  .answers { grid-template-columns: 1fr; gap: 10px; }
  .answer-button { min-height: 58px; font-size: 17px; }
  .back-button span { display: none; }
  .score-ring { width: 165px; height: 165px; }
  #score-number { font-size: 58px; }
  .result-card, .hope-message { padding: 24px 17px; }
  .result-message, .hope-message p { font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
