@font-face { font-family: "Alexandria"; src: url(fonts/alexandria.woff2) format("woff2-variations"), url(fonts/alexandria.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url(fonts/jetbrains-mono.woff2) format("woff2-variations"), url(fonts/jetbrains-mono.woff2) format("woff2"); font-weight: 100 800; font-display: swap; }

/* WFit / Companions Quest tokens */
:root {
  --deep-space: #180435;
  --void: #08091A;
  --surface: #101226;
  --elevated: #171A32;
  --border: #292D48;
  --border-2: #3A3F63;
  --cyan: #00E5FF;
  --purple: #8A29E2;
  --pink: #FF007A;
  --volt: #D9FF3F;
  --mint: #13F2C2;
  --text: #F7F8FF;
  --text-2: #A6A8C2;
  --text-3: #656980;
  --sans: "Alexandria", -apple-system, system-ui, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --r-card: 18px;
  --r-btn: 12px;
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1240px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background:
    radial-gradient(80% 50% at 50% -10%, rgba(138, 41, 226, .28), transparent 70%),
    radial-gradient(60% 40% at 100% 25%, rgba(0, 229, 255, .10), transparent 70%),
    radial-gradient(50% 40% at 0% 70%, rgba(255, 0, 122, .07), transparent 70%),
    var(--deep-space);
  background-attachment: fixed;
  color: var(--text);
  font: 400 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }
.hidden { display: none !important; }
.muted { color: var(--text-2); }
.tiny { font-size: 13px; line-height: 1.55; color: var(--text-2); }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 8px; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--cyan); color: var(--void); padding: 8px 14px; border-radius: 10px; z-index: 100; font-weight: 700; }
.skip:focus { left: 8px; }

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 20px; border-radius: var(--r-btn); border: 1px solid transparent;
  font-weight: 700; font-size: 15px; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .2s, border-color .2s, color .2s, transform .12s, box-shadow .25s;
}
.btn:active { transform: scale(.97); }
.btn-lg { height: 54px; padding: 0 28px; font-size: 16px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--cyan); color: var(--void); }
.btn-primary:hover { box-shadow: 0 0 0 4px rgba(0,229,255,.16), 0 10px 34px -8px rgba(0,229,255,.75); }
.btn-primary:disabled { background: var(--elevated); color: var(--text-3); box-shadow: none; cursor: not-allowed; }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--border); font-weight: 600; }
.btn-ghost:hover { border-color: var(--cyan); }
.btn-ghost:disabled { color: var(--text-3); cursor: not-allowed; }
.btn-ghost:disabled:hover { border-color: var(--border); }
.btn-danger { background: transparent; color: var(--pink); border-color: rgba(255,0,122,.45); }
.btn-danger:hover { border-color: var(--pink); }
.link { color: var(--cyan); text-decoration: none; font-weight: 700; }
.link:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------------------------------------------------------------- nav */
.nav {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px var(--gutter);
  background: rgba(24, 4, 53, .72);
  backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid transparent; transition: border-color .3s;
}
.nav.scrolled { border-bottom-color: var(--border); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { filter: drop-shadow(0 0 8px rgba(0,229,255,.55)); }
.brand span { display: grid; line-height: 1; }
.brand b { font-weight: 900; font-size: 18px; letter-spacing: -.01em; text-transform: uppercase; }
.brand em { font-style: normal; font-weight: 800; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--volt); margin-top: 4px; }
.nav-right { display: flex; align-items: center; gap: 10px; }
.chain-pill { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; border-radius: var(--r-btn); border: 1px solid var(--border); background: var(--surface); color: var(--text-2); font-size: 13px; font-weight: 600; }
.chain-pill i { width: 7px; height: 7px; border-radius: 50%; background: var(--text-3); }
.chain-pill.ok i { background: var(--volt); box-shadow: 0 0 10px var(--volt); }
.chain-pill.bad i { background: var(--pink); }

/* ---------------------------------------------------------------- banners */
.banners { position: sticky; top: 68px; z-index: 35; display: grid; gap: 8px; padding: 0 var(--gutter); }
.banner {
  max-width: var(--max); margin: 8px auto 0; width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 12px 12px 12px 18px; border-radius: var(--r-card);
  background: var(--elevated); border: 1px solid var(--border-2);
  animation: drop .35s cubic-bezier(.2,.8,.2,1);
}
.banner.warn { border-color: rgba(255,0,122,.55); }
.banner.gift { border-color: rgba(217,255,63,.55); }
.banner p { margin: 0; font-size: 15px; font-weight: 500; }
@keyframes drop { from { opacity: 0; transform: translateY(-8px); } }

/* ---------------------------------------------------------------- hero */
main { padding: 0 var(--gutter); }
.hero {
  max-width: var(--max); margin: 0 auto;
  display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: clamp(24px, 4vw, 64px);
  min-height: min(760px, calc(100svh - 70px)); padding: clamp(32px, 6vw, 72px) 0 clamp(40px, 6vw, 80px);
}
.eyebrow { display: block; margin: 0 0 10px; font-size: 13px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--cyan); }
.eyebrow.volt { color: var(--volt); }
.eyebrow.pink { color: var(--pink); }
.hero h1 {
  font-weight: 900; text-transform: uppercase;
  font-size: clamp(46px, 6.4vw, 88px); line-height: .98; letter-spacing: -.028em;
  margin: 0 0 26px;
}
.hero h1 span { display: block; }
.hero h1 .pink { color: var(--pink); text-shadow: 0 0 40px rgba(255,0,122,.35); }
.lede { font-size: clamp(17px, 1.45vw, 19px); color: var(--text-2); max-width: 44ch; margin: 0 0 22px; }
.now { display: flex; width: fit-content; max-width: 100%; align-items: center; gap: 10px; margin: 0 0 32px; padding: 8px 14px 8px 12px; border-radius: var(--r-btn); background: var(--surface); border: 1px solid var(--border); font-weight: 600; font-size: 14px; }
.now .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--text-3); flex: none; }
.now.is-live .dot { background: var(--pink); animation: ping 1.8s infinite; }
.now.is-open .dot { background: var(--cyan); box-shadow: 0 0 10px var(--cyan); }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(255,0,122,.6); } 80%, 100% { box-shadow: 0 0 0 10px rgba(255,0,122,0); } }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.maze-wrap { position: relative; width: 100%; max-width: 560px; aspect-ratio: 1; justify-self: center; }
.maze-wrap::before {
  content: ""; position: absolute; inset: 12%; border-radius: 50%;
  background: radial-gradient(circle, rgba(0,229,255,.22), rgba(138,41,226,.16) 45%, transparent 70%);
  filter: blur(18px);
}
.maze { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.maze .wall { fill: none; stroke: #5B2A9E; stroke-width: 2.4; stroke-linecap: round; }
.maze .wall.inner { stroke: #8A29E2; }
.maze .trail { fill: none; stroke: rgba(0,229,255,.12); stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; }
.maze .comet { fill: none; stroke: var(--cyan); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 6px var(--cyan)) drop-shadow(0 0 14px rgba(0,229,255,.8)); }
.maze-logo {
  position: absolute; left: 50%; top: 50%; width: 31%; translate: -50% -50%;
  opacity: .16; scale: .92;
  transition: opacity 1s ease, scale 1s cubic-bezier(.2,.9,.2,1.2), filter 1s;
}
.maze-logo.lit { opacity: 1; scale: 1; filter: drop-shadow(0 0 16px rgba(0,229,255,.7)); animation: breathe 5s ease-in-out 1s infinite; }
@keyframes breathe { 50% { filter: drop-shadow(0 0 28px rgba(0,229,255,.95)) drop-shadow(0 0 60px rgba(138,41,226,.45)); } }

/* ---------------------------------------------------------------- sections */
section { scroll-margin-top: 84px; }
.section-head { max-width: var(--max); margin: 0 auto 24px; display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
h2 { font-weight: 800; font-size: clamp(28px, 3.2vw, 40px); line-height: 1.08; letter-spacing: -.02em; margin: 0; }
h3 { font-weight: 700; font-size: 18px; margin: 0; }
.section-head p { margin: 8px 0 0; max-width: 54ch; }

/* ---------------------------------------------------------------- live */
section.live { max-width: var(--max); margin: 0 auto; padding-bottom: clamp(56px, 8vw, 104px); }
.live-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; }
.stream { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r-card); overflow: hidden; background: var(--surface); border: 1px solid var(--border); }
.stream iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.stream-empty { position: absolute; inset: 0; display: grid; place-items: end start; }
.stream-empty { background: radial-gradient(circle at 50% 42%, rgba(138,41,226,.28), transparent 60%); }
.stream-empty .stream-logo { position: absolute; left: 50%; top: 42%; width: min(26%, 220px); translate: -50% -50%; opacity: .35; filter: drop-shadow(0 0 18px rgba(0,229,255,.45)); }
.stream-empty div { position: relative; padding: clamp(18px, 3vw, 32px); display: grid; gap: 4px; background: linear-gradient(transparent, rgba(8,9,26,.92)); width: 100%; }
.stream-empty strong { font-weight: 800; font-size: clamp(18px, 2vw, 24px); }
.stream-empty span { color: var(--text-2); }
.live-badge { position: absolute; top: 14px; left: 14px; z-index: 2; display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 8px; background: var(--pink); color: #fff; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; pointer-events: none; }
.live-badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #fff; animation: blink 1.2s ease-in-out infinite; }

.feed { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-card); padding: 20px; display: flex; flex-direction: column; min-height: 0; max-height: 100%; }
.feed h3 { font-size: 16px; margin-bottom: 10px; }
.feed ol { list-style: none; margin: 0; padding: 0; overflow: auto; flex: 1; display: grid; align-content: start; }
.feed li { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 11px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.feed li:last-child { border-bottom: 0; }
.feed li.fresh { animation: fresh 1.6s ease; }
@keyframes fresh { 0% { background: rgba(0,229,255,.14); } 100% { background: transparent; } }
.feed .who { font-weight: 700; }
.feed .amt { font-family: var(--mono); font-weight: 700; color: var(--volt); text-align: right; font-size: 13.5px; }
.feed .what, .feed .when { color: var(--text-2); font-size: 13px; }
.feed .when { text-align: right; text-decoration: none; }
.feed .when:hover { color: var(--cyan); }
.feed-empty { display: block !important; color: var(--text-2); border: 0 !important; }

/* ---------------------------------------------------------------- cards */
.auctions { max-width: var(--max); margin: 0 auto; padding-bottom: clamp(64px, 9vw, 120px); }
.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.card {
  position: relative; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-card);
  padding: 10px 10px 16px; transition: border-color .4s, box-shadow .4s;
}
.card.is-live, .card.is-drawing { border-color: rgba(0,229,255,.45); }
.card.is-ending { border-color: rgba(255,0,122,.6); }
.card.is-sold { border-color: transparent; background: linear-gradient(var(--surface), var(--surface)) padding-box, linear-gradient(135deg, var(--pink), var(--purple)) border-box; }
.card.mine { border-color: var(--volt); box-shadow: 0 0 0 1px var(--volt), 0 0 36px -10px rgba(217,255,63,.6); }

.art { position: relative; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--void); }
.art img { width: 100%; height: 100%; object-fit: cover; }
/* the live stream, cropped to fill the square art box */
.art-live { position: absolute; inset: 0; overflow: hidden; background: var(--void); }
.art-live iframe { position: absolute; top: 0; left: 50%; height: 100%; width: 177.78%; translate: -50% 0; border: 0; }
.art-onair { position: absolute; top: 10px; right: 10px; z-index: 2; display: inline-flex; align-items: center; gap: 6px; padding: 4px 8px; border-radius: 7px; background: var(--pink); color: #fff; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; pointer-events: none; }
.art-onair::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #fff; animation: blink 1.2s ease-in-out infinite; }
.card.is-drawing .art .locked img { animation: breathe 3s ease-in-out infinite; opacity: .5; }
.art .locked { position: absolute; inset: 0; display: grid; place-items: center; background: radial-gradient(circle at 50% 45%, rgba(138,41,226,.22), transparent 65%); }
.art .locked img { width: 48%; height: auto; opacity: .28; }
.art .locked span { position: absolute; bottom: 16px; left: 16px; right: 16px; color: var(--text-2); font-size: 13px; font-weight: 600; text-align: center; }
.art-no { position: absolute; top: 10px; left: 10px; font-family: var(--mono); font-weight: 700; font-size: 12.5px; padding: 4px 8px; border-radius: 7px; background: rgba(8,9,26,.78); color: var(--cyan); backdrop-filter: blur(6px); }

.card-body { padding: 14px 8px 0; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 6px 8px; flex-wrap: wrap; }
.card-top h3 { font-size: 18px; font-weight: 800; line-height: 1.2; overflow-wrap: anywhere; padding-top: 2px; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 9px; border-radius: 7px; font-size: 11.5px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; white-space: nowrap; background: var(--elevated); color: var(--text-2); }
.chip.live { background: rgba(0,229,255,.12); color: var(--cyan); }
.chip.live::before, .chip.ending::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: blink 1.4s ease-in-out infinite; }
.chip.ending { background: rgba(255,0,122,.14); color: var(--pink); }
.chip.ending::before { animation-duration: .8s; }
.chip.sold { background: linear-gradient(135deg, var(--pink), var(--purple)); color: #fff; }
.chip.mine { background: var(--volt); color: var(--void); }
@keyframes blink { 50% { opacity: .25; } }

.stats { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; align-items: end; }
.stat .k, .sheet .k { display: block; font-size: 12px; color: var(--text-2); font-weight: 600; margin-bottom: 4px; }
.stat .v { display: block; font-family: var(--mono); font-weight: 700; font-size: 24px; letter-spacing: -.02em; line-height: 1.05; color: var(--volt); }
.stat .v small { font-size: 12.5px; font-weight: 700; color: var(--text-2); letter-spacing: 0; margin-left: 4px; }
.stat .v.word { font-family: var(--sans); font-weight: 800; color: var(--text); letter-spacing: -.01em; }
.stat.right { text-align: right; }
.stat.right .v { font-size: 16px; color: var(--text); }
.stat .usd { display: block; color: var(--text-2); font-size: 12.5px; margin-top: 4px; font-variant-numeric: tabular-nums; }
.by { font-size: 13px; color: var(--text-2); min-height: 20px; margin: -4px 0 0; }
.by b { color: var(--text); font-weight: 700; }
.by .you { color: var(--volt); }
.card .btn { margin-top: auto; }
.v.bump { animation: bump .7s cubic-bezier(.2,.9,.2,1); }
@keyframes bump { 0% { color: var(--cyan); transform: scale(1.12); text-shadow: 0 0 18px rgba(0,229,255,.8); } 100% { transform: none; } }
.card .pulse { position: absolute; inset: -1px; border-radius: inherit; pointer-events: none; box-shadow: 0 0 0 0 rgba(0,229,255,.7); animation: cardpulse 1.1s ease-out forwards; }
@keyframes cardpulse { to { box-shadow: 0 0 0 16px rgba(0,229,255,0); } }

/* ---------------------------------------------------------------- how */
.how { max-width: var(--max); margin: 0 auto; padding-bottom: clamp(56px, 8vw, 104px); }
.how .section-head { justify-content: center; text-align: center; flex-direction: column; align-items: center; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; counter-reset: s; }
.steps li { counter-increment: s; padding: 22px 20px; display: grid; gap: 8px; align-content: start; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-card); }
.steps li::before { content: "0" counter(s); font-weight: 900; font-size: 30px; line-height: 1; letter-spacing: -.02em; margin-bottom: 8px; }
.steps li:nth-child(1)::before { color: rgba(0,229,255,.55); }
.steps li:nth-child(2)::before { color: rgba(217,255,63,.5); }
.steps li:nth-child(3)::before { color: rgba(255,0,122,.6); }
.steps li:nth-child(4)::before { color: rgba(19,242,194,.5); }
.steps li:nth-child(5)::before { color: rgba(138,41,226,.8); }
.steps b { font-size: 17px; font-weight: 700; }
.steps span { color: var(--text-2); font-size: 14px; line-height: 1.55; }
.fine { margin-top: 18px; padding: 20px 22px; border-radius: var(--r-card); background: var(--surface); border: 1px solid var(--border); }
.fine b { display: block; font-size: 14px; margin-bottom: 4px; }
.fine p { margin: 0; color: var(--text-2); font-size: 14.5px; max-width: 100ch; }

/* ---------------------------------------------------------------- outro + foot */
.outro { max-width: var(--max); margin: 0 auto clamp(48px, 7vw, 88px); position: relative; border-radius: var(--r-card); overflow: hidden; border: 1px solid var(--border); background: var(--surface); }
.outro img { width: 100%; aspect-ratio: 3 / 1; object-fit: cover; }
.outro div { position: absolute; inset: auto 0 0 0; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: clamp(16px, 3vw, 28px); background: linear-gradient(transparent, rgba(8,9,26,.92)); }
.outro p { margin: 0; font-weight: 900; text-transform: uppercase; font-size: clamp(20px, 2.6vw, 32px); letter-spacing: -.02em; }
.foot { max-width: var(--max); margin: 0 auto; padding: 24px var(--gutter) calc(32px + env(safe-area-inset-bottom)); display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid var(--border); color: var(--text-2); font-size: 14px; }
.foot-brand { display: flex; align-items: center; gap: 10px; }
.foot-brand b { color: var(--text); font-weight: 800; }
.foot nav { display: flex; gap: 20px; flex-wrap: wrap; }
.foot a { text-decoration: none; font-weight: 600; }
.foot a:hover { color: var(--cyan); }

/* ---------------------------------------------------------------- sheets */
.sheet-backdrop { position: fixed; inset: 0; z-index: 60; background: rgba(8,9,26,.7); backdrop-filter: blur(4px); animation: fade .25s ease; }
@keyframes fade { from { opacity: 0; } }
.sheet {
  position: fixed; z-index: 70; left: 50%; bottom: 0; translate: -50% 0;
  width: min(520px, 100%); max-height: 92svh; overflow: auto;
  background: var(--surface); border: 1px solid var(--border-2); border-bottom: 0;
  border-radius: 22px 22px 0 0; padding: 24px 22px calc(22px + env(safe-area-inset-bottom));
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; animation: rise .38s cubic-bezier(.2,.9,.2,1);
}
.sheet > * { min-width: 0; }
@media (min-width: 720px) { .sheet { bottom: auto; top: 50%; translate: -50% -50%; border-radius: 22px; border-bottom: 1px solid var(--border-2); animation: pop .32s cubic-bezier(.2,.9,.2,1.1); } }
@keyframes rise { from { transform: translateY(40%); opacity: .4; } }
@keyframes pop { from { transform: scale(.94); opacity: 0; } }
.sheet[hidden], .sheet-backdrop[hidden], .drawer[hidden] { display: none; }
.sheet-small { width: min(420px, 100%); }
.sheet h3 { font-size: 19px; font-weight: 800; }
.sheet-close { position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--border); background: var(--elevated); color: var(--text); font-size: 22px; line-height: 1; cursor: pointer; }
.sheet-close:hover { border-color: var(--cyan); }
.sheet-head { display: flex; gap: 14px; align-items: center; padding-right: 44px; }
.sheet-head img { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; background: var(--void); flex: none; }
.sheet-head p { margin: 2px 0 0; font-size: 14px; }
.sheet-now { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.sheet-now > div { background: var(--elevated); border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; }
.sheet-now .v { font-family: var(--mono); font-weight: 700; font-size: 16px; color: var(--volt); }
.amount { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; }
.amount-row { display: flex; align-items: center; border: 1.5px solid var(--border-2); border-radius: 14px; padding: 0 18px; background: var(--void); transition: border-color .2s, box-shadow .2s; }
.amount-row:focus-within { border-color: var(--cyan); box-shadow: 0 0 0 4px rgba(0,229,255,.15); }
.amount-row.bad { border-color: var(--pink); }
.amount input { flex: 1; min-width: 0; width: 100%; height: 64px; border: 0; background: transparent; outline: none; font-family: var(--mono); font-weight: 700; font-size: 30px; letter-spacing: -.02em; color: var(--text); }
.unit { font-family: var(--mono); font-weight: 700; color: var(--text-2); }
.usd { color: var(--text-2); font-size: 14px; min-height: 20px; font-variant-numeric: tabular-nums; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chips button { height: 36px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--border); background: var(--elevated); font-weight: 700; font-size: 13.5px; cursor: pointer; }
.chips button:hover { border-color: var(--volt); color: var(--volt); }
.hint { margin: 0; min-height: 20px; font-size: 14px; color: var(--text-2); }
.hint.bad { color: var(--pink); }
.hint.good { color: var(--volt); }
.wallets { display: grid; gap: 8px; }
.wallets button { display: flex; align-items: center; gap: 12px; height: 56px; padding: 0 16px; border-radius: 12px; border: 1px solid var(--border); background: var(--elevated); cursor: pointer; font-weight: 700; text-align: left; }
.wallets button:hover { border-color: var(--cyan); }
.wallets img { width: 28px; height: 28px; border-radius: 8px; }
.row-end { display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }

/* ---------------------------------------------------------------- admin drawer */
.drawer { position: fixed; z-index: 65; top: 0; right: 0; bottom: 0; width: min(440px, 100%); background: var(--surface); border-left: 1px solid var(--border-2); padding: 20px 20px 40px; overflow: auto; animation: slide .3s cubic-bezier(.2,.9,.2,1); display: grid; gap: 14px; align-content: start; }
@keyframes slide { from { transform: translateX(60px); opacity: 0; } }
.drawer-head { display: flex; align-items: center; justify-content: space-between; }
.drawer-head h3 { font-size: 20px; font-weight: 900; text-transform: uppercase; }
.drawer-head .sheet-close { position: static; }
.admin-block { background: var(--elevated); border: 1px solid var(--border); border-radius: 14px; padding: 4px 16px; }
.admin-block[open] { padding-bottom: 16px; }
.admin-block summary { cursor: pointer; font-weight: 700; padding: 12px 0; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.admin-block summary::-webkit-details-marker { display: none; }
.admin-block summary span { color: var(--text-2); font-weight: 700; font-size: 11px; letter-spacing: .05em; text-transform: uppercase; }
.admin-block label { display: grid; gap: 6px; font-size: 13px; color: var(--text-2); margin-bottom: 12px; font-weight: 500; }
.admin-block input, .admin-block textarea { width: 100%; background: var(--void); border: 1px solid var(--border-2); border-radius: 10px; padding: 10px 12px; color: var(--text); font-size: 15px; resize: vertical; }
.admin-block input:focus, .admin-block textarea:focus { outline: none; border-color: var(--cyan); }
.admin-block .two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.admin-block .btn { margin-top: 4px; }
.admin-block .btn + .btn { margin-top: 8px; }
.admin-block p { margin: 0 0 12px; font-size: 13.5px; color: var(--text-2); }
.preview { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; margin-bottom: 12px; background: var(--void); }

/* ---------------------------------------------------------------- toasts + burst */
.toasts { position: fixed; z-index: 90; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom)); translate: -50% 0; display: grid; gap: 8px; width: min(440px, calc(100% - 32px)); pointer-events: none; }
.toast { pointer-events: auto; display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; background: var(--elevated); border: 1px solid var(--border-2); box-shadow: 0 18px 40px -16px rgba(0,0,0,.7); animation: toastIn .35s cubic-bezier(.2,.9,.2,1.2); font-size: 15px; }
.toast i { width: 10px; height: 10px; border-radius: 50%; margin-top: 6px; flex: none; background: var(--cyan); }
.toast.good i { background: var(--volt); }
.toast.bad i { background: var(--pink); }
.toast b { display: block; font-weight: 700; }
.toast span { color: var(--text-2); font-size: 14px; }
.toast a { color: var(--cyan); }
.toast.out { animation: toastOut .3s ease forwards; }
@keyframes toastIn { from { transform: translateY(16px) scale(.96); opacity: 0; } }
@keyframes toastOut { to { transform: translateY(10px); opacity: 0; } }
.burst { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 95; }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid currentColor; border-right-color: transparent; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1080px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .live-grid { grid-template-columns: 1fr; }
  .feed { max-height: 320px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; min-height: 0; padding-top: 16px; }
  .maze-wrap { order: -1; max-width: 340px; }
  .chain-pill { display: none; }
  .brand em { display: none; }
  .banners { top: 64px; }
  .outro div { position: static; background: var(--surface); }
  .steps { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .cards { grid-template-columns: 1fr; }
  .hero-actions .btn { flex: 1; }
  .nav .btn { height: 40px; padding: 0 14px; font-size: 14px; }
}

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

.viewonly { color: var(--pink); }
