/* Live Lottos — page layout on top of tokens.css + livelottos.css (the design system).
   Only layout, responsive switches and the motion keyframes live here. */

html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--surface-page); color: var(--ink); font-family: var(--font-body); font-size: 15px; line-height: 22px; }
a { color: var(--cta-700); }
img, svg { max-width: 100%; }
h1, h2, h3 { margin: 0; font-family: var(--font-display); }
h1 { font-size: 28px; line-height: 34px; font-weight: 700; letter-spacing: -0.01em; }
h2 { font-size: 22px; line-height: 28px; font-weight: 700; }
h3 { font-size: 18px; line-height: 24px; font-weight: 600; }
p { margin: 0; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 var(--space-4); }
.narrow { max-width: 640px; }
.stack { display: grid; gap: var(--space-4); }
.stack-lg { display: grid; gap: var(--space-6); }
.section { padding: var(--space-8) 0; }
@media (min-width: 900px) { .section { padding: var(--space-10) 0; } }
.muted { color: var(--ink-muted); }
.subtle { color: var(--ink-subtle); }
.sm { font-size: 13px; line-height: 19px; }
.xs { font-size: 12px; line-height: 16px; }
.legal { font-size: 11px; line-height: 16px; }
.center { text-align: center; }
.row { display: flex; gap: var(--space-3); align-items: center; }
.row-between { display: flex; gap: var(--space-3); align-items: center; justify-content: space-between; }
.tabular { font-variant-numeric: tabular-nums; }
.pad-for-bar { padding-bottom: var(--space-16); }
.card-pad { padding: var(--space-4); }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---- header: phone default, desktop from 900px ---- */
.site-header { position: relative; z-index: 20; }
.site-header .ll-header { justify-content: space-between; }
.site-header .ll-header__nav, .site-header .hdr-desktop { display: none; }
.site-header .ll-header__logo { height: 56px; width: auto; }
@media (min-width: 900px) {
  .site-header .ll-header { justify-content: flex-start; padding: var(--space-3) var(--space-6); }
  .site-header .ll-iconbtn, .site-header .ll-tabs { display: none; }
  .site-header .ll-header__nav, .site-header .hdr-desktop { display: flex; }
  .site-header .hdr-desktop { gap: var(--space-4); align-items: center; margin-left: var(--space-4); }
  .site-header .ll-header__logo { height: 68px; }
}
.drawer { display: none; background: var(--surface-brand-raised); padding: var(--space-2) var(--space-4) var(--space-4); }
.drawer.open { display: grid; }
.drawer a { color: var(--ink-on-brand); text-decoration: none; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.12); font: 600 15px/22px var(--font-display); }
@media (min-width: 900px) { .drawer { display: none !important; } }

/* ---- preview strip (deleted at go-live) ---- */
.preview-strip { background: var(--surface-tag); color: var(--placeholder-500); text-align: center; font-size: 12px; line-height: 16px; padding: 6px var(--space-4); }
.preview-strip a { color: var(--placeholder-500); }
.ll-placeholder__text a { color: var(--placeholder-700); }
.ll-placeholder ul { margin: 4px 0 0 18px; padding: 0; }
.jackpot-note { display: block; width: 100%; flex-basis: 100%; text-align: center; margin-top: 2px; opacity: .85; }
.ll-lottery-card__jackpot { display: flex; flex-wrap: wrap; justify-content: center; }
.jackpot-figure { display: block; width: 100%; }
.jackpot-figure--tbc { font-size: 22px; line-height: 32px; color: var(--ink-muted, #6b6b80); }
.ll-lottery-card__jackpot .jackpot-note { font-size: 12px; line-height: 16px; font-weight: 500; }
.ph-tag { display: inline-block; vertical-align: middle; background: var(--placeholder-200); color: var(--placeholder-700); font: 800 10px/12px var(--font-display); letter-spacing: .06em; text-transform: uppercase; padding: 3px 6px; border-radius: var(--radius-sm); text-decoration: none; }

/* ---- hero art + fireworks ---- */
.ll-hero { border-radius: 0; }
@media (min-width: 900px) { .ll-hero { border-radius: var(--radius-xl); } }
.hero-art { position: absolute; inset: 0; opacity: var(--opacity-hero-art); pointer-events: none; }
.hero-art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-page { background: var(--surface-brand); }
.hero-page .ll-hero { max-width: 1160px; margin: 0 auto; }
.fw { position: absolute; width: 8px; height: 8px; border-radius: 50%; opacity: 0; pointer-events: none; }
.fw::before, .fw::after { content: ""; position: absolute; inset: -60px; border-radius: 50%; border: 2px dotted rgba(255,255,255,.55); }
.fw::after { inset: -32px; border-style: solid; border-width: 1px; }
@keyframes ll-burst { 0% { transform: scale(.2); opacity: 0; } 12% { opacity: .28; } 40% { transform: scale(1); opacity: .16; } 60%, 100% { transform: scale(1.15); opacity: 0; } }
.fw { animation: ll-burst 6s ease-out infinite; }
.fw:nth-child(2) { animation-delay: 2s; } .fw:nth-child(3) { animation-delay: 4s; }
@keyframes ll-settle { from { transform: translateX(-6px); opacity: 0; } to { transform: none; opacity: 1; } }
.ll-pill--rollover { animation: ll-settle 200ms cubic-bezier(.2,.8,.2,1) both; }

/* ---- catalogue grid ---- */
.grid { display: grid; grid-template-columns: 1fr; gap: var(--space-3); }
@media (min-width: 600px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1200px) { .grid { grid-template-columns: repeat(4, 1fr); } }
/* Every card in the grid has the same shape: ribbon space, a fixed-height header,
   a fixed tag slot, the jackpot, a foot row, and the button pinned to the bottom. */
.grid { align-items: stretch; }
.grid .ll-card { display: flex; flex-direction: column; }
.grid .ll-lottery-card { flex: 1; display: grid; grid-template-rows: auto 1fr auto auto 34px; gap: var(--space-3); padding-top: 44px; padding-bottom: 0; }
.ll-lottery-card__top { align-items: flex-start; }
.ll-lottery-card__name { min-height: 48px; }
.ll-lottery-card__meta { min-height: 38px; }
.tag-slot { height: 30px; }
.ll-lottery-card__jackpot { align-self: end; text-align: center; }
.ll-lottery-card__foot { flex-wrap: nowrap; justify-content: center; }
.ll-lottery-card__foot .ll-tag--price { white-space: nowrap; font-size: 11px; padding: 6px 8px; }
/* One column on phones: nothing to align against, so the reserved heights go. */
@media (max-width: 599px) {
  .grid .ll-lottery-card { grid-template-rows: auto auto auto auto 34px; padding-top: 44px; padding-bottom: 0; }
  .ll-lottery-card__name, .ll-lottery-card__meta { min-height: 0; }
  .tag-slot { height: auto; }
  .tag-slot:empty { display: none; }
}
.ll-card > a.cover { position: absolute; inset: 0; z-index: 1; }
.ll-lottery-card .ll-btn { position: relative; z-index: 2; }
.sortbar { display: flex; align-items: center; gap: var(--space-3); }
.sortbar select { font: 500 14px/20px var(--font-body); padding: 8px 10px; border: 1px solid var(--border-control); border-radius: var(--radius-md); background: var(--surface-card); }

/* ---- line reveal ---- */
@keyframes ll-reveal { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.reveal .ll-lines__row { animation: ll-reveal 180ms ease-out both; }
.reveal .ll-lines__row:nth-child(1) { animation-delay: 0ms; } .reveal .ll-lines__row:nth-child(2) { animation-delay: 40ms; }
.reveal .ll-lines__row:nth-child(3) { animation-delay: 80ms; } .reveal .ll-lines__row:nth-child(4) { animation-delay: 120ms; }
.reveal .ll-lines__row:nth-child(5) { animation-delay: 160ms; } .reveal .ll-lines__row:nth-child(6) { animation-delay: 200ms; }
.reveal .ll-lines__row:nth-child(7) { animation-delay: 240ms; } .reveal .ll-lines__row:nth-child(8) { animation-delay: 280ms; }
.reveal .ll-lines__row:nth-child(9) { animation-delay: 320ms; } .reveal .ll-lines__row:nth-child(10) { animation-delay: 360ms; }

/* ---- sticky buy bar ---- */
.buybar-sticky { position: sticky; bottom: 0; z-index: 15; }
@media (min-width: 900px) {
  .product-grid { display: grid; grid-template-columns: 1fr 360px; gap: var(--space-6); align-items: start; }
  .buybar-sticky { position: sticky; top: var(--space-4); bottom: auto; }
  .buybar-sticky .ll-buybar { border: 1px solid var(--border-hairline); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); }
}
.ll-seg a { text-align: center; text-decoration: none; }
.buybar-inline { border: 1px solid var(--border-hairline); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); }
.buybar-controls { display: grid; grid-template-columns: 1fr auto; gap: var(--space-2); align-items: center; }
.buybar-controls .ll-seg__opt { padding: 8px 6px; white-space: nowrap; font-size: 13px; }
.stepper { display: inline-flex; align-items: center; background: var(--surface-sunken); border-radius: var(--radius-md); padding: 3px; }
.stepper__btn { width: 38px; height: 38px; border: 0; border-radius: 8px; background: var(--surface-card); color: var(--ink); font: 700 18px/1 var(--font-display); cursor: pointer; box-shadow: 0 1px 2px rgba(27,16,36,.12); }
.stepper__btn[disabled] { opacity: var(--opacity-disabled); cursor: default; }
.stepper__val { min-width: 62px; text-align: center; font: 700 15px/20px var(--font-body); }

/* ---- results balls ---- */
.ball { width: 36px; height: 36px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font: 700 15px/15px var(--font-body); background: var(--surface-card); border: 2px solid var(--surface-brand); font-variant-numeric: tabular-nums; }
.ball--bonus { border-color: #c9a800; background: var(--bonus-300); }

/* ---- reviews carousel ---- */
.carousel { display: flex; gap: var(--space-3); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 4px; }
.carousel::-webkit-scrollbar { display: none; }
.carousel .ll-review { scroll-snap-align: start; flex: 0 0 232px; }

/* ---- footer ---- */
.ll-footer__cols details summary { list-style: none; cursor: pointer; }
.ll-footer__cols details summary::-webkit-details-marker { display: none; }
.ll-footer__cols ul { margin-top: var(--space-3); }
@media (min-width: 900px) {
  .ll-footer { padding: var(--space-8) var(--space-6); }
  .ll-footer__cols { grid-template-columns: repeat(3, 1fr); }
  .ll-footer__cols details > *:not(summary) { display: block; }
  .ll-footer__cols summary { pointer-events: none; }
  .ll-footer__legal { padding: var(--space-5) var(--space-6); }
}
.footer-brand { display: flex; justify-content: space-between; align-items: center; gap: var(--space-4); flex-wrap: wrap; }
.footer-brand img { height: 60px; }

/* ---- chat bubble ---- */
.chat-fab { position: fixed; right: var(--space-4); bottom: 88px; z-index: 14; text-decoration: none; }
@media (min-width: 900px) { .chat-fab { bottom: var(--space-6); } }

/* ---- forms ---- */
.form-grid { display: grid; gap: var(--space-3); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3); }
.flash { background: var(--live-100); color: var(--ink); border-radius: var(--radius-md); padding: var(--space-3) var(--space-4); font-size: 13px; line-height: 19px; }
.flash strong { color: var(--live-600); }
.flash--ok { background: var(--cta-100); }

/* ---- modals (cancel ladder) ---- */
dialog.ll-modal { border: 0; padding: var(--space-5); margin: auto; }
dialog.ll-modal::backdrop { background: rgba(40,7,56,.62); }

/* ---- confetti + typing (order placed) ---- */
.confetti { position: fixed; inset: 0; pointer-events: none; overflow: hidden; z-index: 40; }
.confetti i { position: absolute; top: -12px; width: 8px; height: 12px; border-radius: 2px; animation: ll-fall 1.5s ease-in forwards; }
@keyframes ll-fall { to { transform: translateY(105vh) rotate(540deg); opacity: 0; } }

/* ---- steps ---- */
.steps { display: grid; gap: var(--space-3); }
@media (min-width: 700px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step-num { width: 32px; height: 32px; border-radius: 50%; background: var(--accent-500); color: var(--ink); display: inline-flex; align-items: center; justify-content: center; font: 800 15px/1 var(--font-display); }

/* ---- readiness table ---- */
table.tbl { width: 100%; border-collapse: collapse; font-size: 13px; line-height: 19px; }
.tbl th, .tbl td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--border-hairline); vertical-align: top; }
.tbl th { font: 800 11px/14px var(--font-display); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-muted); }
.st { display: inline-block; border-radius: var(--radius-sm); padding: 2px 8px; font: 800 11px/16px var(--font-display); letter-spacing: .06em; text-transform: uppercase; }
.st-missing { background: var(--live-100); color: var(--live-600); } .st-received { background: var(--placeholder-200); color: var(--placeholder-700); } .st-live { background: var(--cta-100); color: #05502e; }

/* ---- reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .fw { display: none; }
}

/* ---------- offers, extras, alerts ---------------------------------------- */
.offer-card { display: flex; flex-direction: column; gap: var(--space-2); }
.offer-card h3 { font-size: 18px; line-height: 24px; }
.offer-card > .ll-btn, .offer-card > button { align-self: flex-start; margin-top: auto; }
.offer-grid { align-items: stretch; }
.extras__row { padding-top: var(--space-2); border-top: 1px solid var(--border, #e6e6ef); }
.extras__row:first-of-type { border-top: 0; padding-top: 0; }
.inline-select { display: inline-block; width: auto; padding: 2px 6px; height: auto; font-size: 13px; }
.ll-check input[disabled] + span, .ll-seg__opt[disabled] { opacity: .55; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border: 1px solid var(--border, #e6e6ef); border-radius: 999px; font-size: 13px; line-height: 18px; cursor: pointer; background: var(--surface, #fff); }
.chip input { margin: 0; }
.chip:has(input:checked) { border-color: var(--brand-600, #5b2ea6); background: var(--brand-50, #f3ecff); }
.progress { height: 10px; border-radius: 999px; background: var(--surface-sunken, #eeeaf6); overflow: hidden; }
.progress > span { display: block; height: 100%; background: var(--brand-600, #5b2ea6); border-radius: 999px; }

/* ---------- jackpot rise indicator ------------------------------------------------ */
.rise-pill { display: inline-block; vertical-align: middle; margin-left: 6px; padding: 2px 8px; border-radius: 999px;
  font: 700 11px/16px var(--font-display); letter-spacing: .02em; font-variant-numeric: tabular-nums;
  color: var(--success-700, #0a7a3d); background: var(--success-100, #e3f7ea); white-space: nowrap; }
.rise-pill--hero { margin-left: 0; font-size: 12px; line-height: 18px; padding: 3px 10px; background: rgba(255,255,255,.16); color: #fff; }

/* ---------- card stats footer (Winnow style): rollover count left, jackpot increase right ---------- */
.grid .ll-lottery-card { container-type: inline-size; }
.ll-lottery-card__stats { display: flex; align-items: center; justify-content: center; gap: var(--space-2);
  margin: 0 calc(-1 * var(--space-4)) 0; padding: 0 var(--space-4); height: 34px; min-height: 34px; align-self: end;
  background: var(--surface-brand-deep, #2a0b3f); color: var(--ink-on-brand-muted, rgba(255, 255, 255, .78)); border-radius: 0 0 var(--radius-lg, 16px) var(--radius-lg, 16px);
  font: 500 11px/34px var(--font-body); letter-spacing: .01em; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; }
.ll-lottery-card__stats .stat { display: inline-flex; align-items: center; gap: 4px; flex: none; }
.ll-lottery-card__stats .stat b { font-weight: 700; color: #fff; }
.ll-lottery-card__stats .stat--rise { color: var(--success-300, #6fe3a3); }
.ll-lottery-card__stats .stat--rise b { color: inherit; }
.ll-lottery-card__stats .stat--rise svg { flex: none; }
.ll-lottery-card__stats .stat__label { margin-left: 2px; color: rgba(255, 255, 255, .78); }
@container (max-width: 200px) { .ll-lottery-card__stats .stat__label { display: none; } }
.ll-card--rollover .ll-lottery-card__stats { background: var(--surface-brand-deep, #2a0b3f); }

.ll-ribbon b { font-weight: 800; margin-left: 3px; }

.ll-lottery-card__stats .stat--quiet { color: var(--ink-on-brand-muted, rgba(255,255,255,.6)); font-weight: 500; }

.results-next { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); flex-wrap: wrap; }

/* ---------- home hero: total-jackpots badge at the top, rise strip at the foot ---------- */
.ll-hero__total { display: inline-flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 22px; border-radius: 999px;
  background: var(--gold-400, #f6c34a); color: #2a0b3f; box-shadow: 0 6px 24px rgba(246, 195, 74, .35); margin-bottom: var(--space-2); }
.ll-hero__total-figure { font: 800 26px/28px var(--font-display); letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.ll-hero__total-label { font: 700 11px/14px var(--font-body); letter-spacing: .06em; text-transform: uppercase; opacity: .85; }
.ll-hero { padding-bottom: 0 !important; }
.ll-hero__inner { padding-bottom: var(--space-6); }
.ll-hero__rise { position: relative; display: flex; align-items: center; justify-content: center; gap: 6px; height: 40px;
  margin: 0 calc(-1 * var(--space-4)); background: rgba(0, 0, 0, .28); color: var(--success-300, #6fe3a3);
  font: 500 12px/40px var(--font-body); letter-spacing: .01em; font-variant-numeric: tabular-nums; }
.ll-hero__rise b { font-weight: 800; }
@media (min-width: 900px) { .ll-hero__rise { margin: 0; } }

/* ---------- design round 2 reconciliation ---------------------------------- */
/* cardv2 with our two extra rows: a meta line under the name and the stats strip at the foot */
.ll-cardv2 { grid-template-rows: auto auto auto auto 1fr auto 34px; padding-bottom: 0; }
.ll-cardv2 .cover { position: absolute; inset: 0; z-index: 1; }
.ll-cardv2 .ll-btn, .ll-cardv2 .ll-cardv2__stats { position: relative; z-index: 2; }
.ll-cardv2__meta { font-size: 13px; line-height: 18px; color: var(--ink-muted); margin-top: -4px; }
.ll-cardv2__jackpot--tbc { font-size: 22px; color: var(--ink-muted); }
.ll-cardv2__figure .jackpot-note { width: 100%; }
.ll-cardv2__stats { display: flex; align-items: center; justify-content: center; gap: var(--space-2);
  margin: 0 calc(-1 * var(--space-3)) 0; padding: 0 var(--space-3); height: 34px; min-height: 34px; align-self: end;
  background: var(--surface-brand-deep, #2a0b3f); color: var(--ink-on-brand-muted, rgba(255,255,255,.78));
  border-radius: 0 0 var(--radius-lg, 16px) var(--radius-lg, 16px);
  font: 500 11px/34px var(--font-body); letter-spacing: .01em; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; }
.ll-cardv2__stats .stat { display: inline-flex; align-items: center; gap: 4px; flex: none; }
.ll-cardv2__stats .stat b { font-weight: 700; color: #fff; }
.ll-cardv2__stats .stat--rise { color: var(--success-300, #6fe3a3); }
.ll-cardv2__stats .stat--rise b { color: inherit; }
.ll-cardv2__stats .stat--quiet { color: var(--ink-on-brand-muted, rgba(255,255,255,.6)); }
.ll-cardv2__stats .stat__label { margin-left: 2px; }
.ll-cardv2 .ll-ribbon b { font-weight: 800; margin-left: 3px; }
/* hero art v2 sits behind the content; the rise strip stays at the foot of our heroes */
.ll-hero > picture { position: absolute; inset: 0; display: block; pointer-events: none; }
.ll-hero > picture > .ll-hero__art--v2 { display: block; }
.ll-hero { position: relative; overflow: hidden; }
.ll-hero__inner { position: relative; z-index: 1; }
.ll-hero__rise { z-index: 1; }
.ll-hero__total { position: relative; z-index: 1; }
/* v2 buy bar: our data hooks; the disabled Big Share segment */
.ll-tier__opt[disabled] { opacity: .5; cursor: not-allowed; }
.ll-buy .ll-btn--lg { margin-top: var(--space-2); }

/* card button runs edge to edge and sits directly on the stats strip */
.ll-cardv2 > .ll-btn { margin: 0 calc(-1 * var(--space-3)) calc(-1 * var(--space-2)); width: calc(100% + 2 * var(--space-3)); max-width: none;
  border-radius: var(--radius-md, 12px) var(--radius-md, 12px) 0 0; align-self: end; }

/* phones: cards stack one per row (Joey, 29 Sep). Two-up from 640px, four-up from 900px. */
.ll-grid { grid-template-columns: 1fr; }
@media (min-width: 360px) { .ll-grid { grid-template-columns: 1fr; } }
@container llgrid (max-width: 639px) { .ll-grid { grid-template-columns: 1fr; } }
@container llgrid (min-width: 640px) and (max-width: 899px) { .ll-grid { grid-template-columns: repeat(2, 1fr); } }
@container llgrid (min-width: 900px) { .ll-grid { grid-template-columns: repeat(4, 1fr); } }


/* ---- Live Rewards envelope: account card, and the full-screen opening (artwork: Claude Design) ------------- */
.reward-ready { display: flex; align-items: center; gap: var(--space-4); flex-wrap: wrap; border: 1px solid var(--gold-400, #ffc233);
  background: linear-gradient(135deg, var(--gold-100, #fff3d1), #fff 60%); }
.env-icon { flex: none; width: 58px; height: 38px; filter: drop-shadow(0 2px 3px rgba(60, 30, 0, .3)); }
.reward-ladder { width: 100%; border-collapse: collapse; }
.reward-ladder th, .reward-ladder td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--border-hairline, #e6e1ec); font-size: 14px; line-height: 20px; vertical-align: top; }
.reward-ladder th { font: 600 12px/16px var(--font-body); letter-spacing: .04em; text-transform: uppercase; color: var(--ink-muted, #5b5266); }

/* the stage */
.env-stage { position: fixed; inset: 0; z-index: 1000; overflow: hidden; color: #fff; display: grid; place-items: center;
  background: radial-gradient(circle at 50% 38%, #4a1468 0%, #26103a 55%, #150720 100%); }
.env-stage[hidden] { display: none; }
.env-stage::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .7s;
  background: radial-gradient(circle at 50% 40%, #7a5412 0%, #3d2707 55%, #1d1203 100%); }
.env-stage > * { z-index: 1; }
.env-stage__rays { position: absolute; left: 50%; top: 38%; width: 200vmax; height: 200vmax; margin: -100vmax 0 0 -100vmax; pointer-events: none;
  background: repeating-conic-gradient(from 0deg, rgba(255, 255, 255, .07) 0 6deg, transparent 6deg 20deg);
  -webkit-mask-image: radial-gradient(circle, transparent 6%, #000 18%, transparent 52%); mask-image: radial-gradient(circle, transparent 6%, #000 18%, transparent 52%);
  animation: envSpin 60s linear infinite; }
.env-stage__sparks { position: absolute; inset: 0; pointer-events: none; }
.env-stage__sparks i { position: absolute; width: 18px; height: 18px; background: var(--sparkle) center/contain no-repeat; opacity: .55; animation: envTwinkle 4s ease-in-out infinite; }
.env-stage__sparks i:nth-child(1) { left: 20%; top: 25%; }
.env-stage__sparks i:nth-child(2) { left: 82%; top: 31%; width: 11px; height: 11px; animation-delay: 1.3s; }
.env-stage__sparks i:nth-child(3) { left: 28%; top: 50%; width: 10px; height: 10px; animation-delay: 2.1s; }
.env-stage__sparks i:nth-child(4) { left: 76%; top: 54%; width: 15px; height: 15px; animation-delay: .7s; }
.env-stage__sparks i:nth-child(5) { left: 12%; top: 40%; width: 9px; height: 9px; animation-delay: 2.8s; }
.env-stage__sparks i:nth-child(6) { left: 64%; top: 20%; width: 9px; height: 9px; animation-delay: 1.8s; }
.env-stage__body { position: absolute; left: 0; right: 0; top: 38%; transform: translateY(-50%); display: grid; justify-items: center; gap: 0;
  transition: transform .7s cubic-bezier(.4, 0, .2, 1), opacity .55s, filter .7s; }
.env-stage__text { position: absolute; left: 16px; right: 16px; top: calc(100% + 96px); text-align: center; display: grid; justify-items: center; gap: 8px; transition: opacity .3s; }
.env-stage__title { margin: 0; font: 700 22px/28px var(--font-display); color: #fff; }
.env-stage__sub { margin: 0; font: 400 15px/21px var(--font-body); color: rgba(255, 255, 255, .78); max-width: 30ch; }
.env-stage__pill { margin-top: 10px; display: inline-block; padding: 9px 18px; border-radius: 999px; background: rgba(255, 255, 255, .13); font: 600 14px/18px var(--font-display); }
.env-stage__legal { position: absolute; left: 0; right: 0; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); margin: 0; text-align: center; font: 400 12px/16px var(--font-body); color: rgba(255, 255, 255, .55); }

/* the envelope: every layer shares one canvas, so they stack exactly */
.env { --w: 240px; --rx: 0deg; --ry: 0deg; --sx: 50%; position: relative; display: block; width: var(--w); height: calc(var(--w) * .6606); border: 0; padding: 0; background: none;
  cursor: pointer; -webkit-tap-highlight-color: transparent; animation: envFloat 5s ease-in-out infinite; }
.env:focus-visible { outline: 3px solid var(--gold-400, #ffc233); outline-offset: 10px; border-radius: 8px; }
.env__tilt { position: absolute; inset: 0; transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry)) rotate(-3deg); transition: transform .2s ease-out; }
.env__layer { position: absolute; inset: 0; background: center/100% 100% no-repeat; }
.env__shadow { background-image: var(--std-shadow); z-index: 0; }
.env__back { background-image: var(--std-back); z-index: 1; }
.env__front { background-image: var(--std-front); z-index: 3; }
.env__flap { background-image: var(--std-flap); }
.env__flapin { background-image: var(--std-flap-inside); opacity: 0; }
.env-stage[data-tier="anniversary"] .env__shadow { background-image: var(--ann-shadow); }
.env-stage[data-tier="anniversary"] .env__back { background-image: var(--ann-back); }
.env-stage[data-tier="anniversary"] .env__front { background-image: var(--ann-front); }
.env-stage[data-tier="anniversary"] .env__flap { background-image: var(--ann-flap); }
.env-stage[data-tier="anniversary"] .env__flapin { background-image: var(--ann-flap-inside); }
/* the sheen: the designer's holo strip as a gradient, clipped to the foil by the layer's own alpha, slid by the tilt */
.env__holo { position: absolute; inset: 0; pointer-events: none; mix-blend-mode: soft-light; opacity: .3;
  background: linear-gradient(105deg, #ffb3d4 0%, #fff0b0 16%, #ffffff 30%, #bfe6ff 44%, #e2ccff 58%, #ffb3d4 72%, #fff0b0 86%, #ffffff 100%) var(--sx) 0 / 300% 100%;
  -webkit-mask: center/100% 100% no-repeat; mask: center/100% 100% no-repeat; transition: background-position .25s ease-out; }
.env__holo--front { -webkit-mask-image: var(--std-front); mask-image: var(--std-front); z-index: 3; }
.env__holo--flap { -webkit-mask-image: var(--std-flap); mask-image: var(--std-flap); }
.env-stage[data-tier="anniversary"] .env__holo--front { -webkit-mask-image: var(--ann-front); mask-image: var(--ann-front); }
.env-stage[data-tier="anniversary"] .env__holo--flap { -webkit-mask-image: var(--ann-flap); mask-image: var(--ann-flap); }
.env-stage[data-tier="quarter"] .env__holo { opacity: .55; mix-blend-mode: overlay; }
.env__flapwrap { position: absolute; inset: 0; z-index: 4; transform-origin: 50% 2.75%; transform: perspective(700px) rotateX(0deg); transition: transform .6s cubic-bezier(.45, 0, .2, 1); }
/* the card waiting in the pocket: the top of the reward card */
.env__peek { position: absolute; left: 19%; right: 19%; top: 9%; height: 82%; z-index: 2; border-radius: 6px 6px 0 0; background: var(--card) top center/100% auto no-repeat;
  box-shadow: 0 0 18px rgba(255, 226, 150, 0); transition: transform .7s cubic-bezier(.2, .85, .3, 1), box-shadow .5s, opacity .25s; }
.env__flarebehind { position: absolute; left: 50%; top: 10%; width: 150%; height: 150%; margin: -75% 0 0 -75%; z-index: 1; background: var(--flare) center/contain no-repeat; opacity: 0;
  transform: scale(.4); transition: opacity .5s, transform .8s; pointer-events: none; }
/* wax seal: two halves of one image, so it can crack */
.env__seal { position: absolute; left: 50%; top: 56%; width: 20%; aspect-ratio: 1; transform: translate(-50%, -50%); z-index: 5; }
.env__seal i { position: absolute; inset: 0; background: var(--std-seal) center/100% 100% no-repeat; transition: transform .5s cubic-bezier(.3, 0, .6, 1), opacity .35s .25s; }
.env-stage[data-tier="anniversary"] .env__seal i { background-image: var(--ann-seal); }
.env__seal-l { clip-path: polygon(0 0, 53% 0, 46% 20%, 55% 38%, 45% 58%, 54% 78%, 48% 100%, 0 100%); transform-origin: 30% 90%; }
.env__seal-r { clip-path: polygon(53% 0, 100% 0, 100% 100%, 48% 100%, 54% 78%, 45% 58%, 55% 38%, 46% 20%); transform-origin: 70% 90%; }
.env__seal-light { position: absolute; left: 50%; top: -30%; width: 3px; height: 160%; margin-left: -1px; border-radius: 3px; opacity: 0;
  background: linear-gradient(180deg, transparent, #fff6d6 30%, #fff 50%, #fff6d6 70%, transparent); filter: blur(.6px); }

/* the reward card: the designer's nine-slice card, the reward written by the code */
.env-card { position: absolute; left: 50%; top: 40%; width: min(300px, calc(100vw - 56px)); min-height: 330px; box-sizing: border-box; color: var(--ink, #1b1024); text-align: center;
  border-style: solid; border-width: 76px 19px 19px; border-image: var(--card) 260 64 64 64 fill / 76px 19px 19px stretch;
  padding: 18px 10px 22px; display: grid; align-content: center; gap: 10px; filter: drop-shadow(0 22px 40px rgba(0, 0, 0, .45));
  transform: translate(-50%, -62%) scale(.56); opacity: 0; pointer-events: none; transition: transform .75s cubic-bezier(.25, .9, .3, 1), opacity .25s; }
.env-card__list { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.env-card__list li { font: 600 15px/21px var(--font-body); color: var(--ink, #1b1024); }
.env-card__list li:first-child { font: 800 20px/26px var(--font-display); }
.env-card__list li + li { padding-top: 10px; border-top: 1px solid rgba(201, 138, 18, .35); }
.env-card__note { margin: 0; font: 400 13px/18px var(--font-body); color: var(--ink-muted, #5b5266); }
.env-stage__after { position: absolute; left: 24px; right: 24px; bottom: calc(56px + env(safe-area-inset-bottom, 0px)); display: grid; gap: 8px; text-align: center; justify-items: center;
  opacity: 0; transform: translateY(10px); pointer-events: none; transition: opacity .4s, transform .4s; }
.env-stage__after .ll-btn { max-width: 320px; margin-top: 8px; }
.env-stage__nice { margin: 0; font: 700 22px/28px var(--font-display); color: #fff; }
.env-stage__next { margin: 0; font: 400 15px/21px var(--font-body); color: rgba(255, 255, 255, .8); }

/* the opening, one beat per class (added in order by site.js): crack, flap, rise, open */
.env-stage.is-crack .env { animation-play-state: paused; }
.env-stage.is-crack .env-stage__text { opacity: 0; }
.env-stage.is-crack .env__seal-l { transform: translate(-22%, 30%) rotate(-24deg); opacity: 0; }
.env-stage.is-crack .env__seal-r { transform: translate(22%, 30%) rotate(24deg); opacity: 0; }
.env-stage.is-crack .env__seal-light { animation: envCrack .45s ease-out; }
.env-stage.is-flap .env__flapwrap { transform: perspective(700px) rotateX(180deg); z-index: 1; transition: transform .6s cubic-bezier(.45, 0, .2, 1), z-index 0s .3s; }
.env-stage.is-flap .env__flap, .env-stage.is-flap .env__holo--flap { opacity: 0; transition: opacity 0s .3s; }
.env-stage.is-flap .env__flapin { opacity: 1; transition: opacity 0s .3s; }
.env-stage.is-rise .env__peek { transform: translateY(-58%); box-shadow: 0 0 26px rgba(255, 226, 150, .75); }
.env-stage.is-rise .env__flarebehind { opacity: .85; transform: scale(1); }
.env-stage.is-open::after { opacity: 1; }
.env-stage.is-open .env-stage__rays { opacity: .5; }
.env-stage.is-open .env-stage__body { transform: translateY(-50%) translateY(34px) scale(.72); opacity: 0; filter: brightness(.5); pointer-events: none; }
.env-stage.is-open .env-card { transform: translate(-50%, -50%) scale(1); opacity: 1; pointer-events: auto; }
.env-stage.is-open .env-stage__after { opacity: 1; transform: none; pointer-events: auto; transition-delay: .55s; }
/* a second tap, or a member who has seen it a dozen times: straight to the card */
.env-stage.is-skip *, .env-stage.is-skip::after { transition: none !important; animation: none !important; }

@keyframes envSpin { to { transform: rotate(360deg); } }
@keyframes envFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes envTwinkle { 0%, 100% { opacity: .15; transform: scale(.7); } 50% { opacity: .75; transform: scale(1); } }
@keyframes envCrack { 0% { opacity: 0; transform: scaleY(.2); } 35% { opacity: 1; transform: scaleY(1); } 100% { opacity: 0; transform: scaleY(1.1); } }
/* No motion: no float, tilt, sheen slide, swing or flare. A tap cross-fades to the same card over 200ms. */
@media (prefers-reduced-motion: reduce) {
  .env-stage *, .env-stage::after { animation: none !important; transition: opacity .2s linear !important; }
  .env__tilt { transform: none !important; }
  .env-stage.is-open .env-stage__body { transform: translateY(-50%); }
  .env-card { transform: translate(-50%, -50%) scale(1); }
}


/* ticket count inside a call-to-action: quieter than the label, set off by a hairline */
.ll-btn .btn-sub { display: inline-block; margin-left: .6em; padding-left: .6em; border-left: 1px solid currentColor; font-weight: 600; font-size: .86em; line-height: 1.1; opacity: .88; white-space: nowrap; }
.ll-hero .ll-btn { flex-wrap: wrap; height: auto; }
.ll-hero .ll-btn .btn-sub { display: block; flex-basis: 100%; margin: 3px 0 0; padding: 0; border: 0; font-size: .78em; }


/* ---- Live Bundles and Jackpot Clubs ---------------------------------------------------------------------------- */
.bundle-grid { display: grid; grid-template-columns: 1fr; gap: var(--space-3); }
@media (min-width: 700px) { .bundle-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .bundle-grid { grid-template-columns: repeat(3, 1fr); } }
.bundle-card { display: grid; grid-template-rows: auto 1fr auto auto; gap: var(--space-3); padding: var(--space-4) var(--space-4) var(--space-3); }
.bundle-card--club { border-color: var(--gold-400, #ffc233); background: linear-gradient(160deg, var(--gold-100, #fff3d1), #fff 55%); }
.bundle-card__head { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--space-3); }
.bundle-card__balls, .bundle-hero__balls { display: flex; flex: none; }
.bundle-card__balls > * + *, .bundle-hero__balls > * + * { margin-left: -10px; }
.bundle-card__balls > *, .bundle-hero__balls > * { box-shadow: 0 0 0 2px #fff; border-radius: 50%; }
.bundle-hero__balls { justify-content: center; }
.bundle-card__figure { display: grid; gap: 2px; align-content: end; }
.bundle-card__then { text-align: center; }
.bundle-item { display: flex; align-items: center; gap: var(--space-3); padding: 12px 0; border-bottom: 1px solid var(--border-hairline, #e6e1ec); }
.bundle-item:last-child { border-bottom: 0; }


/* Live Days: draw-day chips in the buy box */
.day-chips { display: inline-flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.day-chip { font: 600 13px/18px var(--font-body); padding: 7px 12px; border-radius: 999px; border: 1px solid var(--border-control, #cfc8d8); background: #fff; color: var(--ink-muted, #5b5266); cursor: pointer; }
.day-chip[aria-pressed="true"] { background: var(--surface-brand-deep, #280738); border-color: var(--surface-brand-deep, #280738); color: #fff; }
.day-chip:focus-visible { outline: 3px solid var(--gold-400, #ffc233); outline-offset: 2px; }

/* Add to home screen: bottom sheet and account prompts */
[data-a2hs-show][hidden], .a2hs[hidden], .a2hs [hidden] { display: none !important; }
.a2hs { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 60; max-width: 440px; margin: 0 auto;
  background: var(--surface, #fff); color: var(--ink, #1c1024); border-radius: 18px; padding: 18px 18px 16px; display: flex; flex-direction: column; gap: 12px;
  box-shadow: 0 18px 50px rgba(40,7,56,.35), 0 0 0 1px rgba(40,7,56,.08); animation: a2hs-up .35s ease-out; }
@keyframes a2hs-up { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .a2hs { animation: none; } }
.a2hs__head { display: flex; gap: 12px; align-items: center; padding-right: 28px; }
.a2hs__head img { border-radius: 12px; flex: none; }
.a2hs__close { position: absolute; top: 8px; right: 10px; width: 36px; height: 36px; border: 0; background: none; font-size: 26px; line-height: 1; color: var(--ink-muted, #6b5a75); cursor: pointer; }
.a2hs__steps { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; font-size: 15px; }
.a2hs-card { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.a2hs-card img { border-radius: 10px; flex: none; }

/* Guides and the printable syndicate agreement */
.guide ol, .guide ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.guide h3 { margin: var(--space-2) 0 0; }
.syn-form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 24px; }
@media (max-width: 640px) { .syn-form__grid { grid-template-columns: 1fr; } }
.syn-line { display: flex; flex-direction: column; gap: 18px; font-size: 13px; color: var(--ink-muted, #6b5a75); }
.syn-line i { display: block; border-bottom: 1px solid currentColor; }
.syn-blank { display: inline-block; min-width: 56px; border-bottom: 1px solid currentColor; }
.syn-rules { font-size: 15px; }
.syn-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.syn-table th { text-align: left; font-weight: 600; padding: 6px 8px; border-bottom: 2px solid currentColor; }
.syn-table td { height: 34px; border-bottom: 1px solid rgba(40,7,56,.35); border-right: 1px solid rgba(40,7,56,.12); }
.syn-table td:last-child { border-right: 0; }
@media print {
  .site-header, .ll-footer, footer, .preview-strip, .a2hs, .no-print, .flash, .chat-fab { display: none !important; }
  body { background: #fff !important; }
  .section { padding: 0 !important; }
  .syn-form { box-shadow: none !important; border: 0 !important; padding: 0 !important; color: #000; }
  .syn-form__grid { grid-template-columns: 1fr 1fr; }
  .syn-table td { height: 30px; }
}
@media (max-width: 640px) { .syn-table { font-size: 11px; } .syn-table th { padding: 6px 4px; } }

/* Go Big rows */
.gobig-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.plain-steps { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
