:root {
  --ink: #0f172a;
  --paper: #f8f5f2;
  --accent: #c58b5b;
  --accent-dark: #9a6a45;
  --admin-bg: #f4f6fa;
}

body.public-body {
  font-family: "Playfair Display", "Times New Roman", serif;
  background: radial-gradient(circle at top, #0b0f1e, #05060c 60%, #020308);
  color: var(--ink);
  min-height: 100vh;
  margin: 0;
}

body.admin-body {
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  background: var(--admin-bg);
  color: #1f2937;
}

.admin-sidebar {
  min-height: 100vh;
  background: #101828;
  color: #fff;
}

.admin-sidebar a {
  color: #e5e7eb;
  text-decoration: none;
}

.admin-sidebar a.active,
.admin-sidebar a:hover {
  color: #fff;
}

.hero {
  padding: 80px 0;
}

.hero-card {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid #f0e5d6;
  border-radius: 24px;
  box-shadow: 0 20px 60px rgba(64, 32, 0, 0.08);
}

.poster-wrap {
  border-radius: 20px;
  background: transparent;
  padding: 0;
  box-shadow: none;
}

.poster-image {
  width: 100%;
  border-radius: 16px;
  object-fit: cover;
}

.carousel-image {
  border-radius: 16px;
  object-fit: contain;
  max-height: 520px;
  background: transparent;
}

.swiper {
  width: 100%;
  padding: 10px 0 30px;
}

.swiper-slide {
  display: flex;
  align-items: center;
  justify-content: center;
}

.swiper-pagination-bullet {
  background: rgba(255, 255, 255, 0.6);
}

.swiper-button-prev,
.swiper-button-next {
  color: rgba(255, 255, 255, 0.8);
}

.swipe-hint {
  width: 120px;
  height: 120px;
  margin: 0 auto 40px;
  opacity: 1;
  transition: opacity 0.6s ease;
}

.swipe-hint.fade-out {
  opacity: 0;
}


.countdown-overlay {
  position: fixed;
  inset: 0;
  background: rgba(2, 3, 8, 0.55);
  color: #f8f4ec;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  text-align: center;
  flex-direction: column;
}

.countdown-overlay > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
}

.gift-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3000;
  background: radial-gradient(circle at top, rgba(8, 12, 24, 0.95), rgba(3, 4, 8, 0.98));
  color: #f8f4ec;
  text-align: center;
  opacity: 1;
  transition: opacity 0.6s ease;
}

.gift-card {
  padding: 24px;
  max-width: min(420px, 90vw);
}

.gift-title {
  font-family: "Dancing Script", cursive;
  font-size: 3.2rem;
  letter-spacing: 0.04em;
  margin-bottom: 16px;
  color: rgba(255, 255, 255, 0.9);
}

.gift-lottie {
  width: 340px;
  height: 340px;
  margin: 0 auto 16px;
}

@media (max-width: 576px) {
  .gift-lottie {
    width: 260px;
    height: 260px;
  }
  .gift-title {
    font-size: 2.2rem;
  }
}

.gift-countdown {
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 600;
  letter-spacing: 0.2em;
  color: #f7d7a8;
}

.gift-countdown.pulse {
  transform: scale(1.08);
  transition: transform 0.2s ease;
}

.gift-overlay.fade-out {
  opacity: 0;
}

.split-char {
  display: inline-block;
}

.split-line {
  display: block;
}

.split-word {
  display: inline-block;
  white-space: pre;
}

.editor-surface {
  min-height: 180px;
  padding: 12px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
}

.countdown-title {
  font-size: 1.4rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}

.countdown-timer {
  font-size: clamp(2rem, 6vw, 4.5rem);
  font-weight: 600;
  letter-spacing: 0.15em;
}

.music-wrap {
  background: transparent;
  padding: 0;
}

.section-card {
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid #f1e9de;
  box-shadow: 0 18px 40px rgba(24, 24, 24, 0.06);
}

.section-card .lead {
  text-align: center;
}

.auth-block {
  background: transparent;
  color: #fff;
}

.auth-line {
  color: #fff;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.footer-logo {
  width: 40px;
  opacity: 0.9;
}

.badge-theme {
  background: #fff1e2;
  color: var(--accent-dark);
}

.canvas-wrap {
  background: #05070f;
  border-radius: 18px;
  overflow: hidden;
}

.gallery-grid img {
  border-radius: 14px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.gallery-grid img:hover {
  transform: scale(1.03);
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 20, 0.85);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1050;
}

.lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 12px;
}

.countdown {
  font-weight: 600;
  letter-spacing: 0.08em;
}

.btn-accent {
  background: var(--accent);
  color: #fff;
  border: none;
}

.btn-accent:hover {
  background: var(--accent-dark);
  color: #fff;
}
.starfield {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.meteorfield {
  position: fixed;
  inset: 0;
  z-index: 10;
  pointer-events: none;
}

html, body.public-body {
  height: 100%;
  background-color: #020308;
}

body.public-body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at top, #0b0f1e, #05060c 60%, #020308);
  z-index: -1;
}

#landingContent,
.countdown-overlay {
  position: relative;
  z-index: 1;
}
