/* TILT tokens (same names and values as the TILT app), then the launch pages. */
@font-face { font-family: 'TILT Sans'; src: url('/launch/fonts/display.woff2') format('woff2'); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }
@font-face { font-family: 'TILT Mono'; src: url('/launch/fonts/mono.woff2') format('woff2'); font-weight: 100 800; font-stretch: 75% 112.5%; font-display: swap; }
:root {
  color-scheme: dark;
  --bg: #0A0604; --s1: #140B08; --s2: #1C120E; --s3: #261B17; --s4: #31241F;
  --line: rgb(242 232 213 / 0.07); --line-2: rgb(242 232 213 / 0.11); --line-3: rgb(242 232 213 / 0.18);
  --text: #F2E8D5; --text-2: #CFC4B3; --mute: #9A8F84; --dim: #6A5F56;
  --cta: #F4F6F8; --cta-hi: #FFFFFF; --on-cta: #0A0604;
  --up: #3DD68C; --up-veil: rgb(61 214 140 / 0.12); --up-line: rgb(61 214 140 / 0.45);
  --down: #EF5F52; --down-veil: rgb(239 95 82 / 0.13); --down-line: rgb(239 95 82 / 0.45);
  --ember: #E3402A; --ember-veil: rgb(227 64 42 / 0.14); --warn: #F2A54A; --warn-veil: rgb(242 165 74 / 0.12);
  --font-ui: 'TILT Sans', system-ui, sans-serif; --font-num: 'TILT Mono', ui-monospace, monospace;
  --r-sm: 6px; --r-md: 10px; --r-lg: 14px; --r-xl: 18px; --r-pill: 999px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1); --t: 160ms;
  --top-h: 60px;
  --lift: 0 1px 0 rgb(255 255 255 / 0.04) inset, 0 0 0 1px var(--line), 0 12px 32px -12px rgb(0 0 0 / 0.6);
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font: 400 14px/1.45 var(--font-ui); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body { min-height: 100vh; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
button { -webkit-tap-highlight-color: transparent; }
h1, h2, h3 { text-wrap: balance; margin: 0; }
.mono { font-family: var(--font-num); font-variant-numeric: tabular-nums; }
.up { color: var(--up); } .down { color: var(--down); } .mute { color: var(--mute); }
.small { font-size: 12.5px; color: var(--mute); margin: 0; }
.ic { flex: none; }
:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }
.grow { flex: 1; }

/* top bar */
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 20px; height: var(--top-h); padding: 0 24px; background: rgb(10 6 4 / 0.82); backdrop-filter: blur(14px) saturate(140%); box-shadow: 0 1px 0 var(--line); }
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand img { display: block; }
.brand span { color: var(--mute); font-weight: 500; font-size: 15px; }
.tabs { display: flex; gap: 4px; }
.tabs a { height: 34px; display: inline-flex; align-items: center; padding: 0 12px; border-radius: var(--r-sm); color: var(--mute); font-weight: 500; transition: color var(--t), background-color var(--t); }
.tabs a.on, .tabs a:hover { color: var(--text); background: rgb(242 232 213 / 0.06); }
.net { height: 24px; display: inline-flex; align-items: center; padding: 0 10px; border-radius: var(--r-pill); font: 500 11px var(--font-num); color: var(--warn); background: var(--warn-veil); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 38px; padding: 0 16px; border: 0; border-radius: var(--r-md); background: var(--s3); color: var(--text); font-weight: 600; cursor: pointer; transition: background-color var(--t), transform var(--t) var(--ease), box-shadow var(--t); }
.btn:hover { background: var(--s4); }
.btn:active { transform: scale(0.96); }
.btn.ghost { background: rgb(242 232 213 / 0.05); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn.ghost:hover { background: rgb(242 232 213 / 0.09); }
.btn.cta { background: var(--cta); color: var(--on-cta); box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.6), 0 6px 20px -8px rgb(244 246 248 / 0.35); }
.btn.cta:hover { background: var(--cta-hi); }
.btn.big { height: 46px; padding: 0 22px; font-size: 15px; }
.btn.wide { width: 100%; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; transform: none; }
#wallet-btn .wdot { width: 8px; height: 8px; border-radius: 50%; background: var(--up); box-shadow: 0 0 0 3px var(--up-veil); }
#wallet-btn .wbal { color: var(--mute); }
.icon-btn { width: 36px; height: 36px; display: grid; place-items: center; border: 0; border-radius: var(--r-sm); background: transparent; color: var(--mute); cursor: pointer; }
.icon-btn:hover { color: var(--text); background: rgb(242 232 213 / 0.06); }

main { max-width: 1480px; margin: 0 auto; padding: 24px; }
.empty { padding: 40px 16px; color: var(--mute); text-align: center; font-size: 13.5px; }
.empty.big { padding: 120px 16px; font-size: 16px; }

/* the bet as a title: condensed heavy display face */
.bt { display: inline-flex; align-items: baseline; gap: 0.32em; font-family: var(--font-ui); font-weight: 900; font-stretch: 62%; text-transform: uppercase; line-height: 0.9; letter-spacing: 0.01em; white-space: nowrap; }
.bt .a { color: var(--text); }
.bt .x { color: var(--text); }
.bt .d { display: inline-flex; align-items: center; gap: 0.08em; }
.bt .d .ic { align-self: center; }
.bt.long .d { color: var(--up); } .bt.short .d { color: var(--down); }
.bt.s { font-size: 18px; } .bt.m { font-size: 26px; } .bt.l { font-size: 40px; } .bt.xl { font-size: clamp(48px, 7vw, 92px); letter-spacing: 0; }

/* coin mark */
.av { position: relative; display: block; flex: none; width: var(--s); height: var(--s); border-radius: calc(var(--s) * 0.24); overflow: hidden; background: var(--s3); box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.1); }
.av svg, .av img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; object-fit: cover; }
.av img { z-index: 1; }
.av::after { content: ''; position: absolute; inset: 0; z-index: 2; border-radius: inherit; box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.1); pointer-events: none; }

.chip { display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border-radius: var(--r-pill); font: 500 11px var(--font-num); color: var(--text-2); background: rgb(242 232 213 / 0.06); }
.chip.tilt { color: var(--warn); background: var(--warn-veil); }
.state { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 13px; }
.state.live::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--up); box-shadow: 0 0 0 3px var(--up-veil); animation: pulse 1.6s infinite; }
.state.down { color: var(--down); }
@keyframes pulse { 50% { opacity: 0.35; } }

/* ticker + board */
.ticker { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; }
.tk { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border-radius: var(--r-md); background: var(--s1); box-shadow: var(--lift); }
.tk-a { color: var(--mute); font-weight: 600; font-size: 13px; }
.tk b { font-weight: 500; transition: color 600ms var(--ease); }
.ftabs { display: none; }
.cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: start; }
.col { min-width: 0; }
.col-h { display: flex; align-items: baseline; gap: 8px; padding: 0 4px 12px; }
.col-h h2 { font-size: 15px; font-weight: 600; }
.col-h .n, .ftab .n { font: 12px var(--font-num); color: var(--mute); }
.col-b { display: flex; flex-direction: column; gap: 12px; }

.card { display: flex; flex-direction: column; gap: 14px; padding: 16px; border-radius: var(--r-lg); background: linear-gradient(180deg, var(--s2), var(--s1)); box-shadow: var(--lift); transition: transform var(--t) var(--ease), box-shadow var(--t); }
a.card:hover { transform: translateY(-2px); box-shadow: 0 1px 0 rgb(255 255 255 / 0.05) inset, 0 0 0 1px var(--line-3), 0 18px 40px -14px rgb(0 0 0 / 0.7); }
.col-b .card:nth-child(2) { animation-delay: 50ms; } .col-b .card:nth-child(3) { animation-delay: 100ms; } .col-b .card:nth-child(4) { animation-delay: 150ms; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }
.card-top { display: flex; align-items: center; gap: 12px; min-width: 0; }
.card .id { min-width: 0; flex: 1; }
.l1 { display: flex; align-items: center; gap: 8px; }
.l1 .sym { font-weight: 700; font-size: 16px; }
.l1 .age { margin-left: auto; font: 12px var(--font-num); color: var(--dim); }
.card .nm { color: var(--mute); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-bet { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; }
.mc { font: 12.5px var(--font-num); color: var(--text-2); white-space: nowrap; }
.mc .k { color: var(--mute); margin-right: 5px; }
.shot { display: flex; flex-direction: column; gap: 8px; padding: 12px; border-radius: var(--r-md); background: rgb(0 0 0 / 0.25); box-shadow: inset 0 0 0 1px var(--line); }
.shot-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.roe { font: 600 16px var(--font-num); font-variant-numeric: tabular-nums; }
.shot-l { display: flex; justify-content: space-between; font: 11.5px var(--font-num); color: var(--mute); }
.card-f { display: flex; align-items: center; gap: 14px; font-size: 13px; color: var(--mute); }
.card-f b { font-family: var(--font-num); font-weight: 600; }
.burn { display: inline-flex; align-items: center; gap: 5px; margin-right: auto; color: var(--mute); }
.burn.hot { color: var(--warn); }

/* range bar: left = liquidation, right = max win */
.rb-t { position: relative; height: 6px; border-radius: var(--r-pill); background: linear-gradient(90deg, var(--down-veil), rgb(242 232 213 / 0.08) 50%, var(--up-veil)); }
.rb-t.wait { background: rgb(242 232 213 / 0.06); overflow: hidden; }
.rb-t.wait::after { content: ''; position: absolute; inset: 0; width: 30%; background: linear-gradient(90deg, transparent, rgb(242 232 213 / 0.18), transparent); animation: sweep 1.4s infinite var(--ease); }
@keyframes sweep { from { transform: translateX(-100%); } to { transform: translateX(340%); } }
.rb-fill { position: absolute; top: 0; bottom: 0; border-radius: inherit; opacity: 0.85; }
.rb-fill.up { background: var(--up); } .rb-fill.down { background: var(--down); }
.rb-e { position: absolute; top: -3px; width: 2px; height: 12px; margin-left: -1px; border-radius: 1px; background: var(--text-2); }
.rb-m { position: absolute; top: 50%; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: var(--text); box-shadow: 0 0 0 3px rgb(10 6 4 / 0.9); transition: left 400ms var(--ease); }
.rb-m.up { background: var(--up); } .rb-m.down { background: var(--down); }

/* coin page */
.back { display: inline-flex; align-items: center; gap: 6px; height: 32px; margin-bottom: 8px; color: var(--mute); font-size: 13px; }
.back:hover { color: var(--text); }
.hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding: 24px 0 28px; }
.hero-id { display: flex; align-items: center; gap: 18px; min-width: 0; }
.hero h1 { font-size: 30px; font-weight: 700; line-height: 1.1; }
.hero-nm { color: var(--mute); font-size: 15px; margin: 2px 0 10px; }
.hero-links { display: flex; gap: 6px; flex-wrap: wrap; }
.pill { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 11px; border: 0; border-radius: var(--r-pill); background: rgb(242 232 213 / 0.06); color: var(--text-2); font-size: 12.5px; cursor: pointer; transition: background-color var(--t), color var(--t); }
.pill:hover { background: rgb(242 232 213 / 0.11); color: var(--text); }
.pill:active { transform: scale(0.96); }
.hero-bet { text-align: right; }
.hero-bet p { margin: 10px 0 0; color: var(--mute); font-size: 13.5px; }
.stats { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.stat { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border-radius: var(--r-lg); background: var(--s1); box-shadow: var(--lift); min-width: 0; }
.stat .l { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; color: var(--mute); }
.stat .v { font: 500 24px/1.1 var(--font-num); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stat .s { font-size: 12px; color: var(--mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stat.hot .l, .stat.hot .v { color: var(--warn); }
.panel { padding: 18px; border-radius: var(--r-xl); background: var(--s1); box-shadow: var(--lift); min-width: 0; }
.ph { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.ph h2 { font-size: 15px; font-weight: 600; }
.g-main { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 16px; margin-bottom: 16px; }
.g-two { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 16px; margin-bottom: 16px; }
.chartp { padding-bottom: 12px; }
.tv { height: 440px; border-radius: var(--r-md); overflow: hidden; background: #100906; }

/* trade panel */
.trade { display: flex; flex-direction: column; gap: 14px; align-self: start; }
.seg2 { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: var(--r-md); background: rgb(0 0 0 / 0.3); }
.seg2 button { height: 40px; border: 0; border-radius: 7px; background: transparent; color: var(--mute); font-weight: 600; font-size: 15px; cursor: pointer; transition: background-color var(--t), color var(--t); }
.seg2 button.buy.on { background: var(--up); color: #062014; }
.seg2 button.sell.on { background: var(--down); color: #2A0805; }
.amt { display: flex; flex-direction: column; gap: 8px; }
.lab { font-size: 12.5px; color: var(--mute); font-weight: 500; }
.amt-in { display: flex; align-items: center; height: 56px; padding: 0 16px; border-radius: var(--r-md); background: rgb(0 0 0 / 0.3); box-shadow: inset 0 0 0 1px var(--line-2); transition: box-shadow var(--t); }
.amt-in:focus-within { box-shadow: inset 0 0 0 1px var(--line-3), 0 0 0 3px rgb(242 232 213 / 0.06); }
.amt-in input { flex: 1; min-width: 0; height: 100%; border: 0; background: none; outline: none; font-size: 22px; }
.amt-in input::placeholder { color: var(--dim); }
.unit { font-weight: 600; color: var(--text-2); }
.bal { font-size: 12px; color: var(--mute); text-align: right; min-height: 16px; }
.quick { display: flex; gap: 6px; }
.quick button { flex: 1; height: 32px; border: 0; border-radius: var(--r-sm); background: rgb(242 232 213 / 0.06); color: var(--text-2); font: 500 12.5px var(--font-num); cursor: pointer; transition: background-color var(--t); }
.quick button:hover { background: rgb(242 232 213 / 0.12); }
.quick button:active { transform: scale(0.96); }
.qrows { display: flex; flex-direction: column; gap: 8px; padding: 12px 14px; border-radius: var(--r-md); background: rgb(0 0 0 / 0.2); font-size: 13px; }
.qrows div { display: flex; justify-content: space-between; gap: 10px; color: var(--mute); }
.qrows div > :last-child { color: var(--text); }
#t-go.buy { background: var(--up); color: #062014; box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.35); }
#t-go.sell { background: var(--down); color: #2A0805; box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.3); }
.err { min-height: 18px; margin: 0; font-size: 13px; color: var(--down); }

/* live shot */
.shotp { display: flex; flex-direction: column; gap: 12px; }
.shotp .st { font-size: 13px; }
.roe-big { display: flex; align-items: baseline; gap: 12px; font: 500 40px/1 var(--font-num); font-variant-numeric: tabular-nums; }
.roe-big span { font-size: 13px; color: var(--mute); font-family: var(--font-ui); }
.acw { height: 220px; }
.ac { width: 100%; height: 100%; display: block; overflow: visible; }
.ac .pl { fill: none; stroke: var(--text); stroke-width: 1.75; }
.ac .ln { stroke-width: 1; stroke-dasharray: 4 4; }
.ac .ln.up { stroke: var(--up-line); } .ac .ln.down { stroke: var(--down-line); } .ac .ln.mid { stroke: rgb(242 232 213 / 0.35); }
.ac .lt { font: 11px var(--font-num); }
.ac .lt.up { fill: var(--up); } .ac .lt.down { fill: var(--down); } .ac .lt.mid { fill: var(--mute); }
.ac .zone.up { fill: rgb(61 214 140 / 0.05); } .ac .zone.down { fill: rgb(239 95 82 / 0.05); }
.ac .dot { fill: var(--text); stroke: var(--bg); stroke-width: 2; }
.rl { display: flex; justify-content: space-between; font: 12px var(--font-num); color: var(--text-2); }

/* lists */
.rows { display: flex; flex-direction: column; }
.row { display: grid; grid-template-columns: 44px 104px minmax(0, 1fr) 90px 52px; align-items: center; gap: 10px; height: 44px; padding: 0 6px; border-radius: var(--r-sm); font-size: 13px; }
.rows.tr .row { grid-template-columns: 60px minmax(0, 1fr) 110px 80px 52px; }
.row:nth-child(odd) { background: rgb(242 232 213 / 0.025); }
.rn { color: var(--mute); }
.rv { text-align: right; }
.ra { text-align: right; color: var(--dim); font-size: 12px; }
.rb2 { display: inline-flex; align-items: center; justify-content: flex-end; gap: 4px; color: var(--warn); font-size: 12px; }
.res { display: inline-flex; justify-self: start; align-items: center; height: 24px; padding: 0 9px; border-radius: var(--r-pill); font-weight: 600; font-size: 12px; }
.res.win { background: var(--up-veil); color: var(--up); }
.res.loss, .res.liquidated { background: var(--down-veil); color: var(--down); }
.res.cancelled, .res.flat, .res.failed { color: var(--mute); background: rgb(242 232 213 / 0.05); }
.res.open, .res.pending, .res.closing { color: var(--text); background: rgb(242 232 213 / 0.08); }
.seg3 { display: inline-flex; gap: 4px; padding: 4px; margin-bottom: 12px; border-radius: var(--r-md); background: rgb(0 0 0 / 0.3); }
.seg3 button { height: 32px; padding: 0 14px; border: 0; border-radius: 7px; background: transparent; color: var(--mute); font-weight: 600; cursor: pointer; }
.seg3 button.on { background: var(--s3); color: var(--text); }

/* launch */
.launch { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 40px; max-width: 1160px; margin: 0 auto; padding-top: 8px; }
.lhead h1 { font-weight: 900; font-stretch: 62%; text-transform: uppercase; font-size: clamp(44px, 6vw, 72px); line-height: 0.9; }
.lhead p { margin: 12px 0 0; max-width: 560px; color: var(--mute); font-size: 15px; }
.lform { display: flex; flex-direction: column; gap: 32px; }
.step { display: flex; flex-direction: column; gap: 12px; }
.step h3 { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 600; }
.sn { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: rgb(242 232 213 / 0.08); color: var(--mute); font: 500 11.5px var(--font-num); }
.opt-l { color: var(--dim); font-weight: 400; font-size: 13px; }
.markets { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.mk { display: flex; align-items: center; gap: 12px; height: 68px; padding: 0 16px; border: 0; border-radius: var(--r-lg); background: var(--s1); box-shadow: var(--lift); text-align: left; cursor: pointer; transition: box-shadow var(--t), background-color var(--t), transform var(--t) var(--ease); }
.mk span { display: flex; flex-direction: column; }
.mk b { font-size: 16px; } .mk small { color: var(--mute); font-size: 12px; }
.mk em { margin-left: auto; font: normal 11.5px var(--font-num); color: var(--dim); }
.mk:hover { background: var(--s2); }
.mk:active, .dl:active, .pc:active, .lev-p:active, .lev-max:active { transform: scale(0.98); }
.mk.on { background: var(--s2); box-shadow: 0 0 0 1.5px var(--text), 0 12px 32px -12px rgb(0 0 0 / 0.6); }
.mk.on em { color: var(--text-2); }
.dir { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.dl { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; height: 112px; padding: 18px 20px; border: 0; border-radius: var(--r-lg); background: var(--s1); box-shadow: var(--lift); color: var(--mute); text-align: left; cursor: pointer; overflow: hidden; transition: box-shadow var(--t), background-color var(--t), color var(--t), transform var(--t) var(--ease); }
.dl span { font-weight: 900; font-stretch: 62%; font-size: 40px; line-height: 0.95; letter-spacing: 0.01em; }
.dl small { font-size: 12.5px; color: var(--dim); }
.dl .ic { position: absolute; right: 18px; top: 18px; }
.dl:hover { color: var(--text-2); }
.dl.long.on { color: var(--up); background: linear-gradient(160deg, rgb(61 214 140 / 0.16), var(--s1) 70%); box-shadow: 0 0 0 1.5px var(--up), 0 16px 40px -16px rgb(61 214 140 / 0.35); }
.dl.short.on { color: var(--down); background: linear-gradient(160deg, rgb(239 95 82 / 0.16), var(--s1) 70%); box-shadow: 0 0 0 1.5px var(--down), 0 16px 40px -16px rgb(239 95 82 / 0.35); }
.dl.on small { color: var(--text-2); }
.lev { display: flex; flex-direction: column; gap: 10px; }
.lev-max { position: relative; display: flex; align-items: center; justify-content: space-between; height: 108px; padding: 0 28px; border: 0; border-radius: var(--r-xl); background: var(--s1); box-shadow: var(--lift); cursor: pointer; overflow: hidden; transition: box-shadow 220ms var(--ease), transform var(--t) var(--ease); }
.lev-max .lv { font-weight: 900; font-stretch: 62%; font-size: 84px; line-height: 1; color: var(--mute); transition: color var(--t); }
.lev-max .lm { font-weight: 600; font-size: 13px; color: var(--dim); }
/* the default bet: the one glow on the page */
.lev-max.on { background: radial-gradient(120% 140% at 0% 50%, rgb(227 64 42 / 0.28), transparent 60%), linear-gradient(180deg, var(--s2), var(--s1)); box-shadow: 0 0 0 1.5px var(--ember), 0 0 48px -6px rgb(227 64 42 / 0.45), inset 0 1px 0 rgb(255 255 255 / 0.06); }
.lev-max.on .lv { color: var(--text); }
.lev-max.on .lm { color: var(--ember); }
.lev-rest { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.lev-p { display: flex; align-items: center; justify-content: center; gap: 2px; height: 52px; border: 0; border-radius: var(--r-pill); background: var(--s1); box-shadow: var(--lift); color: var(--text-2); font: 900 26px var(--font-ui); font-stretch: 62%; cursor: pointer; transition: box-shadow var(--t), color var(--t), transform var(--t) var(--ease); }
.lev-p:hover { color: var(--text); }
.lev-p.on { color: var(--text); box-shadow: 0 0 0 1.5px var(--text); }
.lev-p.other { font: 600 14px var(--font-ui); color: var(--mute); }
.lev-p.other input { width: 64px; height: 32px; border: 0; border-radius: var(--r-sm); background: rgb(0 0 0 / 0.35); text-align: center; font-size: 16px; outline: none; -moz-appearance: textfield; }
.lev-p.other input::-webkit-inner-spin-button { -webkit-appearance: none; }
.coinrow { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 16px; align-items: center; }
.drop { position: relative; width: 112px; height: 112px; border-radius: var(--r-xl); cursor: pointer; }
.drop-av .av { --s: 112px !important; border-radius: var(--r-xl); }
.drop-t { position: absolute; inset: auto 8px 8px; z-index: 3; display: flex; align-items: center; justify-content: center; gap: 6px; height: 28px; border-radius: var(--r-pill); background: rgb(10 6 4 / 0.72); backdrop-filter: blur(6px); font-size: 12px; font-weight: 600; opacity: 0.9; transition: opacity var(--t); }
.drop:hover .drop-t { opacity: 1; background: rgb(10 6 4 / 0.85); }
.coinf { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 10px; }
.fl { display: flex; flex-direction: column; gap: 8px; font-size: 12.5px; color: var(--mute); font-weight: 500; }
.in { height: 48px; padding: 0 14px; border: 0; border-radius: var(--r-md); background: rgb(0 0 0 / 0.3); box-shadow: inset 0 0 0 1px var(--line-2); outline: none; font-size: 15px; transition: box-shadow var(--t); width: 100%; }
.in:focus { box-shadow: inset 0 0 0 1px var(--line-3), 0 0 0 3px rgb(242 232 213 / 0.06); }
.in::placeholder { color: var(--dim); }
.tick-in { position: relative; }
.tick-in b { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--mute); font-weight: 500; }
.tick-in .in { padding-left: 28px; }
.pairs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pc { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 16px 18px; border: 0; border-radius: var(--r-lg); background: var(--s1); box-shadow: var(--lift); text-align: left; cursor: pointer; transition: box-shadow var(--t), background-color var(--t), transform var(--t) var(--ease); }
.pc-h { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; font-size: 17px; }
.pc-r { display: flex; justify-content: space-between; font-size: 13px; color: var(--mute); }
.pc-r b { color: var(--text-2); font-family: var(--font-num); font-weight: 500; }
.pc.on { background: var(--s2); box-shadow: 0 0 0 1.5px var(--text); }
.pc.tilt.on { box-shadow: 0 0 0 1.5px var(--warn); }
.pc.tilt .pc-h b { color: var(--warn); }
.badge { position: absolute; top: 14px; right: 14px; height: 22px; display: inline-flex; align-items: center; padding: 0 9px; border-radius: var(--r-pill); background: var(--warn); color: #2A1604; font-weight: 700; font-size: 11.5px; }
.pc[disabled] { opacity: 0.55; cursor: not-allowed; }
.soon { font-size: 12px; color: var(--warn); }
.go { display: flex; flex-direction: column; gap: 8px; padding: 0 0 24px; }
.launch-go { height: 60px; font-size: 17px; border-radius: var(--r-lg); }
.lside { position: relative; }
.lside-in { position: sticky; top: calc(var(--top-h) + 24px); display: flex; flex-direction: column; gap: 16px; }
.lside h3 { font-size: 13px; color: var(--mute); font-weight: 500; }
.card.preview { animation: none; }
.facts2 { display: flex; flex-direction: column; gap: 10px; padding: 16px; border-radius: var(--r-lg); background: var(--s1); box-shadow: var(--lift); font-size: 13px; }
.facts2 div { display: flex; justify-content: space-between; gap: 10px; color: var(--mute); }
.facts2 b { font-weight: 500; color: var(--text); text-align: right; }

/* modal */
.modal { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 16px; }
.modal-bg { position: absolute; inset: 0; background: rgb(0 0 0 / 0.6); backdrop-filter: blur(4px); opacity: 0; transition: opacity 200ms var(--ease); }
.modal-card { position: relative; width: min(420px, 100%); display: flex; flex-direction: column; gap: 14px; padding: 20px; border-radius: var(--r-xl); background: var(--s1); box-shadow: 0 0 0 1px var(--line-2), 0 30px 80px -20px rgb(0 0 0 / 0.8); opacity: 0; transform: translateY(10px) scale(0.98); transition: opacity 220ms var(--ease), transform 220ms var(--ease); }
.modal.in .modal-bg, .modal.in .modal-card { opacity: 1; transform: none; }
.modal-h { display: flex; align-items: center; justify-content: space-between; }
.modal-h h2 { font-size: 18px; font-weight: 600; }
.signin { display: flex; flex-direction: column; gap: 8px; }
.inrow { display: flex; gap: 8px; }
.inrow .in { height: 42px; }
.inrow .btn { height: 42px; }
.or { display: flex; align-items: center; gap: 10px; color: var(--dim); font-size: 12px; }
.or::before, .or::after { content: ''; flex: 1; height: 1px; background: var(--line-2); }
.wlist { display: flex; flex-direction: column; gap: 6px; }
.wrow { display: flex; align-items: center; gap: 12px; height: 52px; padding: 0 14px; border: 0; border-radius: var(--r-md); background: rgb(242 232 213 / 0.04); text-align: left; cursor: pointer; font-weight: 600; transition: background-color var(--t); }
.wrow:hover { background: rgb(242 232 213 / 0.09); }
.wrow > :nth-child(2) { flex: 1; }
.wrow img { border-radius: 7px; }
.wph { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 7px; background: var(--s3); }
.kv2 div { display: flex; justify-content: space-between; color: var(--mute); }

.toast { position: fixed; left: 50%; bottom: 24px; z-index: 60; padding: 12px 16px; border-radius: var(--r-md); background: var(--s3); box-shadow: 0 0 0 1px var(--line-2), 0 16px 40px rgb(0 0 0 / 0.5); font-size: 13.5px; opacity: 0; transform: translate(-50%, 8px); pointer-events: none; transition: opacity 200ms var(--ease), transform 200ms var(--ease); }
.toast.on { opacity: 1; transform: translate(-50%, 0); }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

@media (max-width: 1200px) {
  .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .g-main { grid-template-columns: minmax(0, 1fr) 340px; }
  .launch { grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; }
}
@media (max-width: 960px) {
  .cols { grid-template-columns: minmax(0, 1fr); }
  .ftabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; padding: 4px; margin-bottom: 14px; border-radius: var(--r-md); background: rgb(0 0 0 / 0.3); }
  .ftab { display: flex; align-items: center; justify-content: center; gap: 6px; height: 38px; border: 0; border-radius: 7px; background: transparent; color: var(--mute); font-weight: 600; font-size: 13.5px; cursor: pointer; }
  .ftab.on { background: var(--s3); color: var(--text); }
  .col:not(.on) { display: none; }
  .col-h { display: none; }
  .g-main, .g-two { grid-template-columns: minmax(0, 1fr); }
  .launch { grid-template-columns: minmax(0, 1fr); }
  .lside { order: -1; }
  .lside-in { position: static; }
  .facts2 { display: none; }
}
@media (max-width: 600px) {
  main { padding: 16px; }
  .top { padding: 0 16px; gap: 12px; }
  .tabs { display: none; }
  .brand span { display: none; }
  #wallet-btn .wbal { display: none; }
  .ticker { gap: 6px; overflow-x: auto; scrollbar-width: none; }
  .ticker .btn { display: none; }
  .tk { padding: 0 10px; gap: 6px; flex: none; }
  .hero { padding: 12px 0 20px; }
  .hero-bet { text-align: left; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .stat .v { font-size: 20px; }
  .tv { height: 320px; }
  .panel { padding: 14px; border-radius: var(--r-lg); }
  .row { grid-template-columns: 36px 96px minmax(0, 1fr) 60px; }
  .row > :last-child { display: none; }
  .rows.tr .row { grid-template-columns: 52px minmax(0, 1fr) 96px 60px; }
  .markets { grid-template-columns: 1fr 1fr 1fr; gap: 6px; }
  .mk { flex-direction: column; align-items: flex-start; justify-content: center; gap: 4px; height: 92px; padding: 12px; }
  .mk em { margin: 0; }
  .mk span { display: none; }
  .mk::after { content: attr(data-asset); font-weight: 700; }
  .dl { height: 96px; padding: 14px; }
  .dl span { font-size: 34px; }
  .lev-max { height: 92px; padding: 0 20px; }
  .lev-max .lv { font-size: 66px; }
  .coinrow { grid-template-columns: 88px minmax(0, 1fr); gap: 12px; }
  .drop, .drop-av .av { width: 88px; height: 88px; --s: 88px !important; }
  .coinf { grid-template-columns: minmax(0, 1fr); }
  .pairs { grid-template-columns: minmax(0, 1fr); }
  .lhead h1 { font-size: 48px; }
}
.seg3.sm { margin: 0; padding: 3px; }
.seg3.sm button { height: 28px; padding: 0 10px; font: 500 12px var(--font-num); }
.legend { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 10px; font-size: 12px; color: var(--mute); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.lg { display: grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; font: 700 9px var(--font-ui); font-style: normal; }
.lg.s { background: var(--s4); color: var(--text); } .lg.w { background: var(--up); color: #062014; } .lg.l { background: var(--down); color: #2A0805; }
.pv-m { display: none; }
@media (max-width: 960px) { .lside { display: none; } .pv-m { display: block; } }
@media (max-width: 600px) { .mk em { order: 2; } .mk::after { order: 1; } }
.acw { position: relative; }
.acw .lt { position: absolute; right: 0; transform: translateY(-50%); font: 11px var(--font-num); padding: 1px 6px; border-radius: 4px; background: var(--s1); }
.acw .lt.up { color: var(--up); } .acw .lt.down { color: var(--down); } .acw .lt.mid { color: var(--mute); }
.acw .dot { position: absolute; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%; background: var(--text); box-shadow: 0 0 0 3px rgb(242 232 213 / 0.15); }
.rv { white-space: nowrap; }
@media (max-width: 600px) { .row { grid-template-columns: 32px 84px minmax(0, 1fr) auto; gap: 8px; font-size: 12.5px; } }

/* Discover: one row per coin */
.disc { border-radius: var(--r-xl); background: linear-gradient(180deg, var(--s1), rgb(20 11 8 / 0.6)); box-shadow: var(--lift); overflow: hidden; }
.disc-h { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 18px 20px 14px; }
.disc-h h1 { margin: 0; font-size: 22px; font-weight: 700; letter-spacing: -0.01em; display: flex; align-items: center; gap: 10px; }
.disc-h h1 .n { font: 500 12px var(--font-num); color: var(--mute); background: rgb(242 232 213 / 0.06); border-radius: var(--r-pill); padding: 3px 9px; }
.disc-f { display: flex; gap: 8px; flex-wrap: wrap; }
.dseg { display: inline-flex; padding: 3px; gap: 2px; border-radius: var(--r-md); background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); }
.dseg button { height: 30px; padding: 0 11px; border: 0; border-radius: 7px; background: transparent; color: var(--mute); font: 500 13px var(--font-ui); cursor: pointer; transition: color var(--t), background-color var(--t); }
.dseg button:hover { color: var(--text); }
.dseg button.on { color: var(--text); background: var(--s3); box-shadow: 0 1px 0 rgb(255 255 255 / 0.05) inset; }
.dt { --cols: minmax(220px, 1.5fr) minmax(250px, 1.6fr) 80px minmax(110px, 0.8fr) minmax(130px, 0.9fr) 84px minmax(120px, 0.8fr) 90px; }
.dr { display: grid; grid-template-columns: var(--cols); align-items: center; gap: 14px; padding: 12px 20px; color: inherit; text-decoration: none; box-shadow: 0 -1px 0 var(--line); transition: background-color var(--t); }
a.dr:hover { background: rgb(242 232 213 / 0.035); }
a.dr:active { background: rgb(242 232 213 / 0.06); }
.dh { padding-top: 10px; padding-bottom: 10px; font-size: 11.5px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--dim); animation: none; }
.d-num { text-align: right; justify-self: end; }
.d-tok { display: flex; align-items: center; gap: 12px; min-width: 0; }
.d-tok .id { min-width: 0; }
.d-tok .l1 { display: flex; align-items: baseline; gap: 8px; }
.d-tok .sym { font-size: 15px; font-weight: 700; }
.d-tok .age { font: 400 12px var(--font-num); color: var(--dim); }
.d-tok .nm { color: var(--mute); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.d-bet { display: flex; align-items: center; gap: 10px; }
.dlev { min-width: 74px; height: 34px; display: inline-flex; align-items: center; justify-content: center; padding: 0 10px; border-radius: var(--r-md); font: 800 19px var(--font-num); letter-spacing: -0.02em; color: var(--text); background: var(--s3); box-shadow: inset 0 0 0 1px var(--line-2); }
.dlev.hi { color: var(--warn); background: var(--warn-veil); box-shadow: inset 0 0 0 1px rgb(242 165 74 / 0.3); }
.dlev.max { color: #fff; background: linear-gradient(180deg, #F0573F, var(--ember)); box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.22), 0 6px 18px -6px rgb(227 64 42 / 0.7); }
.as { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 14px; }
.side { display: inline-flex; align-items: center; gap: 4px; height: 26px; padding: 0 9px 0 7px; border-radius: var(--r-pill); font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em; }
.side.long { color: var(--up); background: var(--up-veil); } .side.short { color: var(--down); background: var(--down-veil); }
.pair { display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border-radius: var(--r-pill); font: 600 12px var(--font-num); color: var(--text-2); background: rgb(242 232 213 / 0.06); }
.pair.tilt { color: var(--warn); background: var(--warn-veil); }
.d-px { font-size: 13.5px; color: var(--text-2); }
.d-mc { display: grid; grid-template-columns: auto auto; justify-items: end; column-gap: 5px; row-gap: 5px; align-items: baseline; }
.d-mc b { font-size: 15px; font-weight: 600; } .d-mc .u { font-size: 11.5px; color: var(--mute); }
.curve { grid-column: 1 / -1; width: 84px; height: 3px; border-radius: 2px; background: var(--s4); overflow: hidden; display: block; }
.curve i { display: block; height: 100%; background: var(--text-2); border-radius: 2px; }
.d-ch { font-size: 15px; font-weight: 600; }
.sh { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; }
.sh .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--up); box-shadow: 0 0 0 3px var(--up-veil); animation: pulse 1.6s infinite; }
.sh b { font: 600 14px var(--font-num); }
.sh.mute b { color: var(--text-2); font-weight: 500; }
.d-burn { display: inline-flex; align-items: center; gap: 5px; color: var(--dim); font-size: 13px; }
.d-burn.hot { color: var(--warn); }
@media (max-width: 1200px) { .dt { --cols: minmax(200px, 1.4fr) minmax(240px, 1.5fr) 72px minmax(120px, 0.9fr) 80px minmax(110px, 0.8fr); } .dt .d-px, .dt .d-burn, .dh > :nth-child(4), .dh > :nth-child(8) { display: none; } }
@media (max-width: 760px) {
  .disc { border-radius: var(--r-lg); }
  .disc-h { padding: 14px 14px 10px; } .disc-f { width: 100%; } .dseg { flex: 1 1 auto; } .dseg button { flex: 1; padding: 0 8px; }
  .dh { display: none; }
  .dr { grid-template-columns: 1fr auto; grid-template-areas: 'tok mc' 'bet ch'; gap: 10px 12px; padding: 14px; }
  .d-tok { grid-area: tok; } .d-mc { grid-area: mc; } .d-bet { grid-area: bet; gap: 8px; } .d-ch { grid-area: ch; align-self: center; }
  .d-pair, .d-shot { display: none; }
  .dlev { min-width: 64px; height: 30px; font-size: 17px; }
}
.m-only { display: none; }
@media (max-width: 760px) { .m-only { display: inline-flex; } }
.mnav { display: none; }
@media (max-width: 600px) {
  main { padding-bottom: 92px; }
  .mnav { position: fixed; z-index: 30; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); display: grid; grid-template-columns: 1fr 1fr 1.3fr; gap: 4px; padding: 5px; border-radius: 16px; background: rgb(28 18 14 / 0.88); backdrop-filter: blur(16px) saturate(140%); box-shadow: 0 0 0 1px var(--line-2), 0 16px 40px -10px rgb(0 0 0 / 0.8); }
  .mnav a { height: 44px; display: grid; place-items: center; border-radius: 12px; color: var(--mute); font-weight: 600; font-size: 14px; transition: color var(--t), background-color var(--t), transform var(--t) var(--ease); }
  .mnav a.on { color: var(--text); background: var(--s3); }
  .mnav a:active { transform: scale(0.97); }
  .mnav a.mgo { color: var(--bg); background: var(--text); }
}
@media (max-width: 760px) {
  .dr { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: 'tok mc' 'tok ch' 'bet bet'; gap: 4px 12px; }
  .d-bet { margin-top: 10px; flex-wrap: wrap; }
  .d-ch { justify-self: end; font-size: 14px; }
}
.d-shot { padding-left: 18px; }
.sh .k { font-size: 11.5px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--dim); }
.pair { gap: 5px; padding: 0 9px 0 6px; }
.pair img, .chip.tilt img { display: block; }
.chip.tilt { gap: 4px; padding-left: 4px; }

/* first paint only: live redraws never restart the entrance */
.enter .card { animation: rise 420ms var(--ease) both; }
.enter .dr:not(.dh) { animation: rise 360ms var(--ease) both; }
.bt .x { text-transform: none; }
.hero-pos { margin: 2px 0 12px; }
.hero-bet { align-self: flex-end; }
.hero-bet p { max-width: 340px; }
.ca { display: inline-flex; align-items: center; gap: 4px; height: 20px; margin-left: 8px; padding: 0 6px; border: 0; border-radius: var(--r-pill); background: rgb(242 232 213 / 0.05); color: var(--mute); font-size: 11px; cursor: pointer; vertical-align: middle; transition: color var(--t), background-color var(--t); }
.ca:hover { color: var(--text); background: rgb(242 232 213 / 0.1); }
.ca:active { transform: scale(0.96); }
.card-top .ca { margin-left: auto; align-self: flex-start; }
.dlev.max { color: var(--bg); background: linear-gradient(180deg, #FFF6E6, var(--text)); box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.6), 0 6px 18px -6px rgb(242 232 213 / 0.45); }
.g-two { align-items: stretch; }
.g-two > div > .panel { height: 100%; box-sizing: border-box; }
.acw .lt { right: 8px; }
.more { margin-top: 12px; }
.fbtn { display: none; }
.fdot { display: inline-block; width: 6px; height: 6px; margin-left: 6px; border-radius: 50%; background: var(--warn); vertical-align: middle; }
@media (max-width: 600px) {
  .ticker { -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); padding-right: 24px; }
}
@media (max-width: 760px) {
  .fbtn { display: inline-flex; height: 34px; }
  .disc-h { flex-wrap: nowrap; }
  .disc-f { display: none; }
  .disc.sheet::before { content: ''; position: fixed; inset: 0; z-index: 40; background: rgb(0 0 0 / 0.55); }
  .disc.sheet .disc-f { display: flex; flex-direction: column; gap: 10px; position: fixed; z-index: 41; left: 0; right: 0; bottom: 0; padding: 18px 16px calc(18px + env(safe-area-inset-bottom)); border-radius: 18px 18px 0 0; background: var(--s2); box-shadow: 0 -1px 0 var(--line-2), 0 -20px 40px rgb(0 0 0 / 0.5); animation: sheet 240ms var(--ease) both; }
  .disc.sheet .dseg { width: 100%; }
  .disc.sheet .dseg button { height: 40px; }
}
@keyframes sheet { from { transform: translateY(100%); } }
.opening { max-width: 520px; margin: 12vh auto; text-align: center; display: grid; gap: 14px; justify-items: center; }
.opening h1 { font-size: 34px; margin: 0; letter-spacing: -0.01em; }
.opening p { margin: 0; color: var(--mute); }
.net[hidden] { display: none; }
