/* TSS — The Stream Shop
   Gallery & Theatre.
   Browsing is a gallery: quiet light walls, no boxes around everything,
   cards presented like objects on a plinth. The live room is a theatre:
   the lights go down, the card on the block glows with its own colours,
   and controls float above it on glass. Type is Geist throughout, set
   tight and semibold; the TSS wordmark alone keeps wide Archivo. */

:root {
  --paper: #f4f5f8;
  --surface: #ffffff;
  --tile: #eceef3;
  --fill: #e8eaef;
  --fill-hi: #dfe2e9;
  --ink: #16181d;
  --ink-2: #3b3f4a;
  --muted: #6e7381;
  --line: rgba(22, 24, 29, .08);
  --line-2: rgba(22, 24, 29, .14);
  --accent: #f2a900;
  --accent-hi: #ffbb1f;
  --on-accent: #1d1500;
  --live: #ff3b4e;
  --ok: #15924f;
  --ok-bg: #e4f5ec;
  --warn: #8c5b00;
  --warn-bg: #fff4d9;
  --bad: #c8222f;
  --bad-bg: #fde8ea;
  --info-bg: #eaf0ff;
  --glass: rgba(255, 255, 255, .72);
  --glass-line: rgba(255, 255, 255, .6);
  --shadow-1: 0 1px 2px rgba(16, 20, 40, .05), 0 4px 14px -6px rgba(16, 20, 40, .1);
  --shadow-2: 0 2px 6px rgba(16, 20, 40, .06), 0 22px 50px -24px rgba(16, 20, 40, .28);
  --r-xs: 10px;
  --r-s: 14px;
  --r-m: 20px;
  --r-l: 28px;
  --font: "Geist", -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, "Segoe UI", Roboto, sans-serif;
  --mark: "Archivo", "Geist", system-ui, sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --spring: cubic-bezier(.34, 1.4, .5, 1);
  --nav-h: 56px;
  color-scheme: light;
}

/* The live room dims the house lights. */
body.theatre {
  --paper: #0d0f16;
  --surface: rgba(255, 255, 255, .06);
  --tile: rgba(255, 255, 255, .06);
  --fill: rgba(255, 255, 255, .1);
  --fill-hi: rgba(255, 255, 255, .16);
  --ink: #f3f5fa;
  --ink-2: #cdd2de;
  --muted: #8f96a8;
  --line: rgba(255, 255, 255, .09);
  --line-2: rgba(255, 255, 255, .16);
  --glass: rgba(26, 29, 40, .62);
  --glass-line: rgba(255, 255, 255, .12);
  --ok-bg: rgba(46, 204, 120, .14); --ok: #5fe39b;
  --warn-bg: rgba(242, 169, 0, .14); --warn: #ffd067;
  --bad-bg: rgba(255, 59, 78, .15); --bad: #ff8a95;
  --info-bg: rgba(120, 150, 255, .14);
  --shadow-1: none;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.55; letter-spacing: -.006em;
  color: var(--ink); background: var(--paper);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  transition: background-color .5s var(--ease), color .5s var(--ease);
}
img { max-width: 100%; display: block; }
a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 3px solid rgba(242, 169, 0, .65); outline-offset: 2px; border-radius: 8px; }
::selection { background: rgba(242, 169, 0, .3); }
h1, h2, h3 { margin: 0 0 .45em; font-weight: 600; letter-spacing: -.028em; line-height: 1.08; }
h1 { font-size: clamp(2rem, 4.2vw, 3rem); }
h2 { font-size: clamp(1.25rem, 2vw, 1.5rem); letter-spacing: -.02em; }
h3 { font-size: 1.06rem; letter-spacing: -.012em; }
p { margin: 0 0 1em; }
code { font-size: .9em; background: var(--fill); padding: 2px 7px; border-radius: 7px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.num, .price { font-variant-numeric: tabular-nums; letter-spacing: -.03em; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- navigation: a thin glass bar on desktop, a floating capsule on phones ---------- */
.topbar {
  position: sticky; top: 0; z-index: 30;
  background: var(--glass); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line);
  padding-top: env(safe-area-inset-top, 0px);
}
.topbar-inner { max-width: 1240px; margin: 0 auto; height: var(--nav-h); display: flex; align-items: center; gap: 20px; padding: 0 22px; }
.brand { color: var(--ink); text-decoration: none; display: flex; align-items: baseline; gap: 10px; }
.brand b { font-family: var(--mark); font-variation-settings: "wdth" 125; font-stretch: 125%; font-weight: 900; font-size: 1.3rem; letter-spacing: .02em; }
.brand span { font-size: .82rem; color: var(--muted); letter-spacing: -.01em; }
.nav { display: flex; gap: 2px; margin-left: auto; }
.nav a {
  color: var(--ink-2); text-decoration: none; padding: 7px 13px; border-radius: 999px;
  font-weight: 500; font-size: .9rem; display: flex; align-items: center; gap: 7px; position: relative;
  transition: background-color .2s var(--ease), color .2s var(--ease);
}
.nav a:hover { color: var(--ink); background: var(--fill); }
.nav a.active { color: var(--ink); background: var(--fill); }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--live); display: inline-block; flex: none; }
.live-dot.on { animation: ping 1.8s var(--ease) infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(255, 59, 78, .55); } 80%, 100% { box-shadow: 0 0 0 7px rgba(255, 59, 78, 0); } }
.nav .ico { display: none; }

@media (max-width: 760px) {
  .topbar { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--paper); border-bottom-color: transparent; }
  .topbar-inner { height: 52px; }
  .brand span { display: none; }
  .nav {
    position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(12px + env(safe-area-inset-bottom, 0px)); z-index: 40; margin: 0;
    width: min(calc(100% - 24px), 440px);
    background: var(--glass); backdrop-filter: saturate(180%) blur(22px); -webkit-backdrop-filter: saturate(180%) blur(22px);
    border: 1px solid var(--glass-line); border-radius: 999px; justify-content: space-around; gap: 0; padding: 6px;
    box-shadow: 0 10px 34px -10px rgba(16, 20, 40, .35), inset 0 1px 0 rgba(255, 255, 255, .5);
  }
  body.theatre .nav { box-shadow: 0 10px 34px -10px rgba(0, 0, 0, .7), inset 0 1px 0 rgba(255, 255, 255, .08); }
  .nav a { flex-direction: column; gap: 2px; font-size: .66rem; font-weight: 600; padding: 7px 4px 6px; flex: 1; min-width: 0; }
  .nav a span { white-space: nowrap; }
  .nav .ico { display: block; width: 22px; height: 22px; }
  .nav a .live-dot { position: absolute; top: 6px; left: calc(50% + 7px); margin: 0; }
  body { padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }
}

/* ---------- layout ---------- */
main { max-width: 1240px; margin: 0 auto; padding: 32px 22px 72px; min-height: 60vh; }
.narrow { max-width: 720px; margin: 0 auto; }
.prose { max-width: 70ch; }
.prose h1 { margin-bottom: .3em; }
.prose h2 { margin-top: 2em; font-size: 1.25rem; }
.prose li { margin-bottom: .45em; }
.prose table { width: 100%; border-collapse: collapse; margin: 14px 0 20px; font-size: .94rem; }
.prose th, .prose td { text-align: left; padding: 11px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { color: var(--muted); font-weight: 500; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.stack > * + * { margin-top: 12px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
@media (max-width: 600px) { .grid2 { grid-template-columns: 1fr; } }
.page-head { display: flex; align-items: end; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 24px; }
.page-head h1 { margin: 0; }

/* Panels are grouped surfaces (like iOS settings groups): no outline, just a lift. */
.panel { background: var(--surface); border-radius: var(--r-m); padding: 22px; box-shadow: var(--shadow-1); }
body.theatre .panel { border: 1px solid var(--line); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.panel + .panel { margin-top: 16px; }
.panel h2:first-child, .panel h3:first-child { margin-top: 0; }

/* ---------- buttons: capsules; one filled marigold action per screen ---------- */
.btn {
  appearance: none; border: 0; background: var(--fill); color: var(--ink);
  font: inherit; font-weight: 550; font-size: .95rem; letter-spacing: -.01em;
  padding: 11px 20px; border-radius: 999px; cursor: pointer; min-height: 44px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none;
  transition: background-color .2s var(--ease), transform .15s var(--ease), box-shadow .2s var(--ease), color .2s;
}
.btn:hover { background: var(--fill-hi); color: var(--ink); }
.btn:active:not(:disabled) { transform: scale(.97); }
.btn:disabled { opacity: .42; cursor: not-allowed; }
.btn.primary { background: var(--ink); color: var(--paper); }
.btn.primary:hover { background: var(--ink-2); color: var(--paper); }
body.theatre .btn.primary { background: #fff; color: #0d0f16; }
.btn.go { background: var(--accent); color: var(--on-accent); font-weight: 650; box-shadow: 0 8px 24px -10px rgba(242, 169, 0, .75); }
.btn.go:hover:not(:disabled) { background: var(--accent-hi); color: var(--on-accent); }
.btn.danger { color: var(--bad); background: var(--bad-bg); }
.btn.danger:hover { background: var(--bad-bg); filter: saturate(1.3); color: var(--bad); }
.btn.ghost { background: transparent; }
.btn.ghost:hover { background: var(--fill); }
.btn.line { background: transparent; box-shadow: inset 0 0 0 1px var(--line-2); }
.btn.line:hover { background: var(--fill); }
.btn.small { min-height: 34px; padding: 6px 13px; font-size: .84rem; }
.btn.block { width: 100%; }

/* ---------- forms: filled fields, no boxes ---------- */
label { display: block; font-weight: 500; font-size: .86rem; margin-bottom: 7px; color: var(--ink-2); }
.field { margin-bottom: 18px; }
.hint { font-size: .8rem; color: var(--muted); margin-top: 6px; font-weight: 400; line-height: 1.45; }
input:not([type]), input[type=text], input[type=email], input[type=password], input[type=tel], input[type=number],
input[type=search], input[type=datetime-local], input[type=color], select, textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: var(--fill);
  border: 1px solid transparent; border-radius: var(--r-s); padding: 12px 14px; min-height: 48px;
  transition: background-color .2s var(--ease), border-color .2s var(--ease), box-shadow .2s var(--ease);
}
input::placeholder, textarea::placeholder { color: var(--muted); opacity: .8; }
input[type=color] { padding: 5px; width: 64px; }
textarea { min-height: 110px; resize: vertical; }
input:hover, select:hover, textarea:hover { background: var(--fill-hi); }
input:focus, select:focus, textarea:focus { outline: none; background: var(--surface); border-color: var(--accent); box-shadow: 0 0 0 4px rgba(242, 169, 0, .18); }
select { appearance: none; -webkit-appearance: none; padding-right: 38px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%236e7381' stroke-width='1.8'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; }
.check { display: block; position: relative; padding-left: 32px; font-weight: 400; font-size: .95rem; margin-bottom: 12px; color: var(--ink); }
.check input { position: absolute; left: 0; top: 1px; width: 20px; height: 20px; margin: 0; accent-color: var(--ink); }
.seg { display: inline-flex; background: var(--fill); border-radius: 999px; padding: 3px; gap: 2px; }
.seg button { border: 0; background: transparent; color: var(--ink-2); font: inherit; font-weight: 550; font-size: .9rem; padding: 7px 15px; border-radius: 999px; cursor: pointer; min-height: 36px; transition: background-color .2s var(--ease), color .2s, box-shadow .2s; }
.seg button[aria-pressed=true] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(16, 20, 40, .12); }
body.theatre .seg button[aria-pressed=true] { background: rgba(255, 255, 255, .18); }
.seg button:disabled { opacity: .4; cursor: not-allowed; }

.notice { border-radius: var(--r-s); padding: 14px 16px; font-size: .94rem; line-height: 1.5; }
.notice.info { background: var(--info-bg); color: var(--ink); }
.notice.warn { background: var(--warn-bg); color: var(--warn); }
.notice.bad { background: var(--bad-bg); color: var(--bad); }
.notice.ok { background: var(--ok-bg); color: var(--ok); }
.notice a { color: inherit; }

.chip { display: inline-flex; align-items: center; gap: 6px; font-size: .75rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--fill); color: var(--ink-2); white-space: nowrap; letter-spacing: 0; }
.chip.ok { background: var(--ok-bg); color: var(--ok); }
.chip.warn { background: var(--warn-bg); color: var(--warn); }
.chip.bad { background: var(--bad-bg); color: var(--bad); }
.chip.live { background: var(--live); color: #fff; }

table.list { width: 100%; border-collapse: collapse; font-size: .93rem; }
table.list th { text-align: left; font-weight: 500; font-size: .8rem; color: var(--muted); border-bottom: 1px solid var(--line); padding: 10px 10px; }
table.list td { border-bottom: 1px solid var(--line); padding: 14px 10px; vertical-align: top; }
table.list tr:last-child td { border-bottom: 0; }
table.list tbody tr { transition: background-color .15s; }
table.list tbody tr:hover { background: rgba(22, 24, 29, .025); }
.scroll-x { overflow-x: auto; }

.tabs { display: inline-flex; gap: 2px; margin-bottom: 26px; overflow-x: auto; padding: 3px; background: var(--fill); border-radius: 999px; max-width: 100%; scrollbar-width: none; }
.tabs a { padding: 8px 16px; text-decoration: none; font-weight: 550; font-size: .9rem; color: var(--ink-2); white-space: nowrap; border-radius: 999px; transition: background-color .2s, color .2s; }
.tabs a:hover { color: var(--ink); }
.tabs a.active { color: var(--ink); background: var(--surface); box-shadow: 0 1px 3px rgba(16, 20, 40, .12); }

/* ---------- cards presented like objects on a plinth ---------- */
.frame { background: var(--tile); border-radius: var(--r-m); padding: 12%; position: relative; overflow: hidden; }
/* Any shape of item: the photo is contained, and the shadow follows its outline. */
.frame .ph { aspect-ratio: 4 / 5; display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: .8rem; transition: transform .45s var(--ease); }
.frame .ph img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 1px 1px rgba(16, 20, 40, .1)) drop-shadow(0 16px 18px rgba(16, 20, 40, .28)); }

.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 34px 22px; }
@media (max-width: 480px) { .products { grid-template-columns: 1fr 1fr; gap: 24px 12px; } .frame { padding: 12% 14%; } }
.pcard { text-decoration: none; color: inherit; display: block; }
.pcard:hover .frame .ph { transform: translateY(-4px) scale(1.02); }
.pcard .t { font-weight: 550; font-size: .95rem; line-height: 1.32; margin: 14px 0 3px; letter-spacing: -.012em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pcard .s { font-size: .8rem; color: var(--muted); }
.pcard .p { font-weight: 600; font-size: 1.02rem; margin-top: 5px; }

/* ---------- landing ---------- */
.hero { text-align: center; padding: 40px 0 0; }
.hero h1 { font-size: clamp(2.8rem, 8.6vw, 6.4rem); line-height: .95; letter-spacing: -.055em; font-weight: 650; margin: 0 auto .28em; max-width: 12ch; }
.hero p.lead { font-size: clamp(1.08rem, 1.8vw, 1.32rem); color: var(--muted); max-width: 40ch; margin: 0 auto 28px; line-height: 1.45; letter-spacing: -.015em; }
.hero .row { justify-content: center; }
.hero .fine { font-size: .82rem; color: var(--muted); margin-top: 18px; }

/* Showcase: a card on the block, lit by its own colour. */
.showcase { position: relative; margin: 64px auto 0; max-width: 980px; border-radius: 36px; overflow: hidden;
  background: radial-gradient(70% 90% at 50% 100%, #2a2350 0%, #12131c 62%); color: #f3f5fa;
  display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 24px; padding: 56px 56px 56px; text-align: left; }
.showcase::before { content: ""; position: absolute; width: 560px; height: 560px; left: 8%; top: 50%; transform: translateY(-50%);
  background: radial-gradient(circle, rgba(242, 169, 0, .5), rgba(255, 90, 140, .25) 40%, transparent 70%); filter: blur(30px); opacity: .9; }
.showcase .card3d { position: relative; width: min(260px, 70%); margin: 0 auto; aspect-ratio: 5/7; border-radius: 14px; transform: perspective(900px) rotateY(-14deg) rotateX(4deg);
  background: linear-gradient(155deg, #fff6d8 0%, #f2a900 28%, #ff6b8a 58%, #6c5cff 100%);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .8), inset 0 0 0 1px rgba(255, 255, 255, .5); animation: tilt 8s var(--ease) infinite alternate; }
.showcase .card3d::after { content: ""; position: absolute; inset: 7%; border-radius: 8px; background: linear-gradient(180deg, rgba(10, 12, 22, .1), rgba(10, 12, 22, .65)); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .35); }
.showcase .card3d::before { content: ""; position: absolute; inset: 0; border-radius: 14px; background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .55) 48%, transparent 60%); mix-blend-mode: overlay; z-index: 1; animation: sheen 5s ease-in-out infinite; }
@keyframes tilt { to { transform: perspective(900px) rotateY(10deg) rotateX(-3deg); } }
@keyframes sheen { 0%, 100% { opacity: 0; transform: translateX(-30%); } 50% { opacity: 1; transform: translateX(30%); } }
.showcase .meta { position: relative; }
.showcase .live-tag { display: inline-flex; align-items: center; gap: 8px; font-size: .85rem; font-weight: 600; color: #ffb3bb; margin-bottom: 16px; }
.showcase .lot-name { font-size: 1.15rem; font-weight: 500; color: #cdd2de; letter-spacing: -.015em; }
.showcase .amt { font-size: clamp(3.2rem, 7vw, 5.4rem); font-weight: 650; letter-spacing: -.06em; line-height: 1; margin: 10px 0 8px; font-variant-numeric: tabular-nums; }
.showcase .who { color: #8f96a8; font-size: .95rem; margin-bottom: 22px; }
.showcase .timer .bar { background: rgba(255, 255, 255, .12); }
@media (max-width: 820px) { .showcase { grid-template-columns: 1fr; padding: 40px 26px; border-radius: 28px; text-align: center; } .showcase::before { left: 50%; top: 30%; transform: translate(-50%, -50%); width: 380px; height: 380px; } }

.rules { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; max-width: 980px; margin: 72px auto 0; text-align: left; }
.rules div { padding-top: 18px; border-top: 1px solid var(--line-2); }
.rules b { display: block; font-size: 1.9rem; font-weight: 650; letter-spacing: -.045em; line-height: 1.05; margin-bottom: 8px; }
.rules span { color: var(--muted); font-size: .92rem; line-height: 1.45; }
@media (max-width: 760px) { .rules { grid-template-columns: 1fr 1fr; gap: 24px 18px; } }

.livebar { display: flex; align-items: center; gap: 16px; border-radius: var(--r-l); padding: 22px 24px; margin-bottom: 40px; flex-wrap: wrap;
  background: radial-gradient(80% 160% at 0% 0%, #3b2a5e 0%, #15161f 60%); color: #f3f5fa; box-shadow: var(--shadow-2); }
.livebar .who { font-weight: 600; font-size: 1.25rem; letter-spacing: -.025em; }
.livebar .sub { color: #a5abbd; font-size: .9rem; }
.livebar .btn { margin-left: auto; }
.livebar .btn.line { color: #f3f5fa; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25); }
.livebar .btn.line:hover { background: rgba(255, 255, 255, .1); }

/* ---------- product page ---------- */
.pdp { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 56px; align-items: start; }
.pdp > div:last-child { position: sticky; top: calc(var(--nav-h) + 24px); }
@media (max-width: 880px) { .pdp { grid-template-columns: 1fr; gap: 28px; } .pdp > div:last-child { position: static; } }
.gallery .frame { padding: 10% 18%; border-radius: var(--r-l); }
.thumbs { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.thumbs button { border: 0; background: var(--tile); padding: 6px; border-radius: 12px; width: 62px; cursor: pointer; transition: box-shadow .2s; }
.thumbs button[aria-current=true] { box-shadow: 0 0 0 2px var(--ink); }
.thumbs img { aspect-ratio: 5/7; object-fit: cover; border-radius: 4px; }
.bigprice { font-size: clamp(2.2rem, 4vw, 3rem); font-weight: 650; letter-spacing: -.05em; line-height: 1; margin: 6px 0 4px; }
dl.specs { display: grid; grid-template-columns: max-content 1fr; gap: 0; margin: 0; }
dl.specs dt, dl.specs dd { padding: 11px 0; border-bottom: 1px solid var(--line); margin: 0; }
dl.specs dt { color: var(--muted); padding-right: 24px; }
.breakup { display: grid; grid-template-columns: 1fr auto; gap: 7px 12px; color: var(--ink-2); }
.breakup .tot { font-weight: 600; color: var(--ink); border-top: 1px solid var(--line); padding-top: 10px; margin-top: 4px; }
.disclosure { color: var(--ink-2); background: var(--fill); border-radius: 12px; padding: 10px 12px; margin: 12px 0 0; }

/* Mobile buy bar: price on the left, the one action on the right, in thumb reach. */
.buybar { display: none; }
@media (max-width: 760px) {
  .buybar { display: flex; align-items: center; gap: 14px; position: fixed; z-index: 35; left: 50%; transform: translateX(-50%);
    bottom: calc(84px + env(safe-area-inset-bottom, 0px)); width: min(calc(100% - 24px), 440px); padding: 8px 8px 8px 20px;
    background: var(--glass); backdrop-filter: saturate(180%) blur(22px); -webkit-backdrop-filter: saturate(180%) blur(22px);
    border: 1px solid var(--glass-line); border-radius: 999px; box-shadow: 0 10px 30px -12px rgba(16, 20, 40, .35); }
  .buybar .price { font-weight: 650; font-size: 1.15rem; flex: 1; }
  .buybar .btn { min-width: 132px; }
}

/* ---------- live room (theatre) ---------- */
.room { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(320px, .65fr); gap: 20px; align-items: start; }
@media (max-width: 940px) { .room { grid-template-columns: 1fr; } }
.stage { position: relative; border-radius: var(--r-l); overflow: hidden; background: #12141d; isolation: isolate; }
/* Ambient light taken from the card itself, like album art behind a player. */
.stage::before { content: ""; position: absolute; inset: -20%; z-index: -1; background-image: var(--art, radial-gradient(circle at 30% 30%, #4b3a8a, transparent 60%)); background-size: cover; background-position: center; filter: blur(60px) saturate(1.6) brightness(.6); opacity: .9; transition: background-image .6s; }
.stage::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(13, 15, 22, .2), rgba(13, 15, 22, .75)); }
.stage-head { display: flex; align-items: center; gap: 10px; padding: 16px 22px; flex-wrap: wrap; }
.stage-head .name { font-weight: 600; letter-spacing: -.015em; }
.stage-head .title-sub { color: var(--muted); }
.stage-head .viewers { margin-left: auto; color: var(--ink-2); font-size: .84rem; background: rgba(255, 255, 255, .1); padding: 5px 11px; border-radius: 999px; backdrop-filter: blur(10px); }
.lot { display: grid; grid-template-columns: 220px 1fr; gap: 34px; padding: 18px 28px 30px; align-items: center; }
.lot .frame { background: transparent; padding: 0; overflow: visible; border-radius: 0; }
.lot .frame .ph { transform: perspective(800px) rotateY(-6deg); }
.lot .frame .ph img { filter: drop-shadow(0 30px 30px rgba(0, 0, 0, .7)); }
.lot .title { font-weight: 550; font-size: 1.15rem; line-height: 1.3; letter-spacing: -.015em; }
.lot .cond { color: var(--muted); font-size: .88rem; margin-top: 2px; }
.lot .amount { font-size: clamp(3.2rem, 8vw, 5.6rem); font-weight: 650; line-height: .95; margin: 18px 0 8px; letter-spacing: -.06em; display: inline-block; transform-origin: left center; }
.lot .amount.bump { animation: bump .55s var(--spring); }
@keyframes bump { 0% { transform: scale(1); color: var(--ink); } 35% { transform: scale(1.06); color: var(--accent-hi); } 100% { transform: scale(1); color: var(--ink); } }
.lot .lead { color: var(--muted); font-size: .93rem; min-height: 1.4em; }
.lot .lead b { color: var(--ink); font-weight: 600; }
.timer { margin: 20px 0 18px; display: flex; align-items: center; gap: 14px; }
.timer .bar { flex: 1; height: 4px; background: var(--fill); border-radius: 99px; overflow: hidden; }
.timer .bar i { display: block; height: 100%; background: var(--ink); width: 100%; transition: width .25s linear; border-radius: 99px; }
.timer.hot .bar i { background: var(--live); }
.timer .secs { font-size: 1.15rem; font-weight: 600; min-width: 3.2ch; text-align: right; font-variant-numeric: tabular-nums; }
.timer.hot .secs { color: var(--live); }
.lot .btn.go { font-size: 1.1rem; min-height: 60px; width: 100%; font-weight: 650; }
.lot .btn.go:disabled { background: var(--fill); color: var(--muted); opacity: 1; box-shadow: none; }
.lot .result { font-size: 1.05rem; font-weight: 550; padding: 14px 18px; border-radius: var(--r-s); background: var(--fill); }
.idle { padding: 48px 28px; }
.idle h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); letter-spacing: -.035em; }
.idle p { color: var(--muted); }
@media (max-width: 560px) {
  /* Phone: small card beside the price, controls full width underneath. */
  .lot { grid-template-columns: 92px 1fr; column-gap: 16px; row-gap: 0; padding: 4px 18px 22px; align-items: start; }
  .lot > div:last-child { display: contents; }
  .lot .frame { grid-row: 1 / span 4; }
  .lot .title { font-size: 1rem; }
  .lot .amount { margin: 8px 0 4px; font-size: 2.8rem; }
  .lot .timer, .lot .swipe, .lot .btn, .lot .result { grid-column: 1 / -1; }
  .lot .timer { margin: 18px 0 14px; }
  .stage-head { padding: 14px 18px 8px; }
  .stage-head .viewers { margin-left: 0; }
}
.bids-strip { padding: 0 28px 22px; display: flex; gap: 8px; flex-wrap: wrap; font-size: .8rem; color: var(--muted); }
.bids-strip span { background: rgba(255, 255, 255, .08); padding: 4px 10px; border-radius: 99px; }
.bids-strip span:first-child { color: var(--ink); background: rgba(242, 169, 0, .22); }

/* Slide to bid (touch screens): drag the knob across, like slide-to-unlock. */
.swipe { position: relative; height: 62px; border-radius: 999px; background: var(--accent); overflow: hidden; touch-action: none; user-select: none; -webkit-user-select: none; cursor: grab; box-shadow: 0 10px 30px -12px rgba(242, 169, 0, .8); }
.swipe .swipe-label { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-weight: 650; font-size: 1.06rem; color: var(--on-accent); letter-spacing: -.01em; pointer-events: none; padding-left: 40px; }
.swipe .swipe-knob { position: absolute; top: 5px; left: 5px; width: 52px; height: 52px; border-radius: 50%; background: #fff; display: flex; align-items: center; justify-content: center; color: var(--on-accent); box-shadow: 0 4px 12px rgba(0, 0, 0, .25); transition: transform .35s var(--spring); }
.swipe .swipe-knob svg { width: 22px; height: 22px; }
.swipe.dragging .swipe-knob { transition: none; }
.swipe.done { background: #ffd36a; }

.chat { background: var(--glass); border: 1px solid var(--line); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-radius: var(--r-l); display: flex; flex-direction: column; height: min(76vh, 720px); }
@media (max-width: 940px) { .chat { height: 58vh; } }
.chat-head { padding: 16px 20px 10px; font-weight: 600; display: flex; justify-content: space-between; letter-spacing: -.015em; }
.chat-log { flex: 1; overflow-y: auto; padding: 6px 20px 10px; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--line-2) transparent;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 24px); mask-image: linear-gradient(180deg, transparent 0, #000 24px); }
.msg { padding: 5px 0; font-size: .93rem; line-height: 1.45; word-wrap: break-word; position: relative; color: var(--ink-2); animation: msgIn .3s var(--ease); }
@keyframes msgIn { from { opacity: 0; transform: translateY(6px); } }
.msg .u { font-weight: 600; margin-right: 6px; color: var(--ink); }
.msg .badge { font-size: .66rem; font-weight: 700; background: var(--ink); color: var(--paper); border-radius: 5px; padding: 1px 6px; margin-right: 6px; vertical-align: 1px; }
.msg .badge.seller { background: var(--accent); color: var(--on-accent); }
.msg.removed { color: var(--muted); font-style: italic; }
.msg.sys { color: var(--muted); font-size: .85rem; }
.msg .acts { display: none; gap: 4px; margin-top: 4px; }
.msg:hover .acts, .msg:focus-within .acts { display: flex; }
.msg .acts button { font: inherit; font-size: .74rem; border: 0; background: var(--fill); color: var(--ink-2); border-radius: 999px; padding: 3px 10px; cursor: pointer; }
.chat-form { display: flex; gap: 8px; padding: 10px; }
.chat-form input { flex: 1; border-radius: 999px; padding-left: 18px; }

.seller-tools { margin-top: 20px; }

/* ---------- bills ---------- */
.steps { display: flex; gap: 6px; margin: 14px 0 24px; padding: 0; }
.steps li { list-style: none; flex: 1; font-size: .78rem; color: var(--muted); padding-top: 10px; border-top: 3px solid var(--fill); }
.steps li.done { color: var(--ink); border-color: var(--ink); font-weight: 550; }
.steps li.now { color: var(--ink); border-color: var(--accent); font-weight: 550; }
.qr { background: #fff; padding: 8px; display: inline-block; border-radius: 12px; }
.olist a.o { display: grid; grid-template-columns: 52px 1fr auto; gap: 16px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: inherit; }
.olist a.o:last-child { border-bottom: 0; }
.olist img, .olist .noimg { width: 52px; aspect-ratio: 5/7; object-fit: cover; border-radius: 6px; background: var(--tile); }
.receipt { white-space: pre-line; background: var(--fill); border-radius: var(--r-s); padding: 14px 16px; font-size: .95rem; }
.receipt-inline { white-space: pre-line; color: var(--ink-2); margin-top: 4px; }
.terms-gate { box-shadow: 0 0 0 2px var(--accent), var(--shadow-1); }

/* ---------- toast & sheets ---------- */
.toasts { position: fixed; z-index: 100; left: 50%; transform: translateX(-50%); top: calc(14px + env(safe-area-inset-top, 0px)); display: grid; gap: 8px; width: min(92vw, 420px); }
.toast { background: rgba(22, 24, 29, .9); color: #fff; padding: 12px 18px; border-radius: 999px; backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: 0 12px 36px -12px rgba(0, 0, 0, .5); font-weight: 500; font-size: .93rem; text-align: center; animation: toastIn .45s var(--spring); }
@keyframes toastIn { from { opacity: 0; transform: translateY(-14px) scale(.96); } }
.toast.bad { background: rgba(200, 34, 47, .94); }
.toast.ok { background: rgba(21, 146, 79, .96); }
.toast { cursor: pointer; font-size: 1rem; padding: 14px 20px; }
.toast.ok::before { content: "✓  "; font-weight: 700; }
.toast.bad::before { content: "!  "; font-weight: 800; }
dialog.modal { border: 0; border-radius: var(--r-l); padding: 0; width: min(94vw, 520px); color: var(--ink); background: var(--surface); box-shadow: 0 40px 100px -30px rgba(10, 12, 25, .55); animation: sheetIn .38s var(--ease); }
body.theatre dialog.modal { background: #1a1d28; }
dialog.modal::backdrop { background: rgba(10, 12, 22, .38); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
@keyframes sheetIn { from { opacity: 0; transform: translateY(16px) scale(.98); } }
.modal-body { padding: 28px 28px 16px; max-height: 76vh; overflow-y: auto; }
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; padding: 12px 28px 24px; flex-wrap: wrap; }
@media (max-width: 600px) {
  /* Bottom sheet on phones, with a grabber. */
  dialog.modal { margin: auto 0 0; width: 100%; max-width: 100%; border-radius: 28px 28px 0 0; animation: sheetUp .4s var(--ease); padding-bottom: env(safe-area-inset-bottom, 0px); }
  dialog.modal::before { content: ""; display: block; width: 38px; height: 5px; border-radius: 99px; background: var(--line-2); margin: 10px auto 0; }
  .modal-actions .btn { flex: 1; }
  @keyframes sheetUp { from { transform: translateY(100%); } }
}

/* ---------- footer ---------- */
footer.site { margin-top: 24px; }
footer.site .in { max-width: 1240px; margin: 0 auto; padding: 28px 22px 40px; font-size: .8rem; color: var(--muted); display: grid; gap: 10px; border-top: 1px solid var(--line); }
footer.site nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }
footer.site a { color: var(--ink-2); text-decoration: none; }
footer.site a:hover { text-decoration: underline; }

.empty { padding: 56px 24px; text-align: center; color: var(--muted); background: var(--surface); border-radius: var(--r-l); box-shadow: var(--shadow-1); }
.empty h3 { color: var(--ink); font-size: 1.2rem; }
.loading { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 72px 0; color: var(--muted); }
.spinner { width: 30px; height: 30px; border-radius: 50%; border: 3px solid var(--line-2); border-top-color: var(--accent); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; margin-bottom: 26px; }
.kpi { background: var(--surface); border-radius: var(--r-m); padding: 18px 20px; box-shadow: var(--shadow-1); }
.kpi .v { font-size: 1.75rem; font-weight: 650; letter-spacing: -.045em; }
.kpi .l { font-size: .83rem; color: var(--muted); }

.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; margin-bottom: 14px; }
.filters > div { flex: 1 1 140px; }
.filters .grow { flex: 3 1 260px; }
.filters input[type=search] { border-radius: 999px; padding-left: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' fill='none' stroke='%236e7381' stroke-width='2'%3E%3Ccircle cx='8' cy='8' r='6'/%3E%3Cpath d='M12.5 12.5L17 17'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: 16px center; }
.filters label { font-size: .78rem; color: var(--muted); }
.filters .check { margin: 0 0 13px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
.showcase .timer .secs { color: #fff; }

@media (max-width: 600px) {
  .filters { gap: 8px; }
  .filters > div { flex: 1 1 calc(50% - 4px); }
  .filters .grow { flex-basis: 100%; }
  .filters label:not(.check) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .filters input, .filters select { min-height: 44px; }
  .filters .check { flex: 1 1 calc(50% - 4px); margin: 0; align-self: center; }
}
@media (max-width: 760px) { main:has(.buybar) { padding-bottom: 150px; } }

/* ---------- practice auction on the landing page ---------- */
.showcase.demo { align-items: center; }
.tiltzone { position: relative; padding: 10px 0; touch-action: pan-y; }
.showcase .card3d .glare { position: absolute; inset: 0; border-radius: 14px; z-index: 2; pointer-events: none; mix-blend-mode: soft-light; transition: background .2s; }
.showcase .card3d.held { animation: none; transition: transform .12s ease-out; }
.showcase .card3d:not(.held) { transition: transform .8s var(--spring); }
.showcase .amt { display: inline-block; transform-origin: left center; }
.showcase .amt.bump { animation: bumpLight .55s var(--spring); }
@keyframes bumpLight { 35% { transform: scale(1.06); color: var(--accent-hi); } }
.showcase .timer { margin: 4px 0 18px; }
.showcase .timer.hot .bar i { background: var(--live) !important; }
.showcase .timer.hot .secs { color: #ff8a95; }
.showcase .btn:not(.go) { background: rgba(255, 255, 255, .12); color: #f3f5fa; }
.showcase .btn:not(.go):hover { background: rgba(255, 255, 255, .2); }
.showcase .btn.go:disabled { background: rgba(255, 255, 255, .1); color: #cdd2de; opacity: 1; box-shadow: none; }
.dfeed { min-height: 72px; margin-top: 16px; font-size: .88rem; color: #cdd2de; display: grid; gap: 4px; align-content: start; }
.dfeed div { animation: msgIn .35s var(--ease); }
.dfeed div:nth-child(2) { opacity: .7; } .dfeed div:nth-child(3) { opacity: .4; }
.dfeed b { color: #fff; font-weight: 600; }
.dnote { font-size: .78rem; color: #8f96a8; margin: 10px 0 0; }
.dresult { font-size: 1.05rem; font-weight: 550; padding: 14px 16px; border-radius: var(--r-s); background: rgba(255, 255, 255, .08); line-height: 1.4; }
.dresult.won { background: rgba(242, 169, 0, .18); color: #ffe2a0; }
@media (max-width: 820px) { .showcase .meta { text-align: left; } .showcase .card3d { width: min(200px, 58%); } }
.closing { text-align: center; margin: 88px auto 0; }
.closing h2 { font-size: clamp(1.8rem, 4.5vw, 3rem); letter-spacing: -.045em; margin-bottom: 22px; }

/* ---------- giveaways in the live room ---------- */
.give { display: grid; grid-template-columns: 96px 1fr; gap: 18px; margin-top: 16px; padding: 18px; border-radius: var(--r-l);
  background: linear-gradient(120deg, rgba(108, 92, 255, .22), rgba(255, 107, 138, .16) 55%, rgba(242, 169, 0, .14)), var(--surface);
  border: 1px solid var(--line); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); animation: sheetIn .45s var(--ease); }
.give-art { aspect-ratio: 1; border-radius: 16px; overflow: hidden; background: rgba(255, 255, 255, .1); display: flex; align-items: center; justify-content: center; color: var(--ink-2); }
.give-art img { width: 100%; height: 100%; object-fit: cover; }
.give-art svg { width: 44%; height: 44%; }
.give-tag { font-size: .78rem; font-weight: 600; color: #c9b8ff; margin-bottom: 4px; }
.give h3 { margin: 0 0 4px; font-size: 1.12rem; }
.give p { margin: 0 0 6px; }
.give .timer { margin: 10px 0 12px; }
.give .btn { min-height: 50px; }
.give .btn.entered { background: rgba(95, 227, 155, .16); color: #8ff0b8; opacity: 1; }
.give-note { font-size: .82rem; color: var(--muted); margin-top: 8px; }
.give-win { font-weight: 600; font-size: 1.02rem; padding: 12px 14px; border-radius: var(--r-s); background: rgba(242, 169, 0, .2); color: #ffe2a0; margin-top: 8px; }
.give-result { font-size: .98rem; margin-top: 8px; }
.give-result b { color: var(--ink); }
@media (max-width: 560px) { .give { grid-template-columns: 72px 1fr; gap: 14px; padding: 16px; } }
.gphoto { flex: none; width: 92px; aspect-ratio: 1; border-radius: 16px; background: var(--fill); display: flex; align-items: center; justify-content: center; cursor: pointer; overflow: hidden; margin: 26px 0 0; color: var(--muted); }
.gphoto span { display: grid; justify-items: center; gap: 4px; width: 100%; height: 100%; place-content: center; }
.gphoto svg { width: 30px; height: 30px; }
.gphoto em { font-style: normal; font-size: .74rem; }
.gphoto img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- confetti ---------- */
.confetti { position: fixed; left: 50%; top: 42%; z-index: 120; pointer-events: none; }
.confetti i { position: absolute; width: 9px; height: 14px; border-radius: 2px; opacity: 0; animation: pop 1.25s var(--ease) forwards; }
@keyframes pop { 0% { opacity: 1; transform: translate(0, 0) rotate(0); } 70% { opacity: 1; } 100% { opacity: 0; transform: translate(var(--x), calc(var(--y) + 160px)) rotate(var(--r)); } }
.showcase .timer .bar i { background: #fff; }

/* ---------- Live now: room tiles ---------- */
.rooms { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; }
.rooms.strip { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 14px; padding-bottom: 6px; margin-bottom: 40px; scrollbar-width: none; }
.rooms.strip .roomcard { flex: 0 0 min(230px, 62vw); scroll-snap-align: start; }
.roomcard { position: relative; display: block; aspect-ratio: 4 / 5; border-radius: var(--r-l); overflow: hidden; text-decoration: none; color: #fff; isolation: isolate; background: #15161f; box-shadow: var(--shadow-2); transition: transform .35s var(--ease); }
.roomcard:hover { transform: translateY(-4px); color: #fff; }
.roomcard::before { content: ""; position: absolute; inset: -25%; z-index: -2; background: var(--art, radial-gradient(circle at 40% 30%, var(--accent), transparent 65%)); background-size: cover; background-position: center; filter: blur(40px) saturate(1.5) brightness(.65); }
.roomcard::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10, 12, 20, .05) 30%, rgba(10, 12, 20, .85)); }
.rc-art { position: absolute; inset: 12% 18% 34%; display: flex; align-items: center; justify-content: center; }
.rc-art img { max-width: 100%; max-height: 100%; object-fit: contain; filter: drop-shadow(0 18px 24px rgba(0, 0, 0, .6)); transition: transform .45s var(--ease); }
.roomcard:hover .rc-art img { transform: scale(1.04); }
.rc-mono { width: 84px; height: 84px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 2.2rem; font-weight: 650; background: rgba(255, 255, 255, .14); }
.rc-top { position: absolute; top: 12px; left: 12px; right: 12px; display: flex; gap: 6px; flex-wrap: wrap; }
.rc-top .chip { backdrop-filter: blur(10px); }
.rc-give { background: rgba(108, 92, 255, .85); color: #fff; }
.rc-info { position: absolute; left: 16px; right: 16px; bottom: 14px; }
.rc-seller { font-weight: 650; font-size: 1.05rem; letter-spacing: -.02em; }
.rc-title { font-size: .84rem; color: rgba(255, 255, 255, .72); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rc-price { font-size: .8rem; color: rgba(255, 255, 255, .72); margin-top: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rc-price b { color: #fff; font-weight: 600; font-size: .92rem; }
@media (max-width: 480px) { .rooms { grid-template-columns: 1fr 1fr; gap: 12px; } .rc-seller { font-size: .95rem; } }
.schedule { padding: 6px 22px; }
.sched { display: grid; grid-template-columns: 210px 1fr auto; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: inherit; }
.sched:last-child { border-bottom: 0; }
.sched .when { color: var(--muted); font-size: .9rem; }
.sched .go { color: var(--muted); font-size: .86rem; }
.sched:hover .go { color: var(--ink); }
@media (max-width: 600px) { .sched { grid-template-columns: 1fr auto; } .sched .when { grid-column: 1 / -1; font-size: .8rem; } }

/* Live video (video.js). Sits above the stage; portrait phone streams are letterboxed. */
.vid { position: relative; border-radius: var(--r-l); overflow: hidden; background: #05060a; margin-bottom: 14px; aspect-ratio: 16 / 9; max-height: 62vh; width: 100%; display: grid; place-items: center; }
.vid-media, .vid-media video { width: 100%; height: 100%; }
.vid-media video { display: block; object-fit: contain; background: #05060a; }
.vid-media.mirror video { transform: scaleX(-1); }
.vid-msg { position: absolute; inset: auto 16px 50% 16px; transform: translateY(50%); text-align: center; color: #cdd2de; font-size: .95rem; pointer-events: none; }
.vid-msg[hidden] { display: none; }
.vid[data-state="error"] .vid-msg { color: #ffb4bb; }
.vid-sound { position: absolute; top: 12px; right: 12px; }
.vid-bar { position: absolute; left: 0; right: 0; bottom: 0; display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; padding: 12px; background: linear-gradient(180deg, transparent, rgba(5, 6, 10, .7)); }
.vid-bar[hidden], .vid-sound[hidden] { display: none; }
@media (max-width: 560px) { .vid { aspect-ratio: 3 / 4; max-height: 58vh; border-radius: var(--r-m); } }

/* Button feedback: spinner while working, green tick when done (see busy() in app.js). */
.btn.is-busy { opacity: .85; cursor: progress; }
.btn.is-busy::after { content: ""; display: inline-block; width: .9em; height: .9em; margin-left: .55em; vertical-align: -.12em; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; }
.btn.is-done, .btn.is-done:hover { background: var(--ok) !important; border-color: var(--ok) !important; color: #fff !important; opacity: 1; }
#view.refreshing { opacity: .55; pointer-events: none; transition: opacity .15s; }

/* ===================== Live player (v7.3) =====================
   Everything a buyer needs sits on the video: seller and viewers at the top,
   then giveaway, (on phones) chat, the item with its bid button at the bottom. */
.player { position: relative; overflow: hidden; isolation: isolate; width: 100%; aspect-ratio: 16 / 10; max-height: 76vh; min-height: 420px; border-radius: var(--r-l); background: #05060a; }
.p-video, .player .vid { position: absolute; inset: 0; }
.player .vid { aspect-ratio: auto; max-height: none; margin: 0; border-radius: 0; }
.player .vid-msg { inset: 22% 16px auto 16px; transform: none; }
.player .vid-sound { top: 62px; right: 12px; }
.player .vid-bar { top: 58px; bottom: auto; left: auto; right: 10px; padding: 0; background: none; flex-direction: column; align-items: flex-end; }
.p-top { position: absolute; top: 0; left: 0; right: 0; z-index: 3; padding: 12px 14px 30px; background: linear-gradient(180deg, rgba(0, 0, 0, .6), transparent); }
.p-top .stage-head { padding: 0; color: #fff; }
.p-top .title-sub { color: rgba(255, 255, 255, .7); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; flex: 0 1 auto; }
.p-top .viewers { background: rgba(0, 0, 0, .35); color: #fff; }
.p-back { display: none; }
.p-toolsbtn { background: var(--accent); color: var(--on-accent); }
.p-bottom { position: absolute; left: 0; bottom: 0; z-index: 3; width: min(100%, 520px); display: flex; flex-direction: column; gap: 10px; padding: 48px 14px 14px; pointer-events: none; }
.p-bottom > * { pointer-events: auto; }
.p-bottom > :empty { display: none; }
.player .stage { background: transparent; border-radius: 0; overflow: visible; }
.player .stage::before, .player .stage::after { display: none; }
.player .bids-strip { display: none; }
.player .idle { padding: 12px 16px; border-radius: 16px; background: rgba(12, 14, 22, .66); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.player .idle h2 { font-size: 1rem; margin: 0 0 2px; color: #fff; }
.player .idle p { font-size: .85rem; margin: 0; }

/* Item card: photo, title and price on one row; timer and bid button under it. */
.player .lot { display: grid; grid-template-columns: 52px 1fr auto; column-gap: 12px; row-gap: 0; padding: 12px; border-radius: 18px; align-items: center;
  background: rgba(12, 14, 22, .7); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid rgba(255, 255, 255, .08); }
.player .lot > div:last-child { display: contents; }
.player .lot .frame { grid-column: 1; grid-row: 1 / span 3; align-self: start; }
.player .lot .frame .ph { transform: none; font-size: .6rem; }
.player .lot .frame .ph img { filter: none; border-radius: 6px; }
.player .lot .title { grid-column: 2; grid-row: 1; font-size: .95rem; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.player .lot .cond { grid-column: 2; grid-row: 2; font-size: .78rem; margin: 0; }
.player .lot .lead { grid-column: 2; grid-row: 3; font-size: .8rem; min-height: 0; }
.player .lot .amount { grid-column: 3; grid-row: 1 / span 3; font-size: 2rem; margin: 0; color: #fff; text-align: right; }
.player .lot .timer, .player .lot .swipe, .player .lot .btn, .player .lot .result { grid-column: 1 / -1; }
.player .lot .timer { margin: 10px 0 8px; }
.player .lot .timer .secs { font-size: 1rem; color: #fff; }
.player .lot .btn.go { min-height: 52px; font-size: 1.02rem; }
.player .lot .swipe { height: 56px; }
.player .lot .swipe .swipe-knob { width: 46px; height: 46px; }
.player .lot .result { margin-top: 10px; padding: 10px 14px; font-size: .95rem; background: rgba(255, 255, 255, .1); color: #fff; }
.player .lot a.btn { margin-top: 8px; }

/* Giveaway: a compact card on the video. */
.player .give { grid-template-columns: 44px 1fr; gap: 10px; margin: 0; padding: 10px 12px; border-radius: 16px; animation: none;
  background: linear-gradient(120deg, rgba(108, 92, 255, .55), rgba(255, 107, 138, .45) 60%, rgba(242, 169, 0, .4)); border-color: rgba(255, 255, 255, .15); }
.player .give-art { border-radius: 10px; }
.player .give-tag { margin: 0; font-size: .7rem; color: #fff; opacity: .85; }
.player .give h3 { font-size: .95rem; color: #fff; margin: 0; }
.player .give p, .player .give-note { display: none; }
.player .give .timer { margin: 6px 0; }
.player .give .btn { min-height: 40px; font-size: .92rem; }
.player .give-win, .player .give-result { margin-top: 4px; font-size: .9rem; padding: 6px 10px; }

/* Seller tools: below the video on big screens; a slide-up sheet on phones. */
.room-tools .sheet-head { display: none; }

/* ----- Phones: full-screen video, chat on top of it ----- */
@media (max-width: 760px) {
  body.room-live .topbar, body.room-live footer.site, body.room-live .nav { display: none !important; }
  body.room-live main { padding: 0; }
  .room.is-live { position: fixed; inset: 0; z-index: 40; display: block; background: #000; }
  .room.is-live .room-main { position: absolute; inset: 0; }
  .room.is-live .player { position: absolute; inset: 0; aspect-ratio: auto; max-height: none; min-height: 0; border-radius: 0; }
  .room.is-live > .chat { display: none; }
  .player .vid-media.portrait video { object-fit: cover; }
  .p-top { padding-top: calc(10px + env(safe-area-inset-top, 0px)); }
  .p-top .stage-head { flex-wrap: nowrap; gap: 8px; }
  .p-top .stage-head .viewers { margin-left: auto; flex: none; }
  .p-back { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 34px; height: 34px; border-radius: 50%; background: rgba(0, 0, 0, .4); color: #fff; text-decoration: none; font-size: 1.1rem; }
  .p-bottom { width: 100%; gap: 8px; padding: 60px 10px calc(10px + env(safe-area-inset-bottom, 0px)); background: linear-gradient(0deg, rgba(0, 0, 0, .75), rgba(0, 0, 0, .35) 55%, transparent); }
  .p-chat .chat-log { flex: none; max-height: 22vh; width: 84%; padding: 0 2px; -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 36px); mask-image: linear-gradient(180deg, transparent 0, #000 36px); }
  .p-chat .msg { color: #fff; font-size: .88rem; padding: 2px 0; text-shadow: 0 1px 3px rgba(0, 0, 0, .9); }
  .p-chat .msg .u { color: #ffd36a; }
  .p-chat .msg.sys { color: rgba(255, 255, 255, .7); }
  .p-chat .chat-form { padding: 0; }
  .p-chat .chat-form input { background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .2); color: #fff; min-height: 42px; }
  .p-chat .chat-form input::placeholder { color: rgba(255, 255, 255, .6); }
  .p-chat .chat-form .btn { min-height: 42px; }
  .player .lot .amount { font-size: 1.7rem; }
  .room.is-live .room-tools { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; max-height: 78vh; overflow-y: auto; overscroll-behavior: contain;
    padding: 0 14px calc(20px + env(safe-area-inset-bottom, 0px)); background: #12141d; border-radius: 22px 22px 0 0; box-shadow: 0 -20px 60px rgba(0, 0, 0, .6);
    transform: translateY(105%); transition: transform .3s var(--ease); }
  .room.is-live.tools-open .room-tools { transform: none; }
  .room.is-live .room-tools .sheet-head { display: flex; justify-content: space-between; align-items: center; position: sticky; top: 0; z-index: 1; padding: 14px 2px 10px; background: #12141d; }
  .room.is-live .room-tools .seller-tools { margin-top: 8px; }
}
/* v7.3 polish: tighter header, compact giveaway and lighter chat fade on phones */
.p-top .name { white-space: nowrap; }
@media (max-width: 760px) {
  .p-top .title-sub { display: none; }
  .player .give { grid-template-columns: 36px 1fr; padding: 8px 10px; gap: 8px; border-radius: 14px; }
  .player .give-art { border-radius: 8px; }
  .player .give h3 { font-size: .88rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .player .give .timer { margin: 4px 0; gap: 8px; }
  .player .give .timer .secs { font-size: .85rem; }
  .player .give .btn { min-height: 34px; font-size: .85rem; }
  .p-chat .chat-log { -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 14px); mask-image: linear-gradient(180deg, transparent 0, #000 14px); }
}
.p-toolsbtn { white-space: nowrap; flex: none; }
@media (max-width: 760px) {
  .p-toolsbtn { padding: 6px 12px; min-height: 32px; font-size: .82rem; }
  .player .vid-bar { top: calc(62px + env(safe-area-inset-top, 0px)); }
  .player .vid-bar .btn { min-height: 32px; padding: 5px 12px; font-size: .8rem; }
}

/* ===================== v8 theme: Soft Pop outside, Holo in the live room =====================
   Research rules (see README): one action colour (blue) used only on main actions; pastels only
   for categories; red only for LIVE; the holo shine only for live and premium moments. */
:root {
  --paper: #ffffff; --surface: #ffffff; --tile: #f5f5f7; --fill: #f1f2f5; --fill-hi: #e7e8ee;
  --ink: #121218; --ink-2: #3a3a46; --muted: #5e5e6e;
  --line: rgba(18, 18, 24, .08); --line-2: rgba(18, 18, 24, .14);
  --accent: #3b5bff; --accent-hi: #2e49e6; --on-accent: #ffffff;
  --live: #f0365a; --info-bg: #eef2ff;
  --glass: rgba(255, 255, 255, .88); --glass-line: rgba(18, 18, 24, .08);
  --shadow-1: none; --shadow-2: 0 2px 6px rgba(18, 18, 24, .05), 0 22px 50px -24px rgba(18, 18, 24, .22);
  --r-m: 22px; --r-l: 30px;
  --font: "Bricolage Grotesque", -apple-system, BlinkMacSystemFont, system-ui, "Segoe UI", sans-serif;
  --mark: "Bricolage Grotesque", system-ui, sans-serif;
  --holo: linear-gradient(115deg, #7cf5ff, #b78cff 40%, #ff8ad8 70%, #ffd66b);
  --sky: #eef2ff; --sun: #fff1d6; --coral: #ffe4dc; --mint: #e3f6ec; --lilac: #ede7ff;
}
body.theatre {
  --paper: #0b0b12; --surface: rgba(255, 255, 255, .06); --tile: rgba(255, 255, 255, .06);
  --fill: rgba(255, 255, 255, .1); --fill-hi: rgba(255, 255, 255, .16);
  --ink: #f4f2ff; --ink-2: #d4d1e6; --muted: #a3a0b8;
  --accent: #b78cff; --accent-hi: #c9a6ff; --on-accent: #0b0b12;
}
h1, h2, h3 { font-weight: 800; letter-spacing: -.035em; }
h2 { letter-spacing: -.025em; }
:focus-visible { outline-color: rgba(59, 91, 255, .6); }
::selection { background: rgba(59, 91, 255, .2); }

/* Logo: a tilted holo card next to the wordmark */
.brand { align-items: center; gap: 9px; }
.brand-mark { width: 15px; height: 21px; border-radius: 4px; background: var(--holo); transform: rotate(-8deg); flex: none; }
.brand b { font-variation-settings: normal; font-stretch: normal; font-weight: 800; font-size: 1.35rem; letter-spacing: -.02em; }

/* Buttons: friendly rounded rectangles; blue is the one action colour */
.btn { border-radius: 14px; font-weight: 650; }
.btn.small { border-radius: 10px; }
.btn.go { box-shadow: 0 8px 22px -10px rgba(59, 91, 255, .7); }
.btn.white { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn.white:hover { background: var(--tile); }
body.theatre .btn.go, .showcase .btn.go { background: var(--holo); color: #0b0b12; box-shadow: 0 10px 28px -12px rgba(183, 140, 255, .8); }
body.theatre .btn.go:hover:not(:disabled), .showcase .btn.go:hover:not(:disabled) { background: var(--holo); color: #0b0b12; filter: brightness(1.06); }
body.theatre .swipe, .showcase .swipe { background: var(--holo); box-shadow: 0 10px 30px -12px rgba(183, 140, 255, .8); }
body.theatre .swipe .swipe-label, .showcase .swipe .swipe-label { color: #0b0b12; }

/* Forms on the light site: white fields with a clear edge */
body:not(.theatre) :is(input:not([type]), input[type=text], input[type=email], input[type=password], input[type=tel], input[type=number], input[type=search], input[type=datetime-local], select, textarea) { background-color: #fff; border-color: #d9dae1; }
body:not(.theatre) :is(input, select, textarea):hover { background-color: #fafafc; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(59, 91, 255, .16); }
body:not(.theatre) .panel { background: var(--tile); }
body:not(.theatre) .empty { background: var(--tile); }

/* Category chips: categories visible at the top level */
.catrow { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 0 26px; padding: 2px; }
.catrow::-webkit-scrollbar { display: none; }
.catrow a { flex: none; display: inline-flex; align-items: center; min-height: 44px; padding: 0 17px; border-radius: 999px; text-decoration: none; font-weight: 650; font-size: .93rem; background: var(--tile); color: var(--ink-2); transition: background-color .2s, color .2s; }
.catrow a:hover { background: var(--fill-hi); color: var(--ink); }
.catrow a.on { background: var(--ink); color: #fff; }

/* Landing: a soft blue hero with the practice auction as the live preview */
.sp-hero { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 20px; align-items: stretch; }
.sp-hero .hero { text-align: left; background: var(--sky); border-radius: 32px; padding: 48px 44px; display: flex; flex-direction: column; justify-content: center; }
.sp-hero .hero h1 { font-size: clamp(2.5rem, 5.2vw, 4.3rem); line-height: 1; letter-spacing: -.045em; font-weight: 800; margin: 16px 0 .35em; max-width: 14ch; }
.sp-hero .hero p.lead { margin: 0 0 26px; max-width: 36ch; color: var(--ink-2); }
.sp-hero .hero .row { justify-content: flex-start; }
.sp-pill { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; font-size: .86rem; font-weight: 700; padding: 6px 14px; border-radius: 999px; background: #fff; }
.sp-hero .showcase { margin: 0; max-width: none; border-radius: 32px; grid-template-columns: 140px 1fr; gap: 26px; padding: 34px 30px; background: #0f1124; }
.sp-hero .showcase::before { width: 420px; height: 420px; left: -10%; background: radial-gradient(circle, rgba(183, 140, 255, .45), rgba(124, 245, 255, .18) 45%, transparent 70%); }
.sp-hero .showcase .card3d { width: 140px; background: var(--holo); }
.sp-hero .showcase .amt { font-size: clamp(2.6rem, 4.4vw, 3.6rem); }
.sp-section { margin-top: 56px; }
.cats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.cat { text-decoration: none; color: var(--ink); border-radius: 24px; padding: 22px; min-height: 150px; display: flex; flex-direction: column; justify-content: space-between; gap: 10px; transition: transform .2s var(--ease); }
.cat:hover { transform: translateY(-3px); color: var(--ink); }
.cat b { font-size: 1.25rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; }
.cat span { font-size: .9rem; color: var(--ink-2); }
.cat.sun { background: var(--sun); } .cat.coral { background: var(--coral); } .cat.mint { background: var(--mint); } .cat.lilac { background: var(--lilac); }
.rules { max-width: none; margin: 40px 0 0; gap: 16px; }
.rules div { border-top: 0; background: var(--tile); border-radius: 24px; padding: 22px; }
.rules b { font-size: 1.1rem; font-weight: 800; letter-spacing: -.02em; margin-bottom: 6px; }
.closing { margin-top: 72px; }
@media (max-width: 900px) {
  .sp-hero { grid-template-columns: 1fr; }
  .sp-hero .hero { padding: 32px 22px; border-radius: 26px; }
  .sp-hero .showcase { grid-template-columns: 1fr; text-align: center; border-radius: 26px; }
  .sp-hero .showcase .card3d { width: 130px; }
}
@media (max-width: 760px) {
  .cats { grid-template-columns: 1fr 1fr; gap: 12px; }
  .cat { min-height: 118px; padding: 16px; border-radius: 20px; }
  .cat b { font-size: 1.05rem; }
  .rules { grid-template-columns: 1fr 1fr; gap: 12px; }
  .rules div { padding: 16px; border-radius: 20px; }
}

/* Home: "nobody live" bar becomes a soft panel; live cards get a holo edge */
.livebar { background: var(--sky); color: var(--ink); box-shadow: none; }
.livebar .sub { color: var(--muted); }
.livebar .btn.line { color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); }
.livebar .btn.line:hover { background: #fff; }
.roomcard { border: 3px solid transparent; background: linear-gradient(#15161f, #15161f) padding-box, var(--holo) border-box; }
.frame { background: var(--tile); }

/* Verified mark and trust next to the money */
.vmark { display: inline-flex; align-items: center; gap: 3px; font-size: .7rem; font-weight: 700; letter-spacing: 0; color: #1f7a4d; background: #e3f6ec; padding: 2px 7px; border-radius: 999px; vertical-align: 2px; white-space: nowrap; }
.vmark::before { content: "✓"; }
body.theatre .vmark, .roomcard .vmark { color: #8ff0b8; background: rgba(95, 227, 155, .18); }
.lot-trust { font-size: .8rem; color: var(--muted); margin-top: 10px; text-align: center; }
.player .lot .lot-trust { grid-column: 1 / -1; color: rgba(255, 255, 255, .72); margin-top: 8px; }

/* Holo details inside the live room */
body.theatre .timer .bar i { background: linear-gradient(90deg, #7cf5ff, #b78cff, #ff8ad8); }
body.theatre .timer.hot .bar i { background: var(--live); }
.player .lot { border-color: rgba(183, 140, 255, .35); }
.player .lot .frame .ph { padding: 2px; border-radius: 7px; background: var(--holo); color: #0b0b12; }
.player .give { border-color: rgba(183, 140, 255, .5); }
.p-toolsbtn { background: var(--holo); color: #0b0b12; }
@media (max-width: 760px) { .p-top .vmark { font-size: 0; padding: 3px 6px; gap: 0; } .p-top .vmark::before { font-size: .72rem; } }
@media (max-width: 760px) { .brand span.brand-mark { display: block; } }
@media (max-width: 480px) { .rooms:not(.strip) { grid-template-columns: 1fr; gap: 14px; } .rooms:not(.strip) .roomcard { aspect-ratio: 16 / 11; } .rooms:not(.strip) .rc-art { inset: 14% 30% 40%; } }

/* v8.1: category banner with floating icons, icons on landing tiles */
.cat-hero { position: relative; overflow: hidden; border-radius: 28px; padding: 36px 32px; margin-bottom: 18px; min-height: 170px; display: flex; align-items: flex-end; animation: heroIn .5s var(--ease); }
.cat-hero.sun { background: var(--sun); } .cat-hero.coral { background: var(--coral); } .cat-hero.mint { background: var(--mint); }
.cat-hero.lilac { background: var(--lilac); } .cat-hero.sky { background: var(--sky); }
.cat-hero-text { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 4px; }
.cat-hero h1 { margin: 0; font-size: clamp(2rem, 5vw, 3.2rem); letter-spacing: -.04em; }
.cat-float span { position: absolute; width: 46px; height: 46px; color: var(--ink); opacity: 0; transform: translateY(46px) rotate(var(--r)) scale(.7); animation: catIn .9s var(--spring) forwards; }
.cat-float svg { width: 100%; height: 100%; display: block; animation: catBob 5s ease-in-out 1s infinite; }
@keyframes catIn { to { opacity: .18; transform: translateY(0) rotate(var(--r)) scale(1); } }
@keyframes catBob { 50% { transform: translateY(-8px); } }
@keyframes heroIn { from { opacity: 0; transform: translateY(8px); } }
.cat { position: relative; }
.cat .cat-ic { position: absolute; top: 16px; right: 16px; width: 34px; height: 34px; color: var(--ink); opacity: .55; transition: transform .35s var(--spring); }
.cat .cat-ic svg { width: 100%; height: 100%; display: block; }
.cat:hover .cat-ic { transform: rotate(-12deg) scale(1.12); }
.catrow a { transition: background-color .2s, color .2s, transform .15s var(--ease); }
.catrow a:active { transform: scale(.95); }
@media (max-width: 760px) { .cat-hero { padding: 26px 20px; min-height: 140px; border-radius: 22px; } .cat-float span { width: 34px; height: 34px; } .cat .cat-ic { width: 28px; height: 28px; top: 12px; right: 12px; } }

/* v8.2 shop: one search bar, Filters behind a button, categories with counts */
.shop-search { margin: 0 0 14px; }
.sbar { display: flex; gap: 10px; }
.sbar input[type=search] { flex: 1; min-width: 0; min-height: 52px; font-size: 1.02rem; border-radius: 999px; padding-left: 46px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' fill='none' stroke='%235e5e6e' stroke-width='2'%3E%3Ccircle cx='8' cy='8' r='6'/%3E%3Cpath d='M12.5 12.5L17 17'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: 17px center; }
.sbar .btn { min-height: 52px; border-radius: 999px; padding: 0 20px; flex: none; }
.fbadge { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; margin-left: 7px; padding: 0 6px; border-radius: 999px; background: var(--accent); color: #fff; font-size: .72rem; font-weight: 700; }
.fbadge[hidden] { display: none; }
.fadv { margin-top: 12px; padding: 16px 16px 14px; border-radius: 22px; background: var(--tile); }
.fadv[hidden] { display: none; }
.fadv .filters { margin-bottom: 6px; }
.catrow .n { margin-left: 7px; font-size: .78rem; font-weight: 600; opacity: .55; }
.catrow a.on .n { opacity: .75; }
@media (max-width: 760px) {
  .shopcats { -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); padding-right: 24px; }
  .sbar .btn { padding: 0 16px; }
}
/* Filters panel: always show labels (the old phone rule hid them), tidy checkbox row */
.fadv .filters label:not(.check) { position: static; width: auto; height: auto; overflow: visible; clip: auto; margin-bottom: 5px; }
.fadv .check { display: flex; align-items: center; gap: 10px; flex: 1 1 100%; padding-left: 0; margin: 4px 0 0; font-size: .95rem; color: var(--ink); }
.fadv .check input { position: static; flex: none; }
.fadv #fclear { margin-top: 8px; }

/* ===== v9: feedback round 1 ===== */
/* Required fields */
.req::after { content: " *"; color: var(--bad); font-weight: 700; }
.req-star { color: var(--bad); font-weight: 700; }
/* Text-style button (e.g. "Custom bid") */
.linkbtn { appearance: none; border: 0; background: none; padding: 8px 4px 0; font: inherit; font-size: .88rem; font-weight: 650; color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; grid-column: 1 / -1; justify-self: center; min-height: 32px; }
body.theatre .linkbtn { color: rgba(255, 255, 255, .85); }

/* Live item card: compact after 5 s (bid control and price stay) */
.player .lot [data-lottoggle] { cursor: pointer; }
.player .lot.compact { grid-template-columns: 34px 1fr auto; padding: 9px 10px; row-gap: 0; }
.player .lot.compact .frame { grid-row: 1 / span 2; }
.player .lot.compact .frame .ph { aspect-ratio: 5 / 7; font-size: 0; }
.player .lot.compact .title { font-size: .84rem; }
.player .lot.compact .cond { display: none; }
.player .lot.compact .lead { grid-row: 2; font-size: .74rem; }
.player .lot.compact .amount { grid-row: 1 / span 2; font-size: 1.35rem; }
.player .lot.compact .timer { margin: 6px 0 6px; }
.player .lot.compact .btn.go { min-height: 46px; font-size: .98rem; }
.player .lot.compact .swipe { height: 50px; }
.player .lot.compact .swipe .swipe-knob { width: 40px; height: 40px; }
.player .lot.compact .lot-trust { display: none; }
.player .lot.compact .linkbtn { padding-top: 4px; min-height: 26px; font-size: .8rem; }

/* Giveaway: gift-icon pill most of the time */
.give { position: relative; }
.give-min { position: absolute; top: 8px; right: 8px; width: 30px; height: 30px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .25); color: #fff; font: 700 1.1rem/1 var(--font); cursor: pointer; }
#give:has(.give-mini) { align-self: flex-end; }
.give-mini { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 6px 14px 6px 8px; border: 1px solid rgba(255, 255, 255, .25); border-radius: 999px; cursor: pointer;
  background: linear-gradient(120deg, rgba(108, 92, 255, .85), rgba(255, 107, 138, .8)); color: #fff; font: 650 .85rem var(--font); box-shadow: 0 8px 24px -10px rgba(0, 0, 0, .6); animation: sheetIn .3s var(--ease); }
.give-mini svg { width: 28px; height: 28px; padding: 4px; border-radius: 50%; background: rgba(255, 255, 255, .2); }
.give-mini .secs { font-variant-numeric: tabular-nums; }
.give-mini .gm-cta { background: #fff; color: #2a1d6b; padding: 3px 10px; border-radius: 999px; }
.give-mini .gm-in, .give-mini .gm-n { opacity: .9; }

/* "You won!" */
.winpop { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 24px; background: rgba(5, 6, 12, .55); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); animation: fadeIn .2s ease; }
.winpop-card { width: min(360px, 100%); text-align: center; padding: 30px 24px 22px; border-radius: 28px; color: #0b0b12; background: #fff; position: relative; overflow: hidden;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .6); animation: winIn .55s var(--spring); }
.winpop-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 8px; background: var(--holo); }
.winpop-k { font-size: 2.2rem; font-weight: 800; letter-spacing: -.04em; line-height: 1.05; background: var(--holo); -webkit-background-clip: text; background-clip: text; color: transparent; filter: saturate(1.4) brightness(.8); }
.winpop-t { font-weight: 700; font-size: 1.05rem; margin: 10px 0 4px; }
.winpop-s { color: #5e5e6e; font-size: .92rem; margin-bottom: 18px; }
.winpop .btn.go { width: 100%; background: var(--holo); color: #0b0b12; }
@keyframes winIn { from { opacity: 0; transform: scale(.6) rotate(-4deg); } }
@keyframes fadeIn { from { opacity: 0; } }

/* Quick add */
.quickadd summary { cursor: pointer; font-weight: 700; list-style: none; }
.quickadd summary::-webkit-details-marker { display: none; }

/* ===== v10: feedback round 2 ===== */
.flabel { display: block; font-weight: 500; font-size: .86rem; margin-bottom: 7px; color: var(--ink-2); }
.moredet { margin-top: 6px; border-top: 1px solid var(--line); padding-top: 12px; }
.moredet summary { cursor: pointer; font-weight: 650; color: var(--ink-2); }
.chat-closed { margin: 0; padding: 14px 18px 18px; color: var(--muted); font-size: .9rem; }
.bidlinks { grid-column: 1 / -1; display: flex; justify-content: center; gap: 18px; flex-wrap: wrap; }
.bidlinks .linkbtn { grid-column: auto; }
/* Swipe right on a phone: just the video */
.player .p-bottom, .player .p-top { transition: opacity .25s var(--ease), transform .3s var(--ease); }
.player.clean .p-bottom { opacity: 0; transform: translateX(40%); pointer-events: none; }
.player.clean .p-top { opacity: 0; pointer-events: none; }
.p-unclean { display: none; }
.player.clean .p-unclean { display: inline-flex; position: absolute; z-index: 5; right: 12px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); align-items: center; min-height: 40px; padding: 0 14px;
  border-radius: 999px; border: 1px solid rgba(255, 255, 255, .25); background: rgba(0, 0, 0, .45); color: #fff; font: 650 .85rem var(--font); cursor: pointer; }
/* Anything marked hidden stays hidden, whatever layout class it has. */
[hidden] { display: none !important; }

/* v10.2: bot check on sign-up and sign-in */
.botcheck { min-height: 65px; margin: 4px 0 16px; }

/* v11: pay the seller by UPI from the bill page */
.paybox { margin-top: 14px; border: 2px solid var(--accent); }
.paytotal { font-size: 1.6rem; font-weight: 800; }
.paygrid { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: start; margin-top: 14px; }
.paygrid .payqr.phone { grid-column: 1 / -1; }
.payapps { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.payapps .btn, .payapp { min-height: 48px; justify-content: center; text-align: center; white-space: nowrap; }
.qrwrap summary { cursor: pointer; font-weight: 600; font-size: .9rem; }
.qrwrap[open] summary { margin-bottom: 8px; }
.payqr:not(.phone) .qrwrap summary { list-style: none; pointer-events: none; color: var(--muted); font-weight: 500; }
.upiqr { width: 212px; padding: 8px; background: #fff; border-radius: 12px; border: 1px solid var(--line-2); }
.upiqr img, .upiqr canvas { display: block; width: 196px; height: 196px; }
.paymeta { display: grid; gap: 8px; align-content: start; }
.paymeta .mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; word-break: break-all; }
.claim { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line-2); }
.claim input { flex: 1; min-width: 0; }
@media (max-width: 600px) { .paygrid { grid-template-columns: 1fr; } .upiqr { margin: 0 auto; } }
