/* The Black Friday early access button: a near-black pill on white that unlocks the members-only sale */
:root {
  --bg: #ffffff;
  --pill-hi: #26262b;
  --pill-lo: #0d0d10;
  --text: #ffffff;
  --muted: rgba(255, 255, 255, 0.5);
  --accent: #d4ff3a;
  --on-accent: #0c0d09;
  --seat-hi: #34343a;
  --seat-lo: #18181c;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: "Mona Sans Variable", "Mona Sans", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}

.stage {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 16px;
}

/* ---- the pill: GSAP sets its width in pixels ---- */
.bf {
  position: relative;
  width: min(264px, calc(100vw - 32px));
  height: 60px;
  border-radius: 99px;
  isolation: isolate;
  --seat-bg: var(--seat-lo);
}
.bf:has(.bf__btn:focus-visible) { outline: 2px solid #0d0d10; outline-offset: 4px; }

/* the shadow it throws on the white, and the lime light once open */
.bf__glow {
  position: absolute;
  inset: 8px 18px -8px;
  border-radius: 99px;
  background: #0d0d10;
  filter: blur(16px);
  opacity: 0.28;
  z-index: -3;
  transition: opacity 0.6s ease, background-color 0.6s ease;
}
.bf.is-open .bf__glow { background: color-mix(in srgb, var(--accent) 80%, #6f8a00); opacity: 0.55; }

.bf__body {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  overflow: hidden;
  background: linear-gradient(180deg, var(--pill-hi), var(--pill-lo) 72%);
  box-shadow: 0 1px 1px rgba(13, 13, 16, 0.18), 0 6px 14px -6px rgba(13, 13, 16, 0.45);
  z-index: -2;
}
/* the lime that floods from the lock */
.bf__fill {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 140% at 50% -30%, color-mix(in srgb, var(--accent) 55%, #ffffff), transparent 60%),
    linear-gradient(180deg, var(--accent), color-mix(in srgb, var(--accent) 86%, #4f6600));
  clip-path: circle(0px at right 30px top 50%);
}
.bf__sheen {
  position: absolute;
  inset: 0;
  background: linear-gradient(104deg, transparent 36%, rgba(255, 255, 255, 0.5) 48%, rgba(255, 255, 255, 0.85) 50%, rgba(255, 255, 255, 0.4) 53%, transparent 64%);
  mix-blend-mode: soft-light;
}
/* a soft light that follows the pointer */
.bf__light {
  position: absolute;
  inset: 0;
  background: radial-gradient(120px 70px at var(--px, 50%) var(--py, 0%), rgba(255, 255, 255, 0.12), transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.bf.is-hot .bf__light { opacity: 1; }
.bf__edge {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), inset 0 -1px 0 rgba(0, 0, 0, 0.5), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
  pointer-events: none;
  z-index: -1;
  transition: box-shadow 0.5s ease;
}
.bf.is-open .bf__edge { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), inset 0 -1px 0 rgba(60, 80, 0, 0.35), inset 0 0 0 1px rgba(60, 80, 0, 0.12); }
/* the thin light that runs along the edge on hover: a conic band seen only through a 1px ring */
.bf__ray {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: conic-gradient(from var(--a, 0deg), transparent 0deg, transparent 300deg, rgba(255, 255, 255, 0.25) 330deg, #ffffff 352deg, transparent 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  opacity: 0;
  pointer-events: none;
}

/* ---- the button that fills the pill (narrower once the close button is there) ---- */
.bf__btn {
  position: absolute;
  left: 0;
  top: 0;
  height: 60px;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 10px 0 24px;
  border: 0;
  border-radius: 99px;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  outline: none;
}
.bf__text { flex: 1; min-width: 0; display: grid; gap: 1px; }
.line { display: block; overflow: hidden; }
.line__in { display: flex; align-items: center; gap: 7px; white-space: nowrap; transition: color 0.35s ease; }
.line--top { height: 21px; }
.line--top .line__in { font-size: 15.5px; line-height: 21px; font-weight: 640; font-stretch: 104%; letter-spacing: -0.01em; color: var(--text); }
.line--sub { height: 15px; }
.line--sub .line__in { font-size: 11px; line-height: 15px; font-weight: 520; font-stretch: 108%; letter-spacing: 0.02em; color: var(--muted); }
.bf.is-open .line--top .line__in { color: var(--on-accent); }
.bf.is-open .line--sub .line__in { color: rgba(12, 13, 9, 0.62); }

/* the arrow after Shop the sale */
.arrow { width: 16px; height: 16px; flex: none; overflow: visible; }
.arrow path { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* the countdown: one window per figure so each can roll on its own */
.clock { display: inline-flex; align-items: center; font-variant-numeric: tabular-nums; font-weight: 640; color: var(--on-accent); }
.dg { position: relative; display: inline-block; width: 0.62em; height: 15px; overflow: hidden; text-align: center; -webkit-mask: linear-gradient(transparent, #000 22%, #000 78%, transparent); mask: linear-gradient(transparent, #000 22%, #000 78%, transparent); }
.dg > span { position: absolute; left: 0; right: 0; top: 0; }
.sep { display: inline-block; padding: 0 0.5px; opacity: 0.6; }
.gap { display: inline-block; width: 0.3em; }

/* ---- the seat of the lock ---- */
.seat {
  position: relative;
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 0%, var(--seat-hi), var(--seat-lo) 72%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), inset 0 0 0 1px rgba(255, 255, 255, 0.05), 0 2px 5px rgba(0, 0, 0, 0.35);
  display: grid;
  place-items: center;
  transition: background 0.5s ease, box-shadow 0.5s ease;
}
.bf.is-open .seat {
  --seat-hi: #23251c;
  --seat-lo: #0c0d09;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 3px 8px -2px rgba(40, 54, 0, 0.5);
}
.lock { width: 22px; height: 22px; overflow: visible; }
.lock__arc { fill: none; stroke: #ffffff; stroke-width: 1.7; stroke-linecap: round; transition: stroke 0.4s ease; }
.lock__body { fill: var(--seat-lo); stroke: #ffffff; stroke-width: 1.7; transition: stroke 0.4s ease, fill 0.5s ease; }
.lock__hole { fill: none; stroke: #ffffff; stroke-width: 1.7; stroke-linecap: round; transition: stroke 0.4s ease; }
.bf.is-open .lock__arc, .bf.is-open .lock__body, .bf.is-open .lock__hole { stroke: var(--accent); }
.bf.is-open .lock__body { fill: #0c0d09; }

/* ---- the small close button ---- */
.bf__close {
  position: absolute;
  right: 10px;
  top: 15px;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  background: rgba(12, 13, 9, 0.08);
  box-shadow: inset 0 0 0 1px rgba(12, 13, 9, 0.08);
  color: var(--on-accent);
  display: grid;
  place-items: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  -webkit-tap-highlight-color: transparent;
  transition: background-color 0.25s ease;
}
.bf__close svg { width: 16px; height: 16px; }
.bf__close path { fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; }
.bf__close:focus-visible { outline: 2px solid #0d0d10; outline-offset: 2px; }
@media (hover: hover) {
  .bf__close:hover { background: rgba(12, 13, 9, 0.16); }
}

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
