@font-face{font-family:'Cormorant Garamond';font-style:normal;font-weight:400;font-display:swap;src:url('../fonts/cormorant-garamond-latin-400-normal.woff2') format('woff2');}
@font-face{font-family:'Cormorant Garamond';font-style:normal;font-weight:500;font-display:swap;src:url('../fonts/cormorant-garamond-latin-500-normal.woff2') format('woff2');}
@font-face{font-family:'Cormorant Garamond';font-style:normal;font-weight:600;font-display:swap;src:url('../fonts/cormorant-garamond-latin-600-normal.woff2') format('woff2');}
@font-face{font-family:'Cormorant Garamond';font-style:normal;font-weight:700;font-display:swap;src:url('../fonts/cormorant-garamond-latin-700-normal.woff2') format('woff2');}
@font-face{font-family:'Cormorant Garamond';font-style:italic;font-weight:400;font-display:swap;src:url('../fonts/cormorant-garamond-latin-400-italic.woff2') format('woff2');}
@font-face{font-family:'Cormorant Garamond';font-style:italic;font-weight:500;font-display:swap;src:url('../fonts/cormorant-garamond-latin-500-italic.woff2') format('woff2');}
@font-face{font-family:'Outfit';font-style:normal;font-weight:300;font-display:swap;src:url('../fonts/outfit-latin-300-normal.woff2') format('woff2');}
@font-face{font-family:'Outfit';font-style:normal;font-weight:400;font-display:swap;src:url('../fonts/outfit-latin-400-normal.woff2') format('woff2');}
@font-face{font-family:'Outfit';font-style:normal;font-weight:500;font-display:swap;src:url('../fonts/outfit-latin-500-normal.woff2') format('woff2');}
@font-face{font-family:'Outfit';font-style:normal;font-weight:600;font-display:swap;src:url('../fonts/outfit-latin-600-normal.woff2') format('woff2');}
@font-face{font-family:'Outfit';font-style:normal;font-weight:700;font-display:swap;src:url('../fonts/outfit-latin-700-normal.woff2') format('woff2');}

/*
  PALETTE SHIFT: "Light and airy" with deep tones as ACCENTS.
  
  Non-focus screens: warm cream background, dark text, soft colored orbs
  Focus screen: stays dark and immersive — that's the contrast
  Think: sunlight hitting water, not the bottom of the ocean
*/
:root {
  /* Light base — the dominant mood for non-focus screens */
  --warm-white: #faf7f2;
  --cream: #f3ede3;
  --cream-deep: #e8e0d2;
  --sand: #d9cebb;

  /* Deep accents — used sparingly, for text and the focus screen */
  --navy: #0b1d2e;
  --navy-mid: #132d42;
  --teal-deep: #0e4a5e;
  --teal-mid: #1a7a8a;
  --teal-light: #3daaba;
  --indigo: #1a1454;
  --indigo-mid: #2e2478;

  /* Warm tones */
  --gold: #c49a3c;
  --gold-warm: #d4a94a;
  --gold-light: #e2c06e;
  --gold-glow: rgba(196, 154, 60, 0.45);
  --peach: #e8a87c;
  --peach-soft: rgba(232, 168, 124, 0.3);
  --rose-soft: rgba(200, 140, 140, 0.15);

  /* Text for light backgrounds */
  --text-dark: #1a2a3a;
  --text-dark-secondary: rgba(26, 42, 58, 0.55);
  --text-dark-dim: rgba(26, 42, 58, 0.3);

  /* Text for dark backgrounds (focus screen) */
  --text-light: #ede8dc;
  --text-light-secondary: rgba(237, 232, 220, 0.65);
  --text-light-dim: rgba(237, 232, 220, 0.35);
}

*, *::before, *::after {
  margin: 0; padding: 0; box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  overflow: hidden;
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  touch-action: none;
  overscroll-behavior: none;
  -webkit-overflow-scrolling: none;
  font-family: 'Outfit', sans-serif;
  font-weight: 400;
  background: var(--warm-white);
}

/* ===== SCREEN CONTAINER ===== */
.screen {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.7s ease;
  overflow: hidden;
  z-index: 1;
}
.screen.active {
  opacity: 1;
  pointer-events: auto;
  z-index: 10;
}

/* ============================================================
   LIGHT SCREEN BACKGROUNDS
   
   Warm cream base with softly drifting translucent orbs.
   The orbs use pastel teal, warm peach, and soft gold —
   like light refracting through shallow water on a sunny day.
   
   Motion is VISIBLE within 3 seconds. Cycles are 10-18s
   (faster than before) and orbs are more opaque and larger.
   ============================================================ */

/* Light background base */
.bg-light {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: 
    radial-gradient(ellipse 80% 60% at 30% 90%, rgba(26, 122, 138, 0.06) 0%, transparent 60%),
    radial-gradient(ellipse 70% 50% at 75% 15%, rgba(232, 168, 124, 0.07) 0%, transparent 55%),
    linear-gradient(175deg, var(--warm-white) 0%, var(--cream) 50%, var(--cream-deep) 100%);
}

/* Dark background base (focus screen) */
.bg-dark {
  position: absolute;
  inset: 0;
  z-index: 0;
}

/* Shared orb layer */
.orb-layer {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
}

/* ===== LIGHT ORBS (for light screens) ===== */
/* These are soft, pastel, and translucent — like caustics on a pool floor */

.orb-light-1 {
  position: absolute;
  width: 320px; height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(26, 122, 138, 0.14) 0%, transparent 70%);
  filter: blur(50px);
  bottom: -60px; left: -40px;
  animation: light-drift-1 14s ease-in-out infinite;
}

.orb-light-2 {
  position: absolute;
  width: 280px; height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 168, 124, 0.16) 0%, transparent 70%);
  filter: blur(45px);
  top: -40px; right: -30px;
  animation: light-drift-2 16s ease-in-out infinite;
}

.orb-light-3 {
  position: absolute;
  width: 360px; height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(196, 154, 60, 0.1) 0%, transparent 70%);
  filter: blur(55px);
  top: 30%; left: 50%;
  transform: translateX(-50%);
  animation: light-drift-3 12s ease-in-out infinite;
}

.orb-light-4 {
  position: absolute;
  width: 250px; height: 250px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(61, 170, 186, 0.1) 0%, transparent 70%);
  filter: blur(40px);
  top: -50px; left: 20%;
  animation: light-drift-4 18s ease-in-out infinite;
}

/* Visible movement within 3 seconds — faster cycles, bigger travel */
@keyframes light-drift-1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(50px, -35px) scale(1.08); }
  50% { transform: translate(30px, -60px) scale(1.02); }
  75% { transform: translate(-20px, -40px) scale(1.1); }
}
@keyframes light-drift-2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(-55px, 30px) scale(1.06); }
  50% { transform: translate(-30px, 55px) scale(0.96); }
  75% { transform: translate(-50px, 20px) scale(1.04); }
}
@keyframes light-drift-3 {
  0%, 100% { transform: translateX(-50%) scale(1); opacity: 0.7; }
  33% { transform: translate(calc(-50% + 40px), -30px) scale(1.12); opacity: 1; }
  66% { transform: translate(calc(-50% - 30px), 20px) scale(0.95); opacity: 0.8; }
}
@keyframes light-drift-4 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  30% { transform: translate(35px, 45px) scale(1.1); }
  60% { transform: translate(55px, 25px) scale(0.97); }
}

/* ===== DARK ORBS (for focus screen) ===== */
.orb-dark-1 {
  position: absolute;
  width: 340px; height: 340px;
  border-radius: 50%;
  filter: blur(70px);
  bottom: -100px; left: -80px;
  animation: dark-drift-1 16s ease-in-out infinite;
}
.orb-dark-2 {
  position: absolute;
  width: 280px; height: 280px;
  border-radius: 50%;
  filter: blur(60px);
  top: -60px; right: -50px;
  animation: dark-drift-2 14s ease-in-out infinite;
}
.orb-dark-3 {
  position: absolute;
  width: 380px; height: 380px;
  border-radius: 50%;
  filter: blur(75px);
  bottom: -80px; right: -90px;
  animation: dark-drift-3 18s ease-in-out infinite;
}
.orb-dark-4 {
  position: absolute;
  width: 200px; height: 200px;
  border-radius: 50%;
  filter: blur(50px);
  top: 20%; left: -30px;
  animation: dark-drift-4 12s ease-in-out infinite;
}

@keyframes dark-drift-1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  30% { transform: translate(45px, -30px) scale(1.08); }
  60% { transform: translate(-15px, -55px) scale(0.96); }
}
@keyframes dark-drift-2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  35% { transform: translate(-50px, 30px) scale(1.1); }
  65% { transform: translate(-20px, 55px) scale(0.95); }
}
@keyframes dark-drift-3 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  40% { transform: translate(-40px, -40px) scale(1.06); }
  70% { transform: translate(20px, -20px) scale(0.97); }
}
@keyframes dark-drift-4 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  30% { transform: translate(30px, 40px) scale(1.12); }
  70% { transform: translate(50px, 15px) scale(0.94); }
}

/* Theme-specific orb colors (set via JS) */
.theme-deep-water .orb-dark-1 { background: radial-gradient(circle, rgba(14, 74, 94, 0.7) 0%, transparent 70%); }
.theme-deep-water .orb-dark-2 { background: radial-gradient(circle, rgba(61, 170, 186, 0.25) 0%, transparent 70%); }
.theme-deep-water .orb-dark-3 { background: radial-gradient(circle, rgba(26, 20, 84, 0.5) 0%, transparent 70%); }
.theme-deep-water .orb-dark-4 { background: radial-gradient(circle, rgba(26, 122, 138, 0.4) 0%, transparent 70%); }

.theme-golden-hour .orb-dark-1 { background: radial-gradient(circle, rgba(196, 154, 60, 0.35) 0%, transparent 70%); }
.theme-golden-hour .orb-dark-2 { background: radial-gradient(circle, rgba(232, 168, 124, 0.3) 0%, transparent 70%); }
.theme-golden-hour .orb-dark-3 { background: radial-gradient(circle, rgba(140, 80, 50, 0.3) 0%, transparent 70%); }
.theme-golden-hour .orb-dark-4 { background: radial-gradient(circle, rgba(212, 169, 74, 0.35) 0%, transparent 70%); }

.theme-night-sky .orb-dark-1 { background: radial-gradient(circle, rgba(26, 20, 84, 0.7) 0%, transparent 70%); }
.theme-night-sky .orb-dark-2 { background: radial-gradient(circle, rgba(46, 36, 120, 0.3) 0%, transparent 70%); }
.theme-night-sky .orb-dark-3 { background: radial-gradient(circle, rgba(20, 15, 60, 0.5) 0%, transparent 70%); }
.theme-night-sky .orb-dark-4 { background: radial-gradient(circle, rgba(80, 70, 160, 0.25) 0%, transparent 70%); }

/* Night Sky star field — tiny points of light */
.star-field {
  position: absolute;
  inset: 0;
  z-index: 2;
  opacity: 0;
  transition: opacity 0.6s ease;
}
.star-field.visible { opacity: 1; }

.star {
  position: absolute;
  width: 2px; height: 2px;
  background: rgba(200, 200, 230, 0.6);
  border-radius: 50%;
  animation: twinkle 3s ease-in-out infinite;
}
.star:nth-child(odd) { animation-duration: 4s; background: rgba(200, 200, 230, 0.4); }

@keyframes twinkle {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.9; }
}

/* Gradient shield for center text on light backgrounds */
.shield-light {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: radial-gradient(ellipse 70% 50% at 50% 45%, rgba(250, 247, 242, 0.6) 0%, transparent 100%);
}

/* Gradient shield for dark focus screen */
.shield-dark {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: radial-gradient(ellipse 65% 45% at 50% 48%, rgba(10, 15, 30, 0.5) 0%, transparent 100%);
}

/* ============================================================
   LOGO — Warm, present, and instantly recognizable
   
   On light background: rings use navy/teal for contrast.
   Center glows warm gold — the brightest element.
   Outer ring: stroke-width 2.2 — reads as deliberate.
   Crosshairs at cardinal points for precision.
   The whole mark breathes with a gentle glow cycle.
   ============================================================ */
.logo-mark {
  width: 88px;
  height: 88px;
  position: relative;
  margin-bottom: 1.8rem;
  z-index: 3;
}
.logo-mark svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

/* Warm glow behind the logo — visible pulse */
.logo-glow {
  position: absolute;
  inset: -28px;
  background: radial-gradient(circle, rgba(196, 154, 60, 0.2) 0%, rgba(196, 154, 60, 0.05) 50%, transparent 70%);
  border-radius: 50%;
  animation: logo-breathe 5s ease-in-out infinite;
}

@keyframes logo-breathe {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.12); }
}

/* ===== BRAND NAME (on light background) ===== */
.brand-name {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 700;
  font-size: clamp(2.5rem, 9vw, 3.8rem);
  letter-spacing: 0.05em;
  color: var(--navy);
  z-index: 3;
  position: relative;
  text-align: center;
}

.tagline {
  font-family: 'Outfit', sans-serif;
  font-weight: 300;
  font-size: clamp(0.8rem, 3vw, 1rem);
  letter-spacing: 0.22em;
  color: var(--text-dark-secondary);
  margin-top: 0.5rem;
  z-index: 3;
  position: relative;
}

.affirmation {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  font-style: italic;
  font-size: clamp(1rem, 4vw, 1.2rem);
  color: var(--gold);
  text-align: center;
  max-width: 300px;
  line-height: 1.65;
  margin-top: 2.5rem;
  min-height: 3.2em;
  z-index: 3;
  position: relative;
  opacity: 1;
  transition: opacity 0.5s ease;
}

/* ===== BUTTONS ===== */
.btn {
  font-family: 'Outfit', sans-serif;
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: 0.1em;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  padding: 0.9rem 2.5rem;
  transition: all 0.3s ease;
  z-index: 3;
  position: relative;
  -webkit-user-select: none;
  user-select: none;
}

/* Primary on LIGHT backgrounds */
.btn-gold {
  background: var(--gold);
  color: #fff;
  box-shadow: 0 4px 18px rgba(196, 154, 60, 0.3);
}
.btn-gold:active {
  background: var(--gold-warm);
  transform: scale(0.97);
}

/* Secondary on LIGHT backgrounds */
.btn-outline {
  background: rgba(26, 42, 58, 0.06);
  color: var(--text-dark);
  border: 1px solid rgba(26, 42, 58, 0.15);
}
.btn-outline:active {
  background: rgba(26, 42, 58, 0.12);
  transform: scale(0.97);
}

/* Text button on LIGHT backgrounds */
.btn-text-light {
  background: none;
  color: var(--text-dark-secondary);
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
}
.btn-text-light:active { color: var(--text-dark); }

/* Buttons on DARK backgrounds (focus screen) */
.btn-dark-end {
  background: rgba(237, 232, 220, 0.08);
  color: var(--text-light-secondary);
  border: 1px solid rgba(237, 232, 220, 0.12);
  font-size: 0.85rem;
  padding: 0.7rem 2rem;
}
.btn-dark-end:active { background: rgba(237, 232, 220, 0.15); }

.btn-dark-primary {
  background: var(--gold);
  color: var(--navy);
  box-shadow: 0 4px 20px rgba(196, 154, 60, 0.25);
}
.btn-dark-primary:active { background: var(--gold-light); transform: scale(0.97); }

.btn-dark-text {
  background: none;
  color: var(--text-light-secondary);
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
}
.btn-dark-text:active { color: var(--text-light); }


/* ===== SPLASH SCREEN ===== */
#splash-screen {
  color: var(--text-dark);
}

#splash-screen .btn-row {
  display: flex;
  gap: 0.8rem;
  margin-top: 3rem;
  z-index: 3;
  position: relative;
}

/* ===== VENUE SELECTION SCREEN ===== */
#venue-screen {
  justify-content: flex-start;
  padding-top: 4rem;
  color: var(--text-dark);
}

.venue-title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 700;
  font-size: 1.6rem;
  color: var(--navy);
  margin-bottom: 0.4rem;
  z-index: 3;
  position: relative;
}

.venue-subtitle {
  font-size: 0.85rem;
  color: var(--text-dark-secondary);
  margin-bottom: 2rem;
  text-align: center;
  z-index: 3;
  position: relative;
}

.venue-list {
  width: 100%;
  max-width: 380px;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  overflow-y: auto;
  max-height: 55vh;
  padding: 0.5rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  z-index: 3;
  position: relative;
}
.venue-list::-webkit-scrollbar { display: none; }

.venue-card {
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(26, 42, 58, 0.08);
  border-radius: 16px;
  padding: 1.1rem 1.3rem;
  cursor: pointer;
  transition: all 0.25s ease;
  -webkit-user-select: none;
  user-select: none;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.venue-card:active {
  background: rgba(196, 154, 60, 0.1);
  border-color: var(--gold);
  transform: scale(0.98);
}

.venue-card-name {
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--navy);
  margin-bottom: 0.2rem;
}

.venue-card-category {
  font-size: 0.7rem;
  color: var(--text-dark-dim);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.venue-card-message {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.05rem;
  color: var(--gold);
}

.venue-back { margin-top: 1.5rem; z-index: 3; position: relative; }

/* ===== FOCUS SCREEN (DARK) ===== */
#focus-screen {
  color: var(--text-light);
  transition: opacity 0.7s ease;
}

.focus-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 3;
  position: relative;
  text-align: center;
}

.focus-venue-name {
  font-family: 'Outfit', sans-serif;
  font-weight: 300;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-light-dim);
  margin-bottom: 2rem;
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}

.focus-message {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 700;
  font-size: clamp(2rem, 9vw, 3.2rem);
  color: var(--text-light);
  text-shadow: 0 0 50px rgba(0,0,0,0.6), 0 2px 6px rgba(0,0,0,0.5);
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

.focus-personal-msg {
  font-family: 'Outfit', sans-serif;
  font-weight: 300;
  font-size: 0.9rem;
  color: var(--text-light-secondary);
  margin-top: 0.5rem;
  max-width: 280px;
  text-shadow: 0 1px 3px rgba(0,0,0,0.4);
}

.focus-clock {
  font-family: 'Outfit', sans-serif;
  font-weight: 300;
  font-size: clamp(2.5rem, 12vw, 4.5rem);
  color: var(--text-light);
  margin-top: 1.5rem;
  letter-spacing: 0.05em;
  text-shadow: 0 0 40px rgba(0,0,0,0.5), 0 2px 6px rgba(0,0,0,0.4);
  opacity: 0.75;
}
.focus-clock.hidden { display: none; }

.focus-end-btn {
  position: absolute;
  bottom: 3rem;
  z-index: 5;
}

/* ============================================================
   BREATHING DOT — Larger glow, warmer, clearly visible
   
   The dot itself is 10px. The glow halo extends to ~50px.
   A second, even larger outer glow creates a warm pool of light.
   You can't miss it — it's the "heartbeat" of the focus screen.
   ============================================================ */
.breathing-dot-wrap {
  margin-top: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 60px;
  position: relative;
}

.breathing-dot {
  width: 10px;
  height: 10px;
  background: var(--gold-warm);
  border-radius: 50%;
  position: relative;
  z-index: 2;
  animation: dot-breathe 4.5s ease-in-out infinite;
}

/* Inner glow — warm, visible halo */
.breathing-dot::before {
  content: '';
  position: absolute;
  inset: -14px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(196, 154, 60, 0.5) 0%, transparent 70%);
  animation: glow-inner 4.5s ease-in-out infinite;
}

/* Outer glow — large, soft pool of warm light */
.breathing-dot::after {
  content: '';
  position: absolute;
  inset: -35px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(196, 154, 60, 0.2) 0%, transparent 70%);
  animation: glow-outer 4.5s ease-in-out infinite;
}

@keyframes dot-breathe {
  0%, 100% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.25); opacity: 1; }
}
@keyframes glow-inner {
  0%, 100% { transform: scale(1); opacity: 0.4; }
  50% { transform: scale(1.5); opacity: 0.8; }
}
@keyframes glow-outer {
  0%, 100% { transform: scale(1); opacity: 0.2; }
  50% { transform: scale(1.4); opacity: 0.5; }
}

/* ===== FOCUS PAUSED STATE ===== */
.paused-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 15, 30, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 20;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}
.paused-overlay.visible { opacity: 1; pointer-events: auto; }

.paused-icon {
  width: 56px; height: 56px;
  border: 2px solid var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  animation: pulse-ring 2.5s ease-in-out infinite;
  box-shadow: 0 0 25px var(--gold-glow);
}
.paused-icon::before {
  content: '';
  width: 14px; height: 14px;
  background: var(--gold);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--gold-glow);
}

@keyframes pulse-ring {
  0%, 100% { transform: scale(1); opacity: 0.7; }
  50% { transform: scale(1.08); opacity: 1; }
}

.paused-text {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 700;
  font-size: 1.8rem;
  color: var(--gold-light);
  text-shadow: 0 0 25px var(--gold-glow);
  margin-bottom: 0.5rem;
}

.paused-subtext {
  font-size: 0.85rem;
  color: var(--text-light-secondary);
  text-align: center;
  max-width: 260px;
  line-height: 1.6;
}

.paused-resume-btn { margin-top: 2rem; }

/* ===== GRACE PERIOD INDICATOR ===== */
.grace-indicator {
  position: absolute;
  top: 2.5rem; right: 1.5rem;
  z-index: 15;
  width: 32px; height: 32px;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.grace-indicator.visible { opacity: 1; }

.grace-ring {
  fill: none;
  stroke: var(--gold);
  stroke-width: 2.5;
  stroke-linecap: round;
  transform: rotate(-90deg);
  transform-origin: center;
  stroke-dasharray: 88;
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 0.5s linear;
}

/* ===== SESSION END SCREEN (LIGHT) ===== */
#end-screen { color: var(--text-dark); }

.end-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 3;
  position: relative;
}

.end-label {
  font-family: 'Outfit', sans-serif;
  font-weight: 300;
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dark-dim);
  margin-bottom: 0.5rem;
}

.end-points {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 700;
  font-size: clamp(4rem, 18vw, 7rem);
  color: var(--gold);
  text-shadow: 0 0 40px rgba(196, 154, 60, 0.25);
  line-height: 1;
}

.end-unit {
  font-family: 'Outfit', sans-serif;
  font-weight: 300;
  font-size: 1rem;
  letter-spacing: 0.15em;
  color: var(--text-dark-secondary);
  margin-bottom: 0.3rem;
}

.end-venue {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.1rem;
  color: var(--gold);
  margin-top: 1.5rem;
  margin-bottom: 0.3rem;
}

.end-duration {
  font-size: 0.85rem;
  color: var(--text-dark-dim);
}

.end-buttons {
  display: flex;
  gap: 0.8rem;
  margin-top: 3rem;
}

@keyframes count-up {
  from { opacity: 0; transform: scale(0.8); }
  to { opacity: 1; transform: scale(1); }
}
.end-points.animate {
  animation: count-up 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* ===== HISTORY SCREEN (LIGHT) ===== */
#history-screen {
  justify-content: flex-start;
  padding-top: 3.5rem;
  color: var(--text-dark);
}

.history-header {
  width: 100%;
  max-width: 380px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  z-index: 3;
  position: relative;
}

.history-title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 700;
  font-size: 1.6rem;
  color: var(--navy);
}

.history-total { text-align: right; }

.history-total-number {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--gold);
}

.history-total-label {
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dark-dim);
}

.history-list {
  width: 100%;
  max-width: 380px;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  overflow-y: auto;
  max-height: 60vh;
  padding: 0.3rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  z-index: 3;
  position: relative;
}
.history-list::-webkit-scrollbar { display: none; }

.history-card {
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(26, 42, 58, 0.07);
  border-radius: 14px;
  padding: 1rem 1.2rem;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.history-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.4rem;
}

.history-card-venue {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--navy);
}

.history-card-points {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 700;
  color: var(--gold);
  font-size: 1.1rem;
}

.history-card-details {
  font-size: 0.75rem;
  color: var(--text-dark-dim);
  line-height: 1.6;
}

.history-empty {
  text-align: center;
  color: var(--text-dark-dim);
  margin-top: 4rem;
  font-size: 0.9rem;
  line-height: 1.6;
}

.history-back { margin-top: 1.5rem; z-index: 3; position: relative; }

/* ===== SETTINGS SCREEN (LIGHT) ===== */
#settings-screen {
  justify-content: flex-start;
  padding-top: 3.5rem;
  color: var(--text-dark);
}

.settings-title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 700;
  font-size: 1.6rem;
  margin-bottom: 2rem;
  width: 100%;
  max-width: 380px;
  z-index: 3;
  position: relative;
  color: var(--navy);
}

.settings-group {
  width: 100%;
  max-width: 380px;
  margin-bottom: 1.8rem;
  z-index: 3;
  position: relative;
}

.settings-label {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dark-dim);
  margin-bottom: 0.7rem;
}

.settings-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(26, 42, 58, 0.08);
  border-radius: 14px;
  padding: 1rem 1.2rem;
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
}

.settings-toggle-label { font-size: 0.95rem; color: var(--text-dark); }

.toggle-switch {
  width: 44px; height: 24px;
  background: rgba(26, 42, 58, 0.12);
  border-radius: 12px;
  position: relative;
  transition: background 0.3s ease;
  flex-shrink: 0;
}
.toggle-switch.on { background: var(--gold); }
.toggle-switch::after {
  content: '';
  position: absolute;
  width: 18px; height: 18px;
  background: #fff;
  border-radius: 50%;
  top: 3px; left: 3px;
  transition: transform 0.3s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}
.toggle-switch.on::after { transform: translateX(20px); }

.settings-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(26, 42, 58, 0.08);
  border-radius: 14px;
  padding: 1rem 1.2rem;
  color: var(--text-dark);
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.3s ease;
}
.settings-input:focus { border-color: var(--gold); }
.settings-input::placeholder { color: var(--text-dark-dim); }

/* ===== BACKGROUND THEME OPTIONS — Three distinct moods ===== */
.bg-options { display: flex; gap: 0.7rem; flex-wrap: wrap; }

.bg-option-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
}

.bg-option-swatch {
  width: 62px; height: 62px;
  border-radius: 14px;
  border: 2.5px solid transparent;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}
.bg-option-swatch.selected {
  border-color: var(--gold);
  box-shadow: 0 0 14px rgba(196, 154, 60, 0.35);
}
.bg-option-card:active .bg-option-swatch { transform: scale(0.93); }

.bg-option-label {
  font-size: 0.6rem;
  letter-spacing: 0.06em;
  color: var(--text-dark-dim);
  text-transform: uppercase;
}

/* Deep Water: dark teal-indigo */
.swatch-deep-water {
  background: linear-gradient(145deg, #0b1d2e, #0e4a5e, #1a1454);
}
/* Golden Hour: warm amber and peach */
.swatch-golden-hour {
  background: linear-gradient(145deg, #2a1a0a, #6b4420, #3d2810);
}
/* Night Sky: deep indigo with dots */
.swatch-night-sky {
  background: linear-gradient(145deg, #0a0820, #1a1454, #0d0a30);
}
.swatch-night-sky::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1px 1px at 15% 30%, rgba(200,200,230,0.6) 0%, transparent 100%),
    radial-gradient(1px 1px at 55% 20%, rgba(200,200,230,0.5) 0%, transparent 100%),
    radial-gradient(1px 1px at 80% 65%, rgba(200,200,230,0.4) 0%, transparent 100%),
    radial-gradient(1px 1px at 35% 75%, rgba(200,200,230,0.5) 0%, transparent 100%),
    radial-gradient(1px 1px at 70% 45%, rgba(200,200,230,0.3) 0%, transparent 100%);
}

.settings-back { margin-top: 2rem; z-index: 3; position: relative; }

/* ===== ENTRANCE ANIMATIONS ===== */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

.screen.active .logo-mark { animation: fade-up 0.8s ease 0s both; }
.screen.active .brand-name { animation: fade-up 0.8s ease 0.15s both; }
.screen.active .tagline { animation: fade-up 0.8s ease 0.3s both; }
.screen.active .affirmation { animation: fade-up 0.8s ease 0.5s both; }
.screen.active .btn-row { animation: fade-up 0.8s ease 0.65s both; }

/* Nav dots */
.nav-dots {
  position: absolute;
  bottom: 1.5rem;
  display: flex;
  gap: 1.5rem;
  z-index: 5;
}
.nav-dot {
  font-size: 0.75rem;
  color: var(--text-dark-dim);
  letter-spacing: 0.08em;
  cursor: pointer;
  padding: 0.5rem;
  -webkit-user-select: none;
  user-select: none;
  transition: color 0.2s ease;
}
.nav-dot:active { color: var(--text-dark-secondary); }
/* ============================================================
   FRACTAL-NETWORK INTRO (Build 2)
   First run only; tap anywhere to skip. Retuned to a 3.0s zoom
   with a tight 0.5s crossfade into the home screen.
   ============================================================ */
#intro {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  background: #04101c; opacity: 1;
  transition: opacity 0.5s ease;
  cursor: pointer;
}
#intro.done { opacity: 0; pointer-events: none; }
#net { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

/* warm focal bloom gathers at the logo point as the zoom settles */
.intro-bloom {
  position: absolute; left: 50%; top: 50%;
  width: 80vmin; height: 80vmin;
  transform: translate(-50%, -50%);
  border-radius: 50%; pointer-events: none; opacity: 0;
  background: radial-gradient(circle, rgba(230,200,120,0.9) 0%, rgba(196,150,48,0.4) 26%, transparent 60%);
  mix-blend-mode: screen;
}
.intro-hint {
  position: absolute;
  bottom: calc(2rem + env(safe-area-inset-bottom));
  left: 0; right: 0; text-align: center;
  font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(236, 230, 216, 0.5);
  pointer-events: none;
  animation: hint-fade 0.8s ease 0.7s both;
}
@keyframes hint-fade { from { opacity: 0; } to { opacity: 1; } }

/* Replay pill — quiet, top-right of the home screen */
.replay-pill {
  position: absolute;
  top: calc(1rem + env(safe-area-inset-top));
  right: 1.1rem; z-index: 6;
  font-size: 0.72rem; letter-spacing: 0.06em;
  color: var(--text-dark-dim);
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(26, 42, 58, 0.10);
  border-radius: 50px;
  padding: 0.42rem 0.85rem;
  cursor: pointer;
  -webkit-user-select: none; user-select: none;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  transition: color 0.2s ease, border-color 0.2s ease;
}
.replay-pill:active { color: var(--text-dark); border-color: var(--gold); }

@media (prefers-reduced-motion: reduce) {
  #intro { display: none !important; }
}

/* ============================================================
   BUILD 3 — INVITATIONS ("a Focal Point")
   Create · Code (QR) · Scan-to-join · Your Focal Points list
   ============================================================ */

/* ---- Create screen ---- */
#create-screen {
  justify-content: flex-start;
  padding-top: 3.5rem;
  color: var(--text-dark);
}
.create-sub {
  font-size: 0.85rem;
  color: var(--text-dark-secondary);
  margin-bottom: 1.6rem;
  width: 100%;
  max-width: 380px;
  line-height: 1.55;
  z-index: 3;
  position: relative;
}
.create-msg {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.25rem;
  color: var(--teal-deep);
}
.create-host-known {
  font-size: 0.75rem;
  color: var(--text-dark-dim);
  margin-top: 0.5rem;
  padding-left: 0.2rem;
}
.create-details {
  width: 100%;
  max-width: 380px;
  z-index: 3;
  position: relative;
  margin-bottom: 1.2rem;
}
.create-details-toggle {
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  color: var(--text-dark-secondary);
  cursor: pointer;
  padding: 0.4rem 0.2rem;
  -webkit-user-select: none;
  user-select: none;
}
.create-details-plus {
  display: inline-block;
  color: var(--gold);
  font-weight: 600;
  transition: transform 0.25s ease;
}
.create-details.open .create-details-plus { transform: rotate(45deg); }
.create-details-optional { color: var(--text-dark-dim); }
.create-details-fields {
  display: none;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: 0.6rem;
}
.create-details.open .create-details-fields { display: flex; }
.create-btn {
  margin-top: 0.5rem;
  z-index: 3;
  position: relative;
}
.create-btn:disabled {
  opacity: 0.35;
  pointer-events: none;
}

/* ---- Your Focal Points list ---- */
.venue-scan-btn { margin-top: 1.2rem; z-index: 3; position: relative; }
.fp-card { position: relative; }
.fp-card-code {
  position: absolute;
  top: 0.9rem; right: 1rem;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dark-dim);
  border: 1px solid rgba(26, 42, 58, 0.15);
  border-radius: 50px;
  padding: 0.3rem 0.7rem;
  -webkit-user-select: none;
  user-select: none;
}
.fp-card-code:active { color: var(--gold-deep, #9c7622); border-color: var(--gold); }
.fp-empty {
  text-align: center;
  color: var(--text-dark-dim);
  font-size: 0.85rem;
  line-height: 1.6;
  padding: 1.2rem 0 0.4rem;
}

/* ---- Code (QR) screen ---- */
#code-screen { color: var(--text-dark); }
.code-card {
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(26, 42, 58, 0.08);
  border-radius: 22px;
  padding: 1.6rem 1.8rem 1.3rem;
  width: 100%;
  max-width: 340px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  z-index: 3;
  position: relative;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 10px 40px rgba(11, 29, 46, 0.08);
}
.code-brand {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-dark-dim);
  margin-bottom: 0.9rem;
}
.code-brand svg { width: 18px; height: 18px; }
.code-message {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 700;
  font-size: clamp(1.5rem, 6.5vw, 2rem);
  color: var(--navy);
  line-height: 1.25;
}
.code-host {
  font-size: 0.85rem;
  color: var(--text-dark-secondary);
  margin-top: 0.4rem;
}
.code-slots {
  font-size: 0.78rem;
  color: var(--text-dark-dim);
  margin-top: 0.2rem;
  min-height: 1em;
}
.code-qr {
  width: 190px;
  height: 190px;
  margin: 1.1rem 0 0.9rem;
  padding: 12px;
  background: #fff;
  border-radius: 14px;
  border: 1px solid rgba(26, 42, 58, 0.08);
}
.code-qr svg { width: 100%; height: 100%; display: block; }
.code-hint {
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dark-dim);
}
#code-screen .end-buttons { margin-top: 1.4rem; z-index: 3; position: relative; }
.code-copied {
  margin-top: 0.9rem;
  font-size: 0.8rem;
  color: var(--gold-deep, #9c7622);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 3;
  position: relative;
  height: 1em;
}
.code-copied.visible { opacity: 1; }

/* ---- Scan screen ---- */
#scan-screen {
  background: #04101c;
  padding: 0;
  color: var(--text-light);
}
.scan-stage {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
#scan-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.scan-frame {
  position: absolute;
  left: 50%; top: 45%;
  width: min(62vw, 260px);
  height: min(62vw, 260px);
  transform: translate(-50%, -50%);
  border-radius: 22px;
  box-shadow: 0 0 0 200vmax rgba(4, 16, 28, 0.55);
  border: 1.5px solid rgba(196, 154, 60, 0.85);
  pointer-events: none;
}
.scan-hint {
  position: absolute;
  left: 0; right: 0;
  top: calc(45% + min(31vw, 130px) + 1.4rem);
  text-align: center;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(237, 232, 220, 0.75);
  text-shadow: 0 1px 4px rgba(0,0,0,0.6);
}
.scan-cancel {
  position: absolute;
  bottom: calc(2.5rem + env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
}
