:root {
  --bg: #06080b; --panel: #0c1117; --panel2: #111821; --line: #1c2733; --text: #e8f0f6; --muted: #7f8d9b;
  --g: #22ff88; --g2: #12b862; --r: #ff3b5c; --gold: #ffcc33; --blue: #49b6ff; --pink: #ff8fb1;
  --head: 'Bungee', 'Arial Black', sans-serif; --body: 'Space Grotesk', system-ui, sans-serif; --mono: 'JetBrains Mono', ui-monospace, monospace;
}
* { box-sizing: border-box; }
html, body { max-width: 100%; margin: 0; height: 100%; background: var(--bg); color: var(--text); font: 15px/1.5 var(--body); -webkit-tap-highlight-color: transparent; }
body { overflow-x: hidden; }
body.raiding { overflow: hidden; touch-action: none; user-select: none; -webkit-user-select: none; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
button { font: inherit; color: inherit; cursor: pointer; }
kbd { font: 700 11px var(--mono); background: #1a2430; border: 1px solid #2a3846; border-bottom-width: 2px; border-radius: 5px; padding: 1px 6px; color: #cfe; }
#game { position: fixed; inset: 0; width: 100%; height: 100%; display: block; z-index: 0; }

/* ---------- landing ---------- */
#landing { position: relative; z-index: 2; min-height: 100%; background: linear-gradient(180deg, rgba(6,8,11,.35) 0, rgba(6,8,11,.82) 560px, var(--bg) 900px); }
.topbar { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 14px; padding: 10px 20px; background: rgba(6,8,11,.82); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font: 22px var(--head); letter-spacing: .5px; flex: none; }
.brand img { width: 34px; height: 34px; }
.brand b { color: var(--g); font-weight: 400; }
.ticker { flex: 1; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); min-width: 0; }
.ticker-in { display: inline-flex; gap: 28px; white-space: nowrap; font: 600 12px var(--mono); animation: tick 40s linear infinite; padding-left: 100%; }
.ticker-in span b { margin-left: 6px; }
.ticker-in .up { color: var(--g); } .ticker-in .dn { color: var(--r); }
@keyframes tick { to { transform: translateX(-100%); } }
.pill { display: flex; align-items: center; gap: 8px; background: var(--panel); border: 1px solid var(--line); border-radius: 99px; padding: 5px 12px; font: 600 13px var(--mono); flex: none; }
.pill b { color: var(--g); }
.icon-btn { width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel); display: grid; place-items: center; flex: none; }
.icon-btn.off { opacity: .5; }

.page { max-width: 1220px; margin: 0 auto; padding: 0 20px 40px; }
.hero { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 36px; padding: 56px 0 30px; align-items: start; }
.eyebrow { font: 700 12px var(--mono); letter-spacing: 1.5px; flex-wrap: wrap; color: var(--g); margin: 0 0 14px; display: flex; align-items: center; gap: 10px; }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--g); box-shadow: 0 0 12px var(--g); animation: blink 1.2s infinite; }
@keyframes blink { 50% { opacity: .25; } }
h1 { font: 64px/0.98 var(--head); margin: 0 0 20px; letter-spacing: -.5px; text-shadow: 0 6px 30px rgba(0,0,0,.6); }
h1 em { display: block; font-style: normal; color: var(--r); text-shadow: 0 0 28px rgba(255,59,92,.45); }
.lede { font-size: 17px; color: #c3cfda; max-width: 600px; margin: 0 0 26px; }
.lede b { color: #fff; } .lede .g, b.g, .g { color: var(--g); }
.r { color: var(--r) !important; }
.statrow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; max-width: 640px; }
.statrow div { background: rgba(12,17,23,.85); border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; }
.statrow span { display: block; font: 700 10px var(--mono); letter-spacing: 1.2px; color: var(--muted); }
.statrow b { font: 26px var(--head); font-weight: 400; }
.timeline { position: relative; margin: 34px 0 10px; max-width: 640px; padding-bottom: 46px; }
.tl-bar { position: relative; height: 8px; border-radius: 99px; background: linear-gradient(90deg, var(--g) 0, var(--g) 70%, var(--gold) 76%, var(--r) 100%); box-shadow: 0 0 18px rgba(34,255,136,.25); }
.tl-bar i { position: absolute; top: 50%; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: var(--bg); border: 3px solid var(--g); }
.tl-bar i.w { border-color: var(--blue); } .tl-bar i.r { border-color: var(--r); }
.timeline ol { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline li { position: absolute; top: 14px; transform: translateX(-50%); font: 600 11px var(--mono); color: var(--muted); text-align: center; white-space: nowrap; }
.timeline li:first-child { transform: none; text-align: left; } .timeline li:last-child { transform: translateX(-100%); text-align: right; }
.timeline li b { display: block; color: var(--text); font-size: 13px; }
.timeline li.w b { color: var(--blue); } .timeline li.r b { color: var(--r); }

/* play card */
.play { background: linear-gradient(180deg, rgba(17,24,33,.96), rgba(10,14,19,.97)); border: 1px solid #253342; border-radius: 20px; padding: 18px; box-shadow: 0 30px 80px rgba(0,0,0,.55), inset 0 1px 0 rgba(255,255,255,.04); position: relative; }
.play::before { content: ''; position: absolute; inset: -1px; border-radius: 20px; padding: 1px; background: linear-gradient(135deg, rgba(34,255,136,.6), transparent 35%, transparent 65%, rgba(255,59,92,.5)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.play-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.lbl { font: 700 12px var(--mono); letter-spacing: 1.4px; color: var(--muted); text-transform: uppercase; }
.free { font: 700 10px var(--mono); color: var(--g); border: 1px solid rgba(34,255,136,.4); padding: 2px 8px; border-radius: 99px; }
.heroes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.hero-opt { background: #0a0f15; border: 2px solid var(--line); border-radius: 14px; padding: 8px 4px 6px; display: flex; flex-direction: column; align-items: center; gap: 3px; transition: transform .12s, border-color .12s; position: relative; }
.hero-opt canvas { width: 54px; height: 54px; }
.hero-opt span { font: 600 12px var(--body); }
.hero-opt i { position: absolute; top: 4px; right: 6px; font-style: normal; font-size: 13px; }
.hero-opt:hover { transform: translateY(-2px); border-color: #34506a; }
.hero-opt.on { border-color: var(--g); background: rgba(34,255,136,.08); box-shadow: 0 0 22px rgba(34,255,136,.18); }
.hero-info { margin: 12px 0 12px; padding: 10px 12px; background: #0a0f15; border: 1px solid var(--line); border-radius: 12px; min-height: 62px; font-size: 13px; }
.hero-info b { font-size: 15px; } .hero-info .w { color: var(--g); font-weight: 700; } .hero-info em { color: var(--muted); }
.who { display: flex; align-items: center; gap: 10px; padding: 8px 10px; background: #0a0f15; border-radius: 12px; border: 1px solid var(--line); margin-bottom: 10px; font-size: 14px; }
.ava { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; font-weight: 700; color: #04130a; background: var(--g); flex: none; }
.who-t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.who em { font-style: normal; font: 700 10px var(--mono); color: var(--muted); border: 1px solid var(--line); border-radius: 99px; padding: 1px 7px; margin-left: 4px; }
.link { background: none; border: 0; color: var(--blue); text-decoration: underline; font-size: 13px; }
.login { margin-bottom: 10px; display: grid; gap: 8px; }
.row { display: flex; gap: 8px; }
input { width: 100%; background: #070a0e; border: 1px solid #2a3846; color: var(--text); border-radius: 11px; padding: 11px 13px; font: 15px var(--body); outline: none; }
input:focus { border-color: var(--g); }
.btn { border: 0; border-radius: 11px; padding: 10px 16px; font-weight: 700; background: var(--g); color: #04130a; }
.btn.ghost { background: #121a23; color: var(--text); border: 1px solid #2a3846; }
.btn.sm { padding: 6px 12px; font-size: 13px; }
.btn.phantom { background: #ab9ff2; color: #1c1640; display: flex; align-items: center; justify-content: center; gap: 8px; }
.btn.phantom svg { width: 20px; height: 20px; }
.btn:disabled, .deploy:disabled { opacity: .55; cursor: wait; }
.err { color: #ff8b9d; font-size: 13px; margin: 0; min-height: 0; }
.err:empty { display: none; }
.err a { color: #fff; }
.deploy { width: 100%; border: 0; border-radius: 14px; padding: 14px 18px 12px; background: linear-gradient(180deg, #3dff9a, #12c46a); color: #03140a; box-shadow: 0 6px 0 #0a7a41, 0 12px 30px rgba(34,255,136,.3); display: flex; flex-direction: column; align-items: center; transition: transform .08s, box-shadow .08s; }
.deploy span { font: 30px var(--head); letter-spacing: 1px; line-height: 1; }
.deploy small { font: 700 11px var(--mono); letter-spacing: 1px; opacity: .75; margin-top: 3px; text-transform: uppercase; }
.deploy:hover { filter: brightness(1.06); }
.deploy:active { transform: translateY(4px); box-shadow: 0 2px 0 #0a7a41, 0 6px 16px rgba(34,255,136,.3); }
.deploy.sm { padding: 11px 18px 9px; box-shadow: 0 4px 0 #0a7a41; }
.deploy.sm span { font-size: 20px; }
.bank { display: flex; gap: 10px; align-items: center; margin-top: 16px; padding: 10px 12px; background: #0a0f15; border: 1px solid var(--line); border-radius: 12px; }
.bank div { flex: 1; }
.bank span { display: block; font: 700 10px var(--mono); color: var(--muted); letter-spacing: 1px; }
.bank b { font: 700 16px var(--mono); }
#bank-bal { color: var(--g); }
.fine { font-size: 12px; color: var(--muted); margin: 10px 2px 0; }
.fine b { color: var(--text); }

.band { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 30px 0; }
.col { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 18px; }
h2 { font: 24px var(--head); font-weight: 400; margin: 0 0 14px; }
h2 span { font: 700 11px var(--mono); background: var(--r); color: #fff; padding: 2px 8px; border-radius: 6px; vertical-align: middle; margin-right: 6px; animation: blink 1.6s infinite; }
.feed, .board { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 14px; }
.feed li, .board li { display: flex; align-items: center; gap: 10px; padding: 8px 10px; background: #0a0f15; border-radius: 10px; border: 1px solid #16202a; }
.feed li canvas, .board li canvas { width: 28px; height: 28px; flex: none; }
.feed li .t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.feed li .c, .board li .c { font: 700 13px var(--mono); color: var(--g); }
.feed li .ago { font: 11px var(--mono); color: var(--muted); }
.board { counter-reset: n; }
.board li::before { counter-increment: n; content: counter(n); font: 14px var(--head); color: var(--gold); width: 18px; }
.board li .t { flex: 1; }
.board li.muted::before, .feed li.muted { content: none; }
.how { margin: 40px 0; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.steps div { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 18px; }
.steps b { font: 30px var(--head); color: var(--g); font-weight: 400; }
.steps h3 { margin: 4px 0 6px; font-size: 18px; }
.steps p { margin: 0; color: #b4c1cd; font-size: 14px; }
.beasts { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.beast { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 14px 10px; text-align: center; }
.beast canvas { width: 72px; height: 72px; }
.beast b { display: block; font-size: 15px; margin-top: 4px; }
.beast p { margin: 4px 0 0; font-size: 12px; color: var(--muted); }
.beast.gold { border-color: rgba(255,204,51,.45); } .beast.boss { border-color: rgba(73,182,255,.5); }
.foot { display: flex; flex-direction: column; gap: 4px; align-items: center; text-align: center; padding: 30px 0 10px; border-top: 1px solid var(--line); font-size: 13px; }

/* ---------- HUD ---------- */
#hud { position: fixed; inset: 0; z-index: 3; pointer-events: none; font-family: var(--mono); }
#hud button, #hud .levelup { pointer-events: auto; }
.xpbar { position: absolute; top: 0; left: 0; right: 0; height: 10px; background: rgba(0,0,0,.55); }
.xpbar i { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: linear-gradient(90deg, #12b862, #3dff9a); box-shadow: 0 0 12px var(--g); transition: width .15s; }
.xpbar span { position: absolute; left: 10px; top: 12px; font: 13px var(--head); color: var(--g); text-shadow: 0 2px 0 #000; }
.hud-top { position: absolute; top: 34px; left: 12px; right: 12px; display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.hud-l { display: grid; gap: 6px; width: 250px; }
.hp { position: relative; height: 22px; background: rgba(0,0,0,.6); border: 2px solid #000; border-radius: 7px; overflow: hidden; box-shadow: 0 2px 0 rgba(255,255,255,.06) inset; }
.hp i { position: absolute; left: 0; top: 0; bottom: 0; width: 100%; background: linear-gradient(180deg, #ff6a83, #d81f45); transition: width .12s; }
.hp span { position: relative; display: block; text-align: center; font: 800 12px/18px var(--mono); text-shadow: 0 1px 2px #000; }
.bag { background: rgba(10,8,0,.72); border: 2px solid rgba(255,204,51,.55); border-radius: 10px; padding: 4px 10px; display: grid; grid-template-columns: auto 1fr; column-gap: 8px; align-items: baseline; }
.bag span { font: 12px var(--head); color: var(--gold); }
.bag b { font: 800 18px var(--mono); color: var(--gold); text-shadow: 0 0 10px rgba(255,204,51,.5); }
.bag small { grid-column: 1 / -1; font-size: 10px; color: #c9b67a; }
.bag.pulse { animation: bagpulse .45s; }
@keyframes bagpulse { 40% { transform: scale(1.08); box-shadow: 0 0 24px rgba(255,204,51,.7); } }
.kills { font: 800 14px var(--mono); text-shadow: 0 2px 2px #000; display: flex; align-items: center; gap: 6px; }
.dash-cd { margin-left: auto; font: 800 10px var(--mono); padding: 2px 7px; border-radius: 6px; background: rgba(34,255,136,.2); color: var(--g); border: 1px solid rgba(34,255,136,.5); }
.dash-cd.cd { background: rgba(0,0,0,.5); color: var(--muted); border-color: #333; }
.hud-c { text-align: center; text-shadow: 0 2px 4px #000; flex: 1; }
.coin { font: 14px var(--head); color: var(--muted); letter-spacing: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 46vw; margin: 0 auto; }
.timer { font: 40px/1 var(--head); color: #fff; }
.timer.warn { color: var(--gold); } .timer.danger { color: var(--r); animation: blink .7s infinite; }
.phase { font: 700 12px var(--mono); color: var(--g); background: rgba(0,0,0,.55); display: inline-block; padding: 3px 10px; border-radius: 99px; margin-top: 4px; }
.phase.r { color: var(--r); } .phase.w { color: var(--gold); }
#minimap { width: 150px; height: 150px; border-radius: 12px; border: 2px solid rgba(255,255,255,.12); background: rgba(0,0,0,.55); }
.notes { position: absolute; top: 130px; left: 50%; transform: translateX(-50%); display: grid; gap: 6px; justify-items: center; width: min(680px, 92vw); }
.note { font: 700 14px var(--body); background: rgba(0,0,0,.72); border: 1px solid rgba(255,255,255,.14); padding: 6px 14px; border-radius: 10px; text-align: center; animation: notein .25s ease-out; }
.note.gold { color: var(--gold); border-color: rgba(255,204,51,.5); } .note.green { color: var(--g); border-color: rgba(34,255,136,.5); }
.note.red { color: #ff8b9d; border-color: rgba(255,59,92,.5); } .note.big { font: 18px var(--head); color: #9fd6ff; border-color: rgba(73,182,255,.6); }
.note.out { opacity: 0; transition: opacity .5s; }
@keyframes notein { from { transform: translateY(-8px); opacity: 0; } }
.build { position: absolute; left: 12px; bottom: 12px; display: flex; gap: 5px; flex-wrap: wrap; max-width: 60vw; }
.slot { width: 42px; height: 42px; border-radius: 10px; background: rgba(0,0,0,.65); border: 2px solid #2b3a48; display: grid; place-items: center; font-size: 20px; position: relative; }
.slot.p { border-color: #4b3b6b; }
.slot b { position: absolute; right: 2px; bottom: 0; font: 800 10px var(--mono); color: var(--gold); text-shadow: 0 1px 2px #000; }
.keys-hint { position: absolute; right: 12px; bottom: 12px; font: 600 11px var(--mono); color: #9aa; background: rgba(0,0,0,.5); padding: 5px 10px; border-radius: 8px; }
.hud-exit { position: absolute; top: 34px; right: 176px; width: 30px; height: 30px; border-radius: 8px; border: 1px solid #333; background: rgba(0,0,0,.55); color: #aaa; }
.touch-only { display: none; }
#btn-dash { position: absolute; right: 22px; bottom: 34px; width: 86px; height: 86px; border-radius: 50%; border: 3px solid rgba(34,255,136,.7); background: rgba(34,255,136,.18); color: var(--g); font: 15px var(--head); }
#btn-dash.cd { opacity: .4; }
.levelup { position: absolute; left: 50%; bottom: 70px; transform: translateX(-50%); width: min(820px, 96vw); text-align: center; animation: luin .25s ease-out; }
@keyframes luin { from { transform: translate(-50%, 30px); opacity: 0; } }
.lu-head { font: 22px var(--head); color: var(--g); text-shadow: 0 0 18px rgba(34,255,136,.6), 0 3px 0 #000; margin-bottom: 8px; }
.lu-head span { font: 700 12px var(--mono); color: var(--muted); }
.lu-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.card { background: linear-gradient(180deg, rgba(20,28,38,.94), rgba(10,14,20,.96)); border: 2px solid #2d3e50; border-radius: 16px; padding: 12px 12px 10px; text-align: left; display: grid; grid-template-columns: 44px 1fr; gap: 2px 10px; align-items: center; transition: transform .1s, border-color .1s; font-family: var(--body); }
.card:hover { transform: translateY(-4px); border-color: var(--g); }
.card .ic { grid-row: span 2; font-size: 30px; width: 44px; height: 44px; display: grid; place-items: center; background: #0a0f15; border-radius: 12px; }
.card b { font-size: 15px; }
.card .lv { font: 800 11px var(--mono); color: var(--gold); }
.card .lv.new { color: var(--g); }
.card p { grid-column: 1 / -1; margin: 6px 0 0; font-size: 12.5px; color: #b6c3cf; }
.card .k { position: absolute; }
.card kbd { float: right; }

/* chat + voice */
.chat { position: absolute; left: 12px; bottom: 66px; width: min(360px, 60vw); display: grid; gap: 6px; font-family: var(--body); }
.chat-log { display: grid; gap: 3px; max-height: 196px; overflow: hidden; align-content: end; }
.cm { font-size: 13.5px; line-height: 1.35; background: rgba(0,0,0,.55); padding: 3px 9px; border-radius: 8px; width: fit-content; max-width: 100%; word-wrap: break-word; text-shadow: 0 1px 2px #000; transition: opacity .6s; }
.cm b { font-weight: 700; } .cm .tag { font: 700 10px var(--mono); color: var(--muted); margin-right: 4px; }
.cm.sys { color: var(--muted); font-style: italic; }
.cm.old { opacity: 0; } .chat.open .cm.old { opacity: .85; }
.chat-form input { background: rgba(0,0,0,.82); border: 2px solid var(--g); padding: 8px 11px; font-size: 14px; pointer-events: auto; }
.talk-pill { position: absolute; left: 50%; bottom: 150px; transform: translateX(-50%); background: rgba(0,0,0,.78); border: 2px solid var(--g); color: var(--g); font: 800 13px var(--mono); padding: 6px 14px; border-radius: 99px; display: flex; gap: 8px; align-items: center; }
.talk-pill .mic { animation: blink .8s infinite; }
.voice-btns { position: absolute; right: 176px; top: 70px; display: flex; flex-direction: column; gap: 6px; }
.voice-btns button { width: 30px; height: 30px; border-radius: 8px; border: 1px solid #333; background: rgba(0,0,0,.55); font-size: 14px; display: grid; place-items: center; pointer-events: auto; }
.voice-btns button.off { opacity: .5; }
#btn-talk.on { background: rgba(34,255,136,.35); border-color: var(--g); }
/* end screen */
.end { position: fixed; inset: 0; z-index: 6; display: grid; place-items: center; background: radial-gradient(ellipse at center, rgba(0,0,0,.45), rgba(0,0,0,.82)); animation: fade .4s; padding: 16px; }
@keyframes fade { from { opacity: 0; } }
.end-card { width: min(460px, 100%); background: linear-gradient(180deg, #111821, #0a0e13); border: 2px solid #2a3846; border-radius: 22px; padding: 26px 22px 20px; text-align: center; box-shadow: 0 30px 90px rgba(0,0,0,.6); }
.end-big { font: 64px/1 var(--head); color: var(--r); text-shadow: 0 0 40px rgba(255,59,92,.55), 0 5px 0 #000; }
.end.win .end-big { color: var(--g); text-shadow: 0 0 40px rgba(34,255,136,.55), 0 5px 0 #000; font-size: 48px; }
.end-sub { font-size: 16px; color: #c3cfda; margin: 10px 0 16px; }
.end-sub b { color: #fff; } .end-sub .g { color: var(--g); }
.end-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 18px; }
.end-stats div { background: #0a0f15; border: 1px solid var(--line); border-radius: 12px; padding: 8px; }
.end-stats span { display: block; font: 700 10px var(--mono); color: var(--muted); }
.end-stats b { font: 20px var(--head); font-weight: 400; }
.end-btns { display: grid; grid-template-columns: 1fr auto; gap: 10px; }

/* modal */
.modal { position: fixed; inset: 0; z-index: 8; background: rgba(0,0,0,.7); display: grid; place-items: center; padding: 16px; }
.modal-card { position: relative; width: min(460px, 100%); max-height: 90vh; overflow: auto; background: var(--panel2); border: 1px solid #2a3846; border-radius: 18px; padding: 22px; }
.modal-card h3 { font: 22px var(--head); font-weight: 400; margin: 0 0 12px; }
.modal-card h4 { margin: 18px 0 8px; }
.modal .x { position: absolute; top: 10px; right: 10px; background: none; border: 0; font-size: 18px; color: var(--muted); }
.w-bal { background: #0a0f15; border: 1px solid var(--line); border-radius: 12px; padding: 12px; margin-bottom: 8px; }
.w-bal span { display: block; font: 700 10px var(--mono); color: var(--muted); }
.w-bal b { font: 28px var(--head); font-weight: 400; color: var(--g); }
.w-bal small { display: block; color: var(--muted); font-family: var(--mono); }
#w-form { display: grid; gap: 10px; }
.wh { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.st { font: 700 11px var(--mono); text-transform: uppercase; }
.st.pending { color: var(--gold); } .st.paid { color: var(--g); } .st.rejected { color: var(--r); }

#toasts { position: fixed; z-index: 9; left: 50%; bottom: 20px; transform: translateX(-50%); display: grid; gap: 8px; justify-items: center; pointer-events: none; }
.toast { background: rgba(10,14,20,.95); border: 1px solid #2a3846; border-radius: 12px; padding: 10px 16px; font-size: 14px; animation: notein .25s; max-width: 90vw; }
.toast.out { opacity: 0; transition: opacity .4s; }

/* ---------- phones / small screens ---------- */
@media (max-width: 980px) {
  .hero { grid-template-columns: minmax(0, 1fr); padding-top: 30px; gap: 24px; }
  h1 { font-size: 46px; }
  .band { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .beasts { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 560px) {
  .topbar { padding: 8px 12px; gap: 8px; }
  .brand span { font-size: 18px; } .brand img { width: 28px; height: 28px; }
  .ticker { display: none; }
  .page { padding: 0 16px 30px; }
  h1 { font-size: 36px; }
  .lede { font-size: 15px; }
  .statrow { grid-template-columns: 1fr 1fr; }
  .statrow b { font-size: 22px; }
  .heroes { gap: 6px; }
  .hero-opt canvas { width: 44px; height: 44px; }
  .hero-opt span { font-size: 11px; }
  .steps { grid-template-columns: 1fr; }
  .timeline li { font-size: 9px; } .timeline li b { font-size: 11px; }
  .timeline li:nth-child(4) { top: 44px; }
  .timeline { padding-bottom: 70px; }
}
@media (pointer: coarse) {
  .touch-only { display: block; }
  .keys-hint { display: none; }
  .hud-l { width: 180px; }
  .timer { font-size: 30px; }
  #minimap { width: 104px; height: 104px; }
  .hud-exit { right: 12px; top: 146px; }
  .build { bottom: 10px; max-width: 64vw; }
  .slot { width: 34px; height: 34px; font-size: 16px; }
  .levelup { bottom: 130px; }
  .chat { bottom: 58px; width: 62vw; } .chat-log { max-height: 110px; } .cm { font-size: 11.5px; }
  .voice-btns { right: 12px; top: 186px; } .voice-btns button { width: 40px; height: 40px; font-size: 18px; display: grid; }
  #btn-talk { width: 56px !important; height: 56px !important; border-radius: 50% !important; font-size: 24px !important; }
  .card { grid-template-columns: 1fr; padding: 8px; text-align: center; }
  .card .ic { grid-row: auto; margin: 0 auto; }
  .card p { display: none; }
  .card kbd { display: none; }
  .notes { top: auto; bottom: 150px; width: 86vw; }
  .note { font-size: 12px; padding: 4px 10px; }
  .note.big { font-size: 13px; }
}
@media (max-width: 560px) and (pointer: coarse) {
  .hud-top { top: 28px; left: 8px; right: 8px; }
  .hud-l { width: 140px; }
  .bag b { font-size: 15px; }
  .bag small { display: none; }
  .coin { font-size: 11px; }
  .timer { font-size: 26px; }
  .phase { font-size: 10px; }
  #minimap { width: 84px; height: 84px; }
  .hud-exit { right: 8px; top: 120px; }
  .voice-btns { top: 158px; right: 8px; }
}

@media (max-width: 560px) { .eyebrow { font-size: 10px; letter-spacing: .8px; } .lu-cards { gap: 6px; } }
.voice-btns button.touch-only { display: none; }
@media (pointer: coarse) { .voice-btns button.touch-only { display: grid; } }
@media (max-width: 760px) { .keys-hint { display: none; } }

/* X (Twitter) links */
.icon-btn.x-btn { color: var(--text); text-decoration: none; }
.icon-btn.x-btn svg { width: 17px; height: 17px; }
.icon-btn.x-btn:hover { border-color: #3a4a5a; background: #141c25; }
.x-follow { display: flex; align-items: center; justify-content: center; gap: 9px; margin-top: 10px; padding: 9px 12px; border-radius: 12px; background: #000; border: 1px solid #2a3846; color: var(--text); text-decoration: none; font-size: 14px; transition: border-color .12s; }
.x-follow svg { width: 17px; height: 17px; flex: none; }
.x-follow:hover { border-color: #e8f0f6; }
.foot a { color: var(--g); }

/* $RUGRAID on Pump.fun */
.buy-btn { display: flex; align-items: center; gap: 7px; height: 36px; padding: 0 12px; border-radius: 10px; background: linear-gradient(180deg, #3dff9a, #12c46a); color: #03140a; font: 800 13px var(--mono); text-decoration: none; flex: none; box-shadow: 0 0 18px rgba(34,255,136,.25); }
.buy-btn svg, .buy-card svg { width: 18px; height: 18px; flex: none; }
.buy-btn:hover, .buy-card:hover { filter: brightness(1.08); }
.buy-card { display: flex; align-items: center; justify-content: center; gap: 9px; margin-top: 12px; padding: 10px 12px; border-radius: 12px; background: linear-gradient(180deg, #3dff9a, #12c46a); color: #03140a; text-decoration: none; font-size: 15px; font-weight: 600; }
.ca-copy { width: 100%; display: flex; align-items: center; gap: 8px; margin-top: 8px; padding: 8px 12px; border-radius: 12px; background: #0a0f15; border: 1px dashed #2f4152; color: var(--text); font: 600 13px var(--mono); }
.ca-copy .ca-l { color: var(--g); font-weight: 800; }
.ca-copy .ca-v { flex: 1; text-align: left; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ca-copy .ca-c { color: var(--muted); font-size: 11px; border: 1px solid #2f4152; border-radius: 6px; padding: 1px 7px; }
.ca-copy:hover { border-color: var(--g); }
.ca-inline { background: none; border: 0; padding: 0; color: var(--muted); font: 12px var(--mono); text-decoration: underline dotted; word-break: break-all; }
@media (max-width: 560px) { .buy-btn span { display: none; } .buy-btn { padding: 0 9px; } }
@media (max-width: 560px) { .topbar .pill { display: none; } .brand { margin-right: auto; } }
