/* MyMZW Wishlist: the links site's brand tokens (links/assets/style.css), copied the way the shop's redeem.css did,
   with the wishlist accent: gift-ribbon rose to the links violet, gold progress bars. */
@font-face {
  font-family: 'Unbounded'; font-style: normal; font-weight: 800; font-display: swap;
  src: url('/static/unbounded-800-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
:root {
  --bg: #07060b; --ink: #f4efe4; --muted: rgba(244,239,228,.66);
  --gold: #f5c542; --gold-2: #ffe08a; --violet: #9146ff; --violet-deep: #5b2bd6; --orange: #ff8a2a; --pink: #f4a7c0; --live: #ff4d4d;
  --rose: #ff5fa8; --rose-deep: #d63d8a;
  --card: rgba(18,11,26,.74); --card-2: rgba(24,15,36,.97); --line: rgba(255,255,255,.09); --line-2: rgba(255,255,255,.18);
  --radius: 20px;
  --font-display: 'Unbounded', 'Segoe UI Black', 'Arial Black', system-ui, sans-serif;
  --font-body: system-ui, -apple-system, 'Segoe UI', Roboto, Inter, sans-serif;
  --ease: cubic-bezier(.2,.75,.2,1);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { background: var(--bg); -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; background: var(--bg); color: var(--ink); font: 16px/1.45 var(--font-body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: var(--gold-2); }
img { display: block; }
[hidden] { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.center { text-align: center; }

/* still rose-violet aurora (no WebGL on a buying page) */
.bg {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(60% 45% at 50% 0%, rgba(255,95,168,.26), transparent 70%),
    radial-gradient(50% 40% at 85% 25%, rgba(145,70,255,.30), transparent 70%),
    radial-gradient(45% 35% at 10% 80%, rgba(255,95,168,.14), transparent 70%),
    radial-gradient(40% 35% at 90% 90%, rgba(245,197,66,.10), transparent 70%),
    radial-gradient(50% 40% at 15% 25%, rgba(91,43,214,.26), transparent 70%),
    var(--bg);
  background-size: 160% 160%; animation: bgdrift 30s ease-in-out infinite alternate;
}
@keyframes bgdrift { from { background-position: 0 0; } to { background-position: 100% 100%; } }
.wrap { position: relative; z-index: 1; max-width: 1100px; margin: 0 auto; padding: 22px 16px 40px; }

/* ---------- header ---------- */
header { text-align: center; margin-bottom: 18px; }
.avatar { position: relative; display: inline-block; width: 88px; height: 88px; margin-bottom: 10px; isolation: isolate; }
.avatar img { width: 88px; height: 88px; border-radius: 50%; border: 3px solid var(--bg); position: relative; z-index: 1; object-fit: cover; }
.avatar .ring { position: absolute; inset: -4px; border-radius: 50%; z-index: 0;
  background: conic-gradient(from 0deg, var(--rose), var(--violet), var(--gold), var(--rose)); animation: spin 9s linear infinite;
  filter: drop-shadow(0 0 18px rgba(255,95,168,.3)); }
@keyframes spin { to { transform: rotate(360deg); } }
.wordmark {
  margin: 0 0 8px; font: 800 clamp(30px, 9.5vw, 52px)/1.02 var(--font-display); letter-spacing: -.02em;
  background: linear-gradient(180deg, #fff6d6 0%, var(--gold) 55%, #e0941e 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
  padding-bottom: .1em; filter: drop-shadow(0 4px 22px rgba(245,197,66,.22));
}
.wordmark span { white-space: nowrap; }
.sub { margin: 0 auto; max-width: 42ch; color: rgba(244,239,228,.88); font-size: 14.5px; }
.intro, .sizes { margin: 8px auto 0; max-width: 52ch; color: var(--muted); font-size: 13.5px; white-space: pre-line; overflow-wrap: anywhere; }
.status { margin: 10px 0 0; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 9px; border-radius: 999px; font: 800 11px/1 var(--font-display); letter-spacing: .08em; }
.pill.live { background: var(--live); color: #fff; box-shadow: 0 6px 18px rgba(255,77,77,.45); }
.pill.live::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #fff; animation: blink 1.2s ease-in-out infinite; }
.pill.off { background: rgba(255,255,255,.06); color: var(--muted); border: 1px solid var(--line); }
@keyframes blink { 50% { opacity: .25; } }
.xlinks { margin-top: 10px; display: flex; justify-content: center; gap: 10px; font-size: 13px; color: var(--muted); }
.xlinks a { color: var(--muted); text-underline-offset: 3px; }
.xlinks a:hover { color: var(--gold-2); }

.banner { margin: 0 0 16px; padding: 12px 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--card); }
.banner.warn { border-color: var(--orange); background: rgba(255,138,42,.12); }
.banner.info { border-color: var(--violet); background: rgba(145,70,255,.14); }

.ticker { overflow: hidden; scrollbar-width: none; margin: 0 0 18px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); padding: 9px 0; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.ticker::-webkit-scrollbar { display: none; }
.ticker-track { display: flex; gap: 32px; width: max-content; white-space: nowrap; font-size: 13.5px; padding: 0 16px; animation: scroll var(--ticker-time, 30s) linear infinite; }
.ticker-track span { color: var(--muted); }
.ticker-track b { color: var(--ink); font-weight: 600; }
@keyframes scroll { to { transform: translateX(-50%); } }

.loading { color: var(--muted); text-align: center; }

/* ---------- empty states ---------- */
.empty-card, .status-card { max-width: 520px; margin: 24px auto; padding: 28px 20px; text-align: center; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card);
  box-shadow: 0 3px 0 rgba(0,0,0,.5), 0 12px 34px rgba(0,0,0,.35); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.empty-card h2, .status-card h2 { margin: 12px 0 6px; font-size: 22px; overflow-wrap: anywhere; }
.empty-card p, .status-card p { margin: 4px 0 14px; }
.big-emoji { font-size: 52px; line-height: 1; }

/* ---------- collections ---------- */
.colls { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0 0 14px; }
.chip { min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(255,255,255,.05); color: var(--ink); font: 700 15px var(--font-body); cursor: pointer; }
.chip .n { margin-left: 6px; font-weight: 600; opacity: .7; }
.chip[aria-pressed="true"] { background: linear-gradient(135deg, var(--rose), var(--violet)); color: #fff; border-color: transparent; }
.chip:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* ---------- wish cards: one per row with the image on the left under 480px, then 2, 3, 4 columns ---------- */
.wgrid { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 480px) { .wgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 820px) { .wgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1080px) { .wgrid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.wcard {
  position: relative; display: flex; flex-direction: column; min-width: 0; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line);
  color: var(--ink); cursor: pointer; overflow: hidden; -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); --edge: rgba(0,0,0,.5);
  box-shadow: 0 3px 0 var(--edge), 0 12px 34px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.08);
  transition: transform .28s var(--ease), border-color .28s, box-shadow .28s; -webkit-tap-highlight-color: transparent;
}
@media (hover: hover) and (pointer: fine) {
  .wcard:hover { transform: translateY(-2px); border-color: var(--line-2); box-shadow: 0 5px 0 var(--edge), 0 18px 44px rgba(0,0,0,.45), 0 0 0 1px rgba(255,95,168,.16), inset 0 1px 0 rgba(255,255,255,.1); }
}
.wcard:focus-within { border-color: var(--line-2); }
.wimg { position: relative; display: block; aspect-ratio: 1 / 1; background: #f6f3ee; overflow: hidden; }
.wimg img { width: 100%; height: 100%; object-fit: contain; padding: 8%; }
.wimg.none { display: grid; place-items: center; background: linear-gradient(135deg, rgba(255,95,168,.35), rgba(145,70,255,.35)); font-size: 44px; }
.wbody { display: flex; flex-direction: column; gap: 3px; flex: 1; min-width: 0; padding: 12px 14px 14px; }
.wt { margin: 0; font-size: 16px; font-weight: 700; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.wt a { color: inherit; text-decoration: none; }
.wt a:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 4px; }
.wstore { margin: 0; font-size: 12.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wgoal { margin: 4px 0 0; font-size: 13px; color: var(--muted); display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 6px; }
.wgoal b { font: 800 15px var(--font-display); color: var(--gold); }
.wgoal s { color: var(--muted); }
.wgoal .gnote::before { content: '· '; }
/* in grid cards the tax note gets its own line rather than wrapping after a dangling dot */
.wcard:not(.feat) .wgoal .gnote { flex-basis: 100%; font-size: 12px; }
.wcard:not(.feat) .wgoal .gnote::before { content: none; }
.wmeta { margin: 0; font-size: 12px; color: var(--muted); }
.wmeta.warn { color: var(--pink); }
.sale { font-size: 11.5px; font-weight: 700; color: #1a0f05; background: linear-gradient(135deg, var(--gold-2), var(--gold)); border-radius: 999px; padding: 1px 8px; }

/* gold progress bar */
.bar { position: relative; height: 10px; margin-top: 8px; border-radius: 999px; background: rgba(255,255,255,.08); box-shadow: inset 0 1px 2px rgba(0,0,0,.5); overflow: hidden; }
.bar.big { height: 14px; }
.bar i { position: absolute; inset: 0 auto 0 0; width: var(--p, 0%); border-radius: inherit;
  background: linear-gradient(90deg, #e0941e, var(--gold) 55%, var(--gold-2)); box-shadow: 0 0 12px rgba(245,197,66,.45); transition: width .9s var(--ease); }
.bar.pulse i { animation: barpulse 1.4s ease-out; }
@keyframes barpulse { 0% { filter: brightness(1); box-shadow: 0 0 0 rgba(245,197,66,0); } 30% { filter: brightness(1.5); box-shadow: 0 0 22px rgba(255,224,138,.95); } 100% { filter: brightness(1); box-shadow: 0 0 12px rgba(245,197,66,.45); } }
.wprog { margin: 5px 0 0; font-size: 13px; color: var(--ink); font-variant-numeric: tabular-nums; }
.wprog b { color: var(--gold); }

.wbtns { display: flex; gap: 8px; margin-top: 12px; }
.wbtns .btn { flex: 1 1 0; min-width: 0; min-height: 42px; padding: 0 10px; font-size: 15px; }
.wcard .wbtns { margin-top: auto; padding-top: 12px; }

.ribbon { position: absolute; z-index: 2; top: 12px; left: -34px; width: 140px; padding: 4px 0; margin: 0; transform: rotate(-35deg); text-align: center;
  font: 800 10.5px/1.2 var(--font-display); letter-spacing: .08em; text-transform: uppercase; color: #1a0f05;
  background: linear-gradient(135deg, var(--gold-2), var(--gold)); box-shadow: 0 4px 14px rgba(0,0,0,.4); }
.ribbon.paused { background: rgba(255,255,255,.85); }
.ribbon.arrived { background: linear-gradient(135deg, #b8ffcf, #59d98a); }
.wcard.done .wimg img { opacity: .92; }

/* phones: one card per row, the image on the left */
@media (max-width: 479.98px) {
  .wcard { flex-direction: row; align-items: stretch; }
  .wcard .wimg { flex: none; width: 108px; aspect-ratio: auto; min-height: 108px; }
  .wcard .wimg img { position: absolute; inset: 0; padding: 8px; }
  .wcard .wbody { padding: 10px 12px 12px; }
  .wcard .wt { font-size: 15px; }
  .wcard.feat .wgoal .gnote { flex-basis: 100%; font-size: 12px; }
  .wcard.feat .wgoal .gnote::before { content: none; }
  .wcard .wbtns .btn { min-height: 40px; font-size: 14.5px; }
  .ribbon { top: 14px; left: -30px; width: 124px; font-size: 9.5px; }
}

/* featured wish: one wide card */
.featured { margin: 0 0 16px; }
.wcard.feat { border-color: rgba(255,95,168,.45); background: linear-gradient(135deg, rgba(255,95,168,.16), var(--card) 60%); --edge: rgba(80,10,50,.8); }
.feat-tag { margin: 0 0 4px; font: 800 10.5px/1 var(--font-display); letter-spacing: .1em; text-transform: uppercase; color: var(--rose); }
@media (min-width: 640px) {
  .wcard.feat { flex-direction: row; }
  .wcard.feat .wimg { flex: none; width: 260px; aspect-ratio: 1 / 1; }
  .wcard.feat .wbody { padding: 20px 22px; justify-content: center; }
  .wcard.feat .wt { font-size: 21px; }
  .wcard.feat .wbtns { margin-top: 14px; max-width: 360px; }
}

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border-radius: 999px;
  border: 1px solid var(--line-2); background: linear-gradient(135deg, var(--violet), var(--violet-deep)); color: #fff; font: 700 16px var(--font-body); text-decoration: none; cursor: pointer;
  box-shadow: 0 3px 0 rgba(0,0,0,.4), 0 8px 18px rgba(91,43,214,.35), inset 0 1px 0 rgba(255,255,255,.25); transition: transform .15s, box-shadow .15s, filter .2s; -webkit-tap-highlight-color: transparent; }
.btn:active:not(:disabled) { transform: translateY(2px); box-shadow: 0 1px 0 rgba(0,0,0,.4), 0 4px 10px rgba(91,43,214,.35); }
.btn.chipin { background: linear-gradient(135deg, var(--rose), var(--violet)); border-color: transparent; box-shadow: 0 3px 0 rgba(70,10,50,.8), 0 8px 20px rgba(255,95,168,.3), inset 0 1px 0 rgba(255,255,255,.3); }
.btn.primary { background: linear-gradient(135deg, var(--gold-2), var(--gold) 45%, var(--orange)); border-color: transparent; color: #1a0f05;
  box-shadow: 0 3px 0 rgba(90,50,0,.7), 0 8px 22px rgba(245,197,66,.3), inset 0 1px 0 rgba(255,255,255,.4); }
.btn.ghost { background: rgba(255,255,255,.06); box-shadow: 0 3px 0 rgba(0,0,0,.4); }
.btn.block { width: 100%; }
.btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
@media (hover: hover) and (pointer: fine) { .btn:hover:not(:disabled) { filter: brightness(1.08); } }

/* ---------- dialogs ---------- */
dialog { width: min(480px, calc(100vw - 24px)); max-height: calc(100vh - 24px); overflow-y: auto; overscroll-behavior: contain; padding: 0; border: 1px solid var(--line-2);
  border-radius: var(--radius); background: var(--card-2); color: var(--ink); box-shadow: 0 30px 80px rgba(0,0,0,.6); }
dialog::backdrop { background: rgba(7,6,11,.82); }
.close { width: 44px; height: 44px; border: 0; border-radius: 12px; background: rgba(7,6,11,.55); color: var(--ink); font-size: 18px; cursor: pointer; }
.close:focus-visible, .ghost-btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.ghost-btn { min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(7,6,11,.55); color: var(--ink); font: 700 14px var(--font-body); cursor: pointer; }

/* detail: a modal on desktop, the whole screen on phones */
#detail { width: min(760px, calc(100vw - 24px)); }
.d-inner { position: relative; }
.d-top { position: sticky; top: 0; z-index: 3; display: flex; justify-content: flex-end; gap: 8px; padding: 10px 10px 0; height: 0; overflow: visible; }
.d-img { position: relative; width: 100%; height: min(56vh, 440px); background: #f6f3ee; }
.d-img img { width: 100%; height: 100%; object-fit: contain; padding: 5%; }
.d-img.none { display: grid; place-items: center; font-size: 72px; background: linear-gradient(135deg, rgba(255,95,168,.35), rgba(145,70,255,.35)); }
.d-body { position: relative; padding: 18px 18px 22px; background: radial-gradient(70% 30% at 50% 0%, rgba(255,95,168,.14), transparent 70%); }
.d-body h2 { margin: 0 0 2px; font-size: 22px; line-height: 1.25; overflow-wrap: anywhere; }
.d-body .ribbon { position: static; transform: none; width: auto; display: inline-block; padding: 5px 10px; border-radius: 999px; margin: 0 0 8px; }
.d-body .wbtns .btn { min-height: 48px; font-size: 16px; }
.d-note { margin: 12px 0 0; padding: 10px 12px; border-radius: 12px; background: rgba(145,70,255,.16); font-size: 14px; }
.d-notes { margin: 16px 0 0; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); background: rgba(255,255,255,.04); font-size: 14.5px; white-space: pre-line; overflow-wrap: anywhere; }
.d-notes::before { content: 'From MyMZW'; display: block; margin-bottom: 4px; font: 800 10px/1 var(--font-display); letter-spacing: .1em; text-transform: uppercase; color: var(--rose); }
.d-store-link { margin: 18px 0 0; padding-top: 14px; border-top: 1px solid var(--line); }
.d-store-link a { font-weight: 700; font-size: 15.5px; color: var(--gold-2); text-underline-offset: 3px; }
.d-store-link p { margin: 6px 0 0; }
.d-photo { margin: 16px 0 0; }
.d-photo img { width: 100%; max-height: 60vh; object-fit: cover; border-radius: 14px; }
.d-photo p { margin: 6px 0 0; font-size: 13px; color: var(--muted); }
.d-h3 { margin: 22px 0 8px; font: 800 14px var(--font-display); letter-spacing: .02em; }
.contribs { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.contribs li { padding: 10px 12px; border-radius: 14px; border: 1px solid var(--line); background: rgba(255,255,255,.04); }
.contribs .c-top { display: flex; align-items: baseline; gap: 8px; }
.contribs .c-name { flex: 1; min-width: 0; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.contribs .c-amt { flex: none; font: 800 14px var(--font-display); color: var(--gold); }
.contribs .c-msg { margin: 4px 0 0; font-size: 14px; overflow-wrap: anywhere; }
.contribs .c-time { margin: 2px 0 0; font-size: 12px; color: var(--muted); }
.contribs .c-none { color: var(--muted); font-size: 14px; }
@media (max-width: 599.98px) {
  #detail { width: 100vw; max-width: 100vw; height: 100%; max-height: 100%; margin: 0; border: 0; border-radius: 0; }
  .d-img { height: min(50vh, 100vw); }
}

/* chip-in sheet */
#sheet { width: min(460px, calc(100vw - 24px)); }
#s-form { position: relative; padding: 18px 16px 18px; background: radial-gradient(70% 30% at 50% 0%, rgba(255,95,168,.2), transparent 70%); }
#s-form > .close { position: absolute; top: 8px; right: 8px; background: transparent; color: var(--muted); }
.s-head { display: flex; gap: 12px; align-items: center; margin: 0 40px 14px 0; }
.s-img { flex: none; width: 60px; height: 60px; border-radius: 12px; overflow: hidden; background: #f6f3ee; }
.s-img img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.s-img.none { display: grid; place-items: center; font-size: 28px; background: linear-gradient(135deg, rgba(255,95,168,.35), rgba(145,70,255,.35)); }
.s-head-text { min-width: 0; }
.s-head h2 { margin: 0; font-size: 18px; line-height: 1.25; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.s-head p { margin: 3px 0 0; }
.field { display: block; margin: 0 0 12px; position: relative; }
.field > span:first-child, .field > label:first-child { display: block; margin-bottom: 4px; font-size: 13px; color: var(--muted); }
.name-row { display: flex; gap: 8px; align-items: stretch; }
.name-row input { flex: 1; min-width: 0; }
.name-row input:disabled { opacity: .6; cursor: not-allowed; }
.name-row input:disabled::placeholder { color: var(--ink); }
.chip.anon { flex: none; min-height: 46px; padding: 0 12px; font-size: 14px; white-space: nowrap; }
.chip.anon[aria-pressed="true"] { background: linear-gradient(135deg, var(--gold), var(--orange)); color: #1a0f05; }
.anon-note { margin: 6px 0 0; font-size: 13px; color: var(--gold-2); }
input, textarea { width: 100%; padding: 12px; border-radius: 12px; border: 1px solid var(--line-2); background: rgba(7,6,11,.7); color: var(--ink); font: 16px var(--font-body); }
textarea { resize: vertical; min-height: 80px; }
input:focus, textarea:focus { outline: 2px solid var(--gold); outline-offset: 0; border-color: transparent; }
.counter { display: block; text-align: right; font-size: 12px; color: var(--muted); margin-top: 2px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.money-in { position: relative; }
.money-in b { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--gold); }
.money-in input { padding-left: 28px; font-weight: 700; }
.gift-line { margin: 0 0 14px; padding: 14px; border-radius: 14px; text-align: center; border: 1px solid rgba(245,197,66,.45); background: linear-gradient(135deg, rgba(245,197,66,.16), rgba(255,95,168,.1)); }
.gift-line b { display: block; font: 800 22px/1.2 var(--font-display); color: var(--gold); }
.gift-line span { font-size: 13px; color: var(--muted); }
.note { margin: 0 0 12px; padding: 8px 12px; border-radius: 10px; background: rgba(145,70,255,.18); border: 1px solid rgba(145,70,255,.45); font-size: 13.5px; }
.total { margin: 12px 0 10px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 14.5px; }
.total b { font: 800 18px var(--font-display); color: var(--gold); }
.consent { margin: 0 0 12px; padding: 10px 12px; border-radius: 12px; background: rgba(255,255,255,.04); border: 1px solid var(--line); font-size: 12.5px; color: var(--muted); }
.error { margin: 0 0 12px; padding: 10px 12px; border-radius: 10px; background: rgba(255,77,77,.15); border: 1px solid var(--live); font-size: 14px; }
#s-pay { margin-bottom: 6px; }

/* ---------- Thanks to you wall ---------- */
.group { margin-top: 34px; }
.group-head { margin: 0 0 14px; text-align: center; }
.group-head h2 { margin: 0; font: 800 clamp(22px, 6vw, 32px)/1.05 var(--font-display); letter-spacing: -.01em; display: flex; align-items: center; gap: 14px; }
.group-head h2 span { background: linear-gradient(100deg, var(--gold-2), var(--rose)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.group-head h2::before, .group-head h2::after { content: ''; flex: 1; height: 2px; border-radius: 2px; background: linear-gradient(90deg, transparent, var(--rose)); opacity: .55; }
.group-head h2::after { background: linear-gradient(90deg, var(--rose), transparent); }
.group-head p { margin: 8px 0 0; color: var(--muted); font-size: 14px; }
.wall { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .wall { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.wall-card { display: flex; gap: 12px; padding: 12px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); cursor: pointer;
  box-shadow: 0 3px 0 rgba(0,0,0,.5), 0 12px 34px rgba(0,0,0,.3); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); min-width: 0; }
.wall-card .wimg { flex: none; width: 92px; height: 92px; aspect-ratio: auto; border-radius: 14px; }
.wall-card .wimg.photo img { object-fit: cover; padding: 0; }
.wall-card .wbody { padding: 0; gap: 4px; }
.wall-card .wt { font-size: 15px; }
.wall-card .wt a { color: inherit; }
.track { display: flex; list-style: none; margin: 6px 0 2px; padding: 0; gap: 4px; }
.track li { flex: 1; min-width: 0; text-align: center; font-size: 10.5px; color: var(--muted); }
.track li::before { content: ''; display: block; height: 5px; margin-bottom: 4px; border-radius: 999px; background: rgba(255,255,255,.1); }
.track li.done { color: var(--ink); }
.track li.done::before { background: linear-gradient(90deg, var(--gold), var(--gold-2)); }
.track li.now { color: var(--gold-2); font-weight: 700; }
.givers { margin: 2px 0 0; font-size: 12.5px; color: var(--muted); overflow-wrap: anywhere; }
.givers b { color: var(--ink); font-weight: 600; }

/* ---------- Top gifters ---------- */
.board { padding: 16px 16px 10px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line);
  box-shadow: 0 3px 0 rgba(0,0,0,.5), 0 12px 34px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.08); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.board .group-head { margin-bottom: 8px; }
.b-list { list-style: none; margin: 0; padding: 0; }
.b-list li { display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 6px 2px; border-bottom: 1px solid var(--line); break-inside: avoid; }
.b-list .rk { flex: none; width: 28px; text-align: center; font: 800 13px var(--font-display); color: var(--muted); font-variant-numeric: tabular-nums; }
.b-list .medal .rk { font: 22px/1 var(--font-body); }
.b-list .bn { flex: 1; min-width: 0; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.b-list .medal .bn { font-weight: 700; }
.b-list .amt { flex: none; font: 800 14px var(--font-display); color: var(--gold); }
.b-anon { margin: 8px 0 4px; padding: 8px 2px 2px; color: var(--muted); font-size: 13.5px; text-align: center; }
@media (min-width: 720px) { .b-list { columns: 2; column-gap: 32px; } }

/* ---------- thanks page ---------- */
.t-item { display: flex; gap: 12px; align-items: center; margin: 14px 0 8px; padding: 12px; border-radius: 16px; border: 1px solid var(--line); background: rgba(255,255,255,.04); text-align: left; }
.t-img { flex: none; width: 72px; height: 72px; border-radius: 12px; overflow: hidden; background: #f6f3ee; }
.t-img img { width: 100%; height: 100%; object-fit: contain; padding: 5px; }
.t-img.none { display: grid; place-items: center; font-size: 32px; background: linear-gradient(135deg, rgba(255,95,168,.35), rgba(145,70,255,.35)); }
.t-body { flex: 1; min-width: 0; }
.t-name { margin: 0 !important; font-weight: 700; overflow-wrap: anywhere; }
.t-extra { padding: 10px 12px; border-radius: 12px; background: rgba(245,197,66,.12); border: 1px solid rgba(245,197,66,.45); font-size: 14px; }
.t-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }

/* ---------- footer ---------- */
footer { margin-top: 36px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12.5px; text-align: center; }
footer p { margin: 0 auto 8px; max-width: 70ch; }
footer a { color: var(--muted); }
footer a:hover { color: var(--gold-2); }
footer .disc { color: var(--ink); font-weight: 600; }

.toast { position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); max-width: calc(100vw - 32px); padding: 12px 18px; border-radius: 999px;
  background: var(--card-2); border: 1px solid var(--gold); box-shadow: 0 8px 30px rgba(0,0,0,.5); z-index: 20; text-align: center; }

/* live chip-in toasts (same component as the shop's) */
.live-toasts { position: sticky; top: 8px; height: 0; z-index: 10; pointer-events: none; }
.live-toasts .stack { display: flex; flex-direction: column; gap: 8px; align-items: center; }
@media (min-width: 900px) { .live-toasts { position: fixed; top: 12px; left: 50%; width: min(460px, calc(100vw - 32px)); transform: translateX(-50%); } }
.live-toast { max-width: 100%; padding: 10px 16px; border-radius: 999px; background: var(--card-2); border: 1px solid rgba(255,95,168,.55); color: var(--ink);
  font-size: 14px; font-weight: 600; overflow-wrap: anywhere; box-shadow: 0 8px 30px rgba(0,0,0,.5); animation: toast-in .35s var(--ease) both; }
@keyframes toast-in { from { opacity: 0; transform: translateY(-10px) scale(.96); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  .bg, .pill.live::before, .avatar .ring { animation: none; }
  .wcard, .btn, .bar i { transition: none; }
  .bar.pulse i, .live-toast { animation: none; }
  .ticker { overflow-x: auto; }
  .ticker-track { animation: none; }
}
