/* ═══════════════════════════════════════════════════════════════
   css/theme-easter.css — Easter overlay theme.
   Applied when <body class="theme-easter"> is set.
   Particles + video overlays are injected by js/themes.js.
   ═══════════════════════════════════════════════════════════════ */

/* ── Pastel header tint ──────────────────────────────────────── */
body.theme-easter .board-header {
  background: linear-gradient(
    135deg,
    var(--brand-bg) 0%,
    color-mix(in srgb, var(--brand-bg) 75%, #6b21a8) 40%,
    color-mix(in srgb, var(--brand-bg) 80%, #be185d) 70%,
    var(--brand-bg) 100%
  );
}

/* ── Soft glow on active bars ────────────────────────────────── */
body.theme-easter .session-bar:not(.ended) {
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.10);
}

/* ── Easter particle colours ─────────────────────────────────── */
body.theme-easter .theme-particle--easter {
  filter: drop-shadow(0 0 4px rgba(255, 200, 230, 0.5));
}

/* ── Settings page: pastel section highlights ────────────────── */
body.theme-easter.settings-page .settings-section h2 {
  color: #a855f7;
  opacity: 0.85;
}

/* ═══════════════════════════════════════════════════════════════
   VIDEO OVERLAY
   The <video> element is appended directly to <body> (above
   #theme-layer) so it sits above all content. It is sized to
   occupy roughly the lower-centre portion of the screen —
   "smart" positioning that keeps the session bars readable.
   ═══════════════════════════════════════════════════════════════ */

.easter-video-overlay {
  position: fixed;

  /* Anchor to bottom-centre — Easter animations (bunnies, eggs,
     confetti) typically enter/exit from the bottom of frame */
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);

  /* Scale the full-screen source down to ~45% of viewport width
     while preserving aspect ratio. max-height prevents it
     overflowing on portrait/square screens. */
  width: 45vw;
  max-height: 65vh;
  object-fit: contain;

  /* Crop black edges baked into the WebM frame.
     Increase the % value if more border is visible. */
  clip-path: inset(3%);

  z-index: 600;          /* above theme-layer (500) but below corner-zone (999) */
  pointer-events: none;

  /* Fade in/out */
  animation: easterVideoIn 0.6s ease forwards;
}

.easter-video-overlay.easter-video-out {
  animation: easterVideoOut 0.6s ease forwards;
}

@keyframes easterVideoIn {
  from { opacity: 0; transform: translateX(-50%) translateY(12px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0);    }
}

@keyframes easterVideoOut {
  from { opacity: 1; transform: translateX(-50%) translateY(0);    }
  to   { opacity: 0; transform: translateX(-50%) translateY(12px); }
}

/* Easter particles reuse the smooth particleFall from core.css — no override needed */
