/**
 * Europe Summer 2027 Expedition Stylesheet
 * Theme: Sun-Drenched European Summer Vacation (Mediterranean Azure & Alpine Warmth)
 */

:root {
  /* Surface & Background Palette (Summer Vacation Theme) */
  --bg-primary: #f8fafc;
  --bg-secondary: #ffffff;
  --bg-card: #ffffff;
  --bg-card-hover: #ffffff;
  --bg-card-selected: #f0f9ff;
  
  /* Text & Typography */
  --text-main: #0f172a;
  --text-muted: #475569;
  --text-dim: #64748b;
  
  /* Summer Sun & Mediterranean Accents */
  --gold: #d97706;
  --gold-hover: #b45309;
  --gold-glow: rgba(217, 119, 6, 0.25);
  
  --accent-blue: #0284c7;
  --accent-cyan: #0ea5e9;
  --accent-green: #059669;
  --accent-coral: #ea580c;
  
  /* Borders & Dividers */
  --border-subtle: #e2e8f0;
  --border-highlight: rgba(2, 132, 199, 0.35);
  --border-selected: #0284c7;
  
  /* Fonts */
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-display: 'Cinzel', serif;
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  
  /* Luxury Vacation Shadows */
  --shadow-sm: 0 2px 10px rgba(15, 23, 42, 0.05), 0 1px 3px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 12px 32px rgba(2, 132, 199, 0.09), 0 4px 16px rgba(15, 23, 42, 0.06);
  --shadow-glow: 0 0 24px rgba(2, 132, 199, 0.22);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ==========================================================================
   TOP STICKY VOTER & NAV BAR
   ========================================================================== */
.top-nav-bar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0.75rem 1.5rem;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
  transition: all 0.3s ease;
}

.nav-container {
  max-width: 1320px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.brand-badge {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.badge-flag {
  font-size: 1.4rem;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.98rem;
  letter-spacing: 0.08em;
  color: var(--accent-blue);
}

.brand-sub {
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  color: var(--gold);
  font-weight: 700;
}

.voter-control-panel {
  display: flex;
  align-items: center;
  flex: 1;
  max-width: 480px;
  justify-content: center;
}

.voter-form {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  width: 100%;
}

.voter-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
}

.voter-input-group {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex: 1;
}

.voter-input-group input {
  flex: 1;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 0.45rem 0.85rem;
  color: var(--text-main);
  font-size: 0.88rem;
  outline: none;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.voter-input-group input:focus {
  border-color: var(--accent-blue);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

.voter-status-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 8px;
  padding: 0.4rem 0.85rem;
}

.status-info {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.85rem;
  color: #1e293b;
}

.status-dot {
  width: 8px;
  height: 8px;
  background: var(--accent-green);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent-green);
}

.progress-badge {
  background: #e0f2fe;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent-blue);
}

.btn-primary {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #ffffff;
  border: none;
  font-weight: 700;
  font-size: 0.82rem;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(217, 119, 6, 0.25);
  transition: all 0.2s ease;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #d97706, #b45309);
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(217, 119, 6, 0.35);
}

.btn-outline {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: #ffffff;
  color: var(--text-main);
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 0.45rem 0.9rem;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s;
}

.btn-outline:hover {
  border-color: var(--accent-blue);
  color: var(--accent-blue);
  background: #f0f9ff;
}

.btn-text {
  background: none;
  border: none;
  color: var(--accent-blue);
  font-size: 0.78rem;
  text-decoration: underline;
  cursor: pointer;
  padding-left: 0.5rem;
  font-weight: 600;
}

.hidden {
  display: none !important;
}

/* ==========================================================================
   HERO SECTION (Sunlit European Summer Vacation Banner)
   ========================================================================== */
.hero-section {
  position: relative;
  padding: 4.5rem 1.5rem 3.5rem;
  text-align: center;
  overflow: hidden;
  background: linear-gradient(180deg, #e0f2fe 0%, #fffbeb 55%, #f8fafc 100%);
  border-bottom: 1px solid var(--border-subtle);
}

.hero-backdrop {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 1400px;
  height: 100%;
  background: radial-gradient(circle at 50% 20%, rgba(245, 158, 11, 0.16) 0%, transparent 65%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
}

.hero-tag {
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  color: var(--gold);
  font-weight: 800;
  margin-bottom: 0.85rem;
  text-transform: uppercase;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--text-main);
  margin-bottom: 1rem;
}

.hero-subtitle {
  font-size: 1.12rem;
  color: var(--text-muted);
  max-width: 720px;
  margin: 0 auto 2.5rem;
}

/* ROUTE TIMELINE BAR */
.route-pill-chain {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 2rem;
  padding: 0.75rem 1.25rem;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  max-width: fit-content;
  margin-left: auto;
  margin-right: auto;
  box-shadow: 0 4px 15px rgba(15, 23, 42, 0.05);
}

.route-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.25rem 0.65rem;
  border-radius: 8px;
}

.route-node .node-code {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.88rem;
  color: var(--text-main);
}

.route-node .node-name {
  font-size: 0.68rem;
  color: var(--text-muted);
}

.route-node.highlight {
  background: #fef3c7;
  border: 1px solid #fde68a;
}

.route-node.highlight .node-code {
  color: var(--gold);
}

.route-connector {
  color: #94a3b8;
  font-size: 0.85rem;
}

.hero-callout {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 12px;
  padding: 1rem 1.5rem;
  font-size: 0.92rem;
  color: #1e3a8a;
  max-width: 750px;
  margin: 0 auto;
  box-shadow: var(--shadow-sm);
}

.hero-callout strong {
  color: #1d4ed8;
}

/* ==========================================================================
   STORYBOOK CONTAINER & CHAPTERS
   ========================================================================== */
.storybook-container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 3rem 1.5rem 6rem;
}

.story-chapter {
  margin-bottom: 4.5rem;
  position: relative;
}

.chapter-marker {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.day-number {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  color: var(--gold);
  background: #fef3c7;
  padding: 0.25rem 0.75rem;
  border-radius: 6px;
  border: 1px solid #fde68a;
}

.day-route {
  font-size: 0.88rem;
  color: var(--text-muted);
  font-weight: 500;
}

.chapter-badge {
  font-size: 0.75rem;
  background: var(--accent-blue);
  color: #fff;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* TRANSIT CHAPTERS */
.transit-chapter {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-left: 4px solid var(--accent-blue);
  border-radius: 12px;
  padding: 1.75rem 2rem;
  box-shadow: var(--shadow-sm);
}

.transit-chapter h2 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--text-main);
  margin-bottom: 0.6rem;
}

.transit-chapter p {
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.7;
}

/* DECISION CHAPTERS */
.decision-chapter {
  background: transparent;
}

.chapter-header-box {
  margin-bottom: 2rem;
}

.chapter-title {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}

.chapter-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 850px;
  margin-bottom: 1.25rem;
  line-height: 1.6;
}

.vote-tally-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
}

.tally-pill {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-size: 0.82rem;
  color: var(--text-muted);
  box-shadow: var(--shadow-sm);
}

.tally-pill strong {
  color: var(--gold);
  margin-left: 0.2rem;
}

/* ==========================================================================
   LEFT-TO-RIGHT OPTIONS CAROUSEL GRID
   ========================================================================== */
.options-carousel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 1.75rem;
  align-items: stretch;
}

.option-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  position: relative;
}

.option-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-blue);
  box-shadow: var(--shadow-lg);
}

/* Card Selected State */
.option-card.voted {
  border-color: var(--border-selected);
  background: var(--bg-card-selected);
  box-shadow: 0 0 0 2px var(--border-selected), var(--shadow-glow);
}

.option-card.voted::before {
  content: "YOUR SELECTION";
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 20;
  background: var(--accent-blue);
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.35);
}

.card-header {
  padding: 1.25rem 1.4rem 1rem;
}

.option-letter {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--gold);
  display: block;
  margin-bottom: 0.25rem;
}

.option-name {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.25;
  margin-bottom: 0.25rem;
}

.option-tagline {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-style: italic;
  display: block;
}

/* SLIDESHOW COMPONENT */
.slideshow {
  position: relative;
  width: 100%;
  height: 240px;
  overflow: hidden;
  background: #0f172a;
}

.slides-wrapper {
  width: 100%;
  height: 100%;
  position: relative;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.slide.active {
  opacity: 1;
  pointer-events: auto;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.slide-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(0deg, rgba(15, 23, 42, 0.88) 0%, rgba(15, 23, 42, 0) 100%);
  padding: 1.25rem 1rem 0.6rem;
  font-size: 0.78rem;
  color: #f8fafc;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

.slide-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.9);
  color: var(--text-main);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  font-size: 0.8rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  transition: all 0.2s;
}

.slide-btn:hover {
  background: #f59e0b;
  color: #ffffff;
}

.slide-btn.prev {
  left: 8px;
}

.slide-btn.next {
  right: 8px;
}

.slide-dots {
  position: absolute;
  bottom: 6px;
  right: 10px;
  display: flex;
  gap: 4px;
  z-index: 10;
}

.slide-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  transition: all 0.2s;
}

.slide-dot.active {
  background: #f59e0b;
  width: 14px;
  border-radius: 4px;
}

/* CARD SPECS */
.card-specs {
  display: flex;
  justify-content: space-between;
  background: #f8fafc;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0.65rem 1rem;
}

.spec-item {
  display: flex;
  flex-direction: column;
  font-size: 0.74rem;
}

.spec-label {
  color: var(--text-dim);
  text-transform: uppercase;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.spec-item strong {
  color: var(--text-main);
  font-weight: 700;
}

/* PROS & CONS */
.pros-cons-grid {
  padding: 1.25rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex: 1;
}

.pros-box h4, .cons-box h4 {
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  margin-bottom: 0.4rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.pros-box h4 {
  color: var(--accent-green);
}

.cons-box h4 {
  color: #e11d48;
}

.pros-box ul, .cons-box ul {
  list-style: none;
  font-size: 0.88rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.pros-box ul {
  color: #334155;
}

.cons-box ul {
  color: #475569;
}

.pros-box ul li {
  position: relative;
  padding-left: 1.25rem;
}

.pros-box ul li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent-green);
  font-weight: bold;
}

.cons-box ul li {
  position: relative;
  padding-left: 1.25rem;
}

.cons-box ul li::before {
  content: "✕";
  position: absolute;
  left: 0;
  color: #e11d48;
  font-weight: bold;
}

.pros-box ul li strong, .cons-box ul li strong {
  color: var(--text-main);
}

/* CARD VOTE ACTION */
.card-vote-action {
  padding: 1.1rem 1.4rem 1.4rem;
  margin-top: auto;
  border-top: 1px solid var(--border-subtle);
  background: #f8fafc;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* ==========================================================================
   CARD SOCIAL EXPLORER BAR (Instagram, TikTok, YouTube)
   ========================================================================== */
.card-social-links {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 0.65rem 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.04);
}

.social-links-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.social-pulse-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--accent-blue);
  font-weight: 800;
}

.social-pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-green);
  box-shadow: 0 0 8px var(--accent-green);
  animation: pulseDot 2s infinite ease-in-out;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.75); }
}

.social-query-hint {
  color: var(--text-dim);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.social-btn-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.45rem;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.45rem 0.35rem;
  border-radius: 8px;
  font-size: 0.74rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--text-main);
  background: #ffffff;
  border: 1px solid #cbd5e1;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  min-width: 0;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.social-btn span {
  white-space: nowrap;
}

.social-btn svg {
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.social-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.08);
}

.social-btn:hover svg {
  transform: scale(1.15);
}

/* Instagram */
.social-btn.btn-ig {
  border-color: #fbcfe8;
}
.social-btn.btn-ig svg {
  color: #e1306c;
}
.social-btn.btn-ig:hover {
  background: #fff5f8;
  border-color: #e1306c;
  color: #e1306c;
}

/* TikTok */
.social-btn.btn-tt {
  border-color: #e2e8f0;
}
.social-btn.btn-tt svg {
  color: #0f172a;
}
.social-btn.btn-tt:hover {
  background: #f8fafc;
  border-color: #0f172a;
  color: #0f172a;
}

/* YouTube */
.social-btn.btn-yt {
  border-color: #fecaca;
}
.social-btn.btn-yt svg {
  color: #ef4444;
}
.social-btn.btn-yt:hover {
  background: #fef2f2;
  border-color: #ef4444;
  color: #dc2626;
}

/* BUTTON VOTE */
.btn-vote {
  width: 100%;
  background: #ffffff;
  border: 2px solid var(--accent-blue);
  color: var(--accent-blue);
  border-radius: 10px;
  padding: 0.75rem 1.2rem;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  box-shadow: 0 2px 6px rgba(2, 132, 199, 0.08);
  transition: all 0.2s ease;
}

.btn-vote:hover {
  background: var(--accent-blue);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.3);
}

.option-card.voted .btn-vote {
  background: var(--accent-blue);
  border-color: var(--accent-blue);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.35);
}

.option-card.voted .btn-vote:hover {
  background: #fee2e2;
  border-color: #ef4444;
  color: #dc2626;
  box-shadow: 0 4px 14px rgba(239, 68, 68, 0.25);
}

.choice-tag {
  display: inline-block;
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  color: #0369a1;
  font-size: 0.76rem;
  font-weight: 600;
  padding: 0.18rem 0.55rem;
  border-radius: 6px;
  margin: 0.15rem 0.25rem 0.15rem 0;
  white-space: nowrap;
}

.vote-count-badge {
  background: #e2e8f0;
  color: var(--text-main);
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 800;
  margin-left: auto;
}

.option-card.voted .vote-count-badge {
  background: rgba(255, 255, 255, 0.3);
  color: #ffffff;
}

/* Narrative Social Explorer (Zurich & Athens) */
.narrative-social-explore {
  margin-top: 1.25rem;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 0.85rem 1.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  box-shadow: var(--shadow-sm);
}

.narrative-social-explore .social-btn-row {
  display: flex;
  gap: 0.5rem;
}

/* ==========================================================================
   FINALE & HOMEBOUND CHAPTERS
   ========================================================================== */
.finale-chapter {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 2.2rem;
  box-shadow: var(--shadow-sm);
}

.finale-content-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2rem;
  align-items: center;
  margin-top: 1rem;
}

.finale-text p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 1rem;
}

.finale-image {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  position: relative;
}

.finale-image img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
}

.image-sub {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(0deg, rgba(15, 23, 42, 0.88) 0%, rgba(15, 23, 42, 0) 100%);
  padding: 0.5rem 0.8rem;
  font-size: 0.75rem;
  color: #f8fafc;
}

.homebound-chapter {
  background: #ffffff;
  border: 1px dashed #cbd5e1;
  border-radius: 12px;
  padding: 1.75rem 2rem;
  box-shadow: var(--shadow-sm);
}

.homebound-chapter h2 {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}

.homebound-chapter p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ==========================================================================
   LEADERBOARD & GROUP BALLOTS SECTION
   ========================================================================== */
.leaderboard-section {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 3rem 2.5rem;
  box-shadow: var(--shadow-lg);
}

.leaderboard-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-tag {
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  color: var(--gold);
  font-weight: 800;
  display: block;
  margin-bottom: 0.4rem;
}

.leaderboard-header h2 {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  color: var(--text-main);
  margin-bottom: 0.4rem;
}

.leaderboard-header p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.leaderboard-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.75rem;
  margin-bottom: 3rem;
}

.tally-card {
  background: #f8fafc;
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 1.4rem;
  box-shadow: var(--shadow-sm);
}

.tally-card-head {
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 0.75rem;
}

.tally-cat {
  font-size: 0.7rem;
  font-family: var(--font-display);
  letter-spacing: 0.1em;
  color: var(--gold);
  font-weight: 800;
}

.tally-card-head h3 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--text-main);
}

.tally-bars-container {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.bar-row {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.bar-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.84rem;
}

.bar-label {
  font-weight: 600;
  color: var(--text-main);
}

.bar-count {
  font-weight: 700;
  color: var(--accent-blue);
}

.progress-track {
  width: 100%;
  height: 8px;
  background: #e2e8f0;
  border-radius: 999px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #f59e0b 0%, #0284c7 100%);
  border-radius: 999px;
  transition: width 0.5s ease;
}

/* ROSTER TABLE */
.voters-table-container {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-subtle);
}

.voters-table-container h3 {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  color: var(--text-main);
  margin-bottom: 1rem;
}

.table-scroller {
  overflow-x: auto;
}

.voters-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.88rem;
}

.voters-table th {
  background: #f1f5f9;
  color: var(--text-muted);
  font-weight: 600;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border-subtle);
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.05em;
}

.voters-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border-subtle);
  color: #334155;
}

.voters-table tbody tr:hover td {
  background: #f8fafc;
}

.voters-table .voter-highlight {
  font-weight: 700;
  color: var(--accent-blue);
}

.voters-table .empty-state {
  text-align: center;
  color: var(--text-dim);
  padding: 2rem;
  font-style: italic;
}

/* ==========================================================================
   MODAL DIALOG
   ========================================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.modal-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.15);
}

.modal-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-header h2 {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  color: var(--text-main);
}

.btn-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.25rem;
  cursor: pointer;
  padding: 0.2rem 0.5rem;
}

.modal-body {
  padding: 1.5rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.modal-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: flex-end;
}


/* ==========================================================================
   STORY MASCOT TRANSITIONS & FAMILY VIBES
   ========================================================================== */
.story-mascot-transition {
  margin: 3.5rem auto 3.5rem;
  max-width: 900px;
  width: 100%;
  position: relative;
  z-index: 5;
}

.transition-flight-path {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.flight-line {
  flex: 1;
  height: 2px;
  background: repeating-linear-gradient(
    to right,
    #38bdf8,
    #38bdf8 8px,
    transparent 8px,
    transparent 16px
  );
}

.flight-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-blue);
  box-shadow: 0 0 8px rgba(2, 132, 199, 0.4);
}

.flight-badge {
  background: #ffffff;
  border: 1.5px solid #bae6fd;
  color: var(--accent-blue);
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  padding: 0.35rem 1rem;
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.08);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
}

.mascot-card {
  background: linear-gradient(135deg, #ffffff 0%, #fffbeb 50%, #fef3c7 100%);
  border: 2px solid #fed7aa;
  border-radius: 28px;
  padding: 1.25rem 1.75rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  box-shadow: 0 10px 28px rgba(217, 119, 6, 0.1), 0 2px 8px rgba(15, 23, 42, 0.04);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
  position: relative;
  overflow: visible;
}

.mascot-card:hover {
  transform: translateY(-3px) scale(1.01);
  box-shadow: 0 16px 36px rgba(217, 119, 6, 0.15), 0 4px 12px rgba(15, 23, 42, 0.06);
}

/* Specific theme gradient tints */
.story-mascot-transition[data-transition="italy"] .mascot-card {
  background: linear-gradient(135deg, #ffffff 0%, #f0fdf4 40%, #fef2f2 100%);
  border-color: #bbf7d0;
  box-shadow: 0 10px 28px rgba(22, 163, 74, 0.1);
}

.story-mascot-transition[data-transition="greece"] .mascot-card,
.story-mascot-transition[data-transition="athens"] .mascot-card {
  background: linear-gradient(135deg, #ffffff 0%, #f0f9ff 50%, #e0f2fe 100%);
  border-color: #bae6fd;
  box-shadow: 0 10px 28px rgba(2, 132, 199, 0.1);
}

.story-mascot-transition[data-transition="texas"] .mascot-card {
  background: linear-gradient(135deg, #ffffff 0%, #fff7ed 50%, #ffedd5 100%);
  border-color: #fed7aa;
  box-shadow: 0 10px 28px rgba(180, 83, 9, 0.1);
}

.mascot-avatar-wrap {
  flex-shrink: 0;
  width: 140px;
  height: 125px;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: cuteFloat 4s ease-in-out infinite;
  transform-origin: center bottom;
}

.mascot-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.flag-flutter {
  transform-origin: 126px 36px;
  animation: flagFlutter 3s ease-in-out infinite alternate;
}

@keyframes cuteFloat {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-7px) rotate(1.5deg);
  }
}

@keyframes flagFlutter {
  0% {
    transform: rotate(0deg) skewY(0deg);
  }
  50% {
    transform: rotate(-3deg) skewY(2deg);
  }
  100% {
    transform: rotate(2deg) skewY(-1deg);
  }
}

.mascot-speech-bubble {
  flex: 1;
  background: #ffffff;
  border: 2px solid #fed7aa;
  border-radius: 20px;
  padding: 1.15rem 1.4rem;
  position: relative;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
}

.story-mascot-transition[data-transition="italy"] .mascot-speech-bubble {
  border-color: #bbf7d0;
}
.story-mascot-transition[data-transition="greece"] .mascot-speech-bubble,
.story-mascot-transition[data-transition="athens"] .mascot-speech-bubble {
  border-color: #bae6fd;
}

/* Speech arrow pointing left toward mascot */
.mascot-speech-bubble::before {
  content: "";
  position: absolute;
  left: -13px;
  top: 36px;
  width: 0;
  height: 0;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-right: 13px solid #fed7aa;
}

.mascot-speech-bubble::after {
  content: "";
  position: absolute;
  left: -10px;
  top: 37px;
  width: 0;
  height: 0;
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
  border-right: 11px solid #ffffff;
}

.story-mascot-transition[data-transition="italy"] .mascot-speech-bubble::before {
  border-right-color: #bbf7d0;
}
.story-mascot-transition[data-transition="greece"] .mascot-speech-bubble::before,
.story-mascot-transition[data-transition="athens"] .mascot-speech-bubble::before {
  border-right-color: #bae6fd;
}

.mascot-speaker-tag {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.45rem;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.mascot-name {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #b45309;
}

.story-mascot-transition[data-transition="italy"] .mascot-name {
  color: #15803d;
}
.story-mascot-transition[data-transition="greece"] .mascot-name,
.story-mascot-transition[data-transition="athens"] .mascot-name {
  color: #0369a1;
}

.mascot-mood {
  font-size: 0.72rem;
  font-weight: 700;
  background: #fef3c7;
  color: #92400e;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  border: 1px solid #fde68a;
}

.story-mascot-transition[data-transition="italy"] .mascot-mood {
  background: #dcfce7;
  color: #166534;
  border-color: #bbf7d0;
}
.story-mascot-transition[data-transition="greece"] .mascot-mood,
.story-mascot-transition[data-transition="athens"] .mascot-mood {
  background: #e0f2fe;
  color: #075985;
  border-color: #bae6fd;
}

.mascot-speech-text {
  font-size: 0.96rem;
  color: #334155;
  line-height: 1.55;
  font-weight: 500;
}

/* FUN PERK PILLS */
.card-fun-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.6rem;
}

.fun-perk-pill {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.22rem 0.65rem;
  border-radius: 999px;
  background: #f8fafc;
  color: #475569;
  border: 1px solid #e2e8f0;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.fun-perk-pill.highlight {
  background: #fef3c7;
  color: #92400e;
  border-color: #fde68a;
}

/* Playful Button Micro-interaction */
.btn-vote {
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.btn-vote:hover {
  transform: translateY(-3px) scale(1.02);
}
.btn-vote:active {
  transform: translateY(1px) scale(0.98);
}

/* Responsive adjustment for mascot */
@media (max-width: 680px) {
  .mascot-card {
    flex-direction: column;
    text-align: center;
    padding: 1.25rem 1rem;
    gap: 0.8rem;
  }
  .mascot-speaker-tag {
    justify-content: center;
  }
  .mascot-speech-bubble::before,
  .mascot-speech-bubble::after {
    display: none;
  }
}


/* ==========================================================================
   QUICK-JUMP CHAPTER STEPPER BAR
   ========================================================================== */
.chapter-stepper-bar {
  position: sticky;
  top: 57px;
  z-index: 85;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.03);
  padding: 0.5rem 1rem;
  transition: all 0.25s ease;
}

.stepper-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.stepper-title {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  text-transform: uppercase;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.stepper-scroll-container {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 0.2rem 0;
}
.stepper-scroll-container::-webkit-scrollbar {
  display: none;
}

.step-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: #f8fafc;
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  padding: 0.35rem 0.85rem;
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03);
  cursor: pointer;
}

.step-pill:hover {
  background: #ffffff;
  color: var(--accent-blue);
  border-color: #bae6fd;
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(2, 132, 199, 0.1);
}

.step-pill.active {
  background: var(--accent-blue);
  color: #ffffff;
  border-color: var(--accent-blue);
  box-shadow: 0 3px 10px rgba(2, 132, 199, 0.3);
}

.step-pill.active .step-flag {
  transform: scale(1.15);
}

.step-arrow {
  color: #cbd5e1;
  font-size: 0.75rem;
  user-select: none;
}

/* ==========================================================================
   STICKY BOTTOM 'MY SELECTIONS' FLOATING DRAWER
   ========================================================================== */
.floating-selection-drawer {
  position: fixed;
  bottom: -90px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 95;
  width: calc(100% - 24px);
  max-width: 920px;
  transition: bottom 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
  opacity: 0;
  pointer-events: none;
}

.floating-selection-drawer.visible {
  bottom: 16px;
  opacity: 1;
  pointer-events: auto;
}

.drawer-container {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1.5px solid rgba(2, 132, 199, 0.22);
  border-radius: 999px;
  padding: 0.55rem 0.9rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  box-shadow: 0 12px 36px rgba(15, 23, 42, 0.14), 0 2px 8px rgba(2, 132, 199, 0.08);
}

.drawer-left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.drawer-voter-chip {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  background: #f1f5f9;
  border-radius: 999px;
  padding: 0.25rem 0.65rem;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--text-main);
}

.drawer-voter-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-green);
  box-shadow: 0 0 6px rgba(5, 150, 105, 0.5);
}

.drawer-status-badge {
  font-size: 0.72rem;
  font-weight: 800;
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
  border-radius: 999px;
  padding: 0.2rem 0.55rem;
  white-space: nowrap;
}

.drawer-status-badge.all-complete {
  background: #dcfce7;
  color: #166534;
  border-color: #bbf7d0;
}

.drawer-picks-group {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  overflow-x: auto;
  scrollbar-width: none;
}
.drawer-picks-group::-webkit-scrollbar {
  display: none;
}

.drawer-pick-chip {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  padding: 0.3rem 0.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.drawer-pick-chip:hover {
  border-color: var(--accent-blue);
  color: var(--accent-blue);
  transform: translateY(-1px);
}

.drawer-pick-chip.is-voted {
  background: #f0f9ff;
  border-color: #38bdf8;
  color: #0369a1;
  font-weight: 800;
}

.drawer-pick-chip.is-voted .chip-label {
  color: #0284c7;
}

.drawer-pick-chip em {
  font-style: normal;
  color: #d97706;
}

.drawer-right {
  flex-shrink: 0;
}

.drawer-btn-ballot {
  background: var(--accent-blue);
  color: #ffffff;
  border: none;
  border-radius: 999px;
  padding: 0.35rem 0.85rem;
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.3);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.drawer-btn-ballot:hover {
  background: #0369a1;
  transform: translateY(-1px);
}

/* Touch cursor on slideshow */
.slideshow {
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}
.slideshow:active {
  cursor: grabbing;
}

/* Scroll jump highlight effect */
@keyframes chapterHighlightPulse {
  0% { box-shadow: 0 0 0 0 rgba(2, 132, 199, 0.6); }
  50% { box-shadow: 0 0 0 10px rgba(2, 132, 199, 0.25); }
  100% { box-shadow: 0 0 0 0 rgba(2, 132, 199, 0); }
}

.chapter-jump-highlight {
  animation: chapterHighlightPulse 1.6s ease-out;
  border-radius: 16px;
}

/* Smooth anchor offsets */
.story-chapter,
.leaderboard-section {
  scroll-margin-top: 110px;
}

/* Mobile Responsiveness for Stepper & Drawer */
@media (max-width: 680px) {
  .chapter-stepper-bar {
    top: 52px;
    padding: 0.4rem 0.6rem;
  }
  .stepper-title {
    display: none;
  }
  .floating-selection-drawer {
    width: calc(100% - 16px);
  }
  .floating-selection-drawer.visible {
    bottom: 10px;
  }
  .drawer-container {
    padding: 0.45rem 0.65rem;
    gap: 0.45rem;
  }
  .drawer-voter-chip {
    display: none;
  }
  .drawer-status-badge {
    font-size: 0.68rem;
    padding: 0.18rem 0.45rem;
  }
  .drawer-pick-chip {
    padding: 0.25rem 0.55rem;
    font-size: 0.72rem;
  }
  .drawer-btn-ballot {
    padding: 0.3rem 0.65rem;
    font-size: 0.72rem;
  }
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  padding: 3rem 1.5rem;
  text-align: center;
  background: #f1f5f9;
  color: var(--text-dim);
  font-size: 0.85rem;
}

.footer-sub {
  margin-top: 0.4rem;
  font-size: 0.75rem;
  color: #94a3b8;
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */
@media (max-width: 900px) {
  .nav-container {
    flex-wrap: wrap;
  }
  .voter-control-panel {
    order: 3;
    max-width: 100%;
    width: 100%;
  }
  .options-carousel-grid {
    grid-template-columns: 1fr;
  }
  .finale-content-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .top-nav-bar {
    padding: 0.6rem 1rem;
  }
  .hero-section {
    padding: 3.5rem 1rem 2.5rem;
  }
  .storybook-container {
    padding: 2rem 1rem 4rem;
  }
  .leaderboard-section {
    padding: 2rem 1.25rem;
  }
  .card-vote-action {
    padding: 0.9rem 1rem 1.1rem;
  }
  .card-social-links {
    padding: 0.55rem 0.65rem;
  }
  .social-btn {
    padding: 0.42rem 0.25rem;
    font-size: 0.7rem;
    gap: 0.25rem;
  }
}
