/* ✩ snagz — y2k sticker retro ✩ */

:root {
  color-scheme: light;
  --pink: #ff5ec8;
  --pink-soft: #ffa6c9;
  --lilac: #b18cff;
  --sky: #7dd3fc;
  --lime: #cdf25d;
  --butter: #ffe86b;
  --ink: #241245;       /* adaptive: text + surface outlines (goes light in dark mode) */
  --ink-hard: #241245;  /* constant: outlines/text on candy surfaces (stickers stay stickers) */
  --paper: #fff3fa;     /* page */
  --white: #ffffff;     /* card surface (adaptive despite the name) */
  --input-bg: #fff7fc;
  --input-focus: #ffffff;
  --line: rgba(36, 18, 69, .15);      /* faint rules, rings, grab pills */
  --soft: rgba(36, 18, 69, .3);       /* soft shadows (sticker lift) */
  --backdrop: rgba(36, 18, 69, .45);  /* overlay dim */
  --ok: #2eaf64;
  --danger: #d23b6b;
  --shadow: 0 5px 0 var(--ink);
  --shadow-sm: 0 3px 0 var(--ink);
  --radius: 22px;
  --font: 'Baloo 2', 'Arial Rounded MT Bold', system-ui, sans-serif;
}

/* midnight y2k — deep plum room, neon-glow outlines, same candy accents.
   Two blocks so the manual toggle beats the system preference in both directions. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --ink: #f4ecff;
    --paper: #150e29;
    --white: #261a48;
    --input-bg: #1c1236;
    --input-focus: #31215a;
    --line: rgba(244, 236, 255, .22);
    --soft: rgba(0, 0, 0, .55);
    --backdrop: rgba(5, 2, 15, .62);
    --ok: #4ade80;
    --danger: #ff7ea6;
  }
  :root:not([data-theme="light"]) .checker {
    background-image: repeating-conic-gradient(rgba(255, 94, 200, .09) 0% 25%, transparent 0% 50%);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --ink: #f4ecff;
  --paper: #150e29;
  --white: #261a48;
  --input-bg: #1c1236;
  --input-focus: #31215a;
  --line: rgba(244, 236, 255, .22);
  --soft: rgba(0, 0, 0, .55);
  --backdrop: rgba(5, 2, 15, .62);
  --ok: #4ade80;
  --danger: #ff7ea6;
}
:root[data-theme="dark"] .checker {
  background-image: repeating-conic-gradient(rgba(255, 94, 200, .09) 0% 25%, transparent 0% 50%);
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
  height: 100%;
  overscroll-behavior-y: none;
}

body {
  font-family: var(--font);
  background:
    radial-gradient(circle at 15% 20%, rgba(177, 140, 255, .18) 0 120px, transparent 140px),
    radial-gradient(circle at 85% 10%, rgba(125, 211, 252, .2) 0 90px, transparent 110px),
    radial-gradient(circle at 80% 80%, rgba(255, 94, 200, .12) 0 140px, transparent 160px),
    var(--paper);
  color: var(--ink);
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
}

#app { max-width: 480px; margin: 0 auto; min-height: 100dvh; position: relative; }

.screen { display: none; padding: 18px 16px 110px; animation: screen-in .2s ease-out; }
.screen.on { display: block; }
@keyframes screen-in { from { opacity: 0; transform: translateY(10px); } }

/* ---------- type ---------- */

.logo {
  font-weight: 800;
  font-size: 30px;
  letter-spacing: -.5px;
  background: linear-gradient(180deg, #fff 0%, var(--sky) 30%, var(--pink) 65%, var(--lilac) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(1.5px 2px 0 var(--ink));
  display: inline-block;
  transform: rotate(-2deg);
}

h2.section-title {
  font-size: 19px;
  font-weight: 800;
  margin: 26px 0 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.muted { opacity: .65; font-weight: 600; }

/* ---------- sticker cards ---------- */

.card {
  background: var(--white);
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px;
  position: relative;
}
.card.tilt-l { transform: rotate(-1.2deg); }
.card.tilt-r { transform: rotate(1.1deg); }

.checker {
  background-image: repeating-conic-gradient(rgba(255,94,200,.05) 0% 25%, transparent 0% 50%);
  background-size: 22px 22px;
}

.deco {
  position: absolute;
  font-size: 22px;
  filter: drop-shadow(1px 2px 0 var(--soft));
  pointer-events: none;
  animation: twinkle 2.6s ease-in-out infinite;
}
@keyframes twinkle {
  0%, 100% { transform: scale(1) rotate(-8deg); }
  50% { transform: scale(1.25) rotate(10deg); }
}

/* ---------- buttons & chips ---------- */

.btn {
  font-family: var(--font);
  font-weight: 800;
  font-size: 17px;
  color: var(--ink-hard);
  background: linear-gradient(180deg, #fff 0%, var(--butter) 100%);
  border: 3px solid var(--ink-hard);
  border-radius: 18px;
  padding: 12px 20px;
  box-shadow: 0 3px 0 var(--ink-hard);
  cursor: pointer;
  transition: transform .12s cubic-bezier(.34,1.56,.64,1), box-shadow .12s;
}
.btn:active { transform: translateY(3px) scale(.97); box-shadow: 0 0 0 var(--ink-hard); }
.btn.loading {
  opacity: .7;
  pointer-events: none;
  animation: btn-loading .9s ease-in-out infinite;
}
@keyframes btn-loading {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(.975); }
}
.btn.pink { background: linear-gradient(180deg, #ffd6ef 0%, var(--pink) 100%); color: #fff; text-shadow: 0 1.5px 0 var(--ink-hard); }
.btn.big { width: 100%; font-size: 19px; padding: 15px 20px; border-radius: 22px; }
.btn.ghost { background: transparent; box-shadow: none; border-color: transparent; font-weight: 700; color: var(--ink); }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fff; /* chips are stickers — always white, always dark-inked */
  color: var(--ink-hard);
  border: 2.5px solid var(--ink-hard);
  border-radius: 999px;
  padding: 5px 12px;
  font-weight: 700;
  font-size: 13.5px;
  box-shadow: 0 2.5px 0 var(--ink-hard);
}
.chip.lime { background: var(--lime); }
.chip.pinky { background: var(--pink-soft); }
.chip.sky { background: var(--sky); }

/* ---------- product art (die-cut stickers) ---------- */

.diecut, .drop-pile {
  /* zero-blur shadows in 8 directions = crisp die-cut edge, no fade.
     on .drop-pile the outline traces the union silhouette of the whole cluster */
  filter:
    drop-shadow(2px 0 0 #fff) drop-shadow(-2px 0 0 #fff)
    drop-shadow(0 2px 0 #fff) drop-shadow(0 -2px 0 #fff)
    drop-shadow(1.4px 1.4px 0 #fff) drop-shadow(-1.4px -1.4px 0 #fff)
    drop-shadow(1.4px -1.4px 0 #fff) drop-shadow(-1.4px 1.4px 0 #fff)
    drop-shadow(0 5px 6px var(--soft));
  object-fit: contain;
}

/* the drop's products gathered into one die-cut cluster on the card's side.
   No per-item animation: children moving inside the filtered parent would
   force the die-cut outline to re-rasterize every frame. */
.drop-pile {
  position: relative;
  width: 134px;
  height: 134px;
  flex-shrink: 0;
}
.drop-pile .pile-item {
  position: absolute;
  width: 84px;
  height: 84px;
  object-fit: contain;
  display: grid;
  place-items: center;
  font-size: 58px;
  line-height: 1;
}
.drop-pile .pile-item:nth-child(1) { top: 0; left: 0; transform: rotate(-8deg); }
.drop-pile .pile-item:nth-child(2) { bottom: 0; right: 0; transform: rotate(7deg); }
.drop-pile .pile-item:nth-child(3) { top: 25px; left: 37px; transform: rotate(2deg); }
.drop-pile .pile-item:only-child {
  inset: 0;
  margin: auto;
  width: 122px;
  height: 122px;
  font-size: 90px;
  transform: rotate(-4deg);
}
.art-thumb { width: 58px; height: 58px; font-size: 32px; display: grid; place-items: center; }
img.art-thumb { transform: rotate(-3deg); }
.art-hero { width: 150px; height: 150px; font-size: 74px; }
img.art-hero { animation: float 3s ease-in-out infinite; }
.art-bag { width: 46px; height: 46px; font-size: 24px; display: grid; place-items: center; }
img.art-bag { transform: rotate(2deg); }
.art-win { width: 120px; height: 120px; font-size: 84px; }

/* ---------- club / membership ---------- */

.club-banner { margin-bottom: 18px; overflow: visible; }
.club-banner .club-title { font-weight: 800; font-size: 18px; }
.club-banner .club-sub { font-weight: 700; font-size: 13.5px; opacity: .7; margin: 2px 0 12px; }
.member-chip-row { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }

.plan-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
  text-align: left;
}
.plan-btn .plan-name { font-size: 17px; }
.plan-btn .plan-price { font-size: 15px; opacity: .85; }
.wallet-note { font-size: 12px; font-weight: 700; opacity: .55; margin-top: 12px; text-align: center; }

/* ---------- ship + pay ---------- */

.sheet.tall {
  max-height: 86dvh;
  overflow-y: auto;
  text-align: left;
  touch-action: pan-y;          /* body scrolls natively; dismissal via the grab handle */
  overscroll-behavior: contain; /* reaching the end must not scroll-chain the page */
  -webkit-overflow-scrolling: touch;
}
.ship-product { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.ship-product .name { font-weight: 800; font-size: 15px; }
.ship-product .price { font-weight: 800; color: var(--pink); }
.ship-form { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.ship-form .full { grid-column: 1 / -1; }
.ship-form input {
  width: 100%;
  font-family: var(--font);
  font-weight: 700;
  font-size: 15px;
  padding: 11px 12px;
  border: 2.5px solid var(--ink);
  border-radius: 13px;
  background: var(--input-bg);
  color: var(--ink);
  outline: none;
}
.ship-form input:focus { background: var(--input-focus); box-shadow: 0 0 0 3px var(--pink-soft); }
.ship-form input::placeholder { opacity: .45; }

/* saved addresses as tappable sentences — active gets the check, rest stay muted */
.addr-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border: 2.5px solid var(--line);
  border-radius: 14px;
  margin-bottom: 8px;
  cursor: pointer;
  opacity: .5;
  font-weight: 700;
  font-size: 13.5px;
  line-height: 1.35;
  transition: opacity .15s, border-color .15s, background .15s;
}
.addr-row.sel {
  opacity: 1;
  border-color: var(--pink);
  background: rgba(255, 94, 200, .08);
}
.addr-check {
  width: 21px;
  height: 21px;
  border-radius: 50%;
  border: 2px solid var(--line);
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 800;
  flex-shrink: 0;
}
.addr-row.sel .addr-check {
  background: var(--lime);
  border-color: var(--ink-hard);
  color: var(--ink-hard);
}

.bag-item.payable { cursor: pointer; }
.paid-tag { color: var(--ok); }

/* rubber-stamp status on bag items */
.stamp {
  display: inline-block;
  font-weight: 800;
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: .8px;
  white-space: nowrap;
  padding: 4px 9px;
  border: 2.5px solid currentColor;
  border-radius: 8px;
  transform: rotate(-6deg);
  color: var(--pink);
  background: rgba(255, 255, 255, .75);
  box-shadow: 0 2px 0 var(--soft);
  flex-shrink: 0;
}
.stamp.green { color: #1f9e55; }
.stamp.wiggle { animation: stamp-wiggle 1.8s ease-in-out infinite; }
@keyframes stamp-wiggle {
  0%, 100% { transform: rotate(-6deg) scale(1); }
  50% { transform: rotate(-2deg) scale(1.07); }
}

/* ---------- avatars ---------- */

.avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 2.5px solid var(--ink-hard);
  display: grid;
  place-items: center;
  font-size: 18px;
  background: var(--pink-soft);
  position: relative;
  flex-shrink: 0;
}

.stack { display: flex; align-items: center; }
.stack .avatar-wrap { margin-left: -12px; }
.stack .avatar-wrap:first-child { margin-left: 0; }

.avatar-wrap { position: relative; width: 44px; height: 44px; display: grid; place-items: center; }
.avatar-wrap .ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(var(--pink) calc(var(--fill, 0) * 1%), var(--line) 0);
  opacity: 0;
  transition: opacity .2s;
}
.avatar-wrap .ring::after {
  content: '';
  position: absolute;
  inset: 3.5px;
  border-radius: 50%;
  background: var(--paper);
}
.avatar-wrap.holding .ring { opacity: 1; }
.avatar-wrap.holding .avatar { animation: pulse .7s ease-in-out infinite; }
@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.12); }
}
.more-count {
  margin-left: -8px;
  z-index: 2;
  height: 38px;
  min-width: 38px;
  padding: 0 8px;
  border-radius: 999px;
  border: 2.5px solid var(--ink-hard);
  color: var(--ink-hard);
  background: var(--butter);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 13px;
}

/* ---------- onboarding ---------- */

#screen-onboarding { padding-top: 60px; text-align: center; }
#screen-onboarding .logo { font-size: 52px; }
.tagline { font-weight: 700; font-size: 16px; margin: 4px 0 30px; opacity: .75; transform: rotate(-1deg); }

.ob-card { text-align: left; margin-top: 10px; }

/* continue-with buttons — candy constants (same look in dark mode) */
.oauth-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  margin-bottom: 10px;
}
.oauth-btn svg { width: 19px; height: 19px; flex: none; }
.oauth-btn.apple { background: #000; color: #fff; }
.oauth-btn.google { background: #fff; color: var(--ink-hard); }
.ob-note {
  text-align: center; margin: 2px 0 4px;
  color: var(--ink); opacity: .55;
  font-size: 12.5px; font-weight: 700;
}
.claim-hi {
  text-align: center; font-weight: 800; font-size: 13.5px;
  color: var(--ok); margin: 2px 0 4px;
}
.ob-card label { display: block; font-weight: 800; font-size: 14px; margin: 16px 0 8px; }
.ob-card input[type=text] {
  width: 100%;
  font-family: var(--font);
  font-size: 18px;
  font-weight: 700;
  padding: 12px 14px;
  border: 3px solid var(--ink);
  border-radius: 16px;
  background: var(--input-bg);
  color: var(--ink);
  outline: none;
}
.ob-card input[type=text]:focus { background: var(--input-focus); box-shadow: 0 0 0 3px var(--pink-soft); }

.handle-status {
  min-height: 24px;
  margin-top: 7px;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.handle-status .ok { color: var(--ok); }
.handle-status .nope { color: var(--danger); }
.handle-status .chip {
  font-size: 12px;
  padding: 3px 10px;
  cursor: pointer;
  box-shadow: 0 2px 0 var(--ink);
}
.handle-status .chip:active { transform: translateY(2px) scale(.96); box-shadow: none; }

.pick-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.pick {
  aspect-ratio: 1;
  border: 2.5px solid var(--ink-hard);
  border-radius: 14px;
  background: #fff;
  font-size: 20px;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform .12s cubic-bezier(.34,1.56,.64,1);
}
.pick.sel { background: var(--lime); transform: scale(1.12) rotate(-4deg); box-shadow: 0 3px 0 var(--ink-hard); }
.pick.color-pick { border-radius: 50%; }

/* ---------- home ---------- */

.home-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.profile-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: transform .12s cubic-bezier(.34,1.56,.64,1);
}
.profile-chip:active { transform: scale(.92); }

.theme-row { display: flex; gap: 8px; }
.theme-opt {
  flex: 1;
  font-size: 13px;
  padding: 10px 4px;
  border-radius: 14px;
  white-space: nowrap;
}
.theme-opt.sel {
  background: var(--lime);
  transform: rotate(-2deg) scale(1.04);
}
.profile-chip .avatar { width: 34px; height: 34px; font-size: 15px; }
.profile-chip span { font-weight: 800; font-size: 14px; }

/* next drop: info column left (label → title → countdown → meta), art right.
   One clear reading path, no centered zig-zag. */
.next-drop { overflow: hidden; }
.next-drop-row { display: flex; align-items: center; gap: 14px; }
.nd-info { flex: 1; min-width: 0; text-align: left; }
.next-drop .when { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 1.5px; opacity: .55; }
.next-drop .drop-title { font-size: 19px; font-weight: 800; line-height: 1.15; margin: 3px 0 10px; }
.countdown {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: .5px;
  background: linear-gradient(180deg, var(--lilac), var(--pink));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(1px 1.5px 0 var(--ink));
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}
.nd-meta { font-size: 12.5px; font-weight: 700; opacity: .65; margin-top: 8px; }

.live-card {
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  margin-bottom: 14px;
  transition: transform .15s cubic-bezier(.34,1.56,.64,1);
}
.live-card:active { transform: scale(.97); }
.live-card .thumb {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  border: 3px solid var(--ink-hard);
  background: linear-gradient(160deg, var(--butter), var(--pink-soft));
  display: grid;
  place-items: center;
  font-size: 32px;
  flex-shrink: 0;
}
.live-card .info { flex: 1; min-width: 0; }
.live-card .name { font-weight: 800; font-size: 15.5px; line-height: 1.2; }
.live-card .price-now { font-size: 24px; font-weight: 800; color: var(--pink); text-shadow: 1px 1.5px 0 var(--soft); }
.live-card .meta { font-size: 12.5px; font-weight: 700; opacity: .65; }
.live-badge {
  position: absolute;
  top: -12px;
  right: 14px;
  background: var(--pink);
  color: #fff;
  text-shadow: 0 1px 0 var(--ink-hard);
  font-size: 12px;
  font-weight: 800;
  border: 2.5px solid var(--ink-hard);
  border-radius: 999px;
  padding: 3px 12px;
  box-shadow: 0 3px 0 var(--ink-hard);
  animation: bob 1.4s ease-in-out infinite;
  transform: rotate(3deg);
}
@keyframes bob { 0%,100% { transform: rotate(3deg) translateY(0); } 50% { transform: rotate(3deg) translateY(-3px); } }

.bag-item { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.bag-item .thumb { width: 48px; height: 48px; font-size: 24px; border-radius: 14px; border: 2.5px solid var(--ink-hard); background: #fff; display: grid; place-items: center; }
.bag-item .name { font-weight: 800; font-size: 14px; }
.bag-item .deal { font-size: 12.5px; font-weight: 700; color: var(--pink); }

.empty-note { text-align: center; padding: 22px 10px; font-weight: 700; opacity: .6; font-size: 14.5px; }

/* ---------- room ---------- */

.room-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.back-btn {
  width: 42px; height: 42px;
  border-radius: 14px;
  border: 3px solid var(--ink-hard);
  background: #fff;
  box-shadow: 0 3px 0 var(--ink-hard);
  font-size: 18px;
  font-weight: 800;
  cursor: pointer;
  color: var(--ink-hard);
}
.back-btn:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--ink-hard); }
.room-title { font-weight: 800; font-size: 16px; line-height: 1.15; flex: 1; }

.hero {
  text-align: center;
  padding: 22px 16px 26px;
  margin-bottom: 14px;
}
.hero .big-emoji {
  font-size: 74px;
  display: inline-block;
  animation: float 3s ease-in-out infinite;
  filter: drop-shadow(0 6px 0 var(--line));
}
@keyframes float { 0%,100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-9px) rotate(3deg); } }
.hero .desc { font-size: 13.5px; font-weight: 700; opacity: .7; margin-top: 4px; }

.watch-row { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 12px 0 4px; min-height: 48px; }
.watch-label { font-size: 13px; font-weight: 800; opacity: .65; }

.price-label { font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: 2px; opacity: .55; margin-top: 10px; }
.big-price {
  font-size: 76px;
  font-weight: 800;
  line-height: 1;
  margin: 2px 0 10px;
  background: linear-gradient(180deg, #fff 5%, var(--pink) 55%, var(--lilac) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(2px 3px 0 var(--ink));
  font-variant-numeric: tabular-nums;
}
.big-price.drop-anim { animation: price-drop .5s cubic-bezier(.34,1.56,.64,1); }
@keyframes price-drop {
  0% { transform: translateY(-18px) scale(1.15); }
  60% { transform: translateY(4px) scale(.97); }
}

.next-step {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.tick-ring { width: 26px; height: 26px; transform: rotate(-90deg); }
.tick-ring circle { fill: none; stroke-width: 5; }
.tick-ring .bg { stroke: rgba(36, 18, 69, .2); } /* sits on a constant sky chip */
.tick-ring .fg { stroke: var(--pink); stroke-linecap: round; }

.retail-strike { font-size: 13.5px; font-weight: 700; opacity: .55; margin-top: 8px; }
.retail-strike s { text-decoration-thickness: 2px; text-decoration-color: var(--pink); }

/* hold bar */

.holdbar-zone {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 10px 16px calc(16px + env(safe-area-inset-bottom));
  max-width: 480px;
  margin: 0 auto;
  background: linear-gradient(180deg, transparent, var(--paper) 35%);
  display: none;
}
.holdbar-zone.on { display: block; }
.holdbar-hint { text-align: center; font-size: 12.5px; font-weight: 800; opacity: .6; margin-bottom: 8px; }

.holdbar {
  position: relative;
  height: 72px;
  border: 3.5px solid var(--ink-hard);
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 6px 0 var(--ink-hard);
  overflow: hidden;
  cursor: pointer;
  transition: transform .12s;
}
.holdbar:active { transform: translateY(3px); box-shadow: 0 3px 0 var(--ink-hard); }
.holdbar .fill {
  position: absolute;
  inset: 0;
  width: 0%;
  background: linear-gradient(90deg, var(--lime), var(--sky) 40%, var(--pink) 90%);
}
.holdbar .gloss {
  position: absolute;
  left: 6%; right: 6%; top: 7px;
  height: 16px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255,255,255,.85), rgba(255,255,255,0));
  pointer-events: none;
}
.holdbar .label {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 19px;
  letter-spacing: .5px;
  pointer-events: none;
  color: var(--ink-hard); /* the bar is a constant white sticker */
}
.holdbar.holding { animation: hold-buzz .3s linear infinite; }
@keyframes hold-buzz {
  0%,100% { transform: translateY(3px) translateX(0); }
  25% { transform: translateY(3px) translateX(-1px); }
  75% { transform: translateY(3px) translateX(1px); }
}
.holdbar.done-state { pointer-events: none; opacity: .55; }

/* ---------- overlays ---------- */

/* dim + block the page whenever a bottom sheet is up; tap to dismiss */
#sheet-backdrop {
  position: fixed;
  inset: 0;
  z-index: 39;
  background: var(--backdrop);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s;
}
#sheet-backdrop.on { opacity: 1; pointer-events: auto; }

/* while any sheet/overlay is open the page behind must not scroll (iOS-safe) */
body.sheet-locked {
  position: fixed;
  left: 0;
  right: 0;
  width: 100%;
  overflow: hidden;
}

.sheet {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  max-width: 480px;
  margin: 0 auto;
  background: var(--white);
  border: 3.5px solid var(--ink);
  border-bottom: none;
  border-radius: 28px 28px 0 0;
  box-shadow: 0 -6px 0 var(--soft);
  padding: 26px 20px calc(26px + env(safe-area-inset-bottom));
  text-align: center;
  /* transform (compositor) instead of animating `bottom` (layout) — smooth on touch */
  transform: translateY(112%);
  visibility: hidden;
  transition: transform .45s cubic-bezier(.34,1.4,.64,1), visibility 0s .45s;
  z-index: 40;
  touch-action: none; /* non-scrolling sheets: every touch is ours (drag-to-dismiss) */
}
.sheet.on {
  transform: translateY(0);
  visibility: visible;
  transition: transform .45s cubic-bezier(.34,1.4,.64,1);
}
.sheet-grab {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 34px;           /* real touch target, not just the pill */
  padding: 0 0 6px;
  margin-top: -14px;
  touch-action: none;
  cursor: grab;
}
.sheet-grab span {
  width: 46px;
  height: 5px;
  border-radius: 999px;
  background: var(--line);
}
.sheet .big-emoji { font-size: 52px; }
.sheet h3 { font-size: 21px; font-weight: 800; margin: 8px 0 4px; }
.sheet p { font-weight: 700; opacity: .7; font-size: 14.5px; margin-bottom: 18px; }

#win-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  place-items: center;
  background: radial-gradient(circle at 50% 40%, rgba(255,232,107,.95) 0%, rgba(255,94,200,.93) 55%, rgba(177,140,255,.95) 100%);
  text-align: center;
  padding: 24px;
}
#win-overlay.on { display: grid; }
#confetti { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.win-card {
  position: relative;
  animation: win-pop .6s cubic-bezier(.34,1.56,.64,1);
  max-width: 340px;
  width: 100%;
}
@keyframes win-pop { 0% { transform: scale(.4) rotate(-8deg); opacity: 0; } }
.win-card .big-emoji { font-size: 84px; display: block; animation: float 2.2s ease-in-out infinite; }
/* the win flash stays bright in both themes — celebration doesn't dim.
   Everything in it uses --ink-hard so dark mode can't wash the outlines. */
.win-title {
  font-size: 40px;
  font-weight: 800;
  color: #fff;
  /* outline via stacked zero-blur shadows — text-stroke glitches on variable fonts */
  text-shadow:
    2px 0 0 var(--ink-hard), -2px 0 0 var(--ink-hard),
    0 2px 0 var(--ink-hard), 0 -2px 0 var(--ink-hard),
    1.5px 1.5px 0 var(--ink-hard), -1.5px -1.5px 0 var(--ink-hard),
    1.5px -1.5px 0 var(--ink-hard), -1.5px 1.5px 0 var(--ink-hard),
    4px 5px 0 var(--ink-hard);
  transform: rotate(-2deg);
  line-height: 1.1;
  margin: 6px 0;
}
.win-sub { font-weight: 800; font-size: 17px; color: var(--ink-hard); margin-bottom: 6px; }
.win-price {
  font-size: 58px;
  font-weight: 800;
  color: #fff;
  text-shadow:
    2px 0 0 var(--ink-hard), -2px 0 0 var(--ink-hard),
    0 2px 0 var(--ink-hard), 0 -2px 0 var(--ink-hard),
    1.5px 1.5px 0 var(--ink-hard), -1.5px -1.5px 0 var(--ink-hard),
    1.5px -1.5px 0 var(--ink-hard), -1.5px 1.5px 0 var(--ink-hard),
    3px 4px 0 var(--ink-hard);
}

/* ---------- live activity feed ---------- */

.feed-card { padding: 12px 16px 4px; }
#activity-wrap {
  max-height: 172px;
  overflow: hidden;
  /* older rows fade toward the bottom — the "quiet exit" */
  mask-image: linear-gradient(180deg, #000 55%, transparent 97%);
  -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent 97%);
}
.feed-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 0;
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.35;
  opacity: .88;
}
.feed-row.new { animation: feed-in .45s cubic-bezier(.34,1.56,.64,1); }
@keyframes feed-in {
  from { opacity: 0; transform: translateY(-10px); }
}
.feed-ava {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid var(--ink-hard);
  display: grid;
  place-items: center;
  font-size: 10px;
  flex-shrink: 0;
}
.feed-handle { color: var(--pink); }
.feed-time { margin-left: auto; font-size: 10.5px; opacity: .5; flex-shrink: 0; padding-left: 6px; }

/* ---------- profile pocket total ---------- */

.pocket-num {
  font-size: 36px;
  font-weight: 800;
  line-height: 1.1;
  background: linear-gradient(180deg, var(--lilac), var(--pink));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(1px 1.5px 0 var(--ink));
  font-variant-numeric: tabular-nums;
}
.pocket-label { font-size: 12.5px; font-weight: 700; opacity: .65; margin-top: 2px; }

/* ---------- danger zone ---------- */

.danger-zone { margin-top: 34px; text-align: center; }
.btn.danger-link {
  background: transparent;
  box-shadow: none;
  border-color: transparent;
  color: var(--danger);
  font-weight: 800;
  font-size: 14px;
  opacity: .8;
  text-decoration: underline;
  text-decoration-color: var(--danger);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}
.btn.danger-link:active { transform: scale(.96); box-shadow: none; }
.btn.danger-solid {
  background: linear-gradient(180deg, #ff8aa8 0%, #e23b6b 100%);
  color: #fff;
  text-shadow: 0 1.5px 0 var(--ink-hard);
}

/* ---------- product sticker peek ---------- */

#peek-overlay {
  position: fixed;
  inset: 0;
  z-index: 46;
  display: none;
  place-items: center;
  padding: 26px;
  background: var(--backdrop);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}
#peek-overlay.on { display: grid; }
.peek-card {
  text-align: center;
  max-width: 340px;
  width: 100%;
  padding: 24px 18px 18px;
  animation: win-pop .35s cubic-bezier(.34,1.56,.64,1);
}
.art-peek { width: 220px; height: 220px; font-size: 130px; display: inline-grid; place-items: center; line-height: 1; }
.peek-name { font-weight: 800; font-size: 18px; margin: 14px 0 10px; line-height: 1.2; }
.peek-chips { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.source-pill { text-decoration: none; }
.source-pill svg { width: 15px; height: 15px; display: block; }
[data-peek] { cursor: pointer; }

#toast {
  position: fixed;
  top: 14px;
  left: 50%;
  transform: translateX(-50%) translateY(-120px);
  background: var(--ink-hard);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  font-family: var(--font);
  padding: 11px 20px;
  border-radius: 999px;
  border: 2.5px solid #fff;
  box-shadow: 0 4px 0 rgba(0, 0, 0, .4);
  transition: transform .35s cubic-bezier(.34,1.56,.64,1);
  z-index: 60;
  max-width: 86vw;
  text-align: center;
}
#toast.on { transform: translateX(-50%) translateY(0); }
