:root {
  --bg-top: #fff7fb;
  --bg-bottom: #ffe8dc;
  --panel: rgba(255, 252, 248, 0.82);
  --panel-strong: rgba(255, 255, 255, 0.94);
  --ink: #5c394d;
  --muted: #8c6877;
  --accent: #f07ea8;
  --accent-strong: #e35b89;
  --accent-soft: #ffd7e7;
  --mint: #c8f1e0;
  --peach: #ffd5bf;
  --lemon: #fff1a8;
  --lavender: #eadfff;
  --success: #4ea775;
  --danger: #dc6284;
  --border: rgba(171, 105, 136, 0.15);
  --shadow: 0 24px 60px rgba(219, 130, 163, 0.22);
  --paper-shadow: 0 10px 0 rgba(255, 255, 255, 0.75);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Noto Sans KR", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 15% 20%, rgba(255, 214, 229, 0.98), transparent 18%),
    radial-gradient(circle at 85% 16%, rgba(255, 238, 244, 0.92), transparent 16%),
    radial-gradient(circle at 18% 86%, rgba(255, 229, 237, 0.9), transparent 18%),
    radial-gradient(circle at 82% 80%, rgba(248, 226, 236, 0.86), transparent 18%),
    linear-gradient(180deg, var(--bg-top), var(--bg-bottom));
  overflow-x: hidden;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

body::before {
  background-image:
    radial-gradient(circle at 50% 0%, rgba(255, 192, 214, 0.35) 0 10px, transparent 11px),
    radial-gradient(circle at 0% 50%, rgba(255, 192, 214, 0.35) 0 10px, transparent 11px),
    radial-gradient(circle at 100% 50%, rgba(255, 192, 214, 0.35) 0 10px, transparent 11px),
    radial-gradient(circle at 50% 100%, rgba(255, 192, 214, 0.35) 0 10px, transparent 11px);
  background-size: 120px 120px;
  background-position: 0 0;
  opacity: 0.22;
}

body::after {
  background:
    radial-gradient(circle at 12% 18%, rgba(255, 255, 255, 0.4), transparent 12%),
    radial-gradient(circle at 88% 26%, rgba(255, 230, 240, 0.45), transparent 11%),
    radial-gradient(circle at 18% 82%, rgba(255, 240, 245, 0.42), transparent 10%),
    radial-gradient(circle at 84% 76%, rgba(255, 215, 228, 0.34), transparent 10%);
}

.app-shell {
  position: relative;
  z-index: 1;
  width: min(1080px, calc(100% - 28px));
  margin: 0 auto;
  padding: 28px 0 44px;
  display: grid;
  gap: 20px;
}

.petal-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.petal {
  position: absolute;
  top: -14%;
  width: 26px;
  height: 18px;
  opacity: 0.72;
  border-radius: 70% 30% 65% 35%;
  background:
    radial-gradient(circle at 30% 35%, rgba(255, 255, 255, 0.9), transparent 28%),
    linear-gradient(135deg, rgba(255, 216, 230, 0.98), rgba(244, 150, 186, 0.95));
  box-shadow:
    inset -2px -3px 5px rgba(225, 109, 150, 0.2),
    0 6px 12px rgba(219, 130, 163, 0.12);
  transform-origin: center;
  animation-name: sakura-fall, sakura-sway;
  animation-timing-function: linear, ease-in-out;
  animation-iteration-count: infinite, infinite;
}

.petal::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 65% 35% 70% 30%;
  transform: rotate(28deg);
  background: linear-gradient(135deg, rgba(255, 232, 240, 0.78), rgba(243, 146, 182, 0.28));
}

.petal-1 {
  left: 6%;
  animation-duration: 16s, 4.4s;
  animation-delay: -2s, -1s;
}

.petal-2 {
  left: 18%;
  width: 20px;
  height: 14px;
  animation-duration: 19s, 5s;
  animation-delay: -8s, -2s;
}

.petal-3 {
  left: 31%;
  width: 30px;
  height: 20px;
  animation-duration: 22s, 6.2s;
  animation-delay: -5s, -3s;
}

.petal-4 {
  left: 47%;
  width: 18px;
  height: 13px;
  animation-duration: 18s, 4.1s;
  animation-delay: -10s, -2.5s;
}

.petal-5 {
  left: 61%;
  animation-duration: 24s, 6.5s;
  animation-delay: -6s, -1.5s;
}

.petal-6 {
  left: 73%;
  width: 22px;
  height: 16px;
  animation-duration: 20s, 5.4s;
  animation-delay: -12s, -2.8s;
}

.petal-7 {
  left: 84%;
  width: 28px;
  height: 19px;
  animation-duration: 23s, 6.8s;
  animation-delay: -4s, -3.4s;
}

.petal-8 {
  left: 92%;
  width: 16px;
  height: 12px;
  animation-duration: 17s, 4.6s;
  animation-delay: -14s, -2s;
}

.support-button {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 3;
  border: 0;
  border-radius: 999px;
  padding: 12px 18px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 234, 242, 0.95));
  color: var(--accent-strong);
  font-family: "Noto Sans KR", sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  box-shadow:
    inset 0 -4px 0 rgba(255, 219, 233, 0.62),
    0 12px 24px rgba(219, 130, 163, 0.18);
  cursor: pointer;
  transition: transform 140ms ease, box-shadow 140ms ease;
}

.support-button:hover {
  transform: translateY(-2px);
  box-shadow:
    inset 0 -4px 0 rgba(255, 219, 233, 0.7),
    0 16px 28px rgba(219, 130, 163, 0.24);
}

.hero-card,
.game-card,
.result-card {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(255, 251, 247, 0.92)),
    var(--panel);
  border: 2px solid rgba(255, 255, 255, 0.7);
  border-radius: 34px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.hero-card::before,
.game-card::before,
.result-card::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px dashed rgba(240, 126, 168, 0.3);
  border-radius: 24px;
  pointer-events: none;
}

.hero-card {
  padding: 28px 28px 30px;
}

.hero-card::after {
  content: "❀ ✿ ❀";
  position: absolute;
  top: 18px;
  right: 24px;
  font-size: 1.3rem;
  letter-spacing: 0.14em;
  color: rgba(227, 91, 137, 0.34);
  pointer-events: none;
}

.eyebrow,
.prompt-tag,
.result-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 8px 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255, 215, 231, 0.88), rgba(255, 255, 255, 0.96));
  color: var(--accent-strong);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  box-shadow: 0 6px 18px rgba(240, 126, 168, 0.16);
}

.eyebrow::before,
.prompt-tag::before,
.result-tag::before {
  content: "✿";
  font-size: 0.7rem;
}

h1 {
  margin: 14px 0 12px;
  font-family: "Kiwi Maru", "Noto Sans KR", serif;
  font-size: clamp(2.5rem, 6.4vw, 4.5rem);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -0.03em;
  color: #c7537f;
  text-shadow: 0 3px 0 rgba(255, 255, 255, 0.9);
}

.subtitle {
  margin: 0;
  max-width: 760px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.8;
}

.status-grid {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.status-box {
  position: relative;
  padding: 20px 18px;
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(255, 245, 249, 0.9));
  border: 1px solid rgba(240, 126, 168, 0.18);
  box-shadow:
    inset 0 -8px 0 rgba(255, 214, 230, 0.4),
    0 14px 24px rgba(233, 157, 185, 0.12);
}

.status-box:nth-child(2) {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 236, 241, 0.95));
}

.status-box:nth-child(3) {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(250, 233, 240, 0.92));
}

.status-box:nth-child(4) {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 228, 236, 0.92));
}

.status-box::after {
  content: "";
  position: absolute;
  top: 10px;
  right: 12px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.32);
}

.status-label {
  display: block;
  margin-bottom: 10px;
  font-size: 0.86rem;
  color: var(--muted);
}

.status-box strong {
  font-family: "Fredoka", sans-serif;
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: #8f4965;
}

.game-card {
  padding: 24px;
}

.question-panel {
  position: relative;
  padding: 26px 24px 24px;
  border-radius: 30px;
  background:
    linear-gradient(145deg, rgba(255, 239, 245, 0.96), rgba(255, 255, 255, 0.94) 55%, rgba(255, 245, 219, 0.92));
  border: 1px solid rgba(240, 126, 168, 0.16);
  box-shadow:
    inset 0 -10px 0 rgba(255, 219, 233, 0.45),
    0 20px 32px rgba(240, 126, 168, 0.12);
}

.question-stickers {
  position: absolute;
  top: 14px;
  right: 16px;
  display: flex;
  gap: 10px;
  font-size: 1.2rem;
  color: rgba(227, 91, 137, 0.72);
}

.question-stickers span:first-child {
  transform: rotate(-12deg);
}

.question-stickers span:last-child {
  transform: rotate(10deg);
}

.question-panel h2 {
  margin: 16px 0 8px;
  font-family: "Kiwi Maru", serif;
  font-size: clamp(3.2rem, 10vw, 5.8rem);
  line-height: 1;
  color: #9c4c74;
}

.prompt-copy {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.choices {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.choice-button {
  position: relative;
  padding: 18px 10px;
  border: 0;
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 1), rgba(255, 244, 248, 0.96));
  box-shadow:
    inset 0 -8px 0 rgba(255, 219, 233, 0.55),
    0 12px 20px rgba(236, 162, 189, 0.16);
  font-family: "Noto Sans JP", "Fredoka", sans-serif;
  font-size: clamp(1.9rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  transition:
    transform 150ms ease,
    box-shadow 150ms ease,
    background 150ms ease;
}

.choice-button::before {
  content: "";
  position: absolute;
  inset: 9px;
  border: 1px dashed rgba(240, 126, 168, 0.18);
  border-radius: 16px;
}

.choice-button:hover:not(:disabled),
.choice-button:focus-visible:not(:disabled) {
  transform: translateY(-4px) rotate(-1.4deg) scale(1.02);
  box-shadow:
    inset 0 -8px 0 rgba(255, 219, 233, 0.65),
    0 18px 28px rgba(236, 162, 189, 0.24);
  outline: none;
}

.choice-button:nth-child(2n) {
  background: linear-gradient(180deg, rgba(255, 255, 255, 1), rgba(255, 238, 244, 0.96));
}

.choice-button:nth-child(3n) {
  background: linear-gradient(180deg, rgba(255, 255, 255, 1), rgba(255, 231, 239, 0.96));
}

.choice-button:disabled {
  cursor: default;
}

.choice-button.correct {
  background: linear-gradient(180deg, rgba(245, 255, 250, 1), rgba(214, 244, 225, 0.96));
  box-shadow:
    inset 0 -8px 0 rgba(157, 221, 185, 0.44),
    0 14px 22px rgba(98, 179, 129, 0.16);
}

.choice-button.wrong {
  background: linear-gradient(180deg, rgba(255, 247, 250, 1), rgba(255, 215, 228, 0.96));
  box-shadow:
    inset 0 -8px 0 rgba(245, 157, 186, 0.38),
    0 14px 22px rgba(220, 98, 132, 0.14);
}

.feedback-row {
  margin-top: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.feedback {
  margin: 0;
  min-height: 1.6em;
  padding: 12px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--muted);
  font-weight: 700;
  box-shadow: var(--paper-shadow);
}

.feedback.success {
  color: var(--success);
  background: rgba(240, 255, 247, 0.9);
}

.feedback.error {
  color: var(--danger);
  background: rgba(255, 244, 248, 0.92);
}

.primary-button,
.secondary-button {
  border: 0;
  border-radius: 999px;
  padding: 15px 24px;
  font-family: "Noto Sans KR", sans-serif;
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  transition: transform 140ms ease, box-shadow 140ms ease;
}

.primary-button:hover,
.secondary-button:hover {
  transform: translateY(-2px);
}

.primary-button {
  background: linear-gradient(135deg, #f07ea8, #f7aa8a);
  color: #fff;
  box-shadow: 0 16px 24px rgba(240, 126, 168, 0.28);
}

.secondary-button {
  background: linear-gradient(135deg, #8d6ad8, #b18cf6);
  color: #fff;
  box-shadow: 0 16px 24px rgba(141, 106, 216, 0.22);
}

.result-card {
  padding: 24px;
}

.result-card h3 {
  margin: 14px 0 10px;
  font-family: "Kiwi Maru", serif;
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  color: #9a5274;
}

.result-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.result-stats {
  margin: 20px 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.result-stats div {
  padding: 18px 16px;
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 246, 251, 0.95));
  box-shadow:
    inset 0 -8px 0 rgba(255, 221, 234, 0.5),
    0 12px 20px rgba(236, 162, 189, 0.14);
}

.result-stats dt {
  font-size: 0.88rem;
  color: var(--muted);
}

.result-stats dd {
  margin: 8px 0 0;
  font-family: "Fredoka", sans-serif;
  font-size: 1.6rem;
  color: #8f4965;
}

.review-panel {
  margin: 8px 0 20px;
  padding: 18px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 251, 253, 0.96), rgba(255, 243, 248, 0.94));
  box-shadow:
    inset 0 -8px 0 rgba(255, 221, 234, 0.45),
    0 12px 20px rgba(236, 162, 189, 0.12);
}

.review-header h4 {
  margin: 0 0 6px;
  font-family: "Kiwi Maru", serif;
  font-size: 1.35rem;
  color: #9a5274;
}

.review-header p {
  margin: 0;
}

.review-list {
  margin-top: 16px;
  display: grid;
  gap: 12px;
}

.review-item {
  padding: 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(240, 126, 168, 0.15);
}

.review-item strong {
  display: block;
  margin: 6px 0 8px;
  font-size: 1.05rem;
  color: #804763;
}

.review-item p {
  margin: 4px 0;
  font-size: 0.95rem;
}

.review-item span {
  font-weight: 800;
  color: var(--accent-strong);
}

.review-badge {
  display: inline-flex;
  align-items: center;
  margin: 0;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 216, 231, 0.9);
  color: var(--accent-strong);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.review-item-perfect {
  background: linear-gradient(180deg, rgba(245, 255, 250, 0.98), rgba(232, 252, 242, 0.96));
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 5;
  display: grid;
  place-items: center;
  padding: 20px;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(104, 56, 77, 0.3);
  backdrop-filter: blur(4px);
}

.modal-card {
  position: relative;
  z-index: 1;
  width: min(100%, 440px);
  padding: 28px 24px 24px;
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 243, 248, 0.96));
  box-shadow:
    inset 0 -10px 0 rgba(255, 221, 234, 0.5),
    0 24px 44px rgba(104, 56, 77, 0.22);
  text-align: center;
}

.modal-card h3 {
  margin: 14px 0 12px;
  font-family: "Kiwi Maru", "Noto Sans KR", serif;
  font-size: 1.8rem;
  font-weight: 500;
  color: #9a5274;
}

.modal-card p {
  margin: 8px 0;
  color: var(--ink);
  line-height: 1.7;
}

.copy-account-button {
  margin-top: 6px;
  border: 0;
  border-radius: 999px;
  padding: 11px 16px;
  background: linear-gradient(135deg, #f07ea8, #f5a39e);
  color: #fff;
  font-family: "Noto Sans KR", sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 12px 22px rgba(240, 126, 168, 0.24);
}

.copy-feedback {
  min-height: 1.5em;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--accent-strong);
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 236, 243, 0.96);
  color: var(--accent-strong);
  font-size: 1.4rem;
  cursor: pointer;
}

.hidden {
  display: none;
}

@keyframes sakura-fall {
  0% {
    transform: translate3d(0, -10vh, 0) rotate(0deg);
  }

  100% {
    transform: translate3d(-22px, 120vh, 0) rotate(340deg);
  }
}

@keyframes sakura-sway {
  0%,
  100% {
    margin-left: 0;
  }

  25% {
    margin-left: 18px;
  }

  50% {
    margin-left: -14px;
  }

  75% {
    margin-left: 24px;
  }
}

@media (max-width: 860px) {
  .status-grid,
  .result-stats,
  .choices {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .app-shell {
    width: min(100% - 16px, 100%);
    padding: 18px 0 28px;
  }

  .hero-card,
  .game-card,
  .result-card {
    border-radius: 28px;
  }

  .hero-card,
  .game-card,
  .result-card,
  .question-panel {
    padding: 18px;
  }

  .status-grid,
  .result-stats,
  .choices {
    grid-template-columns: 1fr;
  }

  .feedback-row {
    align-items: stretch;
    flex-direction: column;
  }

  .feedback {
    width: 100%;
  }

  .primary-button,
  .secondary-button {
    width: 100%;
  }

  .hero-card::after {
    top: 14px;
    right: 16px;
    font-size: 1rem;
  }

  .petal {
    opacity: 0.58;
  }

  .support-button {
    top: 12px;
    right: 12px;
    padding: 10px 14px;
    font-size: 0.88rem;
  }
}
