:root {
  --bg: #0f0d0b; --bg2: #17140f; --panel: rgba(22, 19, 15, 0.94); --panel2: #221d16; --ink: #ece4d0; --muted: #9b917c;
  --gold: #d4a843; --gold2: #f1cf72; --red: #c0392b; --green: #5fae5a; --blue: #4a8fd8; --line: #3d352a; --line2: #574b3a;
  --ui: 'IBM Plex Sans', system-ui, sans-serif; --title: 'Bebas Neue', Impact, sans-serif; --news: 'Special Elite', 'Courier New', monospace; --mono: 'IBM Plex Mono', monospace;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--ink); font-family: var(--ui); font-size: 14px; overflow: hidden; }
button { font-family: inherit; }
input, select { font-family: inherit; font-size: 14px; background: #0c0a08; color: var(--ink); border: 1px solid var(--line2); border-radius: 4px; padding: 6px 8px; }
input[type=checkbox] { width: 16px; height: 16px; accent-color: var(--gold); }
input[type=range] { accent-color: var(--gold); padding: 0; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.row { display: flex; gap: 8px; align-items: center; margin: 6px 0; flex-wrap: wrap; }

.screen { position: fixed; inset: 0; display: none; }
.screen.active { display: block; }

.btn { background: linear-gradient(#2c251c, #1d1812); color: var(--ink); border: 1px solid var(--line2); border-radius: 4px; padding: 8px 16px; cursor: pointer; font-size: 14px; font-weight: 600; letter-spacing: .02em; transition: border-color .15s, background .15s, color .15s; }
.btn:hover { border-color: var(--gold); color: var(--gold2); }
.btn:active { transform: translateY(1px); }
.btn.big { font-family: var(--title); font-size: 26px; letter-spacing: .06em; padding: 10px 26px; font-weight: 400; }
.btn.gold { background: linear-gradient(#e2b955, #b88a2a); color: #1a1208; border-color: #f1cf72; }
.btn.gold:hover { background: linear-gradient(#f1cf72, #c99a35); color: #000; }
.btn.small { padding: 5px 10px; font-size: 13px; }
.btn.tiny { padding: 3px 8px; font-size: 12px; }
.btn.ghost { background: transparent; }
.btn.red { border-color: #7a2a22; color: #f0a59a; }
.btn:disabled { opacity: .45; cursor: not-allowed; border-color: var(--line); color: var(--muted); }

/* ---------- menu ---------- */
.menu-bg { position: absolute; inset: 0; background:
  radial-gradient(ellipse at 50% 35%, rgba(212,168,67,.13), transparent 60%),
  repeating-linear-gradient(90deg, rgba(255,255,255,.015) 0 2px, transparent 2px 80px),
  linear-gradient(#14110d, #0a0907); }
.menu-bg::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 38%; background:
  linear-gradient(transparent, rgba(0,0,0,.6)),
  repeating-linear-gradient(90deg, #0b0a08 0 40px, #100e0b 40px 70px, #0b0a08 70px 130px, #0d0b09 130px 150px);
  clip-path: polygon(0 60%, 4% 60%, 4% 30%, 9% 30%, 9% 50%, 14% 50%, 14% 18%, 20% 18%, 20% 45%, 26% 45%, 26% 25%, 31% 25%, 31% 55%, 37% 55%, 37% 10%, 42% 10%, 42% 40%, 49% 40%, 49% 22%, 55% 22%, 55% 50%, 61% 50%, 61% 28%, 67% 28%, 67% 8%, 72% 8%, 72% 42%, 79% 42%, 79% 20%, 85% 20%, 85% 48%, 91% 48%, 91% 30%, 96% 30%, 96% 55%, 100% 55%, 100% 100%, 0 100%); }
.menu-inner { position: relative; z-index: 1; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 28px; padding: 16px; }
.logo { text-align: center; }
.logo h1 { font-family: var(--title); font-weight: 400; font-size: clamp(72px, 14vw, 150px); line-height: .9; margin: 4px 0; letter-spacing: .04em; color: var(--gold2); text-shadow: 0 2px 0 #6b4f17, 0 6px 30px rgba(212,168,67,.35); }
.logo-small { font-family: var(--news); color: var(--muted); letter-spacing: .08em; }
.logo-sub { display: block; font-family: var(--news); color: #c9b98f; font-size: 16px; }
.menu-buttons { display: flex; flex-direction: column; gap: 10px; min-width: 300px; }
.menu-name { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; justify-content: center; color: var(--muted); }
.menu-name label { display: flex; gap: 8px; align-items: center; }
.menu-foot { position: absolute; bottom: 14px; color: #6d6555; font-size: 12px; text-align: center; padding: 0 16px; }

/* ---------- pages ---------- */
.panel-page { position: absolute; inset: 0; overflow: auto; padding: 18px clamp(12px, 3vw, 40px) 40px; background: linear-gradient(#15120e, #0c0a08); }
.panel-page.wide { padding-bottom: 60px; }
.page-head { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; flex-wrap: wrap; }
.page-head h2 { font-family: var(--title); font-weight: 400; font-size: 38px; letter-spacing: .05em; margin: 0; color: var(--gold2); flex: 1; }
.setup-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 18px; }
.card { background: var(--panel2); border: 1px solid var(--line); border-radius: 8px; padding: 16px; }
.card h3 { font-family: var(--title); font-weight: 400; font-size: 24px; letter-spacing: .05em; margin: 0 0 10px; color: var(--gold); display: flex; align-items: center; gap: 10px; }
.page-actions { display: flex; justify-content: flex-end; align-items: center; gap: 16px; margin-top: 18px; }
.slots { display: flex; flex-direction: column; gap: 8px; margin-bottom: 10px; }
.slot { display: grid; grid-template-columns: 18px 1fr auto auto auto; gap: 8px; align-items: center; background: #15120e; border: 1px solid var(--line); border-radius: 6px; padding: 7px 9px; }
.slot .swatch { width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255,255,255,.25); cursor: pointer; }
.slot .nm { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.slot .tag { font-size: 11px; color: var(--muted); }
.slot select { padding: 3px 4px; font-size: 12px; }
.opts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; }
.opts label { display: flex; flex-direction: column; gap: 4px; color: var(--muted); font-size: 12px; }
.opts label.chk { flex-direction: row; align-items: center; color: var(--ink); font-size: 13px; }
.opts .hint { grid-column: 1/-1; color: var(--muted); font-size: 12px; }
.code { font-family: var(--mono); color: var(--gold2); letter-spacing: .15em; }
.code-in { font-family: var(--mono); text-transform: uppercase; letter-spacing: .2em; width: 120px; }
.room-list { display: flex; flex-direction: column; gap: 8px; }
.room { display: flex; justify-content: space-between; align-items: center; background: #15120e; border: 1px solid var(--line); border-radius: 6px; padding: 8px 10px; }
.lobby-chat { height: 150px; overflow: auto; background: #0e0c09; border: 1px solid var(--line); border-radius: 6px; padding: 6px 8px; font-size: 13px; }
.lobby-chat p { margin: 2px 0; }

/* ---------- game HUD ---------- */
#cv { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: default; background: #000; }
#hud-top { position: absolute; top: 0; left: 0; right: 0; height: 44px; display: flex; align-items: center; gap: 14px; padding: 0 10px; background: linear-gradient(rgba(14,12,9,.97), rgba(14,12,9,.88)); border-bottom: 1px solid var(--line); z-index: 5; font-size: 13px; white-space: nowrap; }
.tb-fam { display: flex; align-items: center; gap: 6px; font-weight: 700; }
.dot { width: 12px; height: 12px; border-radius: 50%; display: inline-block; border: 1px solid rgba(255,255,255,.4); }
.lvl { font-family: var(--title); font-weight: 400; font-size: 18px; color: var(--gold); letter-spacing: .05em; margin-left: 4px; }
.tb-res { display: flex; gap: 12px; align-items: center; font-family: var(--mono); }
.res b { color: var(--green); margin-right: 1px; }
.res small { color: var(--muted); margin-left: 3px; font-size: 11px; }
.res .ic { font-style: normal; color: var(--gold); margin-right: 3px; }
.res.goods { color: var(--muted); font-size: 12px; display: flex; gap: 8px; }
.res.goods span b { color: #c9b98f; font-weight: 500; }
.tb-meters { display: flex; gap: 12px; }
.meter { display: flex; align-items: center; gap: 5px; font-size: 11px; color: var(--muted); }
.meter .bar { width: 80px; height: 8px; background: #2a241c; border-radius: 4px; overflow: hidden; }
.meter .bar div { height: 100%; width: 0; background: linear-gradient(90deg, #e2a13a, #c0392b); transition: width .3s; }
.meter .bar div.gold { background: linear-gradient(90deg, #8a6a24, #f1cf72); }
.tb-clock { margin-left: auto; font-family: var(--mono); color: #c9b98f; }
.tb-clock .speed { color: var(--gold); margin-left: 6px; }
.phone-btn { position: relative; background: #2a2219; border: 1px solid var(--line2); color: var(--ink); border-radius: 50%; width: 32px; height: 32px; cursor: pointer; font-size: 16px; }
.phone-btn.ringing { animation: ring .5s infinite; border-color: var(--gold); color: var(--gold2); }
@keyframes ring { 0%,100% { transform: rotate(0); } 25% { transform: rotate(-14deg); } 75% { transform: rotate(14deg); } }
.badge { position: absolute; top: -4px; right: -4px; background: var(--red); color: #fff; border-radius: 9px; font-size: 10px; min-width: 16px; height: 16px; line-height: 16px; display: none; }
.badge.on { display: block; }

#ev-banner { position: absolute; top: 50px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; z-index: 4; pointer-events: none; }
#ev-banner .ev { background: rgba(20,17,13,.92); border: 1px solid var(--gold); color: var(--gold2); border-radius: 14px; padding: 3px 12px; font-size: 12px; font-weight: 600; }
#ev-banner .ev.bad { border-color: var(--red); color: #f2a499; }

#gazette { position: absolute; top: 52px; left: 8px; width: 330px; z-index: 4; pointer-events: none; }
.gz-head { font-family: var(--title); font-size: 15px; letter-spacing: .12em; color: #1b160f; background: #d9ccaa; display: inline-block; padding: 1px 8px; border-radius: 2px; }
#gz-list .gz { font-family: var(--news); font-size: 12.5px; background: rgba(217,204,170,.93); color: #1b160f; margin-top: 3px; padding: 4px 8px; border-radius: 2px; box-shadow: 0 2px 6px rgba(0,0,0,.4); animation: fadein .3s; }
#gz-list .gz.old { opacity: .62; }
@keyframes fadein { from { opacity: 0; transform: translateY(-4px); } }

#toasts { position: absolute; top: 84px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; gap: 4px; align-items: center; z-index: 6; pointer-events: none; }
.toast { background: rgba(18,15,11,.95); border: 1px solid var(--line2); border-left: 4px solid var(--blue); padding: 6px 12px; border-radius: 4px; font-size: 13px; max-width: 560px; animation: fadein .2s; pointer-events: auto; cursor: pointer; }
.toast.good { border-left-color: var(--green); } .toast.bad { border-left-color: var(--red); } .toast.warn { border-left-color: #e2a13a; } .toast.alert { border-left-color: var(--red); background: rgba(60,16,12,.95); } .toast.call { border-left-color: var(--gold); }

#minimap-wrap { position: absolute; left: 8px; bottom: 8px; width: 208px; height: 208px; background: var(--panel); border: 1px solid var(--line2); border-radius: 6px; padding: 4px; z-index: 5; }
#minimap { width: 200px; height: 200px; display: block; cursor: crosshair; image-rendering: pixelated; }

#sel-panel { position: absolute; left: 224px; right: 344px; bottom: 8px; min-height: 120px; max-height: 210px; background: var(--panel); border: 1px solid var(--line2); border-radius: 6px; z-index: 5; display: flex; gap: 10px; padding: 8px; }
#sel-info { flex: 1; overflow: auto; min-width: 0; }
#sel-cmds { width: 248px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; align-content: start; overflow: auto; }
.cmd { background: #261f17; border: 1px solid var(--line2); border-radius: 4px; color: var(--ink); font-size: 11px; padding: 4px 2px; cursor: pointer; text-align: center; line-height: 1.15; min-height: 40px; }
.cmd:hover { border-color: var(--gold); color: var(--gold2); }
.cmd kbd { display: block; color: var(--gold); font-family: var(--mono); font-size: 10px; }
.cmd.on { border-color: var(--gold); background: #3a2f1c; }
.cmd:disabled { opacity: .4; cursor: default; }
.ucards { display: flex; flex-wrap: wrap; gap: 4px; }
.ucard { width: 54px; background: #1a1611; border: 1px solid var(--line); border-radius: 4px; padding: 3px; cursor: pointer; text-align: center; font-size: 10px; }
.ucard:hover { border-color: var(--gold); }
.ucard .face { position: relative; height: 34px; overflow: hidden; border-radius: 3px; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 12px; color: #fff; text-shadow: 0 1px 2px #000; }
.hpb { height: 4px; background: #3a1d18; border-radius: 2px; margin-top: 2px; overflow: hidden; } .hpb div { height: 100%; background: var(--green); }
.amb { height: 3px; background: #222; border-radius: 2px; margin-top: 1px; overflow: hidden; } .amb div { height: 100%; background: var(--gold); }
.sel-title { font-weight: 700; font-size: 15px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.sel-sub { color: var(--muted); font-size: 12px; margin: 2px 0 6px; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; font-size: 12px; }
.kv span:nth-child(odd) { color: var(--muted); }
.apps { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.app { background: #1a1611; border: 1px solid var(--line2); border-radius: 4px; padding: 4px 8px; font-size: 12px; cursor: pointer; color: var(--ink); }
.app:hover { border-color: var(--gold); }
.stars { color: var(--gold); letter-spacing: -1px; }

#side { position: absolute; right: 8px; bottom: 8px; top: 52px; width: 328px; background: var(--panel); border: 1px solid var(--line2); border-radius: 6px; z-index: 5; display: flex; flex-direction: column; }
.tabs { display: flex; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.tabs button { flex: 1; background: none; border: none; color: var(--muted); padding: 8px 2px; cursor: pointer; font-size: 12px; font-weight: 600; border-bottom: 2px solid transparent; position: relative; }
.tabs button.active { color: var(--gold2); border-bottom-color: var(--gold); }
.tabs button .badge { top: 2px; right: 2px; }
.tabs.big button { font-size: 15px; padding: 10px 14px; flex: 0 0 auto; }
#side-body { flex: 1; overflow: auto; padding: 10px; font-size: 13px; }
.call { background: #1c1712; border: 1px solid var(--line2); border-left: 3px solid var(--gold); border-radius: 4px; padding: 8px; margin-bottom: 8px; }
.call .from { font-weight: 700; color: var(--gold2); font-size: 12px; display: flex; justify-content: space-between; }
.call .txt { font-family: var(--news); font-size: 13px; margin: 5px 0 7px; line-height: 1.35; }
.call .ch { display: flex; flex-wrap: wrap; gap: 4px; }
.office-warn { background: #3a1f18; border: 1px solid #7a2a22; color: #f2b0a5; padding: 7px; border-radius: 4px; font-size: 12px; margin-bottom: 8px; }
.office-ok { background: #1c2a1a; border: 1px solid #3d6a36; color: #b7e0ad; padding: 7px; border-radius: 4px; font-size: 12px; margin-bottom: 8px; }
.sect { font-family: var(--title); font-size: 18px; color: var(--gold); letter-spacing: .06em; margin: 12px 0 6px; }
.sect:first-child { margin-top: 0; }
.li { display: flex; align-items: center; gap: 6px; padding: 5px 6px; border-radius: 4px; background: #19150f; margin-bottom: 3px; font-size: 12px; }
.li:hover { background: #221c14; }
.li .grow { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.li.click { cursor: pointer; }
.pbar { height: 5px; background: #2a241c; border-radius: 3px; overflow: hidden; margin-top: 3px; } .pbar div { height: 100%; background: var(--gold); }
.upg { display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; padding: 6px; border-radius: 4px; background: #19150f; margin-bottom: 4px; font-size: 12px; align-items: center; }
.upg .d { grid-column: 1; color: var(--muted); font-size: 11px; }

#chat-log { position: absolute; right: 344px; bottom: 140px; width: 320px; max-height: 180px; overflow: hidden; z-index: 4; pointer-events: none; display: flex; flex-direction: column; justify-content: flex-end; }
#chat-log p { margin: 2px 0; background: rgba(10,9,7,.75); padding: 3px 7px; border-radius: 3px; font-size: 12.5px; }
#chat-in { position: absolute; left: 50%; transform: translateX(-50%); bottom: 230px; width: 420px; z-index: 7; display: none; }
#chat-in.on { display: block; }
#mode-hint { position: absolute; left: 50%; transform: translateX(-50%); bottom: 225px; background: rgba(20,17,13,.9); border: 1px solid var(--gold); color: var(--gold2); padding: 4px 12px; border-radius: 4px; z-index: 6; font-size: 13px; display: none; pointer-events: none; }
#mode-hint.on { display: block; }

.modal { position: absolute; inset: 0; background: rgba(0,0,0,.6); display: flex; align-items: center; justify-content: center; z-index: 20; }
.modal-box { background: var(--panel2); border: 1px solid var(--gold); border-radius: 8px; padding: 22px 28px; display: flex; flex-direction: column; gap: 10px; min-width: 280px; text-align: center; }
.modal-box h2 { font-family: var(--title); font-weight: 400; color: var(--gold2); letter-spacing: .05em; margin: 0 0 8px; font-size: 32px; }

/* ---------- stats ---------- */
#st-banner { margin-bottom: 14px; }
.winner-banner { display: flex; align-items: center; gap: 16px; background: linear-gradient(90deg, rgba(212,168,67,.16), transparent); border: 1px solid var(--line2); border-left: 4px solid var(--gold); border-radius: 6px; padding: 12px 16px; flex-wrap: wrap; }
.winner-banner .big { font-family: var(--title); font-size: 34px; letter-spacing: .04em; color: var(--gold2); }
.st-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(420px, 1fr)); gap: 16px; margin-top: 14px; }
.st-card { background: var(--panel2); border: 1px solid var(--line); border-radius: 8px; padding: 14px; min-width: 0; }
.st-card h4 { margin: 0 0 8px; font-family: var(--title); font-weight: 400; letter-spacing: .05em; font-size: 21px; color: var(--gold); }
.st-card .sub { color: var(--muted); font-size: 12px; margin: -6px 0 8px; }
table.sc { width: 100%; border-collapse: collapse; font-size: 13px; }
table.sc th { text-align: right; color: var(--muted); font-weight: 600; padding: 6px 8px; border-bottom: 1px solid var(--line2); white-space: nowrap; font-size: 12px; }
table.sc td { text-align: right; padding: 6px 8px; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
table.sc th:first-child, table.sc td:first-child { text-align: left; }
table.sc tr.win td { background: rgba(212,168,67,.08); }
.legend { display: flex; flex-wrap: wrap; gap: 12px; font-size: 12px; margin-bottom: 6px; }
.legend span { display: inline-flex; align-items: center; gap: 5px; }
.legend i { width: 14px; height: 3px; display: inline-block; border-radius: 2px; }
.chart svg { width: 100%; height: auto; display: block; overflow: visible; }
.chart-tip { position: fixed; pointer-events: none; background: #0d0b08; border: 1px solid var(--line2); border-radius: 4px; padding: 6px 9px; font-size: 12px; z-index: 30; display: none; white-space: nowrap; color: var(--ink); box-shadow: 0 4px 14px rgba(0,0,0,.5); }
.awards { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.award { background: #1a1611; border: 1px solid var(--line2); border-radius: 6px; padding: 10px; }
.award .t { font-family: var(--title); font-size: 20px; letter-spacing: .04em; color: var(--gold2); }
.award .w { font-weight: 700; margin-top: 2px; display: flex; gap: 6px; align-items: center; }
.award .d { color: var(--muted); font-size: 12px; }
.timeline { max-height: 520px; overflow: auto; }
.tl { display: grid; grid-template-columns: 54px 14px 1fr; gap: 8px; padding: 4px 0; border-bottom: 1px solid var(--line); font-size: 13px; align-items: center; }
.tl .tt { font-family: var(--mono); color: var(--muted); font-size: 12px; }
.mvp { display: grid; grid-template-columns: 24px 1fr auto auto; gap: 8px; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--line); font-size: 13px; }

/* ---------- manual ---------- */
.manual { max-width: 1000px; line-height: 1.55; }
.manual h3 { font-family: var(--title); font-weight: 400; font-size: 28px; color: var(--gold); letter-spacing: .05em; margin: 26px 0 6px; }
.manual p, .manual li { color: #d9d0bb; }
.manual table { border-collapse: collapse; width: 100%; font-size: 13px; margin: 8px 0; }
.manual th, .manual td { border-bottom: 1px solid var(--line); padding: 5px 8px; text-align: left; vertical-align: top; }
.manual th { color: var(--muted); }
.manual kbd { background: #2a241c; border: 1px solid var(--line2); border-radius: 3px; padding: 0 5px; font-family: var(--mono); font-size: 12px; color: var(--gold2); }
.hof-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); gap: 16px; }

@media (max-width: 1200px) {
  .res.goods { display: none; }
  #gazette { width: 260px; }
}
@media (max-width: 900px) {
  .tb-meters, .tb-clock { display: none; }
  #side { width: 260px; }
  #sel-panel { right: 276px; }
  .opts { grid-template-columns: 1fr; }
  .setup-grid, .st-grid { grid-template-columns: 1fr; }
}

/* ---------- campaign ---------- */
.camp-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 14px; }
.chap { background: var(--panel2); border: 1px solid var(--line); border-radius: 8px; padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; }
.chap.locked { opacity: .45; }
.chap.done { border-color: #4a6a3a; }
.chap .num { font-family: var(--title); color: var(--muted); font-size: 16px; letter-spacing: .08em; }
.chap h3 { font-family: var(--title); font-weight: 400; font-size: 28px; letter-spacing: .04em; color: var(--gold2); margin: 0; }
.chap p { font-family: var(--news); font-size: 13.5px; line-height: 1.45; color: #d9d0bb; margin: 0; flex: 1; }
.chap .goal { font-size: 12px; color: var(--gold); font-weight: 600; }
.chap .row { justify-content: space-between; }

.ucard .face img { height: 34px; image-rendering: pixelated; }
.ucard .face .rk { position: absolute; right: 1px; top: 0; font-size: 9px; color: var(--gold); text-shadow: 0 0 2px #000; }
img.portrait { float: left; width: 64px; height: 64px; image-rendering: pixelated; background: #2a241c; border: 1px solid var(--line2); border-radius: 4px; margin: 0 10px 4px 0; }
#side, #sel-panel, #minimap-wrap { background: #16130f; }

.spd { margin-left: 8px; display: inline-flex; gap: 2px; }
.spd button { background: #2a2219; border: 1px solid var(--line2); color: var(--ink); border-radius: 3px; font-size: 11px; padding: 1px 6px; cursor: pointer; }
.spd button:hover { border-color: var(--gold); color: var(--gold2); }
