:root {
  --bg: #04080f;
  --panel: rgba(12, 22, 34, .78);
  --line: rgba(134, 232, 253, .16);
  --line2: rgba(255, 255, 255, .08);
  --text: #f3fbff;
  --dim: #9db3c2;
  --accent: #86e8fd;
  --beak: #ff9a1f;
  --red: #ff6b7d;
  --green: #5ef0a6;
  --r: 20px;
  --display: "Lilita One", system-ui, sans-serif;
  --body: "Inter", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.55 var(--body); overflow-x: hidden; }
img { max-width: 100%; }
a { color: inherit; }
button { font: inherit; }

/* sky */
.sky { position: fixed; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(1200px 600px at 70% -10%, #0e2a3d 0%, transparent 60%), var(--bg); }
.aurora { position: absolute; inset: -20% -10% 40%; background:
  radial-gradient(40% 30% at 30% 40%, rgba(134, 232, 253, .16), transparent 70%),
  radial-gradient(35% 25% at 70% 30%, rgba(94, 240, 166, .10), transparent 70%);
  filter: blur(30px); animation: aur 18s ease-in-out infinite alternate; }
@keyframes aur { to { transform: translateX(6%) skewX(-6deg); opacity: .7; } }
.stars { position: absolute; inset: 0; background-image:
  radial-gradient(1px 1px at 12% 18%, #fff8, transparent), radial-gradient(1px 1px at 32% 8%, #fff6, transparent),
  radial-gradient(1.5px 1.5px at 58% 22%, #fff9, transparent), radial-gradient(1px 1px at 78% 12%, #fff7, transparent),
  radial-gradient(1px 1px at 88% 34%, #fff5, transparent), radial-gradient(1px 1px at 6% 46%, #fff5, transparent),
  radial-gradient(1.5px 1.5px at 44% 38%, #fff6, transparent), radial-gradient(1px 1px at 66% 52%, #fff4, transparent); }

/* nav */
.nav { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; gap: 20px; padding: 12px clamp(16px, 4vw, 48px);
  background: rgba(4, 8, 15, .72); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line2); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 400 22px var(--display); letter-spacing: .3px; }
.brand img { border-radius: 9px; }
.links { display: flex; gap: 22px; margin-left: auto; }
.links a { text-decoration: none; color: var(--dim); font-weight: 500; font-size: 15px; transition: color .2s; }
.links a:hover { color: var(--text); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; border-radius: 999px;
  padding: 12px 20px; font-weight: 600; font-size: 15px; cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: transform .15s, background .2s, box-shadow .2s, border-color .2s; }
.btn:active { transform: translateY(1px) scale(.98); }
.btn-primary { background: var(--accent); color: #031019; box-shadow: 0 6px 24px rgba(134, 232, 253, .25); }
.btn-primary:hover { box-shadow: 0 8px 34px rgba(134, 232, 253, .45); transform: translateY(-1px); }
.btn-ghost { background: rgba(255, 255, 255, .04); color: var(--text); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--accent); background: rgba(134, 232, 253, .08); }
.btn-sm { padding: 8px 14px; font-size: 14px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

.label { margin: 0; font: 600 11.5px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); display: flex; align-items: center; gap: 8px; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); display: inline-block; flex: none; }
.dot.live { box-shadow: 0 0 0 0 rgba(94, 240, 166, .6); animation: ping 1.8s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 7px rgba(94, 240, 166, 0); } 100% { box-shadow: 0 0 0 0 rgba(94, 240, 166, 0); } }
.accent { color: var(--accent); }

/* hero */
main { width: min(1240px, 100%); margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px); }
.hero { display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 24px; padding: 34px 0 18px; }
.hero-copy { container-type: inline-size; min-width: 0; }
.kicker { margin: 0 0 14px; font: 500 13px var(--mono); color: var(--dim); display: flex; align-items: center; gap: 8px; }
h1 { margin: 0; font: 400 clamp(30px, 10.6cqw, 96px)/.95 var(--display); letter-spacing: .5px; overflow-wrap: anywhere; }
.lede { color: var(--dim); font-size: clamp(16px, 1.6vw, 19px); max-width: 560px; margin: 18px 0 22px; }
.search { display: flex; align-items: center; gap: 8px; background: var(--panel); border: 1px solid var(--line); border-radius: 999px; padding: 6px 6px 6px 18px; max-width: 580px; transition: border-color .2s, box-shadow .2s; }
.search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(134, 232, 253, .12); }
.search-ico { color: var(--dim); font-size: 20px; }
.search input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; color: var(--text); font: 500 15px var(--body); }
.search-results { max-width: 580px; margin-top: 8px; background: #0b1622; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.search-results button { display: flex; width: 100%; align-items: center; gap: 10px; padding: 10px 14px; background: none; border: 0; color: var(--text); cursor: pointer; text-align: left; border-bottom: 1px solid var(--line2); }
.search-results button:hover { background: rgba(134, 232, 253, .07); }
.search-results small { color: var(--dim); margin-left: auto; font-family: var(--mono); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; min-height: 36px; }
.chip { display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px 5px 5px; border-radius: 999px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line2); color: var(--text); cursor: pointer; font: 600 13px var(--body); transition: border-color .2s, transform .2s; }
.chip:hover { border-color: var(--accent); transform: translateY(-2px); }
.chip img { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; background: #0b1622; }
.chip .chg { font: 600 11px var(--mono); }
.up { color: var(--green); } .down { color: var(--red); }
.hero-art { display: flex; justify-content: center; }
.hero-art img { width: min(460px, 100%); }

/* ticker */
.ticker { overflow: hidden; border-block: 1px solid var(--line2); margin: 10px calc(-1 * clamp(16px, 4vw, 40px)) 28px; padding: 10px 0;
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.ticker-track { display: flex; gap: 30px; width: max-content; animation: tick 60s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
@keyframes tick { to { transform: translateX(-50%); } }
.tk { display: inline-flex; align-items: center; gap: 8px; font: 500 13px var(--mono); color: var(--dim); white-space: nowrap; background: none; border: 0; cursor: pointer; padding: 0; }
.tk b { color: var(--text); font-weight: 600; }
.tk img { width: 20px; height: 20px; border-radius: 50%; object-fit: cover; }
.ticker-empty { font: 500 13px var(--mono); color: var(--dim); padding-left: 20px; }

/* room */
.room { background: var(--panel); border: 1px solid var(--line); border-radius: 26px; padding: clamp(14px, 2.4vw, 26px); box-shadow: 0 40px 120px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .05); scroll-margin-top: 80px; }
.room-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.room-coin { display: flex; align-items: center; gap: 12px; min-width: 0; }
.room-coin h2 { margin: 2px 0 0; font: 400 clamp(24px, 3vw, 34px)/1.05 var(--display); overflow-wrap: anywhere; }
.coin-logo { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; background: #0b1622; border: 1px solid var(--line); flex: none; }
.room-stats { display: grid; grid-template-columns: repeat(4, minmax(0, auto)); gap: 8px; }
.tile { background: rgba(255, 255, 255, .03); border: 1px solid var(--line2); border-radius: 14px; padding: 8px 14px; min-width: 0; }
.tile .label { font-size: 10px; color: var(--dim); letter-spacing: .08em; }
.tile b { font: 600 18px var(--mono); display: block; white-space: nowrap; }

.room-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 16px; }
.stage-wrap { position: relative; min-width: 0; }
.stage { position: relative; aspect-ratio: 1000 / 560; border-radius: 18px; overflow: hidden; border: 1px solid var(--line2);
  background: linear-gradient(#071624, #0a2234 60%, #0d3a52); }
.berg { position: absolute; inset: 0; width: 100%; height: 100%; }
.waves path { animation: wave 5s linear infinite; }
@keyframes wave { to { transform: translateX(-160px); } }
.penguins { position: absolute; inset: 0; overflow: hidden; }
.pg { position: absolute; transform: translate(-50%, -100%); transition: left 1.6s cubic-bezier(.3, .7, .3, 1), top 1.6s cubic-bezier(.3, .7, .3, 1), opacity .6s; cursor: pointer; z-index: 2; }
.pg svg { display: block; width: 100%; height: auto; overflow: visible; filter: drop-shadow(0 3px 0 rgba(0, 0, 0, .25)); transform-origin: 50% 100%; animation: waddle 1.4s ease-in-out infinite; animation-delay: var(--d, 0s); }
.pg:hover svg { filter: drop-shadow(0 0 10px rgba(134, 232, 253, .8)); }
@keyframes waddle { 0%, 100% { transform: rotate(-3deg); } 50% { transform: rotate(3deg); } }
.pg .tag { position: absolute; left: 50%; bottom: 100%; transform: translateX(-50%); margin-bottom: 2px; white-space: nowrap; font: 600 9.5px var(--mono); padding: 1px 5px; border-radius: 6px; background: rgba(3, 12, 20, .78); color: #fff; pointer-events: none; }
.pg.big .tag { font-size: 11px; }
.pg .tag .kol { color: #ffd166; }
.pg.me .tag { background: var(--accent); color: #031019; }
.pg .bubble { position: absolute; left: 50%; bottom: calc(100% + 18px); transform: translateX(-50%); width: max-content; max-width: 200px; background: #fff; color: #06121c; font: 500 12px/1.3 var(--body); padding: 6px 9px; border-radius: 12px; z-index: 5; animation: pop .3s ease-out; white-space: normal; }
.pg .bubble::after { content: ""; position: absolute; left: 50%; top: 100%; border: 6px solid transparent; border-top-color: #fff; transform: translateX(-50%); }
@keyframes pop { from { transform: translateX(-50%) scale(.6); opacity: 0; } }
.pg.slide svg { animation: belly .45s ease-in-out infinite; transform: rotate(-70deg); }
@keyframes belly { 50% { transform: rotate(-70deg) translateY(-2px); } }
.pg.jump { transition: left 1s ease-in, top 1s cubic-bezier(.5, -1.2, .8, 1); }
.pg.jump svg { animation: spin 1s linear; }
@keyframes spin { to { transform: rotate(-200deg); } }
.splash { position: absolute; width: 50px; height: 18px; transform: translate(-50%, -50%); border-radius: 50%; border: 2px solid #c9f6ff; animation: splash .8s ease-out forwards; z-index: 3; pointer-events: none; }
@keyframes splash { from { opacity: 1; transform: translate(-50%, -50%) scale(.3); } to { opacity: 0; transform: translate(-50%, -50%) scale(2.2); } }
.igloo { position: absolute; left: 76%; top: 37%; width: 13%; transform: translate(-50%, -100%); text-align: center; z-index: 1; }
.igloo span { display: block; font: 600 10px var(--mono); color: #06121c; background: #f2fdff; border-radius: 6px; padding: 1px 4px; margin-top: -6px; position: relative; }
.stage-note { position: absolute; left: 50%; top: 14px; transform: translateX(-50%); font: 500 12px var(--mono); color: var(--dim); background: rgba(3, 12, 20, .7); padding: 4px 10px; border-radius: 999px; white-space: normal; text-align: center; width: max-content; max-width: 94%; border-radius: 14px; z-index: 4; }
.stage-legend { position: absolute; left: 10px; right: 10px; bottom: 8px; display: flex; flex-wrap: wrap; gap: 4px 14px; font: 500 10.5px var(--mono); color: #b7d6e4; z-index: 4; }
.stage-legend b { color: #fff; }
.sw { display: inline-block; width: 14px; height: 5px; border-radius: 3px; background: var(--c); margin-right: 5px; vertical-align: middle; }
.pop { position: absolute; z-index: 20; width: min(300px, 92%); background: #0b1622; border: 1px solid var(--line); border-radius: 16px; padding: 14px; box-shadow: 0 20px 60px rgba(0, 0, 0, .6); font-size: 13.5px; }
.pop h4 { margin: 0 0 6px; font: 600 14px var(--mono); }
.pop p { margin: 4px 0; color: var(--dim); }
.pop p b { color: var(--text); }
.pop .x { position: absolute; top: 8px; right: 10px; background: none; border: 0; color: var(--dim); font-size: 18px; cursor: pointer; }
.pop a { color: var(--accent); }
.badges { display: flex; flex-wrap: wrap; gap: 5px; margin: 6px 0; }
.bdg { font: 600 10.5px var(--mono); padding: 2px 7px; border-radius: 6px; background: rgba(255, 255, 255, .07); }
.bdg.warn { background: rgba(255, 107, 125, .15); color: var(--red); }
.bdg.kolb { background: rgba(255, 209, 102, .15); color: #ffd166; }
.bdg.new { background: rgba(134, 232, 253, .14); color: var(--accent); }

/* chat */
.chat { min-width: 0; max-width: 100%; display: flex; flex-direction: column; background: rgba(3, 10, 18, .6); border: 1px solid var(--line2); border-radius: 18px; padding: 14px; min-height: 0; max-height: 640px; }
.chat-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 10px; }
.chat-meta { font: 500 11px var(--mono); color: var(--dim); text-align: right; }
.chat-log { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; min-height: 220px; max-height: 380px; padding-right: 4px; scrollbar-width: thin; }
.msg { font-size: 13.5px; line-height: 1.4; animation: rise .35s ease-out; overflow-wrap: anywhere; }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } }
.msg .who { font: 600 12px var(--mono); color: var(--accent); }
.msg .tier { font: 600 10px var(--mono); padding: 1px 6px; border-radius: 6px; background: rgba(134, 232, 253, .12); color: var(--accent); margin-left: 4px; }
.msg.sys { font: 500 12px var(--mono); color: var(--dim); }
.msg.sys .b { color: var(--green); } .msg.sys .s { color: var(--red); }
.chat-gate { margin-top: 10px; padding: 12px; border-radius: 14px; background: rgba(134, 232, 253, .06); border: 1px dashed var(--line); }
.chat-gate p { margin: 0 0 10px; font-size: 13.5px; color: var(--dim); }
.chat-gate .btn { width: 100%; }
.chat-form { display: flex; gap: 8px; margin-top: 10px; }
.chat-form input { flex: 1; min-width: 0; background: rgba(255, 255, 255, .05); border: 1px solid var(--line); border-radius: 999px; padding: 10px 14px; color: var(--text); font: 500 14px var(--body); outline: 0; }
.chat-form input:focus { border-color: var(--accent); }
.trade-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.trade-row .btn { flex: 1 1 auto; }
.trade-note { margin: 8px 0 0; font: 500 11px var(--mono); color: var(--dim); }

/* intel */
.intel, .feed-wrap { margin-top: 18px; }
.intel-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.intel-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 10px; }
.card { background: rgba(255, 255, 255, .025); border: 1px solid var(--line2); border-radius: 16px; padding: 14px 16px; transition: border-color .2s, transform .2s; }
.card:hover { border-color: var(--line); transform: translateY(-2px); }
.card h3 { margin: 0 0 4px; font: 600 15px var(--body); display: flex; align-items: center; gap: 8px; }
.card .big { font: 600 26px var(--mono); }
.card p { margin: 4px 0 0; color: var(--dim); font-size: 13.5px; }
.card ul { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 5px; }
.card li { font: 500 12px var(--mono); color: var(--dim); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.card li b { color: var(--text); }
.card a { color: var(--accent); text-decoration: none; }
.card.alert { border-color: rgba(255, 107, 125, .3); }
.card.good { border-color: rgba(94, 240, 166, .25); }
.feed { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 6px; max-height: 260px; overflow: hidden; }
.feed li { display: flex; align-items: center; gap: 8px; font: 500 12.5px var(--mono); padding: 7px 10px; border-radius: 10px; background: rgba(255, 255, 255, .025); border: 1px solid var(--line2); animation: rise .35s ease-out; min-width: 0; }
.feed li .t { color: var(--dim); margin-left: auto; flex: none; }
.feed li .a { min-width: 0; overflow-wrap: anywhere; white-space: normal; }

/* how */
.how { padding: 90px 0 30px; }
.how h2, .token h2 { font: 400 clamp(34px, 5vw, 60px)/1 var(--display); margin: 10px 0 30px; }
.flow { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr; gap: 12px; align-items: stretch; }
.step { background: var(--panel); border: 1px solid var(--line2); border-radius: var(--r); padding: 18px; transition: border-color .2s, transform .2s; }
.step:hover { border-color: var(--accent); transform: translateY(-3px); }
.step .num { font: 600 12px var(--mono); color: var(--accent); }
.step h3 { margin: 6px 0; font: 400 22px var(--display); letter-spacing: .3px; }
.step p { margin: 0 0 12px; color: var(--dim); font-size: 14px; }
.arrow { align-self: center; color: var(--accent); font-size: 22px; }
.mini { background: rgba(3, 10, 18, .7); border: 1px solid var(--line2); border-radius: 12px; padding: 10px; display: flex; flex-wrap: wrap; gap: 6px; align-items: flex-end; font-size: 12px; }
.mini.mono { font: 500 11.5px/1.5 var(--mono); color: var(--dim); display: block; }
.pill { font: 600 11px var(--mono); padding: 3px 8px; border-radius: 999px; border: 1px solid var(--line); }
.pill.on { background: var(--accent); color: #031019; border-color: var(--accent); }
.ok { color: var(--green); font: 600 12px var(--mono); }
.sizes { justify-content: space-around; min-height: 70px; }
.sizes svg { display: block; }
.tiers { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.tiers span { font: 500 12px var(--mono); color: var(--dim); padding: 6px 12px; border: 1px solid var(--line2); border-radius: 999px; }
.tiers b { color: var(--text); }
.fineprint { color: var(--dim); font-size: 13px; max-width: 760px; margin-top: 18px; }

/* token */
.token { display: grid; grid-template-columns: .8fr 1.2fr; gap: 30px; align-items: center; padding: 60px 0 80px; }
.token-art { display: flex; justify-content: center; }
.token-art img { width: min(360px, 80%); }
.ca-box { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; margin: 6px 0 16px; max-width: 620px; }
.ca-row { display: flex; align-items: center; gap: 10px; margin-top: 6px; }
.ca-row code { flex: 1; min-width: 0; font: 600 14px var(--mono); overflow-wrap: anywhere; }
.token-btns { display: flex; flex-wrap: wrap; gap: 10px; }

.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding: 24px clamp(16px, 4vw, 48px); border-top: 1px solid var(--line2); color: var(--dim); font-size: 12.5px; }
.foot span { display: flex; align-items: center; gap: 8px; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 100; background: #0b1622; border: 1px solid var(--accent); border-radius: 999px; padding: 10px 18px; font-size: 14px; max-width: 92vw; text-align: center; }

/* reveal: always visible after 1.5 s even if JS never runs */
.reveal { animation: reveal .8s ease-out both; }
.reveal:nth-child(2) { animation-delay: .1s; }
@keyframes reveal { from { opacity: 0; transform: translateY(14px); } }

@media (max-width: 1020px) {
  .room-grid { grid-template-columns: 1fr; }
  .chat { max-height: none; }
  .flow { grid-template-columns: 1fr 1fr; }
  .arrow { display: none; }
}
@media (max-width: 760px) {
  .links { display: none; }
  .nav .btn { margin-left: auto; }
  .hero { grid-template-columns: 1fr; padding-top: 18px; }
  .hero-art { order: -1; }
  .hero-art img { width: min(190px, 50vw); }
  .room-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; }
  .stage { aspect-ratio: 1000 / 700; }
  .stage-legend { font-size: 9px; }
  .flow { grid-template-columns: 1fr; }
  .token { grid-template-columns: 1fr; padding-top: 30px; }
  .search .btn { padding: 10px 14px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
