@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@400;600;700&family=Cormorant+Garamond:ital,wght@0,400;0,600;0,700;1,400&family=Inter:wght@300;400;500;600&display=swap');

:root {
  --gold: #B8860B;
  --gold-light: #D4A24E;
  --gold-bright: #F0C75E;
  --burgundy: #7B1024;
  --burgundy-light: #A82040;
  --burgundy-deep: #5C0A1A;
  --cream: #FFF5EB;
  --warm-white: #FFFAF3;
  --dark: #2D1810;
  --dark-soft: #5A3A2E;
  --muted: rgba(180, 134, 11, 0.15);
  --lotus-pink: #E8A0B4;
  --jade: #6B9E7D;
  --nav-height: 56px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--cream);
  color: var(--dark);
  overflow-x: hidden;
  min-height: 100vh;
  padding-top: var(--nav-height);
}

/* ── Language Toggle ── */
.lang-zh { display: none; }
body.zh .lang-en { display: none; }
body.zh .lang-zh { display: inline; }
div.lang-en, section.lang-en, p.lang-en { display: block; }
div.lang-zh, section.lang-zh, p.lang-zh { display: none; }
body.zh div.lang-en, body.zh section.lang-en, body.zh p.lang-en { display: none; }
body.zh div.lang-zh, body.zh section.lang-zh, body.zh p.lang-zh { display: block; }

/* ── Top Navigation Bar ── */
.top-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-height);
  background: rgba(255, 245, 235, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(184, 134, 11, 0.15);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  box-shadow: 0 2px 16px rgba(45, 24, 16, 0.06);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 100%;
  max-width: 900px;
}
.nav-tab {
  padding: 8px 20px;
  border: none;
  background: transparent;
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--dark-soft);
  cursor: pointer;
  transition: all 0.3s;
  border-radius: 24px;
  white-space: nowrap;
  letter-spacing: 0.02em;
}
.nav-tab:hover {
  background: rgba(184, 134, 11, 0.08);
  color: var(--burgundy);
}
.nav-tab.active {
  background: rgba(123, 16, 36, 0.08);
  color: var(--burgundy);
}
.nav-divider {
  width: 1px;
  height: 20px;
  background: rgba(184, 134, 11, 0.2);
  flex-shrink: 0;
}
.lang-btn {
  padding: 6px 14px;
  border: 1px solid rgba(184, 134, 11, 0.25);
  background: transparent;
  font-family: 'Noto Serif SC', serif;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--gold);
  cursor: pointer;
  transition: all 0.3s;
  border-radius: 16px;
  margin-left: 8px;
  white-space: nowrap;
  flex-shrink: 0;
}
.lang-btn:hover {
  background: rgba(184, 134, 11, 0.06);
  border-color: var(--gold);
}
.music-toggle {
  padding: 6px 10px;
  border: 1px solid rgba(184, 134, 11, 0.2);
  background: transparent;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s;
  border-radius: 16px;
  margin-left: 4px;
  flex-shrink: 0;
  line-height: 1;
  color: var(--dark-soft);
}
.music-toggle:hover {
  background: rgba(184, 134, 11, 0.06);
}
.music-toggle.playing {
  color: var(--burgundy);
  border-color: var(--burgundy-light);
  background: rgba(123, 16, 36, 0.05);
}

/* ── Ambient background ── */
.ambient-bg {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(184,134,11,0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 10%, rgba(123,16,36,0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 100%, rgba(232,160,180,0.06) 0%, transparent 50%),
    var(--cream);
}

/* ── Floating Lotus SVG Background ── */
.lotus-layer {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.lotus-svg {
  position: absolute;
  opacity: 0.045;
  animation: lotus-drift 30s ease-in-out infinite alternate;
}
.lotus-svg svg path { fill: var(--burgundy); }
.lotus-svg.gold svg path { fill: var(--gold); }

.lotus-svg:nth-child(1) { top: 3%; left: 2%; width: 240px; animation-duration: 32s; opacity: 0.04; }
.lotus-svg:nth-child(2) { top: 55%; right: 0%; width: 200px; animation-duration: 38s; animation-delay: -10s; opacity: 0.035; }
.lotus-svg:nth-child(3) { bottom: 5%; left: 10%; width: 280px; animation-duration: 35s; animation-delay: -18s; opacity: 0.03; }
.lotus-svg:nth-child(4) { top: 20%; right: 5%; width: 160px; animation-duration: 28s; animation-delay: -5s; opacity: 0.05; }
.lotus-svg:nth-child(5) { top: 70%; left: 45%; width: 220px; animation-duration: 33s; animation-delay: -14s; opacity: 0.03; }
.lotus-svg:nth-child(6) { top: 35%; left: -2%; width: 190px; animation-duration: 36s; animation-delay: -22s; opacity: 0.04; }
.lotus-svg:nth-child(7) { top: 8%; left: 55%; width: 150px; animation-duration: 29s; animation-delay: -7s; opacity: 0.045; }
.lotus-svg:nth-child(8) { bottom: 20%; right: 15%; width: 260px; animation-duration: 40s; animation-delay: -25s; opacity: 0.025; }
.lotus-svg:nth-child(9) { top: 45%; right: 30%; width: 130px; animation-duration: 31s; animation-delay: -3s; opacity: 0.05; }
.lotus-svg:nth-child(10) { bottom: 35%; left: 25%; width: 180px; animation-duration: 34s; animation-delay: -16s; opacity: 0.035; }

@keyframes lotus-drift {
  0% { transform: translate(0, 0) rotate(0deg) scale(1); }
  25% { transform: translate(12px, -18px) rotate(4deg) scale(1.02); }
  50% { transform: translate(-8px, 12px) rotate(-3deg) scale(0.98); }
  75% { transform: translate(16px, 8px) rotate(6deg) scale(1.01); }
  100% { transform: translate(-4px, -10px) rotate(-2deg) scale(1); }
}

/* ── Floating symbol particles ── */
.float-symbols {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.float-sym {
  position: absolute;
  font-size: 2.5rem;
  font-weight: 700;
  opacity: 0;
  animation: float-sym 14s infinite ease-out;
  color: rgba(184, 134, 11, 0.5);
}
.float-sym:nth-child(1) { left: 3%; animation-delay: 0s; font-size: 2rem; }
.float-sym:nth-child(2) { left: 12%; animation-delay: 1.8s; font-size: 3.5rem; color: rgba(123,16,36,0.35); }
.float-sym:nth-child(3) { left: 22%; animation-delay: 4s; font-size: 2.8rem; }
.float-sym:nth-child(4) { left: 32%; animation-delay: 0.8s; font-size: 4.5rem; color: rgba(123,16,36,0.3); }
.float-sym:nth-child(5) { left: 42%; animation-delay: 3s; font-size: 2.2rem; }
.float-sym:nth-child(6) { left: 52%; animation-delay: 5.5s; font-size: 3.8rem; color: rgba(123,16,36,0.35); }
.float-sym:nth-child(7) { left: 62%; animation-delay: 1.2s; font-size: 2.5rem; }
.float-sym:nth-child(8) { left: 72%; animation-delay: 6.5s; font-size: 5rem; color: rgba(123,16,36,0.3); }
.float-sym:nth-child(9) { left: 82%; animation-delay: 2.5s; font-size: 3rem; }
.float-sym:nth-child(10) { left: 92%; animation-delay: 7.5s; font-size: 2.8rem; }
.float-sym:nth-child(11) { left: 8%; animation-delay: 3.5s; font-size: 5.5rem; color: rgba(123,16,36,0.25); animation-duration: 16s; }
.float-sym:nth-child(12) { left: 18%; animation-delay: 8s; font-size: 3rem; animation-duration: 12s; }
.float-sym:nth-child(13) { left: 37%; animation-delay: 1.5s; font-size: 6rem; color: rgba(184,134,11,0.3); animation-duration: 18s; }
.float-sym:nth-child(14) { left: 48%; animation-delay: 5s; font-size: 2.5rem; animation-duration: 13s; }
.float-sym:nth-child(15) { left: 58%; animation-delay: 9s; font-size: 4rem; animation-duration: 15s; }
.float-sym:nth-child(16) { left: 68%; animation-delay: 2s; font-size: 7rem; color: rgba(123,16,36,0.2); animation-duration: 20s; }
.float-sym:nth-child(17) { left: 78%; animation-delay: 6s; font-size: 3.2rem; animation-duration: 11s; }
.float-sym:nth-child(18) { left: 88%; animation-delay: 4.5s; font-size: 5rem; animation-duration: 17s; }
.float-sym:nth-child(19) { left: 25%; animation-delay: 10s; font-size: 4.5rem; color: rgba(123,16,36,0.25); animation-duration: 14s; }
.float-sym:nth-child(20) { left: 55%; animation-delay: 7s; font-size: 6.5rem; color: rgba(184,134,11,0.25); animation-duration: 19s; }

@keyframes float-sym {
  0% { transform: translateY(100vh) rotate(0deg) scale(0.8); opacity: 0; }
  8% { opacity: 0.35; }
  50% { opacity: 0.22; }
  85% { opacity: 0.10; }
  100% { transform: translateY(-20vh) rotate(360deg) scale(1.1); opacity: 0; }
}

/* ── Floating particles (incense smoke) ── */
.particles {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}
.particle {
  position: absolute;
  width: 4px; height: 4px;
  background: var(--gold-light);
  border-radius: 50%;
  opacity: 0;
  animation: float-up 8s infinite ease-out;
}
.particle:nth-child(1) { left: 10%; animation-delay: 0s; animation-duration: 7s; }
.particle:nth-child(2) { left: 25%; animation-delay: 1.5s; animation-duration: 9s; }
.particle:nth-child(3) { left: 40%; animation-delay: 3s; animation-duration: 6s; }
.particle:nth-child(4) { left: 55%; animation-delay: 0.8s; animation-duration: 10s; }
.particle:nth-child(5) { left: 70%; animation-delay: 2.5s; animation-duration: 8s; }
.particle:nth-child(6) { left: 85%; animation-delay: 4s; animation-duration: 7.5s; }
.particle:nth-child(7) { left: 50%; animation-delay: 5s; animation-duration: 9.5s; }
.particle:nth-child(8) { left: 15%; animation-delay: 6s; animation-duration: 6.5s; }

@keyframes float-up {
  0% { transform: translateY(100vh) scale(0); opacity: 0; }
  10% { opacity: 0.5; }
  90% { opacity: 0.08; }
  100% { transform: translateY(-20vh) scale(1.5); opacity: 0; }
}

/* ── Main container ── */
.container {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ── Hero Section ── */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 20px;
}

.lotus-icon {
  font-size: 48px;
  margin-bottom: 16px;
  animation: gentle-pulse 3s ease-in-out infinite;
}
@keyframes gentle-pulse {
  0%, 100% { transform: scale(1); opacity: 0.9; }
  50% { transform: scale(1.05); opacity: 1; }
}

.hero h1 {
  font-family: 'Noto Serif SC', serif;
  font-size: clamp(2.2rem, 6vw, 3.8rem);
  font-weight: 700;
  color: var(--burgundy);
  letter-spacing: 0.1em;
  margin-bottom: 8px;
  line-height: 1.3;
}

.hero .subtitle-cn {
  font-family: 'Noto Serif SC', serif;
  font-size: clamp(1rem, 3vw, 1.4rem);
  color: var(--gold);
  letter-spacing: 0.3em;
  margin-bottom: 24px;
  font-weight: 400;
}

.hero .subtitle-en {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  color: var(--dark-soft);
  font-style: italic;
  font-weight: 400;
  max-width: 600px;
  line-height: 1.6;
  margin-bottom: 40px;
}

.divider {
  width: 120px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 24px auto;
}

.hero-description {
  font-size: 0.95rem;
  color: var(--dark-soft);
  line-height: 1.8;
  max-width: 560px;
  margin-bottom: 48px;
}

.begin-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 48px;
  background: linear-gradient(135deg, var(--burgundy), var(--burgundy-deep));
  color: #fff;
  border: none;
  border-radius: 50px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: all 0.4s ease;
  box-shadow: 0 4px 20px rgba(123, 16, 36, 0.3);
  text-transform: uppercase;
}
.begin-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(123, 16, 36, 0.4);
  background: linear-gradient(135deg, var(--burgundy-light), var(--burgundy));
}
.begin-btn:active { transform: translateY(0); }

.scroll-hint {
  margin-top: 48px;
  font-size: 0.8rem;
  color: var(--gold);
  letter-spacing: 0.15em;
  animation: bounce-down 2s ease-in-out infinite;
}
@keyframes bounce-down {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

/* ── Oracle Section ── */
.oracle-section {
  padding: 80px 0 120px;
  display: none;
}
.oracle-section.active { display: block; }

.section-title {
  text-align: center;
  margin-bottom: 48px;
}
.section-title h2 {
  font-family: 'Noto Serif SC', serif;
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  color: var(--burgundy);
  margin-bottom: 8px;
}
.section-title p {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  color: var(--dark-soft);
  font-style: italic;
}

/* ── Step Indicators ── */
.steps {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}
.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0.35;
  transition: all 0.4s ease;
}
.step.active { opacity: 1; }
.step.completed { opacity: 0.6; }
.step-circle {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Noto Serif SC', serif;
  font-size: 0.9rem;
  color: var(--gold);
  transition: all 0.4s ease;
}
.step.active .step-circle {
  background: var(--burgundy);
  border-color: var(--burgundy);
  color: #fff;
}
.step.completed .step-circle {
  background: var(--jade);
  border-color: var(--jade);
  color: #fff;
}
.step-label {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dark-soft);
}

/* ── Cards / Panels ── */
.panel {
  background: var(--warm-white);
  border: 1px solid rgba(184, 134, 11, 0.15);
  border-radius: 16px;
  padding: 48px 40px;
  margin-bottom: 32px;
  box-shadow: 0 4px 24px rgba(45, 24, 16, 0.05);
  display: none;
}
.panel.active { display: block; animation: fadeIn 0.6s ease; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.panel h3 {
  font-family: 'Noto Serif SC', serif;
  font-size: 1.3rem;
  color: var(--burgundy);
  margin-bottom: 16px;
  text-align: center;
}

.panel p {
  line-height: 1.8;
  color: var(--dark-soft);
  margin-bottom: 16px;
  text-align: center;
}

/* ── Prayer / Intention input ── */
.intention-area {
  margin: 24px 0;
}
.intention-area label {
  display: block;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  color: var(--dark-soft);
  margin-bottom: 8px;
  font-style: italic;
}
.intention-area textarea {
  width: 100%;
  min-height: 100px;
  border: 1px solid rgba(184, 134, 11, 0.25);
  border-radius: 12px;
  padding: 16px;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  color: var(--dark);
  background: rgba(255, 245, 235, 0.5);
  resize: vertical;
  transition: border-color 0.3s;
  line-height: 1.6;
}
.intention-area textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(184, 134, 11, 0.1);
}
.intention-area textarea::placeholder {
  color: #C4A88A;
}

/* Category selector */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin: 24px 0;
}
.category-btn {
  padding: 14px 16px;
  border: 1px solid rgba(184, 134, 11, 0.2);
  border-radius: 12px;
  background: transparent;
  cursor: pointer;
  text-align: center;
  transition: all 0.3s;
  font-size: 0.85rem;
  color: var(--dark-soft);
}
.category-btn:hover {
  border-color: var(--gold);
  background: rgba(184, 134, 11, 0.04);
}
.category-btn.selected {
  border-color: var(--burgundy);
  background: rgba(123, 16, 36, 0.06);
  color: var(--burgundy);
  font-weight: 500;
}
.category-btn .cat-icon {
  display: block;
  font-size: 1.5rem;
  margin-bottom: 6px;
}

/* ── Draw lot button ── */
.draw-container {
  text-align: center;
  margin: 40px 0;
}

.draw-btn {
  position: relative;
  width: 180px; height: 180px;
  border-radius: 50%;
  border: 3px solid var(--gold);
  background: radial-gradient(circle at 40% 35%, #FFF5E0, #F0DFC0);
  cursor: pointer;
  transition: all 0.4s ease;
  box-shadow:
    0 0 30px rgba(184, 134, 11, 0.15),
    inset 0 0 20px rgba(184, 134, 11, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}
.draw-btn:hover {
  transform: scale(1.05);
  box-shadow:
    0 0 50px rgba(184, 134, 11, 0.25),
    inset 0 0 20px rgba(184, 134, 11, 0.12);
}
.draw-btn:active { transform: scale(0.98); }
.draw-btn .draw-icon {
  font-size: 2.5rem;
  margin-bottom: 4px;
}
.draw-btn .draw-text {
  font-family: 'Noto Serif SC', serif;
  font-size: 1rem;
  color: var(--burgundy);
  font-weight: 600;
}
.draw-btn .draw-text-en {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.75rem;
  color: var(--dark-soft);
  font-style: italic;
  margin-top: 2px;
}

/* Shaking animation */
.draw-btn.shaking {
  animation: shake-lot 0.15s ease-in-out infinite;
}
@keyframes shake-lot {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(-3deg); }
  75% { transform: rotate(3deg); }
}

/* ── Result Display ── */
.result-card {
  display: none;
  animation: fadeIn 0.8s ease;
}
.result-card.active { display: block; }

.lot-header {
  text-align: center;
  padding: 32px 0;
  border-bottom: 1px solid rgba(184, 134, 11, 0.15);
  margin-bottom: 32px;
}
.lot-number {
  font-family: 'Noto Serif SC', serif;
  font-size: 3rem;
  color: var(--burgundy);
  font-weight: 700;
}
.lot-number-label {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.9rem;
  color: var(--dark-soft);
  font-style: italic;
  margin-bottom: 12px;
}
.fortune-badge {
  display: inline-block;
  padding: 6px 24px;
  border-radius: 20px;
  font-family: 'Noto Serif SC', serif;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  margin-top: 8px;
}
.fortune-upper-upper { background: linear-gradient(135deg, #FFD700, #FF8C00); color: #fff; }
.fortune-upper { background: linear-gradient(135deg, var(--gold-light), var(--gold)); color: #fff; }
.fortune-middle { background: rgba(107, 158, 125, 0.15); color: var(--jade); border: 1px solid var(--jade); }
.fortune-lower { background: rgba(123, 16, 36, 0.08); color: var(--burgundy); border: 1px solid rgba(123, 16, 36, 0.25); }
.fortune-lower-lower { background: rgba(92, 10, 26, 0.1); color: var(--burgundy-deep); border: 1px solid rgba(92, 10, 26, 0.3); }

.lot-title {
  text-align: center;
  margin: 24px 0;
}
.lot-title h3 {
  font-family: 'Noto Serif SC', serif;
  font-size: 1.5rem;
  color: var(--dark);
  margin-bottom: 4px;
}
.lot-title .title-en {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.05rem;
  color: var(--dark-soft);
  font-style: italic;
}

.story-box {
  background: rgba(184, 134, 11, 0.05);
  border-left: 3px solid var(--gold);
  padding: 16px 20px;
  border-radius: 0 8px 8px 0;
  margin: 24px 0;
}
.story-box .story-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--gold);
  margin-bottom: 6px;
}
.story-box p {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  color: var(--dark-soft);
  font-style: italic;
  text-align: left;
  margin: 0;
}

/* Poem display */
.poem-section {
  margin: 32px 0;
  text-align: center;
}
.poem-section h4 {
  font-family: 'Noto Serif SC', serif;
  font-size: 1rem;
  color: var(--gold);
  letter-spacing: 0.15em;
  margin-bottom: 20px;
}
.poem-chinese {
  font-family: 'Noto Serif SC', serif;
  font-size: clamp(1.1rem, 3vw, 1.4rem);
  line-height: 2.2;
  color: var(--dark);
  margin-bottom: 24px;
}
.poem-chinese .line { display: block; }
.poem-english {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1rem, 2.5vw, 1.15rem);
  line-height: 2;
  color: var(--dark-soft);
  font-style: italic;
}
.poem-english .line { display: block; }

/* Interpretation */
.interpretation {
  margin: 32px 0;
  padding: 24px;
  background: rgba(107, 158, 125, 0.06);
  border-radius: 12px;
  border: 1px solid rgba(107, 158, 125, 0.15);
}
.interpretation h4 {
  font-family: 'Noto Serif SC', serif;
  font-size: 1rem;
  color: var(--jade);
  letter-spacing: 0.1em;
  margin-bottom: 12px;
  text-align: center;
}
.interpretation p {
  line-height: 1.9;
  color: var(--dark-soft);
  text-align: left;
}

/* Specific advice */
.advice-section {
  margin: 32px 0;
}
.advice-section h4 {
  font-family: 'Noto Serif SC', serif;
  font-size: 1rem;
  color: var(--burgundy);
  text-align: center;
  margin-bottom: 20px;
  letter-spacing: 0.1em;
}
.advice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}
.advice-item {
  padding: 20px;
  border-radius: 12px;
  border: 1px solid rgba(184, 134, 11, 0.12);
  background: rgba(255, 245, 235, 0.5);
  text-align: center;
}
.advice-item .advice-icon {
  font-size: 1.5rem;
  margin-bottom: 8px;
}
.advice-item .advice-label {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--gold);
  margin-bottom: 8px;
}
.advice-item .advice-text {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--dark-soft);
}

/* Action buttons */
.action-row {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 40px;
  flex-wrap: wrap;
}
.action-btn {
  padding: 12px 32px;
  border-radius: 50px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  letter-spacing: 0.05em;
}
.action-btn.primary {
  background: linear-gradient(135deg, var(--burgundy), var(--burgundy-deep));
  color: #fff;
  border: none;
  box-shadow: 0 4px 16px rgba(123, 16, 36, 0.2);
}
.action-btn.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(123, 16, 36, 0.3);
}
.action-btn.secondary {
  background: transparent;
  color: var(--dark-soft);
  border: 1px solid rgba(184, 134, 11, 0.25);
}
.action-btn.secondary:hover {
  border-color: var(--gold);
  background: rgba(184, 134, 11, 0.04);
}

/* ── All Lots Browser ── */
.lots-browser { display: none; }
.lots-browser.active { display: block; }

.search-bar {
  margin-bottom: 24px;
}
.search-bar input {
  width: 100%;
  padding: 14px 20px;
  border: 1px solid rgba(184, 134, 11, 0.25);
  border-radius: 50px;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  color: var(--dark);
  background: var(--warm-white);
  transition: border-color 0.3s;
}
.search-bar input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(184, 134, 11, 0.1);
}

.filter-row {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.filter-btn {
  padding: 8px 20px;
  border: 1px solid rgba(184, 134, 11, 0.2);
  border-radius: 20px;
  background: transparent;
  font-size: 0.8rem;
  color: var(--dark-soft);
  cursor: pointer;
  transition: all 0.3s;
}
.filter-btn:hover, .filter-btn.active {
  border-color: var(--burgundy);
  background: rgba(123, 16, 36, 0.05);
  color: var(--burgundy);
}

.lots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 10px;
  margin-bottom: 40px;
}
.lot-tile {
  aspect-ratio: 1;
  border: 1px solid rgba(184, 134, 11, 0.15);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s;
  background: var(--warm-white);
  position: relative;
}
.lot-tile:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(184, 134, 11, 0.12);
}
.lot-tile .tile-num {
  font-family: 'Noto Serif SC', serif;
  font-size: 1.3rem;
  color: var(--dark);
  font-weight: 600;
}
.lot-tile .tile-fortune {
  font-size: 0.55rem;
  margin-top: 4px;
  padding: 2px 6px;
  border-radius: 4px;
}
.lot-tile.upper-upper .tile-fortune { background: rgba(255, 215, 0, 0.2); color: #B8860B; }
.lot-tile.upper .tile-fortune { background: rgba(184, 134, 11, 0.12); color: var(--gold); }
.lot-tile.middle .tile-fortune { background: rgba(107, 158, 125, 0.12); color: var(--jade); }
.lot-tile.lower .tile-fortune { background: rgba(123, 16, 36, 0.08); color: var(--burgundy); }
.lot-tile.lower-lower .tile-fortune { background: rgba(92, 10, 26, 0.1); color: var(--burgundy-deep); }

/* ── Footer ── */
.footer {
  text-align: center;
  padding: 48px 20px;
  border-top: 1px solid rgba(184, 134, 11, 0.12);
  margin-top: 60px;
}
.footer p {
  font-size: 0.8rem;
  color: #C4A88A;
  line-height: 1.8;
}
.footer .footer-brand {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.9rem;
  color: var(--gold);
  margin-bottom: 8px;
}

/* ── About Section ── */
.about-section {
  padding: 80px 0;
  position: relative;
  z-index: 2;
}
.about-card {
  background: var(--warm-white);
  border: 1px solid rgba(184, 134, 11, 0.12);
  border-radius: 16px;
  padding: 48px 40px;
  box-shadow: 0 4px 24px rgba(45, 24, 16, 0.04);
}
.about-card h2 {
  font-family: 'Noto Serif SC', serif;
  font-size: clamp(1.5rem, 4vw, 2rem);
  color: var(--burgundy);
  text-align: center;
  margin-bottom: 8px;
}
.about-card .about-sub {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  color: var(--gold);
  text-align: center;
  font-style: italic;
  margin-bottom: 32px;
}
.about-card p {
  color: var(--dark-soft);
  line-height: 1.9;
  margin-bottom: 18px;
  font-size: 0.95rem;
}
.about-card p:last-child { margin-bottom: 0; }
.about-highlight {
  background: rgba(123, 16, 36, 0.04);
  border-left: 3px solid var(--burgundy);
  padding: 20px 24px;
  border-radius: 0 12px 12px 0;
  margin: 28px 0;
}
.about-highlight p {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  color: var(--dark);
  font-style: italic;
  line-height: 1.8;
  margin-bottom: 0;
}

/* ── Disclaimer ── */
.disclaimer-bar {
  padding: 24px 0;
  position: relative;
  z-index: 2;
}
.disclaimer-inner {
  background: rgba(107, 158, 125, 0.06);
  border: 1px solid rgba(107, 158, 125, 0.15);
  border-radius: 12px;
  padding: 24px 32px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.disclaimer-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  margin-top: 2px;
}
.disclaimer-text {
  color: var(--dark-soft);
  font-size: 0.88rem;
  line-height: 1.75;
}
.disclaimer-text strong {
  color: var(--dark);
  font-weight: 600;
}

/* ── Donation Section ── */
.donation-section {
  padding: 60px 0;
  position: relative;
  z-index: 2;
}
.donation-card {
  background: var(--warm-white);
  border: 1px solid rgba(184, 134, 11, 0.15);
  border-radius: 16px;
  padding: 48px 40px;
  text-align: center;
  box-shadow: 0 4px 24px rgba(45, 24, 16, 0.04);
}
.donation-card h2 {
  font-family: 'Noto Serif SC', serif;
  font-size: clamp(1.4rem, 3.5vw, 1.8rem);
  color: var(--burgundy);
  margin-bottom: 8px;
}
.donation-card .donation-sub {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.05rem;
  color: var(--gold);
  font-style: italic;
  margin-bottom: 28px;
}
.donation-card p {
  color: var(--dark-soft);
  line-height: 1.8;
  margin-bottom: 16px;
  font-size: 0.95rem;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}
.donation-purposes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin: 32px 0;
  text-align: center;
}
.purpose-item {
  padding: 24px 20px;
  border-radius: 12px;
  border: 1px solid rgba(184, 134, 11, 0.12);
  background: rgba(255, 245, 235, 0.5);
}
.purpose-item .purpose-icon {
  font-size: 2rem;
  margin-bottom: 10px;
}
.purpose-item .purpose-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 6px;
}
.purpose-item .purpose-desc {
  font-size: 0.85rem;
  color: var(--dark-soft);
  line-height: 1.6;
}
.donate-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 48px;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: #fff;
  border: none;
  border-radius: 50px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: all 0.4s ease;
  box-shadow: 0 4px 20px rgba(184, 134, 11, 0.25);
  margin-top: 12px;
  text-decoration: none;
}
.donate-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(184, 134, 11, 0.35);
}
.donation-note {
  font-size: 0.8rem !important;
  color: #C4A88A !important;
  margin-top: 20px !important;
  font-style: italic;
}

/* ── Responsive ── */
@media (max-width: 640px) {
  .panel { padding: 32px 24px; }
  .steps { gap: 16px; }
  .step-label { font-size: 0.65rem; }
  .draw-btn { width: 150px; height: 150px; }
  .lots-grid { grid-template-columns: repeat(auto-fill, minmax(60px, 1fr)); gap: 8px; }
  .lot-tile .tile-num { font-size: 1rem; }
  .advice-grid { grid-template-columns: 1fr; }
  .category-grid { grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); }
  .action-row { flex-direction: column; align-items: center; }
  .about-card { padding: 32px 24px; }
  .donation-card { padding: 32px 24px; }
  .disclaimer-inner { flex-direction: column; padding: 20px 24px; }
  .donation-purposes { grid-template-columns: 1fr; }
  .nav-tab { padding: 6px 12px; font-size: 0.8rem; }
  .lang-btn { padding: 5px 10px; font-size: 0.75rem; }
  .music-toggle { padding: 5px 8px; font-size: 0.9rem; }
}

/* ── Back to top ── */
.back-top {
  position: fixed;
  bottom: 24px; right: 24px;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--burgundy);
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 1.2rem;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 12px rgba(123, 16, 36, 0.3);
  transition: all 0.3s;
  z-index: 100;
}
.back-top:hover { transform: translateY(-2px); }
.back-top.visible { display: flex; }

/* ── Life Analysis CTA Banner ── */
.life-cta-banner {
  margin: 40px auto;
  max-width: 720px;
  padding: 40px 32px;
  text-align: center;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(184,134,11,0.06), rgba(123,16,36,0.04));
  border: 1px solid rgba(184,134,11,0.15);
  position: relative;
  z-index: 5;
}
.life-cta-banner .cta-icon { font-size: 2.4rem; margin-bottom: 12px; }
.life-cta-banner h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.2rem, 3vw, 1.5rem);
  font-weight: 600;
  color: #7B1024;
  margin-bottom: 12px;
  line-height: 1.4;
}
.life-cta-banner p {
  font-size: 0.92rem;
  color: #5A3A2E;
  line-height: 1.8;
  max-width: 560px;
  margin: 0 auto 20px;
}
.life-cta-btn {
  display: inline-block;
  padding: 14px 36px;
  background: linear-gradient(135deg, #B8860B, #D4A24E);
  color: #fff;
  border: none;
  border-radius: 50px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-decoration: none;
  transition: all 0.4s ease;
  box-shadow: 0 4px 20px rgba(184,134,11,0.25);
}
.life-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(184,134,11,0.35);
}
.life-cta-sub {
  font-size: 0.78rem;
  color: #C4A88A;
  margin-top: 12px;
  font-style: italic;
}
.life-cta-home {
  display: inline-block;
  margin-top: 14px;
  font-size: 0.85rem;
  color: #7B1024;
  text-decoration: none;
  font-weight: 600;
  transition: opacity 0.3s;
}
.life-cta-home:hover { opacity: 0.7; }
