:root {
  --bg: #07080f;
  --card: rgba(255, 255, 255, 0.045);
  --line: rgba(255, 255, 255, 0.08);
  --text: #eef1f8;
  --mute: #8b93a7;
  --cyan: #6ee7ff;
  --violet: #a78bfa;
  --ok: #34d399;
  --danger: #fb7185;
  --r: 22px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --font: "Manrope", system-ui, sans-serif;
  --disp: "Sora", "Manrope", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { min-height: 100%; }
button {
  font-family: inherit;
  appearance: none;
  -webkit-appearance: none;
}
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}

.hidden { display: none !important; }
img { max-width: 100%; }

.fx { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.orb {
  position: absolute; border-radius: 50%;
  filter: blur(80px); opacity: .45;
  animation: drift 18s var(--ease) infinite alternate;
}
.orb-a { width: 420px; height: 420px; left: -80px; top: -60px; background: #3b2a7a; }
.orb-b { width: 360px; height: 360px; right: -40px; top: 20%; background: #164e63; animation-delay: -6s; }
.orb-c { width: 280px; height: 280px; left: 30%; bottom: -80px; background: #1e1b4b; animation-delay: -11s; }
@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(40px, 30px, 0) scale(1.12); }
}

body.is-booting { overflow: hidden; }

.boot {
  position: fixed; inset: 0; z-index: 80;
  display: grid; place-items: center;
  background: #05060c;
  color: var(--text);
  overflow: hidden;
  transition: opacity 1.15s ease, visibility 1.15s;
}
.boot.is-done { opacity: 0; visibility: hidden; pointer-events: none; }
.boot-wash {
  position: absolute; inset: -12%;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(91, 33, 182, .28), transparent 52%),
    radial-gradient(ellipse at 78% 70%, rgba(14, 116, 144, .22), transparent 48%),
    radial-gradient(ellipse at 50% 110%, rgba(15, 23, 42, .9), transparent 42%);
  animation: boot-pan 22s ease-in-out infinite alternate;
  transform: scale(1.08);
}
.boot-grain {
  position: absolute; inset: 0;
  opacity: .16;
  mix-blend-mode: overlay;
  pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .7 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: boot-grain .28s steps(3) infinite;
}
.boot-vignette {
  position: absolute; inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 38%, rgba(0,0,0,.72) 100%);
  box-shadow: inset 0 0 120px rgba(0,0,0,.55);
}
.boot-dust {
  position: absolute; inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.boot-dust span {
  position: absolute; border-radius: 50%;
  background: rgba(196,181,253,.35);
  filter: blur(1px);
  animation: boot-mote 14s linear infinite;
}
.boot-dust span:nth-child(1) { width: 3px; height: 3px; left: 18%; top: 70%; animation-duration: 16s; }
.boot-dust span:nth-child(2) { width: 2px; height: 2px; left: 72%; top: 64%; animation-duration: 13s; animation-delay: -4s; }
.boot-dust span:nth-child(3) { width: 4px; height: 4px; left: 44%; top: 80%; animation-duration: 18s; animation-delay: -8s; background: rgba(103,232,249,.28); }
.boot-dust span:nth-child(4) { width: 2px; height: 2px; left: 88%; top: 42%; animation-duration: 12s; animation-delay: -2s; }
.boot-dust span:nth-child(5) { width: 3px; height: 3px; left: 8%; top: 38%; animation-duration: 15s; animation-delay: -6s; background: rgba(103,232,249,.22); }

.boot-stage {
  position: relative; z-index: 1;
  width: min(560px, 88vw);
  text-align: center;
  padding-bottom: 72px;
  animation: boot-rise 2.4s var(--ease) both;
}
.boot-kicker {
  font-family: var(--font);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #8b93a7;
  margin-bottom: 22px;
  animation: boot-fade 1.8s ease both;
}
.boot-mark {
  width: 86px; height: 86px; border-radius: 26px;
  display: grid; place-items: center;
  margin: 0 auto 22px;
  background: linear-gradient(160deg, #c4b5fd, #67e8f9);
  color: #0b1020;
  font-family: var(--disp);
  font-weight: 700;
  font-size: 1.15rem;
  box-shadow: 0 18px 50px rgba(103,232,249,.18);
  animation: boot-mark 2.2s var(--ease) both;
}
.boot-title {
  font-family: var(--disp);
  font-size: clamp(1.85rem, 4.2vw, 2.65rem);
  font-weight: 700;
  letter-spacing: -.045em;
  line-height: 1.08;
  animation: boot-fade 2.6s ease .35s both;
}
.boot-sub {
  margin-top: 10px;
  font-family: var(--font);
  color: #8b93a7;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-size: .72rem;
  font-weight: 600;
  animation: boot-fade 2.6s ease .55s both;
}
.boot-rule {
  width: 84px; height: 1px;
  margin: 28px auto 22px;
  background: linear-gradient(90deg, transparent, #c4b5fd, #67e8f9, transparent);
  animation: boot-fade 2s ease .8s both;
}
.boot-tip {
  min-height: 4.6em;
  animation: boot-fade 2s ease 1.1s both;
}
.boot-tip-k {
  display: block;
  font-family: var(--font);
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #67e8f9;
  margin-bottom: 8px;
}
.boot-tip p {
  font-family: var(--font);
  font-size: .98rem;
  font-weight: 500;
  line-height: 1.55;
  color: #d7dbe8;
  max-width: 42ch;
  margin: 0 auto;
  transition: opacity .7s ease, transform .7s ease;
}
.boot-tip p.is-swap { opacity: 0; transform: translateY(8px); }
.boot-load {
  margin-top: 36px;
  animation: boot-fade 2s ease 1.4s both;
}
.boot-bar {
  height: 3px;
  border-radius: 99px;
  background: rgba(255,255,255,.08);
  overflow: hidden;
  box-shadow: 0 0 18px rgba(103,232,249,.08);
}
.boot-bar span {
  display: block;
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, #8b5cf6, #67e8f9);
  box-shadow: 0 0 16px rgba(103,232,249,.45);
}
.boot-meta {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  font-family: var(--font);
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #8b93a7;
}
.boot-sign {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 28px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  animation: boot-sign 2.4s var(--ease) 1.6s both;
}
.boot-sign-z {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  font-family: var(--disp);
  font-weight: 700;
  font-size: .85rem;
  color: #071018;
  background: linear-gradient(160deg, #c4b5fd, #67e8f9);
  box-shadow: 0 8px 22px rgba(103,232,249,.2);
}
.boot-sign-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.15;
}
.boot-sign-label {
  font-family: var(--font);
  font-size: .58rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: #8b93a7;
}
.boot-sign strong {
  font-family: var(--disp);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -.03em;
  background: linear-gradient(90deg, #e9e4ff, #67e8f9);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

@keyframes boot-pan {
  from { transform: scale(1.08) translate3d(-18px, 10px, 0); }
  to { transform: scale(1.16) translate3d(22px, -14px, 0); }
}
@keyframes boot-grain {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-2%, 1%); }
  50% { transform: translate(1%, -2%); }
  75% { transform: translate(-1%, 2%); }
  100% { transform: translate(0, 0); }
}
@keyframes boot-mote {
  from { transform: translate3d(0, 40px, 0); opacity: 0; }
  15% { opacity: .7; }
  to { transform: translate3d(12px, -70vh, 0); opacity: 0; }
}
@keyframes boot-rise {
  from { opacity: 0; transform: translateY(18px) scale(.98); }
  to { opacity: 1; transform: none; }
}
@keyframes boot-mark {
  from { opacity: 0; transform: scale(.72); filter: blur(6px); }
  to { opacity: 1; transform: none; filter: none; }
}
@keyframes boot-fade {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}
@keyframes boot-sign {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}
@keyframes pop {
  from { transform: scale(.7); opacity: 0; }
  to { transform: none; opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .boot-wash, .boot-grain, .boot-dust span { animation: none; }
}

.nav, .wrap, .foot { position: relative; z-index: 1; }
.nav {
  display: flex; align-items: center; gap: 16px;
  padding: 16px 28px;
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}
.nav-brand { display: flex; gap: 12px; align-items: center; flex: 1; }
.logo {
  width: 40px; height: 40px; border-radius: 14px;
  display: grid; place-items: center;
  background: linear-gradient(160deg, #c4b5fd, #67e8f9);
  color: #0b1020; font-family: var(--disp); font-weight: 700; font-size: .78rem;
}
.nav-brand strong { display: block; font-family: var(--disp); font-size: .95rem; }
.nav-brand small { color: var(--mute); font-size: .75rem; }
.nav-mid, .nav-end { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

.chip {
  padding: 6px 12px; border-radius: 999px;
  background: rgba(255,255,255,.06);
  border: 1px solid var(--line);
  font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--mute);
}
.chip.on { color: var(--ok); border-color: rgba(52,211,153,.35); background: rgba(52,211,153,.1); }
.chip.paused { color: #fbbf24; }
.chip.ghost { opacity: .7; }
.chip.on::before {
  content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  background: var(--ok); margin-right: 6px; animation: pulse 1.6s ease infinite;
}
@keyframes pulse { 50% { opacity: .35; transform: scale(.8); } }

.login, .who { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.who span { font-size: .85rem; color: #c4b5fd; font-weight: 600; }

input {
  background: rgba(255,255,255,.05);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  color: var(--text);
  font: inherit;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
input:focus { border-color: rgba(167,139,250,.6); box-shadow: 0 0 0 4px rgba(167,139,250,.12); }
input::placeholder { color: #667085; }

.btn {
  border: 1px solid var(--line);
  background: rgba(255,255,255,.06);
  color: var(--text);
  border-radius: 12px;
  padding: 10px 14px;
  font: inherit; font-weight: 700;
  cursor: pointer;
  transition: transform .15s var(--ease), background .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-1px); background: rgba(255,255,255,.1); }
.btn:active { transform: translateY(0); }
.btn-p {
  background: linear-gradient(135deg, #8b5cf6, #22d3ee);
  border: none; color: #071018;
  box-shadow: 0 10px 30px rgba(34,211,238,.18);
}
.btn-ok { background: rgba(52,211,153,.16); color: var(--ok); border-color: rgba(52,211,153,.3); }
.btn-g { background: transparent; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 14px 20px 72px; }

.hero {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 16px;
  align-items: center;
  animation: up .7s var(--ease);
}
@keyframes up {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

.wheel { position: relative; width: 224px; height: 224px; margin: 4px auto; }
.wheel-glow {
  position: absolute; inset: -14px; border-radius: 50%;
  background: conic-gradient(from 180deg, transparent, rgba(110,231,255,.25), transparent 40%, rgba(167,139,250,.28), transparent 75%);
  animation: spin 12s linear infinite;
  filter: blur(8px);
}
.wheel-pointer {
  position: absolute; top: -4px; left: 50%; z-index: 4;
  width: 0; height: 0; transform: translateX(-50%);
  border-left: 7px solid transparent; border-right: 7px solid transparent;
  border-top: 13px solid #fff;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,.4));
}
.wheel-disc {
  width: 100%; height: 100%; border-radius: 50%;
  border: 8px solid rgba(255,255,255,.08);
  background: conic-gradient(#312e81, #164e63, #5b21b6, #0e7490, #312e81);
  box-shadow: inset 0 0 40px rgba(0,0,0,.35), 0 20px 60px rgba(0,0,0,.35);
}
.wheel-disc.is-spinning { transition: transform 5.2s cubic-bezier(.12, .7, .02, 1); }
.wheel-core {
  position: absolute; inset: 66px; z-index: 3;
  border-radius: 50%; overflow: hidden;
  background: #0b1020;
  border: 3px solid rgba(255,255,255,.7);
  display: grid; place-items: center;
}
.wheel-core img { width: 100%; height: 100%; object-fit: cover; }
.wheel-core span {
  font-family: var(--disp); font-size: .64rem; letter-spacing: .16em; color: var(--cyan);
}
@keyframes spin { to { transform: rotate(360deg); } }

.player {
  min-height: 210px;
  border-radius: 22px;
  background: var(--card);
  border: 1px solid var(--line);
  backdrop-filter: blur(16px);
  padding: 16px 18px;
  display: flex; align-items: center;
  box-shadow: 0 20px 50px rgba(0,0,0,.25);
  animation: up .8s var(--ease);
}
.player.empty { justify-content: center; color: var(--mute); }
.player-empty span {
  padding: 10px 16px; border-radius: 999px;
  border: 1px dashed var(--line);
}
.player-row { display: flex; gap: 14px; align-items: center; width: 100%; }
.player-row img {
  width: 84px; height: 84px; border-radius: 22px; object-fit: cover;
  box-shadow: 0 12px 30px rgba(0,0,0,.35);
  flex-shrink: 0;
}
.player h3 {
  font-family: var(--disp); font-size: 1.5rem; letter-spacing: -.04em; margin-bottom: 6px;
}
.meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; color: var(--mute); font-size: .8rem; }
.tag {
  padding: 4px 10px; border-radius: 999px;
  background: rgba(167,139,250,.14); color: #ddd6fe;
  font-size: .7rem; font-weight: 800; letter-spacing: .08em;
}
.tag.arc { background: rgba(110,231,255,.12); color: #a5f3fc; }
.tag.inf { background: rgba(52,211,153,.12); color: #a7f3d0; }
.price { display: flex; gap: 12px; align-items: baseline; flex-wrap: wrap; }
.price b {
  font-family: var(--disp); font-size: 1.28rem;
  background: linear-gradient(90deg, #fff, #67e8f9);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.note { margin-top: 8px; color: var(--mute); font-size: .72rem; max-width: 46ch; }
.open { color: var(--ok); font-weight: 700; }
.closed { color: var(--mute); }

.bids, .run {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
  margin: 10px 0 6px;
  animation: up .6s var(--ease);
}
.run .btn { border-radius: 999px; }

.bid-dock {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  width: 100%;
  padding: 8px 8px 8px 10px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.03));
  border: 1px solid var(--line);
  backdrop-filter: blur(18px);
  box-shadow: 0 12px 40px rgba(0,0,0,.28), inset 0 1px 0 rgba(255,255,255,.07);
}
.bid-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.bid-chip {
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(255,255,255,.05);
  color: #ddd6fe;
  border-radius: 999px;
  padding: 9px 15px;
  font: inherit;
  font-weight: 800;
  font-size: .78rem;
  letter-spacing: .04em;
  cursor: pointer;
  transition: transform .15s var(--ease), background .2s, border-color .2s, box-shadow .2s, color .2s;
}
.bid-chip:hover {
  transform: translateY(-1px);
  color: #fff;
  background: rgba(167,139,250,.18);
  border-color: rgba(167,139,250,.45);
  box-shadow: 0 8px 22px rgba(110,231,255,.12);
}
.bid-chip:active { transform: translateY(0) scale(.97); }
.bid-form {
  display: flex;
  gap: 8px;
  flex: 1;
  min-width: 220px;
}
.bid-form input {
  flex: 1;
  border-radius: 999px;
  background: rgba(7,8,15,.55);
  padding: 10px 16px;
}
.bid-go {
  border-radius: 999px !important;
  padding: 10px 22px;
  min-width: 108px;
}

.bid-fx {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 30;
}
.bid-burst {
  position: fixed;
  left: 50%;
  top: 18%;
  z-index: 31;
  transform: translateX(-50%);
  padding: 12px 22px;
  border-radius: 999px;
  font-family: var(--disp);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -.02em;
  color: #071018;
  background: linear-gradient(135deg, #c4b5fd, #67e8f9);
  box-shadow: 0 18px 50px rgba(103,232,249,.28);
  pointer-events: none;
}
.bid-burst.pop { animation: bidpop .9s var(--ease); }
@keyframes bidpop {
  0% { opacity: 0; transform: translateX(-50%) translateY(12px) scale(.86); }
  18% { opacity: 1; transform: translateX(-50%) translateY(0) scale(1.04); }
  70% { opacity: 1; }
  100% { opacity: 0; transform: translateX(-50%) translateY(-18px) scale(.96); }
}

.caps-wrap { margin-top: 16px; }
.sec-h {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  margin-bottom: 12px;
}
.sec-h h2 { font-family: var(--disp); font-size: 1.05rem; }
.stats-mini { display: flex; gap: 14px; color: var(--mute); font-size: .8rem; }
.stats-mini b { color: var(--text); }

.caps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.cap {
  border-radius: 20px;
  background: var(--card);
  border: 1px solid var(--line);
  padding: 12px;
  transition: transform .2s var(--ease), border-color .2s;
}
.cap:hover { transform: translateY(-3px); border-color: rgba(167,139,250,.4); }
.cap.short { border-color: rgba(251,191,36,.4); }
.cap.is-bid {
  border-color: rgba(110,231,255,.65);
  box-shadow: 0 0 28px rgba(110,231,255,.28);
  transform: translateY(-4px) scale(1.02);
}
.cap img {
  width: 42px; height: 42px; border-radius: 14px; object-fit: cover;
  background: rgba(255,255,255,.06);
  box-shadow: 0 0 0 1px rgba(255,255,255,.08);
}
.cap .top { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; }
.cap h4 { font-size: .82rem; }
.cap small { display: block; color: var(--mute); font-size: .68rem; }
.bar { height: 4px; border-radius: 99px; background: rgba(255,255,255,.08); overflow: hidden; margin: 8px 0; }
.bar span { display: block; height: 100%; background: linear-gradient(90deg, #8b5cf6, #22d3ee); }
.cap ul { list-style: none; font-size: .7rem; color: var(--mute); max-height: 92px; overflow: auto; }
.cap li { display: flex; justify-content: space-between; gap: 4px; padding: 2px 0; }

.bottom {
  display: grid; grid-template-columns: 1fr 1.1fr; gap: 12px; margin-top: 12px;
}
.glass {
  border-radius: 20px;
  background: var(--card);
  border: 1px solid var(--line);
  padding: 12px 14px;
  backdrop-filter: blur(16px);
}
.feed-log {
  height: 168px; overflow: auto; font-size: .82rem;
  display: flex; flex-direction: column; gap: 6px;
}
.feed-log div { padding: 6px 8px; border-radius: 10px; background: rgba(255,255,255,.03); }
.feed-log .system { color: #ddd6fe; }
.feed-log .bid { color: var(--cyan); font-weight: 700; }
.feed-log .author { margin-right: 6px; color: #fff; font-weight: 700; }
.feed-in { display: flex; gap: 8px; margin-top: 10px; }
.feed-in input { flex: 1; }
.err { color: var(--danger); min-height: 1em; font-size: .78rem; margin-top: 4px; }

.pool {
  display: flex; flex-wrap: wrap; gap: 8px; max-height: 168px; overflow: auto;
}
.pool-item {
  display: flex; gap: 8px; align-items: center;
  padding: 6px 10px 6px 6px;
  border-radius: 999px;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--line);
  font-size: .75rem;
  transition: transform .15s var(--ease);
}
.pool-item:hover { transform: translateY(-2px); }
.pool-item img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }
.pool-item small { color: var(--mute); display: block; }

.rules-fab {
  position: fixed; right: 22px; bottom: 22px; z-index: 5;
  border: none; border-radius: 999px;
  padding: 12px 18px;
  background: rgba(255,255,255,.08);
  color: var(--text); font: inherit; font-weight: 700;
  backdrop-filter: blur(12px);
  cursor: pointer;
  border: 1px solid var(--line);
}

.modal, .scrim {
  position: fixed; inset: 0; z-index: 40;
  background: rgba(5,6,12,.55);
  backdrop-filter: blur(8px);
  display: grid; place-items: center;
  animation: fade .25s ease;
}
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.modal-card {
  width: min(720px, 92vw);
  background: #12141f;
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 28px;
  position: relative;
  animation: up .35s var(--ease);
}
.modal-x {
  position: absolute; top: 16px; right: 16px;
  background: transparent; border: none; color: var(--mute); cursor: pointer; font: inherit;
}
.rules { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 14px; }
.rules h3 { color: #c4b5fd; font-size: .8rem; margin-bottom: 6px; letter-spacing: .08em; text-transform: uppercase; }
.rules p { color: var(--mute); font-size: .9rem; }
.rules b { color: var(--text); }

.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 50;
  width: min(460px, 100vw);
  background: #0d1018;
  border-left: 1px solid var(--line);
  padding: 18px;
  overflow: auto;
  animation: slide .35s var(--ease);
}
@keyframes slide { from { transform: translateX(24px); opacity: 0; } to { transform: none; opacity: 1; } }
.drawer-h { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.hint { color: var(--mute); font-size: .8rem; margin-bottom: 12px; }
.drawer-grid { display: grid; gap: 10px; }
.tile {
  background: var(--card); border: 1px solid var(--line); border-radius: 18px;
  padding: 12px; display: grid; gap: 8px;
}
.login-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.login-head .hint { margin: 0; }
.login-head .btn { padding: 6px 12px; font-size: .75rem; flex-shrink: 0; }
.login-list { display: grid; gap: 8px; }
.login-row {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  gap: 8px;
  align-items: center;
  padding: 8px;
  border-radius: 12px;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--line);
}
.login-row img { width: 36px; height: 36px; border-radius: 10px; object-fit: cover; }
.login-row div { display: grid; gap: 2px; min-width: 0; }
.login-row strong { font-size: .85rem; }
.login-row span { color: var(--mute); font-size: .75rem; }
.login-row code {
  color: var(--cyan);
  font-family: ui-monospace, Consolas, monospace;
  font-size: .78rem;
}
.login-row code.is-hidden {
  color: var(--mute);
  letter-spacing: .12em;
  user-select: none;
}
.login-copy { padding: 6px 10px; font-size: .72rem; }

.picker { position: relative; }
.pick-btn {
  width: 100%; text-align: left;
  display: flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.05);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  color: var(--text); font: inherit; cursor: pointer;
}
.pick-btn img { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; }
.pick-menu {
  position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 6;
  background: #151826;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,.4);
}
.pick-menu input { width: 100%; border: none; border-bottom: 1px solid var(--line); border-radius: 0; }
.pick-list { max-height: 220px; overflow: auto; }
.pick-opt {
  display: flex; gap: 8px; align-items: center;
  padding: 8px 10px; cursor: pointer; font-size: .85rem;
}
.pick-opt:hover { background: rgba(167,139,250,.12); }
.pick-opt img { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; }

.toast {
  position: fixed; top: 18px; left: 50%; transform: translateX(-50%);
  z-index: 90; padding: 10px 16px; border-radius: 999px;
  background: #1e1b4b; color: #fff; font-weight: 700; font-size: .85rem;
  box-shadow: 0 10px 30px rgba(0,0,0,.3);
}
.foot { text-align: center; color: var(--mute); font-size: .75rem; padding: 8px 0 24px; }

@media (max-width: 1100px) {
  .caps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 980px) {
  .hero, .bottom, .caps, .rules { grid-template-columns: 1fr; }
  .nav { flex-wrap: wrap; }
  .wheel { width: 180px; height: 180px; }
  .wheel-core { inset: 52px; }
  .bid-dock { border-radius: 24px; }
  .boot-sign { bottom: 18px; }
}
