/* LARP PAD — $LARP
   The generic Web3 launchpad look, played straight: navy, purple→cyan
   gradients, glass panels, glow orbs. body.real flips every token to flat
   grey and shows the [data-r] copy instead of the [data-l] copy. */

:root {
  --bg: #07071a;
  --bg2: #0c0c24;
  --panel: rgba(255,255,255,.04);
  --line: rgba(255,255,255,.10);
  --text: #eef0ff;
  --muted: #9aa0c3;
  --a: #7c3aed;
  --b: #22d3ee;
  --c: #f472b6;
  --grad: linear-gradient(120deg, var(--a), var(--b));
  --glow: 0 0 60px rgba(124,58,237,.35), 0 0 120px rgba(34,211,238,.15);
  --radius: 18px;
  --display: "Unbounded", "Inter", sans-serif;
  --body: "Inter", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --orb: 1;
}
body.real {
  --bg: #141414;
  --bg2: #171717;
  --panel: rgba(255,255,255,.03);
  --line: rgba(255,255,255,.12);
  --text: #d4d4d4;
  --muted: #7a7a7a;
  --a: #555;
  --b: #777;
  --c: #666;
  --grad: linear-gradient(120deg, #555, #777);
  --glow: none;
  --orb: 0;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.55 var(--body); -webkit-font-smoothing: antialiased;
  transition: background .5s, color .5s;
  overflow-x: hidden;
}
body.real { font-family: var(--body); }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--display); letter-spacing: -.01em; margin: 0; }
p { margin: 0; }
code { font-family: var(--mono); }
[hidden] { display: none !important; }

/* mode switching: default larp, body.real shows the truth */
[data-r] { display: none; }
body.real [data-l] { display: none; }
body.real [data-r] { display: inline; }

/* ---------- orbs ---------- */
.orbs { position: fixed; inset: 0; pointer-events: none; z-index: 0; opacity: var(--orb); transition: opacity .6s; }
.orbs i { position: absolute; border-radius: 50%; filter: blur(80px); }
.o1 { width: 60vw; height: 60vw; left: -20vw; top: -20vw; background: rgba(124,58,237,.35); animation: drift 22s ease-in-out infinite alternate; }
.o2 { width: 50vw; height: 50vw; right: -15vw; top: 20vh; background: rgba(34,211,238,.22); animation: drift 26s ease-in-out infinite alternate-reverse; }
.o3 { width: 40vw; height: 40vw; left: 30vw; bottom: -20vw; background: rgba(244,114,182,.18); animation: drift 30s ease-in-out infinite alternate; }
@keyframes drift { to { transform: translate(6vw, 4vh) scale(1.08); } }

main, .nav, .foot, .strip { position: relative; z-index: 1; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 24px;
  padding: 14px clamp(16px, 4vw, 48px);
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 700; font-size: 18px; }
.brand b { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand.small { font-size: 14px; }
.mark {
  width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
  background: var(--grad); color: #fff; font-weight: 900; font-size: 18px;
  box-shadow: var(--glow);
}
.brand.small .mark { width: 24px; height: 24px; font-size: 13px; border-radius: 7px; }
.links { display: flex; gap: 22px; margin-left: 12px; font-size: 14px; color: var(--muted); }
.links a:hover { color: var(--text); }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 14px; }

.mode { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; cursor: pointer; user-select: none; }
.mode input { position: absolute; opacity: 0; width: 0; height: 0; }
.mode .track { width: 46px; height: 26px; border-radius: 13px; background: var(--grad); position: relative; transition: background .4s; box-shadow: var(--glow); }
.mode .knob { position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: left .25s; }
.mode input:checked + .track .knob { left: 23px; }
.mode-l { color: var(--text); } .mode-r { color: var(--muted); }
body.real .mode-l { color: var(--muted); } body.real .mode-r { color: var(--text); }
.mode input:focus-visible + .track { outline: 2px solid var(--b); outline-offset: 3px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; border-radius: 999px; font: 600 14px var(--body); cursor: pointer;
  border: 1px solid var(--line); background: var(--panel); color: var(--text);
  transition: transform .15s, box-shadow .2s, background .3s, opacity .2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn.primary { background: var(--grad); border-color: transparent; color: #fff; box-shadow: var(--glow); }
.btn.big { width: 100%; padding: 15px; font-size: 16px; }
.btn.small { padding: 7px 14px; font-size: 12px; }
.btn.ok { background: #16a34a; border-color: transparent; color: #fff; }
.btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; }
.btn[aria-disabled="true"]:hover { transform: none; }

/* ---------- hero ---------- */
.hero { max-width: 1100px; margin: 0 auto; padding: clamp(64px, 12vh, 140px) clamp(16px, 4vw, 48px) 40px; text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 10px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--panel);
  font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted);
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 10px #22c55e; }
body.real .eyebrow .dot { background: #666; box-shadow: none; }
.hero h1 {
  font-size: clamp(34px, 6.4vw, 78px); line-height: 1.02; font-weight: 900; margin: 28px auto 22px; max-width: 14ch;
}
.hero h1 em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lede { max-width: 640px; margin: 0 auto; color: var(--muted); font-size: clamp(15px, 1.4vw, 18px); }
.cta { display: flex; gap: 12px; justify-content: center; margin: 32px 0 56px; flex-wrap: wrap; }

.stats {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
}
.stats li {
  padding: 22px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel);
  backdrop-filter: blur(10px);
}
.num { display: block; font: 700 clamp(18px, 2.4vw, 30px) var(--mono); letter-spacing: -.02em; }
.stats .lab { display: block; margin-top: 6px; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }

/* ---------- claims strip ---------- */
.strip { overflow: hidden; border-block: 1px solid var(--line); padding: 12px 0; background: var(--bg2); margin-top: 48px; }
.strip-track { display: flex; gap: 48px; width: max-content; animation: slide 60s linear infinite; font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.strip-track span::before { content: "✦"; margin-right: 12px; color: var(--b); }
@keyframes slide { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
.section { max-width: 1100px; margin: 0 auto; padding: clamp(56px, 9vh, 110px) clamp(16px, 4vw, 48px); }
.sec-head { max-width: 680px; margin-bottom: 36px; }
.kicker { display: block; font: 700 12px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--b); margin-bottom: 12px; }
.sec-head h2 { font-size: clamp(26px, 3.6vw, 44px); font-weight: 700; margin-bottom: 14px; }
.sec-head p { color: var(--muted); font-size: 17px; }

/* ---------- launch app ---------- */
.app { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.panel { border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); backdrop-filter: blur(12px); padding: 22px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.ph-title { font-family: var(--display); font-weight: 700; font-size: 15px; }
.badge { font: 600 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }
.field { display: block; margin-bottom: 14px; }
.field > span { display: block; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.field input[type="text"], .field select {
  width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line);
  background: rgba(0,0,0,.25); color: var(--text); font: 15px var(--body); outline: none;
}
.field input:focus, .field select:focus { border-color: var(--b); box-shadow: 0 0 0 3px color-mix(in srgb, var(--b) 25%, transparent); }
.field select option { background: #0c0c24; color: #eef0ff; }
body.real .field select option { background: #171717; color: #d4d4d4; }
.field small { display: block; margin-top: 6px; font-size: 12px; color: var(--muted); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.liq { display: flex; align-items: center; gap: 12px; }
.liq input { flex: 1; accent-color: var(--a); }
.liq output { font: 700 14px var(--mono); min-width: 80px; text-align: right; }
.fine { margin-top: 12px; font-size: 11px; color: var(--muted); text-align: center; }

.live { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--muted); }
.live i { width: 8px; height: 8px; border-radius: 50%; background: #ef4444; animation: blink 1.2s infinite; }
body.real .live i { background: #666; animation: none; }
@keyframes blink { 50% { opacity: .2; } }

.feed-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; max-height: 560px; overflow: auto; }
.launch {
  display: grid; grid-template-columns: 40px 1fr 92px; gap: 12px; align-items: center;
  padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: rgba(0,0,0,.2);
  animation: pop .4s ease-out;
}
.launch.mine { border-color: var(--b); box-shadow: 0 0 0 3px color-mix(in srgb, var(--b) 20%, transparent); }
@keyframes pop { from { opacity: 0; transform: translateY(-8px); } }
.avatar { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font: 900 15px var(--display); color: #fff; }
.l-main { min-width: 0; }
.l-name { font-weight: 700; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.l-name small { font: 600 11px var(--mono); color: var(--muted); margin-left: 6px; }
.l-sub { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.l-right { text-align: right; }
.l-right svg { width: 92px; height: 28px; display: block; }
.l-right .mc { font: 700 12px var(--mono); }
.l-right .mc.up { color: #22c55e; } .l-right .mc.dn { color: #ef4444; }
body.real .l-right .mc.up, body.real .l-right .mc.dn { color: var(--muted); }
body.real .l-right svg { display: none; }

/* ---------- bento ---------- */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.cell { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); position: relative; overflow: hidden; }
.cell.wide { grid-column: span 2; }
.cell::after { content: ""; position: absolute; inset: auto -40px -40px auto; width: 140px; height: 140px; border-radius: 50%; background: var(--grad); filter: blur(50px); opacity: .25; pointer-events: none; }
body.real .cell::after { display: none; }
.ico { font-size: 24px; display: block; margin-bottom: 14px; }
body.real .ico { filter: grayscale(1); opacity: .6; }
.cell h3 { font-size: 17px; margin-bottom: 8px; font-weight: 700; }
.cell p { color: var(--muted); font-size: 14px; }

/* ---------- compare ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.cmp { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 560px; }
.cmp th, .cmp td { padding: 16px 18px; text-align: center; border-bottom: 1px solid var(--line); }
.cmp th { font-family: var(--display); font-size: 13px; font-weight: 700; }
.cmp td:first-child, .cmp th:first-child { text-align: left; color: var(--muted); }
.cmp tr:last-child td { border-bottom: 0; }
.cmp .hl { background: color-mix(in srgb, var(--a) 14%, transparent); color: var(--text); font-weight: 700; }
.cmp tbody tr:last-child .hl { color: var(--b); }

/* ---------- backers ---------- */
.logos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.logos li {
  padding: 28px 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel);
  text-align: center; font-family: var(--display); font-weight: 700; font-size: 15px; color: var(--muted);
  transition: color .3s;
}
.logos li:hover { color: var(--text); }
body.real .logos li { font-family: var(--mono); font-weight: 500; font-size: 13px; }

/* ---------- roadmap ---------- */
.road { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(9, minmax(150px, 1fr)); gap: 12px; overflow-x: auto; padding-bottom: 8px; position: relative; }
.road li { padding: 20px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); position: relative; }
.road li::before { content: ""; display: block; width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--muted); margin-bottom: 14px; }
.road li.done::before { background: var(--grad); border-color: transparent; box-shadow: var(--glow); }
.road li.never::before { border-style: dashed; }
.road .q { display: block; font: 700 11px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--b); margin-bottom: 8px; }
.road h3 { font-size: 14px; margin-bottom: 8px; }
.road p { font-size: 13px; color: var(--muted); }

/* ---------- larpenomics ---------- */
.alloc { display: grid; gap: 24px; }
.bar { display: flex; height: 44px; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); }
.bar span { width: var(--w); display: flex; align-items: center; justify-content: space-between; padding: 0 16px; font: 600 13px var(--body); color: #fff; }
.bar span i { font: 700 13px var(--mono); font-style: normal; }
.a1 { background: var(--grad); }
.a2 { background: #4b5563; } .a3 { background: #374151; } .a4 { background: #1f2937; }
.alloc-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px; }
.alloc-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--muted); }
.alloc-list b { color: var(--text); }
.sw { flex: 0 0 12px; width: 12px; height: 12px; border-radius: 4px; margin-top: 5px; }

/* ---------- token card ---------- */
.token-card {
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; padding: clamp(24px, 4vw, 44px);
  border: 1px solid var(--line); border-radius: 26px; position: relative; overflow: hidden;
  background: linear-gradient(160deg, color-mix(in srgb, var(--a) 22%, var(--bg2)), var(--bg2) 60%);
  box-shadow: var(--glow);
}
.token-card h2 { font-size: clamp(40px, 6vw, 72px); font-weight: 900; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; margin: 8px 0 14px; }
.tc-left p { color: var(--muted); max-width: 52ch; }
.tc-meta { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin: 24px 0 0; }
.tc-meta dt { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.tc-meta dd { margin: 2px 0 0; font: 700 15px var(--mono); }
.tc-right { display: flex; flex-direction: column; gap: 14px; justify-content: center; }
.ca-box { padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: rgba(0,0,0,.3); }
.ca-box .lab { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 6px; }
.ca-box code { display: block; font-size: 13px; word-break: break-all; margin-bottom: 8px; }
.tc-links { display: flex; gap: 10px; flex-wrap: wrap; }
.tc-links .btn { flex: 1; }

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--line); background: var(--bg2); }
.foot-in { max-width: 1100px; margin: 0 auto; padding: 36px clamp(16px, 4vw, 48px) 48px; display: grid; gap: 14px; color: var(--muted); font-size: 13px; }
.tiny { font-size: 11px; }

/* ---------- modal / toast ---------- */
.modal { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; background: rgba(0,0,0,.6); backdrop-filter: blur(6px); padding: 16px; }
.modal-card { width: min(440px, 100%); padding: 28px; border-radius: 22px; border: 1px solid var(--line); background: var(--bg2); box-shadow: var(--glow); }
.modal-card h3 { font-size: 18px; margin-bottom: 18px; }
.steps { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 8px; font: 500 13px var(--mono); color: var(--muted); }
.steps li { display: flex; gap: 10px; align-items: center; opacity: .35; transition: opacity .3s; }
.steps li.on, .steps li.ok { opacity: 1; }
.steps li::before { content: "○"; color: var(--muted); }
.steps li.on::before { content: "◔"; color: var(--b); animation: spin 1s linear infinite; display: inline-block; }
.steps li.ok::before { content: "●"; color: #22c55e; }
body.real .steps li.ok::before { color: var(--muted); }
@keyframes spin { to { transform: rotate(360deg); } }
.prog { height: 6px; border-radius: 3px; background: rgba(255,255,255,.08); overflow: hidden; margin-bottom: 18px; }
.prog span { display: block; height: 100%; width: 0; background: var(--grad); transition: width .5s; }
.modal-card .btn { width: 100%; }

.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 60;
  padding: 12px 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg2);
  font-size: 14px; box-shadow: 0 10px 40px rgba(0,0,0,.4); max-width: calc(100vw - 32px); text-align: center;
  animation: pop .3s ease-out;
}

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .links { display: none; }
  .bento { grid-template-columns: 1fr 1fr; }
  .cell.wide { grid-column: span 2; }
  .logos { grid-template-columns: repeat(2, 1fr); }
  .app { grid-template-columns: 1fr; }
  .token-card { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .nav { gap: 12px; padding: 10px 16px; }
  .brand .word { display: none; }
  #connect { display: none; }
  .stats { grid-template-columns: 1fr 1fr; }
  .bento { grid-template-columns: 1fr; }
  .cell.wide { grid-column: span 1; }
  .row2 { grid-template-columns: 1fr; }
  .alloc-list { grid-template-columns: 1fr; }
  .tc-links .btn { flex: 1 1 100%; }
  .feed-list { max-height: 420px; }
}
@media (prefers-reduced-motion: reduce) {
  .orbs i, .strip-track, .live i, .steps li.on::before { animation: none; }
}

/* sparkline draws itself in */
.sp { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.8s ease-out forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.l-right [data-l] svg { color: var(--b); }
body.real .avatar { filter: grayscale(1); opacity: .7; }

/* ---------- pair with anything ---------- */
.pair-field > span em { font-style: normal; text-transform: none; letter-spacing: 0; color: var(--b); font-weight: 600; }
.pair-row { display: flex; gap: 8px; }
.pair-row input { flex: 1; }
.pair-row .btn { flex: 0 0 auto; }
.l-name .pr { color: var(--b); }
body.real .l-name .pr { color: var(--muted); text-decoration: line-through; }

.pairs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.pairs li { padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); display: grid; gap: 6px; min-width: 0; }
.pairs .pp { font: 700 15px var(--display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pairs .pp b { color: var(--b); }
.pairs .px { font: 500 12px var(--mono); color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color .3s; }
.pairs .px.flash { color: #22c55e; }
body.real .pairs .px.flash { color: var(--muted); }
.pairs .pl { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 960px) { .pairs { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .pairs { grid-template-columns: 1fr 1fr; } .pairs .pp { font-size: 13px; } }

/* ---------- fees to anyone ---------- */
.fee-field > span em { font-style: normal; text-transform: none; letter-spacing: 0; color: var(--c); font-weight: 600; }
.fee-row { display: grid; grid-template-columns: 1fr 1.4fr; gap: 8px; }
.l-fee { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.l-fee b { font-weight: 600; color: var(--c); }
body.real .l-fee b { color: var(--muted); }
.chans { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.chans li { padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); display: grid; gap: 6px; min-width: 0; }
.chans .ch { font: 700 15px var(--display); display: flex; align-items: center; gap: 8px; }
.chans .ch i { font-style: normal; font-size: 18px; }
body.real .chans .ch i { filter: grayscale(1); opacity: .6; }
.chans .cd { font-size: 12px; color: var(--muted); }
.chans .cx { font: 500 11px var(--mono); color: var(--c); }
body.real .chans .cx { color: var(--muted); }
@media (max-width: 960px) { .chans { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .fee-row { grid-template-columns: 1fr; } .chans { grid-template-columns: 1fr 1fr; } }

/* ---------- X links ---------- */
.xbtn { padding: 10px 14px; font-size: 15px; }
.foot-x { margin-left: 12px; font: 500 13px var(--mono); color: var(--muted); }
.foot-x:hover { color: var(--text); }
@media (max-width: 640px) { .xbtn { display: inline-flex; } }
