:root {
  
  --menu-top: 58px;
  --bg: #0B0713;
  --panel: #150E24;
  --panel-2: #1C1230;
  --line: #2B1D4E;
  --line-soft: #241740;
  --text: #F2EDFF;
  
  --dim: #C6BDE6;
  --muted: #9D92C4;
  
  --faint: #8B80B4;
  --violet: #8B5CF6;
  --violet-hi: #A78BFA;
  --good: #34D399;
  --ticket: #FBBF24;
  --hot: #FB4E4E;
  --radius: 18px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scrollbar-gutter: stable; overflow-y: scroll; }
body {
  font-family: 'Manrope', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}
body::before {
  content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(139,92,246,.16), transparent 60%),
    radial-gradient(700px 420px at -10% 25%, rgba(52,211,153,.08), transparent 60%),
    radial-gradient(800px 600px at 50% 110%, rgba(139,92,246,.10), transparent 60%);
}
.display { font-family: 'Unbounded', sans-serif; }
.mono { font-family: 'JetBrains Mono', monospace; }

a { color: var(--violet-hi); text-decoration: underline;
  text-decoration-thickness: 1px; text-underline-offset: 2px;
  text-decoration-color: rgba(167,139,250,.45); transition: text-decoration-color .15s ease; }
a:hover { text-decoration-color: var(--violet-hi); }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, select { font-family: inherit; }
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--panel); }
::-webkit-scrollbar-thumb { background: var(--line); border-radius: 3px; }
:focus-visible { outline: 2px solid var(--violet-hi); outline-offset: 2px; border-radius: 6px; }

/* header */
header {
  position: sticky; top: 0; z-index: 40;
  border-bottom: 1px solid var(--line-soft);
  /* Solid, not a backdrop blur. Chromium (Brave most of all) intermittently
     drops a backdrop-filter for a frame when anything beneath or inside the
     sticky bar repaints, which showed as a random flash, worse on hover. */
  background: rgba(11,7,19,.97);
}

.header-in {
  max-width: 1240px; margin: 0 auto; padding: 11px 24px;
  display: grid; grid-template-columns: auto minmax(max-content, 1fr) auto;
  align-items: center; gap: 22px;
}

.head-right { justify-self: end; }

.logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; cursor: pointer; }

.logo-name { position: relative; font-size: 23px; font-weight: 600; letter-spacing: -.015em; line-height: 1; white-space: nowrap; }

.logo-name i { font-style: normal; font-weight: 400; color: var(--muted); }

.drip-dot {
  --drip-y: -.30em;
  width: .44em; height: .62em; display: inline-block; vertical-align: var(--drip-y);
  margin: 0 .08em; overflow: visible;
  filter: drop-shadow(0 0 5px rgba(217,119,6,.5));
  animation: dripBob 3.4s ease-in-out infinite;
  will-change: transform; /* its own layer, so the bob never repaints the header */
}

@keyframes dripBob {
  0%, 100% { transform: translateY(0) scaleY(1); }
  45%      { transform: translateY(.1em) scaleY(1.06); }
}

nav.tabs { display: flex; gap: 4px; flex-wrap: nowrap; justify-content: center; }

.nav-wrap { display: none; position: relative; flex-shrink: 0; }
.nav-burger {
  display: grid; place-items: center; width: 36px; height: 36px;
  background: var(--panel-2); border: 1px solid var(--line); border-radius: 11px;
  cursor: pointer; transition: border-color .15s;
}
.nav-burger:hover, .nav-burger[aria-expanded="true"] { border-color: var(--violet); }
.nav-burger-bars { display: grid; gap: 4px; }
.nav-burger-bars i { display: block; width: 16px; height: 2px; border-radius: 2px; background: var(--text); }

.nav-menu {
  display: none; position: fixed; top: var(--menu-top); left: 10px; right: 10px; z-index: 60;
  max-height: calc(100vh - 130px); overflow-y: auto;
  background: var(--panel); border: 1px solid var(--line); border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,.6); padding: 8px;
}
.nav-menu.on { display: block; animation: viewIn .16s ease-out; }
.nav-item {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 11px 12px; border-radius: 11px; border: 0; background: none;
  color: var(--muted); font: inherit; font-size: 15px; font-weight: 700;
  text-align: left; cursor: pointer;
}
.nav-item:hover { background: rgba(139,92,246,.10); color: var(--text); }
.nav-item.active { background: rgba(139,92,246,.22); color: #fff; box-shadow: inset 0 0 0 1px rgba(139,92,246,.5); }
.tab {
  padding: 9px 15px; border-radius: 999px; font-size: 14.5px; font-weight: 700;
  color: var(--muted); transition: color .15s, background-color .15s, box-shadow .15s;
}
.tab:hover { color: var(--text); background: rgba(139,92,246,.10); }
.tab.active { color: #fff; background: rgba(139,92,246,.22); box-shadow: inset 0 0 0 1px rgba(139,92,246,.5); }

.tab-group { position: relative; }
.tab-parent {
  display: flex; align-items: center; gap: 5px;
  padding: 9px 13px 9px 15px; border-radius: 999px;
  font: inherit; font-size: 14.5px; font-weight: 700;
  color: var(--muted); background: none; border: 0; cursor: pointer;
  transition: color .15s, background-color .15s, box-shadow .15s;
}
.tab-parent:hover { color: var(--text); background: rgba(139,92,246,.10); }

.tab-parent.within { color: #fff; background: rgba(139,92,246,.22); box-shadow: inset 0 0 0 1px rgba(139,92,246,.5); }
.tab-chev { font-size: 10.5px; opacity: .7; transition: transform .18s; }
.tab-parent[aria-expanded="true"] .tab-chev { transform: rotate(180deg); }
.tab-pop {
  display: none; position: absolute; top: calc(100% + 7px); left: 50%; transform: translateX(-50%);
  z-index: 60; min-width: 152px; padding: 6px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 18px 44px rgba(0,0,0,.55);
}

.tab-pop.on { display: block; animation: tabPopIn .14s ease-out; }
@keyframes tabPopIn {
  from { opacity: 0; transform: translateX(-50%) translateY(6px) }
  to   { opacity: 1; transform: translateX(-50%) }
}

.tab-pop .tab { display: block; width: 100%; text-align: left; padding: 9px 12px; border-radius: 10px; }
.head-right { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--good); box-shadow: 0 0 8px var(--good); animation: blink 1.6s infinite; }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:.3} }
.wallet-chip {
  display: flex; align-items: center; gap: 9px;
  background: var(--panel-2); border: 1px solid var(--line);
  border-radius: 999px; padding: 5px 5px 5px 11px;
}
.bal-token { display: grid; place-items: center; color: var(--good); flex-shrink: 0; }

.wallet-chip .bal {
  display: flex; flex-direction: column; justify-content: center;
  line-height: 1.15; min-width: 0;
}
.wallet-chip .bal-main {
  font-size: 13px; font-weight: 700; color: var(--muted); white-space: nowrap;
}

.wallet-chip .bal-main b { font-size: 15px; font-weight: 800; color: var(--good); }
.wallet-chip .bal-sub {
  font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  
  max-width: 24ch;
  
  font-family: inherit; background: none; border: 0; padding: 0; text-align: left;
  cursor: default; line-height: inherit;
}

.wallet-chip .bal-sub.held {
  color: var(--ticket); cursor: pointer;
  text-decoration: underline; text-decoration-style: dotted; text-underline-offset: 2px;
}
.wallet-chip .bal-sub.held:hover { color: #fcd34d; }

.wallet-chip .bal-sub:disabled { color: var(--faint); opacity: 1; }
.btn-pill.ghost {
  background: transparent; border: 1px solid var(--line); color: var(--muted);
}
.btn-pill.ghost:hover { background: var(--panel); color: var(--text); border-color: var(--violet); box-shadow: none; }

.profile-wrap { position: relative; }

.connect-wrap { position: relative; }
.pm-btn .pm-sub {
  display: block; margin-top: 2px; font-weight: 600; font-size: 11px;
  color: var(--faint); line-height: 1.35;
}
.pm-btn .pm-ico { font-size: 14px; line-height: 1; }

.pm-btn.stack { align-items: flex-start; }
.pm-btn.stack .pm-ico { margin-top: 1px; }
.profile-btn {
  display: flex; align-items: center; gap: 8px; cursor: pointer;
  background: var(--panel-2); border: 1px solid var(--line);
  border-radius: 999px; padding: 5px 12px 5px 5px; transition: border-color .15s, background-color .15s;
}
.profile-btn:hover { border-color: var(--violet); }
.profile-av {
  width: 26px; height: 26px; border-radius: 999px; display: grid; place-items: center;
  background: rgba(139,92,246,.2); border: 1px solid rgba(167,139,250,.45); font-size: 13px;
}
.profile-name { font-size: 12.5px; font-weight: 800; color: var(--text); }
.profile-chev { font-size: 10px; color: var(--faint); }

.profile-dot {
  width: 7px; height: 7px; border-radius: 999px; background: var(--ticket);
  box-shadow: 0 0 8px rgba(251,191,36,.9);
}
.profile-menu {
  display: none; position: absolute; right: 0; top: calc(100% + 8px); z-index: 60;
  width: 310px; max-height: min(78vh, 620px); overflow-y: auto;
  background: var(--panel); border: 1px solid var(--line); border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,.6); padding: 12px;
}
.profile-menu.on { display: block; animation: viewIn .16s ease-out; }
.pm-head { display: flex; align-items: center; gap: 10px; padding: 2px 2px 10px; }
.pm-head .n { font-size: 15px; font-weight: 800; }
.pm-head .a { font-size: 11.5px; color: var(--faint); margin-top: 2px; display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.pm-head .a a { font-family: 'JetBrains Mono', ui-monospace, monospace; color: var(--violet-hi); text-decoration: none; }
.pm-copy { font-size: 11px; font-weight: 700; color: var(--muted); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; margin-left: 2px; }
.pm-copy:hover { color: var(--text); border-color: var(--violet); }

.pm-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.pm-stat { background: var(--panel-2); border: 1px solid var(--line-soft); border-radius: 12px; padding: 9px 11px; min-width: 0; }
.pm-stat b { display: block; font: 800 18px Unbounded, sans-serif; line-height: 1.2; }
.pm-stat span { font-size: 11.5px; color: var(--faint); font-weight: 600; }
.pm-note { font-size: 12px; color: var(--muted); margin-top: 7px; padding: 0 2px; line-height: 1.4; }
.pm-note.warn { color: var(--ticket); }
.pm-note.hot { color: var(--hot); }
.pm-actions { display: flex; gap: 6px; margin-top: 10px; }
.pm-cta { flex: 1; padding: 9px; border-radius: 10px; font-size: 13.5px; font-weight: 800; background: var(--violet); color: #fff; transition: all .14s; }
.pm-cta:hover { background: var(--violet-hi); }
.pm-cta.ghost { background: transparent; border: 1px solid var(--line); color: var(--muted); }
.pm-cta.ghost:hover { color: var(--text); border-color: var(--violet); }

.pm-group { border-top: 1px solid var(--line-soft); margin-top: 10px; padding-top: 6px; }
.pm-group .pm-lbl { margin: 4px 8px 4px; }
.pm-item {
  width: 100%; display: flex; align-items: center; gap: 10px; text-align: left;
  padding: 8px; border-radius: 9px; font-size: 13.5px; font-weight: 700; color: var(--text);
  background: transparent; transition: background .12s;
}
.pm-item:hover { background: rgba(139,92,246,.12); }
.pm-item .ico { width: 18px; text-align: center; font-size: 14px; flex-shrink: 0; }
.pm-item .meta { margin-left: auto; font-size: 12px; font-weight: 700; color: var(--faint); white-space: nowrap; }
.pm-item.claim { color: var(--ticket); }
.pm-item.claim:hover { background: rgba(251,191,36,.12); }
.pm-item.op { color: var(--violet-hi); }
.pm-switch { position: relative; flex-shrink: 0; margin-left: auto; width: 30px; height: 17px; border-radius: 999px; background: var(--line); transition: background .15s; }
.pm-item .meta + .pm-switch { margin-left: 8px; }
.pm-switch::after { content: ''; position: absolute; top: 2px; left: 2px; width: 13px; height: 13px; border-radius: 50%; background: var(--muted); transition: transform .15s, background .15s; }
.pm-switch.on { background: var(--good); }
.pm-switch.on::after { transform: translateX(13px); background: #fff; }
.pm-foot { display: flex; justify-content: space-between; border-top: 1px solid var(--line-soft); margin-top: 8px; padding-top: 8px; }
.pm-foot button { font-size: 12.5px; font-weight: 700; color: var(--faint); padding: 4px 8px; border-radius: 7px; }
.pm-foot button:hover { color: var(--text); background: rgba(139,92,246,.1); }
.pm-sec { border-top: 1px solid var(--line-soft); padding-top: 10px; margin-top: 10px; }
.pm-lbl {
  font-size: 10.5px; letter-spacing: .13em; text-transform: uppercase;
  color: var(--faint); font-weight: 800; margin-bottom: 7px;
}
.pm-row { display: flex; align-items: center; gap: 8px; font-size: 13.5px; margin-bottom: 7px; }
.pm-row .v { margin-left: auto; font-weight: 800; }
.pm-btn {
  width: 100%; text-align: left; padding: 9px 11px; border-radius: 10px; cursor: pointer;
  background: var(--panel-2); border: 1px solid var(--line); color: var(--text);
  font-size: 13.5px; font-weight: 700; margin-bottom: 6px; transition: all .14s;
  display: flex; align-items: center; gap: 8px;
}
.pm-btn:hover { border-color: var(--violet); background: rgba(139,92,246,.12); }
.pm-btn .sub { margin-left: auto; font-weight: 700; color: var(--faint); font-size: 12.5px; }
.pm-btn.claim { border-color: rgba(251,191,36,.45); background: rgba(251,191,36,.1); color: var(--ticket); }
.pm-btn.claim:hover { background: rgba(251,191,36,.18); }
.pm-btn.op { border-color: rgba(139,92,246,.45); background: rgba(139,92,246,.12); color: var(--violet-hi); }
.btn-pill {
  background: var(--violet); color: #fff; font-weight: 800; font-size: 13.5px;
  padding: 7px 14px; border-radius: 999px; transition: background-color .15s, box-shadow .15s, transform .15s;
  
  white-space: nowrap;
}
.btn-pill:hover { background: var(--violet-hi); box-shadow: 0 0 16px rgba(139,92,246,.5); }
.btn-pill:active { transform: scale(.95); }
.btn-pill.ghost {
  background: transparent; border: 1px solid var(--line); color: var(--muted);
}
.btn-pill.ghost:hover { color: var(--text); border-color: var(--violet); background: rgba(139,92,246,.1); }
.btn-pill.good { background: var(--good); color: #062018; }

.net-bar {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  flex-wrap: wrap; padding: 6px 14px;
  font-size: 12px; font-weight: 600; letter-spacing: .04em;
  color: var(--ticket); background: rgba(251,191,36,.09);
  border-bottom: 1px solid rgba(251,191,36,.22);
}

.net-bar b { font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.net-bar span:not(.net-dot) { color: rgba(251,191,36,.78); }
.net-sep { opacity: .5; }
.net-dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--ticket);
  box-shadow: 0 0 7px rgba(251,191,36,.8); flex-shrink: 0;
}
@media (max-width: 760px) {
  .net-bar { font-size: 11px; gap: 6px; padding: 5px 12px; }
  .net-tip { display: none; }
}

/* rail */
.rail-wrap { border-bottom: 1px solid var(--line-soft); background: rgba(21,14,36,.5); display: none; }
.rail-wrap.show { display: block; }
.rail-wrap-in { max-width: 1240px; margin: 0 auto; padding: 10px 24px 12px; }
.rail-wrap-lbl { display: none; }

.rail-wrap.in-side {
  border-bottom: none; background: transparent;
  position: sticky; top: 92px;
}
.rail-wrap.in-side .rail-wrap-in { padding: 0; max-width: none; }
.rail-wrap.in-side .rail-wrap-lbl {
  display: block; font-size: 12px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--faint); font-weight: 700; margin-bottom: 9px;
}
.rail-wrap.in-side .rail {
  grid-template-columns: 1fr;
  max-height: calc(100vh - 130px); overflow-y: auto;
  scrollbar-width: thin; scrollbar-color: var(--line) transparent;
  padding-right: 2px;
}
.rail-wrap.in-side .rail::-webkit-scrollbar { width: 6px; }
.rail-wrap.in-side .rail::-webkit-scrollbar-thumb { background: var(--line); border-radius: 3px; }
@media (max-width: 900px) {
  #view-live .rail-wrap {
    border-bottom: none; border-top: 1px solid var(--line-soft);
    background: transparent; margin-top: 28px;
  }
  #view-live .rail-wrap-in { padding: 16px 0 0; }
  #view-live .rail-wrap-lbl {
    display: block; font-size: 12px; letter-spacing: .1em; text-transform: uppercase;
    color: var(--faint); font-weight: 700; margin-bottom: 10px;
  }
}

/* layout */
main { max-width: 1240px; margin: 0 auto; padding: 18px 24px 70px; }

.view { display: none; animation: viewIn .25s ease-out; }
.view.on { display: block; }
@keyframes viewIn { from { opacity: 0; transform: translateY(10px) } to { opacity: 1; transform: none } }

.hero {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 36px; align-items: center;
  padding: 24px 0 8px;
}
@media (max-width: 900px) { .hero { grid-template-columns: 1fr; } }
.hero h1 {
  font-family: 'Unbounded'; font-size: clamp(30px, 5vw, 52px); font-weight: 800;
  line-height: 1.08; letter-spacing: .01em; margin-bottom: 22px; max-width: 13em;
}
.hero h1 em { font-style: normal; color: var(--violet-hi); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-card {
  background: var(--panel); border: 1px solid var(--line); border-radius: 22px;
  padding: 20px; position: relative; overflow: hidden;
}
.hero-card::before {
  content: ''; position: absolute; inset: -40% -20% auto auto; width: 60%; aspect-ratio: 1;
  background: radial-gradient(circle, rgba(139,92,246,.25), transparent 70%); pointer-events: none;
}

.sim-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.sim-title { font-family: 'Unbounded'; font-size: 19px; font-weight: 800; color: var(--text); letter-spacing: -.01em; }
.sim-flag {
  flex-shrink: 0; font-size: 9.5px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase;
  color: var(--ticket); background: rgba(251,191,36,.12); border: 1px solid rgba(251,191,36,.35);
  border-radius: 999px; padding: 4px 9px; line-height: 1;
}
.sim-sub { font-size: 12px; color: var(--faint); margin: 6px 0 14px; }
.sim-item {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 14px; padding-bottom: 12px; border-bottom: 1px solid var(--line-soft);
}
.sim-item img { width: 40px; height: 40px; flex-shrink: 0; }
.sim-item-name { font-weight: 800; font-size: 16px; line-height: 1.2; }
.sim-item-worth { font-size: 12px; color: var(--faint); margin-top: 2px; }

.sim-credit { margin-left: auto; text-align: right; }
.sim-credit-lbl { font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }
.sim-credit-amt {
  font-family: 'JetBrains Mono', monospace; font-size: 15px; font-weight: 700;
  color: var(--good); margin-top: 3px; transition: color .2s;
}
.sim-credit-amt.spent { animation: pricePop .45s ease-out; }
.sim-credit-amt.low { color: var(--hot); }
.sim-row { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 12px; gap: 12px; }
.sim-field-lbl { font-size: 11px; color: var(--faint); margin-bottom: 2px; text-transform: uppercase; letter-spacing: .1em; }
.sim-price {
  font-family: 'Unbounded', sans-serif; font-size: 28px; font-weight: 800;
  color: var(--ticket); line-height: 1.1; letter-spacing: -.02em;
  transition: color .2s, transform .25s;
}
.sim-price.pop { animation: pricePop .45s ease-out; display: inline-block; }
.sim-leader { font-size: 12px; color: var(--faint); margin-top: 4px; }
.sim-leader b { color: var(--ticket); font-weight: 800; }
.sim-leader.you b { color: var(--good); }

.sim-clock-col {
  text-align: right; flex-shrink: 0;
  margin: -4px -6px 0; padding: 4px 6px 5px; border-radius: 12px;
  transition: box-shadow .25s;
}
.sim-clock-col.resetting { box-shadow: 0 0 0 2px rgba(52,211,153,.5), 0 0 30px rgba(52,211,153,.22); }
.sim-reset-hint {
  font-size: 10.5px; font-weight: 700; color: var(--good); line-height: 1.3;
  opacity: 0; transform: translateY(3px); transition: all .25s;
}
.sim-clock-col.resetting .sim-reset-hint { opacity: 1; transform: none; }
.sim-timer {
  font-family: 'Unbounded'; font-size: 28px; font-weight: 800;
  transition: color .2s, transform .25s; text-align: right;
}

.sim-timer.warm { color: var(--ticket); }
.sim-final-call {
  visibility: hidden; font-size: 9px; font-weight: 800; letter-spacing: .18em;
  color: var(--hot); text-transform: uppercase; margin-top: 3px;
  animation: blink .5s infinite; white-space: nowrap;
}
.sim-clock-col.finale .sim-final-call { visibility: visible; }

.sim-timer.reset-pop { animation: timerReset .55s ease-out; color: var(--good); }

.btn-sim {
  width: 100%; padding: 12px; border-radius: 12px;
  background: linear-gradient(135deg, var(--violet), #7C3AED);
  color: #fff; font-weight: 800; font-size: 14px;
  box-shadow: 0 6px 22px rgba(139,92,246,.35);
  transition: transform .1s, box-shadow .2s, filter .2s;
}
.btn-sim:hover { filter: brightness(1.1); box-shadow: 0 6px 30px rgba(139,92,246,.6); }
.btn-sim:active { transform: scale(.97); }

.btn-sim:disabled { filter: grayscale(.8) brightness(.6); cursor: default; box-shadow: none; }

.btn-sim.leading:disabled {
  background: linear-gradient(135deg, #10B981, var(--good));
  filter: none; box-shadow: 0 6px 22px rgba(52,211,153,.3); cursor: default;
}

.sim-lead {
  display: flex; align-items: center; justify-content: center; gap: 7px;
  font-size: 12px; font-weight: 800; color: var(--muted); text-align: center;
  background: var(--panel-2); border-radius: 9px; padding: 8px 10px; margin-bottom: 10px;
  min-height: 34px;
}
.sim-lead[hidden] { display: none; }
.sim-lead.won { color: var(--good); background: rgba(52,211,153,.16); }
.sim-lead.lost { color: var(--hot); background: rgba(244,63,94,.12); }

.sim-lead.flip { animation: feedIn .35s ease-out; }
.btn-sim.ended { background: transparent; border: 1px solid var(--line); color: var(--dim); box-shadow: none; }
.btn-sim.ended:hover { border-color: var(--violet); color: var(--text); }

.btn-sim.ghost-sim {
  margin-top: 8px; background: rgba(139,92,246,.14); border: 1px solid rgba(139,92,246,.4);
  color: var(--violet-hi); box-shadow: none;
}
.btn-sim.ghost-sim:hover { background: rgba(139,92,246,.24); color: var(--text); }
.sim-timer.hot { color: var(--hot); text-shadow: 0 0 20px rgba(251,78,78,.55); }
.sim-timer.done { color: var(--faint); }

/* the demo is kept compact at every width so the hero stays short */
.hero-card { padding: 16px; }
.sim-sub { margin: 4px 0 10px; }
.sim-item { margin-bottom: 10px; padding-bottom: 9px; }
.sim-item img { width: 34px; height: 34px; }
.sim-row { margin-bottom: 9px; }
.sim-price { font-size: 24px; }
.sim-timer { font-size: 24px; }
.sim-lead { min-height: 30px; padding: 6px 10px; margin-bottom: 8px; }
.btn-sim { padding: 10px; }

.home-section { margin: clamp(44px, 5vw, 60px) 0; }
.home-section .sh {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 16px;
  margin-bottom: 22px; flex-wrap: wrap;
}
.home-section .sh h2 { font-family: 'Unbounded'; font-size: clamp(20px, 2.6vw, 26px); font-weight: 800; }
.home-section .sh p { color: var(--muted); font-size: 14.5px; max-width: 480px; }

/* how it works: four steps beside the demo, which lights each step as you play it */
.how { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 36px; align-items: center; }
@media (max-width: 860px) { .how { grid-template-columns: 1fr; gap: 18px; } }
.how-steps { list-style: none; margin: 0; padding: 0; display: grid; }
.lot-howto.how-watch { margin-top: 14px; width: auto; }
@media (max-width: 860px) { .lot-howto.how-watch { width: 100%; } }
.how-step { display: flex; gap: 14px; align-items: flex-start; padding: 15px 0; border-bottom: 1px solid var(--line-soft); }
.how-step:last-child { border-bottom: 0; }
.how-n {
  flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  font: 800 13px Unbounded, sans-serif; color: #0B0713; background: var(--ticket);
}
.how-copy { display: grid; gap: 3px; min-width: 0; }
.how-copy b { font: 800 15px/28px Unbounded, sans-serif; letter-spacing: -.01em; }
.how-copy > span { font-size: 14.5px; line-height: 1.5; color: var(--muted); }
.how-step, .how-n { transition: opacity .3s, box-shadow .3s, transform .3s; }
.how-steps.playing .how-step:not(.lit) { opacity: .5; }
.how-step.lit .how-n { box-shadow: 0 0 0 5px rgba(251,191,36,.18), 0 0 18px rgba(251,191,36,.45); transform: scale(1.08); }
.how-step.lit .how-copy b { color: var(--ticket); }
@media (prefers-reduced-motion: reduce) { .how-step, .how-n { transition: none; } }

/* the hero video: a dimmed, silent loop under a title card until someone presses play */
.how-video {
  position: relative; aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden; background: #000;
  border: 1px solid var(--line); box-shadow: 0 24px 60px rgba(0,0,0,.45);
}
.hv-media { display: block; width: 100%; height: 100%; object-fit: cover; }
.hv-play { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start;
  gap: 12px; padding: 20px; cursor: pointer; text-align: left;
  background: linear-gradient(0deg, rgba(5,3,10,.94) 10%, rgba(5,3,10,.78) 32%, rgba(5,3,10,.35) 62%, rgba(5,3,10,.2)); }
.hv-play:focus-visible { outline: 2px solid var(--violet-hi); outline-offset: -4px; border-radius: 18px; }
.hv-pill {
  display: inline-flex; align-items: center; gap: 10px; padding: 7px 16px 7px 7px; border-radius: 999px;
  background: rgba(11,7,19,.82); border: 1px solid rgba(255,255,255,.14); color: var(--text);
  font-size: 15px; font-weight: 800; transition: background .15s, border-color .15s;
}
.hv-ico { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; padding-left: 2px;
  background: var(--violet); color: #fff; transition: transform .15s; }
.hv-len { color: var(--faint); font-weight: 600; }
.hv-play:hover .hv-pill { background: rgba(21,14,36,.92); border-color: rgba(167,139,250,.5); }
.hv-play:hover .hv-ico { transform: scale(1.08); }
.how-video.full .hv-play { display: none; }
/* phones: too short to lay the title over the loop, so it sits in a strip below it,
   and the whole card still starts the video */
@media (max-width: 600px) {
  .hero-video { aspect-ratio: auto; }
  .hero-video .hv-media { aspect-ratio: 16 / 9; height: auto; }
  .hero-video .hv-play { position: static; width: 100%; background: var(--panel); padding: 14px 16px 16px; gap: 10px; }
  .hero-video .hv-play::before { content: ''; position: absolute; inset: 0; }
}

.skel-card {
  background: var(--panel); border: 1px solid var(--line-soft); border-radius: 16px;
  padding: 14px; position: relative; overflow: hidden;
}
.skel-line { border-radius: 6px; background: var(--panel-2); }
.skel-row { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.skel-orb { width: 34px; height: 34px; border-radius: 50%; background: var(--panel-2); flex-shrink: 0; }

.skel-card::after {
  content: ''; position: absolute; inset: 0; transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(167,139,250,.09), transparent);
  animation: skelSweep 1.4s ease-in-out infinite;
}
@keyframes skelSweep { to { transform: translateX(100%); } }

.skel-inline {
  display: inline-block; vertical-align: middle; border-radius: 5px;
  width: var(--skel-w, 3.2em); height: .85em; background: var(--panel-2);
  position: relative; overflow: hidden;
}
.skel-inline::after {
  content: ''; position: absolute; inset: 0; transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(167,139,250,.16), transparent);
  animation: skelSweep 1.4s ease-in-out infinite;
}

.tx-spin {
  display: inline-block; vertical-align: -2px; flex-shrink: 0;
  width: 13px; height: 13px; border-radius: 50%;
  border: 2px solid rgba(167,139,250,.28); border-top-color: var(--violet-hi);
  animation: txSpin .7s linear infinite;
}
@keyframes txSpin { to { transform: rotate(360deg); } }

.clock-block.unverified { opacity: .55; }
.clock-block.unverified #stage-clock { color: var(--faint); }

.tx-wait { display: flex; align-items: flex-start; gap: 8px; text-align: left; }
.tx-wait .tx-spin { margin-top: 2px; }
.tx-wait-sub {
  display: block; margin-top: 3px; font-size: 12.5px; color: var(--faint);
}

.tx-wait-slow { color: var(--ticket); }

button.tx-busy {
  cursor: progress; opacity: 1;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
}
button.tx-busy .tx-spin { border-color: rgba(255,255,255,.3); border-top-color: currentColor; }

button.tx-busy:disabled { opacity: .85; }

#splash {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg);
  transition: opacity .45s ease, visibility .45s;
}
#splash.gone { opacity: 0; visibility: hidden; pointer-events: none; }
.splash-in { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; padding: 24px; }
.splash-mark { width: 52px; height: 74px; }
.splash-mark svg { width: 100%; height: 100%; }

.splash-mark .mark-drip { animation: splashDrip 1.9s cubic-bezier(.5,0,.75,.35) infinite; }
@keyframes splashDrip {
  0%   { transform: translateY(-2px) scale(.8); opacity: 0; }
  20%  { opacity: 1; }
  92%  { transform: translateY(30px) scale(1); opacity: 1; }
  100% { transform: translateY(32px) scale(1.15, .5); opacity: 0; }
}

.splash-mark .mark-pool { animation: splashPool 1.9s ease-out infinite; transform-origin: 20px 50px; }
@keyframes splashPool {
  0%, 78% { transform: scale(.82); opacity: .45; }
  90%     { transform: scale(1.18); opacity: .95; }
  100%    { transform: scale(.82); opacity: .45; }
}
.splash-name { font-size: 26px; font-weight: 600; letter-spacing: -.015em; }
.splash-name i { font-style: normal; font-weight: 400; color: var(--muted); }
.splash-bar { width: 148px; height: 3px; border-radius: 2px; background: var(--line-soft); overflow: hidden; }
.splash-bar > div {
  width: 40%; height: 100%; border-radius: 2px;
  background: linear-gradient(90deg, var(--violet), var(--violet-hi));
  animation: splashSlide 1.15s ease-in-out infinite;
}
@keyframes splashSlide {
  0% { transform: translateX(-110%); } 100% { transform: translateX(280%); }
}
.splash-note { font-size: 13px; color: var(--faint); letter-spacing: .04em; min-height: 16px; }
@media (prefers-reduced-motion: reduce) {
  .splash-mark .mark-drip, .splash-mark .mark-pool, .drip-dot,
  .splash-bar > div, .skel-card::after, .skel-inline::after { animation: none; }
  
  .splash-mark .mark-drip { opacity: 1; transform: translateY(22px); }
  .splash-mark .mark-pool { opacity: .8; }
  .splash-bar > div { width: 100%; }
  
  .tx-spin { animation: txPulse 1.6s ease-in-out infinite; }
  @keyframes txPulse { 50% { opacity: .35; } }
  #chain-note.tx-pending::after { animation: none; }
}

.prize-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }

.prize-grid.wide { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
@media (min-width: 1500px) { .prize-grid.wide { grid-template-columns: repeat(4, 1fr); } }
.prize-card {
  background: var(--panel); border: 1px solid var(--line); border-radius: 16px;
  padding: 14px; cursor: pointer; transition: all .18s; position: relative; overflow: hidden;
}
.prize-card:hover { border-color: var(--violet); transform: translateY(-3px); box-shadow: 0 10px 30px rgba(139,92,246,.2); }
.prize-card.flash { animation: cardFlash .6s ease-out; }
.pc-top { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.pc-top img { width: 36px; height: 36px; }
.pc-top .em { font-size: 30px; line-height: 1; }
.pc-name { font-weight: 800; font-size: 15px; }
.pc-worth { font-size: 13.5px; color: var(--faint); }
.pc-timer-row { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.pc-price { font-family: 'Unbounded'; font-weight: 600; font-size: 18px; position: relative; display: inline-block; }
.pc-timer { font-family: 'JetBrains Mono'; font-size: 15px; font-weight: 700; color: var(--good); white-space: nowrap; }
.pc-timer.warm { color: var(--ticket); }
.pc-timer.hot { color: var(--hot); animation: blink .6s infinite; }
.pc-fund { margin-bottom: 8px; }
.pc-fund-lbl { display: flex; justify-content: space-between; font-size: 12px; color: var(--faint); margin-bottom: 4px; }
.pc-fund-bar { height: 6px; border-radius: 3px; background: var(--panel-2); overflow: hidden; }
.pc-fund-bar > div { height: 100%; background: linear-gradient(90deg, #D97706, #FBBF24); transition: width .5s ease; }
.pc-meta { display: flex; justify-content: space-between; gap: 8px; font-size: 13.5px; color: var(--muted); }
.pc-meta b { color: var(--text); }
.pc-slice { margin-top: 8px; font-size: 13.5px; color: var(--faint); background: var(--panel-2); border-radius: 8px; padding: 6px 8px; }
.pc-slice b { color: var(--ticket); }


.credit-tabs {
  display: flex; gap: 4px; padding: 4px; border-radius: 12px;
  background: var(--panel-2); border: 1px solid var(--line);
}
.credit-tab {
  flex: 1; padding: 7px 10px; border-radius: 9px; font-size: 13.5px; font-weight: 700;
  color: var(--muted); background: transparent; cursor: pointer; transition: all .15s;
}
.credit-tab:hover { color: var(--text); }
.credit-tab.on { background: var(--violet); color: #fff; }

/* recent wins: the deal is the headline */
.deal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.deal {
  position: relative; text-align: left; width: 100%; padding: 16px; border-radius: 18px; cursor: pointer;
  background: var(--panel); border: 1px solid var(--line); color: var(--text); transition: border-color .15s, transform .15s;
}
.deal:hover { border-color: var(--violet); transform: translateY(-2px); }
.deal:focus-visible { outline: 2px solid var(--violet-hi); outline-offset: 2px; }
.deal-top { display: flex; align-items: center; gap: 10px; }
.deal-top img, .deal-top .em { width: 34px; height: 34px; font-size: 26px; line-height: 34px; }
.deal-top b { font-size: 15px; }
.deal-off {
  margin-left: auto; font: 800 14px Unbounded, sans-serif; color: #0B0713; background: var(--good);
  padding: 4px 9px; border-radius: 999px; transform: rotate(-3deg);
}
.deal-price { margin: 14px 0 2px; font: 800 30px/1.05 Unbounded, sans-serif; color: var(--ticket); }
.deal-worth { font-size: 13.5px; color: var(--faint); }
.deal-worth b { color: var(--muted); font-weight: 700; }
.deal-who { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 14px; color: var(--muted); }
.deal-who b { color: var(--text); }
.deal-empty { grid-column: 1 / -1; padding: 26px; text-align: center; color: var(--muted); font-size: 15px;
  background: var(--panel); border: 1px dashed var(--line); border-radius: 18px; }
.deal-empty b { color: var(--text); }

/* stage */
.stage { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.05fr) 244px; gap: 22px; align-items: start; }

@media (max-width: 1100px) { .stage { grid-template-columns: minmax(0,1fr) minmax(0,1.05fr); } }
.stage-side { min-width: 0; }
@media (max-width: 1100px) { .stage-side { display: none; } }
@media (max-width: 900px) { .stage { grid-template-columns: 1fr; } }
.art-panel, .detail-card {
  transition: opacity .22s ease, transform .22s ease;
}
.art-panel.swap-out, .detail-card.swap-out {
  opacity: 0; transform: scale(.97) translateY(8px);
}
.back-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13.5px; font-weight: 700; color: var(--muted); margin-bottom: 12px;
}
.back-link:hover { color: var(--violet-hi); }
.title-row { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.title-icon {
  width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: radial-gradient(circle, rgba(139,92,246,.3), rgba(139,92,246,.06) 70%);
  border: 1px solid rgba(139,92,246,.35);
}
.title-icon img { width: 25px; height: 25px; object-fit: contain; filter: drop-shadow(0 0 10px rgba(139,92,246,.45)); }
.title-icon .em { font-size: 22px; line-height: 1; }
.title-row-main { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; min-width: 0; row-gap: 6px; }

.flow-panel {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 20px 18px; margin-bottom: 12px; position: relative; overflow: hidden;
}
.flow-panel .lbl { font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--faint); margin-bottom: 12px; }
.flow-stage { position: relative; }
.cost-jar-wrap { display: flex; flex-direction: column; align-items: center; }
.cost-jar-svg { width: 100px; overflow: visible; }
.cost-jar-liquid { transition: y 1s cubic-bezier(.22,.9,.3,1), height 1s cubic-bezier(.22,.9,.3,1); }
.cost-jar-caption { margin-top: 6px; font-size: 13.5px; color: var(--muted); font-weight: 700; text-align: center; }
.cost-jar-caption b { color: var(--ticket); font-family: 'Unbounded', sans-serif; font-weight: 600; }
.cost-jar-caption b.ok { color: var(--good); }
.flow-surplus {
  display: table; margin: 8px auto 0; padding: 4px 12px; border-radius: 999px;
  font: 800 14px Unbounded, sans-serif; color: var(--good);
  background: rgba(52,211,153,.1); border: 1px solid rgba(52,211,153,.35);
}
.flow-surplus span { font: 700 12px Manrope, sans-serif; color: var(--muted); }
.flow-surplus[hidden] { display: none; }
.cost-jar-label { font-size: 12.5px; font-weight: 800; text-align: center; margin-bottom: 2px; color: var(--muted); }
.cost-jar-bubble {
  fill: rgba(253,230,138,.55); transform-box: fill-box; transform-origin: center;
  animation: bubbleRiseSvg ease-in-out infinite;
}
@keyframes bubbleRiseSvg {
  0% { transform: translateY(0) scale(1); opacity: 0; }
  15% { opacity: .9; }
  85% { opacity: .25; }
  100% { transform: translateY(-20px) scale(.6); opacity: 0; }
}

.flow-pipe { display: block; width: 100%; height: 30px; overflow: visible; }

.flow-pipe .pipe {
  fill: none; stroke: var(--line-soft); stroke-width: 2.5; stroke-linecap: round;
  vector-effect: non-scaling-stroke; transition: stroke .4s ease;
}

.flow-stage.covered .flow-pipe .pipe {
  stroke-dasharray: 6 8;
  animation: pipeFlow linear infinite;
}
.flow-stage.covered .flow-pipe .pipe-l { stroke: #059669; animation-duration: 1.5s; }
.flow-stage.covered .flow-pipe .pipe-r { stroke: #B45309; animation-duration: 1.8s; }
@keyframes pipeFlow { to { stroke-dashoffset: -28; } }

.flow-pipe .pipe-hub {
  fill: none; stroke: var(--line-soft); stroke-width: 7; stroke-linecap: round;
  vector-effect: non-scaling-stroke; transition: stroke .4s ease;
}
.flow-stage.covered .flow-pipe .pipe-hub { stroke: var(--ticket); }
@media (prefers-reduced-motion: reduce) {
  .flow-stage.covered .flow-pipe .pipe { animation: none; stroke-dasharray: none; }
}

.split-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
@media (max-width: 760px) { .split-row { grid-template-columns: 1fr; gap: 8px; } }

.sim-flow .split-row { grid-template-columns: 1fr; }
.sim-flow .split-name { padding-right: 44px; margin-bottom: 4px; }
.sim-flow .split-amt { margin-bottom: 5px; }
.split-card {
  position: relative; background: var(--panel-2); border: 1px solid var(--line-soft); border-radius: 14px;
  padding: 10px 11px 10px; transition: opacity .3s ease, border-color .3s ease;
}

.split-card.back { border-color: rgba(52,211,153,.35); background: linear-gradient(160deg, rgba(52,211,153,.13), var(--panel-2)); }
.split-card.locked { opacity: .55; }
.split-pct {
  position: absolute; top: 10px; right: 10px; font-size: 10.5px; font-weight: 800;
  color: var(--faint); background: var(--panel); border: 1px solid var(--line-soft); border-radius: 999px; padding: 1px 6px;
}
.split-card.back .split-pct { color: var(--good); border-color: rgba(52,211,153,.4); }
.split-card.fee .split-pct { color: var(--ticket); border-color: rgba(180,83,9,.4); }
.split-name { display: block; font-size: 12px; font-weight: 700; color: var(--muted); margin-bottom: 6px; padding-right: 32px; line-height: 1.25; min-height: 2.6em; }
.split-amt { display: block; font-weight: 800; font-family: 'Unbounded', sans-serif; font-size: 14px; margin-bottom: 7px; }
.split-card.back .split-amt { color: var(--good); }
.split-card.fee .split-amt { color: var(--text); }
.split-card.locked .split-amt { color: var(--faint); font-weight: 600; font-size: 12px; }
.split-bar { height: 7px; border-radius: 4px; background: var(--panel); border: 1px solid var(--line-soft); overflow: hidden; }
.split-bar > div { height: 100%; border-radius: 4px; width: 0; transition: width .5s ease-out; background: linear-gradient(90deg,#B45309,#FBBF24); }
.split-bar.back-bar > div { background: linear-gradient(90deg,#059669,#34D399); }
.split-card.ping { animation: splitPing .5s ease-out; }
@keyframes splitPing { 0% { transform: scale(1) } 35% { transform: scale(1.045) } 100% { transform: scale(1) } }
.flow-caption { font-size: 13px; color: var(--faint); line-height: 1.45; margin-top: 11px; text-align: center; }
.flow-mine { font-size: 13px; color: var(--good); line-height: 1.45; margin-top: 6px; text-align: center; }
.flow-mine:empty { display: none; }
.flow-caption b { color: var(--violet-hi); }

.jar-drop {
  position: absolute; z-index: 5; font-size: 15px; left: 50%;
  animation: coinFall .62s cubic-bezier(.4,0,.7,1) forwards;
  pointer-events: none;
}
@keyframes coinFall {
  0% { transform: translate(-50%, -10px) rotate(0deg); opacity: 1; }
  100% { transform: translate(-50%, 26px) rotate(200deg); opacity: 0; }
}
.split-drop { position: absolute; z-index: 5; border-radius: 50%; pointer-events: none; animation: splitFall .5s cubic-bezier(.4,0,.7,1) forwards; }
.split-drop.to-back {
  left: 25%; width: 10px; height: 10px;
  background: radial-gradient(circle at 32% 30%, #A7F3D0, #059669);
  box-shadow: 0 0 8px rgba(52,211,153,.65);
}
.split-drop.to-fee {
  left: 75%; width: 6px; height: 6px;
  background: radial-gradient(circle at 32% 30%, #FDE68A, #D97706);
  box-shadow: 0 0 6px rgba(217,119,6,.55);
}
@keyframes splitFall {
  0% { transform: translate(-50%, 0) scale(1); opacity: 1; }
  70% { opacity: 1; }
  100% { transform: translate(-50%, 56px) scale(.4); opacity: 0; }
}
.flow-ripple {
  position: absolute; z-index: 3; left: 50%; width: 10px; height: 10px;
  border-radius: 50%; border: 2px solid rgba(253,230,138,.8);
  transform: translate(-50%, -50%); animation: rippleOut .7s ease-out forwards;
  pointer-events: none;
}
@keyframes rippleOut { 0% { width: 6px; height: 6px; opacity: .9; } 100% { width: 60px; height: 18px; opacity: 0; } }

/* recent bidders, full width */
.rb-panel {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; margin-bottom: 10px;
}
.rb-col { padding: 12px 14px 14px; min-width: 0; }
.rb-col-head {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  font-size: 12px; font-weight: 800; color: var(--muted); margin-bottom: 9px;
}
.rb-col-head b { color: var(--text); }

/* right: detail */
.detail { min-width: 0; }
.lot-title {
  font-family: 'Manrope', sans-serif;
  font-size: clamp(18px, 2.2vw, 23px); font-weight: 800;
  letter-spacing: -.01em; line-height: 1.2;
  color: var(--text);
}

.lot-meta {
  display: flex; gap: 7px; flex-wrap: nowrap;
  min-width: 0; overflow-x: auto; scrollbar-width: none; padding-bottom: 1px;
}
.lot-meta::-webkit-scrollbar { display: none; }
.lot-meta .meta-chip { flex: 0 0 auto; }

.lot-meta.scrolls {
  -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 24px), transparent);
          mask-image: linear-gradient(90deg, #000 calc(100% - 24px), transparent);
}
.meta-chip {
  font-size: 12px; font-weight: 700; color: var(--muted);
  background: var(--panel); border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px;
}
.meta-chip.disc { color: var(--good); background: rgba(52,211,153,.12); border-color: rgba(52,211,153,.4); }
.meta-chip.funded { color: var(--violet-hi); background: rgba(139,92,246,.16); border-color: rgba(139,92,246,.45); }
.meta-chip.ended {
  color: var(--faint); background: rgba(255,255,255,.05); border-color: var(--line);
  letter-spacing: .1em; text-transform: uppercase; font-size: 11.5px;
}

.meta-chip.id {
  font-family: 'JetBrains Mono', monospace; font-size: 11px; font-weight: 600;
  color: var(--faint); cursor: help;
}
.price-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 12px; }
.price-tag {
  display: flex; align-items: baseline; gap: 9px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 7px 14px;
}
.price-tag .l { font-size: 12px; color: var(--faint); text-transform: uppercase; letter-spacing: .1em; }
.price-tag .v { font-size: 22px; font-weight: 800; }
.price-tag .v.pop { animation: pricePop .45s ease-out; }
.bids-count { font-size: 14px; color: var(--muted); }
.bids-count b { color: var(--text); font-size: 15px; }

.action-zone {
  background: var(--panel); border: 1px solid var(--line); border-radius: 20px;
  padding: 14px 16px 16px; margin-bottom: 14px;
  box-shadow: 0 8px 28px rgba(0,0,0,.18);
}
.action-zone .az-price {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  margin-bottom: 10px; padding-bottom: 12px; border-bottom: 1px solid var(--line-soft);
}
.action-zone .az-price-main { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.action-zone .az-price-main .l {
  font-size: 11.5px; color: var(--faint); text-transform: uppercase; letter-spacing: .16em; font-weight: 700;
  align-self: center;
}
.action-zone .az-price-main .v {
  font-family: 'JetBrains Mono', monospace;
  font-size: clamp(34px, 5vw, 44px); font-weight: 700; line-height: 1;
  color: var(--ticket); letter-spacing: -.02em;
  text-shadow: 0 0 28px rgba(251,191,36,.22);
}
.action-zone .az-price-main .v.pop { animation: pricePop .45s ease-out; display: inline-block; }
@keyframes pricePop {
  0% { color: var(--ticket); transform: scale(1) }
  35% { color: var(--good); transform: scale(1.06) }
  100% { color: var(--ticket); transform: scale(1) }
}
.action-zone .az-meta { font-size: 14px; color: var(--muted); text-align: right; }
.price-rise-tick { animation: priceRiseTick .5s ease-out; }
@keyframes priceRiseTick {
  0% { color: var(--good); transform: translateY(1px); }
  40% { color: var(--good); transform: translateY(-3px); }
  100% { color: var(--text); transform: translateY(0); }
}
.price-rise-ghost {
  position: absolute; left: 50%; bottom: 100%; transform: translate(-50%, 4px);
  font-size: 11px; font-weight: 800; color: var(--good);
  animation: priceRiseGhost .7s ease-out forwards; pointer-events: none; white-space: nowrap;
}
@keyframes priceRiseGhost {
  0% { opacity: 0; transform: translate(-50%, 4px); }
  25% { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%, -14px); }
}
.action-zone .az-meta b { color: var(--text); font-size: 15px; }
.action-zone .clock-block {
  margin: 0 0 12px; border: none; background: transparent; padding: 4px 0 0;
  border-radius: 0;
}
.action-zone .bid-zone { margin: 0; }
.action-zone .bid-sub { margin-top: 8px; }

/* feed */
.feed { max-height: 360px; overflow-y: auto; }
.feed-row {
  display: flex; align-items: center; gap: 9px; padding: 5px 6px; border-radius: 10px; font-size: 14px;
}
.feed-row.new { animation: feedIn .35s ease-out; }
@keyframes feedIn { from { opacity: 0; transform: translateY(-10px) } to { opacity: 1; transform: none } }
.feed-row.mine { background: rgba(139,92,246,.14); box-shadow: inset 0 0 0 1px rgba(139,92,246,.35); }
.avatar {
  width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 15px;
  border: 2px solid var(--line);
}
.feed-row .avatar { width: 26px; height: 26px; font-size: 14px; }
.feed-row .name { font-weight: 700; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.feed-row .price { font-size: 13px; color: var(--muted); flex-shrink: 0; }
.feed-empty { text-align: center; color: var(--faint); font-size: 14px; padding: 26px 0; }

/* countdown — highly visible */
.clock-block {
  text-align: center; margin: 12px 0 10px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 18px;
  padding: 16px 14px 14px; position: relative; overflow: hidden;
}
.clock-block.resetting {
  box-shadow: 0 0 0 2px rgba(52,211,153,.5), 0 0 36px rgba(52,211,153,.25);
}
.clock-lbl { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--faint); margin-bottom: 4px; }
.clock-reset-hint {
  font-size: 13px; font-weight: 700; color: var(--good); margin-bottom: 6px;
  opacity: 0; transform: translateY(4px); transition: all .25s;
}
.clock-block.resetting .clock-reset-hint { opacity: 1; transform: none; }
.clock { font-size: clamp(32px, 4.2vw, 42px); font-weight: 800; letter-spacing: .04em; color: var(--text); transition: color .2s; }
.clock small { font-size: .48em; color: var(--faint); font-weight: 400; margin: 0 2px; }
.clock.warm { color: var(--ticket); }
.clock.hot { color: var(--hot); text-shadow: 0 0 26px rgba(251,78,78,.6); }
.clock.timer-reset { animation: timerReset .55s ease-out; }

.clock-block.is-ended { background: var(--panel-2); border-color: var(--line-soft); }
.clock-block.is-ended .clock {
  color: var(--text); font-size: clamp(22px, 2.8vw, 28px); letter-spacing: 0; text-transform: none;
}
.clock-block.is-ended .clock .winner { color: var(--ticket); }
.clock-block.is-ended .clock .nobody { color: var(--faint); font-weight: 700; }
@keyframes timerReset {
  0% { transform: scale(1); filter: brightness(1); }
  30% { transform: scale(1.12); filter: brightness(1.4); color: var(--good); }
  100% { transform: scale(1); filter: brightness(1); }
}
.final-call {
  visibility: hidden; font-size: 12px; font-weight: 800; letter-spacing: .3em; color: var(--hot);
  text-transform: uppercase; margin-top: 6px; animation: blink .5s infinite;
}
.clock-block.finale .final-call { visibility: visible; }
.clock-micro { font-size: 13px; color: var(--muted); margin-top: 6px; }
.clock-micro b { color: var(--ticket); }

@keyframes shakeHard {
  0%,100% { transform: translate(0,0) rotate(0) }
  20% { transform: translate(-3px,2px) rotate(-.4deg) }
  40% { transform: translate(3px,-2px) rotate(.4deg) }
  60% { transform: translate(-3px,-2px) rotate(-.3deg) }
  80% { transform: translate(3px,2px) rotate(.3deg) }
}
.shaking { animation: shakeHard .3s linear infinite; }
.detail-card { position: relative; border-radius: var(--radius); }
.art-panel.redline::after {
  content: ''; position: absolute; inset: -2px; border-radius: 20px; pointer-events: none;
  box-shadow: 0 0 0 2px rgba(251,78,78,.6), 0 0 42px rgba(251,78,78,.35);
  animation: blink .5s infinite;
}

/* bid button */
.bid-zone { position: relative; }
.btn-bid {
  width: 100%; padding: 15px; border-radius: 16px;
  background: linear-gradient(135deg, var(--violet), #7C3AED);
  color: #fff; font-family: 'Unbounded', sans-serif; font-weight: 800; font-size: 17px; letter-spacing: .06em;
  box-shadow: 0 8px 34px rgba(139,92,246,.4);
  transition: transform .1s, box-shadow .2s, filter .2s;
}
.btn-bid:hover { filter: brightness(1.12); box-shadow: 0 8px 44px rgba(139,92,246,.65); }
.btn-bid:active { transform: scale(.97); }
.btn-bid:disabled { filter: grayscale(.8) brightness(.6); cursor: default; }
.btn-bid.leading:disabled {
  background: linear-gradient(135deg, #10B981, var(--good));
  filter: none; box-shadow: 0 8px 34px rgba(52,211,153,.35); cursor: default;
}

.btn-bid.armed {
  background: linear-gradient(135deg, var(--violet), #4F46E5);
  box-shadow: 0 8px 34px rgba(99,102,241,.4), inset 0 0 0 1px rgba(255,255,255,.14);
}

.btn-bid.ended:disabled {
  background: var(--panel-2); border: 1px solid var(--line);
  color: var(--faint); filter: none; box-shadow: none; cursor: default;
}

.btn-bid.danger {
  background: linear-gradient(135deg, #B45309, #92400E);
  box-shadow: 0 8px 34px rgba(245,158,11,.3), inset 0 0 0 1px rgba(253,230,138,.28);
}
.bid-sub { text-align: center; font-size: 13px; color: var(--faint); margin-top: 6px; }

.bid-sub:empty { display: none; }
.bid-sub b { color: var(--ticket); }
.bid-sub .danger-note { color: var(--ticket); }

.armed-rules {
  display: flex; flex-wrap: wrap; gap: 6px; justify-content: center;
  margin-top: 8px; font-size: 12.5px; color: var(--muted);
}
.armed-rules:empty { display: none; }
.armed-rule {
  background: var(--panel); border: 1px solid var(--line-soft); border-radius: 999px;
  padding: 3px 10px; white-space: nowrap;
}
.armed-rule b { color: var(--ticket); }
.armed-rules .ar-lead { flex-basis: 100%; text-align: center; color: var(--faint); }

.armed-rules .ar-caveat {
  flex-basis: 100%; text-align: center; color: var(--faint);
  font-size: 11.5px; line-height: 1.45; opacity: .85; margin-top: 2px;
}

.sk-cta {
  margin-top: 10px; width: 100%; display: flex; align-items: center; gap: 11px;
  padding: 10px 12px; border-radius: 14px; text-align: left; cursor: pointer;
  background: linear-gradient(135deg, rgba(139,92,246,.16), rgba(139,92,246,.05));
  border: 1px solid rgba(139,92,246,.4);
  transition: border-color .18s, transform .12s, box-shadow .2s;
  position: relative; overflow: hidden;
}
.sk-cta:hover { border-color: var(--violet-hi); box-shadow: 0 8px 26px rgba(139,92,246,.25); }
.sk-cta:active { transform: scale(.99); }

.sk-cta::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(105deg, transparent 40%, rgba(167,139,250,.14) 50%, transparent 60%);
  transform: translateX(-120%); animation: skSheen 5.5s ease-in-out infinite;
}
@keyframes skSheen { 0%, 62% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }
@media (prefers-reduced-motion: reduce) { .sk-cta::after { animation: none; } }

.sk-bolt {
  flex-shrink: 0; width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center;
  font-size: 15px; background: rgba(139,92,246,.22); border: 1px solid rgba(167,139,250,.45);
}
.sk-body { flex: 1; min-width: 0; }
.sk-eyebrow {
  font-size: 10.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  color: var(--violet-hi); margin-bottom: 2px;
}
.sk-title { font-size: 14.5px; font-weight: 800; color: var(--text); }
.sk-note { font-size: 13.5px; color: var(--muted); margin-top: 2px; line-height: 1.35; }
.sk-go {
  flex-shrink: 0; font-size: 12.5px; font-weight: 800; letter-spacing: .04em;
  padding: 7px 13px; border-radius: 999px; background: var(--violet); color: #fff;
}
.sk-cta:hover .sk-go { filter: brightness(1.12); }

.sk-cta.on {
  background: linear-gradient(135deg, rgba(52,211,153,.14), rgba(52,211,153,.04));
  border-color: rgba(52,211,153,.4);
}
.sk-cta.on::after { animation: none; }
.sk-cta.on:hover { border-color: var(--good); box-shadow: 0 8px 26px rgba(52,211,153,.2); }
.sk-cta.on .sk-bolt { background: rgba(52,211,153,.2); border-color: rgba(52,211,153,.5); }
.sk-cta.on .sk-eyebrow { color: var(--good); }
.sk-cta.on .sk-go { background: transparent; border: 1px solid var(--line); color: var(--muted); }

.sk-cta.warn { background: linear-gradient(135deg, rgba(251,191,36,.14), rgba(251,191,36,.04)); border-color: rgba(251,191,36,.45); }
.sk-cta.warn .sk-bolt { background: rgba(251,191,36,.2); border-color: rgba(251,191,36,.5); }
.sk-cta.warn .sk-eyebrow { color: var(--ticket); }
.sk-cta.warn .sk-go { background: var(--ticket); color: #2A1D00; }

.sk-status {
  display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap;
  background: rgba(52,211,153,.1); border: 1px solid rgba(52,211,153,.35); border-radius: 10px;
  padding: 9px 12px; margin-bottom: 10px; font-size: 13.5px; color: var(--good);
}
.sk-status b { color: var(--good); }
.sk-status span { color: var(--dim); font-size: 13px; }
.sk-fee-row {
  display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap;
  background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px;
  padding: 9px 12px; margin-bottom: 10px; font-size: 13px; color: var(--dim);
}
.sk-fee-row.low { border-color: rgba(251,191,36,.4); color: var(--ticket); }
.sk-fee-acts { display: flex; gap: 6px; flex-shrink: 0; }
.sk-fee-acts button {
  padding: 6px 10px; border-radius: 8px; border: 1px solid var(--line);
  background: transparent; color: var(--dim); font: 800 12px Manrope, system-ui, sans-serif; cursor: pointer;
}
.sk-fee-acts button:hover { border-color: var(--violet-hi); color: var(--text); }
.sk-fee-acts button:disabled { opacity: .5; cursor: default; }
.sk-note-box {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap;
  border-radius: 10px; padding: 9px 12px; margin-bottom: 12px; font-size: 13px; line-height: 1.4;
}
.sk-note-box.warn { background: rgba(251,191,36,.1); border: 1px solid rgba(251,191,36,.35); color: var(--ticket); }
.sk-label { font-size: 12px; color: var(--dim); font-weight: 700; }
.fly-chip {
  position: absolute; left: 50%; bottom: 90%; transform: translateX(-50%);
  font-size: 14px; font-weight: 800; white-space: nowrap; pointer-events: none;
  animation: flyUp 1.15s ease-out forwards;
}
@keyframes flyUp {
  0% { opacity: 0; transform: translate(-50%, 8px) scale(.8) }
  15% { opacity: 1 }
  100% { opacity: 0; transform: translate(-50%, -56px) scale(1.06) }
}


/* strategies panel */
.strategy-panel {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px; margin-top: 10px;
}
.strategy-panel .sp-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  cursor: pointer; list-style: none;
}
.strategy-panel .sp-head::-webkit-details-marker { display: none; }
.strategy-panel .sp-head h3 { font-size: 15px; font-weight: 800; display: flex; align-items: center; gap: 8px; }
.strategy-panel .sp-head .beta {
  font-size: 10.5px; background: rgba(139,92,246,.2); color: var(--violet-hi);
  border: 1px solid rgba(139,92,246,.4); padding: 2px 8px; border-radius: 999px; letter-spacing: .1em;
}
.strategy-panel .sp-sub { font-size: 13px; color: var(--faint); margin-top: 3px; max-width: 420px; line-height: 1.45; }
.strategy-panel .sp-chevron {
  font-size: 14px; color: var(--faint); flex-shrink: 0; margin-top: 2px;
  transition: transform .2s ease;
}
.strategy-panel[open] .sp-chevron { transform: rotate(180deg); }
.strategy-panel .sp-body { margin-top: 14px; }
.verify-gate {
  background: rgba(251,191,36,.08); border: 1px solid rgba(251,191,36,.3);
  border-radius: 12px; padding: 12px 14px; margin-bottom: 12px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}
.verify-gate.ok {
  background: rgba(52,211,153,.08); border-color: rgba(52,211,153,.3);
}
.verify-gate .vg-t { font-size: 14px; font-weight: 700; }
.verify-gate .vg-d { font-size: 13.5px; color: var(--faint); margin-top: 2px; line-height: 1.4; }
.preset-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
@media (max-width: 560px) { .preset-grid { grid-template-columns: 1fr; } }

.preset-card {
  background: var(--panel-2); border: 1px solid var(--line); border-radius: 12px;
  padding: 11px 12px; text-align: left; cursor: pointer;
  display: flex; flex-direction: column;
  transition: transform .12s, border-color .15s, background .15s, box-shadow .15s;
}
.preset-card:hover:not(:disabled) {
  border-color: var(--violet); background: rgba(139,92,246,.08);
  transform: translateY(-1px); box-shadow: 0 6px 16px rgba(0,0,0,.32);
}
.preset-card:active:not(:disabled) { transform: translateY(0); box-shadow: none; }
.preset-card:focus-visible { outline: 2px solid var(--violet); outline-offset: 2px; }
.preset-card.active {
  border-color: var(--violet); background: rgba(139,92,246,.16);
  box-shadow: inset 0 0 0 1px rgba(139,92,246,.4);
}
.preset-card:disabled { opacity: .45; cursor: not-allowed; }
.preset-card .pn { font-weight: 800; font-size: 14px; margin-bottom: 3px; }
.preset-card .pd { font-size: 13.5px; color: var(--faint); line-height: 1.4; }
.preset-card .pf {
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px; margin-top: auto; padding-top: 8px;
}
.preset-card .pr { font-size: 11.5px; color: var(--violet-hi); font-weight: 700; }
.preset-arm {
  flex: none; font-size: 11.5px; font-weight: 800; letter-spacing: .04em;
  border: 1px solid var(--violet); color: var(--violet-hi);
  border-radius: 999px; padding: 3px 9px; white-space: nowrap;
}
.preset-card:hover:not(:disabled) .preset-arm { background: var(--violet); color: #fff; }
.preset-card.active .preset-arm { background: var(--violet); color: #fff; }

.timing-row { display: flex; gap: 6px; margin-bottom: 12px; }
.timing-btn {
  flex: 1; min-width: 0; background: var(--panel-2); border: 1px solid var(--line);
  border-radius: 10px; padding: 8px 4px; text-align: center; cursor: pointer;
  transition: border-color .15s, background .15s;
}
.timing-btn:hover:not(:disabled) { border-color: var(--violet); background: rgba(139,92,246,.08); }
.timing-btn:focus-visible { outline: 2px solid var(--violet); outline-offset: 2px; }
.timing-btn.active { border-color: var(--violet); background: rgba(139,92,246,.16); }
.timing-btn:disabled { opacity: .45; cursor: not-allowed; }
.tb-name {
  display: block; font-weight: 800; font-size: 13px; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
}
.tb-under { display: block; font-size: 11.5px; color: var(--faint); margin-top: 2px; }
.timing-btn.active .tb-under { color: var(--violet-hi); }

.custom-rule { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; margin-bottom: 12px; }

.cr-head {
  font-size: 13px; font-weight: 800; color: var(--muted);
  letter-spacing: .03em; margin-bottom: 8px;
}
.custom-rule .cr-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.custom-rule label { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--dim); font-weight: 700; }

.custom-rule .num-field { width: 46px; padding: 6px 4px; text-align: center; appearance: textfield; }
.custom-rule .num-field::-webkit-outer-spin-button,
.custom-rule .num-field::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.custom-rule .cr-cost { display: block; font-size: 12.5px; color: var(--violet-hi); font-weight: 700; margin-top: 8px; line-height: 1.4; }
.custom-rule .cr-cost.bad { color: var(--hot); }
.bid-split {
  margin-top: 10px; padding: 10px 12px; border-radius: 10px;
  background: var(--panel-2); border: 1px solid var(--line-soft);
  display: flex; flex-direction: column; gap: 5px;
}
.bid-split:empty { display: none; }
.bs-total {
  font-size: 12px; font-weight: 800; color: var(--muted); text-transform: uppercase;
  letter-spacing: .03em; margin-bottom: 2px;
}
.bs-row { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--dim); }
.bs-row b { color: var(--text); }
.bs-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.bs-dot.bid { background: var(--violet-hi); }
.bs-dot.backup { background: var(--ticket); }
.bs-dot.spare { background: var(--good); }
.strat-running {
  display: none; background: rgba(52,211,153,.1); border: 1px solid rgba(52,211,153,.3);
  border-radius: 12px; padding: 10px 12px; margin-bottom: 12px; font-size: 14px;
}
.strat-running.on { display: block; }
.strat-running b { color: var(--good); }
.strat-running .sr-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 6px; color: var(--muted); }
.strat-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.transparency-note {
  font-size: 12.5px; color: var(--faint); line-height: 1.45;
  background: var(--panel-2); border-radius: 10px; padding: 9px 11px; margin-top: 10px;
}
.transparency-note b { color: var(--muted); }
.active-strats-list { font-size: 13px; color: var(--muted); margin-top: 6px; }
.active-strats-list li { margin-left: 16px; margin-top: 3px; }

.strat-rivals {
  font-size: 13px; color: var(--muted); line-height: 1.5;
  background: rgba(251,191,36,.08); border: 1px solid rgba(251,191,36,.3);
  border-radius: 11px; padding: 11px 12px; margin-bottom: 12px;
}
.strat-rivals b { color: var(--text); }

.pack-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
@media (max-width: 420px) { .pack-grid { grid-template-columns: 1fr; } }


.toggle { width: 44px; height: 25px; border-radius: 999px; background: var(--panel-2); border: 1px solid var(--line); position: relative; cursor: pointer; transition: background .2s; flex-shrink: 0; }
.toggle::after { content: ''; position: absolute; top: 3px; left: 3px; width: 17px; height: 17px; border-radius: 50%; background: var(--muted); transition: all .2s; }
.toggle.on { background: var(--violet); border-color: var(--violet); }
.toggle.on::after { left: 22px; background: #fff; }
.toggle.good.on { background: var(--good); border-color: var(--good); }

/* rail cards (compact) */
.rail { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.rail-empty {
  grid-column: 1 / -1; text-align: center; padding: 14px;
  border: 1px dashed var(--line); border-radius: 14px;
  font-size: 13.5px; color: var(--faint);
}
.rail-empty a { color: var(--violet-hi); }
.lot-card {
  background: var(--panel); border: 1px solid var(--line); border-radius: 14px;
  padding: 11px; cursor: pointer; transition: all .18s; position: relative; overflow: hidden;
}
.lot-card:hover { border-color: var(--violet); transform: translateY(-3px); box-shadow: 0 10px 30px rgba(139,92,246,.2); }
.lot-card.flash { animation: cardFlash .6s ease-out; }
@keyframes cardFlash { 30% { box-shadow: 0 0 0 2px var(--violet), 0 0 24px rgba(139,92,246,.5) } }
.lot-card .lc-top { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.lot-card .lc-top img { width: 30px; height: 30px; }
.lot-card .lc-top .em { font-size: 24px; line-height: 1; }
.lot-card .lc-name { font-weight: 800; font-size: 15px; }
.lot-card .lc-worth { font-size: 12px; color: var(--faint); }
.lot-card .lc-mid { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px; }
.lot-card .lc-price { font-family: 'Unbounded'; font-weight: 600; font-size: 16px; position: relative; display: inline-block; }
.lot-card .lc-timer { font-family: 'JetBrains Mono'; font-size: 14px; font-weight: 700; color: var(--good); white-space: nowrap; }
.lot-card .lc-timer.warm { color: var(--ticket); }
.lot-card .lc-timer.hot { color: var(--hot); animation: blink .6s infinite; }

.lot-card .lc-live { position: absolute; top: 12px; right: 12px; font-size: 10.5px; font-weight: 800; letter-spacing: .12em; color: var(--faint); }
.lot-card.ended { opacity: .55; cursor: pointer; }
.lot-card.ended:hover { opacity: .8; }
.btn-bid-xs {
  align-self: center; flex-shrink: 0; cursor: pointer; padding: 3px 10px; border-radius: 999px;
  background: linear-gradient(135deg, var(--violet), #7C3AED);
  color: #fff; font-family: 'Unbounded', sans-serif; font-weight: 700; font-size: 11px; letter-spacing: .03em;
  box-shadow: 0 2px 10px rgba(139,92,246,.45);
  transition: transform .1s, filter .2s;
}
.btn-bid-xs:hover { filter: brightness(1.15); }
.btn-bid-xs:active { transform: scale(.93); }
.btn-bid-xs.leading:disabled { background: linear-gradient(135deg, #10B981, var(--good)); cursor: default; }
.lot-card.current { border-color: rgba(139,92,246,.6); box-shadow: inset 0 0 0 1px rgba(139,92,246,.3); }

/* generic sections */
.section-head { margin-bottom: 22px; }
.section-head h1 { font-family: 'Unbounded'; font-size: clamp(22px, 3vw, 30px); font-weight: 800; margin-bottom: 7px; }
.section-head p { color: var(--muted); font-size: 15px; max-width: 640px; }
.grid3 { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.stat-num { font-family: 'Unbounded'; font-weight: 800; }

/* winners */
.won-card { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 18px; cursor: pointer; transition: all .18s; }
.won-card:hover { border-color: var(--violet); transform: translateY(-3px); }
.won-top { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.won-top img { width: 36px; height: 36px; }
.won-top .em { font-size: 30px; }
.won-name { font-weight: 800; }
.won-ago { font-size: 12px; color: var(--faint); }
.won-stats { display: flex; gap: 8px; margin-bottom: 12px; }
.won-stat { flex: 1; background: var(--panel-2); border-radius: 10px; padding: 8px; text-align: center; }
.won-stat .k { font-size: 11px; color: var(--faint); text-transform: uppercase; letter-spacing: .08em; }
.won-stat .v { font-size: 15px; font-weight: 800; margin-top: 2px; }
.won-stat .v.good { color: var(--good); }
.won-winner { display: flex; align-items: center; justify-content: space-between; background: var(--panel-2); border-radius: 10px; padding: 8px 12px; font-size: 13.5px; }
.won-winner .wv { display: flex; align-items: center; gap: 8px; font-weight: 800; }

.won-claim { width: 100%; margin-top: 10px; padding: 11px 12px; border-radius: 11px;
  font: 800 14px Manrope, system-ui, sans-serif; color: #0B0B14; cursor: pointer;
  background: linear-gradient(180deg, #34D399, #10B981); transition: filter .15s; }
.won-claim:hover { filter: brightness(1.08); }
.won-claim.ghost { background: transparent; color: var(--ticket);
  border: 1px solid rgba(251,191,36,.45); }
.won-claim.ghost:hover { background: rgba(251,191,36,.1); }
.won-claim-note { font-size: 12px; color: var(--faint); text-align: center; margin-top: 6px; }

.won-claim-note.urgent { color: var(--ticket); font-weight: 700; }

.act-bar { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; }
.act-filters { display: flex; gap: 6px; flex-wrap: wrap; }
.act-chip {
  font-size: 12.5px; font-weight: 800; padding: 6px 12px; border-radius: 999px;
  border: 1px solid var(--line); background: transparent; color: var(--muted); cursor: pointer;
}
.act-chip:hover { color: var(--text); border-color: var(--violet); }
.act-chip.on { background: rgba(139,92,246,.16); border-color: var(--violet); color: var(--text); }
.act-chip .n { color: var(--faint); font-weight: 700; margin-left: 5px; }
.act-sum { font-size: 13px; color: var(--muted); }
.act-sum b { color: var(--text); }
.act-panel { padding: 6px 6px 8px; }
.act-day {
  font-size: 11.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  color: var(--faint); padding: 14px 12px 8px;
}
.act-row {
  display: grid; grid-template-columns: 30px 1fr auto auto; align-items: center; gap: 12px;
  padding: 10px 12px; border-radius: 11px; font-size: 14px;
}
.act-row:hover { background: var(--panel-2); }
.act-ico {
  width: 30px; height: 30px; border-radius: 9px; display: flex; align-items: center;
  justify-content: center; font-size: 15px; background: rgba(255,255,255,.05);
}
.act-what { min-width: 0; }
.act-what b { font-weight: 800; }
.act-sub { font-size: 12.5px; color: var(--faint); margin-top: 2px; }
.act-sub a { color: var(--violet-hi); }
.act-amt { font-family: 'JetBrains Mono', monospace; font-weight: 700; font-size: 14px; white-space: nowrap; }
.act-amt.in { color: var(--good); }
.act-amt.out { color: var(--dim); }
.act-amt.none { color: var(--faint); }
.act-time { font-size: 12.5px; color: var(--faint); white-space: nowrap; text-align: right; }
.act-tx { display: block; font-size: 11.5px; color: var(--violet-hi); }
.act-empty { padding: 30px 12px; text-align: center; color: var(--faint); font-size: 14px; }
@media (max-width: 620px) {
  .act-row { grid-template-columns: 26px 1fr auto; row-gap: 4px; }
  .act-time { grid-column: 2 / -1; text-align: left; }
}


/* refunds */

.impact-top { display: grid; grid-template-columns: 1.05fr .95fr; gap: 16px; align-items: stretch; }
@media (max-width: 860px) { .impact-top { grid-template-columns: 1fr; } }
.impact-hero {
  display: flex; flex-direction: column; justify-content: center;
  text-align: center; padding: 30px 22px;
}
.impact-hero .k { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--good); margin-bottom: 10px; }
.impact-hero .n { font-family: 'Unbounded'; font-size: clamp(34px, 5vw, 52px); font-weight: 800; line-height: 1.05; background: linear-gradient(120deg, #34D399, #A7F3D0); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.week-counters { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.week-counters .week-counter { margin-top: 0; }

.impact-dest { display: flex; flex-direction: column; gap: 11px; }

.impact-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 16px 0; }
.impact-stats.two { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 860px) { .impact-stats.two { grid-template-columns: 1fr; } }
.refund-rules { margin: 0; padding-left: 18px; display: grid; gap: 8px; font-size: 13.5px; color: var(--muted); line-height: 1.5; }
.refund-rules b { color: var(--text); }
@media (max-width: 860px) { .impact-stats { grid-template-columns: 1fr; } }
.stat-tile .stat-num { font-size: 27px; margin: 6px 0 4px; }
.tile-sub { font-size: 12.5px; color: var(--faint); line-height: 1.45; }

.impact-feeds { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 860px) { .impact-feeds { grid-template-columns: 1fr; } }
.feed-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 10px; }
.feed-note { font-size: 12.5px; color: var(--faint); }
.week-counter {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 16px;
  background: rgba(52,211,153,.1); border: 1px solid rgba(52,211,153,.3);
  border-radius: 999px; padding: 8px 16px; font-size: 14px; color: var(--muted);
}
.week-counter b { color: var(--good); font-family: 'Unbounded'; }
.org-bar { height: 6px; border-radius: 3px; background: var(--panel-2); overflow: hidden; margin-top: 12px; }
.org-bar > div { height: 100%; border-radius: 3px; transition: width .6s ease-out; }
.events { max-height: 300px; overflow-y: auto; }
.event-row { display: flex; align-items: center; gap: 10px; font-size: 14px; padding: 8px 4px; color: var(--muted); border-bottom: 1px solid var(--line-soft); }
.event-row:last-child { border: none; }
.event-row.new { animation: feedIn .3s ease-out; }
.event-row .ev-amt { margin-left: auto; color: var(--good); font-weight: 800; white-space: nowrap; }

/* second chance */
.chance-hero { display: grid; grid-template-columns: 1fr auto; gap: 26px; align-items: center; background: linear-gradient(135deg, rgba(139,92,246,.16), rgba(21,14,36,.4)); border: 1px solid rgba(139,92,246,.35); border-radius: 24px; padding: 34px; margin-bottom: 18px; }
@media (max-width: 760px) { .chance-hero { grid-template-columns: 1fr; } }
.chance-hero .k { font-size: 12.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--violet-hi); margin-bottom: 12px; }
.chance-hero .pool { font-family: 'Unbounded'; font-size: clamp(34px, 5vw, 52px); font-weight: 800; }
.chance-hero .pool span { font-size: .45em; color: var(--violet-hi); }
.chance-hero .s { color: var(--muted); font-size: 14.5px; margin-top: 10px; max-width: 480px; }
.chance-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 860px) { .chance-grid { grid-template-columns: 1fr; } }
.mini-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; margin-bottom: 14px; }

.mini-stats.quad { grid-template-columns: repeat(2, 1fr); }

.eg-rule { display: flex; align-items: center; gap: 12px; margin: 22px 0 14px; }
.eg-rule::before, .eg-rule::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.eg-rule span {
  font-size: 11px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--violet-hi); white-space: nowrap;
}

.eg-tabs {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin-bottom: 14px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 11px; padding: 4px;
}
.eg-tab {
  padding: 8px 6px; border-radius: 8px; font-size: 13px; font-weight: 700;
  color: var(--muted); background: transparent; transition: background .18s, color .18s;
}
.eg-tab:hover { color: var(--text); }
.eg-tab.on { background: rgba(139,92,246,.22); color: var(--text); }
.mini-stat { background: var(--panel-2); border-radius: 12px; padding: 11px; text-align: center; }
.mini-stat .k { font-size: 11px; color: var(--faint); text-transform: uppercase; letter-spacing: .08em; }
.mini-stat .v { font-size: 17px; font-weight: 800; margin-top: 3px; }
.drip-rig { position: relative; height: 54px; margin: 4px 0 2px; }
.drip-spout { position: absolute; top: 0; left: 50%; width: 20px; height: 8px; transform: translateX(-50%); background: var(--panel-2); border: 1px solid var(--line-soft); border-radius: 0 0 6px 6px; }
.drip { position: absolute; top: 10px; left: 50%; font-size: 13px; transform: translateX(-50%); animation: dripFall 2.6s ease-in infinite; opacity: 0; }
.drip.d2 { animation-delay: -0.9s; }
.drip.d3 { animation-delay: -1.8s; }
@keyframes dripFall {
  0% { transform: translate(-50%, 0) scale(.7); opacity: 0; }
  10% { opacity: .95; }
  85% { opacity: .5; }
  100% { transform: translate(-50%, 34px) scale(.9); opacity: 0; }
}
.drip-pool { position: absolute; bottom: 0; left: 50%; width: 46px; height: 8px; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(ellipse, rgba(167,139,250,.35), transparent 70%); animation: poolPulse 2.6s ease-in-out infinite; }
@keyframes poolPulse { 0%,100% { opacity: .5 } 50% { opacity: .9 } }
.pp-n { font-family: 'Unbounded', sans-serif; font-size: 30px; font-weight: 800; background: linear-gradient(120deg,#FBBF24,#A78BFA); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.input {
  width: 100%; background: var(--panel-2); border: 1px solid var(--line); border-radius: 11px;
  padding: 10px 14px; color: var(--text); font-size: 15px;
}
.input::placeholder { color: var(--faint); }
.input:focus { outline: none; border-color: var(--violet); }
.lb-row { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; font-size: 14px; }
.lb-row.me { background: rgba(139,92,246,.13); box-shadow: inset 0 0 0 1px rgba(139,92,246,.3); }
.lb-row .rank { width: 20px; text-align: center; font-weight: 800; color: var(--faint); }
.lb-row .rank.r1 { color: var(--ticket); } .lb-row .rank.r2 { color: #C7D2FE; } .lb-row .rank.r3 { color: #D97706; }
.lb-row .lb-name { flex: 1; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-row .lb-t { color: var(--muted); font-size: 13px; white-space: nowrap; }
.lb-row .lb-pct { font-weight: 800; width: 52px; text-align: right; }

/* new prize */
.new-wrap { max-width: 460px; margin: 0 auto; }
.form-row { margin-bottom: 15px; }
.form-row label { display: block; font-size: 13.5px; font-weight: 700; color: var(--muted); margin-bottom: 7px; }
select.input { appearance: none; }
.cfg-row { display: flex; align-items: center; justify-content: space-between; font-size: 14px; color: var(--muted); margin-bottom: 10px; }
.btn-ghost-sm {
  font-size: 12.5px; font-weight: 700; color: var(--violet-hi);
  background: rgba(139,92,246,.12); border: 1px solid rgba(139,92,246,.35);
  border-radius: 8px; padding: 5px 10px;
}
.btn-ghost-sm:hover { background: rgba(139,92,246,.22); }
.btn-outline {
  font-size: 13.5px; font-weight: 700; color: var(--muted);
  background: transparent; border: 1px solid var(--line);
  border-radius: 10px; padding: 8px 12px;
}
.btn-outline:hover { color: var(--text); border-color: var(--violet); }

/* modal */
#modal-ov { display: none; position: fixed; inset: 0; z-index: 60; background: rgba(5,3,10,.7); backdrop-filter: blur(6px); align-items: center; justify-content: center; padding: 18px; }
#modal-ov.on { display: flex; }
#modal { background: var(--panel); border: 1px solid var(--line); border-radius: 20px; width: 100%; max-width: 500px; max-height: 90vh; overflow-y: auto; padding: 24px; animation: viewIn .22s ease-out; }
.modal-title { font-family: 'Unbounded'; font-size: 18px; font-weight: 800; margin-bottom: 6px; }
.modal-sub { font-size: 14px; color: var(--muted); margin-bottom: 16px; line-height: 1.5; }

/* welcome checklist */
.wc-id { display: flex; align-items: center; gap: 10px; background: var(--panel-2); border: 1px solid var(--line);
  border-radius: 14px; padding: 10px 12px; margin-bottom: 14px; }
.wc-id .profile-av { flex-shrink: 0; }
.wc-id .who { min-width: 0; flex: 1; }
.wc-id .who b { font-size: 14.5px; }
.wc-id .who div { font-size: 12px; color: var(--faint); line-height: 1.4; }
.wc-id code { font: 600 12px 'JetBrains Mono', monospace; color: var(--muted); word-break: break-all; }
.wc-steps { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 8px; }
.wc-step { display: flex; gap: 12px; align-items: flex-start; border: 1px solid var(--line); border-radius: 14px; padding: 12px; }
.wc-step.next { border-color: rgba(139,92,246,.6); background: rgba(139,92,246,.08); }
.wc-step.done { opacity: .45; }
.wc-tick { flex-shrink: 0; width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid var(--line);
  display: grid; place-items: center; font: 800 13px Manrope, sans-serif; color: var(--muted); }
.wc-step.next .wc-tick { border-color: var(--violet); color: var(--violet-hi); }
.wc-step.done .wc-tick { background: var(--good); border-color: var(--good); color: #0B0713; }
.wc-body { flex: 1; min-width: 0; }
.wc-body b { font-size: 14.5px; }
.wc-body p { margin: 3px 0 0; font-size: 13px; color: var(--muted); line-height: 1.45; }
.wc-step .btn-ghost-sm { flex-shrink: 0; align-self: center; text-decoration: none; white-space: nowrap; }
.wc-step.done .btn-ghost-sm { display: none; }
@media (max-width: 520px) {
  .wc-id { flex-wrap: wrap; }
  .wc-id [data-wc="copy"] { width: 100%; padding: 8px; }
}
.wc-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 12.5px; color: var(--faint); }
.stepper { display: flex; align-items: center; gap: 7px; }
.stepper button { width: 26px; height: 26px; border-radius: 8px; background: var(--panel-2); border: 1px solid var(--line); color: var(--text); font-weight: 800; }
.stepper input { width: 52px; text-align: center; background: var(--panel-2); border: 1px solid var(--line); border-radius: 8px; color: var(--text); padding: 4px; font-weight: 700; }

#confetti { position: fixed; inset: 0; pointer-events: none; z-index: 90; }

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

@media (max-width: 1060px) {
  .header-in { padding: 10px 14px; gap: 10px; }
  .logo-name { font-size: 20px; }
  .head-right { gap: 7px; min-width: 0; }
  .wallet-chip { padding: 4px 4px 4px 9px; gap: 7px; }
  .wallet-chip .bal-main { font-size: 13px; }
  .wallet-chip .bal-main b { font-size: 15px; }
  
  .wallet-chip .bal-sub { font-size: 10.5px; max-width: 21ch; }
  .btn-pill { font-size: 12.5px; padding: 6px 11px; }
  .profile-name { display: none; }                  /* avatar is identity enough */
  .profile-btn { padding: 4px 8px 4px 4px; }
}

@media (max-width: 760px) {
  

  
  
  .header-in { display: flex; }
  
  .head-right { margin-left: auto; }
  nav.tabs { display: none; }
  .nav-wrap { display: block; }
  main { padding-bottom: 32px; }

  
  .profile-menu {
    position: fixed; top: var(--menu-top); left: 10px; right: 10px; width: auto;
    max-height: calc(100vh - 130px);
  }
  
  .wallet-chip .btn-pill { display: none; }
}

@media (max-width: 420px) {
  
  .wallet-chip .bal-main { font-size: 12.5px; }
  .wallet-chip .bal-main b { font-size: 14px; }
  .wallet-chip .bal-sub { display: none; }
  .bal-token { display: none; }
  .header-in { gap: 8px; padding: 10px 11px; }
}

@media (max-width: 420px), (min-width: 761px) and (max-width: 1060px) {
  body.wallet-on .logo-name span, body.wallet-on .logo-name i {
    position: absolute; width: 1px; height: 1px; overflow: hidden;
    clip-path: inset(50%); white-space: nowrap;
  }
  body.wallet-on .drip-dot { width: 20px; height: 28px; margin: 0; vertical-align: middle; }
}

/* win share card */
.share-card {
  aspect-ratio: 1200 / 630; border-radius: 13px; overflow: hidden;
  background: var(--panel-2); border: 1px solid var(--line); margin-bottom: 12px;
  display: grid; place-items: center;
}
.share-card img { width: 100%; height: 100%; display: block; }
.share-card-wait { font-size: 13.5px; color: var(--faint); }
.share-acts { display: flex; flex-wrap: wrap; gap: 8px; }
.share-acts .btn-pill { text-decoration: none; }
.share-win { width: 100%; margin: 0 0 12px; padding: 10px 14px; font-size: 14px; }

/* footer */
.site-foot {
  max-width: 1240px; margin: 0 auto; padding: 28px 24px 40px;
  border-top: 1px solid var(--line-soft);
}
.site-foot p { max-width: 70ch; font-size: 13px; line-height: 1.6; color: var(--faint); }
.foot-links { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 20px; margin-bottom: 14px; }
.foot-links a { font-size: 14px; font-weight: 700; color: var(--muted); text-decoration: none; }
.foot-links a:hover, .foot-links a[aria-current] { color: var(--text); }
.foot-social { display: inline-flex; align-items: center; gap: 7px; }
.site-foot b { color: var(--muted); }

/* 18+ gate */
html.gated, html.gated body { overflow: hidden; }
.age-gate {
  position: fixed; inset: 0; z-index: 9500; /* over toasts (9001), under the splash (9999) */
  display: grid; place-items: center; padding: 16px;
  background: rgba(5,3,10,.94);
}
.age-gate[hidden] { display: none; }
.age-card {
  width: min(420px, 100%); padding: 28px 24px 24px; text-align: center;
  background: var(--panel); border: 1px solid var(--line); border-radius: 20px;
  box-shadow: 0 30px 80px rgba(0,0,0,.6);
}
.age-mark {
  display: inline-grid; place-items: center; width: 64px; height: 64px; margin-bottom: 14px;
  border-radius: 50%; background: var(--ticket); color: #0B0713;
  font: 800 20px Unbounded, sans-serif; transform: rotate(-6deg);
}
.age-card h2 { font-size: 22px; font-weight: 800; margin-bottom: 10px; }
.age-card p { font-size: 14.5px; line-height: 1.6; color: var(--dim); margin-bottom: 20px; }
.age-acts { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.age-acts .btn-pill { padding: 10px 18px; font-size: 14.5px; }

/* terms and privacy */
.legal-head { display: flex; justify-content: space-between; }
.legal-head .logo, .legal-head .btn-pill { text-decoration: none; color: inherit; }
.legal { max-width: 720px; margin: 0 auto; padding: 48px 24px 56px; }
.legal h1 { font-size: clamp(28px, 5vw, 40px); font-weight: 800; letter-spacing: -.01em; }
.legal-date { margin-top: 8px; font-size: 14px; color: var(--faint); }
.legal-callout {
  margin: 26px 0 8px; padding: 16px 18px; border-radius: 14px;
  background: rgba(251,191,36,.08); border: 1px solid rgba(251,191,36,.3);
  font-size: 14.5px; line-height: 1.65; color: var(--dim);
}
.legal-callout b { color: var(--ticket); }
.legal h2 { margin: 36px 0 10px; font: 600 17px/1.35 Unbounded, sans-serif; color: var(--text); }
.legal p, .legal li { font-size: 15px; line-height: 1.7; color: var(--dim); }
.legal p + p { margin-top: 10px; }
.legal ul { margin: 8px 0 0; padding-left: 20px; display: grid; gap: 7px; }
.legal b { color: var(--text); }
.legal a { color: var(--violet-hi); }

/* sign-in dialog */
#modal[data-kind="signin"] { max-width: 400px; position: relative; padding: 30px 24px 22px; text-align: center; }
.si-close {
  position: absolute; top: 14px; right: 14px; width: 32px; height: 32px; border-radius: 50%;
  color: var(--faint); font-size: 15px;
}
.si-close:hover { color: var(--text); background: var(--panel-2); }
.si-mark {
  display: inline-grid; place-items: center; width: 56px; height: 56px; margin-bottom: 14px;
  border-radius: 16px; background: rgba(251,191,36,.12); color: var(--ticket);
}
.si-title { font-size: 20px; font-weight: 800; margin-bottom: 6px; }
.si-sub { font-size: 14.5px; color: var(--dim); margin-bottom: 22px; }
.si-opt {
  display: flex; align-items: center; gap: 13px; width: 100%; margin-bottom: 9px;
  padding: 13px 14px; border-radius: 14px; text-align: left;
  background: var(--panel-2); border: 1px solid var(--line);
  transition: border-color .15s, background-color .15s;
}
.si-opt:hover, .si-opt:focus-visible { border-color: var(--violet); background: rgba(139,92,246,.08); }
.si-opt.primary { background: rgba(139,92,246,.16); border-color: rgba(139,92,246,.55); }
.si-opt.primary:hover, .si-opt.primary:focus-visible { background: rgba(139,92,246,.24); }
.si-ico {
  display: grid; place-items: center; flex: none; width: 38px; height: 38px; border-radius: 11px;
  background: rgba(255,255,255,.04); color: var(--muted);
}
.si-opt.primary .si-ico { background: var(--violet); color: #fff; }
.si-txt { display: grid; gap: 2px; min-width: 0; }
.si-txt b { font-size: 14.5px; font-weight: 800; color: var(--text); }
.si-txt span { font-size: 13.5px; color: var(--faint); }
.si-go { margin-left: auto; font-size: 22px; line-height: 1; color: var(--faint); }
.si-or { display: flex; align-items: center; gap: 12px; margin: 16px 0 12px; font-size: 13px; color: var(--faint); }
.si-or::before, .si-or::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.si-legal { margin-top: 16px; font-size: 12.5px; line-height: 1.55; color: var(--faint); }
.si-legal a { color: var(--muted); }
.si-opt:disabled { cursor: default; }
.si-opt:disabled:not(.busy) { opacity: .45; }
.si-opt.busy { border-color: var(--violet); }
.si-opt.busy .si-go { display: grid; place-items: center; }

/* explainer video, in the modal */
#modal[data-kind="video"] { max-width: min(1000px, calc((90vh - 0px) * 16 / 9)); padding: 0; background: #000; position: relative; overflow: hidden; }
/* on a phone held upright the vertical cut fills the screen */
#modal-ov:has(#modal.tall) { padding: 0; background: #000; }
#modal[data-kind="video"].tall { max-width: none; width: 100vw; height: 100dvh; max-height: none; border: 0; border-radius: 0; display: grid; place-items: center; }
#modal[data-kind="video"].tall video { height: 100%; width: 100%; object-fit: contain; }
#modal[data-kind="video"] video { display: block; width: 100%; height: auto; background: #000; }
.vid-close { z-index: 2; color: #fff; background: rgba(0,0,0,.45); }
.vid-close:hover { background: rgba(0,0,0,.7); }
@media (max-width: 480px) {
  .hv-play { padding: 14px; gap: 9px; }
  .hv-pill { font-size: 14px; gap: 8px; padding: 5px 13px 5px 5px; }
  .hv-ico { width: 28px; height: 28px; }
}

/* auction page: the explainer, for anyone who lands here first */
.lot-howto {
  display: flex; align-items: center; gap: 12px; width: 100%; margin-top: 12px; padding: 8px 14px 8px 8px;
  border-radius: 14px; border: 1px solid var(--line-soft); background: transparent; text-align: left;
  transition: border-color .15s, background .15s;
}
.lot-howto:hover { border-color: var(--violet); background: rgba(139,92,246,.06); }
.lh-thumb { position: relative; width: 76px; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; flex-shrink: 0; background: #000; }
.lh-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; opacity: .8; }
.lh-ico {
  position: absolute; inset: 0; margin: auto; width: 24px; height: 24px; border-radius: 50%; padding-left: 2px;
  display: grid; place-items: center; background: var(--violet); color: #fff; transition: transform .15s;
}
.lot-howto:hover .lh-ico { transform: scale(1.1); }
.lh-txt { display: grid; gap: 2px; min-width: 0; }
.lh-txt b { font-size: 14.5px; color: var(--text); }
.lh-txt span { font-size: 13px; color: var(--faint); }
