/*
 * LORI'S BIRTHDAY (special event, 2026-11-01) -- the Home HERO marquee.
 *
 * Its own identity: berry night, party pink and sky blue, candle-yellow bulbs,
 * balloons and a cake -- not Weekend Trivia's violet/teal, not the Casino's
 * felt and gold. CSS only (no images); the only motion is a one-time shine,
 * a gentle balloon bob and the confetti burst, all off under
 * prefers-reduced-motion. The rewards are always in WORDS ("50 FP",
 * "1 GOLDEN TICKET"); every decoration is aria-hidden.
 */

.bd-host {
  margin-block: var(--sp-3);
  min-width: 0;
}

.bd-marquee {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: var(--sp-2) var(--sp-3);
  padding: calc(var(--sp-4) + 4px) var(--sp-3) calc(var(--sp-4) + 4px);
  border: 2px solid rgb(244 114 182);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle, rgb(255 255 255 / 0.10) 1.5px, transparent 2px) 0 0 / 22px 22px,
    radial-gradient(110% 70% at 50% -10%, rgb(236 72 153 / 0.55), transparent 62%),
    radial-gradient(70% 60% at 100% 100%, rgb(56 189 248 / 0.40), transparent 70%),
    radial-gradient(60% 60% at 0% 100%, rgb(250 204 21 / 0.18), transparent 70%),
    rgb(46 10 52);
  box-shadow: 0 0 0 1px rgb(255 255 255 / 0.08), 0 8px 22px rgb(80 10 70 / 0.5), inset 0 0 28px rgb(244 114 182 / 0.18);
  color: rgb(255 244 252);
  overflow-wrap: anywhere;
}

/* Festive bulbs, top and bottom (decoration). */
.bd-marquee__bulbs {
  position: absolute;
  inset: 0 0 auto;
  block-size: 10px;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at center, rgb(253 230 138) 0 2.5px, transparent 3px) 0 50% / 20px 100% repeat-x,
    radial-gradient(circle at center, rgb(244 114 182) 0 2.5px, transparent 3px) 10px 50% / 20px 100% repeat-x;
}

.bd-marquee__bulbs--bottom {
  inset: auto 0 0;
}

/* The art: a cake between two balloons. */
.bd-marquee__art {
  position: relative;
  display: grid;
  place-items: center;
  inline-size: clamp(4.5rem, 22vw, 6.25rem);
  aspect-ratio: 1;
}

.bd-cake {
  font-size: clamp(2.6rem, 13vw, 3.6rem);
  line-height: 1;
  filter: drop-shadow(0 0 10px rgb(253 230 138 / 0.7));
}

.bd-balloon {
  position: absolute;
  inline-size: 30%;
  aspect-ratio: 4 / 5;
  border-radius: 50% 50% 48% 48%;
  box-shadow: inset -4px -6px 0 rgb(0 0 0 / 0.18), inset 3px 3px 0 rgb(255 255 255 / 0.35);
}

.bd-balloon::after {
  content: "";
  position: absolute;
  inset-block-start: 100%;
  inset-inline-start: 50%;
  inline-size: 1px;
  block-size: 60%;
  background: rgb(255 255 255 / 0.5);
}

.bd-balloon--a {
  inset-block-start: 0;
  inset-inline-start: 0;
  background: rgb(56 189 248);
}

.bd-balloon--b {
  inset-block-start: 4%;
  inset-inline-end: 0;
  background: rgb(244 114 182);
}

.bd-marquee__words {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.bd-marquee__kicker {
  margin: 0;
  font-size: var(--fs-eyebrow);
  font-weight: 800;
  letter-spacing: 0.22em;
  color: rgb(253 230 138);
}

.bd-marquee__title {
  margin: 0;
  font-size: clamp(1.45rem, 7.2vw, 2.25rem);
  font-weight: 900;
  letter-spacing: 0.04em;
  line-height: 1.05;
  color: rgb(255 255 255);
  text-shadow: 0 2px 0 rgb(0 0 0 / 0.5), 0 0 14px rgb(244 114 182 / 0.75);
  overflow-wrap: anywhere;
}

.bd-marquee__lead {
  grid-column: 1 / -1;
  margin: 0;
  font-size: var(--fs-lead);
  font-weight: 800;
  color: rgb(255 228 244);
}

.bd-marquee--recipient .bd-marquee__lead {
  font-size: var(--fs-body);
  font-weight: 900;
  letter-spacing: 0.06em;
  color: rgb(253 230 138);
}

/* The rewards, in words, on a board. */
.bd-rewards {
  grid-column: 1 / -1;
  display: grid;
  gap: var(--sp-1);
  padding: var(--sp-2) var(--sp-3);
  border: 1px solid rgb(244 114 182 / 0.55);
  border-radius: var(--radius-sm);
  background: rgb(0 0 0 / 0.32);
  min-width: 0;
}

.bd-rewards__lead {
  margin: 0;
  font-size: var(--fs-small);
  font-weight: 900;
  letter-spacing: 0.12em;
  color: rgb(186 230 253);
}

.bd-rewards__row {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-1) var(--sp-2);
}

.bd-pill {
  padding: 4px var(--sp-3);
  border: 1px solid rgb(253 230 138 / 0.7);
  border-radius: 999px;
  background: rgb(250 204 21 / 0.14);
  color: rgb(254 243 199);
  font-size: var(--fs-small);
  font-weight: 900;
  letter-spacing: 0.06em;
}

.bd-rewards__plus {
  font-weight: 900;
  color: rgb(253 230 138);
}

/* The one action, and its confirmation. */
.bd-action {
  grid-column: 1 / -1;
  display: grid;
  gap: var(--sp-2);
  min-width: 0;
}

.bd-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  min-block-size: var(--tap);
  padding: var(--sp-2) var(--sp-4);
  border: 1px solid rgb(255 228 244);
  border-radius: 999px;
  background: linear-gradient(180deg, rgb(251 207 232), rgb(236 72 153) 55%, rgb(190 24 93));
  box-shadow: 0 2px 0 rgb(0 0 0 / 0.5), 0 0 16px rgb(244 114 182 / 0.55);
  color: rgb(255 255 255);
  font: inherit;
  font-size: var(--fs-body);
  font-weight: 900;
  letter-spacing: 0.08em;
  text-align: center;
  white-space: normal;
  cursor: pointer;
}

.bd-cta:disabled {
  opacity: 0.7;
  cursor: progress;
}

.bd-cta:focus-visible,
.bd-cancel:focus-visible,
.bd-wishes__toggle:focus-visible {
  outline: 3px solid rgb(253 230 138);
  outline-offset: 2px;
}

.bd-confirm {
  display: grid;
  gap: var(--sp-2);
  padding: var(--sp-3);
  border: 2px dashed rgb(253 230 138 / 0.8);
  border-radius: var(--radius-sm);
  background: rgb(0 0 0 / 0.4);
}

.bd-confirm__q {
  margin: 0;
  font-weight: 900;
  letter-spacing: 0.04em;
  color: rgb(255 255 255);
}

.bd-confirm__what {
  margin: 0;
  font-weight: 800;
  color: rgb(254 243 199);
}

.bd-confirm__buttons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr));
  gap: var(--sp-2);
}

.bd-cancel {
  min-block-size: var(--tap);
  padding: var(--sp-2) var(--sp-3);
  border: 1px solid rgb(255 255 255 / 0.55);
  border-radius: 999px;
  background: transparent;
  color: rgb(255 255 255);
  font: inherit;
  font-weight: 800;
  letter-spacing: 0.08em;
  cursor: pointer;
}

.bd-confirm__error {
  margin: 0;
  font-weight: 700;
  color: rgb(254 202 202);
}

.bd-confirm__error[hidden] {
  display: none;
}

.bd-sent {
  display: grid;
  gap: 2px;
  padding: var(--sp-3);
  border: 2px solid rgb(134 239 172);
  border-radius: var(--radius-sm);
  background: rgb(20 83 45 / 0.45);
}

.bd-sent__title {
  margin: 0;
  font-size: var(--fs-lead);
  font-weight: 900;
  letter-spacing: 0.06em;
  color: rgb(255 255 255);
}

.bd-sent__line {
  margin: 0;
  font-weight: 800;
  color: rgb(220 252 231);
}

/* The authoritative count and who has wished. */
.bd-wishes {
  grid-column: 1 / -1;
  display: grid;
  gap: 2px;
  padding-block-start: var(--sp-2);
  border-block-start: 1px solid rgb(255 255 255 / 0.18);
  min-width: 0;
}

.bd-wishes__count {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--sp-2);
}

.bd-wishes__label {
  font-size: var(--fs-small);
  font-weight: 900;
  letter-spacing: 0.14em;
  color: rgb(186 230 253);
}

.bd-wishes__n {
  font-size: var(--fs-lead);
  font-weight: 900;
  color: rgb(255 255 255);
}

.bd-wishes__line,
.bd-wishes__preview {
  margin: 0;
  font-size: var(--fs-small);
  font-weight: 700;
  color: rgb(255 228 244);
}

.bd-wishes__preview {
  color: rgb(255 255 255);
}

.bd-wishes__toggle {
  display: flex;
  align-items: center;
  min-block-size: var(--tap);
  font-size: var(--fs-small);
  font-weight: 900;
  letter-spacing: 0.1em;
  color: rgb(253 230 138);
  cursor: pointer;
}

.bd-wishes__list {
  margin: 0;
  padding: 0 0 0 var(--sp-4);
  display: grid;
  gap: 2px;
}

.bd-wishes__name {
  font-weight: 700;
  overflow-wrap: anywhere;
}

/* Confetti: a fixed decorative overlay, removed by the script after ~2 s. */
.bd-confetti {
  position: fixed;
  inset: 0;
  z-index: 60;
  overflow: hidden;
  pointer-events: none;
}

.bd-confetti__bit {
  --bd-drift: 0px; /* each bit's sideways drift; birthday.js sets it per bit */
  position: absolute;
  inset-block-start: -12px;
  inline-size: 8px;
  block-size: 12px;
  border-radius: 2px;
  opacity: 0;
  animation: bd-fall 1600ms ease-in forwards;
}

.bd-c1 { background: rgb(244 114 182); }
.bd-c2 { background: rgb(56 189 248); }
.bd-c3 { background: rgb(253 224 71); }
.bd-c4 { background: rgb(134 239 172); }
.bd-c5 { background: rgb(196 181 253); }

@keyframes bd-fall {
  0% { opacity: 1; transform: translate(0, 0) rotate(0deg); }
  100% { opacity: 0; transform: translate(var(--bd-drift), 85vh) rotate(540deg); }
}

@media (prefers-reduced-motion: no-preference) {
  .bd-balloon--a { animation: bd-bob 3.2s ease-in-out 2 alternate; }
  .bd-balloon--b { animation: bd-bob 3.6s ease-in-out 0.4s 2 alternate; }
}

@keyframes bd-bob {
  from { transform: translateY(0); }
  to { transform: translateY(-5px); }
}

@media (prefers-reduced-motion: reduce) {
  .bd-confetti { display: none; }
}

@media (min-width: 768px) {
  .bd-marquee {
    padding: calc(var(--sp-5) + 4px) var(--sp-5);
    column-gap: var(--sp-5);
  }
}
