/* WORLD — night islands theme */
:root {
  --bg: #060608;
  --bg2: #0c0c10;
  --card: #101014;
  --card2: #16161c;
  --panel: rgba(12, 12, 16, 0.95);
  --line: rgba(255, 255, 255, 0.08);
  --line2: rgba(255, 140, 40, 0.28);
  --text: #f5f2ec;
  --soft: #d6d3cc;
  --muted: #8f8b84;
  --dim: #5c5953;
  --acc: #ff7a12;
  --acc2: #ff9a40;
  --accbg: rgba(255, 122, 18, 0.12);
  --gold: #ffc861;
  --sky: #5cc8ff;
  --mint: #4fd69c;
  --lilac: #a78bfa;
  --pink: #f472b6;
  --red: #ff4d6d;
  --up: #4fd69c;
  --down: #ff5d73;
  --display: 'Bricolage Grotesque', 'Plus Jakarta Sans', system-ui, sans-serif;
  --sans: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --r: 18px;
  --r2: 12px;
  --head: 76px;
  --shadow: 0 18px 50px -20px rgba(0, 0, 0, 0.8);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: var(--bg); color: var(--text); font-family: var(--sans); font-size: 14px; -webkit-font-smoothing: antialiased; }
body { min-height: 100vh; overflow-x: hidden; background: radial-gradient(1100px 600px at 85% -10%, rgba(255,122,18,.09), transparent 60%), var(--bg); }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, textarea, select { font: inherit; color: var(--text); }
em { font-style: normal; color: var(--acc); }
.muted { color: var(--muted); }
.small { font-size: 12px; }
::selection { background: var(--acc); color: #1a0f08; }
b, strong { font-weight: 700; }
.stats b, .tstats b, .grid3 b, .b-kpis b, .ll .v, .pod .val, .tbl td, .counters b { font-variant-numeric: tabular-nums; }

/* ---------- header ---------- */
.top { position: sticky; top: 0; z-index: 50; height: var(--head); padding: 12px 20px; }
.top-in {
  height: 100%; display: flex; align-items: center; gap: 22px; padding: 0 10px 0 16px;
  background: rgba(14, 14, 18, 0.8); backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3);
  border: 1px solid var(--line); border-radius: 999px; box-shadow: var(--shadow);
}
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 800; font-size: 23px; letter-spacing: -.01em; }
.logo { width: 34px; height: 34px; display: block; object-fit: contain; border-radius: 50%; }
.brand.sm { font-size: 17px; } .brand.sm .logo { width: 24px; height: 24px; }
.nav { display: flex; gap: 4px; margin-left: 10px; }
.nav a { padding: 9px 15px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--soft); transition: background .15s, color .15s; white-space: nowrap; }
.nav a:hover { color: #fff; background: rgba(255,255,255,.06); }
.nav a.on { color: #1a0f08; background: #fff; }
.top-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.search { position: relative; display: flex; align-items: center; gap: 9px; width: 250px; height: 42px; padding: 0 12px 0 14px; border-radius: 999px; background: rgba(255,255,255,.06); border: 1px solid transparent; transition: border-color .15s, background .15s; }
.search svg { width: 16px; height: 16px; color: var(--muted); flex: none; }
.search input { width: 100%; background: none; border: 0; outline: none; font-size: 13.5px; }
.search input::placeholder { color: var(--dim); }
.search kbd { font: 600 11px var(--sans); color: var(--muted); border: 1px solid var(--line2); border-radius: 6px; padding: 1px 6px; }
.search:focus-within { border-color: var(--acc); background: rgba(255,255,255,.08); }
.search-results { position: absolute; top: 50px; left: 0; right: 0; background: var(--card); border: 1px solid var(--line2); border-radius: 16px; display: none; overflow: hidden; box-shadow: var(--shadow); padding: 6px; }
.search-results.open { display: block; }
.sr { display: flex; align-items: center; gap: 10px; padding: 8px 10px; cursor: pointer; font-size: 13px; border-radius: 10px; }
.sr img { width: 26px; height: 26px; }
.sr:hover, .sr.on { background: var(--accbg); }
.sr b { color: #fff; } .sr span { color: var(--muted); margin-left: auto; font-size: 11.5px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; height: 42px; padding: 0 18px; border-radius: 999px; font-weight: 700; font-size: 13.5px; white-space: nowrap; transition: transform .12s, background .15s, box-shadow .15s, border-color .15s, color .15s; }
.btn svg { width: 17px; height: 17px; }
.btn-acc { background: var(--acc); color: #1a0f08; box-shadow: 0 8px 24px -10px rgba(255,122,18,.8), inset 0 -2px 0 rgba(0,0,0,.15); }
.btn-acc:hover { background: var(--acc2); transform: translateY(-1px); }
.btn-acc:active { transform: translateY(1px); }
.btn-line { border: 1.5px solid var(--line2); color: var(--text); background: rgba(255,255,255,.03); }
.btn-line:hover { border-color: var(--acc); color: var(--acc); }
.btn-ghost { border: 1.5px solid var(--line); color: var(--soft); }
.btn-ghost:hover { border-color: var(--soft); color: #fff; }
.btn-soft { background: rgba(255,255,255,.08); color: #fff; }
.btn-soft:hover { background: rgba(255,255,255,.14); }
.btn-lg { height: 52px; padding: 0 26px; font-size: 15px; }
.btn.wide { width: 100%; }
.burger { display: none; width: 42px; height: 42px; border-radius: 50%; background: rgba(255,255,255,.07); flex-direction: column; align-items: center; justify-content: center; gap: 4px; }
.burger span { width: 16px; height: 2px; border-radius: 2px; background: #fff; }

/* ---------- views ---------- */
.view { display: none; }
.view.active { display: block; }

/* ---------- stage ---------- */
.stage { position: relative; height: clamp(600px, calc(100vh - var(--head) - 24px), 900px); margin: 0 20px; border-radius: 28px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); }
#map { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: grab; touch-action: none; }
.hero {
  position: absolute; left: 22px; top: 22px; width: 430px; padding: 30px 30px 26px;
  background: rgba(10, 10, 13, 0.82); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--line); border-radius: 24px; z-index: 2; box-shadow: var(--shadow);
}
.pill-eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 9px; border-radius: 999px; background: var(--accbg); color: var(--acc2); font-size: 12.5px; font-weight: 700; margin-bottom: 18px; }
.pill-eyebrow i { width: 8px; height: 8px; border-radius: 50%; background: var(--acc); box-shadow: 0 0 0 3px rgba(255,122,18,.25); }
.hero h1 { font-family: var(--display); font-weight: 800; font-size: 54px; line-height: .98; letter-spacing: -.035em; margin-bottom: 16px; }
.hero h1 em { background: linear-gradient(95deg, #ff7a12, #ffb347); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { color: var(--soft); font-size: 15.5px; line-height: 1.6; margin-bottom: 22px; }
.hero-cta { display: flex; gap: 10px; flex-wrap: wrap; }
.steps { list-style: none; counter-reset: st; display: flex; flex-direction: column; gap: 10px; margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); }
.steps li { counter-increment: st; display: grid; grid-template-columns: 30px 1fr; column-gap: 12px; align-items: center; }
.steps li::before { content: counter(st); grid-row: span 2; width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; background: rgba(255,255,255,.07); color: var(--gold); font-weight: 800; font-size: 13px; }
.steps b { font-size: 13.5px; }
.steps span { color: var(--muted); font-size: 12.5px; }

.map-ui { position: absolute; top: 18px; right: 18px; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; transition: right .3s ease; z-index: 3; }
.minimap { position: relative; width: 190px; height: 120px; border-radius: 18px; background: rgba(10,10,13,.85); border: 1px solid var(--line); cursor: crosshair; overflow: hidden; backdrop-filter: blur(8px); }
.minimap canvas { width: 100%; height: 100%; display: block; }
.minimap span { position: absolute; left: 10px; top: 8px; font-size: 10px; font-weight: 800; letter-spacing: .14em; color: var(--muted); pointer-events: none; }
.zoom { display: flex; flex-direction: column; gap: 8px; }
.zoom button { width: 42px; height: 42px; font-size: 20px; font-weight: 600; display: grid; place-items: center; border-radius: 50%; background: rgba(10,10,13,.85); border: 1px solid var(--line); backdrop-filter: blur(8px); transition: background .15s, color .15s; }
.zoom button:hover { background: #fff; color: #1a0f08; }
.zoom svg { width: 17px; height: 17px; }
.stage.panel-open .map-ui { right: 424px; }

.counters { position: absolute; left: 50%; transform: translateX(-50%); bottom: 18px; display: flex; gap: 6px; padding: 6px; border-radius: 999px; background: rgba(10,10,13,.85); border: 1px solid var(--line); backdrop-filter: blur(10px); z-index: 2; }
.counters div { display: flex; align-items: center; gap: 7px; white-space: nowrap; padding: 7px 14px; border-radius: 999px; background: rgba(255,255,255,.05); font-size: 12.5px; color: var(--muted); }
.counters b { color: #fff; font-weight: 800; font-size: 14px; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--mint); }
.dot.live { animation: ping 1.8s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(79,214,156,.55); } 80%,100% { box-shadow: 0 0 0 7px rgba(79,214,156,0); } }
.hint { position: absolute; right: 22px; bottom: 26px; font-size: 12px; color: var(--muted); pointer-events: none; transition: right .3s; }
.stage.panel-open .hint { display: none; }

.focus-bar { position: absolute; top: 18px; left: 50%; transform: translate(-50%, -90px); display: flex; align-items: center; gap: 14px; padding: 6px 6px 6px 18px; background: var(--acc); color: #1a0f08; border-radius: 999px; font-size: 13.5px; font-weight: 700; transition: transform .3s; z-index: 4; visibility: hidden; box-shadow: var(--shadow); }
.focus-bar.on { transform: translate(-50%, 0); visibility: visible; }
.focus-bar button { padding: 7px 14px; border-radius: 999px; background: rgba(0,0,0,.18); font-size: 12.5px; font-weight: 700; }
.focus-bar button:hover { background: rgba(0,0,0,.3); }

/* ---------- side panel ---------- */
.panel {
  position: absolute; top: 12px; right: 12px; bottom: 12px; width: 396px; z-index: 5;
  background: var(--panel); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid var(--line2); border-radius: 22px;
  transform: translateX(110%); visibility: hidden; transition: transform .35s cubic-bezier(.2,.8,.2,1), visibility .35s; overflow-y: auto; padding: 22px 20px 28px;
  scrollbar-width: thin; scrollbar-color: rgba(255,140,40,.3) transparent; box-shadow: var(--shadow);
}
.panel.open { transform: none; visibility: visible; }
.p-close { position: absolute; top: 16px; right: 16px; width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.07); color: var(--soft); }
.p-close:hover { background: #fff; color: #1a0f08; }
.p-head { display: flex; gap: 14px; align-items: center; margin-bottom: 16px; padding-right: 40px; }
.p-avatar { width: 72px; height: 72px; border-radius: 20px; display: grid; place-items: center; background: linear-gradient(160deg, #2a1a0c, #121216); flex: none; position: relative; }
.p-avatar img.robo { width: 58px; height: 58px; }
.p-avatar img.coin { position: absolute; right: -4px; bottom: -4px; width: 26px; height: 26px; border-radius: 50%; object-fit: cover; border: 3px solid var(--card); }
.p-title { font-family: var(--display); font-size: 26px; font-weight: 800; letter-spacing: -.02em; }
.p-title small { font-family: var(--sans); font-size: 12px; color: var(--muted); font-weight: 600; margin-left: 4px; }
.p-sub { color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.p-mine { display: inline-block; margin-top: 6px; padding: 3px 9px; font-size: 10.5px; font-weight: 800; background: var(--acc); color: #1a0f08; border-radius: 999px; letter-spacing: .04em; }
.p-level { display: flex; justify-content: space-between; font-size: 12.5px; font-weight: 700; margin-bottom: 7px; }
.p-level b { color: var(--gold); }
.bar { height: 8px; background: rgba(255,255,255,.08); border-radius: 99px; overflow: hidden; margin-bottom: 16px; }
.bar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--acc), var(--gold)); transition: width .4s; }
.p-status { border-radius: var(--r2); padding: 13px 14px; margin-bottom: 14px; background: rgba(255,255,255,.045); }
.p-status .st { display: flex; align-items: center; gap: 8px; font-size: 11.5px; font-weight: 700; color: var(--muted); margin-bottom: 6px; }
.p-status .st b { color: #fff; }
.p-action { font-size: 14px; color: #fff; font-weight: 600; }
.p-line { margin-top: 8px; font-size: 12.5px; color: var(--soft); background: rgba(255,255,255,.05); padding: 8px 10px; border-radius: 10px 10px 10px 2px; }
.p-line:empty { display: none; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 14px; }
.grid3 > div { padding: 11px 12px; border-radius: var(--r2); background: rgba(255,255,255,.045); }
.grid3 span { display: block; font-size: 10.5px; font-weight: 700; letter-spacing: .04em; color: var(--muted); margin-bottom: 4px; }
.grid3 b { font-size: 16px; }
.p-sec { font-size: 12px; font-weight: 800; letter-spacing: .06em; color: var(--soft); margin: 20px 0 9px; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.p-sec > span:last-child:not(:first-child) { font-weight: 600; letter-spacing: 0; color: var(--muted); }
.p-persona { font-size: 13px; line-height: 1.55; color: var(--soft); background: rgba(167,139,250,.1); border-radius: var(--r2); padding: 11px 13px; }
.p-persona b { color: var(--lilac); display: block; font-size: 11px; letter-spacing: .06em; margin-bottom: 3px; }
.p-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 14px 0 4px; }
.p-btns .btn { height: 40px; font-size: 13px; }
.p-btns .btn.active { background: var(--acc); border-color: var(--acc); color: #1a0f08; }
.p-log { font-size: 12.5px; line-height: 1.5; }
.p-log div { display: flex; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.p-log time { color: var(--dim); flex: none; font-size: 11.5px; font-variant-numeric: tabular-nums; }
.p-log .k-connect, .p-log .k-level, .p-log .k-milestone, .p-log .k-xp { color: var(--gold); }
.tree { font-size: 13px; }
.fr-h { color: var(--muted); font-size: 12px; margin-bottom: 10px; } .fr-h b { color: var(--acc); }
.fr-list { display: flex; flex-wrap: wrap; gap: 6px; }
.fr { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 4px; border-radius: 999px; background: rgba(255,255,255,.06); font-weight: 700; font-size: 12px; cursor: pointer; }
.fr img { width: 22px; height: 22px; }
.fr small { color: var(--muted); font-weight: 600; }
.fr:hover { background: var(--accbg); color: var(--acc); }
.fr.more { padding: 4px 10px; color: var(--muted); cursor: default; }
.coin-box { border-radius: var(--r2); padding: 14px; margin-top: 10px; background: rgba(255,255,255,.045); }
.coin-box .kv { display: flex; justify-content: space-between; font-size: 13px; padding: 6px 0; }
.coin-box .kv span { color: var(--muted); }
.ca { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 10px; padding: 9px 12px; background: rgba(0,0,0,.2); border-radius: 10px; font-size: 12px; color: var(--soft); cursor: pointer; }
.ca span:last-child { color: var(--acc); font-weight: 800; }
.ca:hover { background: var(--accbg); }
.spark { width: 100%; height: 70px; display: block; margin-bottom: 6px; }
.up { color: var(--up); } .down { color: var(--down); }

/* ---------- sections + bento ---------- */
.sec { padding: 46px 20px 0; max-width: 1560px; margin: 0 auto; }
.sec-h { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin: 0 6px 18px; flex-wrap: wrap; }
.sec-h h2 { font-family: var(--display); font-size: 36px; font-weight: 800; letter-spacing: -.03em; }
.sec-h p { color: var(--muted); font-size: 14px; max-width: 520px; }
.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; }
.c-stats { grid-column: span 5; } .c-top { grid-column: span 7; }
.c-recent { grid-column: span 4; } .c-log { grid-column: span 4; } .c-mine { grid-column: span 4; }
.c-chat { grid-column: span 12; }
.c-dec { grid-column: span 6; } .c-tre { grid-column: span 3; } .c-duel { grid-column: span 3; }
.c-terr { grid-column: span 7; } .c-base { grid-column: span 5; }
.card { border: 1px solid var(--line); border-radius: var(--r); background: linear-gradient(180deg, rgba(255,255,255,.025), transparent 40%), var(--card); padding: 20px; min-width: 0; }
.card-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 16px; }
.card-h h3 { font-family: var(--display); font-size: 19px; font-weight: 700; letter-spacing: -.01em; }
.see { font-size: 12.5px; font-weight: 700; color: var(--muted); padding: 5px 10px; border-radius: 999px; background: rgba(255,255,255,.05); white-space: nowrap; }
.see:hover { color: #1a0f08; background: #fff; }
.live-tag { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 600; color: var(--mint); white-space: nowrap; }
.live-tag.red { color: #ff8fa3; } .live-tag.red .dot { background: var(--red); }
.live-tag.gold { color: var(--gold); } .live-tag.gold .dot { background: var(--gold); }
.live-tag.soft { color: var(--muted); }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.stats > div { padding: 14px 16px; border-radius: 14px; background: rgba(255,255,255,.045); }
.stats b { display: block; font-family: var(--display); font-size: 28px; font-weight: 800; letter-spacing: -.02em; margin-bottom: 2px; }
.stats span { font-size: 12.5px; color: var(--muted); }
.top-agents { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.ta { position: relative; border-radius: 16px; padding: 16px 8px 12px; text-align: center; cursor: pointer; background: rgba(255,255,255,.045); transition: background .15s, transform .15s; }
.ta:hover { background: rgba(255,255,255,.08); transform: translateY(-2px); }
.ta.first { background: linear-gradient(170deg, rgba(255,200,97,.22), rgba(255,122,18,.08)); }
.ta .n { position: absolute; top: 8px; left: 8px; width: 22px; height: 22px; display: grid; place-items: center; font-size: 11px; background: rgba(255,255,255,.12); color: #fff; border-radius: 50%; font-weight: 800; }
.ta.first .n { background: var(--gold); color: #1a0f08; }
.ta img { width: 52px; height: 52px; }
.ta b { display: block; font-size: 13.5px; margin-top: 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ta span { display: block; font-size: 12px; color: var(--muted); }
.ta i { font-style: normal; font-size: 12px; font-weight: 700; }
.launch-list { display: flex; flex-direction: column; gap: 4px; }
.ll { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 12px; cursor: pointer; transition: background .15s; }
.ll:hover { background: rgba(255,255,255,.05); }
.ll .ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; flex: none; background: rgba(255,255,255,.06); }
.ll .ic img { width: 32px; height: 32px; }
.ll b { display: block; font-size: 14px; }
.ll span { font-size: 12px; color: var(--muted); }
.ll .v { margin-left: auto; font-size: 14px; font-weight: 700; text-align: right; }
.ll.fresh { animation: fresh 1.6s ease; }
@keyframes fresh { 0% { background: rgba(255,122,18,.25); } 100% { background: transparent; } }
.feed { height: 300px; overflow: hidden; font-size: 12.5px; line-height: 1.45; display: flex; flex-direction: column; gap: 4px; mask-image: linear-gradient(#000 70%, transparent); -webkit-mask-image: linear-gradient(#000 70%, transparent); }
.fe { display: flex; gap: 10px; padding: 6px 8px; border-radius: 10px; animation: fin .35s ease; cursor: pointer; align-items: baseline; }
.fe:hover { background: rgba(255,255,255,.04); }
.fe time { color: var(--dim); flex: none; font-size: 11px; font-variant-numeric: tabular-nums; }
.fe p { color: var(--soft); overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.fe.k-connect p, .fe.k-level p, .fe.k-milestone p { color: var(--gold); }
.fe.k-launch p { color: var(--acc); font-weight: 800; }
.fe:hover p { color: #fff; }
@keyframes fin { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

.mine { display: flex; flex-direction: column; background: linear-gradient(160deg, rgba(255,122,18,.14), transparent 55%), var(--card); }
.mine-body { display: flex; gap: 16px; align-items: stretch; flex: 1; }
.mine-av { width: 118px; border-radius: 18px; display: grid; place-items: center; background: rgba(0,0,0,.18); flex: none; }
.mine-av img { width: 94px; height: 94px; }
.mine-info { flex: 1; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.mine-info .lv { font-family: var(--display); font-size: 20px; font-weight: 800; }
.mine-info .xp { font-size: 12.5px; color: var(--soft); }
.mine-info .bar { margin: 0; }
.mine-info .btn { height: 38px; font-size: 13px; justify-content: space-between; }
.mine-empty { text-align: center; padding: 4px 0; }
.mine-empty img { width: 90px; height: 90px; }
.mine-empty p { color: var(--muted); font-size: 13px; margin: 10px 0 16px; line-height: 1.55; }
.mine-switch { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 12px; }
.mine-switch button { font-size: 11.5px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: rgba(255,255,255,.06); color: var(--muted); }
.mine-switch button.on { background: var(--acc); color: #1a0f08; }

/* ---------- pages ---------- */
.page { max-width: 1240px; margin: 0 auto; padding: 44px 20px 60px; }
.page-h { margin-bottom: 30px; }
.page-h h2 { font-family: var(--display); font-size: 56px; font-weight: 800; letter-spacing: -.035em; line-height: 1; margin-bottom: 12px; }
.page-h p { font-size: 15px; }
.launch-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 20px; align-items: start; }
.form { display: flex; flex-direction: column; gap: 15px; padding: 26px; }
.f-step { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-size: 20px; font-weight: 800; }
.f-step span { width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; background: var(--acc); color: #1a0f08; font-size: 14px; }
.f-step:not(:first-child) { margin-top: 10px; padding-top: 20px; border-top: 1px solid var(--line); }
.form label, .form .label { display: flex; flex-direction: column; gap: 7px; font-size: 12.5px; font-weight: 700; color: var(--soft); }
.form input, .form textarea, .toolbar input, .toolbar select {
  background: rgba(0,0,0,.2); border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 14px; font-size: 14px; outline: none; resize: vertical; font-weight: 500;
}
.form input:focus, .form textarea:focus, .toolbar input:focus, .toolbar select:focus { border-color: var(--acc); }
.form input.file { padding: 8px; font-size: 12.5px; color: var(--muted); }
.form input.file::file-selector-button { background: rgba(255,255,255,.1); color: #fff; border: 0; border-radius: 8px; padding: 6px 12px; margin-right: 10px; font: inherit; font-weight: 700; cursor: pointer; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.sep { color: var(--acc); font-weight: 800; }
.variants { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.variants button { height: 82px; border-radius: 16px; display: grid; place-items: center; background: rgba(255,255,255,.05); border: 2px solid transparent; transition: border-color .15s, background .15s; }
.variants button img { width: 56px; height: 56px; }
.variants button:hover { background: rgba(255,255,255,.08); }
.variants button.on { border-color: var(--acc); background: var(--accbg); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips button { padding: 8px 14px; border-radius: 999px; font-size: 13px; font-weight: 600; background: rgba(255,255,255,.06); color: var(--soft); transition: background .15s, color .15s; }
.chips button:hover { background: rgba(255,255,255,.1); color: #fff; }
.chips button.on { background: var(--acc); color: #1a0f08; }
.preview { position: sticky; top: calc(var(--head) + 16px); padding: 0; overflow: hidden; }
.preview-stage { position: relative; height: 300px; background: radial-gradient(circle at 50% 60%, rgba(255,122,18,.14), transparent 60%), linear-gradient(180deg, #060608, #121216); }
.preview-stage canvas { width: 100%; height: 100%; display: block; }
.pv-live { position: absolute; top: 14px; left: 16px; padding: 5px 10px; border-radius: 999px; background: rgba(0,0,0,.3); }
.preview-meta { padding: 20px 22px 22px; }
.pv-ticker { font-family: var(--display); font-size: 32px; font-weight: 800; color: var(--acc); letter-spacing: -.02em; }
.pv-name { color: var(--muted); margin: 2px 0 14px; font-size: 13px; }
.kv { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; padding: 9px 0; border-top: 1px solid var(--line); }
.kv span { color: var(--muted); }
.kv.total b { color: var(--acc); font-size: 15px; }
.pv-note { margin-top: 12px; font-size: 12.5px; line-height: 1.6; color: var(--muted); padding: 12px 14px; border-radius: 12px; background: rgba(255,255,255,.04); }
.pv-prompt { margin-top: 12px; font-size: 13px; line-height: 1.55; color: var(--soft); background: rgba(167,139,250,.1); border-radius: 12px; padding: 10px 13px; }
.pv-prompt:empty { display: none; }

.toolbar { display: flex; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; }
.toolbar input { flex: 1; min-width: 200px; }
.toolbar select { font-size: 13.5px; cursor: pointer; }
.toolbar select option { background: var(--card); }
.table-card { padding: 6px; overflow-x: auto; }
.tbl { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13.5px; }
.tbl th { text-align: left; font-weight: 700; font-size: 12px; color: var(--muted); padding: 12px 14px; white-space: nowrap; }
.tbl td { padding: 10px 14px; white-space: nowrap; border-top: 1px solid var(--line); }
.tbl tr { cursor: pointer; }
.tbl tbody tr:hover td { background: rgba(255,255,255,.04); }
.tbl tbody tr:hover td:first-child { border-radius: 12px 0 0 12px; } .tbl tbody tr:hover td:last-child { border-radius: 0 12px 12px 0; }
.tbl img { width: 34px; height: 34px; display: block; }
.tbl .tk { font-weight: 800; } .tbl .nm { color: var(--muted); font-size: 12px; }
.st-pill { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; padding: 4px 9px; border-radius: 999px; background: rgba(255,255,255,.06); }
.st-pill i { width: 7px; height: 7px; border-radius: 50%; }
.tabs { display: inline-flex; gap: 4px; margin-bottom: 20px; flex-wrap: wrap; padding: 5px; border-radius: 999px; background: rgba(255,255,255,.05); }
.tabs button { padding: 9px 16px; border-radius: 999px; font-size: 13.5px; font-weight: 700; color: var(--soft); }
.tabs button:hover { color: #fff; }
.tabs button.on { background: #fff; color: #1a0f08; }
.podium { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 18px; }
.pod { border-radius: var(--r); padding: 20px; display: flex; gap: 16px; align-items: center; cursor: pointer; background: var(--card); border: 1px solid var(--line); transition: transform .15s; }
.pod:hover { transform: translateY(-3px); }
.pod.p1 { background: linear-gradient(140deg, rgba(255,200,97,.28), rgba(255,122,18,.1) 60%), var(--card); border-color: rgba(255,200,97,.4); }
.pod.p2 { background: linear-gradient(140deg, rgba(200,210,255,.16), transparent 60%), var(--card); }
.pod.p3 { background: linear-gradient(140deg, rgba(255,150,100,.14), transparent 60%), var(--card); }
.pod img { width: 66px; height: 66px; }
.pod .rk { font-family: var(--display); font-size: 40px; font-weight: 800; color: var(--dim); }
.pod.p1 .rk { color: var(--gold); }
.pod b { font-size: 18px; display: block; }
.pod span { color: var(--muted); font-size: 12.5px; }
.pod .val { margin-left: auto; text-align: right; font-size: 17px; font-weight: 800; }

.foot { display: flex; align-items: center; gap: 18px; padding: 28px 26px 34px; margin-top: 50px; font-size: 13px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.foot .muted:last-child { margin-left: auto; }

/* ---------- modal & toasts ---------- */
.modal { position: fixed; inset: 0; background: rgba(0,0,0,.75); backdrop-filter: blur(6px); display: none; place-items: center; z-index: 100; padding: 20px; }
.modal.open { display: grid; }
.modal-box { width: min(480px, 100%); border-radius: 26px; background: var(--card); border: 1px solid var(--line2); padding: 28px; box-shadow: var(--shadow); }
.modal-box h3 { font-family: var(--display); font-size: 34px; font-weight: 800; margin-bottom: 18px; color: var(--acc); }
.lm-steps { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.lm-steps li { display: flex; align-items: center; gap: 12px; font-size: 14px; font-weight: 600; color: var(--dim); }
.lm-steps li::before { content: ''; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line2); flex: none; display: grid; place-items: center; font-size: 12px; }
.lm-steps li.run { color: #fff; } .lm-steps li.run::before { border-color: var(--gold); border-top-color: transparent; animation: spin 0.9s linear infinite; }
.lm-steps li.done { color: var(--soft); } .lm-steps li.done::before { content: '✓'; background: var(--mint); border-color: var(--mint); color: #062015; font-weight: 800; }
@keyframes spin { to { transform: rotate(360deg); } }
.lm-term { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 11px; color: var(--muted); background: rgba(0,0,0,.25); border-radius: 12px; padding: 12px; height: 100px; overflow: hidden; white-space: pre-wrap; }
.toasts { position: fixed; bottom: 20px; right: 20px; display: flex; flex-direction: column; gap: 10px; z-index: 120; }
.toast { background: #fff; color: #1b1f45; padding: 13px 18px; border-radius: 16px; font-size: 13.5px; font-weight: 600; max-width: 360px; animation: fin .3s ease; box-shadow: var(--shadow); }
.toast b { color: #e0611f; }

/* ---------- AI token manager ---------- */
.brain { border-radius: 16px; padding: 14px; margin-bottom: 14px; background: linear-gradient(160deg, rgba(255,122,18,.1), transparent 60%), rgba(255,255,255,.02); border: 1px solid rgba(255,122,18,.25); }
.b-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 12px; }
.b-ttl { display: flex; align-items: center; gap: 8px; font-size: 11.5px; font-weight: 800; letter-spacing: .06em; color: var(--acc); white-space: nowrap; }
.b-strat { font-size: 11px; font-weight: 700; padding: 4px 9px; border-radius: 999px; background: rgba(255,255,255,.08); color: #fff; white-space: nowrap; }
.b-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
.b-kpis > div { padding: 8px 10px; border-radius: 10px; background: rgba(0,0,0,.18); }
.b-kpis span { display: block; font-size: 10px; font-weight: 700; color: var(--muted); margin-bottom: 3px; }
.b-kpis b { font-size: 14.5px; white-space: nowrap; }
.b-kpis small { color: var(--muted); font-size: 10.5px; margin-left: 2px; }
.b-cur { border-top: 1px solid var(--line); padding-top: 12px; font-size: 12.5px; }
.bc-h { color: #fff; font-weight: 700; margin-bottom: 8px; }
.bc-h.analyzing { color: var(--lilac); animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: .55; } }
.bc-lbl { font-size: 10.5px; font-weight: 800; letter-spacing: .06em; color: var(--muted); margin: 10px 0 6px; }
.bc-an { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 12px; font-size: 12px; }
.bc-an div { display: flex; justify-content: space-between; }
.bc-an span { color: var(--muted); }
.al-row { display: grid; grid-template-columns: auto 1fr 50px auto; align-items: center; gap: 8px; font-size: 12px; padding: 4px 0; }
.al-row span { color: var(--soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.al-row em, .w-row em { height: 6px; background: rgba(255,255,255,.08); border-radius: 99px; overflow: hidden; display: block; }
.al-row em i, .w-row em i { display: block; height: 100%; border-radius: 99px; }
.al-row.failed { opacity: .5; }
.dec-res { font-size: 11.5px; margin-top: 6px; color: var(--soft); }
.bc-score { margin-top: 6px; font-size: 12.5px; }
.bc-why { font-size: 12.5px; color: var(--soft); margin-top: 8px; line-height: 1.5; padding: 9px 11px; border-radius: 10px; background: rgba(0,0,0,.18); }
.sc.good, .sc-badge.good { color: var(--mint); } .sc.mid, .sc-badge.mid { color: var(--gold); } .sc.bad, .sc-badge.bad { color: var(--down); }
.sc-badge { display: inline-grid; place-items: center; min-width: 34px; height: 24px; padding: 0 8px; border-radius: 999px; background: currentColor; font-size: 11.5px; font-weight: 800; }
.sc-badge { background: rgba(255,255,255,.07); }
.sc-badge.pending { color: var(--muted); }
.b-run { margin-top: 12px; height: 38px; font-size: 12.5px; }
.b-sub { font-size: 10.5px; font-weight: 800; letter-spacing: .06em; color: var(--muted); margin: 14px 0 7px; }
.b-weights { display: flex; flex-direction: column; gap: 5px; }
.w-row { display: grid; grid-template-columns: 108px 1fr 36px; align-items: center; gap: 8px; font-size: 12px; }
.w-row span { color: var(--soft); } .w-row b { text-align: right; font-weight: 600; color: var(--muted); }
.b-tot { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 12px; }
.b-tot div { background: rgba(0,0,0,.18); padding: 8px 10px; border-radius: 10px; }
.b-tot span { display: block; font-size: 9.5px; font-weight: 700; color: var(--muted); margin-bottom: 3px; }
.b-tot b { font-size: 13.5px; display: block; } .b-tot small { font-size: 10.5px; color: var(--muted); }
.dec { border-radius: 12px; padding: 10px 12px; margin-bottom: 6px; background: rgba(255,255,255,.04); }
.dec-h { display: flex; align-items: center; gap: 8px; font-size: 12.5px; margin-bottom: 7px; }
.dec-h b { flex: 1; }
.dec-r { font-size: 11.5px; color: var(--muted); margin-top: 6px; }
.alloc-bar { display: flex; height: 7px; border-radius: 99px; overflow: hidden; background: rgba(255,255,255,.08); gap: 2px; }
.alloc-bar i { display: block; height: 100%; }
.cm { border-radius: 12px; padding: 10px 12px; margin-bottom: 8px; font-size: 12.5px; background: rgba(167,139,250,.08); }
.cm b { font-size: 12px; }
.cm-st { font-size: 10px; font-weight: 800; padding: 2px 8px; border-radius: 999px; background: rgba(255,255,255,.08); color: var(--muted); margin-left: 4px; }
.cm-st.active { color: #062015; background: var(--mint); }
.cm-st.paid { color: var(--mint); background: rgba(79,214,156,.15); }
.cm-t { color: var(--soft); margin: 4px 0; }
.cm-m { display: flex; gap: 12px; color: var(--muted); font-size: 11.5px; }
.cm-r { font-size: 11.5px; color: var(--muted); margin-bottom: 4px; }
.cm-w { font-size: 11.5px; margin-top: 6px; color: var(--soft); line-height: 1.6; }
.cm-w a { color: var(--acc); }
.cm-form { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.cm-in, .own-ta { background: rgba(0,0,0,.22); border: 1.5px solid var(--line); border-radius: 10px; padding: 9px 11px; font-size: 12.5px; outline: none; width: 100%; }
.cm-in:focus, .own-ta:focus { border-color: var(--acc); }
.cm-form .btn { height: 34px; font-size: 12px; }
.b-xnote { font-size: 11.5px; color: var(--muted); margin: -2px 0 8px; }
.post { border-radius: 12px; padding: 11px 12px; margin-bottom: 8px; background: rgba(255,255,255,.04); }
.post-h { display: flex; gap: 8px; align-items: center; font-size: 10.5px; font-weight: 700; margin-bottom: 6px; }
.post-ty { color: var(--sky); letter-spacing: .04em; }
.post-st { margin-left: auto; color: var(--muted); }
.post p { font-size: 13px; line-height: 1.5; color: #e9eaff; }
.post-b { display: flex; gap: 8px; margin-top: 8px; }
.post-b .btn { height: 32px; padding: 0 12px; font-size: 12px; }

.dfeed { display: flex; flex-direction: column; gap: 4px; }
.df { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 12px; cursor: pointer; animation: fin .35s ease; transition: background .15s; }
.df:hover { background: rgba(255,255,255,.04); }
.df img { width: 34px; height: 34px; }
.df-m { flex: 1; min-width: 0; }
.df-h { display: flex; gap: 10px; align-items: baseline; font-size: 13.5px; margin-bottom: 6px; }
.df-h .muted { font-size: 11.5px; }
.df-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.df-chips span { font-size: 11px; font-weight: 700; padding: 3px 9px; border: 1px solid; border-radius: 999px; white-space: nowrap; }
.df:hover b { color: var(--acc); }
.tstats { grid-template-columns: 1fr 1fr; }
.tstats > div { padding: 12px 13px; }
.tstats b { font-size: 21px; }
.tstats small { font-size: 11.5px; color: var(--muted); }
.tm { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 10px; font-size: 13px; cursor: pointer; }
.tm:hover { background: rgba(255,255,255,.04); }
.tm .n { width: 18px; color: var(--muted); font-weight: 800; }
.tm img { width: 28px; height: 28px; }
.tm .muted { flex: 1; font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tm:hover b { color: var(--acc); }

/* ---------- live version ---------- */
.empty-note { position: absolute; left: 58%; top: 74%; transform: translate(-50%, -50%); display: none; flex-direction: column; align-items: center; gap: 10px; text-align: center; padding: 24px 28px; border-radius: 22px; background: rgba(10,10,13,.9); border: 1px solid var(--line2); backdrop-filter: blur(10px); z-index: 2; box-shadow: var(--shadow); }
.empty-note.on { display: flex; }
.empty-note b { font-family: var(--display); font-size: 20px; font-weight: 800; }
.empty-note span { color: var(--muted); font-size: 13.5px; margin-bottom: 4px; }
.lm-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.lm-actions .btn { height: 38px; font-size: 12.5px; }
.lm-steps li.fail { color: var(--down); } .lm-steps li.fail::before { content: '✕'; background: var(--down); border-color: var(--down); color: #fff; font-weight: 800; }
.coin-links { display: flex; gap: 8px; margin-top: 12px; }
.coin-links .btn { flex: 1; height: 36px; font-size: 12px; }
.al-row a, .p-log a, .muted.small a { color: var(--acc); font-size: 11.5px; font-weight: 700; }
.own-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 13px; }
.own-row .btn { height: 32px; font-size: 12px; }
.own-ta { margin-top: 10px; resize: vertical; font-size: 13px; }
.own-check { display: flex; align-items: center; gap: 9px; font-size: 13px; margin-top: 9px; color: var(--soft); }
.own-check input { accent-color: #ff7a12; width: 16px; height: 16px; }

/* ---------- header: CA chip + X ---------- */
.ca-chip { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 14px; border-radius: 999px; background: rgba(255,255,255,.06); font-size: 12.5px; font-weight: 700; color: var(--muted); white-space: nowrap; }
.ca-chip .ca-tk { color: var(--gold); font-weight: 800; }
.ca-chip .ca-tk:empty { display: none; }
.ca-chip .ca-lbl { color: var(--dim); }
.ca-chip .ca-val { color: #fff; }
.ca-chip.soon .ca-val { color: var(--acc2); }
.ca-chip.live { cursor: pointer; }
.ca-chip.live:hover { background: rgba(255,255,255,.12); }
.ca-chip.soon { cursor: default; }
.x-link { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: rgba(255,255,255,.06); color: #fff; transition: background .15s, color .15s; flex: none; }
.x-link svg { width: 16px; height: 16px; }
.x-link:hover { background: #fff; color: #1a0f08; }

/* ---------- alliances ---------- */
.clan-tag { font-size: 10.5px; font-weight: 800; padding: 2px 8px; border: 1px solid; border-radius: 999px; white-space: nowrap; }
.ally { border-radius: 12px; padding: 10px 12px; margin-bottom: 6px; font-size: 12.5px; background: rgba(92,200,255,.08); }
.ally.ended { opacity: .55; }
.ally-h { display: flex; align-items: center; gap: 8px; margin-bottom: 5px; }
.ally-h a { color: #fff; font-weight: 800; cursor: pointer; }
.ally-h a:hover { color: var(--acc); }
.ally-h .muted { margin-left: auto; font-size: 11.5px; }
.ally-m { display: flex; gap: 12px; flex-wrap: wrap; color: var(--muted); font-size: 11.5px; }
.ally-m b { color: #fff; font-weight: 600; }
.fe.k-alliance p { color: var(--sky); }

/* ---------- quests ---------- */
.quest { border-radius: 12px; padding: 10px 12px; margin-bottom: 6px; font-size: 12.5px; background: rgba(244,114,182,.08); }
.quest:not(.on) { opacity: .7; }
.quest-h { display: flex; align-items: center; gap: 8px; justify-content: space-between; margin-bottom: 4px; }
.quest-h b { font-size: 13px; }
.q-bar { height: 7px; background: rgba(255,255,255,.08); border-radius: 99px; overflow: hidden; margin: 7px 0 5px; }
.q-bar i { display: block; height: 100%; border-radius: 99px; background: var(--pink); }
.q-lbl { font-size: 11.5px; color: var(--soft); margin-bottom: 4px; }
.fe.k-quest p { color: var(--pink); }

/* ---------- generations ---------- */
.gen-tag { font-size: 10.5px; font-weight: 800; padding: 2px 8px; background: rgba(255,200,97,.16); color: var(--gold); border-radius: 999px; }
.fam-row { font-size: 12.5px; margin-bottom: 6px; color: var(--soft); }
.fam-row a, .fam-child a { color: var(--gold); font-weight: 800; cursor: pointer; }
.fam-child { display: grid; grid-template-columns: auto 1fr auto auto; gap: 10px; align-items: center; font-size: 12.5px; padding: 8px 10px; border-radius: 10px; background: rgba(255,200,97,.07); margin-bottom: 5px; }
.fam-checks { font-size: 12px; color: var(--muted); line-height: 1.7; }
.fam-checks .ok { color: var(--mint); }
.fe.k-spawn p { color: var(--gold); font-weight: 800; }

/* ---------- duels ---------- */
.duel { border-radius: 14px; padding: 11px 12px; margin-bottom: 8px; font-size: 12.5px; background: rgba(255,77,109,.07); border: 1px solid rgba(255,77,109,.18); }
.duel:not(.on) { opacity: .72; border-color: transparent; }
.du-h { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font-size: 11.5px; font-weight: 700; }
.du-x { color: var(--red); font-weight: 800; }
.du-live { margin-left: auto; color: #ff8fa3; display: inline-flex; align-items: center; gap: 6px; }
.du-live .dot { background: var(--red); animation: none; box-shadow: 0 0 8px var(--red); }
.du-win { margin-left: auto; color: var(--mint); font-weight: 800; }
.du-h .muted { margin-left: auto; }
.du-res { padding: 2px 8px; border-radius: 999px; font-weight: 800; background: rgba(255,255,255,.07); }
.du-res.won { color: var(--mint); } .du-res.lost { color: var(--red); } .du-res.draw { color: var(--muted); }
.du-side { display: grid; grid-template-columns: minmax(70px, auto) auto 1fr; gap: 10px; align-items: center; margin-bottom: 6px; }
.du-side a { color: #fff; font-weight: 800; cursor: pointer; }
.du-side a:hover { color: var(--acc); }
.du-side b { font-weight: 600; color: var(--soft); white-space: nowrap; }
.du-side em { height: 7px; background: rgba(255,255,255,.08); border-radius: 99px; overflow: hidden; }
.du-side em i { display: block; height: 100%; border-radius: 99px; background: #4a5078; transition: width .6s; }
.du-side.lead em i { background: var(--red); }
.du-side.lead b { color: #fff; }
.du-side.me a { color: var(--acc); }
.duel .cm-m { margin-top: 4px; flex-wrap: wrap; }
.duel.compact { margin-bottom: 8px; }
.du-rec { font-size: 11.5px; color: var(--muted); }
.du-ch { margin-top: 10px; }
.du-row { display: flex; gap: 8px; margin: 6px 0; }
.du-row select { flex: 1; color: #fff; background: rgba(0,0,0,.22); border: 1.5px solid var(--line); border-radius: 10px; padding: 0 10px; }
.du-row select option { background: var(--card); }
.du-row .btn { height: 36px; padding: 0 14px; font-size: 12px; border-color: var(--red); color: #ff8fa3; }
.du-row .btn:hover { background: var(--red); color: #fff; }
.du-rr { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; font-size: 12.5px; padding: 7px 0; border-top: 1px solid var(--line); cursor: pointer; }
.du-rr:first-of-type { border-top: 0; }
.du-rr span:last-child { margin-left: auto; color: var(--mint); }
.du-rr:hover b { color: var(--acc); }
.fe.k-duel p { color: #ff8fa3; }
.p-log .k-duel { color: #ff8fa3; }

/* ---------- map: zones, territories, homes ---------- */
.tz { display: grid; grid-template-columns: 10px minmax(100px, auto) 80px 1fr auto; gap: 12px; align-items: center; padding: 9px 8px; border-radius: 10px; font-size: 12.5px; }
.tz:nth-child(odd) { background: rgba(255,255,255,.025); }
.tz[data-id] { cursor: pointer; }
.tz[data-id]:hover b { color: var(--acc); }
.tz .tz-o { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tz .muted { font-size: 11.5px; white-space: nowrap; }
.ring-dot { width: 10px; height: 10px; border-radius: 50%; background: #8b93b8; display: inline-block; }
.ring-dot.grad { background: var(--gold); } .ring-dot.inner { background: #6fd3c9; } .ring-dot.outer { background: #7d88c2; }
.ring-tag { font-size: 10.5px; font-weight: 800; padding: 2px 8px; border-radius: 999px; background: rgba(255,255,255,.07); white-space: nowrap; }
.ring-tag.grad { color: var(--gold); } .ring-tag.inner { color: #6fd3c9; } .ring-tag.outer { color: var(--muted); }
.terr { border-radius: 12px; padding: 10px 12px; margin-bottom: 7px; font-size: 12.5px; background: rgba(255,200,97,.07); }
.terr-r { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.terr-r > span:first-child { color: var(--muted); font-size: 11px; font-weight: 700; min-width: 78px; }
.terr-lord { margin-top: 6px; font-size: 12.5px; color: var(--soft); }
.terr-lord a { color: var(--gold); font-weight: 800; cursor: pointer; }
.lord { color: var(--gold); }
.base-box { display: flex; gap: 12px; align-items: center; border-radius: 12px; padding: 10px 12px; margin-bottom: 7px; font-size: 12.5px; background: rgba(255,255,255,.04); }
.base-ic { width: 34px; height: 40px; position: relative; flex: none; }
.base-ic i { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); background: #3a3a42; border-radius: 3px 3px 0 0; }
.base-ic.lvl0 i { width: 0; height: 0; border-radius: 0; border-left: 14px solid transparent; border-right: 14px solid transparent; border-bottom: 18px solid var(--acc); background: none; }
.base-ic.lvl1 i { width: 24px; height: 16px; box-shadow: inset 0 5px 0 var(--acc); }
.base-ic.lvl2 i { width: 16px; height: 32px; background: repeating-linear-gradient(#303036 0 4px, #ffb347 4px 6px); }
.base-ic.lvl3 i { width: 22px; height: 40px; background: repeating-linear-gradient(#36363e 0 3px, #ffb347 3px 5px); }
.base-ic.sm { width: 26px; height: 28px; transform: scale(.7); transform-origin: center bottom; }
.fe.k-zone p { color: var(--gold); font-weight: 800; }
.fe.k-territory p { color: var(--gold); }
.fe.k-base p { color: var(--sky); }
.p-log .k-territory { color: var(--gold); }

/* ---------- agent chat ---------- */
.ch-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.ch-f { display: flex; gap: 6px; flex-wrap: wrap; }
.ch-f button { font-size: 12.5px; font-weight: 700; padding: 7px 14px; border-radius: 999px; background: rgba(255,255,255,.06); color: var(--soft); }
.ch-f button:hover { color: #fff; background: rgba(255,255,255,.1); }
.ch-f button.on { background: #fff; color: #1a0f08; }
.ch-box { height: 420px; overflow-y: auto; display: flex; flex-direction: column; gap: 6px; padding: 4px 8px 4px 2px; scrollbar-width: thin; scrollbar-color: rgba(255,140,40,.3) transparent; }
.ch-msg { display: flex; gap: 12px; padding: 4px; align-items: flex-end; }
.ch-msg.fresh { animation: chIn .45s ease; }
@keyframes chIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.ch-msg img { width: 36px; height: 36px; flex: none; cursor: pointer; }
.ch-b { min-width: 0; max-width: 760px; padding: 10px 14px; border-radius: 16px 16px 16px 4px; background: rgba(255,255,255,.055); }
.ch-h { display: flex; align-items: center; gap: 7px; font-size: 12.5px; flex-wrap: wrap; }
.ch-h b { color: #fff; cursor: pointer; font-weight: 800; }
.ch-h a { color: var(--soft); cursor: pointer; font-weight: 700; }
.ch-h b:hover, .ch-h a:hover { color: var(--acc); }
.ch-k { font-size: 9.5px; font-weight: 800; padding: 2px 7px; border: 1px solid; border-radius: 999px; letter-spacing: .04em; }
.ch-h time { margin-left: auto; padding-left: 10px; color: var(--dim); font-size: 11px; }
.ch-b p { margin-top: 4px; font-size: 13.5px; line-height: 1.5; color: #e9eaff; word-wrap: break-word; }
.ch-mini .ch-msg { padding: 4px 0; }
.ch-mini .ch-b { max-width: none; }
.ch-mini .ch-b p { font-size: 12.5px; }
.ch-mini .ch-msg img { width: 30px; height: 30px; }

/* ---------- responsive ---------- */
@media (max-width: 1360px) {
  .search { width: 190px; }
  .search kbd { display: none; }
  .ca-chip .ca-lbl { display: none; }
}
@media (max-width: 1280px) {
  .c-stats, .c-top { grid-column: span 12; }
  .c-recent, .c-log { grid-column: span 6; } .c-mine { grid-column: span 12; }
  .stats { grid-template-columns: repeat(4, 1fr); }
  .c-dec { grid-column: span 12; } .c-tre, .c-duel { grid-column: span 6; }
  .nav a { padding: 9px 11px; }
  .search { display: none; }
}
@media (max-width: 1100px) {
  .hero { width: 380px; padding: 24px; }
  .hero h1 { font-size: 44px; }
  .counters { left: auto; right: 18px; transform: none; bottom: 18px; }
  .hint { display: none; }
  .c-terr, .c-base { grid-column: span 12; }
}
@media (max-width: 900px) {
  :root { --head: 68px; }
  .top { padding: 10px 12px; }
  .top-in { padding: 0 6px 0 12px; gap: 10px; }
  .brand { font-size: 20px; } .logo { width: 28px; height: 28px; }
  .nav { position: fixed; top: calc(var(--head) + 4px); left: 12px; right: 12px; flex-direction: column; background: var(--card); border: 1px solid var(--line2); border-radius: 20px; padding: 10px; margin: 0; display: none; box-shadow: var(--shadow); }
  .nav.open { display: flex; }
  .nav a { padding: 12px 14px; }
  .burger { display: flex; }
  #walletBtn { height: 40px; padding: 0 14px; font-size: 12.5px; }
  #walletBtn svg { display: none; }
  .stage { height: auto; min-height: 0; display: flex; flex-direction: column; overflow: visible; margin: 0 12px; border: 0; box-shadow: none; border-radius: 0; }
  .hero { position: relative; left: 0; top: 0; width: auto; padding: 22px 18px; }
  .hero h1 { font-size: 40px; }
  .steps { display: none; }
  #map { position: relative; height: 62vh; min-height: 420px; border-radius: 22px; margin-top: 12px; border: 1px solid var(--line); }
  .map-ui { display: none; }
  .hero { order: 0; } #map { order: 1; } .counters { order: 2; }
  .counters { position: static; transform: none; flex-wrap: wrap; justify-content: center; margin: 12px 0 0; border-radius: 22px; }
  .empty-note { left: 50%; top: 62%; width: calc(100% - 40px); }
  .panel { position: fixed; z-index: 60; top: auto; left: 8px; right: 8px; bottom: 8px; width: auto; height: 78vh; transform: translateY(110%); }
  .panel.open { transform: none; visibility: visible; }
  .stage.panel-open .map-ui { right: 12px; }
  .sec { padding: 34px 12px 0; }
  .sec-h h2 { font-size: 28px; }
  .bento > .card { grid-column: span 12; }
  .top-agents { grid-template-columns: repeat(5, minmax(86px, 1fr)); overflow-x: auto; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .launch-grid { grid-template-columns: 1fr; }
  .preview { position: static; order: -1; }
  .preview-stage { height: 230px; }
  .row2 { grid-template-columns: 1fr; }
  .page { padding: 26px 12px 48px; }
  .page-h h2 { font-size: 38px; }
  .podium { grid-template-columns: 1fr; }
  .focus-bar { top: auto; bottom: 12px; position: fixed; transform: translate(-50%, 90px); }
  .focus-bar.on { transform: translate(-50%, 0); }
  .foot { padding: 22px 16px 30px; }
  .ca-chip { height: 40px; padding: 0 10px; font-size: 11px; } .ca-chip .ca-tk { display: none; } .x-link { width: 40px; height: 40px; }
  .ch-box { height: 360px; }
}
@media (max-width: 600px) {
  .tz { grid-template-columns: 10px 1fr auto; }
  .tz > .muted:nth-child(3), .tz > :nth-child(5) { display: none; }
  .tstats, .stats { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) { .ca-chip { display: none; } .hero h1 { font-size: 34px; } }
.hero { transition: opacity .3s, transform .3s; }
.stage.panel-open .hero { opacity: 0; transform: translateX(-24px); pointer-events: none; }
@media (max-width: 900px) { .stage.panel-open .hero { opacity: 1; transform: none; pointer-events: auto; } }

/* ---------- wireframe globe motif (logo) ---------- */
.card { border-color: rgba(255,255,255,.07); }
.card:hover { border-color: rgba(255,122,18,.22); }
.top-in { border-color: rgba(255,122,18,.22); }
.stage { border-color: rgba(255,122,18,.25); }
.hero { border-color: rgba(255,122,18,.28); overflow: hidden; }
.hero::after { content: ''; position: absolute; right: -110px; bottom: -110px; width: 280px; height: 280px; background: url(../assets/logo.png) center/contain no-repeat; opacity: .09; pointer-events: none; animation: spinY 28s linear infinite; }
.hero > * { position: relative; z-index: 1; }
@keyframes spinY { to { transform: rotate(360deg); } }
.sec-h h2 { display: flex; align-items: center; gap: 12px; }
.sec-h h2::before { content: ''; width: 30px; height: 30px; background: url(../assets/logo.png) center/contain no-repeat; flex: none; }
.pill-eyebrow { border: 1px solid rgba(255,122,18,.3); }
.modal-box, .panel { border-color: rgba(255,122,18,.3); }
.foot { position: relative; overflow: hidden; }
.foot::before { content: ''; position: absolute; right: 8%; top: -60px; width: 220px; height: 220px; background: url(../assets/logo.png) center/contain no-repeat; opacity: .06; pointer-events: none; }
