/* Home page banner (owner 2026-10-24, spec docs/superpowers/specs/2026-10-24-home-banner-design.md).
 * Nothing here applies until website-js/banner.js inserts #site-banner and adds html.has-site-banner, so the page is
 * unchanged when no banner is live. The admin preview (/admin/banners) uses this same file. */

.site-banner {
  --sb-ease: cubic-bezier(0.22, 1, 0.36, 1);
  position: relative;
  z-index: 101;
  display: grid;
  grid-template-rows: 0fr;
  width: 100%;
  opacity: 0;
  transform: translateY(-10px);
  transition:
    grid-template-rows 450ms var(--sb-ease),
    opacity 450ms var(--sb-ease),
    transform 450ms var(--sb-ease);
  -webkit-font-smoothing: antialiased;
}

.site-banner.is-open {
  grid-template-rows: 1fr;
  opacity: 1;
  transform: none;
}

.site-banner.is-closing {
  grid-template-rows: 0fr;
  opacity: 0;
  transform: translateY(-10px);
  transition-duration: 320ms;
}

/* Owner 2026-10-26: coming back to the tab, a remembered banner is already in place. The head script in index.html
   keeps its height free from the first frame (html.site-banner-reserve) and banner.js puts it there open, with no slide
   (is-instant); the kept space goes the moment the banner is on the page. */
html.site-banner-reserve body {
  padding-top: var(--site-banner-height, 0px);
}

.site-banner.is-instant,
.site-banner.is-instant * {
  transition: none !important;
}

.site-banner__inner {
  position: relative;
  min-height: 0;
  overflow: hidden;
}

/* ---------------------------------------------------------------- designed: picture or brand gradient + live text */
/* The height sits on .site-banner__content, never on __inner: __inner is the item that grows from 0fr to 1fr, and a
   fixed height on it would make the banner appear at full height at once (a jump) instead of opening (2026-10-25). */
.site-banner--designed .site-banner__inner {
  color: #ffffff;
  background: linear-gradient(100deg, #3b1fb8 0%, #5b2bff 45%, #9b3dff 100%);
}

.site-banner--designed.site-banner--tone-dark .site-banner__inner {
  color: #17141f;
  background: linear-gradient(100deg, #f1ecff 0%, #fbeaff 55%, #ffeef6 100%);
}

.site-banner__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Design B, "festive art frame" (owner chose it 2026-10-25 from three options on the real home page): the picture
   shows clearly at the left and right, and the middle is a solid deep-purple panel where the text sits, so the text is
   crisp on any picture (white text keeps more than 7:1 contrast on the panel). Dark text gets an ivory panel instead. */
.site-banner--has-image.site-banner--designed .site-banner__inner::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1; /* above the picture (layers: picture 0, panel 1, text 2, close 3) */
  background: linear-gradient(90deg, rgba(22, 9, 62, 0) 0%, rgba(22, 9, 62, 0) 10%, rgba(22, 9, 62, 0.93) 28%, rgba(22, 9, 62, 0.95) 72%, rgba(22, 9, 62, 0) 90%, rgba(22, 9, 62, 0) 100%);
}

.site-banner--has-image.site-banner--designed.site-banner--tone-dark .site-banner__inner::before {
  background: linear-gradient(90deg, rgba(255, 249, 238, 0) 0%, rgba(255, 249, 238, 0) 10%, rgba(255, 249, 238, 0.94) 28%, rgba(255, 249, 238, 0.96) 72%, rgba(255, 249, 238, 0) 90%, rgba(255, 249, 238, 0) 100%);
}

.site-banner__content {
  position: relative;
  z-index: 2;
  min-height: 80px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 12px 64px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

/* Light text over a picture keeps a soft shadow, so it stays readable where the panel fades on bright pictures. */
.site-banner--has-image.site-banner--designed.site-banner--tone-light .site-banner__text {
  text-shadow: 0 1px 3px rgba(10, 4, 30, 0.55);
}

.site-banner__icon { flex: none; }
.site-banner__icon.is-fill path { fill: currentColor; }
.site-banner__icon.is-stroke path { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* Gold festival tag, e.g. "Diwali". */
.site-banner__tag {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffe2a8, #f5b94e);
  color: #2a1400;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* The time left sits inside the tag everywhere (owner 2026-10-28: on desktop the digit boxes in the same row cut the
   headline off; phones already showed it here). A countdown without a tag text is a tag of its own. */
.site-banner__tag-text + .site-banner__tag-count::before { content: '· '; }

/* Headline on top, the short line under it (owner 2026-10-25: side by side they were cut off with a countdown). */
.site-banner__text {
  margin: 0;
  min-width: 0;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
}

.site-banner__headline {
  max-width: 100%;
  font-size: 19px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.005em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.site-banner__subline {
  max-width: 100%;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.3;
  opacity: 0.9;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Tap-to-copy coupon code chip. */
.site-banner__code {
  position: relative;
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border: 1px dashed rgba(255, 220, 160, 0.78);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.07);
  color: inherit;
  font: inherit;
  font-size: 14.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 200ms var(--sb-ease), border-color 200ms var(--sb-ease);
}

/* Coupon codes run to 32 characters (Admin → Coupons, owner 2026-10-26): a long one is set tighter. */
.site-banner__code.is-long {
  gap: 6px;
  font-size: 13px;
  letter-spacing: 0.02em;
}

.site-banner__code-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* What the code gives ("10% off"), a solid gold label inside the chip (owner 2026-10-27). */
.site-banner__code-offer {
  flex: none;
  padding: 2px 7px;
  border-radius: 6px;
  background: #ffd38a;
  color: #2a1400;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.site-banner--tone-dark .site-banner__code-offer { background: #a8741f; color: #fffaf0; }
.site-banner--phone .site-banner__code-offer { padding: 1px 6px; font-size: 10.5px; }

.site-banner__code .site-banner__icon { color: #ffd38a; }
.site-banner__code:hover { background: rgba(255, 255, 255, 0.14); border-color: #ffd38a; }

.site-banner__code-done {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border-radius: inherit;
  background: #ffd38a;
  color: #2a1400;
  letter-spacing: 0.04em;
  opacity: 0;
  transform: scale(0.96);
  transition: opacity 180ms var(--sb-ease), transform 180ms var(--sb-ease);
  pointer-events: none;
}

.site-banner__code.is-copied .site-banner__code-done { opacity: 1; transform: none; }

.site-banner__tag-count {
  font-variant-numeric: tabular-nums;
}

.site-banner__cta {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 40px;
  padding: 0 18px;
  border-radius: 999px;
  background: #ffffff;
  color: #1a0b4a;
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(8, 4, 24, 0.28);
  transition: transform 200ms var(--sb-ease), box-shadow 200ms var(--sb-ease);
}

.site-banner__cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(8, 4, 24, 0.32);
}

/* Dark text (light pictures): ivory panel, dark text, purple button, gold-brown code. */
.site-banner--tone-dark .site-banner__code { border-color: #c9973e; background: #fffaf0; color: #5a3606; }
.site-banner--tone-dark .site-banner__code .site-banner__icon { color: #a8741f; }
.site-banner--tone-dark .site-banner__cta { background: #3810c9; color: #ffffff; box-shadow: 0 4px 14px rgba(56, 16, 201, 0.3); }

/* ---------------------------------------------------------------- ready-made image */
.site-banner__image-link {
  position: relative;
  display: block;
}

/* Animated banners (owner 2026-10-26): the looping animation sits exactly over the still picture and fades in once it
   plays (layers: picture 0, animation 0 but later, panel 1, text 2, close 3). */
.site-banner__motion {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transition: opacity 600ms ease;
  pointer-events: none;
}

.site-banner__motion.is-playing {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .site-banner__motion {
    display: none;
  }
}

.site-banner__img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 12 / 1;
  object-fit: cover;
}

.site-banner--phone .site-banner__img {
  aspect-ratio: 4 / 1;
}

/* ---------------------------------------------------------------- close */
.site-banner__close {
  position: absolute;
  top: 50%;
  right: 12px;
  z-index: 3;
  width: 34px;
  height: 34px;
  margin-top: -17px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: inherit;
  cursor: pointer;
  transition: background-color 200ms var(--sb-ease), transform 200ms var(--sb-ease);
}

.site-banner__close svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

.site-banner__close:hover {
  background: rgba(255, 255, 255, 0.28);
  transform: scale(1.06);
}

.site-banner--tone-dark .site-banner__close {
  background: rgba(23, 20, 31, 0.08);
}

.site-banner--image .site-banner__close {
  color: #ffffff;
  background: rgba(12, 8, 32, 0.42);
}

/* Design B: the close button sits over the picture's end, so it carries its own backing to show on any picture. */
.site-banner--designed.site-banner--has-image .site-banner__close {
  color: #ffffff;
  background: rgba(22, 9, 62, 0.62);
}

.site-banner--designed.site-banner--has-image.site-banner--tone-dark .site-banner__close {
  color: #2a1606;
  background: rgba(255, 249, 238, 0.92);
}

.site-banner__cta:focus-visible,
.site-banner__close:focus-visible,
.site-banner__image-link:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

/* With a short line the desktop banner is a little taller (owner 2026-10-25: "increase the size only when the note
   is added"); without one it keeps 80px. */
.site-banner--has-subline:not(.site-banner--phone) .site-banner__content {
  min-height: 92px;
}

.site-banner--has-subline:not(.site-banner--phone) .site-banner__headline {
  font-size: 20px;
}

.site-banner--has-subline:not(.site-banner--phone) .site-banner__subline {
  font-size: 15px;
}

/* ---------------------------------------------------------------- desktop art frame
   Owner 2026-10-28: "on desktop it looks cropped, and cropped so wrongly; on phones it is perfect". The desktop strip
   was a 12:1 slice of the picture, and a 1440 px screen sliced it again (the banner is about 18:1 there). On desktop
   the phone picture (4:1, the one that looks right) now shows whole at both ends, the right one mirrored so the two
   ends frame the text, over a soft blurred copy of it; the deep-purple panel holds the text in the middle as before. */
.site-banner__art {
  display: none;
}

.site-banner--art:not(.site-banner--phone) .site-banner__art {
  display: block;
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.site-banner__end {
  position: absolute;
  top: 0;
  height: 100%;
  aspect-ratio: 4 / 1;
  max-width: 30%;
  overflow: hidden;
  /* The inner edge melts into the blurred copy behind it. */
  -webkit-mask-image: linear-gradient(90deg, #000 62%, transparent);
  mask-image: linear-gradient(90deg, #000 62%, transparent);
}

.site-banner__end.is-left { left: 0; }
.site-banner__end.is-right { right: 0; transform: scaleX(-1); }

.site-banner__end-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left center;
}

.site-banner--art:not(.site-banner--phone) .site-banner__bg {
  filter: blur(22px) saturate(1.15) brightness(0.8);
  transform: scale(1.25);
}

@media (min-width: 1024px) {
  .site-banner--art { --sb-end: min(320px, 30%); }
  .site-banner--art.site-banner--has-subline { --sb-end: min(368px, 30%); }

  .site-banner--has-image.site-banner--designed.site-banner--art:not(.site-banner--phone) .site-banner__inner::before {
    background: linear-gradient(90deg, rgba(22, 9, 62, 0) 0, rgba(22, 9, 62, 0) calc(var(--sb-end) * 0.45), rgba(22, 9, 62, 0.93) calc(var(--sb-end) * 0.98), rgba(22, 9, 62, 0.95) calc(100% - var(--sb-end) * 0.98), rgba(22, 9, 62, 0) calc(100% - var(--sb-end) * 0.45), rgba(22, 9, 62, 0) 100%);
  }

  .site-banner--has-image.site-banner--designed.site-banner--art.site-banner--tone-dark:not(.site-banner--phone) .site-banner__inner::before {
    background: linear-gradient(90deg, rgba(255, 249, 238, 0) 0, rgba(255, 249, 238, 0) calc(var(--sb-end) * 0.45), rgba(255, 249, 238, 0.94) calc(var(--sb-end) * 0.98), rgba(255, 249, 238, 0.96) calc(100% - var(--sb-end) * 0.98), rgba(255, 249, 238, 0) calc(100% - var(--sb-end) * 0.45), rgba(255, 249, 238, 0) 100%);
  }

  /* The festival words and the time left stack inside the tag (two short lines), so the row keeps room for the text. */
  .site-banner:not(.site-banner--phone) .site-banner__tag.has-count {
    display: inline-grid;
    grid-template-columns: auto auto;
    align-items: center;
    gap: 1px 7px;
    padding: 5px 13px 5px 11px;
    border-radius: 12px;
  }

  .site-banner:not(.site-banner--phone) .site-banner__tag.has-count .site-banner__icon { grid-row: span 2; }

  .site-banner:not(.site-banner--phone) .site-banner__tag.has-count .site-banner__tag-count {
    grid-column: 2;
    font-size: 11px;
    letter-spacing: 0.04em;
    opacity: 0.82;
  }

  .site-banner:not(.site-banner--phone) .site-banner__tag.has-count .site-banner__tag-count::before { content: none; }

  /* A long headline takes a second line instead of being cut off. */
  .site-banner:not(.site-banner--phone) .site-banner__headline {
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }
}

/* Small tablets (768 to 1023 px): too narrow for one row, so the headline and short line take the first row and the
   tag, code and button the second. The picture gets the soft full shade used on phones. */
@media (min-width: 768px) and (max-width: 1023.98px) {
  .site-banner:not(.site-banner--phone) .site-banner__content {
    flex-wrap: wrap;
    align-content: center;
    gap: 8px 12px;
    padding: 12px 56px 12px 24px;
  }

  .site-banner:not(.site-banner--phone) .site-banner__text {
    order: -1;
    width: 100%;
    align-items: center;
    text-align: center;
  }

  .site-banner--has-image.site-banner--designed:not(.site-banner--phone) .site-banner__inner::before {
    background: linear-gradient(180deg, rgba(22, 9, 62, 0.62), rgba(22, 9, 62, 0.9));
  }

  .site-banner--has-image.site-banner--designed.site-banner--tone-dark:not(.site-banner--phone) .site-banner__inner::before {
    background: linear-gradient(180deg, rgba(255, 249, 238, 0.72), rgba(255, 249, 238, 0.94));
  }
}

/* ---------------------------------------------------------------- phones (banner.js sets the class below 768 px) */
/* Three short rows: the tag with the time left, the headline, then the code chip and the button. The picture shows
   through a softer top-to-bottom shade. */
.site-banner--phone.site-banner--has-image.site-banner--designed .site-banner__inner::before {
  background: linear-gradient(180deg, rgba(22, 9, 62, 0.58), rgba(22, 9, 62, 0.9));
}

.site-banner--phone.site-banner--has-image.site-banner--designed.site-banner--tone-dark .site-banner__inner::before {
  background: linear-gradient(180deg, rgba(255, 249, 238, 0.7), rgba(255, 249, 238, 0.94));
}

.site-banner--phone .site-banner__content {
  min-height: 96px;
  flex-wrap: wrap;
  align-content: center;
  gap: 8px 8px;
  padding: 12px 48px 12px 16px;
}

.site-banner--phone .site-banner__tag {
  padding: 4px 10px;
  font-size: 11px;
}

.site-banner--phone .site-banner__text {
  width: 100%;
  align-items: center;
}

.site-banner--phone .site-banner__headline {
  font-size: 16px;
  white-space: normal;
  text-align: center;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.site-banner--phone .site-banner__subline {
  display: none;
}

.site-banner--phone .site-banner__code {
  flex: 0 1 auto;
  min-width: 0;
  max-width: 100%;
  padding: 6px 10px;
  font-size: 13px;
}

.site-banner--phone .site-banner__code.is-long {
  font-size: 11.5px;
}

/* Room for the whole long code on a phone: the copy mark stays, the ticket mark goes. */
.site-banner--phone .site-banner__code.is-long .site-banner__icon:first-child {
  display: none;
}

@media (max-width: 359px) {
  .site-banner--phone .site-banner__code.is-long {
    padding: 6px 8px;
    font-size: 10.5px;
    letter-spacing: 0;
  }
}

.site-banner--phone .site-banner__cta {
  min-height: 36px;
  padding: 0 15px;
  font-size: 14px;
}

.site-banner--phone .site-banner__close {
  right: 8px;
}

/* ---------------------------------------------------------------- the fixed menu follows the banner
   html.has-site-banner: set by the head script for the first paint of a remembered banner. Once banner.js has the banner
   on the page the class sits on the menu itself (owner 2026-10-26: a class on the page root made the browser re-check the
   whole page, a stutter as the banner opened and closed). */
html.has-site-banner #navbar,
#navbar.has-site-banner {
  top: var(--site-banner-offset, 0px) !important;
}

/* Owner 2026-10-25: the menu lagged behind the scroll when banner.js moved it. Where the browser can link an animation
   to scrolling, the menu starts under the banner and slides up with the first banner-height of scroll on the browser's
   scroll thread, in step with the page in every frame. Other browsers keep the script above. */
@supports (animation-timeline: scroll()) {
  html.has-site-banner #navbar,
  #navbar.has-site-banner {
    top: var(--site-banner-height, 0px) !important;
    animation: site-banner-menu-up linear both;
    animation-timeline: scroll(root block);
    animation-range: 0px var(--site-banner-height, 0px);
  }
}

@keyframes site-banner-menu-up {
  to { transform: translateY(calc(-1 * var(--site-banner-height, 0px))); }
}

/* While the phone menu is open (mobile.js adds html.m-menu-open) it covers the whole screen from the top. */
html.m-menu-open .site-banner {
  visibility: hidden;
}

html.m-menu-open.has-site-banner #navbar,
html.m-menu-open #navbar.has-site-banner {
  top: 0 !important;
  animation: none !important;
}

@media (prefers-reduced-motion: reduce) {
  .site-banner,
  .site-banner.is-closing,
  .site-banner__cta,
  .site-banner__close {
    transition: none !important;
  }

  .site-banner {
    transform: none !important;
  }
}

/* ---------------------------------------------------------------- floating reminder (owner 2026-10-26)
   A closed banner folds into a small festival reminder at the bottom right (diya for Diwali, star for Christmas ...;
   website-js/banner-floater.js). It flies there, settles and lights up; clicking it flies back up into the banner.
   The flight is done in banner.js with transform/opacity animations only; this sets the look, the light-up and the
   gentle idle life once lit. */
.site-floater {
  --fl-size: 60px;
  --fl-ease: cubic-bezier(0.22, 1, 0.36, 1);
  position: fixed;
  right: calc(20px + env(safe-area-inset-right, 0px));
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  z-index: 90;
  width: var(--fl-size);
  height: var(--fl-size);
  translate: 0 0;
  transition: translate 280ms var(--fl-ease), opacity 200ms ease, visibility 0s;
  -webkit-tap-highlight-color: transparent;
}

/* Phones: above the sticky "Start free" bar while it shows. */
html:has(.m-sticky-cta.is-shown) .site-floater {
  translate: 0 -76px;
}

/* It waits while the phone menu is open, and while the cookie notice asks. Separate rules: a browser without :has()
   drops a whole rule that names it, and the phone menu one must still apply there. */
html.m-menu-open .site-floater {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 200ms ease, visibility 0s linear 200ms;
}

body:has(> .cookie-consent:not([hidden])) .site-floater {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 200ms ease, visibility 0s linear 200ms;
}

/* Owner 2026-10-27: dragged and let go on the left half, it sticks to the left side (banner.js). */
.site-floater.is-left {
  left: calc(20px + env(safe-area-inset-left, 0px));
  right: auto;
}

.site-floater.is-left .site-floater__label {
  left: calc(100% + 10px);
  right: auto;
  transform: translate(-6px, -50%);
}

.site-floater.is-dragging .site-floater__open {
  cursor: grabbing;
  transform: scale(1.08);
  box-shadow: 0 20px 44px rgba(20, 16, 60, 0.28), 0 2px 6px rgba(20, 16, 60, 0.1);
}

.site-floater.is-dragging .site-floater__label {
  opacity: 0;
}

/* The trail it leaves while it moves (banner.js leaveTrail). Each icon picks its kind in banner-floater.js (owner
   2026-10-28: "the trail should be separate for each icon"); --trail is the piece's colour. */
.site-floater-trail {
  position: fixed;
  z-index: 89;
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
  will-change: transform, opacity;
}

/* A bright core inside a glow of the icon's colour: reads on the light page and on dark mode alike. */
.site-floater-trail--glow {
  background: radial-gradient(circle, #ffffff 0 14%, var(--trail, #a78bfa) 30%, transparent 70%);
  box-shadow: 0 0 14px 2px var(--trail, #a78bfa);
}

.site-floater-trail--embers {
  background: radial-gradient(circle, #fff7d6 0 28%, var(--trail, #ffb347) 48%, transparent 74%);
  box-shadow: 0 0 8px 1px var(--trail, #ffb347);
}

.site-floater-trail--sparkle {
  border-radius: 0;
  background: var(--trail, #ffd24d);
  clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%);
}

.site-floater-trail--confetti {
  border-radius: 2px;
  background: var(--trail, #7c5cff);
}

.site-floater-trail--powder {
  background: radial-gradient(circle, var(--trail, #ff4d8d) 0%, transparent 70%);
}

.site-floater-trail--petals {
  border-radius: 60% 0 60% 0;
  background: var(--trail, #f59e0b);
}

.site-floater-trail--hearts {
  border-radius: 0;
  background: var(--trail, #ff5c8a);
  clip-path: polygon(50% 100%, 8% 58%, 0 32%, 6% 12%, 26% 2%, 50% 18%, 74% 2%, 94% 12%, 100% 32%, 92% 58%);
}

.site-floater-trail--snow {
  background: radial-gradient(circle, #ffffff 0 40%, var(--trail, #bae6fd) 70%);
  box-shadow: 0 0 6px 1px var(--trail, #bae6fd);
}

.site-floater-trail--coins {
  background: radial-gradient(circle at 35% 35%, #fff7c2 0 18%, var(--trail, #f5c542) 45%, #b7791f 100%);
}

.site-floater-trail--drops {
  border-radius: 50% 50% 50% 50% / 62% 62% 38% 38%;
  background: var(--trail, #38bdf8);
}

.site-floater-trail--leaves {
  border-radius: 0 70% 0 70%;
  background: var(--trail, #22c55e);
}

/* Flying back up into the banner: nothing on it can be clicked any more. */
.site-floater.is-leaving {
  pointer-events: none;
}

.site-floater__fly-x,
.site-floater__fly-y {
  width: 100%;
  height: 100%;
}

.site-floater__open {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 1px solid rgba(56, 16, 201, 0.14);
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(20, 16, 60, 0.18), 0 2px 6px rgba(20, 16, 60, 0.08);
  cursor: pointer;
  /* Owner 2026-10-27: it can be dragged; touch moves it instead of scrolling the page. */
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  transition: transform 220ms var(--fl-ease), box-shadow 220ms var(--fl-ease);
}

.site-floater__open:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 16px 36px rgba(20, 16, 60, 0.22), 0 2px 6px rgba(20, 16, 60, 0.08);
}

.site-floater__open:active {
  transform: scale(0.95);
}

.site-floater__open:focus-visible {
  outline: 3px solid #7c5cff;
  outline-offset: 3px;
}

.site-floater__icon {
  display: block;
  width: 38px;
  height: 38px;
  pointer-events: none;
}

.site-floater__icon svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

/* The offer's name, shown beside the reminder on hover (pointer devices). */
.site-floater__label {
  position: absolute;
  top: 50%;
  right: calc(100% + 10px);
  max-width: 220px;
  padding: 7px 12px;
  border-radius: 999px;
  background: #16113a;
  color: #ffffff;
  font: 650 13px/1.2 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  opacity: 0;
  transform: translate(6px, -50%);
  transition: opacity 180ms ease, transform 220ms var(--fl-ease);
  pointer-events: none;
}

@media (hover: hover) {
  .site-floater:hover .site-floater__label {
    opacity: 1;
    transform: translate(0, -50%);
  }

  .site-floater:has(:focus-visible) .site-floater__label {
    opacity: 1;
    transform: translate(0, -50%);
  }
}

html[data-theme='dark'] .site-floater__open {
  border-color: rgba(255, 255, 255, 0.14);
  background: #17142a;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(124, 92, 255, 0.18);
}

html[data-theme='dark'] .site-floater__label {
  background: #f4f2ff;
  color: #16113a;
}

/* A later page: it simply appears (no flight). */
.site-floater.is-appearing {
  animation: fl-appear 360ms var(--fl-ease) both;
}

/* Lighting up: the flame, glow and sparkles grow in with a soft spring; Holi colours burst to full size. */
.site-floater .fl-light {
  opacity: 0;
  transform: scale(0.4);
  transform-box: fill-box;
  transform-origin: 50% 85%;
  transition: opacity 480ms var(--fl-ease), transform 640ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.site-floater.is-lit .fl-light {
  opacity: 1;
  transform: none;
}

.site-floater:not(.is-lit) .fl-burst {
  opacity: 0.85;
  transform: scale(0.6);
  transform-origin: 50% 50%;
}

/* Gentle life once lit (each loops slowly). */
.site-floater.is-lit .fl-flame {
  animation: fl-flicker 2.4s ease-in-out 700ms infinite;
}

.site-floater.is-lit .fl-glow {
  animation: fl-breathe 3.2s ease-in-out 700ms infinite;
}

.site-floater.is-lit .fl-spark {
  animation: fl-twinkle 2.8s ease-in-out 700ms infinite;
}

.site-floater.is-lit .fl-beat {
  transform-box: fill-box;
  transform-origin: 50% 60%;
  animation: fl-beat 2.6s ease-in-out 700ms infinite;
}

.site-floater.is-lit .fl-wave {
  transform-box: fill-box;
  transform-origin: 0 50%;
  animation: fl-wave 2.8s ease-in-out infinite;
}

.site-floater.is-lit .fl-sway {
  transform-box: fill-box;
  transform-origin: 50% 0;
  animation: fl-sway 3.4s ease-in-out infinite;
}

/* The scale property, not transform: the reminder's own transform holds where the visitor dragged it. */
@keyframes fl-appear {
  from { opacity: 0; scale: 0.6; }
  to { opacity: 1; scale: 1; }
}

@keyframes fl-flicker {
  0%, 100% { transform: none; }
  30% { transform: scale(0.96, 1.05) rotate(-2deg); }
  60% { transform: scale(1.03, 0.97) rotate(1.5deg); }
}

@keyframes fl-breathe {
  0%, 100% { opacity: 1; transform: none; }
  50% { opacity: 0.72; transform: scale(0.92); }
}

@keyframes fl-twinkle {
  0%, 100% { opacity: 1; transform: none; }
  50% { opacity: 0.45; transform: scale(0.8); }
}

@keyframes fl-beat {
  0%, 40%, 100% { transform: none; }
  12% { transform: scale(1.08); }
  24% { transform: scale(0.98); }
}

@keyframes fl-wave {
  0%, 100% { transform: skewY(0deg); }
  50% { transform: skewY(-4deg); }
}

@keyframes fl-sway {
  0%, 100% { transform: rotate(-4deg); }
  50% { transform: rotate(4deg); }
}

@media (prefers-reduced-motion: reduce) {
  .site-floater,
  .site-floater *,
  .site-floater .fl-light,
  .site-floater-trail {
    animation: none !important;
    transition: none !important;
  }
}
