/* ASCII ENV: a light-mode terminal. Paper, ink and the six ANSI colours, softened. */
@font-face { font-family: 'JetBrains Mono'; src: url('/fonts/jbm-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'JetBrains Mono'; src: url('/fonts/jbm-700.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'JetBrains Mono'; src: url('/fonts/jbm-800.woff2') format('woff2'); font-weight: 800; font-display: swap; }

:root {
  --paper: #F6F3EC;
  --card: #FFFDF8;
  --ink: #1D1B22;
  --ink-2: #3A3640;
  --muted: #6E685F;
  --grey: #8F8A80;
  --faint: #E4DED2;
  --line: #DDD5C6;
  --red: #F28B82;
  --yellow: #F2C14E;
  --green: #7CCF9C;
  --cyan: #78CBE3;
  --blue: #8DA4F5;
  --magenta: #D59AEE;
  --buy: #1E8A55;
  --sell: #C8443A;
  --link: #3756C8;
  --shadow: 6px 7px 0 var(--faint);
  --r: 14px;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 14px/1.55 var(--mono);
  font-variant-ligatures: none;
  font-feature-settings: "liga" 0, "calt" 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
b, strong { font-weight: 800; }
h1, h2, h3 { margin: 0; line-height: 1.15; letter-spacing: -0.01em; }
p { margin: 0; }
button, input, textarea, select { font: inherit; color: inherit; }
::selection { background: var(--yellow); color: var(--ink); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; z-index: 99; background: var(--card); padding: 8px 12px; border-radius: 8px; }
.mono { font-family: var(--mono); }
.muted { color: var(--muted); }
.grey { color: var(--grey); }
.buy-t { color: var(--buy); }
.sell-t { color: var(--sell); }
.nowrap { white-space: nowrap; }
.right { text-align: right; }
.hide-sm { }

/* ---------------------------------------------------------------- header */
.top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top-in { max-width: 1240px; margin: 0 auto; padding: 10px 20px; display: flex; align-items: center; gap: 20px; }
.logo { display: flex; align-items: center; gap: 9px; color: var(--ink); font-weight: 800; letter-spacing: 0.06em; white-space: nowrap; }
.logo:hover { text-decoration: none; }
.logo svg { width: 26px; height: 26px; }
.nav { display: flex; gap: 4px; }
.nav a { color: var(--ink-2); padding: 6px 10px; border-radius: 8px; }
.nav a:hover { background: var(--faint); text-decoration: none; }
.nav a.on { background: var(--ink); color: var(--paper); }
.top-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.net { font-size: 12px; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 3px 9px; white-space: nowrap; }
.net::before { content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--green); margin-right: 6px; vertical-align: 1px; }
.xchip { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ink); border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px 3px 4px; white-space: nowrap; }
.xchip img { width: 20px; height: 20px; border-radius: 50%; }
.xchip:hover { text-decoration: none; background: var(--faint); }

/* ---------------------------------------------------------------- layout */
main { flex: 1; width: 100%; max-width: 1240px; margin: 0 auto; padding: 28px 20px 60px; outline: none; }
.boot { padding: 80px 0; text-align: center; color: var(--muted); }
.grid { display: grid; gap: 18px; }
.g2 { grid-template-columns: 1fr 1fr; }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g-main { grid-template-columns: minmax(0, 1fr) 380px; align-items: start; }
.stack { display: flex; flex-direction: column; gap: 18px; }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.gap { margin-top: 14px; }
.gap-lg { margin-top: 28px; }
.sect-title { display: flex; align-items: baseline; gap: 12px; margin: 34px 0 14px; }
.sect-title h2 { font-size: 20px; }
.sect-title .grey { font-size: 13px; }

/* ---------------------------------------------------------------- terminal window */
.win { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); min-width: 0; }
.win-bar { display: flex; align-items: center; gap: 7px; padding: 10px 14px; border-bottom: 1px solid var(--line); color: var(--grey); font-size: 12px; }
.win-bar i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.win-bar i:nth-child(1) { background: var(--red); }
.win-bar i:nth-child(2) { background: var(--yellow); }
.win-bar i:nth-child(3) { background: var(--green); }
.win-bar span { margin-left: 8px; }
.win-bar .end { margin-left: auto; }
.win-body { padding: 18px; }
.win-body.tight { padding: 12px 14px; }

/* ---------------------------------------------------------------- controls */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--ink); background: var(--ink); color: var(--paper); border-radius: 9px; padding: 10px 16px; font-weight: 700; cursor: pointer; white-space: nowrap; text-decoration: none; transition: transform 0.08s ease, box-shadow 0.08s ease; }
.btn:hover { text-decoration: none; transform: translate(-1px, -1px); box-shadow: 2px 2px 0 var(--faint); }
.btn:active { transform: none; box-shadow: none; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; }
.btn.sm { padding: 6px 11px; font-size: 13px; border-radius: 8px; }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { background: var(--faint); }
.btn.wide { width: 100%; }
.btn.buy { background: var(--buy); border-color: var(--buy); }
.btn.sell { background: var(--sell); border-color: var(--sell); }
.btn.big { padding: 13px 20px; font-size: 15px; }
.input, .textarea, select.input { width: 100%; background: #fff; border: 1px solid var(--line); border-radius: 9px; padding: 10px 12px; outline: none; }
.input:focus, .textarea:focus { border-color: var(--ink-2); box-shadow: 0 0 0 3px color-mix(in srgb, var(--blue) 25%, transparent); }
.textarea { min-height: 92px; resize: vertical; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label, .label { font-size: 12px; color: var(--muted); text-transform: lowercase; }
.field .hint { font-size: 12px; color: var(--grey); }
.prefix { position: relative; }
.prefix > span { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--grey); pointer-events: none; }
.prefix > .input { padding-left: 28px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 6px 12px; cursor: pointer; font-size: 13px; }
.chip.on { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.tabs { display: flex; gap: 4px; flex-wrap: wrap; }
.tabs button { border: 1px solid transparent; background: transparent; padding: 6px 11px; border-radius: 8px; cursor: pointer; color: var(--ink-2); }
.tabs button:hover { background: var(--faint); }
.tabs button.on { background: var(--ink); color: var(--paper); }
.seg { display: grid; grid-template-columns: 1fr 1fr; background: var(--faint); border-radius: 10px; padding: 4px; gap: 4px; }
.seg button { border: 0; background: transparent; border-radius: 8px; padding: 9px; cursor: pointer; font-weight: 700; color: var(--ink-2); }
.seg button.on.b { background: var(--buy); color: #fff; }
.seg button.on.s { background: var(--sell); color: #fff; }
.msg { font-size: 13px; min-height: 1.2em; margin-top: 10px; }
.msg.err { color: var(--sell); }
.msg.ok { color: var(--buy); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--ink-2); }
.check input { margin-top: 3px; }
.tag { display: inline-block; font-size: 11px; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); white-space: nowrap; }
.tag.grad { background: color-mix(in srgb, var(--green) 35%, #fff); border-color: var(--green); color: var(--ink); }
.tag.new { background: color-mix(in srgb, var(--yellow) 40%, #fff); border-color: var(--yellow); color: var(--ink); }
.tick { display: inline-flex; width: 15px; height: 15px; border-radius: 50%; background: #1D9BF0; color: #fff; font-size: 10px; align-items: center; justify-content: center; font-weight: 800; vertical-align: -2px; }
.tick.gold { background: #E2B719; }
.tick.grey { background: #8B98A5; }
.cursor { display: inline-block; width: 0.6em; height: 1.05em; background: var(--ink); vertical-align: -0.15em; margin-left: 2px; animation: blink 1.05s steps(1) infinite; }
.cursor.g { background: var(--green); }
@keyframes blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .cursor { animation: none; } * { transition: none !important; } }

/* ---------------------------------------------------------------- home */
.hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 34px; align-items: center; padding: 30px 0 10px; }
.hero h1 { font-size: clamp(44px, 7vw, 86px); font-weight: 800; letter-spacing: 0.01em; }
.hero h1 .cursor { width: 0.55em; height: 0.82em; background: var(--green); vertical-align: -0.04em; }
.hero .codes { color: var(--grey); letter-spacing: 0.32em; font-size: 13px; margin-top: 10px; }
.hero .lead { font-size: 18px; margin-top: 22px; max-width: 34ch; }
.hero .sub { color: var(--muted); margin-top: 10px; max-width: 52ch; }
.hero .row { margin-top: 24px; }
.swatches { display: flex; gap: 6px; margin-top: 18px; }
.swatches i { width: 26px; height: 10px; border-radius: 2px; display: block; }
.sw0 { background: var(--ink); } .sw1 { background: var(--red); } .sw2 { background: var(--yellow); } .sw3 { background: var(--green); }
.sw4 { background: var(--cyan); } .sw5 { background: var(--blue); } .sw6 { background: var(--magenta); } .sw7 { background: var(--card); border: 1px solid var(--line); }
.sect-title.first { margin-top: 0; }
.tape { height: 330px; overflow: hidden; font-size: 13px; }
.tape .ln { display: flex; gap: 10px; padding: 3px 0; white-space: nowrap; overflow: hidden; }
.tape .ln .t { color: var(--grey); width: 54px; flex: none; }
.tape .ln a { color: inherit; }
.tape .k-buy { color: var(--buy); }
.tape .k-sell { color: var(--sell); }
.tape .k-launch { color: #7A44A8; }
.statbar { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 30px; border: 1px solid var(--line); border-radius: var(--r); background: var(--card); overflow: hidden; }
.statbar > div { padding: 14px 18px; border-right: 1px solid var(--line); }
.statbar > div:last-child { border-right: 0; }
.statbar b { display: block; font-size: 22px; }
.statbar span { font-size: 12px; color: var(--muted); }
.steps .win-body h3 { font-size: 16px; margin: 6px 0 8px; }
.steps .num { color: var(--grey); font-size: 12px; }
.steps p { color: var(--ink-2); font-size: 13px; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; font-size: 13px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; }

/* whitelist */
.wl { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0; }
.wl > div { padding: 22px; }
.wl > div + div { border-left: 1px solid var(--line); }
.wl h2 { font-size: 22px; margin-bottom: 6px; }
.task { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px dashed var(--line); border-radius: 10px; margin-bottom: 10px; }
.task .box { width: 22px; height: 22px; border: 1px solid var(--ink-2); border-radius: 5px; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; flex: none; }
.task.done .box { background: var(--green); border-color: var(--buy); }
.task .grow { flex: 1; }
.card-img { width: 100%; border-radius: 12px; border: 1px solid var(--line); display: block; background: var(--paper); aspect-ratio: 1200 / 630; }
.ascii-wall { color: var(--faint); font-size: 12px; line-height: 1.5; user-select: none; overflow: hidden; height: 100%; word-break: break-all; }

/* ---------------------------------------------------------------- board */
.board-top { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; align-items: center; margin-bottom: 16px; }
.search { max-width: 300px; }
.board-top .row { flex-wrap: nowrap; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 16px; }
.tcard { display: grid; grid-template-columns: 108px minmax(0, 1fr); gap: 12px; padding: 12px; color: var(--ink); background: var(--card); border: 1px solid var(--line); border-radius: 12px; box-shadow: 4px 5px 0 var(--faint); transition: transform 0.08s ease, box-shadow 0.08s ease; }
.tcard:hover { text-decoration: none; transform: translate(-2px, -2px); box-shadow: 6px 7px 0 var(--faint); }
.thumb { width: 108px; height: 108px; border-radius: 9px; background: var(--paper); border: 1px solid var(--faint); overflow: hidden; position: relative; }
.thumb canvas, .thumb img { width: 100%; height: 100%; display: block; object-fit: cover; }
.thumb img.orig { position: absolute; inset: 0; opacity: 0; transition: opacity 0.15s ease; }
.tcard:hover .thumb img.orig, .thumb img.orig.show { opacity: 1; }
.tcard .nm { font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tcard .sym { color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tcard .sym .tag { font-size: 10px; padding: 0 6px; margin-left: 4px; }
.tcard .by { font-size: 12px; color: var(--muted); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tcard .mc { margin-top: 6px; font-size: 13px; }
.tcard .bar { font-size: 11px; color: var(--grey); margin-top: 4px; white-space: nowrap; overflow: hidden; }
.bar .fill { color: var(--buy); }
.bar.done .fill { color: #7A44A8; }
.empty { text-align: center; padding: 50px 20px; color: var(--muted); }
.king { display: grid; grid-template-columns: 150px minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: 14px; margin-bottom: 20px; color: var(--ink); }
.king:hover { text-decoration: none; }
.king .thumb { width: 150px; height: 150px; }
.king h2 { font-size: 24px; }

/* ---------------------------------------------------------------- token page */
.thead { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 18px; align-items: start; }
.thead .thumb { width: 132px; height: 132px; cursor: pointer; }
.thead h1 { font-size: 26px; overflow-wrap: anywhere; }
.thead .desc { margin-top: 8px; color: var(--ink-2); white-space: pre-wrap; overflow-wrap: anywhere; font-size: 13px; }
.links { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.links a, .links button { font-size: 12px; border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; color: var(--ink); background: #fff; cursor: pointer; }
.links a:hover, .links button:hover { background: var(--faint); text-decoration: none; }
.metrics { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; border-top: 1px solid var(--line); }
.metrics > div { padding: 12px 16px; border-right: 1px solid var(--line); min-width: 0; }
.metrics > div:last-child { border-right: 0; }
.metrics > div > span { font-size: 11px; color: var(--muted); display: block; }
.metrics b { font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }
.chart-box { height: 400px; position: relative; }
.chart-foot { font-size: 11px; color: var(--grey); padding: 6px 14px 9px; border-top: 1px solid var(--faint); }
.chart-foot a { color: var(--muted); }
.chart-box .wm { position: absolute; left: 16px; top: 12px; color: var(--grey); font-size: 12px; z-index: 2; pointer-events: none; }
.tf { display: flex; gap: 2px; }
.tf button { border: 0; background: transparent; padding: 3px 8px; border-radius: 6px; cursor: pointer; font-size: 12px; color: var(--muted); }
.tf button.on { background: var(--ink); color: var(--paper); }
.trade .amt { font-size: 22px; padding: 12px 14px; }
.quick { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.quick button { flex: 1; border: 1px solid var(--line); background: #fff; border-radius: 7px; padding: 5px 0; cursor: pointer; font-size: 12px; }
.quick button:hover { background: var(--faint); }
.quote { margin-top: 14px; font-size: 13px; border-top: 1px dashed var(--line); padding-top: 12px; }
.quote > div { display: flex; justify-content: space-between; padding: 2px 0; }
.quote span:first-child { color: var(--muted); }
.curve { font-size: 13px; }
.curve .bar { font-size: 13px; margin: 10px 0 6px; white-space: nowrap; overflow: hidden; }
table.t { width: 100%; border-collapse: collapse; font-size: 13px; }
table.t th { text-align: left; font-weight: 400; color: var(--muted); font-size: 11px; padding: 8px 10px; border-bottom: 1px solid var(--line); }
table.t td { padding: 8px 10px; border-bottom: 1px solid var(--faint); white-space: nowrap; }
table.t tr:last-child td { border-bottom: 0; }
table.t tr.fresh td { animation: flash 1.2s ease; }
@keyframes flash { from { background: color-mix(in srgb, var(--yellow) 35%, transparent); } to { background: transparent; } }
.scroll-x { overflow-x: auto; }

/* ---------------------------------------------------------------- launch */
.drop { border: 2px dashed var(--line); border-radius: 12px; padding: 16px; display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 16px; align-items: center; cursor: pointer; background: #fff; }
.drop.over { border-color: var(--blue); background: color-mix(in srgb, var(--blue) 8%, #fff); }
.drop .thumb { width: 120px; height: 120px; }
.gates { list-style: none; padding: 0; margin: 0; }
.gates li { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.gates li:last-child { border-bottom: 0; }
.gates .st { width: 26px; font-weight: 800; flex: none; }
.gates .ok { color: var(--buy); }
.gates .no { color: var(--sell); }
.gates .grow { flex: 1; min-width: 0; }
.gates small { display: block; color: var(--muted); font-size: 12px; }

/* ---------------------------------------------------------------- misc */
.toast { position: fixed; left: 50%; bottom: 84px; transform: translateX(-50%) translateY(20px); background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 10px; opacity: 0; pointer-events: none; transition: all 0.2s ease; z-index: 60; max-width: calc(100vw - 32px); font-size: 13px; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.modal { position: fixed; inset: 0; background: rgba(29, 27, 34, 0.35); display: flex; align-items: center; justify-content: center; z-index: 50; padding: 16px; }
.modal[hidden] { display: none; }
.modal-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); width: min(440px, 100%); padding: 22px; position: relative; max-height: calc(100vh - 32px); overflow: auto; }
.modal-x { position: absolute; right: 10px; top: 8px; border: 0; background: transparent; font-size: 22px; cursor: pointer; color: var(--muted); }
.wallets { display: grid; gap: 8px; margin-top: 14px; }
.wallets button { display: flex; align-items: center; gap: 12px; border: 1px solid var(--line); background: #fff; border-radius: 10px; padding: 10px 12px; cursor: pointer; text-align: left; }
.wallets button:hover { background: var(--faint); }
.wallets img { width: 28px; height: 28px; border-radius: 6px; }
.foot { border-top: 1px solid var(--line); margin-top: 20px; }
.foot-in { max-width: 1240px; margin: 0 auto; padding: 18px 20px 6px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 12px; color: var(--muted); }
.foot-links { display: flex; gap: 14px; }
.foot-note { max-width: 1240px; margin: 0 auto; padding: 0 20px 22px; font-size: 11px; color: var(--grey); }
.tabbar { display: none; }
.banner { border: 1px dashed var(--yellow); background: color-mix(in srgb, var(--yellow) 12%, var(--card)); padding: 10px 14px; border-radius: 10px; font-size: 13px; margin-bottom: 16px; }
.avatar { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); }
.code-box { font-size: 20px; font-weight: 800; letter-spacing: 0.08em; padding: 10px 14px; background: var(--paper); border: 1px dashed var(--ink-2); border-radius: 10px; display: inline-block; }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 980px) {
  .g-main { grid-template-columns: 1fr; }
  .g-main.tok > .stack { display: contents; }
  .o1 { order: 1; } .o2 { order: 2; } .o3 { order: 3; } .o4 { order: 4; } .o5 { order: 5; }
  .board-top .row { flex-wrap: wrap; }
  .hero { grid-template-columns: 1fr; }
  .g3 { grid-template-columns: 1fr; }
  .metrics { grid-template-columns: repeat(3, 1fr); }
  .metrics > div:nth-child(3) { border-right: 0; }
  .metrics > div:nth-child(n+4) { border-top: 1px solid var(--line); }
}
@media (max-width: 760px) {
  .nav { display: none; }
  .net { display: none; }
  .top-in { padding: 10px 16px; gap: 10px; }
  main { padding: 20px 16px 96px; }
  .g2, .wl { grid-template-columns: 1fr; }
  .wl > div + div { border-left: 0; border-top: 1px solid var(--line); }
  .statbar { grid-template-columns: 1fr 1fr; }
  .statbar > div:nth-child(2) { border-right: 0; }
  .statbar > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .board-top { grid-template-columns: 1fr; }
  .search { max-width: none; }
  .king { grid-template-columns: 96px minmax(0, 1fr); }
  .king .thumb { width: 96px; height: 96px; }
  .king .btn { grid-column: 1 / -1; }
  .thead { grid-template-columns: 88px minmax(0, 1fr); }
  .thead .thumb { width: 88px; height: 88px; }
  .metrics { grid-template-columns: 1fr 1fr; }
  .metrics > div { border-right: 0; border-top: 1px solid var(--line); }
  .metrics > div:nth-child(odd) { border-right: 1px solid var(--line); }
  .chart-box { height: 300px; }
  .drop { grid-template-columns: 1fr; }
  .hide-sm { display: none; }
  .xchip { display: none !important; }
  .tabbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; bottom: 0; left: 0; right: 0; background: var(--card); border-top: 1px solid var(--line); z-index: 30; padding-bottom: env(safe-area-inset-bottom); }
  .tabbar a { display: flex; flex-direction: column; align-items: center; padding: 8px 0 7px; font-size: 11px; color: var(--muted); }
  .tabbar a b { font-size: 16px; color: var(--ink-2); }
  .tabbar a.on, .tabbar a.on b { color: var(--ink); }
  .tabbar a.on b { background: var(--yellow); border-radius: 6px; padding: 0 6px; }
  .foot { margin-bottom: 60px; }
}

/* ================================================================ v2: whitelist-first, locked launchpad */
:root {
  --t-common: #8DA4F5; --t-uncommon: #78CBE3; --t-rare: #D59AEE; --t-legendary: #F2C14E; --t-mythic: #7CCF9C;
}
.small { font-size: 12.5px; }
.gap-xs { margin-top: 6px; align-self: flex-start; }
body.locked .open-only { display: none !important; }
.nav-cd { font-size: 11px; color: var(--muted); margin-left: 4px; font-variant-numeric: tabular-nums; }
.nav a.on .nav-cd { color: var(--yellow); }

/* smooth: views rise in, images fade in */
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
#view > * { animation: rise 0.35s cubic-bezier(.2, .7, .2, 1) both; }
#view > *:nth-child(2) { animation-delay: 0.06s; }
#view > *:nth-child(3) { animation-delay: 0.12s; }
.fade { opacity: 0; transition: opacity 0.45s ease, transform 0.45s ease; transform: scale(0.985); }
.fade.in { opacity: 1; transform: none; }
html { scroll-behavior: smooth; }
.btn, .chip, .task, .input { transition: transform 0.12s ease, box-shadow 0.12s ease, background-color 0.15s ease, border-color 0.15s ease; }

/* hero + form side by side */
.hero2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 470px); gap: 44px; align-items: center; padding: 26px 0 8px; min-height: calc(100vh - 210px); }
.hero2 h1 { font-size: clamp(48px, 7.4vw, 96px); font-weight: 800; letter-spacing: 0.01em; line-height: 1; }
.hero2 h1 .cursor { width: 0.55em; height: 0.82em; background: var(--green); vertical-align: -0.04em; }
.hero2 .codes { color: var(--grey); letter-spacing: 0.32em; font-size: 13px; margin-top: 12px; }
.hero2 .lead { font-size: 19px; margin-top: 20px; max-width: 30ch; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; color: var(--buy); border: 1px solid color-mix(in srgb, var(--green) 60%, transparent); background: color-mix(in srgb, var(--green) 14%, var(--card)); border-radius: 999px; padding: 4px 12px; margin-bottom: 18px; }
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--buy); animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: 0.25; } }
.cd-pill { display: inline-flex; align-items: center; gap: 12px; margin-top: 22px; padding: 9px 14px; border: 1px dashed var(--ink-2); border-radius: 11px; color: var(--ink); font-variant-numeric: tabular-nums; }
.cd-pill:hover { text-decoration: none; background: var(--faint); }
.cd-pill .lk { color: var(--muted); }
.cd-pill #cd-mini { font-weight: 800; font-size: 18px; letter-spacing: 0.04em; }
.tiers { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.tier { display: grid; grid-template-columns: auto auto; column-gap: 8px; align-items: baseline; padding: 7px 11px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); font-size: 12px; }
.tier b { font-weight: 800; }
.tier em { font-style: normal; color: var(--muted); }
.tier i { font-style: normal; grid-column: 1 / -1; color: var(--grey); font-size: 11px; }
.tier.t-common { box-shadow: inset 4px 0 0 var(--t-common); }
.tier.t-uncommon { box-shadow: inset 4px 0 0 var(--t-uncommon); }
.tier.t-rare { box-shadow: inset 4px 0 0 var(--t-rare); }
.tier.t-legendary { box-shadow: inset 4px 0 0 var(--t-legendary); }
.tier.t-mythic { box-shadow: inset 4px 0 0 var(--t-mythic); }

.wlwin { box-shadow: 8px 9px 0 var(--ink); border-color: var(--ink); }
.wlwin h2 { font-size: 24px; }
.wlwin .field { margin-bottom: 12px; }
.wlwin .chips { margin: 4px 0 14px; }
.tasks { display: grid; gap: 8px; margin-bottom: 14px; }
.task { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px dashed var(--line); border-radius: 10px; color: var(--ink); background: #fff; }
.task:hover { text-decoration: none; border-color: var(--ink-2); transform: translate(-1px, -1px); }
.task .go { font-size: 12px; color: var(--muted); }
.task.done { border-style: solid; border-color: var(--green); background: color-mix(in srgb, var(--green) 12%, #fff); }
.task.done .go { color: var(--buy); }
.linkish { border: 0; background: none; padding: 0; margin-top: 12px; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font-size: 12.5px; }

/* the reveal */
.reveal { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 18px; align-items: center; margin-bottom: 16px; }
.slot { width: 120px; height: 120px; border-radius: 18px; border: 3px solid var(--ink); display: flex; align-items: center; justify-content: center; font-size: 66px; font-weight: 800; background: var(--card); transition: background-color 0.3s ease, transform 0.3s cubic-bezier(.3, 1.6, .5, 1); }
.slot.landed { transform: scale(1.06) rotate(-2deg); }
.slot.landed.t-common { background: color-mix(in srgb, var(--t-common) 45%, #fff); }
.slot.landed.t-uncommon { background: color-mix(in srgb, var(--t-uncommon) 45%, #fff); }
.slot.landed.t-rare { background: color-mix(in srgb, var(--t-rare) 45%, #fff); }
.slot.landed.t-legendary { background: color-mix(in srgb, var(--t-legendary) 55%, #fff); }
.slot.landed.t-mythic { background: color-mix(in srgb, var(--t-mythic) 50%, #fff); }
.rv-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; animation: rise 0.4s ease both; }
.rv-name { width: 100%; color: var(--ink-2); font-size: 13px; }
.pill { display: inline-block; padding: 4px 12px; border-radius: 999px; background: var(--ink); font-weight: 800; letter-spacing: 0.1em; font-size: 12px; text-transform: uppercase; }
.pill.t-common { color: var(--t-common); }
.pill.t-uncommon { color: var(--t-uncommon); }
.pill.t-rare { color: var(--t-rare); }
.pill.t-legendary { color: var(--t-legendary); }
.pill.t-mythic { color: var(--t-mythic); }
.rv-card .card-img { box-shadow: 4px 5px 0 var(--faint); }

/* live joins + top inviters */
.below { margin-top: 26px; }
.joins { max-height: 380px; overflow: auto; }
.jrow { display: flex; align-items: center; gap: 10px; padding: 9px 14px; border-bottom: 1px solid var(--faint); font-size: 13px; animation: rise 0.3s ease both; }
.jrow:last-child { border-bottom: 0; }
.jav { width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line); object-fit: cover; flex: none; }
.jav.ph { display: inline-flex; align-items: center; justify-content: center; background: var(--faint); font-weight: 800; font-size: 12px; }
.jh { font-weight: 700; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.jt, .ja { color: var(--grey); font-size: 12px; }
.jr { width: 18px; color: var(--grey); }
.jn { color: var(--muted); font-size: 12px; }
.chip-c { display: inline-flex; min-width: 28px; height: 28px; padding: 0 6px; align-items: center; justify-content: center; border-radius: 7px; border: 1.5px solid var(--ink); font-weight: 800; }
.chip-c.big { min-width: 46px; height: 46px; font-size: 24px; vertical-align: middle; }
.chip-c.t-common { background: color-mix(in srgb, var(--t-common) 40%, #fff); }
.chip-c.t-uncommon { background: color-mix(in srgb, var(--t-uncommon) 40%, #fff); }
.chip-c.t-rare { background: color-mix(in srgb, var(--t-rare) 40%, #fff); }
.chip-c.t-legendary { background: color-mix(in srgb, var(--t-legendary) 50%, #fff); }
.chip-c.t-mythic { background: color-mix(in srgb, var(--t-mythic) 45%, #fff); }
.win-bar .live { color: var(--buy); }
.win-bar .live::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--buy); margin-right: 6px; vertical-align: 1px; animation: pulse 1.6s ease-in-out infinite; }

/* locked launchpad */
.lockwrap { min-height: calc(100vh - 220px); display: flex; align-items: center; justify-content: center; }
.lockwin { width: min(560px, 100%); text-align: center; }
.lockwin .win-body { padding: 34px 24px 30px; }
.lockart { margin: 0 auto 10px; font-size: 18px; line-height: 1.15; font-weight: 800; color: var(--ink); display: inline-block; text-align: left; }
.lk-title { font-size: 34px; }
.cd { display: flex; justify-content: center; align-items: flex-start; gap: 10px; margin: 22px 0 14px; font-variant-numeric: tabular-nums; }
.cd-u { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.cd-u b { font-size: clamp(40px, 9vw, 64px); font-weight: 800; line-height: 1; background: var(--card); border: 2px solid var(--ink); border-radius: 14px; padding: 10px 14px; box-shadow: 4px 5px 0 var(--faint); min-width: 1.9em; }
.cd-u span { font-size: 11px; color: var(--muted); letter-spacing: 0.14em; }
.cd-sep { font-style: normal; font-size: 46px; font-weight: 800; color: var(--grey); padding-top: 14px; }
.cd-soon { font-size: 24px; font-weight: 800; }

@media (max-width: 980px) {
  .hero2 { grid-template-columns: 1fr; min-height: 0; gap: 26px; }
}
@media (max-width: 760px) {
  .hero2 { padding-top: 6px; }
  .hero2 .lead { font-size: 16px; }
  .tiers { gap: 6px; }
  .tier { padding: 6px 9px; }
  .reveal { grid-template-columns: 92px minmax(0, 1fr); }
  .slot { width: 92px; height: 92px; font-size: 50px; }
  .wlwin { box-shadow: 5px 6px 0 var(--ink); }
  body.locked .tabbar { grid-template-columns: repeat(2, 1fr); }
  .cd-sep { font-size: 32px; padding-top: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  #view > *, .jrow, .rv-meta { animation: none; }
  .fade { transition: none; }
}

.tiers.m { display: none; }
.skel { position: relative; border-radius: 12px; border: 1px dashed var(--line); background: linear-gradient(100deg, var(--paper) 30%, #fff 50%, var(--paper) 70%) 0 0 / 300% 100%; animation: shimmer 1.4s linear infinite; aspect-ratio: 1200 / 630; }
.skel span { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 12px; color: var(--grey); }
.skel img { position: relative; z-index: 1; }
.skel:has(img.in) { animation: none; background: none; border-color: transparent; }
.skel:has(img.in) span { display: none; }
@keyframes shimmer { to { background-position: -300% 0; } }
@media (max-width: 980px) {
  .tiers.d { display: none; }
  .tiers.m { display: flex; margin-top: 0; }
}

/* ================================================================ the agent */
.new-tag { font-size: 10px; font-weight: 800; padding: 1px 5px; border-radius: 5px; background: var(--magenta); color: var(--ink); margin-left: 3px; vertical-align: 1px; }
.nav a.on .new-tag { background: var(--yellow); }
.c-red { --acc: var(--red); } .c-yellow { --acc: var(--yellow); } .c-green { --acc: var(--green); }
.c-cyan { --acc: var(--cyan); } .c-blue { --acc: var(--blue); } .c-magenta { --acc: var(--magenta); }

.agent-hero { padding: 18px 0 22px; max-width: 760px; }
.agent-hero h1 { font-size: clamp(40px, 6.4vw, 78px); font-weight: 800; line-height: 1.02; }
.agent-hero h1 .cursor { width: 0.55em; height: 0.82em; background: var(--magenta); vertical-align: -0.04em; }
.agent-hero .lead { font-size: 18px; margin-top: 16px; color: var(--ink-2); max-width: 54ch; }

.term { border-color: var(--ink); box-shadow: 8px 9px 0 var(--ink); }
.agent-in { display: flex; align-items: center; gap: 10px; border: 2px solid var(--ink); border-radius: 12px; padding: 8px 8px 8px 14px; background: #fff; }
.agent-in:focus-within { box-shadow: 0 0 0 4px color-mix(in srgb, var(--magenta) 35%, transparent); }
.agent-in .ps1, .chatin .ps1 { font-weight: 800; color: var(--buy); }
.agent-in input { flex: 1; min-width: 0; border: 0; outline: none; background: transparent; font-size: 18px; padding: 6px 0; }
.ideas { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.ideas .chip { font-size: 12px; }
.ag-out { margin-top: 18px; min-height: 40px; }
.q { color: var(--muted); margin-bottom: 12px; overflow-wrap: anywhere; }
.thinking { font-size: 14px; line-height: 1.9; }
.thinking .ok { color: var(--buy); font-weight: 700; }
.thinking .spin { color: #7A44A8; font-weight: 800; }

.concept { display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr); gap: 26px; align-items: start; animation: rise 0.35s ease both; }
.art-box { border: 3px solid var(--ink); border-radius: 18px; background: color-mix(in srgb, var(--acc) 20%, var(--card)); aspect-ratio: 1; display: flex; align-items: center; justify-content: center; overflow: hidden; padding: 14px; }
.art { margin: 0; font-weight: 800; font-size: clamp(11px, 1.55vw, 17px); line-height: 1.18; white-space: pre; color: var(--ink); }
.art.sm { font-size: 7.5px; line-height: 1.15; }
.art .ad { color: var(--ink); }
.art .am { color: color-mix(in srgb, var(--acc) 55%, var(--ink)); }
.art .al { color: #7d776e; }
.cmeta .tk { font-size: clamp(36px, 5vw, 56px); font-weight: 800; line-height: 1; }
.cmeta .nm2 { font-size: 22px; font-weight: 700; margin-top: 6px; }
.cmeta .tg { color: var(--muted); margin-top: 8px; font-size: 15px; }
.cmeta .ds { margin-top: 14px; color: var(--ink-2); }
.cmeta .pv { margin-top: 10px; font-size: 13px; color: var(--ink-2); }
.locked-btn { cursor: default; color: var(--muted); }
.locked-btn:hover { transform: none; box-shadow: none; background: transparent; }
.locked-btn b { color: var(--ink); font-variant-numeric: tabular-nums; }

.chatwin { max-width: 860px; }
.chatlog { max-height: 340px; overflow: auto; padding: 12px 16px; font-size: 13.5px; }
.cl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; padding: 5px 0; animation: rise 0.25s ease both; }
.cl .who { font-weight: 800; color: #7A44A8; white-space: nowrap; }
.cl.me .who { color: var(--buy); }
.cl pre { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; font: inherit; }
.cl.wait pre { color: var(--grey); animation: pulse 1s ease-in-out infinite; }
.cl.err pre { color: var(--sell); }
.chatin { display: flex; align-items: center; gap: 10px; border-top: 1px solid var(--line); padding: 10px 12px 10px 16px; }
.chatin input { flex: 1; min-width: 0; border: 0; outline: none; background: transparent; padding: 6px 0; }

.minis { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.mini { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 12px; align-items: center; padding: 12px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; color: var(--ink); box-shadow: 4px 5px 0 var(--faint); transition: transform 0.12s ease, box-shadow 0.12s ease; }
.mini:hover { text-decoration: none; transform: translate(-2px, -2px); box-shadow: 6px 7px 0 color-mix(in srgb, var(--acc) 60%, var(--faint)); }
.mini .mart { width: 120px; height: 120px; display: flex; align-items: center; justify-content: center; border-radius: 9px; background: color-mix(in srgb, var(--acc) 18%, var(--card)); overflow: hidden; }
.mm { display: flex; flex-direction: column; gap: 2px; min-width: 0; font-size: 12px; }
.mm b { font-size: 17px; }
.mm span { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mm em { font-style: normal; color: var(--muted); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.mm i { font-style: normal; color: var(--grey); font-size: 11px; }

@media (max-width: 860px) {
  .concept { grid-template-columns: 1fr; }
  .art { font-size: clamp(9px, 3.1vw, 16px); }
}
@media (max-width: 760px) {
  .term { box-shadow: 5px 6px 0 var(--ink); }
  .agent-in input { font-size: 16px; }
  body.locked .tabbar { grid-template-columns: repeat(3, 1fr); }
}

.pv-tag { display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; padding: 3px 10px; border-radius: 999px; background: var(--ink); color: var(--acc, var(--green)); margin-bottom: 12px; }
.pv-stats { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; margin: 14px 0 0; font-size: 13px; }
.pv-stats dt { color: var(--muted); }
.pv-stats dd { margin: 0; font-weight: 700; }

/* ================================================================ agent modal + launch preview */
body.noscroll { overflow: hidden; }
.agm { position: fixed; inset: 0; z-index: 80; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(29, 27, 34, 0.5); backdrop-filter: blur(6px); opacity: 0; transition: opacity 0.22s ease; overflow-y: auto; }
.agm.in { opacity: 1; }
.agm-card { width: min(1060px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; background: var(--card); border: 3px solid var(--ink); border-radius: 22px; box-shadow: 10px 12px 0 var(--ink); transform: translateY(18px) scale(0.97); transition: transform 0.3s cubic-bezier(.2, 1.3, .4, 1); }
.agm.in .agm-card { transform: none; }
.agm-card .win-bar { position: sticky; top: 0; background: var(--card); z-index: 3; border-radius: 19px 19px 0 0; }
.agm-x { margin-left: auto; border: 0; background: transparent; font-size: 26px; line-height: 1; cursor: pointer; color: var(--muted); padding: 0 4px; }
.agm-x:hover { color: var(--ink); }
.agm-body { padding: 24px; }

.pvx { position: relative; display: grid; grid-template-columns: minmax(0, 400px) minmax(0, 1fr); gap: 30px; align-items: start; }
.pvx-art { aspect-ratio: 1; border: 3px solid var(--ink); border-radius: 20px; background: color-mix(in srgb, var(--acc, var(--green)) 22%, var(--card)); overflow: hidden; transition: background-color 0.7s ease, box-shadow 0.4s ease; box-shadow: 6px 7px 0 color-mix(in srgb, var(--acc, var(--green)) 70%, var(--ink)); }
.pvx.loading .pvx-art { background: #17151c; box-shadow: 6px 7px 0 var(--ink), 0 0 0 4px color-mix(in srgb, var(--green) 30%, transparent); animation: breathe 1.6s ease-in-out infinite; }
@keyframes breathe { 50% { box-shadow: 6px 7px 0 var(--ink), 0 0 0 10px color-mix(in srgb, var(--green) 14%, transparent); } }
.pvx-cv { width: 100%; height: 100%; display: block; }
.pvx-idea { margin-top: 14px; color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }

.pvx-load { display: flex; flex-direction: column; gap: 14px; padding-top: 6px; }
.pvx-steps { font-size: 15px; line-height: 2; min-height: 14em; }
.pvx-steps .ok { color: var(--buy); }
.pvx-steps .now { color: #7A44A8; font-weight: 800; }
.pvx-prog { height: 14px; border: 2px solid var(--ink); border-radius: 8px; overflow: hidden; background: #fff; }
.pvx-prog i { display: block; height: 100%; width: 0; background: repeating-linear-gradient(45deg, var(--green) 0 10px, color-mix(in srgb, var(--green) 70%, #fff) 10px 20px); background-size: 28px 28px; animation: stripes 0.6s linear infinite; transition: width 0.3s ease; }
@keyframes stripes { to { background-position: 28px 0; } }
.pvx-fun { color: var(--grey); font-size: 13px; font-style: italic; }
.pv-tag.err { color: var(--red); }

.pvx-res { animation: rise 0.4s ease both; }
.pvx-tk { font-size: clamp(42px, 6vw, 72px); font-weight: 800; line-height: 1; margin-top: 4px; letter-spacing: -0.01em; overflow-wrap: anywhere; }
.pvx-nm { font-size: 22px; font-weight: 700; margin-top: 8px; }
.pvx-tg { color: var(--muted); margin-top: 6px; }
.pvx-ds { margin-top: 14px; color: var(--ink-2); font-size: 13.5px; }

.pvx-sim { position: relative; margin-top: 18px; border: 2px solid var(--ink); border-radius: 16px; padding: 12px 14px 10px; background: linear-gradient(180deg, color-mix(in srgb, var(--green) 10%, #fff), #fff); }
.pvx-simhead { display: flex; align-items: baseline; gap: 12px; }
.pvx-simhead .grey { font-size: 12px; }
.pvx-simhead .mc { font-size: 26px; font-weight: 800; font-variant-numeric: tabular-nums; }
.pvx-simhead .gain { margin-left: auto; background: var(--buy); color: #fff; font-weight: 800; padding: 3px 10px; border-radius: 999px; font-variant-numeric: tabular-nums; font-size: 14px; }
.pvx.graduated .gain { animation: pop 0.9s cubic-bezier(.3, 1.8, .5, 1) 1, glowg 1.6s ease-in-out 0.9s infinite; }
@keyframes pop { 0% { transform: scale(1); } 40% { transform: scale(1.35); } 100% { transform: scale(1); } }
@keyframes glowg { 50% { box-shadow: 0 0 0 6px color-mix(in srgb, var(--green) 35%, transparent); } }
.pvx-chart { width: 100%; height: 150px; display: block; margin-top: 6px; }
.pvx-bar { font-size: 13px; color: var(--grey); white-space: nowrap; overflow: hidden; }
.pvx-bar b { color: var(--buy); }
.pvx.graduated .pvx-bar b { color: #7A44A8; }
.pvx-note { font-size: 11px; color: var(--grey); margin-top: 4px; }
.pvx.graduated .pvx-sim::after { content: "graduated"; position: absolute; right: 16px; top: 64px; padding: 4px 14px; border: 3px solid var(--buy); border-radius: 10px; color: var(--buy); font-weight: 800; font-size: 20px; letter-spacing: 0.06em; text-transform: uppercase; background: rgba(255, 253, 248, 0.92); transform: rotate(-8deg); animation: stamp 0.45s cubic-bezier(.3, 1.6, .5, 1) both; }
@keyframes stamp { from { opacity: 0; transform: rotate(-8deg) scale(2.2); } to { opacity: 1; transform: rotate(-8deg) scale(1); } }
.btn.glow { background: var(--buy); border-color: var(--buy); color: #fff; animation: glowg 2s ease-in-out infinite; }

.cf { position: absolute; left: 50%; top: 45%; z-index: 5; pointer-events: none; font-weight: 800; font-size: 22px; color: var(--c); text-shadow: 1px 1px 0 var(--ink); animation: fly var(--d) cubic-bezier(.15, .7, .3, 1) forwards; }
@keyframes fly { from { transform: translate(0, 0) rotate(0); opacity: 1; } to { transform: translate(var(--dx), var(--dy)) rotate(var(--rot)); opacity: 0; } }

@media (max-width: 860px) {
  .pvx { grid-template-columns: 1fr; gap: 20px; }
  .pvx-art { max-width: 360px; width: 100%; margin: 0 auto; }
  .pvx-idea { text-align: center; }
  .pvx-steps { min-height: 0; }
  .agm { padding: 10px; align-items: flex-start; }
  .agm-body { padding: 16px; }
  .agm-card { box-shadow: 6px 7px 0 var(--ink); max-height: calc(100vh - 20px); }
}
@media (prefers-reduced-motion: reduce) {
  .agm, .agm-card, .pvx-prog i, .pvx.loading .pvx-art, .btn.glow, .pvx.graduated .gain { transition: none; animation: none; }
}

.pvx-load .pv-tag { align-self: flex-start; }

/* ================================================================ member pass */
.pass-top { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.passwin { border-color: var(--ink); box-shadow: 8px 9px 0 var(--ink); }
.passwin.lv2 { box-shadow: 8px 9px 0 #5C77D6; } .passwin.lv3 { box-shadow: 8px 9px 0 #1E8A55; } .passwin.lv4 { box-shadow: 8px 9px 0 #9B5BC0; }
.passwin.lv5 { box-shadow: 8px 9px 0 #C9961A; } .passwin.lv6 { box-shadow: 8px 9px 0 var(--magenta), 14px 15px 0 var(--cyan); }
.lvl { display: flex; gap: 14px; align-items: center; margin-top: 16px; }
.lvl b { font-size: 18px; }
.lvl-bar { font-size: 13px; color: var(--grey); margin-top: 4px; white-space: nowrap; overflow: hidden; }
.lvl-bar b { color: var(--buy); font-size: inherit; }
.lvl-badge { flex: none; display: inline-flex; align-items: center; justify-content: center; min-width: 64px; height: 64px; border-radius: 16px; border: 3px solid var(--ink); font-weight: 800; font-size: 15px; background: var(--card); }
.lvl-badge.sm { min-width: 0; height: auto; padding: 2px 8px; border-radius: 7px; border-width: 1.5px; font-size: 11px; }
.lvl-badge.lv2 { background: color-mix(in srgb, var(--blue) 45%, #fff); } .lvl-badge.lv3 { background: color-mix(in srgb, var(--green) 50%, #fff); }
.lvl-badge.lv4 { background: color-mix(in srgb, var(--magenta) 50%, #fff); } .lvl-badge.lv5 { background: color-mix(in srgb, var(--yellow) 60%, #fff); }
.lvl-badge.lv6 { background: linear-gradient(135deg, var(--red), var(--yellow), var(--green), var(--cyan), var(--magenta)); }
.quests { list-style: none; margin: 0; padding: 4px 0; }
.quest { position: relative; display: grid; grid-template-columns: 30px minmax(0, 1fr) auto auto; gap: 10px; align-items: center; padding: 11px 16px; border-bottom: 1px dashed var(--line); }
.quest:last-child { border-bottom: 0; }
.quest .qbox { font-weight: 800; color: var(--muted); }
.quest.done .qbox { color: var(--buy); }
.quest.done b { text-decoration: line-through; text-decoration-color: var(--green); }
.quest small { display: block; color: var(--muted); font-size: 12px; }
.qxp { font-weight: 800; color: var(--buy); font-size: 13px; white-space: nowrap; }
.quest.done .qxp { color: var(--grey); }
.sharebox { display: flex; gap: 8px; flex-wrap: wrap; padding: 0 16px 14px; }
.sharebox .input { flex: 1; min-width: 200px; }
.sharebox .msg { width: 100%; margin: 0; }
.xpfloat { position: absolute; right: 18px; top: 4px; font-weight: 800; color: var(--buy); pointer-events: none; animation: xpup 1.2s ease-out forwards; }
@keyframes xpup { from { opacity: 1; transform: translateY(0) scale(1); } to { opacity: 0; transform: translateY(-34px) scale(1.25); } }
.xpg { font-weight: 800; color: var(--buy); font-size: 12px; }
.board .jrow.me { background: color-mix(in srgb, var(--yellow) 18%, transparent); }
.board .tick { width: 14px; height: 14px; font-size: 9px; }
.passcta { background: var(--buy); border-color: var(--buy); }
@media (max-width: 980px) { .pass-top { grid-template-columns: 1fr; } }
@media (max-width: 760px) {
  .quest { grid-template-columns: 26px minmax(0, 1fr) auto; }
  .quest .qact { grid-column: 2 / -1; }
  .passwin { box-shadow: 5px 6px 0 var(--ink); }
  body.locked .tabbar { grid-template-columns: repeat(4, 1fr); }
}
@media (prefers-reduced-motion: reduce) { .xpfloat { animation: none; } }
