/* ================================================
   CSS Variables
   ================================================ */
:root {
  --color-bg-start: #fce4ec;
  --color-bg-mid: #ffd6e7;
  --color-bg-end: #f8bbd0;
  --color-rose: #e91e8c;
  --color-cherry: #d81b60;
  --color-pink: #f48fb1;
  --color-light-purple: #ce93d8;
  --color-cream: #fff8f9;
  --color-white: #ffffff;
  --color-text-dark: #4a1942;
  --color-text-mid: #7b3f6e;
  --color-text-light: #c06090;
  --color-card-bg: rgba(255, 255, 255, 0.55);
  --card-blur: blur(18px);
  --card-border: 1px solid rgba(255, 255, 255, 0.7);
  --card-shadow: 0 8px 40px rgba(233, 30, 140, 0.12), 0 2px 12px rgba(0,0,0,0.06);
  --radius-xl: 2rem;
  --radius-lg: 1.2rem;
  --radius-md: 0.75rem;
  --font-base: 'Apple SD Gothic Neo', 'Noto Sans KR', 'Malgun Gothic', sans-serif;
  --transition-base: 0.3s ease;
}

/* ================================================
   Reset & Base
   ================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  height: 100%;
  min-height: 100dvh;
  overflow-x: hidden;
  font-family: var(--font-base);
  color: var(--color-text-dark);
}

body {
  background: linear-gradient(135deg, var(--color-bg-start) 0%, var(--color-bg-mid) 50%, var(--color-bg-end) 100%);
  background-attachment: fixed;
}

#app {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 1rem;
  position: relative;
}

#confetti-canvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 200;
  width: 100%;
  height: 100%;
}

/* ================================================
   Language Switch
   ================================================ */
.lang-switch {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 100;
  display: flex;
  gap: 0.4rem;
}

.lang-btn {
  background: var(--color-card-bg);
  backdrop-filter: var(--card-blur);
  border: var(--card-border);
  border-radius: 2rem;
  padding: 0.35rem 0.85rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--color-text-mid);
  cursor: pointer;
  transition: all var(--transition-base);
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.lang-btn.active,
.lang-btn:hover {
  background: var(--color-rose);
  color: white;
  border-color: var(--color-rose);
}

/* ================================================
   Floating Decorations (Countdown)
   ================================================ */
.deco-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.deco-item {
  position: absolute;
  animation: floatDeco linear infinite;
  opacity: 0.55;
  font-size: 1.4rem;
  user-select: none;
}

@keyframes floatDeco {
  0%   { transform: translateY(0) rotate(0deg) scale(1); opacity: 0.55; }
  50%  { transform: translateY(-18px) rotate(15deg) scale(1.08); opacity: 0.8; }
  100% { transform: translateY(0) rotate(0deg) scale(1); opacity: 0.55; }
}

/* ================================================
   Countdown Screen
   ================================================ */
.countdown-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.4rem;
  width: 100%;
  max-width: 480px;
  position: relative;
  z-index: 1;
  animation: fadeInUp 0.7s ease both;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Top ribbon label */
.ribbon-label {
  background: linear-gradient(90deg, var(--color-rose), var(--color-cherry));
  color: white;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  padding: 0.35rem 1.4rem;
  border-radius: 2rem;
  box-shadow: 0 4px 12px rgba(233,30,140,0.3);
  position: relative;
  text-transform: uppercase;
}

.ribbon-label::before,
.ribbon-label::after {
  content: '';
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
}

.ribbon-label::before {
  left: -0.7rem;
  border-top: 0.65rem solid transparent;
  border-bottom: 0.65rem solid transparent;
  border-right: 0.7rem solid var(--color-rose);
}

.ribbon-label::after {
  right: -0.7rem;
  border-top: 0.65rem solid transparent;
  border-bottom: 0.65rem solid transparent;
  border-left: 0.7rem solid var(--color-cherry);
}

/* Main title card */
.main-card {
  background: var(--color-card-bg);
  backdrop-filter: var(--card-blur);
  border: var(--card-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--card-shadow);
  padding: 2rem 2.4rem;
  width: 100%;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.main-card::before {
  content: '';
  position: absolute;
  top: -40%;
  left: -20%;
  width: 60%;
  height: 80%;
  background: radial-gradient(circle, rgba(255,255,255,0.45) 0%, transparent 70%);
  pointer-events: none;
}

.main-title {
  font-size: clamp(1.6rem, 6vw, 2.4rem);
  font-weight: 900;
  background: linear-gradient(135deg, var(--color-rose), var(--color-cherry), var(--color-light-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

.main-subtitle {
  font-size: clamp(0.8rem, 3vw, 0.95rem);
  color: var(--color-text-light);
  font-weight: 500;
  line-height: 1.6;
}

/* D-Day badge */
.dday-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: linear-gradient(135deg, #fff0f7, #ffe0ef);
  border: 2px solid rgba(233,30,140,0.2);
  border-radius: 2rem;
  padding: 0.5rem 1.4rem;
  font-size: clamp(1.1rem, 4vw, 1.4rem);
  font-weight: 900;
  color: var(--color-rose);
  box-shadow: 0 4px 16px rgba(233,30,140,0.15);
  animation: pulseBadge 2s ease-in-out infinite;
}

@keyframes pulseBadge {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.04); }
}

/* Countdown tiles */
.countdown-tiles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  width: 100%;
}

.tile {
  background: var(--color-card-bg);
  backdrop-filter: var(--card-blur);
  border: var(--card-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--card-shadow);
  padding: 1rem 0.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease;
}

.tile:hover { transform: translateY(-2px); }

.tile::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-pink), var(--color-rose), var(--color-light-purple));
  border-radius: 3px 3px 0 0;
}

.tile-num {
  display: block;
  font-size: clamp(1.6rem, 7vw, 2.6rem);
  font-weight: 900;
  color: var(--color-rose);
  line-height: 1;
  font-variant-numeric: tabular-nums;
  transition: transform 0.15s ease;
}

.tile-num.flip {
  animation: numFlip 0.15s ease;
}

@keyframes numFlip {
  0%   { transform: scaleY(1); }
  50%  { transform: scaleY(0.6); opacity: 0.5; }
  100% { transform: scaleY(1); }
}

.tile-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--color-text-light);
  letter-spacing: 0.08em;
  margin-top: 0.3rem;
  text-transform: uppercase;
}

/* Info row */
.info-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.8rem;
  color: var(--color-text-light);
}

.target-date {
  font-weight: 700;
  color: var(--color-text-mid);
  font-size: 0.88rem;
}

.hint-text {
  font-size: 0.75rem;
  opacity: 0.8;
}

/* Easter egg trigger */
.easter-trigger {
  font-size: 0.7rem;
  color: var(--color-text-light);
  cursor: pointer;
  opacity: 0.6;
  transition: opacity var(--transition-base);
  user-select: none;
  padding: 0.5rem;
  margin-top: -0.3rem;
}

.easter-trigger:hover { opacity: 1; }

/* ================================================
   Birthday / Celebration Screen
   ================================================ */
.birthday-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
  width: 100%;
  max-width: 480px;
  position: relative;
  z-index: 1;
}

/* ---- Box Stage ---- */
.box-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  width: 100%;
}

.gift-box-wrap {
  position: relative;
  width: 140px;
  height: 140px;
  margin: 0 auto;
  cursor: pointer;
}

/* Box body */
.gift-box {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 110px;
  height: 85px;
  background: linear-gradient(135deg, #ff6bae, #e91e8c);
  border-radius: 0 0 14px 14px;
  box-shadow: 0 8px 30px rgba(233,30,140,0.35);
}

.gift-box::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 0; right: 0;
  height: 3px;
  background: rgba(255,255,255,0.4);
  transform: translateY(-50%);
}

.gift-box-stripe {
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 14px;
  background: rgba(255,255,255,0.35);
  border-radius: 4px;
}

/* Box lid */
.gift-lid {
  position: absolute;
  bottom: 82px;
  left: 50%;
  transform: translateX(-50%);
  width: 118px;
  height: 26px;
  background: linear-gradient(135deg, #ff85c2, #f06292);
  border-radius: 10px 10px 0 0;
  box-shadow: 0 -4px 16px rgba(233,30,140,0.25);
  transform-origin: center bottom;
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Ribbon bow */
.gift-bow {
  position: absolute;
  bottom: 108px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.bow-left,
.bow-right {
  width: 26px;
  height: 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, #fff, #ffc0d9);
  border: 2px solid rgba(233,30,140,0.4);
}

.bow-left  { transform: rotate(-20deg) translateX(4px); }
.bow-right { transform: rotate(20deg) translateX(-4px); }

.bow-center {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: white;
  border: 2px solid rgba(233,30,140,0.5);
  z-index: 1;
}

/* Open state */
.gift-box-wrap.open .gift-lid {
  transform: translateX(-50%) rotateX(-130deg);
}

.gift-box-wrap.shake {
  animation: giftShake 1s ease;
}

@keyframes giftShake {
  0%   { transform: rotate(0) scale(1); }
  12%  { transform: rotate(-7deg) translateY(-4px) scale(1.04); }
  25%  { transform: rotate(8deg) translateY(-8px) scale(1.07); }
  38%  { transform: rotate(-6deg) translateY(-6px) scale(1.09); }
  50%  { transform: rotate(7deg) translateY(-10px) scale(1.11); }
  62%  { transform: rotate(-5deg) translateY(-7px) scale(1.12); }
  75%  { transform: rotate(5deg) translateY(-9px) scale(1.13); }
  88%  { transform: rotate(-3deg) translateY(-4px) scale(1.14); }
  100% { transform: rotate(0) scale(1.1); }
}

/* Burst rays */
.burst-rays {
  position: absolute;
  inset: -40px;
  display: flex;
  justify-content: center;
  align-items: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.burst-rays.active { opacity: 1; }

.ray {
  position: absolute;
  width: 4px;
  height: 80px;
  border-radius: 4px;
  top: 50%;
  left: 50%;
  transform-origin: center bottom;
  background: linear-gradient(to top, transparent, rgba(255,200,50,0.85));
  animation: rayExpand 0.5s ease forwards;
}

@keyframes rayExpand {
  from { height: 0; opacity: 0; }
  to   { height: 80px; opacity: 1; }
}

/* ---- Rare Card ---- */
.rare-card-wrap {
  width: 100%;
  opacity: 0;
  transform: translateY(30px) scale(0.9);
  transition: opacity 0.5s ease, transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none;
}

.rare-card-wrap.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.rare-badge {
  display: inline-block;
  background: linear-gradient(90deg, #ffd700, #ffb800, #ffd700);
  background-size: 200% 100%;
  animation: shimmerBadge 2s linear infinite;
  color: #7a3800;
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  padding: 0.3rem 1rem;
  border-radius: 2rem;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
  box-shadow: 0 2px 12px rgba(255,180,0,0.5);
}

@keyframes shimmerBadge {
  0%   { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

.birthday-main-card {
  background: var(--color-card-bg);
  backdrop-filter: var(--card-blur);
  border: 2px solid rgba(255,255,255,0.8);
  border-radius: var(--radius-xl);
  box-shadow: 0 8px 48px rgba(233,30,140,0.18), 0 2px 16px rgba(0,0,0,0.07);
  padding: 2rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.birthday-main-card::before {
  content: '';
  position: absolute;
  top: -30%; left: -10%;
  width: 55%; height: 60%;
  background: radial-gradient(circle, rgba(255,255,255,0.5) 0%, transparent 70%);
  pointer-events: none;
}

.happy-title {
  font-size: clamp(1.6rem, 7vw, 2.8rem);
  font-weight: 900;
  background: linear-gradient(135deg, #e91e8c, #9c27b0, #ffd700);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
  margin-bottom: 0.4rem;
  animation: rainbowShift 4s ease infinite alternate, titleBeat 1.1s ease-in-out infinite;
  background-size: 200% 200%;
  display: inline-block;
}

@keyframes titleBeat {
  0%   { transform: translateY(0) rotate(-1.5deg); }
  25%  { transform: translateY(-6px) rotate(0.5deg); }
  50%  { transform: translateY(-2px) rotate(1.5deg); }
  75%  { transform: translateY(-7px) rotate(-0.5deg); }
  100% { transform: translateY(0) rotate(-1.5deg); }
}

@keyframes rainbowShift {
  0%   { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}

.happy-kr {
  font-size: clamp(0.95rem, 3.5vw, 1.2rem);
  color: var(--color-rose);
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.happy-sub {
  font-size: clamp(0.78rem, 2.8vw, 0.9rem);
  color: var(--color-text-light);
  font-weight: 500;
  line-height: 1.6;
  margin-bottom: 1rem;
}

/* Emoji burst row */
.emoji-burst-row {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.8rem;
}

.burst-emoji {
  font-size: 1.5rem;
  display: inline-block;
}

/* pop 등장 후 불규칙 idle 모션: 각 child마다 다른 타이밍·keyframe */
.burst-emoji:nth-child(1) {
  animation:
    emojiPop   0.5s cubic-bezier(0.34,1.56,0.64,1) 0.1s both,
    emojiIdle1 2.3s  ease-in-out                   0.65s infinite;
}
.burst-emoji:nth-child(2) {
  animation:
    emojiPop   0.5s cubic-bezier(0.34,1.56,0.64,1) 0.2s both,
    emojiIdle2 1.85s ease-in-out                   0.75s infinite;
}
.burst-emoji:nth-child(3) {
  animation:
    emojiPop   0.5s cubic-bezier(0.34,1.56,0.64,1) 0.3s both,
    emojiIdle3 2.65s ease-in-out                   0.85s infinite;
}
.burst-emoji:nth-child(4) {
  animation:
    emojiPop   0.5s cubic-bezier(0.34,1.56,0.64,1) 0.4s both,
    emojiIdle1 2.1s  ease-in-out                   0.95s infinite;
}
.burst-emoji:nth-child(5) {
  animation:
    emojiPop   0.5s cubic-bezier(0.34,1.56,0.64,1) 0.5s both,
    emojiIdle2 2.45s ease-in-out                   1.05s infinite;
}
.burst-emoji:nth-child(6) {
  animation:
    emojiPop   0.5s cubic-bezier(0.34,1.56,0.64,1) 0.6s both,
    emojiIdle3 1.95s ease-in-out                   1.15s infinite;
}

@keyframes emojiPop {
  from { transform: scale(0) rotate(-20deg); opacity: 0; }
  to   { transform: scale(1) rotate(0deg);   opacity: 1; }
}

/* 불규칙 bounce + scale + rotate 조합 — 배경음 비트감에 어울리도록 비대칭 타이밍 */
@keyframes emojiIdle1 {
  0%   { transform: translateY(0)    scale(1)    rotate(0deg); }
  28%  { transform: translateY(-9px) scale(1.18) rotate(-6deg); }
  55%  { transform: translateY(-3px) scale(0.92) rotate(4deg); }
  78%  { transform: translateY(-7px) scale(1.12) rotate(-3deg); }
  100% { transform: translateY(0)    scale(1)    rotate(0deg); }
}

@keyframes emojiIdle2 {
  0%   { transform: translateY(0)     scale(1)    rotate(0deg); }
  35%  { transform: translateY(-6px)  scale(1.22) rotate(7deg); }
  65%  { transform: translateY(-11px) scale(0.88) rotate(-5deg); }
  85%  { transform: translateY(-4px)  scale(1.1)  rotate(3deg); }
  100% { transform: translateY(0)     scale(1)    rotate(0deg); }
}

@keyframes emojiIdle3 {
  0%   { transform: translateY(0)     scale(1)    rotate(0deg); }
  22%  { transform: translateY(-12px) scale(0.9)  rotate(-8deg); }
  50%  { transform: translateY(-5px)  scale(1.2)  rotate(5deg); }
  75%  { transform: translateY(-9px)  scale(1.06) rotate(-4deg); }
  100% { transform: translateY(0)     scale(1)    rotate(0deg); }
}

/* Stat lines (fun copy) */
.stat-list {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-top: 0.5rem;
}

.stat-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255,255,255,0.5);
  border-radius: 0.6rem;
  padding: 0.4rem 0.85rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-text-mid);
}

.stat-item .stat-val {
  color: var(--color-rose);
  font-weight: 900;
}

/* Moka logo label */
.moka-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: linear-gradient(135deg, #fff4f9, #ffe8f2);
  border: 1.5px solid rgba(233,30,140,0.2);
  border-radius: 2rem;
  padding: 0.3rem 0.9rem;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--color-rose);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  user-select: none;
}

.moka-logo:hover {
  transform: scale(1.06);
  box-shadow: 0 4px 16px rgba(233,30,140,0.25);
}

/* Replay button */
.replay-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, var(--color-rose), var(--color-cherry));
  color: white;
  font-size: 0.95rem;
  font-weight: 800;
  border: none;
  border-radius: 2rem;
  padding: 0.85rem 2rem;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(233,30,140,0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  letter-spacing: 0.03em;
}

.replay-btn:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 10px 28px rgba(233,30,140,0.45);
}

.replay-btn:active {
  transform: translateY(0) scale(0.98);
}

/* Flying emojis (birthday background) */
.flying-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.fly-item {
  position: absolute;
  top: 110%;
  font-size: 1.6rem;
  animation: flyUp linear forwards;
  opacity: 0;
}

@keyframes flyUp {
  0%   { transform: translateY(0) rotate(0deg) scale(1); opacity: 0; }
  5%   { opacity: 1; }
  90%  { opacity: 0.9; }
  100% { transform: translateY(-120vh) rotate(360deg) scale(0.7); opacity: 0; }
}

/* ================================================
   Gift Open 연출: Zoom / Spin 이모지
   ================================================ */

/* 중앙에서 사용자 쪽으로 커지면서 fade out */
.zoom-emoji {
  position: fixed;
  top: 38%;
  left: 50%;
  transform: translate(calc(-50% + var(--ox, 0px)), calc(-50% + var(--oy, 0px))) scale(0.1);
  font-size: 5rem;
  pointer-events: none;
  z-index: 150;
  animation: zoomToUser 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes zoomToUser {
  0%   { transform: translate(calc(-50% + var(--ox, 0px)), calc(-50% + var(--oy, 0px))) scale(0.1); opacity: 0; }
  25%  { opacity: 1; }
  100% { transform: translate(calc(-50% + var(--ox, 0px)), calc(-50% + var(--oy, 0px))) scale(3.5); opacity: 0; }
}

/* 사방으로 회전하며 날아가는 이모지 */
.spin-emoji {
  position: fixed;
  pointer-events: none;
  z-index: 150;
  font-size: 2.4rem;
  transform: translate(-50%, -50%);
  animation: spinFly 1.1s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes spinFly {
  0%   { transform: translate(-50%, -50%) rotate(0deg) scale(1.2); opacity: 1; }
  60%  { opacity: 1; }
  100% { transform: translate(calc(-50% + var(--tx, 0px)), calc(-50% + var(--ty, -200px))) rotate(720deg) scale(0.1); opacity: 0; }
}

/* ================================================
   Debug Panel
   ================================================ */
.debug-panel {
  display: none;
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  background: rgba(0,0,0,0.82);
  color: #a0ffb0;
  font-family: monospace;
  font-size: 0.72rem;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  z-index: 9999;
  line-height: 1.6;
  max-width: 300px;
  backdrop-filter: blur(6px);
}

.debug-panel.visible { display: block; }

.debug-title {
  font-weight: bold;
  color: #ffff80;
  margin-bottom: 0.3rem;
}

/* ================================================
   Easter Egg Panel
   ================================================ */
.easter-panel {
  display: none;
  position: fixed;
  bottom: 4rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-card-bg);
  backdrop-filter: var(--card-blur);
  border: var(--card-border);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 40px rgba(0,0,0,0.15);
  padding: 1.2rem 1.5rem;
  z-index: 9998;
  text-align: center;
  min-width: 220px;
  animation: fadeInUp 0.3s ease;
}

.easter-panel.visible { display: block; }

.easter-title {
  font-weight: 800;
  color: var(--color-rose);
  margin-bottom: 0.8rem;
  font-size: 0.9rem;
}

.easter-btn {
  display: block;
  width: 100%;
  background: linear-gradient(135deg, #fff0f7, #ffe0ef);
  border: 1.5px solid rgba(233,30,140,0.2);
  border-radius: 0.75rem;
  padding: 0.6rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--color-rose);
  cursor: pointer;
  margin-bottom: 0.5rem;
  transition: background 0.2s ease;
}

.easter-btn:hover { background: linear-gradient(135deg, #ffe0ef, #ffc8e0); }

.easter-close {
  display: block;
  width: 100%;
  background: none;
  border: none;
  font-size: 0.78rem;
  color: var(--color-text-light);
  cursor: pointer;
  margin-top: 0.2rem;
  padding: 0.3rem;
}

/* ================================================
   Fullscreen Button (birthday screen)
   ================================================ */
.fullscreen-btn {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 500;
  display: none;
  align-items: center;
  gap: 0.35rem;
  background: var(--color-card-bg);
  backdrop-filter: var(--card-blur);
  border: var(--card-border);
  border-radius: 2rem;
  padding: 0.4rem 0.9rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-text-mid);
  cursor: pointer;
  transition: all var(--transition-base);
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.fullscreen-btn.visible { display: flex; }

.fullscreen-btn:hover {
  background: var(--color-rose);
  color: white;
  border-color: var(--color-rose);
}

/* ================================================
   Floating hearts / stars (scattered background)
   ================================================ */
.sparkle {
  position: absolute;
  pointer-events: none;
  animation: sparklePop 2s ease-in-out infinite alternate;
}

@keyframes sparklePop {
  0%   { transform: scale(0.7) rotate(-10deg); opacity: 0.4; }
  100% { transform: scale(1.2) rotate(10deg); opacity: 1; }
}

/* ================================================
   Responsive
   ================================================ */
@media (max-width: 360px) {
  .main-card { padding: 1.4rem 1.2rem; }
  .countdown-tiles { gap: 0.5rem; }
  .tile { padding: 0.75rem 0.3rem; }
  .tile-num { font-size: 1.4rem; }
}

@media (min-width: 768px) {
  #app { padding: 2rem; }
  .countdown-screen,
  .birthday-screen { max-width: 520px; }
  .gift-box-wrap { width: 170px; height: 170px; }
}

/* ================================================
   Reduced motion
   ================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .fly-item, .deco-item { display: none; }
}
