/* ==========================================================================
   Secret Santa Platform — Design System
   ========================================================================== */

:root {
  /* Color Palette */
  --bg-dark: #061910;
  --bg-deep: #0a2418;
  --bg-forest: #103825;
  --bg-card: rgba(14, 40, 27, 0.78);
  --bg-card-hover: rgba(19, 52, 35, 0.88);
  --bg-card-light: #fffdf9;

  /* Festive Accents */
  --red-crimson: #c41e3a;
  --red-ruby: #e63946;
  --red-dark: #8b1325;
  --red-glow: rgba(230, 57, 70, 0.45);

  --gold-metallic: #d4af37;
  --gold-bright: #ffd700;
  --gold-soft: #f4d06f;
  --gold-glow: rgba(244, 208, 111, 0.4);

  --green-emerald: #1e6b3c;
  --green-light: #2ec4b6;
  --green-glow: rgba(46, 196, 182, 0.35);

  --ink-primary: #ffffff;
  --ink-secondary: #e2e8f0;
  --ink-muted: #94a3b8;
  --ink-dark: #1e293b;

  /* Typography */
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-display: 'Cinzel Decorative', 'Playfair Display', Georgia, serif;
  --font-script: 'Caveat', cursive;

  /* Elevations & Glassmorphism */
  --glass-border: 1px solid rgba(255, 255, 255, 0.12);
  --glass-border-gold: 1px solid rgba(212, 175, 55, 0.35);
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 10px 25px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 20px 45px rgba(0, 0, 0, 0.45);
  --shadow-glow-gold: 0 0 25px rgba(212, 175, 55, 0.35);
  --shadow-glow-red: 0 0 30px rgba(230, 57, 70, 0.45);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-xl: 32px;
}

/* --------------------------------------------------------------------------
   Reset & Global Base
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 12px;
  z-index: 2000;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--gold-bright);
  color: #061910;
  font-weight: 800;
  font-size: 0.9rem;
  text-decoration: none;
  box-shadow: var(--shadow-md);
}

.skip-link:focus {
  left: 16px;
}

:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 3px;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-dark);
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(30, 107, 60, 0.45) 0%, transparent 60%),
    radial-gradient(circle at 10% 40%, rgba(196, 30, 58, 0.2) 0%, transparent 50%),
    linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-deep) 50%, #030e09 100%);
  background-attachment: fixed;
  color: var(--ink-secondary);
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

/* Canvas Snowfall Background */
#snow-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 10;
}

/* Main Container Wrappers */
/* z-index must stay above .site-footer's -- .page is a stacking context, so
   any in-page modal (however high its own z-index) is trapped inside it and
   would otherwise be painted over by a later sibling with an equal/higher
   z-index, like the footer. */
.page {
  position: relative;
  z-index: 21;
  max-width: 1180px;
  margin: 0 auto;
  padding: 32px 20px 80px;
}

.page--dashboard {
  max-width: 1120px;
  padding-top: 24px;
}

.page--narrow {
  max-width: 580px;
  padding-top: 48px;
}

/* Organizer/Platform ("backend") dashboards use the full viewport width --
   these are data-dense tables and benefit from the extra room, unlike the
   narrower marketing/participant pages. */
.page--admin {
  max-width: none;
  width: 100%;
  padding-left: clamp(20px, 4vw, 56px);
  padding-right: clamp(20px, 4vw, 56px);
}

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --------------------------------------------------------------------------
   Full-Screen WOW Hero Banner (Landing Page)
   -------------------------------------------------------------------------- */
.hero-banner {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  min-height: 640px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  z-index: 20;
}

/* Plain CSS gradient hero background -- no photo asset, so it looks right
   for any organization using the platform (not just the one the original
   artwork was commissioned for). */
.hero-banner__bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(circle at 15% 15%, rgba(212, 175, 55, 0.22) 0%, transparent 45%),
    radial-gradient(circle at 85% 10%, rgba(196, 30, 58, 0.18) 0%, transparent 50%),
    radial-gradient(circle at 50% 100%, rgba(30, 107, 60, 0.4) 0%, transparent 60%),
    linear-gradient(160deg, #0a2418 0%, #061910 55%, #030e09 100%);
}

/* Top Navigation Bar */
.hero-nav {
  position: relative;
  z-index: 30;
  padding: 24px 32px;
}

.hero-nav__inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #fff;
  padding: 8px 18px;
  background: rgba(255, 255, 255, 0.08);
  border: var(--glass-border);
  backdrop-filter: blur(14px);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s ease;
}

.brand-badge:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: var(--gold-metallic);
  transform: translateY(-2px);
}

.brand-badge__santa { font-size: 1.4rem; }
.brand-badge__name { font-weight: 800; font-size: 1.15rem; letter-spacing: -0.02em; }
.brand-badge__tag {
  font-size: 0.8rem;
  background: rgba(212, 175, 55, 0.2);
  color: var(--gold-soft);
  padding: 2px 8px;
  border-radius: 999px;
  font-weight: 600;
}

.hero-nav__actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-link {
  color: var(--ink-secondary);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

.nav-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.nav-link--admin {
  background: rgba(255, 255, 255, 0.08);
  border: var(--glass-border);
  backdrop-filter: blur(10px);
}

.nav-link--admin:hover {
  border-color: var(--gold-metallic);
  color: var(--gold-soft);
}

.nav-link--cta {
  background: linear-gradient(135deg, var(--red-ruby) 0%, var(--red-crimson) 100%);
  color: #fff;
  border: 1px solid rgba(255, 215, 0, 0.35);
  box-shadow: 0 4px 14px rgba(196, 30, 58, 0.35);
}

.nav-link--cta:hover {
  background: linear-gradient(135deg, #ff4d6d 0%, var(--red-ruby) 100%);
  border-color: rgba(255, 215, 0, 0.6);
  transform: translateY(-1px);
}

.hero-banner--3d {
  min-height: max(700px, 100dvh);
  height: auto;
  padding-bottom: 36px;
}

.hero-banner--3d::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  background: radial-gradient(circle at 22% 48%, rgba(4, 18, 11, 0.56) 0%, rgba(4, 18, 11, 0.16) 52%, transparent 80%);
}

.hero-3d-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
  pointer-events: none;
}

/* Hero Centerpiece Content */
.hero-banner__content {
  position: relative;
  z-index: 25;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 16px 28px 24px;
  flex: 1;
}

.hero-banner__inner {
  max-width: 860px;
  margin: 0 auto;
}

/* Split 3D Hero Grid */
.hero-grid {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: center;
  gap: 56px;
  text-align: left;
}

.hero-grid--open {
  grid-template-columns: minmax(0, 620px) 1fr;
}

.hero-grid__copy {
  position: relative;
  z-index: 2;
}

.hero-grid__copy .hero-subtitle {
  margin: 0 0 28px;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.hero-banner__bg--christmas {
  background:
    radial-gradient(circle at 14% 16%, rgba(196, 30, 58, 0.28) 0%, transparent 46%),
    radial-gradient(circle at 86% 18%, rgba(212, 175, 55, 0.22) 0%, transparent 45%),
    radial-gradient(circle at 50% 95%, rgba(22, 101, 52, 0.48) 0%, transparent 60%),
    linear-gradient(160deg, #0b2919 0%, #061910 55%, #040d08 100%);
}

.christmas-divider {
  position: relative;
  z-index: 25;
  height: 3px;
  width: 100%;
  background: linear-gradient(90deg, transparent 0%, var(--red-crimson) 22%, var(--gold-bright) 50%, var(--green-emerald) 78%, transparent 100%);
  opacity: 0.85;
}

.badge--crimson {
  background: rgba(196, 30, 58, 0.22);
  color: #ff8fa3;
  border: 1px solid rgba(230, 57, 70, 0.45);
}

.step-card--christmas {
  border-top: 2px solid rgba(212, 175, 55, 0.35);
}

.step-card--christmas:hover {
  border-color: rgba(230, 57, 70, 0.55);
  box-shadow: var(--shadow-lg), 0 0 28px rgba(196, 30, 58, 0.25);
}

.role-card--organizer {
  border-top: 2px solid rgba(212, 175, 55, 0.55);
}

.role-card--participant {
  border-top: 2px solid rgba(230, 57, 70, 0.55);
}

/* FAQ Section */
.faq-section {
  margin-top: 24px;
  margin-bottom: 56px;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.faq-card {
  background: var(--bg-card);
  border: var(--glass-border);
  backdrop-filter: blur(12px);
  border-radius: var(--radius-lg);
  padding: 26px 24px;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.faq-card:hover {
  border-color: rgba(212, 175, 55, 0.4);
  transform: translateY(-2px);
}

.faq-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}

.faq-card p {
  font-size: 0.92rem;
  color: var(--ink-muted);
  line-height: 1.6;
}

.festive-banner-box--christmas {
  background: linear-gradient(135deg, rgba(196, 30, 58, 0.36) 0%, rgba(16, 56, 37, 0.88) 55%, rgba(10, 32, 20, 0.94) 100%);
  border: 1px solid rgba(255, 215, 0, 0.4);
}

.festive-banner-box__action {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

@media (max-width: 768px) {
  .faq-grid { grid-template-columns: 1fr; }
}

/* 3D Interactive Story Chapter HUD */
.story-hud {
  position: relative;
  z-index: 30;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 4px 20px 0;
}

.story-hud__pills {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 5px;
  background: rgba(6, 24, 15, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(14px);
  border-radius: 999px;
  box-shadow: var(--shadow-md);
}

.story-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--ink-muted);
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.story-pill__num {
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--gold-soft);
  opacity: 0.75;
}

.story-pill:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.story-pill.is-active {
  background: rgba(212, 175, 55, 0.18);
  border-color: rgba(212, 175, 55, 0.45);
  color: #fff;
}

.story-pill.is-active .story-pill__num {
  opacity: 1;
  color: var(--gold-bright);
}

.story-pill--next {
  margin-left: 2px;
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
  color: var(--ink-secondary);
}

.story-pill--next:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

/* Dual Role Feature Grid */
.role-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-bottom: 48px;
}

.role-card {
  background: var(--bg-card);
  border: var(--glass-border);
  backdrop-filter: blur(14px);
  border-radius: var(--radius-lg);
  padding: 30px 28px;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
}

.role-card__header {
  margin-bottom: 18px;
}

.role-card__header h3 {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  color: #fff;
  margin-top: 10px;
}

.role-card__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.role-card__list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.94rem;
  color: var(--ink-secondary);
}

.role-card__list li span {
  color: var(--gold-soft);
  font-weight: 800;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 18px;
  background: rgba(212, 175, 55, 0.15);
  border: 1px solid rgba(212, 175, 55, 0.35);
  backdrop-filter: blur(12px);
  border-radius: 999px;
  color: var(--gold-soft);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 20px;
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.2);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  font-weight: 900;
  color: #ffffff;
  line-height: 1.15;
  margin-bottom: 20px;
  text-shadow: 0 4px 25px rgba(0, 0, 0, 0.7);
}

.hero-title__highlight {
  background: linear-gradient(135deg, #ffd700 0%, #ffae19 50%, #fff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.4));
}

.hero-subtitle {
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  color: #e2e8f0;
  max-width: 680px;
  margin: 0 auto 32px;
  line-height: 1.6;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
  font-weight: 400;
}

.hero-alert {
  max-width: 600px;
  margin: 0 auto 24px;
}

/* Scroll Down Mouse */
.hero-scroll-indicator {
  position: absolute;
  bottom: 24px;
  right: 32px;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink-muted);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  transition: color 0.2s ease;
}

.hero-scroll-indicator:hover { color: #fff; }

.scroll-mouse {
  width: 20px;
  height: 32px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-radius: 12px;
  position: relative;
}

.scroll-wheel {
  width: 4px;
  height: 6px;
  background: var(--gold-soft);
  border-radius: 2px;
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  animation: wheel-bounce 1.6s infinite ease-in-out;
}

@keyframes wheel-bounce {
  0% { opacity: 1; top: 6px; }
  50% { opacity: 0.3; top: 16px; }
  100% { opacity: 0; top: 18px; }
}

/* --------------------------------------------------------------------------
   Buttons & Interactive Controls
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
  box-shadow: var(--shadow-sm);
  white-space: nowrap;
}

.btn:active { transform: scale(0.98); }

.btn--primary {
  background: linear-gradient(135deg, var(--red-ruby) 0%, var(--red-crimson) 100%);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.15);
}

.btn--primary:hover {
  background: linear-gradient(135deg, #ff4d6d 0%, var(--red-ruby) 100%);
  box-shadow: var(--shadow-glow-red);
  transform: translateY(-2px);
}

.btn--secondary {
  background: rgba(255, 255, 255, 0.1);
  border: var(--glass-border);
  backdrop-filter: blur(12px);
  color: #fff;
}

.btn--secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

.btn--cta {
  background: linear-gradient(135deg, #e63946 0%, #c41e3a 50%, #9b111e 100%);
  color: #ffffff;
  border: 1px solid rgba(255, 215, 0, 0.4);
  box-shadow: 0 10px 30px rgba(196, 30, 58, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn--cta:hover {
  background: linear-gradient(135deg, #ff4d6d 0%, #e63946 50%, #b91c28 100%);
  box-shadow: 0 14px 40px rgba(196, 30, 58, 0.6), 0 0 25px rgba(255, 215, 0, 0.5);
  transform: translateY(-3px) scale(1.02);
}

.btn--danger {
  background: linear-gradient(135deg, #8b1325 0%, #5c0b17 100%);
  color: #fff;
  border-color: rgba(255, 100, 100, 0.3);
}

.btn--danger:hover {
  background: #a3182d;
  box-shadow: 0 0 20px rgba(139, 19, 37, 0.6);
}

.btn--large {
  padding: 16px 36px;
  font-size: 1.15rem;
  border-radius: var(--radius-lg);
}

.btn--sm {
  padding: 6px 14px;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
}

.btn--full { width: 100%; }

.btn-arrow {
  transition: transform 0.25s ease;
}

.btn:hover .btn-arrow {
  transform: translateX(4px);
}

.link-btn {
  background: none;
  border: none;
  color: var(--gold-soft);
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
  font-size: 0.95rem;
  font-family: inherit;
  transition: color 0.2s ease;
}

.link-btn:hover { color: #fff; }
.link-btn--subtle { color: var(--ink-muted); text-decoration: none; }
.link-btn--subtle:hover { color: #fff; text-decoration: underline; }
.link-btn--danger { color: #ff6b6b; }
.link-btn--success { color: #52b788; }

/* Floating Audio Control Pill */
.floating-controls {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 999;
}

.control-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(10, 32, 22, 0.85);
  border: var(--glass-border-gold);
  backdrop-filter: blur(14px);
  border-radius: 999px;
  color: var(--ink-secondary);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: all 0.25s ease;
}

.control-pill:hover {
  background: rgba(18, 55, 38, 0.95);
  transform: translateY(-2px);
  color: #fff;
}

.control-pill--active {
  background: rgba(212, 175, 55, 0.2);
  border-color: var(--gold-bright);
  color: var(--gold-soft);
}

/* --------------------------------------------------------------------------
   How It Works & Feature Steps (Landing Page)
   -------------------------------------------------------------------------- */
.section {
  padding: 80px 0;
  position: relative;
  z-index: 20;
}

.section-header {
  margin-bottom: 56px;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  color: #fff;
  margin: 12px 0;
}

.section-lead {
  font-size: 1.15rem;
  color: var(--ink-muted);
  max-width: 620px;
  margin: 0 auto;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin-bottom: 56px;
}

.step-card {
  background: var(--bg-card);
  border: var(--glass-border);
  backdrop-filter: blur(16px);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  box-shadow: var(--shadow-md);
  position: relative;
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  overflow: hidden;
}

.step-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(212, 175, 55, 0.4);
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg), var(--shadow-glow-gold);
}

.step-card__icon-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.step-card__badge {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--gold-soft);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(212, 175, 55, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-card__icon {
  font-size: 2.2rem;
}

.step-card__title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
}

.step-card__text {
  font-size: 0.95rem;
  color: var(--ink-muted);
  line-height: 1.6;
}

/* Festive Callout Banner Box */
.festive-banner-box {
  background: linear-gradient(135deg, rgba(196, 30, 58, 0.3) 0%, rgba(14, 40, 27, 0.8) 100%);
  border: var(--glass-border-gold);
  backdrop-filter: blur(16px);
  border-radius: var(--radius-xl);
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  box-shadow: var(--shadow-lg);
}

.festive-banner-box__badge {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin-bottom: 8px;
}

.festive-banner-box h3 {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  color: #fff;
  margin-bottom: 8px;
}

.festive-banner-box p {
  color: var(--ink-secondary);
  max-width: 600px;
}

/* --------------------------------------------------------------------------
   Cards & Content Surfaces
   -------------------------------------------------------------------------- */
.card {
  background: var(--bg-card);
  border: var(--glass-border);
  backdrop-filter: blur(16px);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-md), inset 0 1px 0 rgba(255, 255, 255, 0.07);
  position: relative;
}

.card--festive {
  background: linear-gradient(180deg, rgba(18, 48, 33, 0.88) 0%, rgba(10, 30, 20, 0.92) 100%);
  border: var(--glass-border-gold);
  box-shadow: var(--shadow-lg), var(--shadow-glow-gold), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.card.center { text-align: center; }

.card-title {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 8px;
}

.badge + .card-title {
  margin-top: 10px;
}

.lead {
  font-size: 1.08rem;
  color: var(--ink-secondary);
  line-height: 1.6;
}

.card--festive .lead,
.wizard-step .lead {
  margin-bottom: 16px;
}

.muted { color: var(--ink-muted); }
.small { font-size: 0.88rem; }
.text-center { text-align: center; }
.text-left { text-align: left; }
.font-bold { font-weight: 700; }

.eyebrow {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-soft);
  display: block;
  margin-bottom: 8px;
}

.eyebrow--gold {
  color: var(--gold-bright);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.badge--gold {
  background: rgba(212, 175, 55, 0.2);
  color: var(--gold-soft);
  border: 1px solid rgba(212, 175, 55, 0.4);
}

.badge--success {
  background: rgba(46, 196, 182, 0.2);
  color: #52b788;
  border: 1px solid rgba(46, 196, 182, 0.4);
}

.badge--warn {
  background: rgba(255, 159, 28, 0.2);
  color: #ff9f1c;
  border: 1px solid rgba(255, 159, 28, 0.4);
}

.badge--muted {
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink-muted);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.festive-mascot {
  font-size: 3.2rem;
  margin: 0 auto 10px;
  display: block;
  width: fit-content;
  animation: mascot-float 3s infinite ease-in-out;
}

@keyframes mascot-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* --------------------------------------------------------------------------
   Dashboard & App Topbar
   -------------------------------------------------------------------------- */
.app-topbar {
  background: rgba(10, 32, 22, 0.82);
  border: var(--glass-border);
  backdrop-filter: blur(16px);
  border-radius: var(--radius-lg);
  padding: 14px 24px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}

.app-topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.user-badge {
  display: flex;
  align-items: center;
  gap: 14px;
}

.user-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--red-ruby) 0%, var(--gold-metallic) 100%);
  color: #fff;
  font-size: 1.2rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(196, 30, 58, 0.4);
}

.user-info {
  display: flex;
  flex-direction: column;
}

.user-greeting {
  font-size: 1.05rem;
  color: #fff;
}

.user-dept {
  font-size: 0.82rem;
  color: var(--ink-muted);
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.event-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.event-pill--open {
  background: rgba(46, 196, 182, 0.18);
  border: 1px solid rgba(46, 196, 182, 0.4);
  color: #52b788;
}

.event-pill--closed {
  background: rgba(255, 159, 28, 0.18);
  border: 1px solid rgba(255, 159, 28, 0.4);
  color: #ff9f1c;
}

.event-pill--draft {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--ink-muted);
}

.event-pill__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

/* --------------------------------------------------------------------------
   Interactive 3D Gamified Card Deck (Pick Flow)
   -------------------------------------------------------------------------- */
.card--deck-header {
  padding: 28px 32px;
}

.deck-header-content {
  margin-bottom: 24px;
}

.pick-stats-bar {
  background: rgba(6, 20, 14, 0.6);
  border: var(--glass-border);
  border-radius: var(--radius-md);
  padding: 16px 20px;
}

.pick-stats-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 0.88rem;
  font-weight: 600;
}

.pick-stats-val {
  color: var(--gold-soft);
  font-weight: 800;
}

.progress-track {
  width: 100%;
  height: 10px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 10px;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--red-ruby) 0%, var(--gold-bright) 100%);
  border-radius: 999px;
  transition: width 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.pick-counters {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--ink-muted);
}

.pick-counters strong { color: #fff; }

/* The Grid */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 16px;
  margin: 32px 0;
  perspective: 1200px;
}

.card-form {
  margin: 0;
  padding: 0;
  width: 100%;
  display: flex;
}

/* Individual Pick Card */
.pick-card {
  position: relative;
  aspect-ratio: 3 / 4.2;
  width: 100%;
  border-radius: var(--radius-md);
  border: none;
  padding: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.2s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.2s ease;
  user-select: none;
}

/* Available Card: Rich Red Velvet with Gold Ribbons */
.pick-card--available {
  background: radial-gradient(circle at 50% 20%, #e63946 0%, #a61a29 70%, #680d19 100%);
  border: 1px solid rgba(255, 215, 0, 0.4);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.pick-card--available:hover {
  box-shadow: 0 16px 36px rgba(230, 57, 70, 0.5), 0 0 25px rgba(255, 215, 0, 0.4);
}

.card-ribbon {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 18px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, #d4af37 0%, #ffd700 50%, #b8972e 100%);
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.3);
  pointer-events: none;
}

.card-ribbon::after {
  content: '';
  position: absolute;
  top: 50%;
  left: -200%;
  right: -200%;
  height: 18px;
  transform: translateY(-50%);
  background: linear-gradient(180deg, #d4af37 0%, #ffd700 50%, #b8972e 100%);
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.3);
}

.card-bow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 2.2rem;
  z-index: 5;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.5));
  transition: transform 0.2s ease;
}

.pick-card--available:hover .card-bow {
  transform: translate(-50%, -50%) scale(1.15) rotate(6deg);
}

.card-inner {
  position: relative;
  z-index: 6;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  width: 100%;
}

.card-number {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--gold-soft);
  background: rgba(0, 0, 0, 0.35);
  padding: 2px 8px;
  border-radius: 999px;
}

.card-icon--gift {
  font-size: 2rem;
  opacity: 0; /* Hidden underneath ribbon until hover */
  transition: opacity 0.2s ease;
}

.card-label {
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(0, 0, 0, 0.4);
  padding: 3px 8px;
  border-radius: 6px;
  backdrop-filter: blur(4px);
}

/* Taken Card: Muted Silver / Slate Claimed State */
.pick-card--taken {
  background: linear-gradient(135deg, #2a3439 0%, #1c2428 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.5);
  cursor: not-allowed;
  opacity: 0.65;
}

.card-ribbon--taken {
  background: rgba(255, 255, 255, 0.08);
  box-shadow: none;
}
.card-ribbon--taken::after {
  background: rgba(255, 255, 255, 0.08);
  box-shadow: none;
}

.card-stamp {
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  color: #94a3b8;
  border: 1.5px dashed #94a3b8;
  padding: 2px 8px;
  border-radius: 4px;
  transform: rotate(-12deg);
}

.card-icon {
  font-size: 1.6rem;
  color: #64748b;
}

/* --------------------------------------------------------------------------
   Confirmation Modal Dialog
   -------------------------------------------------------------------------- */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(2, 10, 6, 0.82);
  backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  overflow-y: auto;
}

.modal--active {
  opacity: 1;
  pointer-events: auto;
}

/* Any open modal is a fixed-position overlay, but that alone doesn't stop
   the page underneath from scrolling -- without this, scrolling down while
   a modal is open reveals the footer poking out from behind it. */
body:has(.modal--active) {
  overflow: hidden;
}

.modal__dialog {
  background: linear-gradient(180deg, #133a25 0%, #0c2518 100%);
  border: var(--glass-border-gold);
  border-radius: var(--radius-xl);
  padding: 36px 32px;
  max-width: 500px;
  width: 100%;
  margin: auto;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  text-align: center;
  box-shadow: var(--shadow-lg), var(--shadow-glow-gold);
  transform: scale(0.92) translateY(20px);
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.modal--active .modal__dialog {
  transform: scale(1) translateY(0);
}

.modal__mascot {
  font-size: 3.5rem;
  display: block;
  margin-bottom: 12px;
}

.modal__title {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  color: #fff;
  margin-bottom: 12px;
}

.modal__body p {
  color: var(--ink-secondary);
  font-size: 1.05rem;
  line-height: 1.6;
  margin-bottom: 20px;
}

.modal__pledge {
  background: rgba(212, 175, 55, 0.15);
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: var(--radius-md);
  padding: 12px 18px;
  color: var(--gold-soft);
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 28px;
}

.modal__footer {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* --------------------------------------------------------------------------
   Assignment Revealed State (Grand Holiday Certificate)
   -------------------------------------------------------------------------- */
.assignment-card {
  background: linear-gradient(180deg, #153825 0%, #0d2719 100%);
  border: 2px solid var(--gold-metallic);
  border-radius: var(--radius-xl);
  padding: 48px 36px;
  max-width: 740px;
  margin: 0 auto 40px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6), 0 0 35px rgba(212, 175, 55, 0.3);
  position: relative;
  text-align: center;
  overflow: hidden;
}

.assignment-card__ribbon-top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--red-ruby) 0%, var(--gold-bright) 50%, var(--red-ruby) 100%);
}

.wax-seal {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #e63946 0%, #991620 70%, #680d19 100%);
  border: 3px solid var(--gold-metallic);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4), inset 0 2px 4px rgba(255, 255, 255, 0.4);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.wax-seal__emblem { font-size: 2.2rem; }

.assignment-card__title {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--ink-secondary);
  margin-bottom: 24px;
}

.giftee-box {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(212, 175, 55, 0.4);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  margin-bottom: 32px;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.5);
}

.giftee-name {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 900;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  line-height: 1.2;
  text-shadow: 0 0 20px rgba(255, 215, 0, 0.45);
}

.sparkle-spark {
  color: var(--gold-bright);
  font-size: 1.8rem;
  animation: sparkle-spin 3s infinite linear;
}

@keyframes sparkle-spin {
  0% { transform: scale(0.9) rotate(0deg); opacity: 0.7; }
  50% { transform: scale(1.2) rotate(180deg); opacity: 1; }
  100% { transform: scale(0.9) rotate(360deg); opacity: 0.7; }
}

.assignment-instructions {
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: left;
  margin-bottom: 32px;
}

.assignment-instructions h3 {
  font-size: 1.1rem;
  color: #fff;
  margin-bottom: 12px;
}

.instructions-list {
  padding-left: 20px;
  color: var(--ink-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* Completed Stamp */
.completed-banner {
  background: rgba(46, 196, 182, 0.15);
  border: 1px solid rgba(46, 196, 182, 0.4);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-bottom: 24px;
}

.completed-stamp {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-sans);
  font-size: 1.25rem;
  font-weight: 800;
  color: #52b788;
  margin-bottom: 10px;
}

.completed-msg {
  font-size: 1.05rem;
  color: #fff;
  margin-bottom: 6px;
}

.completed-subtext {
  font-size: 0.9rem;
  color: var(--ink-muted);
}

/* --------------------------------------------------------------------------
   Admin Console Navigation & Layout
   -------------------------------------------------------------------------- */
.admin-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  background: rgba(10, 32, 22, 0.9);
  border: var(--glass-border-gold);
  backdrop-filter: blur(16px);
  border-radius: var(--radius-lg);
  padding: 12px 20px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}

.admin-nav__brand {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.admin-nav__logo { font-size: 1.5rem; }
.admin-nav__title {
  font-weight: 800;
  font-size: 1.1rem;
  color: #fff;
}

/* Desktop: the panel is just a grouping wrapper around links + the log-out
   button for the stacked mobile layout below -- display: contents removes
   it from the box tree so .admin-nav__links and .admin-nav__right act as
   direct flex items of .admin-nav, same as if there were no wrapper at all. */
.admin-nav__panel {
  display: contents;
}

.admin-nav__links {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.admin-nav__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  color: var(--ink-secondary);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.admin-nav__link:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.admin-nav__link--active {
  background: rgba(212, 175, 55, 0.2);
  color: var(--gold-soft);
  border: 1px solid rgba(212, 175, 55, 0.4);
}

.admin-nav__right {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Stat Grid */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}

.stat-card {
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.stat-card__icon {
  font-size: 2rem;
  margin-bottom: 12px;
}

.stat-value {
  display: block;
  font-size: 2.2rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
}

.stat-value__denom {
  font-size: 1.2rem;
  color: var(--ink-muted);
  font-weight: 500;
}

.stat-label {
  font-size: 0.88rem;
  color: var(--ink-muted);
  margin-top: 4px;
  display: block;
}

.stat-card__bar {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  overflow: hidden;
  margin-top: 14px;
}

.stat-card__bar-fill {
  height: 100%;
  background: var(--red-ruby);
  border-radius: 999px;
}

.stat-card__bar--gold .stat-card__bar-fill {
  background: var(--gold-metallic);
}

.status-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 1.2rem;
  font-weight: 800;
}

.status-badge--open { color: #52b788; }
.status-badge--closed { color: #ff9f1c; }
.status-badge--draft { color: var(--ink-muted); }

/* Tables */
.card-header-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 20px;
}

.table-container {
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: var(--glass-border);
}

.table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.95rem;
}

.table th {
  background: rgba(6, 20, 14, 0.7);
  color: var(--gold-soft);
  font-weight: 700;
  padding: 14px 18px;
  border-bottom: var(--glass-border);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 0.8rem;
}

.table td {
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--ink-secondary);
}

.table tbody tr:hover {
  background: rgba(255, 255, 255, 0.04);
}

.table--privacy-blurred .sensitive-data {
  filter: blur(6px);
  user-select: none;
  transition: filter 0.25s ease;
}

.table--privacy-blurred .sensitive-data:hover {
  filter: blur(0);
}

.table-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.table-actions-top {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* Lays sibling <form>s (each a block-level element) out side by side --
   e.g. the draw lifecycle buttons on the organizer overview -- and wraps
   them onto their own rows once the row can't fit on a narrow screen. */
.button-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* Forms */
.form-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* A .form-stack that should lay its field and button out side by side on
   desktop (e.g. an inline "send to" + submit) still needs to stack on
   narrow screens, where a row just squeezes the input down to a few
   visible characters. */
.inline-form {
  flex-direction: row;
  align-items: flex-end;
  gap: 10px;
}

.inline-form__field {
  flex: 1;
  margin-bottom: 0;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink-secondary);
}

.form-input {
  width: 100%;
  min-height: 44px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(6, 20, 14, 0.7);
  color: #fff;
  font-family: inherit;
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

.form-input::placeholder {
  color: rgba(148, 163, 184, 0.55);
}

.form-input:hover:not(:focus) {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(6, 20, 14, 0.82);
}

.form-input:focus {
  outline: none;
  border-color: var(--gold-metallic);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.25);
  background: rgba(6, 20, 14, 0.92);
}

.form-input--search {
  min-width: 260px;
  padding: 8px 14px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: 24px;
}

/* Grid items default to min-width: auto, which respects a child's
   intrinsic content width (e.g. an unwrapped <pre> line) and can force
   the whole grid wider than the viewport even though that child has its
   own overflow-x: auto. min-width: 0 lets the track actually shrink so
   the inner scrollbar, not the page, is what ends up scrolling. */
.grid-2 > * {
  min-width: 0;
}

/* --------------------------------------------------------------------------
   Organizer Signup Wizard
   -------------------------------------------------------------------------- */
.card--wizard {
  max-width: 640px;
  margin: 0 auto;
  text-align: left;
}

.wizard-steps {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.wizard-step {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.wizard-step[hidden] {
  display: none !important;
}

.wizard-steps__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex: 1;
  max-width: 120px;
}

.wizard-steps__num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--ink-muted);
  transition: all 0.2s ease;
}

.wizard-steps__label {
  font-size: 0.72rem;
  color: var(--ink-muted);
  text-align: center;
}

.wizard-steps__item--active .wizard-steps__num {
  background: rgba(212, 175, 55, 0.22);
  border-color: var(--gold-metallic);
  color: var(--gold-bright);
}

.wizard-steps__item--active .wizard-steps__label {
  color: #fff;
  font-weight: 600;
}

.wizard-steps__item--done .wizard-steps__num {
  background: rgba(46, 196, 182, 0.18);
  border-color: rgba(46, 196, 182, 0.45);
  color: #52b788;
}

.wizard-textarea {
  min-height: 160px;
  resize: vertical;
  font-family: 'Courier New', ui-monospace, monospace;
  font-size: 0.88rem;
  line-height: 1.6;
}

.wizard-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.wizard-actions__right {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.wizard-review {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin-bottom: 8px;
}

.wizard-review__row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.92rem;
}

.wizard-review__row dt {
  color: var(--ink-muted);
}

.wizard-review__row dd {
  color: #fff;
  font-weight: 600;
  text-align: right;
  word-break: break-word;
}

@media (max-width: 480px) {
  .wizard-steps { gap: 4px; margin-bottom: 22px; padding-bottom: 16px; }
  .wizard-steps__label { font-size: 0.68rem; }
  .wizard-steps__item { max-width: none; }
  .wizard-actions { flex-direction: column-reverse; align-items: stretch; gap: 12px; }
  .wizard-actions__right { flex-direction: column-reverse; align-items: stretch; gap: 12px; }
  .wizard-actions .btn, .wizard-actions__right .btn { width: 100%; }
  .wizard-review__row { flex-direction: column; gap: 2px; }
  .wizard-review__row dd { text-align: left; }
}

code {
  font-family: 'Courier New', ui-monospace, monospace;
  background: rgba(255, 255, 255, 0.08);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.88em;
  color: var(--gold-soft);
}

/* CSV format preview (Batch Import Participants) */
.csv-format-preview {
  margin-top: 12px;
}

.csv-format-preview__label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 6px;
}

.code-block {
  margin: 0;
  padding: 14px 16px;
  background: rgba(6, 20, 14, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  overflow-x: auto;
}

.code-block code {
  background: none;
  padding: 0;
  font-size: 0.85rem;
  white-space: pre;
  line-height: 1.6;
}

/* Danger Zone */
.danger-zone {
  border: 2px solid #8b1325;
  background: rgba(139, 19, 37, 0.15);
}

.danger-zone__header {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 20px;
}

.danger-zone__icon { font-size: 2.2rem; }
.danger-zone h2 { color: #ff6b6b; font-size: 1.4rem; margin-bottom: 4px; }
.danger-zone__input-row {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 8px;
}

/* Alerts */
.alert {
  padding: 14px 18px;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.alert--error {
  background: rgba(196, 30, 58, 0.25);
  border: 1px solid rgba(196, 30, 58, 0.5);
  color: #ff858d;
}

.alert--success {
  background: rgba(46, 196, 182, 0.2);
  border: 1px solid rgba(46, 196, 182, 0.4);
  color: #72efdd;
}

.alert--warn {
  background: rgba(255, 159, 28, 0.2);
  border: 1px solid rgba(255, 159, 28, 0.4);
  color: #ffd166;
}

.alert--info {
  background: rgba(58, 134, 255, 0.2);
  border: 1px solid rgba(58, 134, 255, 0.4);
  color: #90e0ef;
}

.info-callout {
  background: rgba(255, 255, 255, 0.05);
  border-left: 3px solid var(--gold-metallic);
  padding: 12px 18px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.92rem;
}

/* --------------------------------------------------------------------------
   Site Footer
   -------------------------------------------------------------------------- */
/* Must stay below .page's z-index -- see note there. */
.site-footer {
  position: relative;
  z-index: 20;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 36px 20px 48px;
  text-align: center;
  margin-top: 60px;
}

.site-footer__inner {
  max-width: 600px;
  margin: 0 auto;
}

.site-footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.1rem;
  color: #fff;
  margin-bottom: 8px;
}

.site-footer__tag {
  font-size: 0.8rem;
  color: var(--gold-soft);
  background: rgba(212, 175, 55, 0.15);
  padding: 2px 8px;
  border-radius: 999px;
}

.site-footer__copy {
  font-size: 0.88rem;
  color: var(--ink-muted);
}

.site-footer__powered-by {
  margin-top: 6px;
  font-size: 0.78rem;
  color: var(--ink-muted);
  opacity: 0.75;
}

.site-footer__powered-by a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.3);
}

.site-footer__powered-by a:hover {
  color: var(--gold-soft);
}

/* --------------------------------------------------------------------------
   Animations & Responsive Breakpoints
   -------------------------------------------------------------------------- */
.fade-in {
  animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1024px) {
  .page { padding: 28px 16px 70px; }
  .hero-nav { padding: 20px 24px; }
  .steps-grid, .stat-grid { gap: 18px; }
  .hero-grid { gap: 32px; }
}

@media (max-width: 900px) {
  .hero-grid,
  .hero-grid--open {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 32px;
  }
  .hero-banner--3d {
    min-height: auto;
    height: auto;
    padding-bottom: 32px;
  }
  .hero-grid__copy .hero-subtitle { margin: 0 auto 24px; }
  .hero-cta-group { justify-content: center; }
  .role-grid { grid-template-columns: 1fr; }
}

/* .admin-nav needs roughly 1200px to fit the brand, all seven links, and
   Log Out on one row without wrapping -- below that but still above the
   phone breakpoint, the browser's default wrap just drops Log Out onto its
   own orphaned line at the left edge. Giving the nav its own wider
   breakpoint (rather than sharing the 768px one below, which is tuned for
   phone-specific rules like the hero and tables) switches it to the same
   stacked layout used on phones before that awkward in-between state shows. */
@media (max-width: 1180px) {
  /* flex-basis: 100% forces the links/log-out group onto its own line below
     .admin-nav__brand (the standard trick for "wrap this one item alone"),
     switching it from the desktop's display: contents pass-through to a
     real stacked block. The links themselves keep their base row+wrap
     behavior (just centered) so they fall into centered, evenly-spaced
     rows of pills instead of one cramped horizontally-scrollable strip. */
  .admin-nav__panel {
    display: flex;
    flex-basis: 100%;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
  }
  .admin-nav__links { justify-content: center; }
  .admin-nav__right { justify-content: center; }
}

@media (max-width: 768px) {
  .section { padding: 56px 0; }
  .section-header { margin-bottom: 36px; }
  .hero-nav { padding: 14px 16px; }
  .hero-nav__inner { flex-wrap: wrap; justify-content: center; row-gap: 10px; }
  .hero-nav__actions { flex-wrap: wrap; justify-content: center; gap: 8px; }
  .nav-link { padding: 8px 12px; font-size: 0.88rem; }
  .hero-title { font-size: clamp(1.95rem, 7vw, 2.4rem); }
  /* The chapter pills are fiddly to tap on a phone and crowd the hero on a
     short viewport -- the 3D scene still auto-advances through its chapters
     on its own timer (see startAutoSlide() in hero-3d.js), so dropping the
     manual nav here doesn't break anything, just declutters mobile. */
  .story-hud { display: none; }
  .site-footer__tag { display: none; }
  .festive-banner-box { flex-direction: column; text-align: center; padding: 24px 20px; }
  .festive-banner-box__action { justify-content: center; width: 100%; }
  .card-grid { grid-template-columns: repeat(auto-fill, minmax(105px, 1fr)); gap: 10px; }
  .hero-scroll-indicator { display: none; }

  /* Long CTA button text must wrap instead of forcing overflow */
  .hero-btn { white-space: normal; text-align: center; }
  .hero-btn .btn-text { white-space: normal; }

  .grid-2 { grid-template-columns: 1fr; }
  .giftee-name { flex-wrap: wrap; gap: 10px; }
  .modal__dialog { padding: 28px 22px; }
  .assignment-card { padding: 36px 22px; }
  .giftee-box { padding: 24px 18px; }
  .table { font-size: 0.85rem; }
  .table th, .table td { padding: 10px 12px; }
  .form-input--search { min-width: 0; width: 100%; }
  .danger-zone__input-row .form-input { width: 100%; }
  .inline-form { flex-direction: column; align-items: stretch; }
  .inline-form .btn { width: 100%; }

  /* Every data table here is wider than a phone screen. table-container
     already scrolls horizontally, but nothing on screen hints that there's
     more to the right -- columns (including action buttons) just end at
     the edge, which reads as "that's all there is" rather than "swipe".
     One caption above the scroll area, shared by every table via this one
     class, fixes that without touching each view that uses a table. */
  .table-container::before {
    content: "\2194  Swipe sideways to see more columns";
    display: block;
    font-size: 0.72rem;
    color: var(--ink-muted);
    text-align: right;
    padding: 6px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }
}

@media (max-width: 480px) {
  .page { padding: 20px 14px 56px; }
  .container { padding: 0 16px; }
  .hero-banner { min-height: auto; height: auto; padding-bottom: 28px; }
  .hero-banner__content { padding: 12px 16px 18px; }
  .hero-cta-group { flex-direction: column; width: 100%; }
  .hero-cta-group .btn, .festive-banner-box__action .btn { width: 100%; }
  .floating-controls { bottom: 14px; left: 14px; }
  .control-pill { padding: 8px 12px; }
  .site-footer { padding-bottom: 72px; }
  .hero-eyebrow { font-size: 0.7rem; padding: 5px 12px; }
  .btn--large { padding: 13px 22px; font-size: 1rem; }
  .wax-seal { width: 56px; height: 56px; }
  .wax-seal__emblem { font-size: 1.8rem; }
  .assignment-card { padding: 28px 16px; }
  .card { padding: 22px; }
  .card-title { font-size: 1.6rem; }
  .stat-grid { grid-template-columns: 1fr; }
  .festive-banner-box { padding: 20px; }
  .step-card { padding: 24px 18px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  #snow-canvas { display: none !important; }
}

@media print {
  body { background: #fff !important; color: #000 !important; }
  #snow-canvas, .floating-controls, .site-footer {
    display: none !important;
  }
  .assignment-card {
    border: 2px solid #333 !important;
    background: #fff !important;
    color: #000 !important;
    box-shadow: none !important;
  }
  .giftee-name, .assignment-card__title, .completed-msg { color: #000 !important; }
}
