/* 🎂 Película de cumpleaños — fullscreen overlay (js/modules/birthday.js) */

:root {
  --bd-night: #140a1d;
  --bd-plum: #2a1638;
  --bd-lav: #c9a7ff;
  --bd-rose: #ffb3d1;
  --bd-gold: #ffd98a;
  --bd-cream: #fff6ea;
  --bd-serif: "Cormorant Garamond", "Georgia", serif;
  --bd-hand: "Pacifico", "Brush Script MT", cursive;
  --bd-ui: "Quicksand", system-ui, sans-serif;
}

html.bd-lock,
html.bd-lock body {
  overflow: hidden !important;
}

/* Header entry point */
.header-btn--birthday {
  background: linear-gradient(135deg, #ffe3f0, #efe2ff) !important;
  border-color: rgba(201, 167, 255, 0.7) !important;
}
.header-btn--birthday .btn-icon {
  animation: bd-wiggle 2.8s ease-in-out infinite;
  display: inline-block;
}
@keyframes bd-wiggle {
  0%, 80%, 100% { transform: rotate(0); }
  85% { transform: rotate(-12deg); }
  90% { transform: rotate(10deg); }
  95% { transform: rotate(-6deg); }
}

.bd-overlay {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: radial-gradient(120% 90% at 50% 40%, var(--bd-plum) 0%, var(--bd-night) 70%);
  color: var(--bd-cream);
  font-family: var(--bd-ui);
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.bd-overlay.is-idle {
  cursor: none;
}
.bd-overlay .hidden {
  display: none !important;
}

.bd-bokeh,
.bd-confetti {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.bd-confetti {
  z-index: 50;
}

.bd-stage {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.bd-scene {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

/* Photo layers */
.bd-layer {
  position: absolute;
  inset: 0;
}
.bd-bg {
  position: absolute;
  inset: -8%;
  width: 116%;
  height: 116%;
  object-fit: cover;
  filter: blur(34px) saturate(1.15) brightness(0.52);
  transform: translateZ(0);
}
.bd-bg--soft {
  filter: blur(40px) saturate(1.1) brightness(0.42);
}
.bd-frame {
  position: absolute;
  left: 50%;
  top: 50%;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.08);
  will-change: transform;
  transform: translate(-50%, -50%);
}
.bd-frame.is-cover {
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  border-radius: 0;
  box-shadow: none;
}
.bd-fg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0;
  transition: opacity 0.5s ease;
}
.is-loaded > .bd-frame .bd-fg {
  opacity: 1;
}

.bd-vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at center, rgba(20, 10, 29, 0) 35%, rgba(20, 10, 29, 0.55) 100%),
    linear-gradient(to top, rgba(20, 10, 29, 0.7) 0%, rgba(20, 10, 29, 0) 38%);
}
.bd-veil {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(20, 10, 29, 0.45), rgba(20, 10, 29, 0.78));
}

/* Day counter pill */
.bd-day {
  position: absolute;
  right: max(18px, 2.4vmin);
  bottom: max(18px, 2.4vmin);
  display: flex;
  align-items: baseline;
  gap: 0.6em;
  padding: 0.45em 1em;
  border-radius: 999px;
  background: rgba(20, 10, 29, 0.42);
  border: 1px solid rgba(255, 246, 234, 0.18);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  font-size: clamp(12px, 1.9vmin, 22px);
  z-index: 5;
}
.bd-day-n {
  font-family: var(--bd-hand);
  color: var(--bd-gold);
  font-size: 1.15em;
}
.bd-day-d {
  opacity: 0.8;
  font-weight: 600;
  letter-spacing: 0.04em;
}

/* Chapter card */
.bd-chapter {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 4;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.55), 0 1px 3px rgba(0, 0, 0, 0.5);
  width: min(92vw, 1100px);
}
.bd-ch-big {
  font-family: var(--bd-hand);
  font-size: clamp(90px, 26vmin, 300px);
  line-height: 1;
  color: var(--bd-cream);
  background: linear-gradient(120deg, #fff6ea 20%, #ffd98a 50%, #ffb3d1 80%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 6px 30px rgba(0, 0, 0, 0.45));
  text-shadow: none;
}
.bd-ch-unit {
  font-family: var(--bd-hand);
  font-size: clamp(26px, 6vmin, 70px);
  margin-top: -0.2em;
}
.bd-ch-cap {
  font-family: var(--bd-serif);
  font-style: italic;
  font-size: clamp(22px, 5vmin, 60px);
  margin-top: 0.35em;
  font-weight: 500;
}
.bd-ch-sub {
  font-size: clamp(12px, 2vmin, 22px);
  letter-spacing: 0.35em;
  text-transform: uppercase;
  font-weight: 600;
  margin-top: 1.1em;
  opacity: 0.85;
}

/* Chapter over a milestone blanket photo: low band so the wreath/number stays visible */
.bd-chapter--low {
  top: auto;
  bottom: 5vh;
  transform: translateX(-50%);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  column-gap: 0.35em;
  padding: 1.2vh 3vw 1.6vh;
  border-radius: 28px;
  background: radial-gradient(closest-side, rgba(20, 10, 29, 0.7) 0%, rgba(20, 10, 29, 0.45) 55%, rgba(20, 10, 29, 0) 100%);
}
.bd-chapter--low .bd-ch-big {
  font-size: clamp(56px, 13vmin, 150px);
}
.bd-chapter--low .bd-ch-unit {
  font-size: clamp(24px, 5vmin, 58px);
  margin-top: 0;
}
.bd-chapter--low .bd-ch-cap,
.bd-chapter--low .bd-ch-sub {
  flex-basis: 100%;
  margin-top: 0.15em;
}
.bd-chapter--low .bd-ch-sub {
  margin-top: 0.6em;
}

/* Captions */
.bd-caption {
  position: absolute;
  left: 50%;
  bottom: 9vh;
  transform: translateX(-50%);
  width: min(90vw, 1200px);
  text-align: center;
  font-family: var(--bd-serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(24px, 5.2vmin, 64px);
  line-height: 1.2;
  z-index: 4;
  text-shadow: 0 3px 24px rgba(0, 0, 0, 0.7), 0 1px 2px rgba(0, 0, 0, 0.6);
}
.bd-caption--big {
  bottom: 12vh;
  font-size: clamp(28px, 6.4vmin, 78px);
}
.bd-w {
  display: inline-block;
  opacity: 0;
}

/* Tribute */
.bd-tribute {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(90vw, 1100px);
  text-align: center;
  z-index: 4;
  text-shadow: 0 3px 26px rgba(0, 0, 0, 0.7);
}
.bd-tr-line {
  font-family: var(--bd-serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(26px, 5.8vmin, 70px);
  line-height: 1.25;
  opacity: 0;
}
.bd-tr-head {
  font-family: var(--bd-hand);
  font-style: normal;
  color: var(--bd-rose);
  font-size: clamp(34px, 8vmin, 96px);
  margin-bottom: 0.2em;
}

/* Text scenes */
.bd-scene--text {
  display: flex;
  align-items: center;
  justify-content: center;
}
.bd-textbox {
  text-align: center;
  width: min(90vw, 1200px);
}
.bd-text-line {
  font-family: var(--bd-serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(30px, 6.6vmin, 84px);
  line-height: 1.25;
  opacity: 0;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}
.bd-text-lead {
  color: var(--bd-rose);
}
.bd-sign {
  font-family: var(--bd-hand);
  color: var(--bd-gold);
  font-size: clamp(24px, 4.6vmin, 56px);
  margin-top: 1em;
  opacity: 0;
}
.bd-hoy {
  font-family: var(--bd-serif);
  font-style: italic;
  font-size: clamp(44px, 11vmin, 150px);
  opacity: 0;
}

/* Title */
.bd-scene--title {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.bd-glow {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 90vmin;
  height: 90vmin;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 167, 255, 0.35) 0%, rgba(201, 167, 255, 0) 65%);
  pointer-events: none;
}
.bd-glow--rose {
  background: radial-gradient(circle, rgba(255, 150, 200, 0.28) 0%, rgba(255, 150, 200, 0) 65%);
}
.bd-glow--gold {
  width: 130vmin;
  height: 130vmin;
  background: radial-gradient(circle, rgba(255, 217, 138, 0.3) 0%, rgba(255, 179, 209, 0.12) 40%, rgba(255, 217, 138, 0) 70%);
}
.bd-title-name {
  font-family: var(--bd-hand);
  font-size: clamp(90px, 28vmin, 340px);
  line-height: 1.25;
  padding: 0 0.3em;
  background: linear-gradient(100deg, #fff6ea 0%, #ffd98a 25%, #ffb3d1 50%, #c9a7ff 75%, #fff6ea 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 8px 40px rgba(201, 167, 255, 0.45));
  position: relative;
}
.bd-title-date {
  font-size: clamp(14px, 2.6vmin, 30px);
  text-transform: uppercase;
  font-weight: 600;
  opacity: 0;
  margin-top: 0.4em;
}

/* Polaroids */
.bd-table {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(255, 246, 234, 0.08), rgba(20, 10, 29, 0.35));
}
.bd-pol {
  position: absolute;
  left: 0;
  top: 0;
  background: #fffaf2;
  padding: 3.2% 3.2% 0;
  border-radius: 4px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5), 0 2px 6px rgba(0, 0, 0, 0.25);
  will-change: transform;
  opacity: 0;
}
.bd-pol-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #eee4f7;
}
.bd-pol-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.bd-pol-cap {
  font-family: var(--bd-hand);
  color: #6b4a8a;
  text-align: center;
  padding: 0.35em 0 0.55em;
  font-size: clamp(12px, 2.3vmin, 28px);
  white-space: nowrap;
}

/* Duo */
.bd-duo-panel {
  position: absolute;
  overflow: hidden;
  width: 100%;
  height: 50%;
  border: 0.5vmin solid rgba(20, 10, 29, 0.9);
  box-sizing: border-box;
  will-change: transform;
}
.bd-duo-panel.is-row {
  width: 50%;
  height: 100%;
}
.bd-duo-panel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Prologue clips (no transforms on video: Chromium can freeze frames) */
.bd-clip {
  position: absolute;
  inset: 0;
  opacity: 0;
}
.bd-clip-poster,
.bd-clip-video {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.bd-clip-video {
  background: transparent;
}

/* Montage */
.bd-mont-slot {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.bd-mont-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  will-change: transform;
}
.bd-mont-img.is-contain {
  object-fit: contain;
  filter: drop-shadow(0 20px 50px rgba(0, 0, 0, 0.55));
}
.bd-flash {
  position: absolute;
  inset: 0;
  background: #fff6ea;
  opacity: 0;
  z-index: 3;
  pointer-events: none;
}
.bd-scene--montage .bd-day {
  z-index: 4;
}

/* Heart mosaic */
.bd-heart {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0;
  height: 0;
  will-change: transform;
}
.bd-tile {
  position: absolute;
  left: 0;
  top: 0;
  background-size: cover;
  background-position: center;
  border-radius: 18%;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  opacity: 0;
}
.bd-heart-text {
  position: absolute;
  left: 50%;
  top: 48%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 3;
  opacity: 0;
  padding: 0.3em 0.9em 0.45em;
  border-radius: 999px;
  background: radial-gradient(ellipse at center, rgba(20, 10, 29, 0.72), rgba(20, 10, 29, 0) 72%);
}
.bd-heart-big {
  font-family: var(--bd-hand);
  font-size: clamp(44px, 11vmin, 130px);
  line-height: 1.2;
  color: var(--bd-cream);
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.8);
}
.bd-heart-small {
  font-family: var(--bd-serif);
  font-style: italic;
  font-size: clamp(22px, 5vmin, 60px);
  text-shadow: 0 3px 20px rgba(0, 0, 0, 0.8);
}

/* Reveal */
.bd-one {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -54%);
  font-family: var(--bd-hand);
  font-size: 120vmin;
  line-height: 1;
  color: rgba(255, 217, 138, 0.07);
  pointer-events: none;
}
.bd-ring {
  --rot: 0deg;
  position: absolute;
  left: 50%;
  top: 47%;
  width: 40vmin;
  height: 40vmin;
  border-radius: 50%;
  padding: 1.1vmin;
  box-sizing: border-box;
  background: conic-gradient(from var(--rot), #ffd98a, #ffb3d1, #c9a7ff, #a7d8ff, #ffd98a);
  box-shadow: 0 0 60px rgba(255, 217, 138, 0.45), 0 0 140px rgba(255, 179, 209, 0.3);
  transform: translate(-50%, -50%) scale(0);
}
.bd-ring::after {
  content: "";
  position: absolute;
  inset: 1.1vmin;
  border-radius: 50%;
  box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.35);
  pointer-events: none;
  z-index: 3;
}
.bd-ring-img {
  position: absolute;
  inset: 1.1vmin;
  width: calc(100% - 2.2vmin);
  height: calc(100% - 2.2vmin);
  border-radius: 50%;
  object-fit: cover;
  background: var(--bd-plum);
}
.bd-rv-top {
  position: absolute;
  left: 0;
  right: 0;
  top: 7vh;
  text-align: center;
  font-weight: 700;
  font-size: clamp(24px, 5.4vmin, 66px);
  letter-spacing: 0.02em;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.5);
  opacity: 0;
}
.bd-rv-name {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 4vh;
  text-align: center;
  font-family: var(--bd-hand);
  font-size: clamp(64px, 17vmin, 210px);
  line-height: 1.3;
  background: linear-gradient(100deg, #ffd98a 0%, #fff6ea 20%, #ffb3d1 40%, #c9a7ff 60%, #ffd98a 80%, #fff6ea 100%);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 6px 30px rgba(255, 179, 209, 0.5));
  opacity: 0;
}
.bd-balloons {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.bd-balloon {
  position: absolute;
  left: -4vmin;
  top: 0;
  width: 8vmin;
  height: 10vmin;
  border-radius: 50% 50% 48% 48% / 55% 55% 45% 45%;
  background: radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.75) 0 6%, var(--c) 32%, color-mix(in srgb, var(--c) 70%, #000) 100%);
  opacity: 0.9;
}
.bd-balloon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 100%;
  width: 1px;
  height: 12vmin;
  background: rgba(255, 246, 234, 0.45);
}

/* Start screen */
.bd-start {
  position: absolute;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.bd-start.is-gone {
  opacity: 0;
  transform: scale(1.04);
  pointer-events: none;
}
.bd-start-card {
  text-align: center;
  max-width: 640px;
  width: 100%;
}
.bd-start-cake {
  font-size: clamp(56px, 12vmin, 110px);
  animation: bd-float 3.5s ease-in-out infinite;
}
@keyframes bd-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.bd-start-title {
  font-family: var(--bd-hand);
  font-size: clamp(38px, 8vmin, 84px);
  line-height: 1.3;
  background: linear-gradient(100deg, #fff6ea, #ffd98a, #ffb3d1, #c9a7ff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.bd-start-sub {
  font-family: var(--bd-serif);
  font-style: italic;
  font-size: clamp(18px, 3.2vmin, 28px);
  opacity: 0.9;
  margin: 0.4em 0 1.4em;
}
.bd-start-row {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 14px;
}
.bd-start-tip {
  margin-top: 22px;
  font-size: 14px;
  opacity: 0.7;
}
.bd-btn {
  font-family: var(--bd-ui);
  font-weight: 700;
  font-size: 15px;
  color: var(--bd-cream);
  background: rgba(255, 246, 234, 0.1);
  border: 1px solid rgba(255, 246, 234, 0.28);
  border-radius: 999px;
  padding: 12px 20px;
  min-height: 48px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}
.bd-btn:hover {
  background: rgba(255, 246, 234, 0.18);
}
.bd-btn.is-on {
  border-color: var(--bd-gold);
  color: var(--bd-gold);
}
.bd-btn--primary {
  color: #3b1f52;
  background: linear-gradient(135deg, #fff6ea, #ffd98a 45%, #ffb3d1);
  border: 0;
  box-shadow: 0 10px 40px rgba(255, 179, 209, 0.35);
}
.bd-btn--primary:hover {
  background: linear-gradient(135deg, #fffaf2, #ffe2a3 45%, #ffc2da);
}
.bd-btn--big {
  font-size: clamp(18px, 3vmin, 24px);
  padding: 16px 38px;
  min-height: 60px;
}
.bd-btn:disabled {
  opacity: 0.65;
  cursor: progress;
}
.bd-close {
  position: absolute;
  top: max(14px, env(safe-area-inset-top));
  right: 14px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 246, 234, 0.25);
  background: rgba(255, 246, 234, 0.08);
  color: var(--bd-cream);
  font-size: 18px;
  cursor: pointer;
}

.bd-close--live {
  display: none;
  z-index: 65;
}
.bd-overlay.is-live .bd-close--live {
  display: block;
}

/* HUD */
.bd-hud {
  position: absolute;
  left: 50%;
  bottom: max(16px, env(safe-area-inset-bottom));
  transform: translate(-50%, 20px);
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px 14px;
  border-radius: 20px;
  background: rgba(20, 10, 29, 0.6);
  border: 1px solid rgba(255, 246, 234, 0.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 70;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.bd-hud.is-on,
.bd-overlay.is-paused .bd-hud {
  opacity: 1;
  transform: translate(-50%, 0);
  pointer-events: auto;
}
.bd-hud-btn {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 0;
  background: transparent;
  color: var(--bd-cream);
  font-size: 20px;
  cursor: pointer;
}
.bd-hud-btn:hover {
  background: rgba(255, 246, 234, 0.12);
}
.bd-progress {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 6px;
  height: 3px;
  border-radius: 3px;
  background: rgba(255, 246, 234, 0.15);
  overflow: hidden;
}
.bd-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--bd-lav), var(--bd-rose), var(--bd-gold));
  transform-origin: left center;
  transform: scaleX(0);
}

/* Live wall */
.bd-live {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  z-index: 20;
  animation: bd-fade-in 1.2s ease both;
}
@keyframes bd-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
.bd-live-ghost {
  position: absolute;
  inset: -10%;
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 10px;
  opacity: 0.16;
  filter: saturate(0.9);
  transform: rotate(-6deg);
  animation: bd-ghost 90s linear infinite alternate;
  transition: opacity 1.5s ease;
  pointer-events: none;
}
.bd-live-ghost.is-dim {
  opacity: 0.06;
}
@keyframes bd-ghost {
  from { transform: rotate(-6deg) translateY(0); }
  to { transform: rotate(-6deg) translateY(-12%); }
}
.bd-ghost-tile {
  aspect-ratio: 1 / 1;
  background-size: cover;
  background-position: center;
  border-radius: 12px;
}
.bd-live-top {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: max(16px, env(safe-area-inset-top)) clamp(16px, 3vw, 40px) 10px;
  flex-wrap: wrap;
}
.bd-live-kicker {
  font-size: clamp(12px, 1.8vmin, 18px);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  font-weight: 700;
  opacity: 0.8;
}
.bd-live-title {
  font-family: var(--bd-hand);
  font-size: clamp(28px, 5.5vmin, 64px);
  line-height: 1.35;
  background: linear-gradient(100deg, #fff6ea, #ffd98a, #ffb3d1, #c9a7ff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.bd-live-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-right: 56px;
}
.bd-live-count {
  font-weight: 700;
  font-size: clamp(14px, 2vmin, 20px);
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(255, 246, 234, 0.1);
  border: 1px solid rgba(255, 246, 234, 0.2);
}
.bd-live-grid {
  position: relative;
  flex: 1;
  min-height: 0;
  display: grid;
  gap: 12px;
  justify-content: center;
  align-content: center;
  padding: 8px clamp(16px, 3vw, 40px);
}
.bd-live-tile {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.45);
  cursor: pointer;
  transform: scale(0.2) rotate(-8deg);
  opacity: 0;
  transition: transform 0.9s cubic-bezier(0.2, 1.6, 0.4, 1), opacity 0.6s ease;
}
.bd-live-tile.is-in {
  transform: scale(1) rotate(0);
  opacity: 1;
  animation: bd-breathe 7s ease-in-out infinite;
  animation-delay: var(--d, 0s);
}
.bd-live-tile.is-new.is-in {
  box-shadow: 0 0 0 3px var(--bd-gold), 0 0 40px rgba(255, 217, 138, 0.6);
  animation: bd-newglow 3s ease-out 1 forwards, bd-breathe 7s ease-in-out 3s infinite;
}
@keyframes bd-breathe {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.025); }
}
@keyframes bd-newglow {
  0% { box-shadow: 0 0 0 4px var(--bd-gold), 0 0 60px rgba(255, 217, 138, 0.9); }
  100% { box-shadow: 0 12px 34px rgba(0, 0, 0, 0.45); }
}
.bd-live-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.bd-live-badge {
  position: absolute;
  right: 8px;
  bottom: 8px;
  font-size: 14px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(255, 246, 234, 0.85);
}
.bd-live-empty {
  position: absolute;
  left: 50%;
  top: 52%;
  transform: translate(-50%, -50%);
  width: min(88vw, 720px);
  text-align: center;
  padding: clamp(24px, 5vmin, 56px);
  border-radius: 28px;
  background: rgba(20, 10, 29, 0.55);
  border: 1px solid rgba(255, 246, 234, 0.16);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.bd-live-empty-icon {
  font-size: clamp(44px, 9vmin, 90px);
  animation: bd-float 3s ease-in-out infinite;
}
.bd-live-empty-title {
  font-family: var(--bd-serif);
  font-style: italic;
  font-weight: 600;
  font-size: clamp(26px, 5vmin, 54px);
  margin-top: 0.2em;
}
.bd-live-empty-body {
  font-size: clamp(15px, 2.4vmin, 22px);
  opacity: 0.85;
  margin-top: 0.6em;
}
.bd-live-foot {
  position: relative;
  overflow: hidden;
  padding: 10px 0 max(12px, env(safe-area-inset-bottom));
  font-weight: 700;
  font-size: clamp(14px, 2.2vmin, 22px);
  color: var(--bd-gold);
  white-space: nowrap;
}
.bd-marquee {
  display: inline-flex;
  gap: 6vw;
  animation: bd-marquee 40s linear infinite;
  padding-left: 100%;
}
@keyframes bd-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-100%); }
}

/* Spotlight */
.bd-spot {
  position: absolute;
  inset: 0;
  z-index: 30;
  pointer-events: none;
}
.bd-spot-card {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.9s ease;
}
.bd-spot-card.is-in {
  opacity: 1;
}
.bd-spot-box {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(0.86);
  transition: transform 1.1s cubic-bezier(0.2, 1.2, 0.3, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.bd-spot-card.is-in .bd-spot-box {
  transform: translate(-50%, -50%) scale(1);
}
.bd-spot-media {
  display: block;
  max-width: 88vw;
  max-height: 78vh;
  border-radius: 18px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.6), 0 0 0 6px rgba(255, 250, 242, 0.95);
  object-fit: contain;
  background: #000;
}
.bd-spot-label {
  margin-top: 18px;
  font-family: var(--bd-hand);
  font-size: clamp(22px, 4.4vmin, 48px);
  color: var(--bd-gold);
  text-shadow: 0 3px 20px rgba(0, 0, 0, 0.6);
}

/* Phones */
@media (max-width: 600px) {
  .bd-live-actions {
    margin-right: 48px;
  }
  .bd-hud-btn {
    width: 40px;
    height: 40px;
    font-size: 17px;
  }
  .bd-day {
    right: 12px;
    bottom: 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .bd-marquee,
  .bd-live-ghost,
  .bd-live-tile.is-in {
    animation: none;
  }
}
