:root {
    --ink: #0e1116; --panel: #161b24; --panel2: #1d2430; --line: rgba(255,255,255,.1); --text: #f2efe8; --muted: #9aa3b2;
    --hot: #ff5a1f; --hot2: #ff8a3d; --cyan: #22d3ee; --lime: #a3e635; --paper: #f5f1e8; --danger: #ef4444; --gold: #fbbf24;
    --display: 'Bungee', 'Arial Black', Impact, sans-serif;
    --body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --r: 16px;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--ink); color: var(--text); font-family: var(--body); -webkit-font-smoothing: antialiased; }
body { min-height: 100vh; overflow-x: hidden; }
button { font: inherit; color: inherit; cursor: pointer; }
a { color: var(--cyan); }
[hidden] { display: none !important; }

.app { max-width: 1280px; margin: 0 auto; padding: 0 12px 24px; }
.topbar { display: flex; align-items: center; justify-content: space-between; height: 56px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.logo { font-family: var(--display); background: var(--hot); color: #fff; width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; font-size: 15px; transform: rotate(-6deg); box-shadow: 0 3px 0 #b33a10; }
.brand-name { font-family: var(--display); font-size: 18px; letter-spacing: .5px; }
.brand-name b { color: var(--hot); font-weight: 400; }
.topnav { display: flex; gap: 16px; }
.topnav a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: 14px; }
.topnav a:hover { color: var(--text); }

/* ── stage ── */
.stage { position: relative; width: 100%; height: min(78vh, 760px); min-height: 520px; border-radius: 20px; overflow: hidden; background: #b9d9ee;
    box-shadow: 0 20px 60px rgba(0,0,0,.45), 0 0 0 1px var(--line); touch-action: none; user-select: none; -webkit-user-select: none; }
.stage:fullscreen { height: 100vh; border-radius: 0; }
.stage.pseudo-full { position: fixed; inset: 0; width: 100vw; height: 100vh; height: 100dvh; max-height: none; min-height: 0; border-radius: 0; z-index: 1000; }
html.no-scroll, html.no-scroll body { overflow: hidden; }
.canvas, .canvas canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hud { position: absolute; inset: 0; pointer-events: none; }
.hud button, .hud .vol { pointer-events: auto; }
.hud-top { position: absolute; top: 12px; left: 12px; right: 12px; display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.scorebox { background: rgba(14,17,22,.82); backdrop-filter: blur(8px); border: 1px solid var(--line); border-radius: 14px; padding: 10px 14px; min-width: 190px; max-width: 46%; }
.corp { font-weight: 900; font-size: 13px; color: var(--hot2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lbl { font-size: 10px; letter-spacing: 1.5px; color: var(--muted); font-weight: 800; margin-top: 2px; }
.money { font-family: var(--display); font-size: 28px; line-height: 1.05; color: #fff; text-shadow: 0 2px 0 rgba(0,0,0,.4); font-variant-numeric: tabular-nums; }
.ratio-row { display: flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 800; color: var(--muted); margin-top: 6px; }
.bar { flex: 1; height: 8px; border-radius: 99px; background: rgba(255,255,255,.12); overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--hot), var(--gold)); border-radius: 99px; transition: width .2s; }
.goal { margin-top: 6px; font-size: 12px; font-weight: 800; color: var(--gold); }
.goal.won { color: var(--lime); }
.finish { margin-top: 8px; width: 100%; border: 0; border-radius: 10px; padding: 7px 10px; font-weight: 900; font-size: 13px; background: rgba(255,255,255,.1); }
.finish:hover { background: rgba(255,255,255,.18); }
.finish.ready { background: var(--lime); color: #111; animation: pulse 1s infinite; }
@keyframes pulse { 0%,100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(163,230,53,.6); } 50% { transform: scale(1.04); box-shadow: 0 0 0 10px rgba(163,230,53,0); } }
.side { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.rankbox { background: rgba(14,17,22,.82); border: 1px solid var(--line); border-radius: 12px; padding: 6px 12px; text-align: right; }
.rankbox small { display: block; font-size: 10px; letter-spacing: 1.5px; color: var(--muted); font-weight: 800; }
.rankbox b { font-weight: 900; font-size: 15px; }
.rankbox b.up { animation: rankup .9s; }
@keyframes rankup { 0% { color: var(--gold); transform: scale(1.5); } 100% { color: inherit; transform: scale(1); } }
.tools { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.tools button { width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line); background: rgba(14,17,22,.82); font-size: 16px; display: grid; place-items: center; }
.tools button:hover { background: var(--panel2); }
#btn-music.off { opacity: .45; }
.vol { display: flex; align-items: center; gap: 8px; background: rgba(14,17,22,.92); border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px; font-size: 13px; font-weight: 700; }
.vol input { width: 120px; accent-color: var(--hot); }

.combo { position: absolute; top: 46%; right: 18px; font-family: var(--display); font-size: 26px; color: var(--gold); text-shadow: 0 3px 0 #000a; opacity: 0; transform: scale(.8); transition: .15s; }
.combo.show { opacity: 1; transform: scale(1); }
.toast { position: absolute; top: 110px; left: 50%; transform: translateX(-50%); background: var(--hot); color: #fff; font-weight: 900; padding: 10px 18px; border-radius: 999px;
    font-size: 15px; white-space: nowrap; opacity: 0; box-shadow: 0 8px 24px rgba(0,0,0,.35); max-width: 92%; overflow: hidden; text-overflow: ellipsis; }
.toast.show { animation: toast 2.6s forwards; }
@keyframes toast { 0% { opacity: 0; transform: translate(-50%, -12px) scale(.9); } 8% { opacity: 1; transform: translate(-50%, 0) scale(1.05); } 14% { transform: translate(-50%, 0) scale(1); } 85% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -8px); } }
.aim { position: absolute; top: 160px; left: 50%; transform: translateX(-50%); background: var(--cyan); color: #04212a; font-weight: 900; padding: 9px 16px; border-radius: 999px; opacity: 0; transition: .2s; white-space: nowrap; }
.aim.show { opacity: 1; animation: blink 1s infinite; }
@keyframes blink { 50% { opacity: .55; } }
.hint { position: absolute; left: 50%; bottom: 96px; transform: translateX(-50%); background: rgba(14,17,22,.85); padding: 8px 14px; border-radius: 999px; font-size: 13px; font-weight: 600;
    opacity: 0; transition: opacity .4s; white-space: pre-line; text-align: center; max-width: 94%; }
.hint.show { opacity: 1; }
.bubble { position: absolute; left: 0; top: 0; max-width: 260px; background: #fff; color: #111; font-weight: 800; font-size: 15px; line-height: 1.25; padding: 10px 14px; border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0,0,0,.3); opacity: 0; transition: opacity .2s; text-align: center; margin-top: -22px; }
.bubble::after { content: ''; position: absolute; left: 50%; bottom: -9px; margin-left: -9px; border: 9px solid transparent; border-top-color: #fff; border-bottom: 0; }
.bubble.show { opacity: 1; }
.finder { position: absolute; left: 0; top: 0; display: flex; align-items: center; gap: 4px; background: var(--hot); color: #fff; border: 0; border-radius: 999px; padding: 6px 10px; font-weight: 900; font-size: 12px;
    opacity: 0; pointer-events: none; transition: opacity .2s; box-shadow: 0 6px 16px rgba(0,0,0,.35); }
.finder.show { opacity: 1; pointer-events: auto; }
.finder-arrow { position: absolute; left: 50%; top: 50%; width: 0; height: 0; margin: -7px 0 0 -6px; border: 7px solid transparent; border-left: 12px solid var(--hot); border-right: 0; }
.pops { position: absolute; inset: 0; overflow: hidden; }
.pop { position: absolute; transform: translate(-50%, -50%); font-family: var(--display); font-size: 18px; color: #fff; text-shadow: 0 2px 0 #000, 0 0 8px rgba(0,0,0,.6); animation: pop 1.1s forwards; white-space: nowrap; }
.pop.big { font-size: 26px; color: var(--gold); }
.pop.talk { font-family: var(--body); font-weight: 900; font-size: 13px; background: #fff; color: #111; padding: 4px 8px; border-radius: 10px; text-shadow: none; animation-duration: 2s; }
@keyframes pop { 0% { opacity: 0; transform: translate(-50%, -30%) scale(.6); } 15% { opacity: 1; transform: translate(-50%, -60%) scale(1.15); } 100% { opacity: 0; transform: translate(-50%, -190%) scale(1); } }
.labels { position: absolute; inset: 0; overflow: hidden; }
.wname { position: absolute; left: 50%; bottom: 92px; transform: translateX(-50%); background: rgba(14,17,22,.9); padding: 6px 14px; border-radius: 999px; font-size: 13px; font-weight: 800; opacity: 0; white-space: nowrap; }
.wname.show { animation: wname 2.2s forwards; }
@keyframes wname { 0% { opacity: 0; } 10%, 80% { opacity: 1; } 100% { opacity: 0; } }
.weapons { position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%); display: flex; gap: 6px; padding: 6px; background: rgba(14,17,22,.82); border: 1px solid var(--line); border-radius: 16px; max-width: calc(100% - 110px); overflow-x: auto; scrollbar-width: none; }
.weapons::-webkit-scrollbar { display: none; }
.weapons button { pointer-events: auto; position: relative; flex: none; width: 62px; height: 64px; border-radius: 12px; border: 2px solid transparent; background: var(--panel2); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; overflow: hidden; }
.weapons button .ic { font-size: 24px; line-height: 1; }
.weapons button small { font-size: 10.5px; font-weight: 800; color: var(--muted); }
.weapons button kbd { position: absolute; top: 3px; left: 5px; font: 800 9px var(--body); color: var(--muted); opacity: .8; }
.weapons button.on { border-color: var(--hot); background: #2a1d18; }
.weapons button.on small { color: #fff; }
.weapons button::after { content: ''; position: absolute; inset: 0; background: rgba(0,0,0,.55); transform-origin: bottom; transform: scaleY(calc(1 - var(--cd, 1))); pointer-events: none; }
.nuke { position: absolute; right: 12px; bottom: 12px; width: 84px; height: 84px; border-radius: 50%; border: 0; pointer-events: auto;
    background: conic-gradient(var(--cyan) calc(var(--g, 0) * 360deg), rgba(255,255,255,.12) 0); padding: 5px; }
.nuke > span { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 100%; height: 100%; border-radius: 50%; background: #10151d; }
.nuke i { font-style: normal; font-size: 26px; line-height: 1; }
.nuke b { font-family: var(--display); font-size: 11px; color: var(--muted); font-weight: 400; }
.nuke.ready { animation: nukeglow 1s infinite; }
.nuke.ready > span { background: #062a33; }
.nuke.ready b { color: var(--cyan); }
@keyframes nukeglow { 50% { box-shadow: 0 0 0 10px rgba(34,211,238,.25), 0 0 30px rgba(34,211,238,.8); } }
.keys { transition: opacity .3s; position: absolute; left: 12px; bottom: 96px; font-size: 11.5px; color: #fff; background: rgba(14,17,22,.65); padding: 6px 10px; border-radius: 10px; }
.keys b { color: var(--gold); }
.credit { position: absolute; left: 12px; bottom: 12px; display: flex; align-items: center; gap: 6px; font-size: 10.5px; color: #fff; pointer-events: auto; }
.credit button { width: 24px; height: 24px; border-radius: 50%; border: 0; background: rgba(14,17,22,.7); font-size: 12px; }
.credit span { background: rgba(14,17,22,.7); padding: 4px 8px; border-radius: 8px; display: none; max-width: 60vw; }
.credit.open span { display: inline; }
.flash { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; }
.flash.go { animation: flash .7s ease-out; }
@keyframes flash { 0% { opacity: .95; } 100% { opacity: 0; } }

/* building name tags */
.tag { position: absolute; left: 0; top: 0; padding: 3px 8px; border-radius: 8px; background: rgba(14,17,22,.78); color: #fff; font-size: 11.5px; font-weight: 700; white-space: nowrap;
    transform: translate(-9999px, 0); opacity: 0; transition: opacity .3s; will-change: transform; }
.tag.target { background: var(--hot); font-weight: 900; font-size: 13px; }
.tag.on { opacity: 1; }

/* ── overlays & cards ── */
.overlay { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(8,10,14,.55); backdrop-filter: blur(3px); padding: 14px; z-index: 5; overflow-y: auto; }
.card { width: min(560px, 100%); background: var(--panel); border: 1px solid var(--line); border-radius: 22px; padding: 22px; box-shadow: 0 30px 80px rgba(0,0,0,.5); max-height: 100%; overflow-y: auto; }
.card h1, .card h2 { margin: 2px 0 8px; }
.card h2 { font-family: var(--display); font-weight: 400; font-size: 24px; }
.kicker { margin: 0; font-size: 11px; letter-spacing: 2px; font-weight: 900; color: var(--hot2); }
.start-card { width: min(640px, 100%); }
.start-card h1 { font-family: var(--display); font-weight: 400; font-size: clamp(30px, 6vw, 46px); line-height: 1; letter-spacing: 1px; }
.start-card h1 span { color: var(--hot); }
.sub { color: var(--muted); margin: 6px 0 14px; font-size: 14.5px; }
.hq-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin-bottom: 14px; }
.hq { border: 1px solid var(--line); background: var(--panel2); border-radius: 12px; padding: 10px 4px 8px; display: flex; flex-direction: column; align-items: center; gap: 4px; transition: .12s; min-width: 0; }
.hq:hover { border-color: var(--hot); transform: translateY(-2px); background: #251a16; }
.hq .mono { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-family: var(--display); font-size: 14px; color: #fff; }
.hq b { font-size: 12px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.hq small { font-size: 10px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.search { display: flex; gap: 8px; }
.search input { flex: 1; min-width: 0; height: 48px; border-radius: 12px; border: 1px solid var(--line); background: #0c1016; color: var(--text); font: 600 16px var(--body); padding: 0 14px; outline: none; }
.search input:focus { border-color: var(--hot); }
.search button, .primary { border: 0; border-radius: 12px; background: var(--hot); color: #fff; font-weight: 900; padding: 0 20px; height: 48px; font-size: 15px; box-shadow: 0 3px 0 #b33a10; }
.search button:active, .primary:active { transform: translateY(2px); box-shadow: 0 1px 0 #b33a10; }
.primary { width: 100%; margin-top: 12px; }
.msg { margin: 10px 0 0; color: var(--gold); font-size: 13.5px; font-weight: 600; }
.results { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.result { text-align: left; border: 1px solid var(--line); background: var(--panel2); border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; }
.result:hover { border-color: var(--hot); }
.result b { font-size: 15px; }
.result small { color: var(--muted); font-size: 12px; }
.result.friend { border-color: var(--gold); }
.addrname { display: flex; flex-direction: column; gap: 6px; background: var(--panel2); border-radius: 12px; padding: 12px; }
.addrname input { height: 44px; border-radius: 10px; border: 1px solid var(--line); background: #0c1016; color: var(--text); font: 600 15px var(--body); padding: 0 12px; }
.boss-row { margin-top: 14px; width: 100%; display: flex; align-items: center; gap: 10px; border: 1px dashed var(--line); background: transparent; border-radius: 12px; padding: 10px 12px; text-align: left; }
.boss-row .ic { font-size: 22px; }
.boss-row .txt { flex: 1; display: flex; flex-direction: column; }
.boss-row small { color: var(--muted); font-size: 11px; font-weight: 700; }
.boss-row .go { color: var(--hot2); font-weight: 800; font-size: 13px; }
.start-foot { margin-top: 12px; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.link { background: none; border: 0; color: var(--cyan); font-weight: 700; font-size: 13.5px; padding: 6px; text-decoration: underline; text-underline-offset: 3px; }
.note { color: var(--muted); font-size: 11.5px; text-align: center; }
.spinner { width: 46px; height: 46px; border-radius: 50%; border: 5px solid rgba(255,255,255,.12); border-top-color: var(--hot); animation: spin .8s linear infinite; margin: 0 auto 12px; }
@keyframes spin { to { transform: rotate(360deg); } }
.loading-card { text-align: center; width: min(400px, 100%); }
.loading-card p { font-weight: 800; margin: 0 0 6px; }
.loading-card small { color: var(--muted); display: block; min-height: 18px; }

/* boss */
.boss-card { width: min(760px, 100%); }
.boss-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 14px; }
.boss-preview { position: relative; background: radial-gradient(circle at 50% 35%, #2b3442, #121721); border-radius: 16px; min-height: 260px; }
.boss-preview canvas { width: 100%; height: 100%; display: block; position: absolute; inset: 0; }
.dice { position: absolute; left: 10px; bottom: 10px; border: 0; background: rgba(255,255,255,.12); border-radius: 10px; padding: 6px 10px; font-weight: 800; font-size: 13px; }
.tabs { display: flex; gap: 4px; background: #0c1016; padding: 4px; border-radius: 12px; margin-bottom: 10px; }
.tabs button { flex: 1; border: 0; background: none; border-radius: 9px; padding: 8px 0; font-weight: 800; font-size: 13px; color: var(--muted); }
.tabs button.on { background: var(--panel2); color: #fff; }
.pane { display: none; flex-direction: column; gap: 10px; }
.pane.on { display: flex; }
.field { display: flex; flex-direction: column; gap: 5px; }
.field > span { font-size: 11px; font-weight: 800; letter-spacing: 1px; color: var(--muted); text-transform: uppercase; }
.field input { height: 40px; border-radius: 10px; border: 1px solid var(--line); background: #0c1016; color: var(--text); font: 600 15px var(--body); padding: 0 12px; outline: none; }
.field input.bad { border-color: var(--danger); }
.seg { display: flex; gap: 4px; flex-wrap: nowrap; }
.seg.wrap { flex-wrap: wrap; }
.seg button { flex: 1 0 auto; border: 1px solid var(--line); background: var(--panel2); border-radius: 9px; padding: 7px 9px; font-size: 12.5px; font-weight: 700; }
.seg button.on { border-color: var(--hot); background: #2a1d18; color: #fff; }
.swatches { display: flex; flex-wrap: wrap; gap: 6px; }
.swatches button { width: 30px; height: 30px; border-radius: 50%; border: 2px solid rgba(255,255,255,.2); }
.swatches button.on { border-color: #fff; box-shadow: 0 0 0 2px var(--hot); }
.sugg { display: flex; flex-wrap: wrap; gap: 5px; }
.sugg button { border: 1px solid var(--line); background: transparent; border-radius: 999px; padding: 4px 10px; font-size: 12px; font-weight: 700; color: var(--muted); }
.sugg button:hover { color: #fff; border-color: var(--hot); }
.warn { color: var(--danger); font-size: 12.5px; font-weight: 700; margin: 4px 0 0; }

.ranklist { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.ranklist li { display: flex; align-items: center; gap: 10px; background: var(--panel2); border-radius: 12px; padding: 9px 12px; min-height: 46px; }
.ranklist li > i { font-style: normal; width: 26px; text-align: center; font-weight: 900; color: var(--muted); flex: none; }
.ranklist li > span { flex: 1; min-width: 0; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ranklist li > span small { display: block; font-weight: 600; font-size: 11px; color: var(--muted); }
.ranklist li > em { font-style: normal; font-weight: 900; color: var(--gold); font-variant-numeric: tabular-nums; flex: none; }
.ranklist li.empty { justify-content: center; color: var(--muted); font-weight: 600; font-size: 13.5px; text-align: center; }
.ranklist .rg { margin-left: 6px; border: 0; background: rgba(34,211,238,.12); color: var(--cyan); font-size: 10.5px; font-weight: 800; border-radius: 6px; padding: 2px 6px; vertical-align: middle; }
.ranklist img.bossface { width: 38px; height: 38px; border-radius: 10px; background: #2b3442; flex: none; }
.ranklist.loading { opacity: .5; }

.tut-list { padding-left: 18px; margin: 10px 0; display: flex; flex-direction: column; gap: 9px; font-size: 14.5px; line-height: 1.4; }
.tut-list b { color: var(--gold); }
.end-card { text-align: center; }
.end-card h2 { font-size: 26px; }
.end-sub { color: var(--muted); margin: 0 0 12px; font-weight: 600; }
.stats { display: grid; grid-template-columns: 1fr auto; gap: 6px 14px; text-align: left; background: var(--panel2); border-radius: 14px; padding: 12px 16px; margin: 0; }
.stats dt { color: var(--muted); font-weight: 600; font-size: 14px; }
.stats dd { margin: 0; font-weight: 900; text-align: right; font-size: 14px; }
.stats dd.big { color: var(--gold); font-family: var(--display); font-weight: 400; font-size: 20px; }
.end-rank, .end-vs { font-size: 13.5px; font-weight: 700; color: var(--cyan); margin: 10px 0 0; }
.end-vs.won { color: var(--lime); }
.hint2 { color: var(--gold); }
.row { display: flex; gap: 8px; margin-top: 8px; }
.row button { flex: 1; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel2); font-weight: 800; }
.row button:hover { border-color: var(--hot); }

.share-card { text-align: center; }
.share-tabs { display: inline-flex; gap: 4px; background: #0c1016; padding: 4px; border-radius: 12px; margin-bottom: 10px; }
.share-tabs button { border: 0; background: none; border-radius: 9px; padding: 7px 14px; font-weight: 800; font-size: 13px; color: var(--muted); }
.share-tabs button.on { background: var(--panel2); color: #fff; }
.share-preview { position: relative; height: min(42vh, 380px); display: grid; place-items: center; background: #0c1016; border-radius: 14px; overflow: hidden; }
.share-preview img, .share-preview video { max-width: 100%; max-height: 100%; border-radius: 10px; position: relative; z-index: 1; }
.share-preview .spinner { position: absolute; display: none; }
.share-card.busy .share-preview .spinner { display: block; }
.share-main { display: flex; gap: 8px; }
.share-main .primary { flex: 1; }
.share-main button[data-act="native"] { margin-top: 12px; height: 48px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel2); font-weight: 900; padding: 0 16px; }
.share-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 12px 0 8px; }
.share-row button { border: 0; border-radius: 12px; padding: 9px 4px; display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 800; color: #fff; }
.share-row i { font-style: normal; font-weight: 900; font-size: 17px; line-height: 1; }
.s-x { background: #111; border: 1px solid #333 !important; } .s-fb { background: #1877f2; } .s-rd { background: #ff4500; } .s-li { background: #0a66c2; }
.s-wa { background: #25d366; } .s-sms { background: #34c759; } .s-ig { background: linear-gradient(45deg, #f9ce34, #ee2a7b, #6228d7); } .s-copy { background: var(--panel2); }

/* ── boards & info ── */
.boards { display: grid; grid-template-columns: 1.4fr 1fr; gap: 14px; margin-top: 18px; }
.board { background: var(--panel); border: 1px solid var(--line); border-radius: 20px; padding: 18px; }
.board-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.board-head h2 { font-family: var(--display); font-weight: 400; font-size: 19px; margin: 0; }
.board-go { border: 0; background: var(--hot); color: #fff; font-weight: 900; border-radius: 999px; padding: 7px 14px; font-size: 13px; white-space: nowrap; }
.board-desc { color: var(--muted); font-size: 13px; margin: 8px 0 0; }
.period { display: inline-flex; gap: 4px; background: #0c1016; padding: 3px; border-radius: 10px; margin-top: 10px; }
.period button { border: 0; background: none; border-radius: 8px; padding: 5px 12px; font-weight: 800; font-size: 12.5px; color: var(--muted); }
.period button.on { background: var(--panel2); color: #fff; }
.regions { margin-top: 10px; display: flex; flex-direction: column; gap: 8px; }
.regions .rsearch input { width: 100%; height: 38px; border-radius: 10px; border: 1px solid var(--line); background: #0c1016; color: var(--text); font: 600 14px var(--body); padding: 0 12px; }
.chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.chips::-webkit-scrollbar { display: none; }
.chips button { flex: none; border: 1px solid var(--line); background: var(--panel2); border-radius: 999px; padding: 5px 11px; font-size: 12.5px; font-weight: 800; color: var(--muted); }
.chips button small { margin-left: 5px; opacity: .7; font-weight: 700; }
.chips button.on { background: var(--hot); color: #fff; border-color: var(--hot); }
.board .more { margin-top: 8px; width: 100%; border: 1px solid var(--line); background: transparent; border-radius: 10px; padding: 8px; font-weight: 800; color: var(--muted); }
.info { margin-top: 18px; background: var(--panel); border: 1px solid var(--line); border-radius: 20px; padding: 20px; line-height: 1.55; color: #d7d3cb; }
.info h2 { font-family: var(--display); font-weight: 400; margin: 0 0 8px; color: var(--text); }
.weapon-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; margin: 12px 0; }
.weapon-list div { background: var(--panel2); border-radius: 12px; padding: 10px 12px; font-size: 13.5px; }
.weapon-list b { display: block; color: #fff; }
.fine { font-size: 12px; color: var(--muted); }
.foot { text-align: center; color: var(--muted); font-size: 12px; padding: 20px 0 8px; }

@media (max-width: 860px) {
    .boards { grid-template-columns: 1fr; }
    .hq-grid { grid-template-columns: repeat(4, 1fr); }
    .boss-grid { grid-template-columns: 1fr; }
    .boss-preview { min-height: 200px; }
}
@media (max-width: 640px) {
    .app { padding: 0 0 18px; }
    .topbar { padding: 0 12px; }
    .topnav { display: none; }
    .stage { border-radius: 0; height: calc(100svh - 56px); min-height: 480px; }
    .scorebox { min-width: 0; max-width: 58%; padding: 8px 10px; }
    .money { font-size: 22px; }
    .tools button { width: 32px; height: 32px; font-size: 14px; }
    .tools { max-width: 140px; }
    .weapons { left: 8px; right: 82px; transform: none; max-width: none; bottom: 8px; }
    .weapons button { width: 54px; height: 56px; }
    .weapons button .ic { font-size: 21px; }
    .weapons button kbd { display: none; }
    .nuke { width: 68px; height: 68px; right: 8px; bottom: 8px; }
    .hint { bottom: 76px; font-size: 12px; }
    .wname { bottom: 74px; }
    .hq-grid { grid-template-columns: repeat(3, 1fr); }
    .card { padding: 16px; border-radius: 18px; }
    .boards, .info { margin-left: 12px; margin-right: 12px; }
    .share-row { grid-template-columns: repeat(4, 1fr); }
    .toast { font-size: 13px; top: 96px; }
    .bubble { font-size: 13px; max-width: 200px; }
}

/* leaderboard area search: suggestion dropdown */
.regions .rsearch { position: relative; display: flex; align-items: center; }
.regions .rsearch .x { position: absolute; right: 6px; width: 28px; height: 28px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); font-size: 14px; }
.regions .suggest { position: absolute; left: 0; right: 0; top: 42px; z-index: 3; background: var(--panel2); border: 1px solid var(--line); border-radius: 12px; padding: 4px; box-shadow: 0 12px 30px rgba(0,0,0,.45); display: flex; flex-direction: column; }
.regions .suggest button { text-align: left; border: 0; background: none; border-radius: 8px; padding: 8px 10px; font-weight: 700; font-size: 13.5px; display: flex; justify-content: space-between; }
.regions .suggest button:hover, .regions .suggest button.hi { background: #2a1d18; color: #fff; }
.regions .suggest button small { color: var(--muted); font-weight: 600; }
.regions .suggest p { margin: 6px 10px; color: var(--muted); font-size: 13px; }
