:root {
  --pink-gingham-1: #ffd6e4;
  --pink-gingham-2: #ffecf2;
  --pink-accent: #ff6fa5;
  --pink-deep: #e84c88;
  --pink-glow: rgba(255, 111, 165, 0.55);
  --alice-blue-light: #e6f6ff;
  --alice-blue: #89cff0;
  --alice-blue-mid: #5bb5e8;
  --alice-blue-deep: #2a7ab0;
  --alice-navy: #1f3a5c;
  --cream-white: #fffdf9;
  --gold-light: #fff0b8;
  --gold-mid: #e6b85c;
  --gold-deep: #b8862d;
  --text-main: #2c3e55;
  --text-soft: #5c738f;
  --font-display: 'Playfair Display', 'Georgia', 'Noto Serif SC', 'Noto Serif JP', serif;
  --font-body: 'Plus Jakarta Sans', 'PingFang SC', 'Hiragino Sans', 'Microsoft YaHei', 'Meiryo', sans-serif;
}

/* Language-specific subtle theme variations */
html[data-lang="zh"] {
  --theme-badge-bg: linear-gradient(135deg, #ff7eb3 0%, #ff5286 100%);
  --theme-tint: rgba(255, 182, 210, 0.16);
}
html[data-lang="ja"] {
  --theme-badge-bg: linear-gradient(135deg, #6ec3f4 0%, #4499e0 100%);
  --theme-tint: rgba(137, 207, 240, 0.16);
}
html[data-lang="en"] {
  --theme-badge-bg: linear-gradient(135deg, #a18cd1 0%, #7b68ee 100%);
  --theme-tint: rgba(161, 140, 209, 0.16);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  min-height: 100vh;
  overflow-x: hidden;
  font-family: var(--font-body);
  color: var(--text-main);
  background-color: #ffeaf1;
  user-select: none;
}

/* Outer Pink Gingham Border (matches design mockup outer frame) */
.gingham-outer-shell {
  min-height: 100vh;
  width: 100%;
  padding: 22px 26px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #fff5f8;
  background-image:
    linear-gradient(90deg, rgba(255, 158, 192, 0.28) 50%, transparent 50%),
    linear-gradient(rgba(255, 158, 192, 0.28) 50%, transparent 50%);
  background-size: 36px 36px;
}

/* Inner Wonderland Stage Container with Scalloped Lace Border */
.wonderland-stage {
  position: relative;
  width: 100%;
  max-width: 1480px;
  min-height: calc(100vh - 44px);
  border-radius: 34px;
  background: linear-gradient(180deg, #b8e8ff 0%, #dff5ff 46%, #f4fbff 68%, #e3f4ff 100%);
  box-shadow:
    0 18px 50px rgba(42, 122, 176, 0.18),
    0 0 0 8px #ffffff,
    0 0 0 11px rgba(255, 145, 184, 0.45),
    inset 0 0 45px rgba(255, 255, 255, 0.85);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  z-index: 1;
}

/* SVG Lace Frame Overlay */
.lace-frame-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 30;
}

/* Corner Ribbons on the Frame */
.corner-ornament {
  position: absolute;
  width: 68px;
  height: 68px;
  pointer-events: none;
  z-index: 32;
  filter: drop-shadow(0 4px 8px rgba(42, 122, 176, 0.18));
}
.corner-ornament.tl { top: 6px; left: 6px; }
.corner-ornament.tr { top: 6px; right: 6px; transform: scaleX(-1); }
.corner-ornament.bl { bottom: 6px; left: 6px; transform: scaleY(-1); }
.corner-ornament.br { bottom: 6px; right: 6px; transform: scale(-1, -1); }

/* Background Scene SVG (Sky, Clouds, Checkered Floor, Swirling Ribbons) */
.scene-bg-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  z-index: 1;
}

/* Ambient Sparkle Particles Layer */
.sparkles-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 4;
}

.sparkle-star {
  position: absolute;
  animation: twinkle 3.2s ease-in-out infinite;
}
.sparkle-star:nth-child(2n) { animation-duration: 2.5s; animation-delay: 0.7s; }
.sparkle-star:nth-child(3n) { animation-duration: 3.8s; animation-delay: 1.4s; }

@keyframes twinkle {
  0%, 100% { transform: scale(0.75) rotate(0deg); opacity: 0.45; }
  50% { transform: scale(1.2) rotate(15deg); opacity: 1; }
}

/* ==================== TOP NAVIGATION HEADER ==================== */
.top-header {
  position: relative;
  z-index: 25;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 26px 42px 10px 42px;
  gap: 20px;
}

/* Logo Crest (Top-Left matching mockup ribbon crest) */
.brand-crest {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.brand-crest:hover {
  transform: translateY(-2px) scale(1.02);
}

.brand-crest-svg {
  width: 280px;
  height: 112px;
  overflow: visible;
  filter: drop-shadow(0 6px 14px rgba(56, 138, 196, 0.22));
}

.brand-tagline-pill {
  margin-top: -10px;
  background: linear-gradient(90deg, rgba(255,255,255,0.92) 0%, #ffffff 50%, rgba(255,255,255,0.92) 100%);
  border: 2px solid #99d5f5;
  border-radius: 999px;
  padding: 5px 20px;
  font-size: 0.86rem;
  font-weight: 700;
  color: #27537d;
  letter-spacing: 0.04em;
  box-shadow: 0 4px 12px rgba(91, 181, 232, 0.22), inset 0 0 0 2px #fff5f8;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Top Navigation Bar (Right Side) */
.nav-controls-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.nav-pill-bar {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(137, 207, 240, 0.75);
  border-radius: 999px;
  padding: 6px 12px;
  box-shadow: 0 8px 22px rgba(42, 122, 176, 0.12), inset 0 0 0 2px #ffffff;
  gap: 4px;
}

.nav-link-btn {
  background: transparent;
  border: none;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 700;
  color: #2f5278;
  padding: 7px 15px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.25s ease;
  position: relative;
  display: flex;
  align-items: center;
  gap: 5px;
}

.nav-link-btn:hover,
.nav-link-btn.active {
  background: linear-gradient(135deg, #e1f4ff 0%, #ffe6f0 100%);
  color: #d93b78;
  box-shadow: 0 3px 10px rgba(255, 111, 165, 0.2);
}

.nav-sep {
  color: #89cff0;
  font-size: 0.75rem;
  pointer-events: none;
}

/* Utility Buttons (Language Switcher & Heart Like) */
.utility-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
}

.lang-switch-wrapper {
  position: relative;
}

.lang-trigger-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  background: rgba(255, 255, 255, 0.92);
  border: 2px solid #99d5f5;
  border-radius: 999px;
  padding: 7px 14px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 700;
  color: #2b547e;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(42, 122, 176, 0.14);
  transition: all 0.25s ease;
}

.lang-trigger-btn:hover {
  border-color: #ff85b3;
  transform: translateY(-1px);
}

.lang-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff6fa5;
  box-shadow: 0 0 6px #ff6fa5;
}

.lang-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 210px;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  border: 2px solid #99d5f5;
  border-radius: 20px;
  padding: 10px;
  box-shadow: 0 14px 34px rgba(31, 58, 92, 0.18), inset 0 0 0 2px #fff5f8;
  display: none;
  flex-direction: column;
  gap: 5px;
  z-index: 60;
}

.lang-dropdown.open {
  display: flex;
  animation: popDown 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes popDown {
  from { opacity: 0; transform: translateY(-8px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.lang-dropdown-header {
  font-size: 0.72rem;
  color: #7c92ab;
  padding: 4px 10px;
  border-bottom: 1px dashed #d8ecfa;
  margin-bottom: 2px;
}

.lang-option-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: transparent;
  border: none;
  padding: 8px 12px;
  border-radius: 12px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  color: #2c4a6f;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
}

.lang-option-btn:hover {
  background: #f0f9ff;
  color: #e84c88;
}

.lang-option-btn.selected {
  background: linear-gradient(135deg, #fff0f6 0%, #e8f6ff 100%);
  color: #d93b78;
  font-weight: 700;
}

.heart-like-btn {
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 2px solid #ff9ec2;
  background: linear-gradient(180deg, #ffffff 0%, #fff0f5 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(255, 111, 165, 0.24);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.heart-like-btn:hover {
  transform: scale(1.12) rotate(6deg);
}

.heart-like-btn:active {
  transform: scale(0.92);
}

.like-counter-badge {
  position: absolute;
  top: -6px;
  right: -8px;
  background: #ff4f8b;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 999px;
  border: 1.5px solid #fff;
  box-shadow: 0 2px 6px rgba(255, 79, 139, 0.4);
}

/* ==================== MAIN HERO STAGE ==================== */
.hero-main-grid {
  position: relative;
  z-index: 15;
  flex: 1;
  display: grid;
  grid-template-columns: 4.6fr 7.4fr;
  align-items: center;
  padding: 2px 38px 12px 38px;
  gap: 18px;
}

/* Left Column: Story Greeting Card + Alice Speech Bubble (replaces the 3 demo boxes) */
.left-story-column {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 490px;
  z-index: 20;
}

/* Welcome Story Card (Clean, cohesive, adapts automatically to browser language) */
.wonderland-welcome-card {
  position: relative;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(12px);
  border-radius: 24px;
  padding: 20px 24px 18px 24px;
  border: 2.5px solid #ffffff;
  box-shadow:
    0 14px 36px rgba(45, 118, 175, 0.14),
    0 0 0 2px rgba(137, 207, 240, 0.65),
    inset 0 0 24px rgba(255, 232, 242, 0.45);
  transition: transform 0.35s ease;
}

.wonderland-welcome-card:hover {
  transform: translateY(-3px);
}

.welcome-eyebrow-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.locale-ribbon-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--theme-badge-bg, linear-gradient(135deg, #ff7eb3 0%, #ff5286 100%));
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 5px 14px;
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(255, 105, 160, 0.32);
}

.tea-time-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #f0f9ff;
  border: 1.5px solid #bae3ff;
  color: #2d6694;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 4px 11px;
  border-radius: 999px;
}

.welcome-title {
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 2.4vw, 2.25rem);
  font-weight: 800;
  line-height: 1.28;
  color: #214166;
  margin-bottom: 12px;
  text-shadow: 0 2px 0 #ffffff;
}

.welcome-title .highlight-pink {
  color: #e64986;
  position: relative;
  display: inline-block;
}

.welcome-desc {
  font-size: 0.96rem;
  line-height: 1.75;
  color: #466282;
  margin-bottom: 18px;
}

/* Interactive Mini Charm Tags inside Welcome Card */
.charm-tags-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.charm-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(180deg, #ffffff 0%, #fff6fa 100%);
  border: 1.5px solid #ffc2da;
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #b83b6e;
  cursor: pointer;
  box-shadow: 0 3px 8px rgba(255, 133, 179, 0.15);
  transition: all 0.22s ease;
}

.charm-pill:hover {
  transform: translateY(-2px) scale(1.04);
  background: #fff0f6;
  border-color: #ff7eb3;
  box-shadow: 0 6px 14px rgba(255, 111, 165, 0.25);
}

/* Bottom Left Speech Bubble Box (Faithfully recreates the mockup's Alice dialogue box with Blue Rose) */
.alice-speech-card {
  position: relative;
  background: rgba(255, 255, 255, 0.93);
  border-radius: 26px;
  padding: 24px 28px 34px 28px;
  border: 3px solid #ffffff;
  box-shadow:
    0 14px 34px rgba(42, 122, 176, 0.16),
    0 0 0 2.5px #89cff0,
    inset 0 0 0 4px #eff9ff;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.alice-speech-card:hover {
  transform: translateY(-3px) scale(1.01);
  box-shadow:
    0 18px 40px rgba(42, 122, 176, 0.22),
    0 0 0 2.5px #ff85b3,
    inset 0 0 0 4px #fff5f9;
}

/* Speech Pointer Triangle on Right Side pointing toward Alice */
.speech-pointer-svg {
  position: absolute;
  right: -24px;
  top: 42%;
  width: 28px;
  height: 32px;
  pointer-events: none;
}

.speech-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.speaker-name-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: linear-gradient(135deg, #5bb5e8 0%, #3a8fd9 100%);
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 800;
  padding: 4px 14px;
  border-radius: 999px;
  box-shadow: 0 3px 10px rgba(58, 143, 217, 0.3);
}

.voice-wave-indicator {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 0.75rem;
  color: #6b89a8;
  font-weight: 600;
}

.voice-bar {
  width: 3px;
  height: 11px;
  background: #ff6fa5;
  border-radius: 3px;
  animation: voiceBounce 1s ease-in-out infinite;
}
.voice-bar:nth-child(2) { height: 15px; animation-delay: 0.2s; background: #5bb5e8; }
.voice-bar:nth-child(3) { height: 9px; animation-delay: 0.4s; }

@keyframes voiceBounce {
  0%, 100% { transform: scaleY(0.55); }
  50% { transform: scaleY(1.15); }
}

.speech-dialogue-text {
  font-size: 1.04rem;
  font-weight: 700;
  line-height: 1.72;
  color: #254061;
  text-align: center;
  padding: 4px 6px;
}

.speech-dialogue-text .wonderful-word {
  font-family: var(--font-display);
  font-style: italic;
  color: #e64986;
  font-size: 1.15rem;
  padding: 0 3px;
}

.speech-next-hint {
  text-align: right;
  font-size: 0.74rem;
  color: #88a4c0;
  margin-top: 4px;
}

/* Blue Rose Ornament at bottom center of Speech Card (Matches design mockup) */
.speech-blue-rose-wrap {
  position: absolute;
  bottom: -24px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 48px;
  pointer-events: none;
  filter: drop-shadow(0 4px 8px rgba(42, 122, 176, 0.22));
}

/* ==================== RIGHT COLUMN: ALICE KANBAN & FLOATING TEA PROPS ==================== */
.right-character-stage {
  position: relative;
  height: 100%;
  min-height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Glowing Halo behind Alice */
.alice-magic-halo {
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.92) 0%,
    rgba(255, 214, 232, 0.58) 38%,
    rgba(137, 207, 240, 0.35) 65%,
    transparent 78%
  );
  filter: blur(8px);
  z-index: 2;
  animation: haloPulse 4.5s ease-in-out infinite;
}

@keyframes haloPulse {
  0%, 100% { transform: scale(0.96); opacity: 0.85; }
  50% { transform: scale(1.05); opacity: 1; }
}

/* Vectorized Alice Kanban Character */
.alice-character-container {
  position: relative;
  z-index: 10;
  width: clamp(300px, 33vw, 460px);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: aliceFloat 4.8s ease-in-out infinite;
  cursor: pointer;
  filter:
    drop-shadow(0 0 4px #ffffff)
    drop-shadow(0 0 8px #ffffff)
    drop-shadow(0 16px 32px rgba(34, 96, 152, 0.26));
  transition: filter 0.3s ease;
}

.alice-character-container:hover {
  filter:
    drop-shadow(0 0 6px #ffffff)
    drop-shadow(0 0 14px rgba(255, 148, 194, 0.85))
    drop-shadow(0 20px 38px rgba(232, 76, 136, 0.3));
}

.alice-character-svg {
  width: 100%;
  height: auto;
  display: block;
  pointer-events: none;
}

/* Interactive Gift Box Glow Hotspot over Alice's hands */
.giftbox-hotspot {
  position: absolute;
  left: 16%;
  top: 41%;
  width: 34%;
  height: 27%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 244, 184, 0.65) 0%, rgba(255, 130, 182, 0.35) 55%, transparent 75%);
  mix-blend-mode: screen;
  pointer-events: none;
  animation: giftGlow 2.4s ease-in-out infinite;
}

@keyframes giftGlow {
  0%, 100% { transform: scale(0.9); opacity: 0.65; }
  50% { transform: scale(1.22); opacity: 1; }
}

@keyframes aliceFloat {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-12px) rotate(0.6deg); }
}

/* Floating SVG Wonderland Props around Alice */
.floating-prop {
  position: absolute;
  z-index: 14;
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  filter: drop-shadow(0 8px 16px rgba(31, 68, 110, 0.18));
}

.floating-prop:hover {
  transform: scale(1.18) rotate(8deg) !important;
  filter: drop-shadow(0 10px 22px rgba(255, 105, 160, 0.38));
}

.prop-cards-top {
  top: 2%;
  left: 4%;
  width: 132px;
  height: 118px;
  animation: floatPropA 5.2s ease-in-out infinite;
}

.prop-teacup-right {
  top: 3%;
  right: 2%;
  width: 130px;
  height: 112px;
  animation: floatPropB 4.6s ease-in-out infinite 0.5s;
}

.prop-strawberry-left {
  top: 32%;
  left: 0%;
  width: 78px;
  height: 86px;
  animation: floatPropB 4.1s ease-in-out infinite 0.2s;
}

.prop-macaron-right {
  top: 40%;
  right: 2%;
  width: 86px;
  height: 76px;
  animation: floatPropA 4.9s ease-in-out infinite 1.1s;
}

.prop-strawberry-bottom-left {
  bottom: 18%;
  left: 8%;
  width: 70px;
  height: 78px;
  animation: floatPropA 3.9s ease-in-out infinite 0.8s;
}

.prop-strawberry-mid-right {
  top: 23%;
  right: 11%;
  width: 64px;
  height: 72px;
  animation: floatPropB 4.3s ease-in-out infinite 1.5s;
}

@keyframes floatPropA {
  0%, 100% { transform: translateY(0px) rotate(-4deg); }
  50% { transform: translateY(-14px) rotate(5deg); }
}

@keyframes floatPropB {
  0%, 100% { transform: translateY(0px) rotate(4deg); }
  50% { transform: translateY(-11px) rotate(-6deg); }
}

/* ==================== BOTTOM RIGHT CTA ("Unwrap Gift" Medallion Button) ==================== */
.cta-unwrap-zone {
  position: absolute;
  right: 22px;
  bottom: 8px;
  z-index: 25;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.unwrap-medallion-btn {
  position: relative;
  width: 310px;
  height: 116px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  outline: none;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.3s ease;
  filter: drop-shadow(0 12px 26px rgba(232, 76, 136, 0.42));
}

.unwrap-medallion-btn:hover {
  transform: translateY(-4px) scale(1.04);
  filter:
    drop-shadow(0 16px 32px rgba(255, 82, 148, 0.58))
    drop-shadow(0 0 18px rgba(255, 196, 224, 0.9));
}

.unwrap-medallion-btn:active {
  transform: translateY(1px) scale(0.98);
}

.unwrap-btn-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.unwrap-btn-text-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  padding-top: 2px;
}

.unwrap-main-label {
  font-family: var(--font-display);
  font-size: 1.82rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.02em;
  text-shadow:
    0 2px 6px rgba(176, 32, 92, 0.65),
    0 0 12px rgba(255, 255, 255, 0.65);
  line-height: 1.1;
}

.unwrap-sub-label {
  margin-top: 4px;
  font-size: 0.84rem;
  font-weight: 800;
  color: #fff9fc;
  letter-spacing: 0.08em;
  text-shadow: 0 1px 4px rgba(168, 28, 86, 0.7);
}

/* White Pill Notice Banner below Unwrap Button (Matches mockup) */
.special-gift-banner {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.95);
  border: 2px solid #ffc2da;
  border-radius: 999px;
  padding: 7px 20px;
  font-size: 0.84rem;
  font-weight: 700;
  color: #365273;
  box-shadow: 0 6px 18px rgba(42, 122, 176, 0.15), inset 0 0 0 2px #fff7fa;
}

/* ==================== FOOTER BAR ==================== */
.stage-footer {
  position: relative;
  z-index: 22;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 44px 18px 44px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #4f6f91;
}

.footer-left-status {
  display: flex;
  align-items: center;
  gap: 12px;
}

.secret-rip-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #6f8aa8;
  text-decoration: none;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(137, 207, 240, 0.6);
  transition: all 0.25s ease;
  font-size: 0.76rem;
}

.secret-rip-link:hover {
  background: #1f2d42;
  color: #b8e2ff;
  border-color: #5bb5e8;
}

/* ==================== UNWRAP GIFT MODAL (Pure SVG Interactive Surprise) ==================== */
.gift-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(24, 48, 78, 0.52);
  backdrop-filter: blur(8px);
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.gift-modal-backdrop.open {
  display: flex;
  animation: fadeInModal 0.28s ease;
}

@keyframes fadeInModal {
  from { opacity: 0; }
  to { opacity: 1; }
}

.gift-modal-card {
  position: relative;
  width: 100%;
  max-width: 520px;
  background: linear-gradient(180deg, #ffffff 0%, #fff5f9 100%);
  border-radius: 32px;
  padding: 34px 32px 28px 32px;
  border: 3px solid #ffffff;
  box-shadow:
    0 24px 60px rgba(25, 55, 92, 0.32),
    0 0 0 3px #ff9ec2,
    inset 0 0 0 5px #f2faff;
  text-align: center;
  animation: cardPopIn 0.38s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes cardPopIn {
  from { opacity: 0; transform: scale(0.84) translateY(18px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-close-btn {
  position: absolute;
  top: 16px;
  right: 18px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid #ffc2da;
  background: #ffffff;
  color: #d93b78;
  font-size: 1.1rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s ease;
}

.modal-close-btn:hover {
  background: #ff6fa5;
  color: #ffffff;
  transform: rotate(90deg);
}

.modal-gift-illustration {
  width: 150px;
  height: 150px;
  margin: 0 auto 14px auto;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: aliceFloat 3.4s ease-in-out infinite;
}

.modal-ribbon-badge {
  display: inline-block;
  background: linear-gradient(135deg, #ff7eb3 0%, #ff5286 100%);
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 4px 16px;
  border-radius: 999px;
  margin-bottom: 10px;
  box-shadow: 0 4px 12px rgba(255, 82, 134, 0.3);
}

.modal-gift-title {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 800;
  color: #214166;
  margin-bottom: 10px;
}

.modal-gift-desc {
  font-size: 0.95rem;
  line-height: 1.7;
  color: #4a6685;
  margin-bottom: 22px;
  background: rgba(255, 255, 255, 0.85);
  padding: 14px 18px;
  border-radius: 18px;
  border: 1.5px dashed #99d5f5;
}

.modal-actions-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.modal-action-primary {
  background: linear-gradient(135deg, #ff7eb3 0%, #e84c88 100%);
  color: #ffffff;
  border: none;
  border-radius: 999px;
  padding: 11px 24px;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(232, 76, 136, 0.35);
  transition: all 0.22s ease;
}

.modal-action-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(232, 76, 136, 0.48);
}

.modal-action-secondary {
  background: #f0f9ff;
  color: #2b5c8f;
  border: 1.5px solid #99d5f5;
  border-radius: 999px;
  padding: 11px 20px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.22s ease;
}

.modal-action-secondary:hover {
  background: #e0f2fe;
}

/* Burst Particle Effect Layer */
.burst-particles-container {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 120;
  overflow: hidden;
}

.svg-particle {
  position: absolute;
  will-change: transform, opacity;
  animation: particleFall 2.2s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes particleFall {
  0% {
    transform: translate(0, 0) scale(0.4) rotate(0deg);
    opacity: 1;
  }
  70% {
    opacity: 1;
  }
  100% {
    transform: translate(var(--tx), var(--ty)) scale(1.1) rotate(var(--rot));
    opacity: 0;
  }
}

/* ==================== RESPONSIVE BREAKPOINTS ==================== */
@media (max-width: 820px) {
  .hero-main-grid {
    grid-template-columns: 1fr;
    padding: 12px 26px 24px 26px;
  }
  .left-story-column {
    max-width: 100%;
    order: 2;
  }
  .right-character-stage {
    order: 1;
    min-height: 460px;
  }
  .speech-pointer-svg {
    display: none;
  }
  .cta-unwrap-zone {
    position: relative;
    right: auto;
    bottom: auto;
    margin-top: 10px;
  }
  .right-character-stage {
    flex-direction: column;
  }
}

@media (max-width: 720px) {
  .gingham-outer-shell {
    padding: 10px;
  }
  .top-header {
    flex-direction: column;
    align-items: center;
    padding: 18px 16px 8px 16px;
  }
  .nav-controls-wrap {
    justify-content: center;
  }
  .nav-pill-bar {
    flex-wrap: wrap;
    justify-content: center;
  }
  .stage-footer {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}
