@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@400;500;700;900&family=ZCOOL+KuaiLe&display=swap");

:root {
  --bg: #121212;
  --bg-soft: #1c1c1c;
  --card: rgba(29, 29, 29, 0.92);
  --card-light: rgba(255, 255, 255, 0.06);
  --text: #f7f2e8;
  --muted: #c9bfaf;
  --accent: #ffbe33;
  --accent-deep: #f29f05;
  --danger: #ff6b6b;
  --success: #73e2a7;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.38);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 14px;
  --max-width: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Noto Sans SC", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(255, 190, 51, 0.18), transparent 28%),
    radial-gradient(circle at right 20%, rgba(255, 109, 45, 0.14), transparent 24%),
    linear-gradient(180deg, #111111 0%, #17130f 38%, #0f0f0f 100%);
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.page-shell {
  position: relative;
  width: min(calc(100% - 32px), var(--max-width));
  margin: 0 auto;
  padding: 24px 0 56px;
}

.bg-glow {
  position: fixed;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  z-index: 0;
}

.bg-glow-left {
  top: -80px;
  left: -90px;
  background: rgba(255, 190, 51, 0.22);
}

.bg-glow-right {
  right: -60px;
  top: 140px;
  background: rgba(255, 116, 52, 0.16);
}

.topbar,
.main-content,
.page-footer {
  position: relative;
  z-index: 1;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent);
  letter-spacing: 0.14em;
  font-size: 0.82rem;
  text-transform: uppercase;
}

.brand-title,
.section-heading h2,
.hero-copy h2,
.coupon-card h3,
#easterCountTitle {
  margin: 0;
  font-family: "ZCOOL KuaiLe", "Noto Sans SC", cursive;
}

.brand-title {
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.05;
}

.topbar-badge {
  flex-shrink: 0;
  padding: 10px 16px;
  border: 1px solid rgba(255, 190, 51, 0.32);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(12px);
}

.main-content {
  display: block;
}

.panel {
  display: none;
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, rgba(34, 34, 34, 0.96), rgba(19, 19, 19, 0.96));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow);
  padding: 28px;
}

.panel.active {
  display: block;
  animation: fadeUp 0.5s ease;
}

.hero-panel {
  display: none;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 28px;
  align-items: center;
}

.hero-panel.active {
  display: grid;
}

.hero-copy h2 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.15;
  margin-bottom: 14px;
}

.invite-tag {
  display: inline-flex;
  padding: 8px 14px;
  margin: 0 0 18px;
  border-radius: 999px;
  background: rgba(255, 190, 51, 0.12);
  border: 1px solid rgba(255, 190, 51, 0.22);
  color: #ffe2a0;
}

.hero-desc,
.section-heading p,
.question-text,
.feedback-message,
.coupon-body p,
.coupon-footer,
.easter-copy,
.footer-card p,
.sub-note {
  color: var(--muted);
  line-height: 1.75;
}

.hero-points {
  margin: 20px 0 28px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.hero-points li {
  position: relative;
  padding-left: 28px;
}

.hero-points li::before {
  content: "🍔";
  position: absolute;
  left: 0;
  top: 0;
}

.hero-card {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255, 190, 51, 0.12), rgba(255, 255, 255, 0.04));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 18px 50px rgba(0, 0, 0, 0.35);
}

.burger-badge {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 1;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.66);
  color: var(--accent);
  border: 1px solid rgba(255, 190, 51, 0.28);
}

.hero-image {
  width: 100%;
  height: 420px;
  object-fit: cover;
  filter: saturate(1.08) contrast(1.02);
}

.hero-card-info {
  padding: 22px;
  background: linear-gradient(180deg, rgba(12, 12, 12, 0.1), rgba(12, 12, 12, 0.82));
}

.hero-card-info p,
.hero-card-info span {
  margin: 0;
  color: var(--muted);
}

.hero-card-info strong {
  display: block;
  margin: 8px 0 10px;
  font-size: 1.2rem;
}

.section-heading {
  margin-bottom: 22px;
}

.section-heading h2 {
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  margin-bottom: 8px;
}

.question-progress {
  font-size: 0.95rem;
}

.quiz-card,
.result-card,
.footer-card {
  border-radius: var(--radius-lg);
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.quiz-card {
  padding: 24px;
}

.quiz-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.quiz-chip {
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 190, 51, 0.14);
  color: #ffe5a8;
  font-size: 0.92rem;
}

.quiz-chip.quiet {
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
}

.question-text {
  margin: 0 0 18px;
  font-size: clamp(1.2rem, 3vw, 1.5rem);
  color: var(--text);
}

.options-wrap {
  position: relative;
  min-height: 280px;
  display: grid;
  gap: 14px;
}

.options-wrap.escape-mode {
  display: grid;
  min-height: auto;
}

.option-btn {
  width: 100%;
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.04));
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.option-btn:hover,
.option-btn:active {
  transform: translateY(-2px);
  border-color: rgba(255, 190, 51, 0.46);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
}

.option-btn.escape-option:hover,
.option-btn.escape-option:active {
  transform: none;
}

.option-btn.selected,
.option-btn.correct {
  background: linear-gradient(180deg, rgba(255, 190, 51, 0.22), rgba(255, 159, 0, 0.12));
  border-color: rgba(255, 190, 51, 0.7);
}

.option-btn.wrong {
  border-color: rgba(255, 107, 107, 0.64);
  background: rgba(255, 107, 107, 0.1);
}

.option-btn.escape-option {
  position: absolute;
  width: min(260px, calc(100% - 12px));
  left: 0;
  top: 0;
  z-index: 20;
}

.option-btn.escape-option.jitter {
  animation: shake 0.28s linear;
}

.feedback-message {
  min-height: 32px;
  margin: 18px 0 0;
  font-size: 0.96rem;
}

.quiz-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 18px;
}

.quiz-actions .btn[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.feedback-message.error {
  color: #ffb8b8;
}

.feedback-message.success {
  color: var(--success);
}

.cta-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.btn:hover,
.btn:active {
  transform: translateY(-2px) scale(1.01);
}

.btn-primary {
  background: linear-gradient(180deg, var(--accent), var(--accent-deep));
  color: #1a1205;
  box-shadow: 0 16px 34px rgba(255, 190, 51, 0.22);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.btn-ghost {
  background: transparent;
  color: var(--muted);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.result-panel .section-heading {
  text-align: center;
}

.coupon-card,
.easter-card {
  padding: 24px;
}

.coupon-card {
  background:
    linear-gradient(180deg, rgba(255, 190, 51, 0.09), rgba(255, 255, 255, 0.03)),
    var(--card);
  box-shadow: 0 0 0 1px rgba(255, 190, 51, 0.14), 0 0 28px rgba(255, 190, 51, 0.12);
}

.coupon-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  padding-bottom: 18px;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.16);
}

.coupon-label {
  margin: 0 0 8px;
  color: var(--accent);
}

.coupon-head h3 {
  font-size: clamp(1.4rem, 3vw, 2rem);
}

.status-pill {
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #ffe0a6;
  white-space: nowrap;
}

.coupon-body {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 18px;
  padding: 20px 0;
}

.coupon-main,
.coupon-side {
  padding: 18px;
  border-radius: var(--radius-md);
  background: var(--card-light);
}

.coupon-main strong {
  display: block;
  margin-bottom: 10px;
  font-size: 1.6rem;
  color: #fff2c8;
}

.coupon-side span {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--accent);
}

.coupon-side-btn {
  margin-top: 14px;
  width: 100%;
}

.coupon-footer {
  margin: 0;
  padding-top: 4px;
}

.result-actions {
  justify-content: center;
  margin-top: 22px;
}

.guide-card {
  margin-top: 22px;
  padding: 24px;
  background: linear-gradient(180deg, rgba(255, 190, 51, 0.08), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(255, 190, 51, 0.18);
}

.guide-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}

.guide-head h3 {
  margin: 0;
  font-size: clamp(1.3rem, 3vw, 1.8rem);
}

.guide-trigger {
  flex-shrink: 0;
}

.guide-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.guide-block {
  min-height: 120px;
  padding: 18px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.05);
  border: 1px dashed rgba(255, 190, 51, 0.2);
}

.guide-block span {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--accent);
}

.guide-block p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.guide-block-image {
  min-height: 160px;
}

.guide-card-standalone {
  margin-top: 0;
}

.easter-card {
  text-align: center;
}

.easter-meter {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 200px;
  height: 200px;
  margin: 8px auto 18px;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, rgba(255, 190, 51, 0.18), rgba(255, 190, 51, 0.02) 60%),
    rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 190, 51, 0.26);
  box-shadow: 0 0 26px rgba(255, 190, 51, 0.16);
}

.easter-meter span {
  color: var(--muted);
  margin-bottom: 8px;
}

.easter-meter strong {
  font-size: 3rem;
  font-family: "ZCOOL KuaiLe", "Noto Sans SC", cursive;
  color: #fff0bb;
}

.page-footer {
  margin-top: 22px;
}

.footer-card {
  padding: 18px 20px;
}

.footer-card p {
  margin: 8px 0;
}

.footer-easter-egg {
  margin-top: 16px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.footer-easter-egg summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 20px;
  color: #ffe1a1;
  font-weight: 700;
  user-select: none;
}

.footer-easter-egg summary::-webkit-details-marker {
  display: none;
}

.footer-easter-egg summary::after {
  content: "＋";
  float: right;
  color: var(--accent);
  transition: transform 0.25s ease;
}

.footer-easter-egg[open] summary::after {
  transform: rotate(45deg);
}

.easter-essay {
  padding: 0 20px 20px;
  color: var(--muted);
  line-height: 1.95;
}

.easter-essay p {
  margin: 0;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes shake {
  0%,
  100% { transform: translateX(0) rotate(0deg); }
  25% { transform: translateX(-5px) rotate(-2deg); }
  50% { transform: translateX(6px) rotate(2deg); }
  75% { transform: translateX(-4px) rotate(-1deg); }
}

@media (max-width: 900px) {
  .hero-panel,
  .hero-panel.active,
  .coupon-body {
    grid-template-columns: 1fr;
  }

  .hero-image {
    height: 320px;
  }
}

@media (max-width: 640px) {
  .page-shell {
    width: min(calc(100% - 20px), var(--max-width));
    padding-top: 16px;
  }

  .topbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .panel {
    padding: 20px;
    border-radius: 24px;
  }

  .quiz-card,
  .coupon-card,
  .easter-card,
  .footer-card {
    padding: 18px;
  }

  .option-btn,
  .btn {
    width: 100%;
  }

  .option-btn.escape-option {
    width: calc(100% - 4px);
  }

  .coupon-head {
    flex-direction: column;
  }

  .easter-meter {
    width: 170px;
    height: 170px;
  }
}
