:root {
  --cream: #fff7df;
  --peach: #ffd9c8;
  --pink: #ffd7e8;
  --blue: #cce9ff;
  --ink: #6f5f6d;
  --muted: #8c7a86;
  --title-ink: #6d5a68;
  --font-main: "Zen Maru Gothic", "Noto Sans TC", "Microsoft JhengHei", system-ui, sans-serif;
  --font-soft: "Zen Maru Gothic", "Noto Sans TC", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  position: relative;
  color: var(--ink);
  font-family: var(--font-main);
  font-weight: 500;
  letter-spacing: 0.02em;
  background:
    radial-gradient(circle at 12% 18%, rgba(255, 245, 218, 0.96) 0 18%, transparent 36%),
    radial-gradient(circle at 20% 72%, rgba(255, 204, 220, 0.42) 0 10%, transparent 28%),
    radial-gradient(circle at 82% 18%, rgba(191, 222, 255, 0.42) 0 13%, transparent 34%),
    radial-gradient(circle at 88% 78%, rgba(255, 227, 183, 0.45) 0 14%, transparent 32%),
    radial-gradient(circle at 52% 22%, rgba(255, 235, 243, 0.35) 0 10%, transparent 28%),
    linear-gradient(135deg, #fff8ef 0%, #ffeef3 38%, #eef6ff 72%, #fff8ef 100%);
  overflow-x: hidden;
}

body::before,
body::after {
  content: "";
  position: fixed;
  z-index: 0;
  border-radius: 999px;
  pointer-events: none;
}

body::before {
  width: 360px;
  height: 360px;
  top: 16%;
  left: -130px;
  background: rgba(255, 255, 255, 0.34);
  box-shadow:
    260px 110px 0 -118px rgba(255, 207, 225, 0.28),
    820px 34px 0 -128px rgba(197, 231, 255, 0.28);
}

body::after {
  width: 310px;
  height: 310px;
  right: -110px;
  bottom: 8%;
  background: rgba(255, 236, 199, 0.36);
  box-shadow:
    -540px -70px 0 -128px rgba(255, 255, 255, 0.28),
    -260px -250px 0 -138px rgba(255, 205, 224, 0.24);
}

.page-shell {
  position: relative;
  z-index: 2;
  width: min(100%, 1060px);
  margin: 0 auto;
  padding: 18px 18px 56px;
}

.page-decor,
.hero-decor {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.hero-decor {
  position: absolute;
  z-index: -1;
  inset: -28px -44px -16px;
}

.decor {
  position: absolute;
  display: block;
  opacity: 0.68;
  pointer-events: none;
}

.decor-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 188, 212, 0.7);
  box-shadow: 0 0 16px rgba(255, 188, 212, 0.35);
}

.decor-dot:nth-child(3n) {
  background: rgba(184, 220, 255, 0.72);
  box-shadow: 0 0 16px rgba(184, 220, 255, 0.35);
}

.decor-star {
  width: 18px;
  height: 18px;
  background: rgba(255, 230, 155, 0.82);
  clip-path: polygon(50% 0, 62% 35%, 100% 50%, 62% 65%, 50% 100%, 38% 65%, 0 50%, 38% 35%);
  filter: drop-shadow(0 0 8px rgba(255, 234, 173, 0.72));
  transform: rotate(10deg);
}

.decor-heart {
  width: 15px;
  height: 15px;
  background: rgba(255, 148, 188, 0.6);
  border-radius: 4px 4px 1px 4px;
  transform: rotate(45deg);
  filter: drop-shadow(0 4px 8px rgba(255, 151, 190, 0.18));
}

.decor-heart::before,
.decor-heart::after {
  content: "";
  position: absolute;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: inherit;
}

.decor-heart::before {
  left: -7px;
}

.decor-heart::after {
  top: -7px;
}

.decor-cloud {
  width: 58px;
  height: 24px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.52);
  box-shadow: 0 10px 24px rgba(176, 145, 156, 0.08);
}

.decor-cloud::before,
.decor-cloud::after {
  content: "";
  position: absolute;
  bottom: 8px;
  border-radius: 50%;
  background: inherit;
}

.decor-cloud::before {
  width: 28px;
  height: 28px;
  left: 9px;
}

.decor-cloud::after {
  width: 34px;
  height: 34px;
  right: 8px;
}

.decor-balloon {
  width: 30px;
  height: 38px;
  border-radius: 50% 50% 46% 46%;
  background: rgba(194, 225, 255, 0.48);
  box-shadow: inset -5px -6px 0 rgba(122, 177, 225, 0.08), 0 8px 20px rgba(135, 167, 198, 0.1);
}

.decor-balloon::before {
  content: "";
  position: absolute;
  left: 12px;
  bottom: -23px;
  width: 1px;
  height: 24px;
  background: rgba(147, 128, 148, 0.2);
}

.decor-balloon::after {
  content: "";
  position: absolute;
  left: 11px;
  bottom: -2px;
  border-top: 5px solid rgba(194, 225, 255, 0.48);
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
}

.decor-1 { top: 8%; left: 5%; transform: scale(1.35); }
.decor-2 { top: 18%; left: 14%; }
.decor-3 { top: 11%; right: 19%; transform: rotate(24deg) scale(1.15); }
.decor-4 { top: 28%; right: 8%; }
.decor-5 { top: 58%; left: 7%; }
.decor-6 { top: 67%; left: 19%; transform: scale(0.8); }
.decor-7 { top: 70%; right: 13%; transform: rotate(-16deg); }
.decor-8 { top: 43%; right: 23%; transform: rotate(45deg) scale(0.86); }
.decor-9 { bottom: 7%; right: 4%; transform: scale(1.2); }
.decor-10 { bottom: 18%; left: 31%; background: rgba(255, 226, 160, 0.72); }
.decor-11 { bottom: 19%; right: 30%; background: rgba(255, 184, 213, 0.42); }
.decor-12 { bottom: 31%; left: 3%; transform: rotate(18deg) scale(0.86); }

.hero {
  position: relative;
  width: 100%;
  max-width: 1120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin: 0 auto 28px;
  padding: 28px 16px 18px;
  text-align: center;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -40px -70px -30px;
  z-index: -2;
  background:
    radial-gradient(circle at 18% 35%, rgba(255, 188, 212, 0.3), transparent 44%),
    radial-gradient(circle at 76% 20%, rgba(188, 220, 255, 0.3), transparent 44%),
    radial-gradient(circle at 52% 76%, rgba(255, 224, 178, 0.28), transparent 46%),
    radial-gradient(circle at 44% 24%, rgba(255, 255, 255, 0.3), transparent 30%);
  filter: blur(18px);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  inset: -20px -30px 0;
  z-index: -1;
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, 0.7) 0 2px, transparent 3px),
    radial-gradient(circle, rgba(255, 215, 230, 0.7) 0 2px, transparent 3px),
    radial-gradient(circle, rgba(190, 220, 255, 0.65) 0 2px, transparent 3px);
  background-size: 180px 120px, 220px 140px, 200px 160px;
  background-position: 20px 20px, 120px 40px, 60px 90px;
  opacity: 0.45;
  pointer-events: none;
}

.hero-decor-1 { top: 15%; left: 5%; transform: rotate(45deg) scale(1.1); }
.hero-decor-2 { top: 9%; left: 18%; transform: rotate(-12deg) scale(0.9); }
.hero-decor-3 { top: 18%; right: 13%; background: rgba(184, 220, 255, 0.7); }
.hero-decor-4 { top: 7%; right: 2%; transform: scale(0.88); }
.hero-decor-5 { top: 45%; left: 1%; background: rgba(255, 184, 213, 0.42); }
.hero-decor-6 { bottom: 20%; left: 15%; background: rgba(255, 226, 160, 0.7); transform: scale(0.75); }
.hero-decor-7 { bottom: 25%; right: 18%; transform: rotate(18deg) scale(0.82); }
.hero-decor-8 { top: 41%; right: 4%; transform: rotate(45deg) scale(0.86); }
.hero-decor-9 { bottom: 10%; right: 7%; background: rgba(255, 188, 212, 0.65); }
.hero-decor-10 { bottom: 7%; left: 4%; transform: scale(0.7); }

.title-banner {
  display: block;
  width: min(100%, 980px);
  height: auto;
  margin: 0 auto;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.subtitle {
  margin: 10px 0 0;
  color: #7d6a78;
  font-family: var(--font-soft);
  font-size: clamp(1rem, 2.4vw, 1.28rem);
  font-weight: 700;
  letter-spacing: 0.04em;
}

.countdown-timer {
  position: relative;
  width: min(100%, 640px);
  margin: 18px auto 0;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  overflow: visible;
}

.countdown-timer::before {
  content: none;
}

.countdown-timer > * {
  position: relative;
  z-index: 1;
}

.countdown-title {
  margin-bottom: 12px;
  color: #7a6475;
  font-family: var(--font-soft);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-shadow: 0 2px 0 rgba(255, 255, 255, 0.55);
}

.countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(62px, 1fr));
  gap: 10px;
  border: none;
  background: transparent;
  box-shadow: none;
}

.countdown-unit {
  position: relative;
  min-height: 88px;
  border-radius: 24px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.86), rgba(255, 232, 243, 0.66), rgba(224, 244, 255, 0.62));
  border: 1px solid rgba(255, 255, 255, 0.78);
  box-shadow:
    0 14px 30px rgba(150, 120, 140, 0.14),
    0 6px 18px rgba(170, 204, 230, 0.12),
    inset 0 2px 2px rgba(255, 255, 255, 0.72),
    inset 0 -8px 16px rgba(255, 205, 226, 0.15);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.countdown-unit::before {
  content: "";
  position: absolute;
  top: 6px;
  left: 10px;
  right: 10px;
  height: 34%;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.08));
  pointer-events: none;
}

.countdown-unit:nth-child(1) {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.88), rgba(255, 226, 238, 0.68));
}

.countdown-unit:nth-child(2) {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.88), rgba(222, 241, 255, 0.7));
}

.countdown-unit:nth-child(3) {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.88), rgba(255, 239, 207, 0.7));
}

.countdown-unit:nth-child(4) {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.88), rgba(235, 226, 255, 0.64));
}

.countdown-number {
  position: relative;
  z-index: 1;
  color: #6f5b70;
  font-family: var(--font-soft);
  font-size: clamp(2rem, 6vw, 3.35rem);
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  text-shadow:
    0 2px 0 rgba(255, 255, 255, 0.72),
    0 8px 18px rgba(150, 116, 136, 0.16);
  transform-origin: center;
}

.countdown-number.is-ticking {
  animation: countdownPop 0.32s ease;
}

.countdown-label {
  position: relative;
  z-index: 1;
  margin-top: 6px;
  color: #90798a;
  font-family: var(--font-soft);
  font-size: 0.86rem;
  font-weight: 800;
}

.countdown-message {
  margin-top: 12px;
  color: #8b7585;
  font-family: var(--font-main);
  font-weight: 700;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.6);
}

.inside-countdown {
  margin-top: 0;
}

@keyframes countdownPop {
  0% {
    transform: translateY(0) scale(1);
    filter: brightness(1);
  }
  45% {
    transform: translateY(-3px) scale(1.08);
    filter: brightness(1.12);
  }
  100% {
    transform: translateY(0) scale(1);
    filter: brightness(1);
  }
}

.card,
.main-card,
.panel,
.result-card,
.stats-card,
.list-card {
  position: relative;
  z-index: 2;
  overflow: hidden;
  border-radius: 32px;
  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.86),
      rgba(255, 246, 250, 0.72) 48%,
      rgba(238, 247, 255, 0.68)
    );
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow:
    0 24px 70px rgba(144, 112, 128, 0.14),
    0 10px 28px rgba(146, 184, 220, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.88),
    inset 0 -10px 24px rgba(255, 228, 238, 0.16);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.card {
  width: min(100%, 720px);
  margin: 0 auto;
}

.card::before,
.main-card::before,
.panel::before,
.result-card::before,
.stats-card::before,
.list-card::before,
.stat-card::before,
.mini-card::before,
.details-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    radial-gradient(circle at 18% 0%, rgba(255, 255, 255, 0.78), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.32), transparent 42%);
  pointer-events: none;
  z-index: 0;
}

.card > *,
.main-card > *,
.panel > *,
.result-card > *,
.stats-card > *,
.list-card > *,
.stat-card > *,
.mini-card > *,
.details-card > * {
  position: relative;
  z-index: 1;
}

.app-card {
  position: relative;
  z-index: 2;
  padding: clamp(22px, 5vw, 42px);
  box-shadow:
    0 28px 80px rgba(255, 178, 204, 0.18),
    0 16px 42px rgba(177, 211, 244, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    inset 0 -12px 28px rgba(255, 226, 238, 0.18);
}

.step-content {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.eyebrow,
.soft-badge {
  align-self: center;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(255, 234, 244, 0.9);
  color: #aa607c;
  font-family: var(--font-soft);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.card-title,
.result-title {
  margin: 0;
  color: var(--title-ink);
  font-family: var(--font-soft);
  font-size: clamp(1.7rem, 6vw, 2.55rem);
  font-weight: 800;
  letter-spacing: 0.03em;
  line-height: 1.2;
  text-align: center;
}

.result-title,
.reveal-title {
  font-family: var(--font-soft);
  font-weight: 900;
  color: var(--title-ink);
  letter-spacing: 0.04em;
}

.card h2,
.mini-card h2,
.section-title {
  font-family: var(--font-soft);
  font-weight: 800;
  color: var(--title-ink);
  letter-spacing: 0.03em;
}

.stat-card,
.result-card,
.participant-list,
.details-card {
  font-family: var(--font-main);
  color: var(--ink);
}

.card-copy {
  max-width: 560px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.75;
  text-align: center;
}

.form-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.field-label {
  color: #756674;
  font-family: var(--font-soft);
  font-weight: 700;
  letter-spacing: 0.03em;
}

.text-input {
  width: 100%;
  min-height: 54px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--title-ink);
  font-family: var(--font-main);
  font-weight: 500;
  font-size: 1rem;
  outline: none;
  padding: 0 16px;
  box-shadow:
    inset 0 2px 8px rgba(140, 112, 128, 0.08),
    0 8px 20px rgba(155, 185, 220, 0.08);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.text-input::placeholder {
  color: rgba(125, 106, 120, 0.58);
  font-family: var(--font-main);
  font-weight: 500;
}

.text-input:focus {
  border-color: rgba(255, 175, 205, 0.72);
  box-shadow:
    0 0 0 4px rgba(255, 203, 222, 0.26),
    inset 0 2px 8px rgba(140, 112, 128, 0.08);
}

button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 14px 24px;
  border: none;
  border-radius: 999px;
  font-family: var(--font-soft);
  font-size: inherit;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.03em;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition:
    transform 0.18s ease,
    box-shadow 0.22s ease,
    filter 0.22s ease,
    opacity 0.2s ease;
}

.btn,
.primary-button,
.secondary-button,
.danger-button,
.guess-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 54px;
  padding: 14px 24px;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  font-family: var(--font-soft);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.03em;
  overflow: hidden;
  isolation: isolate;
  transition:
    transform 0.18s ease,
    box-shadow 0.22s ease,
    filter 0.22s ease,
    opacity 0.2s ease;
}

.btn::before,
.primary-button::before,
.secondary-button::before,
.danger-button::before,
.guess-button::before,
.details-card summary::before {
  content: "";
  position: absolute;
  inset: 3px 4px auto;
  height: 48%;
  border-radius: inherit;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.84) 0%,
    rgba(255, 255, 255, 0.38) 58%,
    rgba(255, 255, 255, 0.06) 100%
  );
  pointer-events: none;
  z-index: 0;
}

.btn::after,
.primary-button::after,
.secondary-button::after,
.danger-button::after,
.guess-button::after,
.details-card summary::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow:
    inset 0 2px 2px rgba(255, 255, 255, 0.6),
    inset 0 -8px 12px rgba(125, 92, 108, 0.06),
    inset 0 -1px 0 rgba(120, 94, 112, 0.1);
  pointer-events: none;
  z-index: 0;
}

.btn > *,
.primary-button > *,
.secondary-button > *,
.danger-button > *,
.guess-button > * {
  position: relative;
  z-index: 1;
}

.primary-button {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.24), transparent 52%),
    linear-gradient(135deg, #ffd9e8 0%, #fff6fb 48%, #dff0ff 100%);
  box-shadow:
    0 12px 0 rgba(213, 170, 192, 0.16),
    0 18px 34px rgba(172, 143, 160, 0.22),
    0 8px 18px rgba(170, 195, 220, 0.16);
  color: #6c5d6a;
}

.btn-primary,
.start-button,
.app-card:not(.reveal-card) .form-stack .primary-button {
  min-height: 58px;
  padding: 16px 30px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  background:
    radial-gradient(circle at 28% 18%, rgba(255, 255, 255, 0.88), transparent 30%),
    linear-gradient(135deg, #ff8fbd 0%, #ffb3d0 38%, #8fd0ff 100%);
  box-shadow:
    0 18px 34px rgba(255, 128, 180, 0.34),
    0 10px 24px rgba(120, 190, 240, 0.22),
    inset 0 2px 2px rgba(255, 255, 255, 0.72),
    inset 0 -8px 16px rgba(190, 70, 120, 0.14);
  color: #ffffff;
  font-size: 1.08rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-shadow: 0 2px 8px rgba(120, 70, 100, 0.22);
  animation: softPulse 2.8s ease-in-out infinite;
}

.btn-primary::before,
.start-button::before,
.app-card:not(.reveal-card) .form-stack .primary-button::before {
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.92) 0%,
      rgba(255, 255, 255, 0.45) 48%,
      rgba(255, 255, 255, 0.08) 100%
    );
}

.btn-primary::after,
.start-button::after,
.app-card:not(.reveal-card) .form-stack .primary-button::after {
  box-shadow:
    inset 0 2px 2px rgba(255, 255, 255, 0.72),
    inset 0 -9px 16px rgba(170, 65, 115, 0.16),
    0 10px 24px rgba(255, 120, 176, 0.26);
}

.secondary-button {
  align-self: center;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.34), transparent 54%),
    linear-gradient(135deg, #fff9fb 0%, #fffdf6 45%, #eef7ff 100%);
  color: #71616e;
  box-shadow:
    0 9px 0 rgba(198, 174, 188, 0.12),
    0 14px 28px rgba(142, 120, 135, 0.14);
}

.danger-button {
  width: 100%;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.28), transparent 52%),
    linear-gradient(135deg, #ffd7dc 0%, #ffe9ec 42%, #ffc4cb 100%);
  color: #8f5460;
  box-shadow:
    0 10px 0 rgba(205, 127, 139, 0.14),
    0 16px 30px rgba(177, 113, 126, 0.16);
}

button:hover,
.btn:hover,
.primary-button:hover,
.secondary-button:hover,
.danger-button:hover,
.guess-button:hover,
.details-card summary:hover {
  transform: translateY(-2px) scale(1.01);
  filter: saturate(1.04) brightness(1.02);
  box-shadow:
    0 14px 26px rgba(172, 143, 160, 0.22),
    0 8px 16px rgba(170, 195, 220, 0.18);
}

.btn-primary:hover,
.start-button:hover,
.app-card:not(.reveal-card) .form-stack .primary-button:hover {
  transform: translateY(-3px) scale(1.025);
  filter: brightness(1.04) saturate(1.08);
  box-shadow:
    0 22px 40px rgba(255, 120, 176, 0.38),
    0 12px 28px rgba(120, 190, 240, 0.25),
    inset 0 2px 2px rgba(255, 255, 255, 0.76),
    inset 0 -8px 16px rgba(190, 70, 120, 0.14);
}

button:active,
.btn:active,
.primary-button:active,
.secondary-button:active,
.danger-button:active,
.guess-button:active,
.details-card summary:active {
  transform: translateY(1px) scale(0.99);
  box-shadow:
    inset 0 4px 8px rgba(92, 72, 82, 0.06),
    0 4px 10px rgba(160, 132, 145, 0.14);
}

.btn-primary:active,
.start-button:active,
.app-card:not(.reveal-card) .form-stack .primary-button:active {
  transform: translateY(1px) scale(0.99);
}

@keyframes softPulse {
  0%,
  100% {
    box-shadow:
      0 18px 34px rgba(255, 128, 180, 0.3),
      0 10px 24px rgba(120, 190, 240, 0.18),
      inset 0 2px 2px rgba(255, 255, 255, 0.72),
      inset 0 -8px 16px rgba(190, 70, 120, 0.14);
  }
  50% {
    box-shadow:
      0 22px 44px rgba(255, 128, 180, 0.42),
      0 14px 30px rgba(120, 190, 240, 0.26),
      inset 0 2px 2px rgba(255, 255, 255, 0.78),
      inset 0 -8px 16px rgba(190, 70, 120, 0.14);
  }
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.62;
  transform: none;
  filter: grayscale(0.08);
}

button:disabled:hover {
  transform: none;
  filter: grayscale(0.08);
}

.guess-grid,
.result-choice {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.guess-button {
  gap: 10px;
  min-height: 96px;
  padding: 20px 18px;
  color: var(--title-ink);
  font-family: var(--font-soft);
  font-weight: 800;
  font-size: clamp(1rem, 4vw, 1.16rem);
}

.guess-button.boy {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.28), transparent 50%),
    linear-gradient(135deg, #bfe3ff 0%, #e9f7ff 48%, #a9d5ff 100%);
  color: #4c6682;
  box-shadow:
    0 12px 0 rgba(121, 174, 218, 0.16),
    0 18px 34px rgba(105, 154, 196, 0.18),
    0 8px 18px rgba(255, 255, 255, 0.46);
}

.guess-button.girl {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.3), transparent 50%),
    linear-gradient(135deg, #ffd1e2 0%, #fff0f6 48%, #ffc2db 100%);
  color: #86586c;
  box-shadow:
    0 12px 0 rgba(220, 143, 176, 0.15),
    0 18px 34px rgba(196, 112, 150, 0.18),
    0 8px 18px rgba(255, 255, 255, 0.46);
}

.guess-button.selected {
  outline: 4px solid rgba(255, 255, 255, 0.82);
  box-shadow:
    0 0 0 5px rgba(255, 171, 207, 0.32),
    0 16px 34px rgba(132, 101, 132, 0.18);
}

.button-icon {
  font-size: 1.35rem;
  line-height: 1;
  filter: drop-shadow(0 2px 3px rgba(255, 255, 255, 0.5));
}

.gender-symbol {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.45em;
  height: 1.45em;
  margin-right: 0.35em;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.72),
    0 4px 10px rgba(120, 95, 120, 0.12);
  font-size: 1.05em;
  font-weight: 900;
  line-height: 1;
}

.gender-symbol-boy {
  color: #4f78a8;
}

.gender-symbol-girl {
  color: #b75c82;
}

.reveal-choice-group {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin: 22px 0;
}

.reveal-choice-circle {
  position: relative;
  width: 150px;
  height: 150px;
  min-height: 150px;
  padding: 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-soft);
  font-size: 1.08rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition:
    transform 0.18s ease,
    box-shadow 0.22s ease,
    filter 0.22s ease;
}

.reveal-choice-circle::before {
  content: "";
  position: absolute;
  top: 12px;
  left: 22px;
  right: 22px;
  height: 38%;
  border-radius: 999px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.82),
    rgba(255, 255, 255, 0.16)
  );
  pointer-events: none;
}

.reveal-choice-circle > * {
  position: relative;
  z-index: 1;
}

.reveal-choice-boy {
  background:
    radial-gradient(circle at 30% 22%, rgba(255, 255, 255, 0.9), transparent 28%),
    linear-gradient(145deg, #b7e2ff 0%, #dff3ff 48%, #8fcfff 100%);
  color: #4f6f94;
  box-shadow:
    0 18px 36px rgba(120, 190, 240, 0.26),
    inset 0 2px 2px rgba(255, 255, 255, 0.72),
    inset 0 -10px 18px rgba(80, 150, 210, 0.12);
}

.reveal-choice-girl {
  background:
    radial-gradient(circle at 30% 22%, rgba(255, 255, 255, 0.9), transparent 28%),
    linear-gradient(145deg, #ffc1dc 0%, #ffe2ee 48%, #ff96c5 100%);
  color: #915b74;
  box-shadow:
    0 18px 36px rgba(255, 130, 180, 0.28),
    inset 0 2px 2px rgba(255, 255, 255, 0.72),
    inset 0 -10px 18px rgba(190, 70, 120, 0.12);
}

.reveal-choice-circle:hover {
  transform: translateY(-4px) scale(1.03);
  filter: brightness(1.04) saturate(1.06);
}

.reveal-choice-circle:active {
  transform: translateY(1px) scale(0.98);
}

.reveal-choice-circle .gender-symbol {
  margin-right: 0;
  font-size: 1.7rem;
}

.locked-result-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  margin-top: 8px;
}

.result-locked-content {
  min-height: 240px;
  align-items: center;
  justify-content: center;
}

.locked-result-copy {
  margin: 0;
  color: #786575;
  font-family: var(--font-soft);
  font-size: clamp(1.2rem, 4vw, 1.55rem);
  font-weight: 900;
  letter-spacing: 0.04em;
  line-height: 1.5;
  text-align: center;
  text-shadow: 0 2px 0 rgba(255, 255, 255, 0.72);
}

.start-reveal-button {
  width: min(100%, 420px);
  min-height: 76px;
  padding: 20px 38px;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 999px;
  background:
    radial-gradient(circle at 26% 18%, rgba(255, 255, 255, 0.94), transparent 29%),
    linear-gradient(135deg, #ff8fbd 0%, #ffc6dc 38%, #aee3ff 68%, #7cc9ff 100%);
  box-shadow:
    0 20px 0 rgba(190, 126, 168, 0.12),
    0 28px 52px rgba(255, 128, 180, 0.34),
    0 16px 34px rgba(120, 190, 240, 0.26),
    inset 0 2px 2px rgba(255, 255, 255, 0.76),
    inset 0 -12px 20px rgba(110, 150, 210, 0.14);
  color: #ffffff;
  font-size: clamp(1.18rem, 4vw, 1.5rem);
  font-weight: 900;
  letter-spacing: 0.06em;
  text-shadow: 0 3px 12px rgba(112, 72, 118, 0.28);
  animation: softPulse 2.6s ease-in-out infinite;
}

.start-reveal-button:hover {
  transform: translateY(-4px) scale(1.03);
  filter: brightness(1.05) saturate(1.08);
  box-shadow:
    0 22px 0 rgba(190, 126, 168, 0.1),
    0 34px 60px rgba(255, 128, 180, 0.4),
    0 18px 38px rgba(120, 190, 240, 0.3),
    inset 0 2px 2px rgba(255, 255, 255, 0.8),
    inset 0 -12px 20px rgba(110, 150, 210, 0.14);
}

.secret-modal[hidden] {
  display: none;
}

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

.secret-modal-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 216, 234, 0.34), transparent 34%),
    radial-gradient(circle at 72% 28%, rgba(190, 228, 255, 0.32), transparent 36%),
    rgba(104, 86, 102, 0.28);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.secret-modal-card {
  position: relative;
  z-index: 1;
  width: min(100%, 430px);
  padding: 30px 26px 24px;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 30px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(255, 244, 249, 0.82), rgba(235, 248, 255, 0.78));
  box-shadow:
    0 28px 70px rgba(116, 88, 108, 0.22),
    0 12px 30px rgba(150, 196, 230, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  text-align: center;
  overflow: hidden;
}

.secret-modal-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    radial-gradient(circle at 24% 0%, rgba(255, 255, 255, 0.8), transparent 32%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.42), transparent 48%);
  pointer-events: none;
}

.secret-modal-card > * {
  position: relative;
  z-index: 1;
}

.secret-modal-card h3 {
  margin: 0 0 12px;
  color: #765f72;
  font-family: var(--font-soft);
  font-size: clamp(1.35rem, 5vw, 1.75rem);
  font-weight: 900;
  letter-spacing: 0.04em;
  line-height: 1.35;
}

.secret-modal-card p {
  margin: 0;
  color: #8b7484;
  font-family: var(--font-main);
  font-weight: 700;
  line-height: 1.7;
}

.secret-modal-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 22px;
}

.btn-secondary {
  min-width: 116px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.34), transparent 54%),
    linear-gradient(135deg, #fff9fb 0%, #fffdf6 45%, #eef7ff 100%);
  color: #71616e;
  box-shadow:
    0 9px 0 rgba(198, 174, 188, 0.12),
    0 14px 28px rgba(142, 120, 135, 0.14);
}

.message-area {
  display: none;
  margin-bottom: 16px;
  padding: 12px 14px;
  border-radius: 16px;
  font-family: var(--font-soft);
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
}

.message-area.show {
  display: block;
}

.message-area.error {
  background: rgba(255, 236, 236, 0.92);
  color: #a44f5a;
}

.message-area.success {
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 24px;
  background:
    linear-gradient(
      135deg,
      rgba(255, 220, 235, 0.88),
      rgba(255, 241, 247, 0.78),
      rgba(224, 242, 255, 0.72)
    );
  box-shadow:
    0 12px 28px rgba(255, 168, 200, 0.16),
    0 6px 18px rgba(150, 190, 225, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.82);
  color: #8a5f73;
}

.success-content {
  align-items: center;
}

.complete-content {
  position: relative;
  z-index: 20;
  gap: 14px;
}

.complete-icon {
  font-size: 2rem;
  line-height: 1;
  filter: drop-shadow(0 6px 12px rgba(255, 160, 200, 0.22));
}

.complete-title {
  margin: 0 0 8px;
  color: #7a5f72;
  font-family: var(--font-soft);
  font-size: clamp(1.45rem, 5vw, 2rem);
  font-weight: 900;
  letter-spacing: 0.04em;
  text-align: center;
  text-shadow: 0 2px 0 rgba(255, 255, 255, 0.72);
}

.complete-description {
  max-width: 560px;
  margin: 0 auto 20px;
  color: #8a6f80;
  font-family: var(--font-main);
  font-size: clamp(0.98rem, 3.6vw, 1.08rem);
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1.8;
  text-align: center;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.65);
}

.complete-next-button {
  position: relative;
  z-index: 30;
  flex-direction: column;
  gap: 4px;
  width: min(100%, 420px);
  min-height: 72px;
  margin-top: 8px;
  padding: 18px 28px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 999px;
  background:
    radial-gradient(circle at 28% 18%, rgba(255, 255, 255, 0.88), transparent 30%),
    linear-gradient(135deg, #ff8fbd 0%, #ffb3d0 38%, #8fd0ff 100%);
  box-shadow:
    0 18px 34px rgba(255, 128, 180, 0.34),
    0 10px 24px rgba(120, 190, 240, 0.22),
    inset 0 2px 2px rgba(255, 255, 255, 0.72),
    inset 0 -8px 16px rgba(190, 70, 120, 0.14);
  color: #ffffff;
  font-family: var(--font-soft);
  font-weight: 900;
  letter-spacing: 0.04em;
  text-shadow: 0 2px 8px rgba(120, 70, 100, 0.22);
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  will-change: transform;
  transform-origin: center;
}

.complete-next-button *,
.complete-next-button::before,
.complete-next-button::after {
  pointer-events: none;
}

.complete-next-button:hover {
  transform: translateY(-3px) scale(1.025);
  filter: brightness(1.04) saturate(1.08);
  box-shadow:
    0 22px 40px rgba(255, 120, 176, 0.38),
    0 12px 28px rgba(120, 190, 240, 0.25),
    inset 0 2px 2px rgba(255, 255, 255, 0.76),
    inset 0 -8px 16px rgba(190, 70, 120, 0.14);
}

.complete-next-button:active {
  transform: translateY(1px) scale(0.99);
}

.next-button-note {
  display: block;
  font-size: 0.86rem;
  font-weight: 700;
  opacity: 0.92;
}

.next-button-main {
  display: block;
  font-size: 1.08rem;
  font-weight: 900;
}

.balloon,
.confetti {
  pointer-events: none;
}

.inside-pill {
  margin: 4px auto 6px;
}

.reveal-card {
  width: min(100%, 900px);
}

.mini-card h2 {
  margin: 0 0 8px;
  font-size: 1.1rem;
}

.ceremony-screen {
  position: relative;
  display: flex;
  min-height: clamp(360px, 62vh, 620px);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  text-align: center;
  overflow: hidden;
}

.reveal-countdown-screen::before,
.reveal-countdown-screen::after {
  content: "";
  position: absolute;
  z-index: 0;
  border-radius: 999px;
  pointer-events: none;
}

.reveal-countdown-screen::before {
  width: 360px;
  height: 360px;
  top: 4%;
  left: calc(50% - 180px);
  background:
    radial-gradient(circle at 35% 32%, rgba(255, 255, 255, 0.76), transparent 24%),
    linear-gradient(135deg, rgba(255, 210, 229, 0.46), rgba(205, 236, 255, 0.5));
  filter: blur(5px);
  opacity: 0.72;
  animation: countdownGlowFloat 4s ease-in-out infinite;
}

.reveal-countdown-screen::after {
  width: 180px;
  height: 180px;
  right: 8%;
  bottom: 10%;
  background: rgba(255, 234, 185, 0.36);
  box-shadow:
    -520px -30px 0 -68px rgba(184, 226, 255, 0.34),
    -420px 120px 0 -76px rgba(255, 188, 218, 0.28),
    -80px -220px 0 -78px rgba(255, 255, 255, 0.45);
  animation: countdownGlowFloat 4.8s ease-in-out infinite reverse;
}

.count-number {
  display: grid;
  width: 150px;
  height: 150px;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffb7d3, #b5e3ff);
  box-shadow: 0 18px 44px rgba(137, 106, 140, 0.22);
  color: #fff;
  font-family: var(--font-soft);
  font-size: 5rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  animation: countPop 0.8s ease both;
}

.count-number.pop {
  animation: countPop 0.8s ease both;
}

@keyframes countPop {
  0% {
    transform: scale(0.7);
    opacity: 0;
  }
  60% {
    transform: scale(1.08);
    opacity: 1;
  }
  100% {
    transform: scale(1);
  }
}

.reveal-countdown-title,
.reveal-countdown-copy,
.reveal-countdown-number {
  position: relative;
  z-index: 1;
}

.reveal-countdown-title {
  margin: 0;
  color: #7a5f72;
  font-family: var(--font-soft);
  font-size: clamp(1.35rem, 5vw, 2.3rem);
  font-weight: 900;
  letter-spacing: 0.08em;
  text-shadow: 0 2px 0 rgba(255, 255, 255, 0.72);
}

.reveal-countdown-copy {
  margin: 0;
  color: #8a6f80;
  font-family: var(--font-main);
  font-size: clamp(1rem, 3.4vw, 1.18rem);
  font-weight: 800;
  letter-spacing: 0.05em;
}

.reveal-countdown-number {
  display: inline-block;
  font-family: var(--font-soft);
  font-size: clamp(5rem, 18vw, 12rem);
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-align: center;
  background:
    linear-gradient(135deg, #ff8fbd 0%, #ffd1e5 35%, #8fd0ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-stroke: 2px rgba(255, 255, 255, 0.58);
  filter:
    drop-shadow(0 4px 0 rgba(255, 255, 255, 0.38))
    drop-shadow(0 16px 30px rgba(120, 90, 130, 0.3))
    drop-shadow(0 0 36px rgba(255, 170, 210, 0.42));
}

.reveal-countdown-number.is-popping {
  animation: revealCountdownPop 1s ease-in-out both;
}

@keyframes revealCountdownPop {
  0% {
    transform: scale(0.86) translateY(8px);
    opacity: 0;
    filter:
      blur(4px)
      drop-shadow(0 4px 0 rgba(255, 255, 255, 0.38))
      drop-shadow(0 16px 30px rgba(120, 90, 130, 0.3))
      drop-shadow(0 0 36px rgba(255, 170, 210, 0.42));
  }
  22% {
    transform: scale(1.14) translateY(-6px);
    opacity: 1;
    filter:
      blur(0)
      drop-shadow(0 4px 0 rgba(255, 255, 255, 0.38))
      drop-shadow(0 18px 34px rgba(120, 90, 130, 0.32))
      drop-shadow(0 0 44px rgba(255, 170, 210, 0.48));
  }
  55% {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
  100% {
    transform: scale(0.92) translateY(0);
    opacity: 0.82;
  }
}

@keyframes countdownGlowFloat {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-10px) scale(1.04);
  }
}

.reveal-final-mode .hero {
  display: none;
}

.reveal-final-mode .page-shell {
  width: min(100%, 1180px);
  padding-top: 24px;
}

.reveal-final-mode .reveal-card {
  width: min(100%, 1080px);
}

.reveal-final-stage {
  --theme-main: #8fcfff;
  --theme-deep: #4f78a8;
  --theme-soft: #e4f5ff;
  --theme-glow: rgba(120, 190, 240, 0.32);
  --theme-accent: #f5d98d;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-height: 72vh;
  padding: clamp(12px, 2vw, 18px);
  overflow: hidden;
}

.result-theme-girl {
  --theme-main: #ff9fc9;
  --theme-deep: #b75c82;
  --theme-soft: #fff0f7;
  --theme-glow: rgba(255, 130, 180, 0.34);
  --theme-accent: #f5d98d;
}

.celebration-overlay {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 999;
  pointer-events: none;
  overflow: hidden;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.reveal-final-mode .celebration-overlay {
  opacity: 1;
}

.celebration-balloons,
.celebration-confetti {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.reveal-final-stage,
.result-hero-card,
.result-image-block,
.stats-grid,
.winner-lists,
.details-card {
  position: relative;
  z-index: 10;
}

.result-hero-card {
  position: relative;
  width: min(100%, 760px);
  margin: 0 auto 12px;
  padding: clamp(18px, 3vw, 30px);
  border: 1px solid rgba(255, 255, 255, 0.84);
  border-radius: 34px;
  background:
    radial-gradient(circle at 24% 0%, rgba(255, 255, 255, 0.9), transparent 34%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(255, 250, 245, 0.82), var(--theme-soft));
  box-shadow:
    0 30px 84px var(--theme-glow),
    0 14px 32px rgba(150, 120, 136, 0.12),
    inset 0 2px 2px rgba(255, 255, 255, 0.86),
    inset 0 -16px 28px rgba(125, 92, 108, 0.06);
  text-align: center;
  overflow: hidden;
}

.result-hero-card,
.result-hero-card * {
  text-align: center;
}

.result-hero-card::before {
  content: "";
  position: absolute;
  inset: -40% -12% auto;
  height: 72%;
  border-radius: 50%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.68), rgba(255, 255, 255, 0));
  pointer-events: none;
}

.result-hero-card .soft-badge {
  margin-bottom: 4px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--theme-deep);
  box-shadow:
    0 8px 18px var(--theme-glow),
    inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

.result-hero-card .result-title {
  margin: 0 0 6px;
  font-size: clamp(2rem, 6.4vw, 3.85rem);
  color: var(--theme-deep);
  text-shadow:
    0 3px 0 rgba(255, 255, 255, 0.82),
    0 14px 26px var(--theme-glow);
}

.result-kicker {
  margin: 8px 0 2px;
  color: #8b7585;
  font-family: var(--font-soft);
  font-size: clamp(1.05rem, 3.6vw, 1.32rem);
  font-weight: 900;
  letter-spacing: 0.12em;
}

.result-story {
  max-width: 620px;
  margin: 8px auto 0;
  color: #7c6878;
  font-family: var(--font-main);
  font-size: clamp(0.92rem, 2.4vw, 1.05rem);
  font-weight: 700;
  line-height: 1.8;
}

.reveal-final-stage .real-result {
  font-size: clamp(2.3rem, 7vw, 4.2rem);
  line-height: 1.02;
}

.reveal-final-stage .real-result strong {
  display: inline-block;
  color: var(--theme-deep);
  text-shadow:
    0 4px 0 rgba(255, 255, 255, 0.82),
    0 18px 34px var(--theme-glow);
  animation: resultPopGlow 2.4s ease-in-out infinite;
}

.reveal-final-stage .stats-grid,
.reveal-final-stage .winner-lists,
.reveal-final-stage .details-card {
  width: 100%;
}

.reveal-final-stage .stat-card,
.reveal-final-stage .mini-card,
.reveal-final-stage .details-card {
  background:
    radial-gradient(circle at 22% 0%, rgba(255, 255, 255, 0.86), transparent 34%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.84), rgba(255, 250, 247, 0.68), var(--theme-soft));
  box-shadow:
    0 16px 38px rgba(150, 120, 136, 0.1),
    0 8px 22px var(--theme-glow),
    inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

.reveal-final-stage .stat-card strong {
  color: var(--theme-deep);
}

.reveal-final-stage .mini-card h2 {
  color: var(--theme-deep);
}

.result-image-block {
  width: min(100%, 840px);
  margin: 14px auto 24px;
  padding: 0;
  text-align: center;
  background: transparent;
  border: none;
  box-shadow: none;
  border-radius: 0;
}

.result-image {
  display: block;
  width: 100%;
  height: auto;
  max-height: 64vh;
  object-fit: contain;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.result-theme-boy .result-image {
  box-shadow: none;
}

.result-theme-girl .result-image {
  box-shadow: none;
}

@media (min-width: 900px) {
  .result-image-block {
    width: min(100%, 880px);
    margin-top: 14px;
  }

  .result-image {
    max-height: 66vh;
  }
}

.celebration-overlay .balloon {
  position: absolute;
  left: var(--balloon-left);
  top: var(--balloon-top);
  width: var(--balloon-size, 72px);
  height: calc(var(--balloon-size, 72px) * 1.22);
  border-radius: 50% 50% 47% 47%;
  opacity: 0.88;
  transform: scale(var(--balloon-scale));
  animation: balloonFloat 4.8s ease-in-out infinite;
  animation-delay: var(--balloon-delay);
  box-shadow:
    inset -8px -10px 0 rgba(80, 110, 150, 0.08),
    inset 4px 4px 8px rgba(255, 255, 255, 0.56),
    0 16px 28px rgba(120, 110, 140, 0.12);
}

.celebration-overlay .balloon::before {
  content: "";
  position: absolute;
  top: 15%;
  left: 25%;
  width: 32%;
  height: 34%;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.58);
  filter: blur(1px);
}

.celebration-overlay .balloon::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -54%;
  width: 1px;
  height: 56%;
  background: rgba(120, 102, 122, 0.26);
  box-shadow: 0 -3px 0 3px currentColor;
}

.result-theme-boy .balloon-1,
.result-theme-boy .balloon-3 {
  color: #8fcfff;
  background: linear-gradient(145deg, #b8e4ff, #f2fbff 52%, #80c8ff);
}

.result-theme-boy .balloon-2 {
  color: #ffffff;
  background: linear-gradient(145deg, #ffffff, #eef8ff 52%, #d2ecff);
}

.result-theme-boy .balloon-4 {
  color: #f1d68a;
  background: linear-gradient(145deg, #fff4be, #fff8dc 52%, #f2d36f);
}

.result-theme-girl .balloon-1,
.result-theme-girl .balloon-3 {
  color: #ff9fc9;
  background: linear-gradient(145deg, #ffc2dc, #fff0f7 52%, #ff8fbe);
}

.result-theme-girl .balloon-2 {
  color: #ffffff;
  background: linear-gradient(145deg, #ffffff, #fff2f8 52%, #ffd7e8);
}

.result-theme-girl .balloon-4 {
  color: #f1c47e;
  background: linear-gradient(145deg, #ffe2bb, #fff4df 52%, #f4bd72);
}

.celebration-overlay .confetti {
  position: absolute;
  top: -12vh;
  left: var(--confetti-left);
  width: var(--confetti-width, 10px);
  height: var(--confetti-height, 18px);
  border-radius: 4px;
  opacity: 0;
  animation: confettiFall var(--confetti-duration) linear infinite;
  animation-delay: var(--confetti-delay);
}

.confetti-2,
.confetti-5 {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.confetti-3,
.confetti-6 {
  width: 18px;
  height: 7px;
  border-radius: 999px;
}

.result-theme-boy .confetti-1,
.result-theme-boy .confetti-4 {
  background: #8fcfff;
}

.result-theme-boy .confetti-2,
.result-theme-boy .confetti-5 {
  background: #ffffff;
}

.result-theme-boy .confetti-3,
.result-theme-boy .confetti-6 {
  background: #f2d36f;
}

.result-theme-girl .confetti-1,
.result-theme-girl .confetti-4 {
  background: #ff9fc9;
}

.result-theme-girl .confetti-2,
.result-theme-girl .confetti-5 {
  background: #ffffff;
}

.result-theme-girl .confetti-3,
.result-theme-girl .confetti-6 {
  background: #f4bd72;
}

@keyframes balloonFloat {
  0%,
  100% {
    transform: translateY(0) translateX(0) scale(var(--balloon-scale));
  }
  50% {
    transform: translateY(-14px) translateX(5px) scale(var(--balloon-scale));
  }
}

@keyframes confettiFall {
  0% {
    transform: translate3d(0, -12vh, 0) rotate(0deg);
    opacity: 0;
  }
  8% {
    opacity: 0.9;
  }
  100% {
    transform: translate3d(var(--confetti-drift), 112vh, 0) rotate(540deg);
    opacity: 0.9;
  }
}

@keyframes resultPopGlow {
  0%,
  100% {
    transform: scale(1);
    filter: brightness(1);
  }
  50% {
    transform: scale(1.025);
    filter: brightness(1.07);
  }
}

.result-screen {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.party-confetti {
  position: absolute;
  inset: -18px;
  z-index: -1;
  border-radius: 28px;
  background-image:
    radial-gradient(circle, rgba(255, 158, 194, 0.42) 0 3px, transparent 4px),
    radial-gradient(circle, rgba(157, 217, 255, 0.36) 0 4px, transparent 5px),
    radial-gradient(circle, rgba(255, 221, 158, 0.42) 0 3px, transparent 4px);
  background-position: 10% 14%, 76% 22%, 44% 82%;
  background-size: 140px 120px, 180px 150px, 160px 140px;
  opacity: 0.8;
}

.real-result {
  margin: 0;
  color: var(--title-ink);
  font-family: var(--font-soft);
  font-size: clamp(1.25rem, 4.8vw, 2rem);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-align: center;
}

.real-result strong {
  color: #d96695;
}

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

.stat-card,
.mini-card,
.details-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: 26px;
  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.82),
      rgba(255, 239, 247, 0.64),
      rgba(232, 245, 255, 0.62)
    );
  box-shadow:
    0 14px 34px rgba(150, 120, 136, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.stat-card {
  min-height: 92px;
  padding: 14px 10px;
  text-align: center;
}

.stat-card span {
  display: block;
  color: var(--muted);
  font-family: var(--font-soft);
  font-size: 0.88rem;
  font-weight: 700;
}

.stat-card strong {
  display: block;
  margin-top: 6px;
  color: #d66f9b;
  font-family: var(--font-soft);
  font-size: clamp(2rem, 5vw, 2.45rem);
  font-weight: 800;
  text-shadow: 0 2px 0 rgba(255, 255, 255, 0.72);
}

.winner-lists {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.mini-card {
  padding: 18px;
}

.winner-lists .mini-card:first-child {
  background:
    linear-gradient(145deg, rgba(240, 255, 250, 0.82), rgba(225, 245, 255, 0.66), rgba(255, 255, 255, 0.7));
}

.winner-lists .mini-card:last-child {
  background:
    linear-gradient(145deg, rgba(255, 248, 238, 0.82), rgba(255, 232, 238, 0.66), rgba(255, 255, 255, 0.68));
}

.mini-card p {
  margin: 0;
  color: #756270;
  line-height: 1.8;
}

.details-card {
  overflow: hidden;
}

.details-card summary {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  margin: 12px;
  cursor: pointer;
  padding: 14px 24px;
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.32), transparent 54%),
    linear-gradient(135deg, #fff9fb 0%, #fffdf6 45%, #eef7ff 100%);
  box-shadow:
    0 9px 0 rgba(198, 174, 188, 0.12),
    0 14px 28px rgba(142, 120, 135, 0.12);
  color: var(--title-ink);
  font-family: var(--font-soft);
  font-weight: 800;
  letter-spacing: 0.03em;
  overflow: hidden;
  isolation: isolate;
  transition:
    transform 0.18s ease,
    box-shadow 0.22s ease,
    filter 0.22s ease;
}

.table-wrap {
  overflow-x: auto;
  padding: 0 18px 18px;
  border-radius: 0 0 24px 24px;
}

table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
}

tbody tr {
  background: rgba(255, 255, 255, 0.28);
}

tbody tr:nth-child(even) {
  background: rgba(255, 246, 250, 0.34);
}

th,
td {
  padding: 12px 10px;
  border-bottom: 1px solid rgba(139, 118, 132, 0.16);
  text-align: left;
}

th {
  color: #7d6a78;
  font-family: var(--font-soft);
  font-size: 0.9rem;
  font-weight: 700;
}

td {
  color: var(--ink);
  font-family: var(--font-main);
}

.answer-correct,
.answer-wrong {
  display: inline-block;
  padding: 5px 10px;
  border-radius: 999px;
  font-family: var(--font-soft);
  font-weight: 800;
}

.answer-correct {
  background: #e7fff2;
  color: #4f8066;
}

.answer-wrong {
  background: #fff0f3;
  color: #ad5870;
}

@media (max-width: 760px) {
  .page-shell {
    padding: 12px 12px 42px;
  }

  .page-decor .decor-4,
  .page-decor .decor-5,
  .page-decor .decor-8,
  .page-decor .decor-11,
  .hero-decor-5,
  .hero-decor-8,
  .hero-decor-10 {
    display: none;
  }

  .decor {
    opacity: 0.5;
  }

  .decor-cloud {
    transform: scale(0.76);
  }

  .hero {
    gap: 10px;
    margin-bottom: 20px;
    padding: 16px 10px 4px;
  }

  .hero::before {
    inset: -24px -26px -14px;
    filter: blur(12px);
  }

  .hero::after {
    inset: -12px -12px 0;
    background-size: 150px 110px, 170px 120px, 160px 130px;
    opacity: 0.32;
  }

  .hero-decor {
    inset: -14px -12px -6px;
  }

  .title-banner {
    width: 100%;
    max-width: 100%;
    border-radius: 0;
    box-shadow: none;
  }

  .subtitle {
    font-size: 1rem;
    line-height: 1.55;
  }

  .card {
    border-radius: 22px;
  }

  .card,
  .main-card,
  .panel,
  .result-card,
  .stats-card,
  .list-card,
  .stat-card,
  .mini-card,
  .details-card {
    border-radius: 24px;
  }

  .app-card {
    padding: 22px 18px;
  }

  .guess-grid,
  .result-choice,
  .winner-lists {
    grid-template-columns: 1fr;
  }

  button,
  .primary-button,
  .secondary-button,
  .danger-button,
  .guess-button,
  .details-card summary {
    width: 100%;
    min-height: 56px;
    padding: 15px 18px;
    font-size: 1rem;
  }

  .guess-button {
    min-height: 76px;
  }

  .reveal-choice-group {
    display: flex;
    grid-template-columns: none;
  }

  button.reveal-choice-circle {
    width: 140px;
    height: 140px;
    min-height: 140px;
    padding: 16px;
  }

  .btn-primary,
  .start-button,
  .complete-next-button,
  .app-card:not(.reveal-card) .form-stack .primary-button {
    width: 100%;
    min-height: 60px;
    font-size: 1.05rem;
  }

  .complete-next-button {
    min-height: 76px;
    padding: 18px 22px;
    margin-top: 20px;
    animation: none;
  }

  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .reveal-final-mode .page-shell {
    padding-top: 12px;
  }

  .reveal-final-stage {
    min-height: auto;
    padding: 4px;
  }

  .result-hero-card {
    border-radius: 26px;
  }

  .celebration-overlay .balloon {
    opacity: 0.42;
  }

  .celebration-overlay .balloon:nth-child(n+9),
  .celebration-overlay .confetti:nth-child(n+25) {
    display: none;
  }

}

@media (max-width: 640px) {
  .ceremony-screen {
    min-height: 58vh;
    gap: 12px;
  }

  .reveal-countdown-number {
    font-size: clamp(5rem, 32vw, 9rem);
  }

  .reveal-countdown-screen::before {
    width: 260px;
    height: 260px;
    left: calc(50% - 130px);
  }

  .reveal-countdown-screen::after {
    width: 130px;
    height: 130px;
    opacity: 0.75;
  }

  .result-image-block {
    width: min(100%, 460px);
    margin: 12px auto 20px;
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
  }

  .result-image {
    max-height: 52vh;
    border: none;
    border-radius: 0;
    box-shadow: none;
  }
}

@media (max-width: 420px) {
  .app-card {
    padding: 20px 16px;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .reveal-final-stage .stats-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .countdown-timer {
    margin-top: 14px;
    padding: 0;
    border-radius: 0;
  }

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

  .countdown-unit {
    min-height: 76px;
    border-radius: 20px;
  }

  .countdown-number {
    font-size: clamp(1.55rem, 10vw, 2.35rem);
  }

  .countdown-label {
    font-size: 0.78rem;
  }

  .reveal-choice-group {
    gap: 12px;
  }

  button.reveal-choice-circle {
    width: 132px;
    height: 132px;
    min-height: 132px;
    font-size: 1rem;
  }

  .secret-modal {
    padding: 16px;
  }

  .secret-modal-card {
    width: calc(100% - 32px);
    padding: 24px 18px;
  }

  .secret-modal-actions {
    flex-direction: column-reverse;
  }

  .secret-modal-actions .btn {
    width: 100%;
  }

  .result-hero-card {
    padding: 18px 14px;
    margin-bottom: 10px;
  }

  .result-story {
    line-height: 1.7;
  }

  .reveal-final-stage .real-result {
    font-size: clamp(2rem, 12vw, 3.2rem);
  }

  .celebration-overlay .balloon {
    opacity: 0.72;
    transform: scale(0.82);
  }

  .celebration-overlay .confetti {
    opacity: 0.72;
  }

  .celebration-overlay .balloon:nth-child(n+7),
  .celebration-overlay .confetti:nth-child(n+19) {
    display: none;
  }

}

@media (max-width: 360px) {
  .countdown-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
