@import url('https://fonts.googleapis.com/css2?family=Pretendard:wght@400;500;600;700;800&display=swap');

/* ============================================
   DESIGN SYSTEM — OhMyBaby 2026
   Warm · Soft · Premium · Cohesive
   ============================================ */

:root {
  /* Core Palette — Warm Blush */
  --bg: #FBF8F6;
  --bg-warm: #F7F2EE;
  --surface: #FFFFFF;
  --surface-raised: #FFFFFF;

  /* Text */
  --text-primary: #2D2A26;
  --text-secondary: #6B6560;
  --text-muted: #A09890;
  --text-inverse: #FFFFFF;

  /* Brand Colors */
  --coral: #E8927C;
  --coral-soft: #F2B5A5;
  --coral-bg: #FFF5F2;
  --coral-glow: rgba(232, 146, 124, 0.15);

  --sky: #7BA7C9;
  --sky-soft: #A8C8DE;
  --sky-bg: #F0F5F9;

  --honey: #C9A96E;
  --honey-soft: #DBBF8A;
  --honey-bg: #FBF7F0;

  --mint: #7BBDA0;
  --mint-bg: #F0F9F4;

  /* Borders & Shadows */
  --border: rgba(0, 0, 0, 0.06);
  --border-hover: rgba(0, 0, 0, 0.1);
  --shadow-xs: 0 1px 2px rgba(0,0,0,0.03);
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.04);
  --shadow-md: 0 8px 24px rgba(0,0,0,0.06);
  --shadow-lg: 0 16px 48px rgba(0,0,0,0.08);
  --shadow-glow: 0 8px 32px rgba(232, 146, 124, 0.12);

  /* Spacing Rhythm */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 40px;
  --space-2xl: 64px;
  --space-3xl: 96px;

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --duration-fast: 0.2s;
  --duration-normal: 0.35s;
  --duration-slow: 0.5s;

  /* Legacy compat */
  --primary: var(--coral);
  --primary-light: var(--coral-bg);
  --blue: var(--sky);
  --blue-light: var(--sky-bg);
  --yellow: var(--honey);
  --yellow-light: var(--honey-bg);
  --text-dark: var(--text-primary);
  --text-gray: var(--text-secondary);
  --border-color: var(--border);
  --bg-color: var(--bg);
}

/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; overflow-y: scroll; }

body {
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4 { font-weight: 700; letter-spacing: -0.03em; line-height: 1.3; }
a { text-decoration: none; color: inherit; }

/* ============================================
   HEADER / NAV
   ============================================ */
.nav {
  background: rgba(251, 248, 246, 0.8);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: background var(--duration-normal) ease;
}

.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 860px;
  margin: 0 auto;
  width: 100%;
  position: relative;
}

.logo {
  font-family: 'Pretendard', -apple-system, sans-serif;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.03em;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0;
  line-height: 1;
  flex-shrink: 0;
  transition: opacity var(--duration-fast) ease;
}

.logo::after {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--coral);
  border-radius: 50%;
  margin-left: 2px;
  margin-bottom: -2px;
  flex-shrink: 0;
}

.logo:hover {
  opacity: 0.7;
}

/* Header Dropdown Menu */
.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
  z-index: 10;
}

.nav-dropdown {
  position: relative;
  display: inline-block;
  user-select: none;
  z-index: 1000;
}

.nav-dropdown-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  background: transparent;
  border: none;
  padding: 6px 8px;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-primary);
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.nav-dropdown-btn:hover {
  opacity: 0.7;
}

.nav-dropdown-btn:active {
  transform: scale(0.97);
}

.nav-dropdown-btn i {
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: transform 0.2s ease;
}

.nav-dropdown:hover .nav-dropdown-btn i {
  transform: rotate(180deg);
  color: var(--text-secondary);
}

.nav-dropdown-content {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  background: var(--surface);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  padding: 6px;
  min-width: 180px;
  border: 1px solid var(--border);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1000;
}

.nav-dropdown:hover .nav-dropdown-content {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.nav-dropdown-item {
  display: block;
  padding: 10px 14px;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text-secondary);
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.nav-dropdown-item:hover {
  background: var(--coral-bg);
  color: var(--text-primary);
}

/* Modern & Elegant Language Dropdown */
.custom-lang-select { 
  position: relative; 
  display: inline-block; 
  user-select: none; 
  z-index: 1000; 
}

.lang-selected {
  display: flex; 
  align-items: center; 
  gap: 4px;
  background: transparent;
  border: none;
  padding: 6px 8px;
  font-weight: 700; 
  font-size: 0.95rem;
  color: var(--text-primary);
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.lang-selected:hover {
  opacity: 0.7;
}

.lang-selected:active {
  transform: scale(0.97);
}

.lang-selected i {
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: transform 0.2s ease;
}

.custom-lang-select.open .lang-selected i {
  transform: rotate(180deg);
  color: var(--text-secondary);
}

.lang-options {
  position: absolute; 
  top: calc(100% + 8px); 
  right: 0;
  background: var(--surface);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  padding: 6px;
  opacity: 0; 
  pointer-events: none;
  transform: translateY(-8px) scale(0.96);
  transform-origin: top right;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  min-width: 120px;
  border: 1px solid var(--border);
}

.lang-options.show { 
  opacity: 1; 
  pointer-events: auto; 
  transform: translateY(0) scale(1); 
}

.lang-option {
  padding: 10px 14px; 
  font-weight: 600; 
  font-size: 0.85rem;
  color: var(--text-secondary);
  border-radius: 10px;
  cursor: pointer; 
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.lang-option:hover { 
  background: var(--coral-bg); 
  color: var(--text-primary);
}

/* ============================================
   HERO
   ============================================ */
.hero {
  padding: 72px 24px 48px;
  text-align: center;
  max-width: 620px;
  margin: 0 auto;
  position: relative;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 18px;
  background: var(--coral-bg);
  color: var(--coral);
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 20px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  border: 1px solid rgba(232, 146, 124, 0.12);
}

.hero h1 {
  font-size: 2.2rem;
  line-height: 1.4;
  margin-bottom: 16px;
  color: var(--text-primary);
  font-weight: 800;
  letter-spacing: -0.04em;
}

.hero p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.8;
  max-width: 480px;
  margin: 0 auto;
}

/* ============================================
   LAYOUT
   ============================================ */
.container {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 20px 80px;
}

/* Section Headers */
.section-head {
  margin-bottom: 20px;
  text-align: left;
  position: relative;
  padding-left: 16px;
}
.section-head::before {
  content: '';
  position: absolute;
  left: 0;
  top: 5px;
  width: 3px;
  height: 22px;
  background: var(--coral);
  border-radius: 3px;
}
.section-head h2 {
  font-size: 1.2rem;
  margin-bottom: 4px;
  color: var(--text-primary);
  font-weight: 800;
}
.section-head p {
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.5;
}

/* ============================================
   CARD SYSTEM
   ============================================ */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 80px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 30px 24px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.02);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 24px 48px -12px rgba(0,0,0,0.08), 0 0 0 1px rgba(0,0,0,0.02);
  border-color: transparent;
}

.card:active { 
  transform: translateY(-2px) scale(1); 
  box-shadow: 0 12px 24px -12px rgba(0,0,0,0.06);
}

/* Card Icon */
.card-icon {
  width: 56px; height: 56px;
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}

.card:hover .card-icon { 
  transform: translateY(-4px) scale(1.08); 
}

.bg-pink { background: var(--coral-bg); color: var(--coral); }
.card:hover .bg-pink { box-shadow: 0 12px 24px -8px rgba(232, 146, 124, 0.5); }

.bg-blue { background: var(--sky-bg); color: var(--sky); }
.card:hover .bg-blue { box-shadow: 0 12px 24px -8px rgba(123, 167, 201, 0.5); }

.bg-yellow { background: var(--honey-bg); color: var(--honey); }
.card:hover .bg-yellow { box-shadow: 0 12px 24px -8px rgba(201, 169, 110, 0.5); }

.card h3 {
  font-size: 1.02rem;
  margin-bottom: 8px;
  font-weight: 700;
  color: var(--text-primary);
}
.card p {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ============================================
   WIDE CARD — Weekly Tracker
   ============================================ */
.wide-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  box-shadow: var(--shadow-sm);
  margin-top: 0;
  position: relative;
  overflow: hidden;
}

.weekly-visual {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: var(--coral-bg);
  position: relative;
  z-index: 1;
}
.weekly-visual::after {
  content: '';
  position: absolute;
  top: -10px; left: -10px; right: -10px; bottom: -10px;
  border: 1.5px dashed rgba(232, 146, 124, 0.2);
  border-radius: 50%;
  animation: spin 30s linear infinite;
}
@keyframes spin { 100% { transform: rotate(360deg); } }

.emoji-circle {
  font-size: 4rem;
  line-height: 1;
  transition: all 0.4s var(--ease-spring);
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.06));
}

.wide-info { flex: 1; padding-right: 24px; z-index: 1; }

.week-badge {
  display: inline-flex;
  align-items: baseline;
  background: var(--coral-bg);
  color: var(--coral);
  padding: 5px 16px;
  border-radius: var(--radius-full);
  font-weight: 800;
  margin-bottom: 14px;
  border: 1px solid rgba(232, 146, 124, 0.1);
}
.week-badge span { font-size: 1.3rem; margin-right: 3px; }
.week-badge small { font-size: 0.8rem; font-weight: 700; opacity: 0.85; }

.wide-info h3 { font-size: 1.35rem; margin-bottom: 10px; color: var(--text-primary); min-height: 32px; }
.wide-info p { font-size: 0.9rem; color: var(--text-secondary); margin-bottom: 28px; word-break: keep-all; line-height: 1.65; min-height: 48px; }

/* Slider */
.slider-container { width: 100%; }

.premium-slider {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: var(--border);
  outline: none;
  transition: background var(--duration-fast) ease;
}
.premium-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px; height: 22px;
  background: var(--surface);
  border: 2.5px solid var(--coral);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(232, 146, 124, 0.25);
  transition: all var(--duration-fast) var(--ease-spring);
}
.premium-slider::-webkit-slider-thumb:hover {
  transform: scale(1.15);
  box-shadow: 0 4px 14px rgba(232, 146, 124, 0.35);
}
.premium-slider::-moz-range-thumb {
  width: 22px; height: 22px;
  background: var(--surface);
  border: 2.5px solid var(--coral);
  border-radius: 50%;
  cursor: pointer;
}

.slider-labels {
  display: flex; justify-content: space-between;
  margin-top: 10px;
  font-size: 0.78rem; font-weight: 600;
  color: var(--text-muted);
}

/* ============================================
   TELEPATHY CARDS (Flip Cards)
   ============================================ */
.deck { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 20px; }
.deck .h-card-inner { aspect-ratio: 1/1; }

.h-card {
  perspective: 1000px;
  cursor: pointer;
  transition: transform var(--duration-normal) var(--ease-out);
}
.h-card:hover { transform: translateY(-6px); }
.h-card:nth-child(1) .h-card-front { transform: rotate(-1deg); }
.h-card:nth-child(2) .h-card-front { transform: rotate(0.5deg); }
.h-card:nth-child(3) .h-card-front { transform: rotate(-0.5deg); }
.h-card:hover .h-card-front { transform: rotate(0deg); }

.h-card-inner {
  position: relative; width: 100%; aspect-ratio: 1/1.15;
  transition: transform 0.65s var(--ease-spring);
  transform-style: preserve-3d;
}
.h-card.flipped .h-card-inner { transform: rotateY(180deg); }

.h-card-front, .h-card-back {
  position: absolute; width: 100%; height: 100%;
  -webkit-backface-visibility: hidden; backface-visibility: hidden;
  border-radius: var(--radius-lg);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 24px;
}
.h-card-front {
  background: var(--surface);
  color: var(--text-secondary);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.h-card-front i {
  font-size: 2.8rem;
  color: var(--coral);
  margin-bottom: 16px;
  opacity: 0.7;
  transition: all var(--duration-normal) var(--ease-spring);
}
.h-card:hover .h-card-front i {
  opacity: 1;
  transform: scale(1.1) translateY(-2px);
}
.h-card-front span { font-weight: 600; font-size: 0.95rem; color: var(--text-primary); }
.h-card-front::after {
  content: '';
  position: absolute; top: 14px; right: 14px;
  width: 8px; height: 8px;
  background: var(--coral);
  border-radius: 50%;
  opacity: 0.45;
  animation: pulse 2.5s infinite;
}

.h-card-back {
  background: var(--coral);
  transform: rotateY(180deg);
  color: #fff;
  font-weight: 600;
  text-align: center;
  font-size: 0.95rem;
  line-height: 1.7;
  border: none;
  box-shadow: 0 8px 32px rgba(232,146,124,0.25);
  padding: 28px 22px;
}
.h-card-back::before {
  content: '"';
  position: absolute; top: 8px; left: 16px;
  font-size: 3.5rem; opacity: 0.12; font-family: Georgia, serif;
}
.h-card-back::after {
  content: '"';
  position: absolute; bottom: -16px; right: 16px;
  font-size: 3.5rem; opacity: 0.12; font-family: Georgia, serif;
}

@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(232, 146, 124, 0.3); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(232, 146, 124, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(232, 146, 124, 0); }
}

/* ============================================
   POLLS
   ============================================ */
.poll-carousel-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  margin-top: 20px;
  margin-bottom: 80px;
}
.poll-nav {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 42px; height: 42px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  position: absolute;
  z-index: 10;
  box-shadow: var(--shadow-sm);
  color: var(--text-primary);
  transition: all var(--duration-fast) var(--ease-out);
  font-size: 1.1rem;
}
.poll-nav:hover { background: var(--bg); transform: scale(1.06); box-shadow: var(--shadow-md); }
.poll-nav.prev { left: -20px; }
.poll-nav.next { right: -20px; }

.poll-area {
  display: flex; gap: 16px; overflow-x: auto;
  scroll-behavior: smooth; scroll-snap-type: x mandatory;
  scrollbar-width: none; padding: 8px 0; width: 100%;
  transition: mask-image 0.3s, -webkit-mask-image 0.3s;
}
.poll-area.mask-right { mask-image: linear-gradient(to right, black 85%, transparent); -webkit-mask-image: linear-gradient(to right, black 85%, transparent); }
.poll-area.mask-left { mask-image: linear-gradient(to right, transparent, black 15%); -webkit-mask-image: linear-gradient(to right, transparent, black 15%); }
.poll-area.mask-both { mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent); -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent); }
.poll-area::-webkit-scrollbar { display: none; }

.poll-box {
  background: var(--surface);
  padding: 28px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  min-width: calc(45% - 8px);
  flex-shrink: 0;
  scroll-snap-align: center;
}
.poll-box h4 { font-size: 1.05rem; margin-bottom: 20px; font-weight: 700; }

.poll-btn {
  width: 100%; text-align: left;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
  font-family: 'Pretendard';
  font-size: 0.9rem; font-weight: 500;
  color: var(--text-primary);
  cursor: pointer;
  display: flex; align-items: center;
  transition: all var(--duration-fast) ease;
  position: relative;
  overflow: hidden;
}
.poll-btn::after {
  content: '';
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%) translateX(4px);
  opacity: 0;
  transition: all var(--duration-fast) ease;
  font-family: 'Phosphor';
}
.poll-btn i { font-size: 1.15rem; margin-right: 10px; color: var(--coral-soft); transition: color var(--duration-fast) ease; }
.poll-btn:hover {
  background: var(--coral-bg);
  border-color: rgba(232,146,124,0.18);
  transform: translateX(4px);
  color: var(--text-primary);
}
.poll-btn:hover i { color: var(--coral); }
.poll-btn:active { transform: translateX(2px); }

.poll-bar-wrapper {
  background: var(--bg);
  border-radius: var(--radius-sm);
  height: 42px;
  margin-bottom: 10px;
  position: relative;
  overflow: hidden;
}
.poll-bar { height: 100%; transition: width 0.8s var(--ease-out); border-radius: var(--radius-sm); }
.poll-bar.blue { background: var(--sky-bg); }
.poll-bar.pink { background: var(--coral-bg); }
.poll-bar.yellow { background: var(--honey-bg); }
.poll-bar-label {
  position: absolute; top:0; left:0; width:100%; height:100%;
  display: flex; justify-content: space-between; align-items: center; padding: 0 16px;
  font-weight: 600; font-size: 0.85rem; color: var(--text-primary);
}

.my-choice-badge {
  background-color: var(--text-primary);
  color: var(--text-inverse);
  font-size: 0.7rem; font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  display: inline-flex; align-items: center; gap: 4px;
  animation: popIn 0.4s var(--ease-spring) forwards;
}

.poll-footer {
  text-align: center;
  font-size: 0.85rem; font-weight: 600;
  color: var(--text-secondary);
  margin-top: 6px;
  display: flex; justify-content: center;
  align-items: center; gap: 6px;
}

@keyframes popIn {
  0% { transform: scale(0); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

/* ============================================
   SCROLL REVEAL
   ============================================ */
.reveal-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--duration-slow) var(--ease-out),
              transform var(--duration-slow) var(--ease-out);
}
.reveal-active { opacity: 1; transform: translateY(0); }
.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }
.delay-400 { transition-delay: 0.4s; }

/* ============================================
   TOASTS
   ============================================ */
#toast-container {
  position: fixed; bottom: 24px; right: 24px; z-index: 9999;
  display: flex; flex-direction: column; gap: 12px; pointer-events: none;
}
.poll-toast {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  color: var(--text-primary);
  padding: 14px 20px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  font-size: 0.9rem; font-weight: 600;
  display: flex; flex-direction: column;
  align-items: flex-start;
  border: 1px solid var(--border);
  transform: translateX(120%) scale(0.9); opacity: 0;
  transition: all var(--duration-slow) var(--ease-spring);
}
.poll-toast.show { transform: translateX(0) scale(1); opacity: 1; }

/* ============================================
   FOOTER
   ============================================ */
footer {
  margin-top: 40px;
  padding: 24px 20px 28px;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--text-muted);
  font-size: 0.82rem;
  background: var(--bg-warm);
  line-height: 1.6;
}
footer a {
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.82rem;
  transition: color var(--duration-fast) ease;
}
footer a:hover { color: var(--coral); }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 900px) {
  .hero { padding: 52px 20px 36px; }
  .hero h1 { font-size: 1.65rem; }
  .hero p { font-size: 0.88rem; }
  .grid { grid-template-columns: 1fr; gap: 12px; }
  .deck { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .grid-2 { grid-template-columns: 1fr; gap: 12px; }
  .wide-card { flex-direction: column; text-align: center; padding: 28px 20px; gap: 24px; }
  .wide-info { padding-right: 0; }
  .weekly-visual { width: 100px; height: 100px; }
  .emoji-circle { font-size: 3rem; }
  .poll-box { min-width: 80%; scroll-snap-align: center; }
  .poll-nav.prev { left: 4px; }
  .poll-nav.next { right: 4px; }
  .poll-nav { width: 36px; height: 36px; font-size: 0.95rem; }
  .h-card:nth-child(1) .h-card-front,
  .h-card:nth-child(2) .h-card-front,
  .h-card:nth-child(3) .h-card-front { transform: rotate(0deg); }
}

@media (max-width: 600px) {
  .deck { grid-template-columns: 1fr; gap: 12px; }
  .deck .h-card-inner { aspect-ratio: auto; min-height: 160px; }
  .container { padding: 0 16px 60px; }
  .section-head { margin-bottom: 16px; }
  .card { padding: 22px 20px; }
}

@media (max-width: 768px) {
  #toast-container { bottom: unset; top: 20px; right: 50%; transform: translateX(50%); align-items: center; }
  .poll-toast { transform: translateY(-120%) scale(0.9); }
  .poll-toast.show { transform: translateY(0) scale(1); }
}

/* ============================================
   UTILITY ANIMATIONS
   ============================================ */
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* (Hero background decoration removed for clean flat design) */

/* ============================================
   SUB-PAGE SHARED STYLES
   ============================================ */

/* Form Fields */
.field { margin-bottom: 24px; text-align: left; }
.field label {
  display: block;
  font-weight: 600;
  margin-bottom: 10px;
  font-size: 0.95rem;
  color: var(--text-primary);
}

.field input[type="text"],
.field input[type="date"],
.field input[type="number"] {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-family: 'Pretendard';
  font-size: 1rem;
  color: var(--text-primary);
  background: var(--bg);
  outline: none;
  transition: all var(--duration-fast) ease;
}
.field input:focus {
  border-color: var(--coral);
  box-shadow: 0 0 0 3px var(--coral-glow);
}

textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  font-family: 'Pretendard';
  font-size: 1rem;
  resize: none;
  color: var(--text-primary);
  background: var(--bg);
  outline: none;
  transition: all var(--duration-fast) ease;
}
textarea:focus {
  border-color: var(--coral);
  box-shadow: 0 0 0 3px var(--coral-glow);
}

/* Submit Button — Universal */
.submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 16px 24px;
  border-radius: var(--radius-md);
  border: none;
  font-family: 'Pretendard';
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  color: var(--text-inverse);
  background: var(--coral);
  box-shadow: 0 4px 16px rgba(232, 146, 124, 0.3);
  transition: all var(--duration-fast) var(--ease-out);
  margin-top: 12px;
}
.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(232, 146, 124, 0.4);
}
.submit-btn:active { transform: translateY(0); }

/* Range Slider — Universal */
.slider,
input[type="range"] {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: var(--border);
  outline: none;
  margin: 12px 0;
}
.slider::-webkit-slider-thumb,
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px; height: 22px;
  background: var(--surface);
  border: 2.5px solid var(--coral);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(232, 146, 124, 0.25);
  transition: all var(--duration-fast) var(--ease-spring);
}
.slider::-webkit-slider-thumb:hover,
input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.15);
  box-shadow: 0 4px 14px rgba(232, 146, 124, 0.35);
}

/* Month Grid — Calendar Page */
.month-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.month-lbl {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 13px 0;
  text-align: center;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.92rem;
  transition: all var(--duration-fast) ease;
}
.month-lbl:hover { background: var(--bg-warm); border-color: var(--border-hover); }
input[type="radio"] { display: none; }
input[type="radio"]:checked + .month-lbl {
  background: var(--coral-bg);
  color: var(--coral);
  border-color: var(--coral);
  box-shadow: 0 2px 8px rgba(232, 146, 124, 0.15);
}

/* Symbol Grid — Dream Page */
.symbol-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.symbol-lbl {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 10px;
  text-align: center;
  cursor: pointer;
  transition: all var(--duration-fast) ease;
  font-size: 0.92rem;
}
.symbol-lbl:hover { background: var(--bg-warm); border-color: var(--border-hover); }
input[type="checkbox"] { display: none; }
input[type="checkbox"]:checked + .symbol-lbl {
  background: var(--coral-bg);
  color: var(--coral);
  border-color: var(--coral);
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(232, 146, 124, 0.18);
}

/* D-Day Display */
.display-box { text-align: center; padding: 32px 0; }
.d-day-badge {
  color: var(--coral);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 2px;
}
.d-day-big {
  font-size: 3.8rem;
  font-weight: 800;
  color: var(--text-primary);
  margin: 8px 0 24px;
  line-height: 1;
  letter-spacing: -0.04em;
}
.d-day-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 24px;
}
.d-day-card {
  background: var(--coral-bg);
  padding: 20px 16px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(232, 146, 124, 0.12);
}
.d-day-card span {
  display: block;
  color: var(--coral);
  font-weight: 800;
  font-size: 1.8rem;
}
.d-day-card small {
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 600;
  margin-top: 4px;
  display: block;
}
.edit-btn {
  background: var(--surface);
  color: var(--text-secondary);
  border: 1px solid var(--border);
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-weight: 600;
  font-family: 'Pretendard';
  transition: all var(--duration-fast) ease;
}
.edit-btn:hover {
  background: var(--bg-warm);
  border-color: var(--border-hover);
}

/* Name Roulette */
.roulette-box { text-align: center; padding: 40px 24px; }
.name-result-box {
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 48px 24px;
  border-radius: var(--radius-xl);
  margin-bottom: 28px;
  transition: transform 0.1s;
}
#name-res-emoji {
  display: inline-flex;
  justify-content: center; align-items: center;
  width: 80px; height: 80px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  border-radius: 50%;
  font-size: 2.5rem;
  margin-bottom: 24px;
}
#name-res-title {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 12px;
  letter-spacing: -0.03em;
}
#name-res-desc {
  color: var(--text-secondary);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.5;
}
.spin-btn {
  background: var(--coral);
  color: var(--text-inverse);
  padding: 18px 36px;
  border-radius: var(--radius-md);
  border: none;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 16px rgba(232, 146, 124, 0.3);
  transition: all var(--duration-fast) var(--ease-out);
  font-family: 'Pretendard';
}
.spin-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(232, 146, 124, 0.4);
}

/* Info Box (used in calendar, etc.) */
.info-box {
  margin-top: 28px;
  background: var(--coral-bg);
  padding: 22px;
  border-radius: var(--radius-md);
  text-align: left;
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.65;
  border: 1px solid rgba(232, 146, 124, 0.08);
}
.info-box strong {
  color: var(--coral);
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Sub-page card container */
.sub-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  max-width: 600px;
  margin: 0 auto;
}

.edit-btn {
  background: var(--surface);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 12px 24px;
  border-radius: var(--radius-md);
  margin-top: 24px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--duration-fast) ease;
  width: 100%;
  font-family: 'Pretendard', sans-serif;
  font-size: 0.95rem;
}
.edit-btn:hover {
  background: var(--bg-color);
  color: var(--text-primary);
}


/* ============================================
   MOBILE HAMBURGER MENU
   ============================================ */

/* 햄버거 버튼 - 기본 숨김 (데스크탑) */
.mobile-hamburger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  cursor: pointer;
  color: var(--text-primary);
  font-size: 1.6rem;
  border-radius: 10px;
  transition: background 0.2s ease;
  flex-shrink: 0;
}
.mobile-hamburger:hover {
  background: var(--bg-warm);
}

/* Mobile Drawer - 기본 상태 (숨김) */
.mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 280px;
  height: 100%;
  background: var(--surface);
  box-shadow: -4px 0 32px rgba(0,0,0,0.12);
  z-index: 9999;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  flex-direction: column;
  padding: 0 0 24px;
  overflow-y: auto;
  display: flex;
  visibility: hidden;
  pointer-events: none;
}
.mobile-drawer.active {
  transform: translateX(0);
  visibility: visible;
  pointer-events: auto;
}

.mobile-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.38);
  backdrop-filter: blur(3px);
  z-index: 9998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.mobile-drawer-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.mobile-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 20px 16px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 12px;
}
.mobile-drawer-logo {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.03em;
}
.mobile-drawer-close {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.3rem;
  color: var(--text-secondary);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: background 0.2s;
}
.mobile-drawer-close:hover {
  background: var(--bg-warm);
}

.mobile-drawer-section-title {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 8px 20px 6px;
}

.mobile-drawer-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 20px;
  font-weight: 600;
  font-size: 0.97rem;
  color: var(--text-primary);
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
  border-radius: 10px;
  margin: 0 8px;
}
.mobile-drawer-link:hover {
  background: var(--coral-bg);
  color: var(--coral);
}
.mobile-drawer-link i {
  font-size: 1.05rem;
  color: var(--coral);
}

.mobile-drawer-divider {
  height: 1px;
  background: var(--border);
  margin: 16px 20px;
}

.mobile-drawer-lang {
  display: flex;
  gap: 10px;
  padding: 8px 20px;
}
.mobile-lang-btn {
  flex: 1;
  padding: 11px 0;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  background: var(--bg);
  font-size: 0.9rem;
  font-weight: 700;
  font-family: 'Pretendard', sans-serif;
  cursor: pointer;
  transition: all 0.2s;
  color: var(--text-secondary);
}
.mobile-lang-btn:hover {
  border-color: var(--coral-soft);
  color: var(--coral);
  background: var(--coral-bg);
}
.mobile-lang-btn.active {
  border-color: var(--coral);
  background: var(--coral-bg);
  color: var(--coral);
}

@media (max-width: 768px) {
  .mobile-hamburger {
    display: flex;
  }
  /* 데스크탑 전용 요소 숨기기 */
  #desktop-nav,
  .custom-lang-select {
    display: none !important;
  }
}
