/**
 * =========================================================================
 * THE JOURNAL OF HIM — ISLANDER & EDITORIAL STYLESHEET
 * =========================================================================
 * Featuring:
 * - High-Contrast Editorial Typography (Cinzel, Newsreader, Dancing Script, Outfit)
 * - Tongan Kupesi & Tapa Cloth Motifs (Manulua, Fata, Geometric Diamond Weaves)
 * - Left Timeline Navigation Rail with Animated Tracking Bead
 * - Distinct Island Palettes per Section
 * - Super 8 Perforated Film Strip Reels
 * - Scattered Loose Polaroid Constellations
 * - Fully Responsive & 100% Static Cloudflare Pages / GitHub Compatible
 */

/* ==========================================================================
   1. CSS VARIABLES & THEME TOKENS
   ========================================================================== */
:root {
  /* Editorial Color Palette */
  --bg-deep-twilight: #0d0a08;
  --bg-coconut-cream: #fbf9f4;
  --bg-warm-sand: #f5eedf;
  --bg-polynesian-dusk: #1b1411;
  --bg-island-botanical: #f4ede0;
  --bg-ocean-night: #091218;
  --bg-lagoon-dusk: #16100c;

  /* Gold & Polynesian Ochre */
  --gold-primary: #dfb76c;
  --gold-vivid: #f3cf7a;
  --gold-dark: #8c6a2e;
  --ochre-tonga: #b85d19;
  --tongan-red: #8b1d1d;

  /* Typography Colors */
  --text-dark-main: #1c1917;
  --text-dark-sub: #57534e;
  --text-light-main: #fbf9f5;
  --text-light-sub: #d6cfc4;

  /* Typography Fonts */
  --font-serif-headline: 'Newsreader', 'Cormorant Garamond', Georgia, serif;
  --font-display-royal: 'Cinzel', serif;
  --font-cursive: 'Dancing Script', cursive;
  --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Transitions & Shadows */
  --transition-smooth: 0.35s cubic-bezier(0.25, 1, 0.5, 1);
  --shadow-card: 0 16px 38px rgba(0, 0, 0, 0.12), 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-polaroid: 0 12px 32px rgba(0, 0, 0, 0.18), 0 2px 6px rgba(0, 0, 0, 0.1);
  --shadow-film: 0 18px 40px rgba(0, 0, 0, 0.45);
}

/* ==========================================================================
   2. RESET & BASE STYLES
   ========================================================================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-deep-twilight);
}

body.editorial-body {
  font-family: var(--font-sans);
  color: var(--text-dark-main);
  background: var(--bg-deep-twilight);
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Ambient Canvas */
#ambient-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 90;
  opacity: 0.65;
}

/* ==========================================================================
   3. TONGAN KUPESI & TAPA SVG PATTERNS
   ========================================================================== */
/* Tongan Tapa Geometric Border */
.tongan-tapa-border {
  width: 100%;
  height: 24px;
  background-repeat: repeat-x;
  background-size: 48px 24px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='24' viewBox='0 0 48 24'%3E%3Cpath d='M0 12 L12 0 L24 12 L12 24 Z M24 12 L36 0 L48 12 L36 24 Z M12 12 L24 0 L36 12 L24 24 Z' fill='none' stroke='%23dfb76c' stroke-width='1.2' stroke-opacity='0.45'/%3E%3Ccircle cx='24' cy='12' r='2' fill='%23dfb76c' fill-opacity='0.6'/%3E%3C/svg%3E");
  opacity: 0.8;
}

.tongan-tapa-border.top {
  position: absolute;
  top: 0;
  left: 0;
}

.tongan-tapa-border.bottom {
  position: absolute;
  bottom: 0;
  left: 0;
}

/* Tongan Kupesi Watermark Overlay */
.section-watermark-tapa {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cpath d='M40 0 L80 40 L40 80 L0 40 Z' fill='none' stroke='%23dfb76c' stroke-width='1' stroke-opacity='0.08'/%3E%3Cpath d='M40 15 L65 40 L40 65 L15 40 Z' fill='none' stroke='%23dfb76c' stroke-width='0.7' stroke-opacity='0.05'/%3E%3Cpath d='M20 20 L60 60 M60 20 L20 60' stroke='%23dfb76c' stroke-width='0.5' stroke-opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}

/* Kupesi Fata Pattern */
.tongan-kupesi-fata-pattern {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cpath d='M0 60 L60 0 L120 60 L60 120 Z' fill='none' stroke='%238c6a2e' stroke-width='1' stroke-opacity='0.06'/%3E%3Ccircle cx='60' cy='60' r='8' fill='none' stroke='%23dfb76c' stroke-width='1' stroke-opacity='0.08'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}

/* Ocean Overlay */
.tongan-kupesi-ocean-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(circle at 50% 30%, rgba(223, 183, 108, 0.08) 0%, transparent 60%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='30' viewBox='0 0 60 30'%3E%3Cpath d='M0 15 Q 15 0 30 15 T 60 15' fill='none' stroke='%23dfb76c' stroke-width='0.8' stroke-opacity='0.06'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}

/* Island Palm Accent Silhouettes */
.island-palm-accent {
  position: absolute;
  bottom: -40px;
  right: -50px;
  width: 220px;
  height: 220px;
  background-repeat: no-repeat;
  background-size: contain;
  opacity: 0.18;
  pointer-events: none;
  z-index: 1;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M50 100 C 52 70 54 40 50 10 C 45 35 15 25 5 35 C 25 38 45 42 48 50 C 30 50 10 58 5 70 C 25 65 44 58 49 65 C 38 75 25 85 20 95 C 35 88 46 80 50 100 Z' fill='%238c6a2e'/%3E%3Cpath d='M50 10 C 65 20 85 15 95 25 C 75 30 55 35 52 45 C 70 42 90 48 95 60 C 75 58 56 55 51 62 C 62 72 75 80 80 90 C 65 82 54 75 50 100 Z' fill='%238c6a2e'/%3E%3C/svg%3E");
}

/* ==========================================================================
   4. LEFT TIMELINE NAVIGATION RAIL
   ========================================================================== */
.timeline-rail {
  position: fixed;
  left: 24px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  pointer-events: auto;
}

.rail-track {
  position: absolute;
  left: 8px;
  top: 9px;
  bottom: 9px;
  width: 2px;
  background: rgba(223, 183, 108, 0.25);
  border-radius: 2px;
  pointer-events: none;
}

.rail-progress-bar {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0%;
  background: var(--gold-primary);
  box-shadow: 0 0 8px rgba(223, 183, 108, 0.7);
  transition: height 0.15s ease-out;
}

.rail-active-bead {
  position: absolute;
  left: -5px;
  top: 0px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--gold-vivid);
  border: 2px solid #ffffff;
  box-shadow: 0 0 14px rgba(243, 207, 122, 1);
  transform: translateY(-50%);
  transition: top 0.22s cubic-bezier(0.25, 1, 0.5, 1);
  pointer-events: none;
  z-index: 5;
}

.rail-nodes {
  display: flex;
  flex-direction: column;
  gap: 28px;
  position: relative;
  z-index: 2;
}

.rail-node {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px;
  outline: none;
  text-align: left;
}

.rail-node .node-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(223, 183, 108, 0.4);
  transition: all 0.25s ease;
  display: block;
  flex-shrink: 0;
}

.rail-node .node-label {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(223, 183, 108, 0.5);
  opacity: 0;
  transform: translateX(-6px);
  transition: all 0.25s ease;
  pointer-events: none;
  white-space: nowrap;
}

.rail-node:hover .node-dot {
  background: var(--gold-vivid);
  transform: scale(1.3);
}

.rail-node:hover .node-label {
  opacity: 1;
  transform: translateX(0);
  color: var(--gold-vivid);
}

.rail-node.active .node-dot {
  background: var(--gold-primary);
  transform: scale(1.3);
  box-shadow: 0 0 8px rgba(223, 183, 108, 0.8);
}

.rail-node.active .node-label {
  opacity: 1;
  transform: translateX(0);
  color: var(--gold-primary);
}

/* ==========================================================================
   5. TOP NAVIGATION & AUDIO CLUSTER
   ========================================================================== */
.top-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 64px;
  background: rgba(13, 10, 8, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(223, 183, 108, 0.18);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 28px;
  transition: transform 0.38s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.28s ease, background 0.3s ease, border-color 0.3s ease;
  will-change: transform;
}

/* Complete hide on scroll down for mobile/tablet */
.top-nav.nav-hidden {
  transform: translateY(-130%) !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  justify-self: start;
}

.brand-crest-icon {
  font-size: 20px;
}

.brand-text {
  font-family: var(--font-display-royal);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--gold-primary);
  text-transform: uppercase;
}

.nav-center-cluster {
  justify-self: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0 auto;
}

.nav-view-tab {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(223, 183, 108, 0.2);
  color: var(--text-light-sub);
  padding: 6px 14px;
  border-radius: 20px;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.nav-view-tab:hover {
  background: rgba(223, 183, 108, 0.15);
  color: var(--gold-vivid);
  border-color: var(--gold-primary);
}

.nav-view-tab.active {
  background: rgba(223, 183, 108, 0.22);
  color: var(--gold-vivid);
  border-color: var(--gold-primary);
  box-shadow: 0 0 10px rgba(223, 183, 108, 0.2);
}

.nav-cta-btn {
  background: linear-gradient(135deg, #dfb76c, #b88628);
  color: #1a1208;
  border: none;
  padding: 6px 16px;
  border-radius: 20px;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: var(--transition-smooth);
  box-shadow: 0 4px 12px rgba(223, 183, 108, 0.3);
}

.nav-cta-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(223, 183, 108, 0.5);
  filter: brightness(1.1);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-self: end;
}

/* Audio Player Cluster */
.audio-player-cluster {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 0, 0, 0.4);
  padding: 4px 10px;
  border-radius: 24px;
  border: 1px solid rgba(223, 183, 108, 0.25);
}

.nav-btn, .nav-btn-mini {
  background: none;
  border: none;
  color: var(--gold-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-sans);
  font-size: 12px;
  transition: var(--transition-smooth);
}

.nav-btn-mini {
  font-size: 11px;
  opacity: 0.7;
}

.nav-btn-mini:hover {
  opacity: 1;
  transform: scale(1.15);
}

.nav-btn:hover {
  color: var(--gold-vivid);
}

.audio-volume-control {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: 6px;
  padding-left: 6px;
  border-left: 1px solid rgba(223, 183, 108, 0.2);
}

.volume-icon {
  font-size: 12px;
  color: var(--gold-primary);
}

.volume-slider {
  width: 55px;
  height: 4px;
  accent-color: var(--gold-primary);
  cursor: pointer;
}

.volume-label {
  font-size: 10px;
  color: var(--text-light-sub);
  width: 24px;
}

/* ==========================================================================
   6. JOURNAL SECTIONS ARCHITECTURE & ISLAND PALETTES
   ========================================================================== */
.journal-scroll-container {
  width: 100%;
  min-height: 100vh;
  position: relative;
  padding-left: 80px; /* Room for left timeline rail */
}

.journal-section {
  width: 100%;
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 48px;
  overflow: hidden;
}

/* Palette 1: Twilight Pacific */
.island-bg-twilight {
  background: radial-gradient(circle at 50% 40%, #201712 0%, #0d0a08 85%);
  color: var(--text-light-main);
}

/* Palette 2: Coconut Cream & Sand */
.island-bg-cream {
  background: linear-gradient(180deg, #fdfbf7 0%, #f6efe2 100%);
  color: var(--text-dark-main);
}

/* Palette 3: Warm Sand & Ochre */
.island-bg-sand {
  background: linear-gradient(135deg, #f7f1e4 0%, #eedfca 100%);
  color: var(--text-dark-main);
}

/* Palette 4: Polynesian Dusk */
.island-bg-dusk {
  background: radial-gradient(circle at 50% 20%, #291d17 0%, #150f0c 90%);
  color: var(--text-light-main);
}

/* Palette 5: Botanical Shadows */
.island-bg-botanical {
  background: linear-gradient(180deg, #f8f4ec 0%, #ede3d2 100%);
  color: var(--text-dark-main);
}

/* Palette 6: Deep Ocean Night */
.island-bg-ocean {
  background: radial-gradient(circle at 50% 50%, #101e28 0%, #080e14 90%);
  color: var(--text-light-main);
}

/* Palette 7: Sunset Lagoon */
.island-bg-lagoon {
  background: linear-gradient(180deg, #1f1612 0%, #0f0a08 100%);
  color: var(--text-light-main);
}

/* Common Typography Utilities */
.entry-header-tag {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ochre-tonga);
  margin-bottom: 16px;
}

.island-bg-dusk .entry-header-tag,
.island-bg-twilight .entry-header-tag,
.island-bg-ocean .entry-header-tag,
.island-bg-lagoon .entry-header-tag {
  color: var(--gold-vivid);
}

.entry-display-headline {
  font-family: var(--font-serif-headline);
  font-size: clamp(40px, 5.5vw, 68px);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin-bottom: 24px;
}

.entry-gold-divider {
  width: 60px;
  height: 2px;
  background: var(--gold-primary);
  margin-bottom: 24px;
}

.entry-gold-divider.centered {
  margin-left: auto;
  margin-right: auto;
}

/* ==========================================================================
   7. SECTION 0: HERO CINEMATIC COVER
   ========================================================================== */
.hero-cover-section {
  text-align: center;
  flex-direction: column;
}

.hero-cover-content {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 2;
}

.hero-badge-tag {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.35em;
  color: var(--gold-primary);
  text-transform: uppercase;
  margin-bottom: 24px;
  padding: 6px 16px;
  border-top: 1px solid rgba(223, 183, 108, 0.4);
  border-bottom: 1px solid rgba(223, 183, 108, 0.4);
}

.hero-main-title {
  font-family: var(--font-serif-headline);
  font-size: clamp(52px, 8.5vw, 104px);
  font-weight: 300;
  line-height: 0.95;
  color: var(--text-light-main);
  margin-bottom: 32px;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
}

.title-cursive-accent {
  font-family: var(--font-cursive);
  font-weight: 700;
  color: var(--gold-vivid);
  font-size: 1.15em;
  display: inline-block;
  margin-top: 6px;
  text-shadow: 0 0 16px rgba(243, 207, 122, 0.4);
}

.hero-narrative-sub {
  font-family: var(--font-sans);
  font-size: clamp(15px, 2vw, 19px);
  font-weight: 300;
  line-height: 1.7;
  color: var(--text-light-sub);
  max-width: 640px;
  margin-bottom: 48px;
}

.hero-open-btn {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  outline: none;
  transition: var(--transition-smooth);
}

.btn-book-icon {
  font-size: 24px;
}

.btn-open-text {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.28em;
  color: var(--gold-vivid);
  text-transform: uppercase;
}

.btn-gold-underline {
  width: 100%;
  height: 1.5px;
  background: var(--gold-primary);
  transition: width 0.3s ease;
}

.hero-open-btn:hover {
  transform: translateY(-3px);
}

.hero-open-btn:hover .btn-gold-underline {
  background: #ffffff;
  box-shadow: 0 0 8px #ffffff;
}

.hero-scroll-cue {
  margin-top: 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0.6;
}

.cue-mouse {
  width: 20px;
  height: 32px;
  border: 2px solid var(--gold-primary);
  border-radius: 12px;
  position: relative;
}

.cue-mouse::after {
  content: '';
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 6px;
  background: var(--gold-primary);
  border-radius: 2px;
  animation: scrollMouse 1.8s infinite;
}

@keyframes scrollMouse {
  0% { opacity: 1; top: 6px; }
  100% { opacity: 0; top: 18px; }
}

.cue-label {
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--gold-primary);
}

/* ==========================================================================
   8. ENTRY I: THE EARLY YEARS ("He lived in weather,")
   ========================================================================== */
.entry-grid-container {
  max-width: 1180px;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.entry-text-col {
  padding-right: 20px;
}

.entry-narrative-body {
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.8;
  color: var(--text-dark-sub);
  margin-bottom: 32px;
}

.entry-anchor-date {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.25em;
  color: var(--ochre-tonga);
}

.entry-photo-col {
  position: relative;
}

.editorial-photo-mount {
  position: relative;
  display: inline-block;
  width: 100%;
}

.editorial-frame {
  position: relative;
  background: #ffffff;
  padding: 14px;
  border-radius: 3px;
  box-shadow: var(--shadow-card);
  cursor: pointer;
  transition: transform 0.4s var(--transition-smooth), box-shadow 0.4s ease;
}

.editorial-frame:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.2);
}

.editorial-img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  display: block;
  border-radius: 2px;
}

.photo-bottom-stamp {
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: #888888;
  text-align: right;
  margin-top: 10px;
}

/* ==========================================================================
   9. ENTRY II: DEDICATION & THE PILLAR
   ========================================================================== */
.dedication-container {
  max-width: 780px;
  width: 100%;
  text-align: center;
  position: relative;
  z-index: 2;
}

.tongan-crest-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(140, 106, 46, 0.12);
  border: 1px solid rgba(140, 106, 46, 0.3);
  padding: 6px 16px;
  border-radius: 20px;
  margin-bottom: 20px;
}

.crest-symbol {
  font-size: 16px;
}

.crest-motto {
  font-family: var(--font-display-royal);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--tongan-red);
}

.serif-italic {
  font-style: italic;
}

.dedication-parchment-card {
  background: #ffffff;
  padding: 56px 48px;
  border-radius: 4px;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(223, 183, 108, 0.3);
  text-align: left;
  position: relative;
}

.letter-salutation {
  font-family: var(--font-serif-headline);
  font-size: 26px;
  font-style: italic;
  color: var(--tongan-red);
  margin-bottom: 24px;
}

.letter-paragraphs p {
  font-family: var(--font-serif-headline);
  font-size: 19px;
  line-height: 1.85;
  color: #2b2520;
  margin-bottom: 20px;
}

.letter-signature-area {
  margin-top: 40px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.sig-script {
  font-family: var(--font-cursive);
  font-size: 26px;
  color: var(--ochre-tonga);
}

.sig-family {
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #1a1613;
  margin-top: 4px;
}

.wax-seal-gold {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: radial-gradient(circle, #dfb76c 30%, #8c6a2e 90%);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: var(--font-display-royal);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.1em;
  color: #1a1208;
  box-shadow: 0 4px 14px rgba(140, 106, 46, 0.4);
  border: 2px solid #fce8a6;
}

.wax-seal-tongan {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  background: radial-gradient(circle, #f5d688 20%, #dfb76c 60%, #8c6a2e 95%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(140, 106, 46, 0.45), 0 2px 8px rgba(0, 0, 0, 0.3);
  border: 2px solid #fff2c6;
  padding: 6px;
  position: relative;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  margin-top: 10px;
}

.wax-seal-tongan:hover {
  transform: scale(1.08) rotate(3deg);
  box-shadow: 0 8px 26px rgba(223, 183, 108, 0.6);
}

.tongan-wax-seal-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.35));
}

/* ==========================================================================
   10. ENTRY III: THE TIMELINE ("a reel of the years")
   ========================================================================== */
.section-title-wrap {
  text-align: center;
  margin-bottom: 64px;
}

.cursive-accent-headline {
  color: var(--text-light-main);
}

.timeline-reels-container {
  max-width: 1100px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 72px;
  z-index: 2;
}

.film-reel-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

/* Super 8 Perforated Film Strip Frame */
.film-strip-frame {
  background: #000000;
  padding: 16px 20px;
  border-radius: 4px;
  box-shadow: var(--shadow-film);
  cursor: pointer;
  transition: transform 0.4s var(--transition-smooth), box-shadow 0.4s ease;
  position: relative;
}

.film-strip-frame:hover {
  transform: scale(1.02);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.7);
}

.sprockets {
  height: 12px;
  width: 100%;
  background-image: repeating-linear-gradient(
    90deg,
    #ffffff 0px,
    #ffffff 12px,
    #000000 12px,
    #000000 24px
  );
  opacity: 0.85;
}

.sprockets.top {
  margin-bottom: 12px;
}

.sprockets.bottom {
  margin-top: 12px;
}

.film-image-target {
  width: 100%;
  height: 320px;
  overflow: hidden;
  background: #111111;
}

.film-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.05) saturate(1.1);
  transition: transform 0.5s ease;
}

.film-strip-frame:hover .film-img {
  transform: scale(1.04);
}

.film-reel-meta {
  padding: 16px 0;
}

.film-year-badge {
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.25em;
  color: var(--gold-vivid);
  display: inline-block;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.film-title {
  font-family: var(--font-serif-headline);
  font-size: 38px;
  font-style: italic;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 18px;
  letter-spacing: 0.02em;
}

.film-caption {
  font-family: var(--font-sans);
  font-size: 19px;
  line-height: 1.85;
  color: #f7f3ea !important;
  font-weight: 400;
}

.film-meta-divider {
  width: 54px;
  height: 2px;
  background: var(--gold-primary);
  margin-top: 24px;
  opacity: 0.85;
}

/* ==========================================================================
   11. ENTRY IV: POLAROIDS ("a few polaroids, kept loose")
   ========================================================================== */
.polaroid-headline {
  color: var(--text-dark-main);
}

.gold-italic {
  font-family: var(--font-cursive);
  font-weight: 700;
  color: var(--ochre-tonga);
}

.section-sub-desc {
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--text-dark-sub);
  margin-top: 6px;
  margin-bottom: 16px;
}

.polaroid-scatter-constellation {
  max-width: 1100px;
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 36px;
  padding: 24px 0;
  z-index: 2;
}

.scatter-polaroid-item {
  width: 220px;
  background: #ffffff;
  padding: 12px 12px 28px 12px;
  border-radius: 2px;
  box-shadow: var(--shadow-polaroid);
  position: relative;
  cursor: pointer;
  transition: transform 0.35s var(--transition-smooth), box-shadow 0.35s ease, z-index 0s;
}

.scatter-polaroid-item:hover {
  transform: scale(1.12) rotate(0deg) !important;
  box-shadow: 0 20px 42px rgba(0, 0, 0, 0.25);
  z-index: 10;
}

.scotch-tape {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 55px;
  height: 18px;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(220, 220, 220, 0.3);
  backdrop-filter: blur(2px);
}

.polaroid-photo-box {
  width: 100%;
  height: 196px;
  overflow: hidden;
  background: #f0f0f0;
}

.polaroid-photo-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.polaroid-year-stamp {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: #666666;
  text-align: center;
  margin-top: 10px;
}

/* ==========================================================================
   12. ENTRY V: WORDS OF WISDOM & EPILOGUE
   ========================================================================== */
.wisdom-container {
  max-width: 900px;
  width: 100%;
  text-align: center;
  z-index: 2;
}

.quotes-editorial-grid {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 56px;
}

.wisdom-quote-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(223, 183, 108, 0.25);
  padding: 28px 36px;
  border-radius: 4px;
  text-align: left;
  backdrop-filter: blur(8px);
  transition: var(--transition-smooth);
}

.wisdom-quote-card:hover {
  background: rgba(223, 183, 108, 0.08);
  border-color: var(--gold-vivid);
  transform: translateX(6px);
}

.quote-text {
  font-family: var(--font-serif-headline);
  font-size: 21px;
  font-style: italic;
  line-height: 1.6;
  color: var(--text-light-main);
  margin-bottom: 10px;
}

.quote-meta {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--gold-primary);
}

.epilogue-toast-box {
  background: radial-gradient(circle at 50% 30%, #291d17 0%, #17110e 90%);
  border: 1px solid var(--gold-primary);
  padding: 48px 40px;
  border-radius: 6px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
  text-align: center;
}

.toast-badge {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.3em;
  color: var(--gold-vivid);
  margin-bottom: 12px;
}

.toast-title {
  font-family: var(--font-serif-headline);
  font-size: 36px;
  font-weight: 400;
  color: var(--text-light-main);
  margin-bottom: 16px;
}

.toast-message {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-light-sub);
  max-width: 600px;
  margin: 0 auto 20px auto;
}

.toast-signoff {
  font-family: var(--font-cursive);
  font-size: 26px;
  color: var(--gold-vivid);
  margin-bottom: 24px;
}

.toast-celebrate-btn {
  background: linear-gradient(135deg, #dfb76c, #b88628);
  color: #1a1208;
  border: none;
  padding: 12px 28px;
  border-radius: 30px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition-smooth);
  box-shadow: 0 6px 18px rgba(223, 183, 108, 0.4);
}

.toast-celebrate-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 24px rgba(223, 183, 108, 0.6);
}

/* ==========================================================================
   13. SECTION VI: COMMUNITY WALL OF HONOR
   ========================================================================== */
.community-wall-section {
  flex-direction: column;
  text-align: center;
}

.community-wall-header {
  max-width: 800px;
  margin-bottom: 48px;
}

.community-wall-badge {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.28em;
  color: var(--gold-vivid);
  margin-bottom: 12px;
}

.community-wall-title {
  font-family: var(--font-serif-headline);
  font-size: clamp(32px, 4.5vw, 52px);
  color: var(--text-light-main);
  margin-bottom: 12px;
}

.community-wall-sub {
  font-family: var(--font-sans);
  font-size: 16px;
  color: var(--text-light-sub);
  margin-bottom: 24px;
}

.community-wall-toolbar .wall-btn.highlight {
  background: linear-gradient(135deg, #dfb76c, #b88628);
  color: #1a1208;
  border: none;
  padding: 12px 28px;
  border-radius: 24px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition-smooth);
  box-shadow: 0 4px 16px rgba(223, 183, 108, 0.35);
}

.community-wall-toolbar .wall-btn.highlight:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(223, 183, 108, 0.55);
}

.community-collage-board {
  max-width: 1200px;
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 32px;
}

/* Polaroid Scatter Card for Community */
.polaroid-scatter-card {
  width: 240px;
  background: #ffffff;
  padding: 12px 12px 24px 12px;
  border-radius: 2px;
  box-shadow: var(--shadow-polaroid);
  position: relative;
  cursor: pointer;
  text-align: left;
  transition: transform 0.35s var(--transition-smooth), box-shadow 0.35s ease;
}

.polaroid-scatter-card:hover {
  transform: scale(1.08) rotate(0deg) !important;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  z-index: 10;
}

.polaroid-img-wrap {
  width: 100%;
  height: 210px;
  overflow: hidden;
  background: #1a1613;
}

.polaroid-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.polaroid-meta {
  margin-top: 12px;
}

.polaroid-card-caption {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 700;
  color: #1a1613;
}

.polaroid-card-subcaption {
  font-family: var(--font-sans);
  font-size: 12px;
  color: #666666;
  margin-top: 4px;
}

.polaroid-card-uploader {
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 600;
  color: var(--ochre-tonga);
  margin-top: 6px;
}

/* Empty Upload Slot Card */
.empty-slot-card {
  border: 2px dashed rgba(223, 183, 108, 0.6);
  background: rgba(255, 255, 255, 0.05);
}

.empty-slot-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(223, 183, 108, 0.08);
  border: 1px dashed rgba(223, 183, 108, 0.4);
}

.empty-slot-plus {
  font-size: 36px;
  color: var(--gold-vivid);
  margin-bottom: 6px;
}

.empty-slot-text {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 700;
  color: var(--gold-vivid);
}

.empty-slot-card .polaroid-card-caption {
  color: var(--gold-vivid);
}

.empty-slot-card .polaroid-card-subcaption {
  color: rgba(255, 255, 255, 0.7);
}

/* ==========================================================================
   14. FOOTER
   ========================================================================== */
.journal-footer {
  width: 100%;
  padding: 48px 24px;
  background: #090705;
  text-align: center;
  color: rgba(255, 255, 255, 0.45);
  font-size: 13px;
  position: relative;
}

.tongan-tapa-footer-line {
  width: 100%;
  height: 12px;
  background-repeat: repeat-x;
  background-size: 36px 12px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='12' viewBox='0 0 36 12'%3E%3Cpath d='M0 6 L9 0 L18 6 L9 12 Z M18 6 L27 0 L36 6 L27 12 Z' fill='none' stroke='%23dfb76c' stroke-width='0.8' stroke-opacity='0.3'/%3E%3C/svg%3E");
  margin-bottom: 24px;
}

.footer-text {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-year {
  font-size: 11px;
  color: var(--gold-dark);
}

/* ==========================================================================
   15. MODALS & LIGHTBOX (LIGHTBOX, UPLOAD, PASSCODE, GUESTBOOK)
   ========================================================================== */
/* Lightbox */
.media-lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
}

.media-lightbox.active {
  display: flex;
}

.lightbox-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(12px);
}

.lightbox-dialog {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  background: #16110e;
  border: 1px solid var(--gold-primary);
  border-radius: 4px;
  padding: 16px;
  z-index: 2;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.8);
}

.lightbox-close {
  position: absolute;
  top: -16px;
  right: -16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--gold-primary);
  color: #16110e;
  border: none;
  font-size: 16px;
  font-weight: 900;
  cursor: pointer;
}

.lightbox-media-target img {
  max-width: 80vw;
  max-height: 70vh;
  object-fit: contain;
  display: block;
}

.lightbox-details {
  margin-top: 14px;
  text-align: center;
  color: var(--text-light-main);
}

.lightbox-title {
  font-family: var(--font-serif-headline);
  font-size: 20px;
  color: var(--gold-vivid);
}

.lightbox-caption {
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--text-light-sub);
  margin-top: 4px;
}

/* Upload Modal */
.upload-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 310;
  display: none;
  align-items: center;
  justify-content: center;
}

.upload-modal.active {
  display: flex;
}

.upload-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
}

.upload-dialog {
  position: relative;
  width: 90%;
  max-width: 520px;
  background: #1c1511;
  border: 1px solid var(--gold-primary);
  border-radius: 6px;
  padding: 36px 32px;
  color: var(--text-light-main);
  z-index: 2;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
}

.upload-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  color: var(--gold-primary);
  font-size: 20px;
  cursor: pointer;
}

.upload-header {
  text-align: center;
  margin-bottom: 24px;
}

.upload-badge {
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.25em;
  color: var(--gold-vivid);
}

.upload-header h2 {
  font-family: var(--font-serif-headline);
  font-size: 26px;
  margin: 6px 0;
}

.upload-header p {
  font-size: 13px;
  color: var(--text-light-sub);
}

.upload-dropzone {
  border: 2px dashed rgba(223, 183, 108, 0.4);
  background: rgba(0, 0, 0, 0.3);
  padding: 24px;
  border-radius: 4px;
  text-align: center;
  cursor: pointer;
  margin-bottom: 20px;
}

.drop-icon {
  font-size: 32px;
}

.drop-title {
  font-weight: 600;
  font-size: 14px;
  color: var(--gold-vivid);
  margin-top: 6px;
}

.drop-sub {
  font-size: 12px;
  color: var(--text-light-sub);
}

.dropzone-preview img {
  max-height: 140px;
  border-radius: 3px;
  margin-bottom: 8px;
}

.remove-preview-btn {
  background: #3a2218;
  color: #ffffff;
  border: none;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 11px;
  cursor: pointer;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--gold-primary);
  margin-bottom: 6px;
}

.form-group input {
  width: 100%;
  padding: 10px 14px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(223, 183, 108, 0.3);
  border-radius: 4px;
  color: #ffffff;
  font-family: var(--font-sans);
  font-size: 14px;
}

.form-group input:focus {
  outline: none;
  border-color: var(--gold-vivid);
}

.upload-error-msg {
  display: none;
  font-size: 12px;
  color: #ff7878;
  margin-bottom: 14px;
  text-align: center;
}

.submit-upload-btn {
  width: 100%;
  background: linear-gradient(135deg, #dfb76c, #b88628);
  color: #1a1208;
  border: none;
  padding: 12px;
  border-radius: 4px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

/* Passcode Gatekeeper */
.passcode-gate {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 400;
  display: none;
  align-items: center;
  justify-content: center;
}

.passcode-gate.active {
  display: flex;
}

.gate-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(9, 7, 5, 0.95);
  backdrop-filter: blur(16px);
}

.gate-card-wrapper {
  position: relative;
  z-index: 2;
  width: 90%;
  max-width: 440px;
}

.gate-card {
  background: #1a130f;
  border: 1px solid var(--gold-primary);
  border-radius: 6px;
  padding: 42px 36px;
  text-align: center;
  color: var(--text-light-main);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.85);
}

.gate-crest {
  font-size: 36px;
  margin-bottom: 12px;
}

.gate-title {
  font-family: var(--font-serif-headline);
  font-size: 28px;
  color: var(--gold-vivid);
  margin-bottom: 8px;
}

.gate-sub {
  font-size: 13px;
  color: var(--text-light-sub);
  margin-bottom: 24px;
}

.gate-form input {
  width: 100%;
  padding: 12px 16px;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(223, 183, 108, 0.4);
  border-radius: 4px;
  color: #ffffff;
  font-size: 15px;
  text-align: center;
  margin-bottom: 12px;
}

.gate-error {
  display: none;
  font-size: 12px;
  color: #ff7676;
  margin-bottom: 12px;
}

.gate-btn {
  width: 100%;
  background: linear-gradient(135deg, #dfb76c, #b88628);
  color: #1a1208;
  border: none;
  padding: 12px;
  border-radius: 4px;
  font-weight: 700;
  cursor: pointer;
}

/* Guestbook Modal */
.guestbook-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 320;
  display: none;
  align-items: center;
  justify-content: center;
}

.guestbook-modal.active {
  display: flex;
}

.guestbook-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
}

.guestbook-dialog {
  position: relative;
  width: 90%;
  max-width: 600px;
  max-height: 80vh;
  background: #18120e;
  border: 1px solid var(--gold-primary);
  border-radius: 6px;
  padding: 32px;
  color: var(--text-light-main);
  z-index: 2;
  display: flex;
  flex-direction: column;
}

.guestbook-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.guestbook-badge {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--gold-vivid);
}

.guestbook-header h2 {
  font-family: var(--font-serif-headline);
  font-size: 24px;
}

.guestbook-close {
  background: none;
  border: none;
  color: var(--gold-primary);
  font-size: 20px;
  cursor: pointer;
}

.guestbook-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(223, 183, 108, 0.2);
  margin-bottom: 16px;
}

.visitor-count-badge {
  font-size: 12px;
  color: var(--text-light-sub);
}

.guestbook-refresh-btn {
  background: rgba(223, 183, 108, 0.15);
  border: 1px solid rgba(223, 183, 108, 0.3);
  color: var(--gold-vivid);
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 11px;
  cursor: pointer;
}

.guestbook-list {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.guestbook-item {
  background: rgba(255, 255, 255, 0.04);
  padding: 12px 16px;
  border-radius: 4px;
  border-left: 3px solid var(--gold-primary);
}

.guestbook-item-name {
  font-weight: 700;
  font-size: 14px;
  color: var(--gold-vivid);
}

.guestbook-item-time {
  font-size: 10px;
  color: var(--text-light-sub);
  margin-left: 6px;
}

.guestbook-item-note {
  font-size: 12px;
  color: #dddddd;
  margin-top: 4px;
}

/* Toast */
.security-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #1a130f;
  color: var(--gold-vivid);
  border: 1px solid var(--gold-primary);
  padding: 12px 20px;
  border-radius: 4px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
  z-index: 500;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease;
  pointer-events: none;
  font-size: 13px;
  font-weight: 600;
}

.security-toast.active {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   16. RESPONSIVE MOBILE OPTIMIZATIONS (100% CENTERED ON ALL DEVICES)
   ========================================================================== */
@media (max-width: 1024px) {
  .top-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 150;
    display: flex;
    flex-direction: column;
    height: auto;
    min-height: unset;
    padding: 10px 14px 8px 14px;
    gap: 8px;
    align-items: center;
    justify-content: center;
    transition: transform 0.38s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.28s ease;
    will-change: transform;
    transform: translateY(0);
  }

  /* When scrolling down on phone/tablet/iPad: hide the entire header (Ratu title, welcome, tabs, and buttons) */
  .top-nav.nav-hidden {
    transform: translateY(-125%) !important;
    pointer-events: none !important;
    opacity: 0 !important;
  }

  .brand {
    justify-content: center;
  }

  .brand-text {
    font-size: 14px;
    letter-spacing: 0.1em;
  }

  .nav-center-cluster {
    display: flex !important;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    margin: 0 auto;
  }

  .nav-view-tab,
  .nav-cta-btn,
  .nav-visitor-pill {
    font-size: 11px;
    padding: 5px 10px;
    border-radius: 16px;
  }

  .nav-visitor-pill .visitor-greeting {
    font-size: 11px;
  }

  .nav-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    gap: 8px;
  }

  .audio-volume-control {
    display: none; /* Keep slider tucked on phone, music toggle is active */
  }

  .timeline-rail {
    display: none !important;
  }

  .journal-scroll-container {
    padding-left: 0 !important;
    width: 100% !important;
    max-width: 100vw !important;
    overflow-x: hidden !important;
  }

  .journal-section {
    padding: 60px 16px;
    width: 100%;
    box-sizing: border-box;
    margin: 0 auto;
    text-align: center;
  }

  .hero-section {
    padding-top: 130px !important;
  }

  .hero-storytelling-stage {
    padding: 24px 16px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    margin: 0 auto;
  }

  .gift-showcase-stage {
    min-height: 640px;
    margin-bottom: 20px;
  }

  .gift-slide {
    display: flex !important;
    flex-direction: column !important;
    gap: 20px;
    padding: 24px 18px;
    text-align: center;
    border-radius: 20px;
    width: 100%;
    box-sizing: border-box;
  }

  .gift-card-media-wrap {
    width: 100%;
    max-width: 100%;
    height: 280px;
    margin: 0 auto;
  }

  .gift-card-details {
    width: 100%;
    text-align: center;
  }

  .callout-body {
    font-size: 1.05rem;
    line-height: 1.6;
    text-align: left;
  }

  .slide-interactive-cta {
    align-items: center;
  }

  .cinematic-primary-btn,
  .cinematic-skip-btn,
  .hero-open-journal-cta.grand-entry-btn {
    width: 100%;
    justify-content: center;
    padding: 14px 20px;
    font-size: 1rem;
    box-sizing: border-box;
  }

  .entry-grid-container {
    grid-template-columns: 1fr;
    gap: 30px;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
  }

  .entry-text-col {
    text-align: center;
    margin: 0 auto;
    width: 100%;
  }

  .entry-photo-col {
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .editorial-photo-mount {
    max-width: 420px;
    width: 100%;
    margin: 0 auto;
  }

  .editorial-img {
    height: 360px;
    width: 100%;
    object-fit: cover;
  }

  .entry-display-headline {
    font-size: 2.2rem;
    text-align: center;
  }

  .entry-gold-divider {
    margin: 16px auto;
  }

  .entry-narrative-body {
    text-align: left;
    font-size: 1rem;
    line-height: 1.65;
  }

  .spiritual-gratitude-card {
    text-align: left;
    padding: 20px 16px;
    margin: 20px auto 0 auto;
    width: 100%;
    box-sizing: border-box;
  }

  .dedication-container {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 4px;
    box-sizing: border-box;
  }

  .dedication-parchment-card {
    padding: 30px 18px;
    width: 100%;
    box-sizing: border-box;
    margin: 0 auto;
  }

  .letter-paragraphs p {
    font-size: 16px;
  }

  .timeline-reels-container {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 4px;
    box-sizing: border-box;
  }

  .film-reel-row {
    grid-template-columns: 1fr !important;
    gap: 20px;
    width: 100%;
    margin: 0 auto;
  }

  .film-reel-row.layout-right .film-strip-frame,
  .film-reel-row.layout-left .film-strip-frame {
    order: -1;
    margin: 0 auto;
    width: 100%;
    max-width: 460px;
  }

  .film-image-target {
    height: 240px;
  }

  .film-reel-meta {
    text-align: center;
    width: 100%;
    margin: 0 auto;
  }

  .film-caption {
    text-align: left;
  }

  .polaroid-scatter-constellation {
    gap: 16px;
    justify-content: center;
    width: 100%;
    margin: 0 auto;
  }

  .scatter-polaroid-item {
    transform: rotate(0deg) !important;
    width: 155px !important;
    padding: 8px 8px 16px 8px !important;
  }

  .community-collage-board {
    gap: 16px;
    justify-content: center;
    width: 100%;
    margin: 0 auto;
  }

  .polaroid-scatter-card {
    transform: rotate(0deg) !important;
    width: 170px !important;
    padding: 8px 8px 16px 8px !important;
  }
}

/* ==========================================================================
   THIRST TRAP VIDEO EDIT & EASTER EGG STYLES
   ========================================================================== */
.toast-actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-top: 22px;
}

.thirst-trap-btn {
  background: linear-gradient(135deg, var(--tongan-red), var(--ochre-tonga), var(--gold-dark)) !important;
  color: #ffffff !important;
  border: 1px solid var(--gold-vivid) !important;
  box-shadow: 0 8px 24px rgba(184, 93, 25, 0.4), 0 0 15px rgba(243, 207, 122, 0.3) !important;
  animation: pulseThirstGlow 2.5s infinite ease-in-out;
}

.thirst-trap-btn:hover {
  transform: translateY(-3px) scale(1.03) !important;
  box-shadow: 0 12px 30px rgba(184, 93, 25, 0.65), 0 0 25px rgba(243, 207, 122, 0.6) !important;
}

@keyframes pulseThirstGlow {
  0%, 100% { box-shadow: 0 8px 24px rgba(184, 93, 25, 0.4), 0 0 15px rgba(243, 207, 122, 0.3); }
  50% { box-shadow: 0 8px 28px rgba(223, 183, 108, 0.65), 0 0 22px rgba(223, 183, 108, 0.5); }
}

.thirst-trap-polaroid {
  border: 2px solid var(--gold-vivid) !important;
  box-shadow: 0 0 22px rgba(243, 207, 122, 0.45), var(--shadow-polaroid) !important;
  position: relative;
}

.thirst-trap-badge {
  position: absolute;
  top: -10px;
  right: -10px;
  background: linear-gradient(135deg, #b81919, #e65c00);
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 1px;
  padding: 4px 10px;
  border-radius: 20px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
  z-index: 10;
  border: 1px solid #ffcc00;
}

.polaroid-play-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 52px;
  height: 52px;
  background: rgba(13, 10, 8, 0.75);
  border: 2px solid var(--gold-vivid);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-vivid);
  font-size: 1.25rem;
  padding-left: 3px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.6);
  transition: var(--transition-smooth);
}

.scatter-polaroid-item:hover .polaroid-play-overlay {
  transform: translate(-50%, -50%) scale(1.18);
  background: var(--ochre-tonga);
  color: #ffffff;
  border-color: #ffffff;
}

.video-player-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding: 4px;
}

.lightbox-video-player {
  width: 100%;
  max-width: 720px;
  max-height: 75vh;
  border-radius: 10px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.9), 0 0 30px rgba(243, 207, 122, 0.4);
  border: 1px solid var(--gold-vivid);
  background: #000000;
  display: block;
  margin: 0 auto;
  transform: translateZ(0);
  will-change: transform;
  outline: none;
}

/* ==========================================================================
   20. FULLSCREEN CONFETTI CANVAS
   ========================================================================== */
#confetti-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 99999;
}

/* ==========================================================================
   21. VISITOR TOP NAV BADGE & NAME SWITCHER
   ========================================================================== */
.nav-visitor-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(223, 183, 108, 0.12);
  border: 1px solid rgba(223, 183, 108, 0.35);
  padding: 5px 14px;
  border-radius: 24px;
  color: var(--gold-vivid);
  font-size: 13px;
  font-weight: 500;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.nav-visitor-pill .visitor-avatar {
  font-size: 14px;
}

.nav-visitor-pill strong {
  color: #ffffff;
  font-weight: 700;
}

.nav-change-name-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(223, 183, 108, 0.4);
  color: var(--gold-primary);
  border-radius: 12px;
  padding: 2px 8px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-left: 4px;
}

.nav-change-name-btn:hover {
  background: var(--gold-primary);
  color: #16110e;
}

/* ==========================================================================
   22. CELESTIAL STORYTELLING HERO & DREAMSCAPE CLOUDS ANIMATION
   ========================================================================== */
.celestial-story-stage {
  min-height: 100vh;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 100px 24px 70px;
  overflow: hidden;
  background: #06090f;
}

.celestial-sky-backdrop {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 100%, #15253d 0%, #0c1421 50%, #05080e 100%);
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

/* Twinkling starfield */
.stars-particle-layer {
  position: absolute;
  inset: 0;
  background-image: 
    radial-gradient(1.5px 1.5px at 20px 30px, #ffffff, rgba(0,0,0,0)),
    radial-gradient(1px 1px at 40px 70px, #dfb76c, rgba(0,0,0,0)),
    radial-gradient(1.5px 1.5px at 90px 40px, #ffffff, rgba(0,0,0,0)),
    radial-gradient(2px 2px at 160px 120px, #f3cf7a, rgba(0,0,0,0)),
    radial-gradient(1.5px 1.5px at 230px 180px, #ffffff, rgba(0,0,0,0)),
    radial-gradient(1px 1px at 290px 90px, #dfb76c, rgba(0,0,0,0)),
    radial-gradient(2px 2px at 350px 240px, #ffffff, rgba(0,0,0,0)),
    radial-gradient(1.5px 1.5px at 420px 60px, #f5eedf, rgba(0,0,0,0));
  background-repeat: repeat;
  background-size: 450px 300px;
  opacity: 0.65;
  animation: starTwinkle 6s ease-in-out infinite alternate;
}

@keyframes starTwinkle {
  0% { opacity: 0.45; transform: scale(1); }
  50% { opacity: 0.85; transform: scale(1.02); }
  100% { opacity: 0.55; transform: scale(0.99); }
}

/* Volumetric drifting and blowing clouds */
.cloud-drift-layer {
  position: absolute;
  width: 250%;
  height: 100%;
  top: 0;
  left: -50%;
  background-repeat: repeat-x;
  pointer-events: none;
  opacity: 0.4;
  will-change: transform;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
}

.cloud-layer-back {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 300'%3E%3Cpath d='M0 250 Q 150 160 300 240 Q 450 140 600 230 Q 750 150 900 240 Q 1000 180 1000 300 L 0 300 Z' fill='%23233857' opacity='0.3'/%3E%3C/svg%3E");
  background-size: 1000px 300px;
  background-position: bottom;
  animation: cloudFloatSlow 70s linear infinite;
  opacity: 0.35;
  will-change: transform;
}

.cloud-layer-mid {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 350'%3E%3Cpath d='M0 300 Q 200 180 400 280 Q 600 160 800 270 Q 1000 170 1200 300 L 1200 350 L 0 350 Z' fill='%2338537a' opacity='0.25'/%3E%3C/svg%3E");
  background-size: 1200px 350px;
  background-position: bottom;
  animation: cloudFloatMid 45s linear infinite;
  opacity: 0.45;
  will-change: transform;
}

.cloud-layer-front {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1400 400'%3E%3Cpath d='M0 320 Q 250 200 500 310 Q 750 190 1000 320 Q 1200 220 1400 340 L 1400 400 L 0 400 Z' fill='%2354729f' opacity='0.2'/%3E%3C/svg%3E");
  background-size: 1400px 400px;
  background-position: bottom;
  animation: cloudFloatFast 28s linear infinite;
  opacity: 0.3;
  will-change: transform;
}

@keyframes cloudFloatSlow {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-500px, 0, 0); }
}

@keyframes cloudFloatMid {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(600px, 0, 0); }
}

@keyframes cloudFloatFast {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-700px, 0, 0); }
}

/* 3D Forward Cloud Puff / Blow toward screen */
.cloud-burst-forward {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(180, 210, 255, 0.18) 0%, rgba(100, 150, 220, 0.08) 45%, transparent 70%);
  filter: blur(40px);
  transform: translate(-50%, -50%) scale(0.6);
  opacity: 0;
  pointer-events: none;
  transition: all 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.cloud-burst-forward.burst-active {
  opacity: 0.8;
  transform: translate(-50%, -50%) scale(4.2);
  transition: all 1.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Storytelling Content Wrapper */
.storytelling-hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.story-show-header {
  margin-bottom: 28px;
}

.story-main-title {
  font-family: var(--font-display-royal);
  font-size: clamp(2.4rem, 5.2vw, 4.4rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--text-light-main);
  letter-spacing: 0.04em;
  margin: 12px 0;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8), 0 0 30px rgba(223, 183, 108, 0.3);
}

.story-intro-sub {
  font-family: var(--font-sans);
  font-size: clamp(0.95rem, 1.8vw, 1.15rem);
  color: var(--text-light-sub);
  max-width: 680px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ==========================================================================
   CINEMATIC BIG FOCUS MODE CAROUSEL STAGE & DRFTING CLOUDS
   ========================================================================== */
.gift-showcase-stage {
  position: relative;
  width: 100%;
  max-width: 1220px;
  min-height: 560px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 30px auto;
}

.gift-slide {
  position: absolute;
  width: 100%;
  max-width: 1180px;
  background: rgba(18, 14, 11, 0.88);
  border: 2px solid rgba(223, 183, 108, 0.45);
  border-radius: 24px;
  padding: 40px 44px;
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.85), 0 0 50px rgba(223, 183, 108, 0.2);
  display: grid;
  grid-template-columns: 1.05fr 1.25fr;
  gap: 44px;
  align-items: center;
  opacity: 0;
  transform: translateY(20px) scale(0.96);
  pointer-events: none;
  transition: all 0.55s cubic-bezier(0.2, 0.9, 0.3, 1);
  text-align: left;
}

.gift-slide.active {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
  z-index: 5;
}

/* Big Focused Media Display */
.gift-card-media-wrap {
  position: relative;
  width: 100%;
  height: 420px;
  border-radius: 16px;
  overflow: hidden;
  border: 2px solid rgba(223, 183, 108, 0.5);
  background: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7);
}

.gift-card-media-wrap.photo-focus-wrap {
  background: radial-gradient(circle, #251e18 0%, #0c0806 100%);
}

.gift-card-media-wrap.photo-focus-wrap .gift-media-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 12px;
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.6));
  transition: transform 0.4s ease;
}

.gift-card-media-wrap.photo-focus-wrap:hover .gift-media-img {
  transform: scale(1.04);
}

.gift-media-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
  cursor: pointer;
}

.gift-media-img:hover {
  transform: scale(1.04);
}

.gift-card-media-wrap.video-preview-wrap {
  cursor: pointer;
}

.gift-media-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.92;
  transition: opacity 0.3s;
}

.gift-card-media-wrap.video-preview-wrap:hover .gift-media-video {
  opacity: 1;
}

.gift-play-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  background: rgba(13, 10, 8, 0.85);
  border: 2px solid var(--gold-vivid);
  padding: 14px 24px;
  border-radius: 32px;
  color: var(--gold-vivid);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.85), 0 0 25px rgba(243, 207, 122, 0.5);
  transition: transform 0.25s ease, background 0.25s ease;
  pointer-events: none;
}

.gift-play-overlay .play-triangle {
  font-size: 22px;
  line-height: 1;
}

.gift-play-overlay .play-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.video-skip-overlay-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(0, 0, 0, 0.82);
  border: 1.5px solid var(--gold-vivid);
  color: var(--gold-vivid);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 800;
  padding: 8px 16px;
  border-radius: 20px;
  cursor: pointer;
  z-index: 15;
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
  transition: all 0.2s ease;
}

.video-skip-overlay-btn:hover {
  background: var(--gold-vivid);
  color: #000000;
  transform: scale(1.06);
}

.gift-type-pill {
  position: absolute;
  bottom: 14px;
  left: 14px;
  background: rgba(13, 10, 8, 0.88);
  border: 1px solid var(--gold-primary);
  color: var(--gold-vivid);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.8px;
  padding: 5px 12px;
  border-radius: 16px;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}

.journal-tribute-media {
  background: radial-gradient(circle, #251d16 0%, #0d0a08 100%);
}

/* Big Typography & Highlight Details */
.gift-card-details {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.gift-step-badge {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--gold-vivid);
  text-transform: uppercase;
  margin-bottom: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.gift-title {
  font-family: var(--font-serif-headline);
  font-size: clamp(2rem, 3.2vw, 2.75rem);
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 18px;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

/* Highlight Box (What I Did For This Gift / Emphasis) */
.gift-highlight-callout {
  background: rgba(223, 183, 108, 0.12);
  border-left: 4px solid var(--gold-vivid);
  border-radius: 0 14px 14px 0;
  padding: 20px 24px;
  margin: 12px 0 24px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.gift-highlight-callout.grand-evolution {
  background: rgba(243, 207, 122, 0.15);
  border-left-color: #ffffff;
  border-top: 1px solid rgba(223, 183, 108, 0.3);
  border-right: 1px solid rgba(223, 183, 108, 0.3);
  border-bottom: 1px solid rgba(223, 183, 108, 0.3);
  border-radius: 14px;
}

.callout-heading {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--gold-vivid);
  text-transform: uppercase;
  margin-bottom: 10px;
}

.callout-body {
  font-family: var(--font-sans);
  font-size: 1.18rem;
  line-height: 1.75;
  color: #fdfaf3;
  margin: 0;
  font-weight: 400;
}

/* Interactive Action Buttons & Prompts */
.slide-interactive-cta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 6px;
}

.slide-interactive-cta.video-cta-row {
  flex-direction: row;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.cinematic-primary-btn {
  background: linear-gradient(135deg, #f5d688, #dfb76c, #b88628);
  color: #16110e;
  border: none;
  padding: 16px 32px;
  border-radius: 36px;
  font-family: var(--font-sans);
  font-size: 1.08rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 8px 28px rgba(223, 183, 108, 0.5);
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  width: fit-content;
}

.cinematic-primary-btn:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 12px 36px rgba(243, 207, 122, 0.7);
  background: #ffffff;
  color: #000000;
}

.cinematic-skip-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 2px solid var(--gold-primary);
  color: var(--gold-vivid);
  padding: 14px 28px;
  border-radius: 36px;
  font-family: var(--font-sans);
  font-size: 1.02rem;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 0.25s ease;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  width: fit-content;
}

.cinematic-skip-btn:hover {
  background: var(--gold-primary);
  color: #16110e;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(223, 183, 108, 0.5);
}

.cta-sub-hint {
  font-family: var(--font-sans);
  font-size: 0.88rem;
  color: var(--text-light-sub);
  letter-spacing: 0.05em;
}

.gift-external-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--gold-primary);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px dashed var(--gold-primary);
  width: fit-content;
  padding-bottom: 3px;
  transition: all 0.2s ease;
}

.gift-external-link:hover {
  color: #ffffff;
  border-bottom-color: #ffffff;
}

.hero-open-journal-cta.grand-entry-btn {
  background: linear-gradient(135deg, var(--gold-vivid), var(--gold-primary));
  color: #16110e;
  border: none;
  padding: 18px 36px;
  border-radius: 36px;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 10px 30px rgba(223, 183, 108, 0.5), 0 0 25px rgba(243, 207, 122, 0.4);
  transition: all 0.3s ease;
  width: fit-content;
}

.hero-open-journal-cta.grand-entry-btn:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 14px 40px rgba(243, 207, 122, 0.8);
  background: #ffffff;
  color: #0d0a08;
}

/* Story Stepper Row */
.story-stepper-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  z-index: 5;
  margin-top: 8px;
}

.story-nav-btn {
  height: 44px;
  padding: 0 20px;
  border-radius: 22px;
  background: rgba(22, 17, 14, 0.85);
  border: 1px solid var(--gold-primary);
  color: var(--gold-vivid);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
  outline: none;
}

.story-nav-btn:hover {
  background: var(--gold-primary);
  color: #16110e;
  transform: scale(1.05);
}

.story-fast-skip-btn {
  background: rgba(223, 183, 108, 0.18);
  border: 1.5px solid var(--gold-vivid);
  color: var(--gold-vivid);
  border-radius: 22px;
  padding: 10px 20px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
  transition: all 0.2s ease;
}

.story-fast-skip-btn:hover {
  background: var(--gold-vivid);
  color: #14100c;
  transform: scale(1.05);
}

.story-dots-cluster {
  display: flex;
  align-items: center;
  gap: 10px;
}

.story-dot {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(22, 17, 14, 0.7);
  border: 1px solid rgba(223, 183, 108, 0.3);
  color: rgba(223, 183, 108, 0.6);
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s ease;
  outline: none;
}

.story-dot.active {
  background: var(--gold-vivid);
  color: #16110e;
  border-color: #ffffff;
  transform: scale(1.15);
  box-shadow: 0 0 16px rgba(243, 207, 122, 0.8);
}

.story-dot:hover:not(.active) {
  border-color: var(--gold-primary);
  color: #ffffff;
}

/* Auto-Play Control Button */
.story-autoplay-btn {
  background: rgba(22, 17, 14, 0.85);
  border: 1px solid rgba(223, 183, 108, 0.45);
  color: var(--gold-vivid);
  padding: 6px 14px;
  border-radius: 20px;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.25s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
  outline: none;
}

.story-autoplay-btn:hover {
  background: var(--gold-primary);
  color: #16110e;
  border-color: #ffffff;
}

.story-autoplay-btn.paused {
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--text-light-sub);
}

/* Gift Card Auto Progress Bar */
.gift-auto-timer-bar {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
  margin-top: 14px;
  position: relative;
}

.gift-timer-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--gold-primary), var(--gold-vivid));
  box-shadow: 0 0 10px rgba(243, 207, 122, 0.85);
  border-radius: 4px;
  transition: width 0.1s linear;
}

/* Open Journal Button Glow Pulse */
@keyframes goldPulseGlow {
  0% {
    box-shadow: 0 8px 25px rgba(223, 183, 108, 0.4);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 12px 40px rgba(243, 207, 122, 0.85), 0 0 20px rgba(255, 255, 255, 0.6);
    transform: scale(1.04);
  }
  100% {
    box-shadow: 0 8px 25px rgba(223, 183, 108, 0.4);
    transform: scale(1);
  }
}

.hero-open-journal-cta.pulse-glow {
  animation: goldPulseGlow 2.2s infinite ease-in-out;
}


/* ==========================================================================
   23. SCRIPTURE HIGHLIGHT BANNER & GRATITUDE CARD (ENTRY I)
   ========================================================================== */
.scripture-highlight-banner {
  background: rgba(223, 183, 108, 0.12);
  border: 1px solid var(--gold-primary);
  border-radius: 8px;
  padding: 16px 20px;
  margin-bottom: 24px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
}

.scripture-quote-text {
  font-family: var(--font-serif-headline);
  font-style: italic;
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  color: var(--text-dark-main);
  line-height: 1.5;
  font-weight: 600;
}

.scripture-ref-tag {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--gold-dark);
  text-transform: uppercase;
  margin-top: 8px;
  text-align: right;
}

.spiritual-gratitude-card {
  background: rgba(255, 255, 255, 0.92);
  border: 1.5px solid rgba(223, 183, 108, 0.55);
  border-radius: 12px;
  padding: 26px 28px;
  margin: 24px 0 20px;
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.08);
  position: relative;
}

.spiritual-card-crest {
  font-size: 28px;
  margin-bottom: 10px;
}

.spiritual-card-title {
  font-family: var(--font-serif-headline);
  font-size: 1.55rem;
  font-weight: 700;
  color: #1a1208;
  margin-bottom: 14px;
}

.spiritual-card-p {
  font-family: var(--font-sans);
  font-size: 1.18rem;
  color: #241c14;
  line-height: 1.8;
  margin-bottom: 14px;
}

.spiritual-card-p:last-child {
  margin-bottom: 0;
}

.scripture-highlight-subcard {
  margin: 20px 0 18px 0;
  padding: 16px 22px;
  background: rgba(223, 183, 108, 0.16);
  border-left: 4px solid var(--gold-primary);
  border-radius: 0 10px 10px 0;
  text-align: left;
}

.scripture-quote-text {
  font-family: var(--font-serif-headline);
  font-size: 1.35rem;
  font-style: italic;
  font-weight: 600;
  line-height: 1.7;
  color: #1a1208;
  margin-bottom: 8px;
}

.scripture-ref-tag {
  font-family: var(--font-display-royal);
  font-size: 0.98rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  color: #8c5d14;
  text-transform: uppercase;
}

/* ==========================================================================
   24. TONGAN COAT OF ARMS DISPLAY (ENTRY II)
   ========================================================================== */
.tongan-crest-mount {
  text-align: center;
  margin-bottom: 20px;
}

.tongan-coat-of-arms-img {
  max-height: 110px;
  width: auto;
  display: block;
  margin: 0 auto 12px;
  filter: drop-shadow(0 10px 25px rgba(223, 183, 108, 0.4));
  transition: transform 0.3s ease;
}

.tongan-coat-of-arms-img:hover {
  transform: scale(1.05);
}

.crest-motto-wrap {
  display: inline-block;
  background: rgba(223, 183, 108, 0.15);
  border: 1px solid rgba(223, 183, 108, 0.35);
  padding: 4px 16px;
  border-radius: 20px;
}

/* ==========================================================================
   25. ADMIN COMMUNITY CONTROLS & DELETE BADGE
   ========================================================================== */
.admin-delete-photo-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(185, 28, 28, 0.92);
  color: #ffffff;
  border: 1px solid #ff7878;
  border-radius: 20px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.5px;
  cursor: pointer;
  z-index: 20;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
  transition: all 0.2s ease;
}

.admin-delete-photo-btn:hover {
  background: #ff0000;
  transform: scale(1.08);
}



/* ==========================================================================
   26. FULLSCREEN CINEMATIC THEATER INTRO (SCREENSHOT 1 & 3 FOCUSED THEATER)
   ========================================================================== */
body.theater-intro-active {
  overflow: hidden !important;
  background-color: #060403 !important;
  color: #f3eedf !important;
  transition: background-color 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

body.theater-intro-active .top-nav,
body.theater-intro-active .timeline-rail,
body.theater-intro-active #story-show-header,
body.theater-intro-active .hero-scroll-cue,
body.theater-intro-active .tongan-tapa-border {
  display: none !important;
}

body.theater-intro-active .journal-scroll-container {
  overflow: hidden !important;
  height: 100vh !important;
  padding: 0 !important;
  margin: 0 !important;
}

body.theater-intro-active #hero-section {
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  z-index: 280 !important;
  padding: 16px !important;
  margin: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: radial-gradient(circle at center, #1a130e 0%, #050403 92%) !important;
  box-shadow: inset 0 0 160px rgba(0, 0, 0, 0.98);
}

body.theater-intro-active .storytelling-hero-content {
  width: 100% !important;
  max-width: 100% !important;
  height: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
}

/* The Grand Theater Stage (Matches Screenshot 1 & 3 Modal Elegance) */
.theater-close-btn {
  position: absolute;
  top: -18px;
  right: -18px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--gold-primary);
  color: #140e0b;
  border: 2px solid #140e0b;
  font-size: 18px;
  font-weight: 900;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 60;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.8), 0 0 16px rgba(223, 183, 108, 0.4);
  transition: transform 0.25s cubic-bezier(0.2, 0.9, 0.3, 1), background 0.25s;
}

.theater-close-btn:hover {
  transform: scale(1.15) rotate(90deg);
  background: var(--gold-vivid);
}

body.theater-intro-active .gift-showcase-stage {
  position: relative !important;
  width: min(94vw, 1360px) !important;
  height: min(88vh, 800px) !important;
  max-height: 800px !important;
  min-height: unset !important;
  background: #130d0a !important;
  border: 1.5px solid var(--gold-primary) !important;
  border-radius: 14px !important;
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.98), 0 0 70px rgba(223, 183, 108, 0.32) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 auto 16px auto !important;
  overflow: visible !important;
}

/* Slides inside Fullscreen Theater Mode */
body.theater-intro-active .gift-slide {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  padding: 28px 36px !important;
  box-sizing: border-box !important;
  display: none !important;
  opacity: 0;
  transform: scale(0.96);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

body.theater-intro-active .gift-slide.active {
  display: grid !important;
  grid-template-columns: 1.55fr 1fr !important;
  gap: 36px !important;
  align-items: center !important;
  opacity: 1 !important;
  transform: scale(1) !important;
  pointer-events: auto !important;
  z-index: 10 !important;
}

/* Media Column (Left) in Fullscreen Theater */
body.theater-intro-active .gift-card-media-wrap {
  position: relative !important;
  width: 100% !important;
  height: 100% !important;
  max-height: calc(88vh - 110px) !important;
  min-height: 480px !important;
  background: #060403 !important;
  border-radius: 10px !important;
  border: 1.5px solid rgba(223, 183, 108, 0.45) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: hidden !important;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.9), inset 0 0 30px rgba(0, 0, 0, 0.8) !important;
  cursor: pointer !important;
}

body.theater-intro-active .gift-media-img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  padding: 16px !important;
}

body.theater-intro-active .gift-media-video {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  background: #000000 !important;
  cursor: pointer !important;
}

/* Video On-Screen Interactive Controls */
.video-sound-toggle-btn {
  position: absolute;
  top: 16px;
  left: 16px;
  background: rgba(18, 14, 11, 0.88);
  border: 1px solid var(--gold-primary);
  color: var(--gold-vivid);
  padding: 8px 16px;
  border-radius: 20px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  z-index: 25;
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.7);
  transition: all 0.2s ease;
}

.video-sound-toggle-btn:hover {
  background: var(--gold-primary);
  color: #140e0b;
  transform: scale(1.05);
}

.video-sound-toggle-btn.unmuted {
  background: var(--gold-vivid);
  color: #140e0b;
  border-color: #ffffff;
}

.video-progress-tracker {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: rgba(255, 255, 255, 0.18);
  z-index: 20;
}

.video-progress-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #dfb76c, #ffd988);
  transition: width 0.1s linear;
}

.gift-card-media-wrap.is-playing .gift-play-overlay {
  opacity: 0 !important;
  pointer-events: none !important;
  transform: translate(-50%, -50%) scale(0.8) !important;
}

.gift-play-overlay {
  transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Details Column (Right) in Fullscreen Theater */
body.theater-intro-active .gift-card-details {
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  height: 100% !important;
  text-align: left !important;
  padding-right: 12px !important;
}

body.theater-intro-active .gift-step-badge {
  font-family: var(--font-sans) !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  letter-spacing: 0.22em !important;
  color: var(--gold-vivid) !important;
  margin-bottom: 10px !important;
  text-transform: uppercase !important;
}

body.theater-intro-active .gift-title {
  font-family: var(--font-serif-headline) !important;
  font-size: 34px !important;
  font-weight: 600 !important;
  color: #ffffff !important;
  margin-bottom: 18px !important;
  line-height: 1.25 !important;
  letter-spacing: 0.02em !important;
}

body.theater-intro-active .gift-highlight-callout {
  background: rgba(223, 183, 108, 0.1) !important;
  border-left: 4px solid var(--gold-vivid) !important;
  border-radius: 6px !important;
  padding: 18px 24px !important;
  margin-bottom: 24px !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3) !important;
}

body.theater-intro-active .callout-heading {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  margin-bottom: 10px !important;
}

body.theater-intro-active .callout-icon {
  font-size: 18px !important;
}

body.theater-intro-active .callout-label {
  font-family: var(--font-sans) !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  letter-spacing: 0.18em !important;
  color: var(--gold-vivid) !important;
  text-transform: uppercase !important;
}

body.theater-intro-active .callout-body {
  font-family: var(--font-sans) !important;
  font-size: 19px !important;
  line-height: 1.78 !important;
  color: #fdfaf3 !important;
  font-weight: 400 !important;
}

/* Big Action CTA Buttons in Theater Mode */
body.theater-intro-active .slide-interactive-cta {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  gap: 12px !important;
}

body.theater-intro-active .video-cta-row {
  flex-direction: row !important;
  flex-wrap: wrap !important;
  align-items: center !important;
}

body.theater-intro-active .cinematic-primary-btn,
body.theater-intro-active .cinematic-skip-btn,
body.theater-intro-active .hero-open-journal-cta.grand-entry-btn {
  min-height: 52px !important;
  padding: 14px 28px !important;
  font-size: 16.5px !important;
  font-weight: 800 !important;
  letter-spacing: 0.05em !important;
  border-radius: 8px !important;
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.6) !important;
}

body.theater-intro-active .cta-sub-hint {
  font-size: 13.5px !important;
  color: var(--text-light-sub) !important;
}

/* Stepper inside Fullscreen Theater */
body.theater-intro-active .story-stepper-row {
  margin-top: 10px !important;
  z-index: 20 !important;
}

/* Responsive Mobile Fullscreen Theater */
@media (max-width: 900px) {
  body.theater-intro-active #hero-section {
    padding: 8px !important;
  }

  body.theater-intro-active .gift-showcase-stage {
    width: 96vw !important;
    height: 94vh !important;
    max-height: 94vh !important;
    border-radius: 10px !important;
    overflow-y: auto !important;
    display: block !important;
    padding: 12px !important;
  }

  body.theater-intro-active .gift-slide.active {
    grid-template-columns: 1fr !important;
    display: flex !important;
    flex-direction: column !important;
    padding: 16px 12px !important;
    gap: 16px !important;
    height: auto !important;
    overflow-y: visible !important;
  }

  body.theater-intro-active .gift-card-media-wrap {
    height: 40vh !important;
    min-height: 230px !important;
    max-height: 300px !important;
    width: 100% !important;
  }

  body.theater-intro-active .gift-card-details {
    width: 100% !important;
    text-align: center !important;
    padding-right: 0 !important;
  }

  body.theater-intro-active .callout-body {
    font-size: 16px !important;
    line-height: 1.65 !important;
  }

  body.theater-intro-active .gift-title {
    font-size: 24px !important;
  }

  body.theater-intro-active .slide-interactive-cta {
    align-items: center !important;
    width: 100% !important;
  }

  body.theater-intro-active .cinematic-primary-btn,
  body.theater-intro-active .cinematic-skip-btn,
  body.theater-intro-active .hero-open-journal-cta.grand-entry-btn {
    width: 100% !important;
    justify-content: center !important;
  }
}

/* ==========================================================================
   27. VIDEO PERFORMANCE & LAG ELIMINATION (HARDWARE ACCELERATION)
   ========================================================================== */
.gift-media-video,
video,
.film-img,
.editorial-img,
.polaroid-photo-box img {
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  will-change: transform;
}

.gift-card-media-wrap,
.film-strip-frame,
.scatter-polaroid-item,
.polaroid-scatter-card {
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  will-change: transform;
}

/* ==========================================================================
   28. FATHER'S DAY POLAROID KEEPSAKE STUDIO STYLING
   ========================================================================== */
.studio-modal {
  z-index: 280;
}

.studio-dialog {
  max-width: 980px !important;
  width: 94vw !important;
  max-height: 92vh !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
  padding: 22px 26px !important;
  background: radial-gradient(circle at 50% 10%, rgba(45, 32, 22, 0.97), rgba(16, 12, 9, 0.99)) !important;
  border: 1px solid rgba(223, 183, 108, 0.35) !important;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.8), 0 0 30px rgba(223, 183, 108, 0.15) !important;
}

.studio-header {
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(223, 183, 108, 0.16);
}

.studio-subtitle {
  font-size: 13px;
  color: var(--text-light-sub);
  margin-top: 4px;
  line-height: 1.4;
}

.studio-format-bar {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
  background: rgba(0, 0, 0, 0.35);
  padding: 5px;
  border-radius: 28px;
  border: 1px solid rgba(223, 183, 108, 0.2);
  width: fit-content;
}

.studio-format-tab {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 22px;
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-light-sub);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
}

.studio-format-tab:hover {
  color: var(--gold-vivid);
  background: rgba(223, 183, 108, 0.08);
}

.studio-format-tab.active {
  background: linear-gradient(135deg, rgba(223, 183, 108, 0.25), rgba(184, 93, 25, 0.35));
  border-color: var(--gold-vivid);
  color: var(--gold-vivid);
  box-shadow: 0 2px 10px rgba(223, 183, 108, 0.2);
}

.studio-workspace {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  align-items: start;
  overflow-y: auto;
  padding-right: 6px;
  flex: 1;
}

.studio-preview-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(223, 183, 108, 0.15);
  border-radius: 16px;
  padding: 16px;
  min-height: 440px;
}

.studio-canvas-stage {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

#studio-canvas {
  max-width: 100%;
  max-height: 480px;
  width: auto;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.7);
  cursor: grab;
  touch-action: none;
  border: 1px solid rgba(223, 183, 108, 0.2);
}

#studio-canvas:active {
  cursor: grabbing;
}

.studio-canvas-hint {
  margin-top: 12px;
  font-size: 11px;
  color: rgba(223, 183, 108, 0.75);
  text-align: center;
  line-height: 1.4;
}

.studio-controls-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.studio-group {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(223, 183, 108, 0.12);
  border-radius: 12px;
  padding: 14px 16px;
}

.studio-group-label {
  display: block;
  font-family: var(--font-display-royal);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--gold-vivid);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.studio-sublabel {
  display: block;
  font-size: 11px;
  color: var(--text-light-sub);
  margin-bottom: 6px;
}

.studio-btn-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.studio-btn-primary {
  background: linear-gradient(135deg, var(--gold-primary), var(--gold-dark));
  color: #1a1208;
  font-weight: 700;
  border: none;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.studio-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(223, 183, 108, 0.4);
}

.studio-btn-secondary {
  background: rgba(223, 183, 108, 0.1);
  color: var(--gold-vivid);
  border: 1px solid rgba(223, 183, 108, 0.25);
  padding: 8px 14px;
  border-radius: 20px;
  font-size: 12px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.studio-btn-secondary:hover {
  background: rgba(223, 183, 108, 0.2);
}

.studio-btn-tiny {
  background: transparent;
  border: 1px dashed rgba(223, 183, 108, 0.3);
  color: rgba(223, 183, 108, 0.7);
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 11px;
  cursor: pointer;
}

.studio-btn-tiny:hover {
  color: var(--gold-vivid);
  border-color: var(--gold-vivid);
}

.studio-slider-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.studio-slider-val {
  font-size: 11px;
  font-family: monospace;
  color: var(--gold-primary);
}

.studio-range-slider {
  width: 100%;
  accent-color: var(--gold-primary);
  height: 4px;
  border-radius: 2px;
  cursor: pointer;
}

.studio-text-input {
  width: 100%;
  padding: 10px 14px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(223, 183, 108, 0.25);
  border-radius: 8px;
  color: #fff;
  font-size: 14px;
  outline: none;
  font-family: inherit;
  transition: border-color 0.2s ease;
}

.studio-text-input:focus {
  border-color: var(--gold-primary);
  box-shadow: 0 0 10px rgba(223, 183, 108, 0.25);
}

.studio-presets-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
}

.studio-presets-title {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.4);
  width: 100%;
}

.studio-preset-chip {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(223, 183, 108, 0.15);
  color: var(--text-light-sub);
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 11px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.studio-preset-chip:hover {
  background: rgba(223, 183, 108, 0.18);
  color: var(--gold-vivid);
  border-color: var(--gold-vivid);
}

.studio-typo-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 12px;
  margin-top: 12px;
}

.studio-select {
  width: 100%;
  padding: 8px 10px;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(223, 183, 108, 0.25);
  border-radius: 6px;
  color: #fff;
  font-size: 12px;
  outline: none;
}

.studio-ink-swatches {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.ink-swatch {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--text-light-sub);
  cursor: pointer;
}

.ink-swatch input[type="radio"] {
  display: none;
}

.swatch-circle {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: inline-block;
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ink-swatch input[type="radio"]:checked + .swatch-circle {
  transform: scale(1.3);
  border-color: #fff;
  box-shadow: 0 0 8px rgba(223, 183, 108, 0.8);
}

.studio-actions-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 4px;
}

.studio-download-cta {
  background: linear-gradient(135deg, var(--gold-primary), var(--gold-vivid));
  color: #120b04;
  border: none;
  padding: 13px 20px;
  border-radius: 26px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(223, 183, 108, 0.35);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  text-align: center;
}

.studio-download-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(223, 183, 108, 0.5);
}

.studio-share-cta {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(223, 183, 108, 0.3);
  color: var(--gold-primary);
  padding: 10px 18px;
  border-radius: 24px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  transition: background 0.2s ease;
}

.studio-share-cta:hover {
  background: rgba(223, 183, 108, 0.15);
}

@media (max-width: 860px) {
  .studio-workspace {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .studio-preview-col {
    min-height: unset;
    padding: 12px;
  }

  #studio-canvas {
    max-height: 380px;
  }

  .studio-dialog {
    padding: 16px !important;
  }
}



