/* SpawnPoint: Deepslate greys with spawner-flame accents. */
:root {
  --bg: #1A1D22; --side: #16191D; --card: #22262D; --soft: #2A2F38; --soft2: #353B46; --well: #1C1F25;
  --line: #2F343D; --line2: #3F4652; --ink: #E9ECF1; --mute: #9AA3B2; --dim: #7D8593;
  --acc: #FF9D4A; --acc-hi: #FFB878; --gold: #FFD36B; --ember: #E0603F; --crimson: #B8324A; --mem: #C2384F;
  --hot: #FF5A2B; --bad: #FF8A9A; --bad-bg: #3A1F25; --warn: #FFC870;
  --disp: "Bricolage Grotesque", "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --text: "Geist", "Inter", "Segoe UI", system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.45 var(--text); }
a { color: var(--acc); text-decoration: none; }
a:hover { color: var(--acc-hi); }
h1, h2, h3, h4 { font-family: var(--disp); margin: 0; letter-spacing: -.01em; }
h4 { font-size: 15px; margin: 18px 0 8px; }
.hidden { display: none !important; }
.muted { color: var(--mute); }
.mono { font-family: var(--mono); }
.sub { font-size: 13px; color: var(--mute); }
.row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.sp { flex: 1; }
:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- controls */
button, .btn { font: 500 14px var(--text); color: var(--ink); background: var(--soft); border: 0; border-radius: 10px;
  height: 36px; padding: 0 14px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 7px; }
button:hover, .btn:hover { background: var(--soft2); }
button:disabled { opacity: .5; cursor: default; }
button.primary { background: var(--acc); color: #21140A; font-weight: 600; }
button.primary:hover { background: var(--acc-hi); }
button.danger { background: var(--bad-bg); color: var(--bad); }
button.danger:hover { background: #4A242C; }
button.ghost { background: transparent; color: var(--mute); }
button.ghost:hover { background: var(--soft); color: var(--ink); }
button.toggled { background: #3A2414; color: var(--acc-hi); }
button.toggled:hover { background: #4A2E18; }
button.small, .btn.small { height: 30px; padding: 0 11px; font-size: 13px; border-radius: 8px; }
button svg, .btn svg { width: 16px; height: 16px; flex: none; }
.ic { width: 36px; padding: 0; }
.ic svg { width: 16px; height: 16px; }
input, select, textarea { width: 100%; font: 14px var(--text); color: var(--ink); background: var(--well);
  border: 1px solid var(--line); border-radius: 10px; padding: 0 12px; height: 40px; }
textarea { padding: 10px 12px; height: auto; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--acc); }
input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--acc); }
label { display: block; font-size: 13px; color: var(--mute); margin: 12px 0 6px; }
details summary { cursor: pointer; }

.badge { font-size: 12px; padding: 2px 9px; border-radius: 99px; background: var(--soft); color: var(--mute); white-space: nowrap; }
.badge.on { background: #3A2414; color: var(--acc-hi); }
.badge.busy { background: var(--soft); color: var(--ink); }
.badge.bad { background: var(--bad-bg); color: var(--bad); }

/* ---------- bars */
.bar { height: 6px; border-radius: 99px; background: var(--line); overflow: hidden; }
.bar.slim { height: 4px; }
.bar > i { display: block; height: 100%; border-radius: inherit; background: var(--acc); transition: width .6s ease; }
.bar.indet > i { width: 35% !important; animation: sp-indet 1.4s ease-in-out infinite; }
.bar4 { display: flex; gap: 2px; }
.bar4 > span { flex: 1; height: 6px; background: var(--line); overflow: hidden; }
.bar4 > span:first-child { border-radius: 99px 0 0 99px; }
.bar4 > span:last-child { border-radius: 0 99px 99px 0; }
.bar4 > span > i { display: block; height: 100%; transition: width .6s ease; }
.bar4.slim > span { height: 4px; }
.live { position: relative; overflow: hidden; }
.live::after { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 60%;
  background: linear-gradient(90deg, transparent, rgba(255, 240, 210, .55), transparent);
  transform: translateX(-120%); animation: sp-sheen 3.6s ease-in-out infinite; }
.live.fast::after { animation-duration: 1.6s; }
.live::before { content: ""; position: absolute; top: 0; bottom: 0; right: 0; width: 6px; background: #FFF1D6;
  box-shadow: 0 0 8px 2px rgba(255, 190, 110, .9); opacity: .15; animation: sp-ember 1.4s ease-in-out infinite; }
@keyframes sp-sheen { 0% { transform: translateX(-120%); } 70%, 100% { transform: translateX(260%); } }
@keyframes sp-ember { 0%, 100% { opacity: .15; } 50% { opacity: .75; } }
@keyframes sp-indet { 0% { transform: translateX(-100%); } 100% { transform: translateX(300%); } }
@media (prefers-reduced-motion: reduce) {
  .live::after, .live::before, .bar.indet > i { animation: none; opacity: 0; }
  .bar > i, .bar4 > span > i { transition: none; }
}

/* ---------- layout */
.layout { display: grid; grid-template-columns: 300px minmax(0, 1fr) clamp(420px, 34vw, 980px); height: 100vh; }
.layout.wide { grid-template-columns: 300px minmax(0, 1fr); }
.layout.wide .rail { display: none; }
.side { height: 100vh; position: sticky; top: 0; display: flex; flex-direction: column; gap: 8px;
  padding: 20px 14px 14px; background: var(--side); border-right: 1px solid var(--line); min-height: 0; }
.center { height: 100vh; overflow: auto; padding: 22px 26px; display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.rail { height: 100vh; display: flex; flex-direction: column; gap: 12px; padding: 14px 18px 18px;
  background: var(--side); border-left: 1px solid var(--line); min-height: 0; min-width: 0; }

.brand { display: flex; align-items: center; gap: 10px; padding: 0 6px 10px; color: var(--ink); }
.brand img { width: 34px; height: 34px; }
.brand b { font: 800 21px var(--disp); letter-spacing: -.02em; }
.brand b span { color: var(--acc); }
.grp { display: flex; justify-content: space-between; font-size: 13px; color: var(--dim); padding: 0 8px 4px; }
.srvlist { flex: 1 1 auto; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 6px;
  margin: 0 -6px; padding: 0 6px; scrollbar-width: thin; scrollbar-color: var(--line2) transparent; }
.srv { display: block; position: relative; padding: 11px 12px 12px 14px; border-radius: 12px; color: var(--ink); border: 1px solid transparent; }
.srv:hover { background: var(--card); color: var(--ink); }
.srv.on { background: var(--card); border-color: var(--line2); }
.srv.on::before { content: ""; position: absolute; left: -1px; top: 12px; bottom: 12px; width: 3px; border-radius: 3px; background: var(--acc); }
.srv .top { display: flex; align-items: center; gap: 8px; }
.srv .nm { font: 700 16px var(--disp); flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.srv .addr { display: flex; align-items: center; gap: 4px; font: 12.5px var(--mono); color: var(--mute); margin-top: 3px; }
.srv .addr span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cp { width: 26px; height: 26px; padding: 0; background: transparent; color: var(--mute); border-radius: 6px; flex: none; }
.cp svg { width: 14px; height: 14px; }
.cp:hover { background: var(--soft); color: var(--ink); }
.srv .line { display: flex; gap: 10px; font-size: 13px; color: var(--mute); margin-top: 8px; }
.srv .line b { color: var(--ink); font-weight: 600; }
.srv .bar, .srv .bar4 { margin-top: 6px; }
.newb { margin-top: 4px; height: 42px; flex: none; }

.ringwrap { display: flex; justify-content: center; padding: 4px 0 0; flex: none; }
.ring { position: relative; width: 232px; height: 232px; }
.ring .rlab { font: 600 8.5px var(--text); fill: var(--mute); letter-spacing: .02em; pointer-events: none; }
.ring svg { display: block; }
.ring path, .ring circle.hit { cursor: help; }
.ring .inner { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: flex; flex-direction: column; gap: 2px; }
.ring .inner a { width: 92px; height: 46px; display: flex; align-items: center; justify-content: center;
  background: var(--soft); color: var(--ink); font: 600 12px var(--text); }
.ring .inner a:hover { background: var(--soft2); }
.ring .inner a.on { background: #3A2414; color: var(--acc-hi); }
.ring .inner a:first-child { border-radius: 46px 46px 6px 6px; padding-top: 8px; }
.ring .inner a:last-child { border-radius: 6px 6px 46px 46px; padding-bottom: 8px; }
.ring .count { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; pointer-events: none; }
.ring .count b { font: 700 22px var(--disp); }
.ring .count span { font-size: 11px; color: var(--mute); }
.me { display: flex; align-items: center; gap: 10px; padding: 10px 8px 0; border-top: 1px solid var(--line); margin-top: -8px; flex: none; }
.me .who { flex: 1; font-size: 14px; background: none; height: auto; padding: 0; justify-content: flex-start; text-align: left; display: block; border-radius: 6px; }
.me .who:hover { background: none; color: var(--acc-hi); }
.me .who small { display: block; font-size: 12px; color: var(--mute); }

/* ---------- cards */
.card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 18px; }
.card h2 { font-size: 18px; }
.banner { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 10px 14px; border-radius: 10px;
  background: #3A2414; color: #FFD9B0; font-size: 14px; }
.banner.bad { background: var(--bad-bg); color: #FFC2CA; }
.banner.info { background: var(--soft); color: var(--ink); }

.details .dhead { display: flex; align-items: flex-start; gap: 16px; }
.details h1 { flex: 1; min-width: 0; font: 800 28px/1.1 var(--disp); letter-spacing: -.02em; padding-top: 2px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.acts { display: flex; gap: 8px; flex: none; }
.acts .danger.ic { background: var(--bad-bg); }
.details .msg { margin-top: 12px; }
.facts { margin: 14px 0 0; padding-top: 14px; border-top: 1px solid var(--line); display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px 18px; }
.facts dt { font-size: 12px; color: var(--dim); }
.facts dd { margin: 1px 0 0; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.setup { margin-top: 14px; }
.setup .lab { display: flex; justify-content: space-between; font-size: 13px; color: var(--mute); margin-bottom: 7px; }
.setup .lab b { color: var(--ink); font-weight: 600; }

.mapcard { flex: 1 0 420px; max-height: 680px; display: flex; flex-direction: column; overflow: hidden; }
.mhead { display: flex; flex-direction: column; gap: 2px; }
.mtop { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 2px; }
.mtop h2 { flex: 1; min-width: 120px; }
.mhead .bar { width: 200px; margin-top: 5px; }
.mapbox { flex: 1; min-height: 220px; margin-top: 12px; border-radius: 10px; background: var(--well); overflow: hidden; position: relative; }
.mapbox canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; }
.legend i.dot { border-radius: 50%; background: #E9ECF1; }
.mapcard.full { position: fixed; inset: 12px; z-index: 25; max-height: none; box-shadow: 0 20px 80px rgba(0,0,0,.6); }
body.mapfull::after { content: ""; position: fixed; inset: 0; background: rgba(8,9,12,.7); z-index: 24; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12px; color: var(--mute); margin-top: 10px; }
.legend .sp { flex: 1; }
.legend span { white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 10px; height: 10px; border-radius: 2px; display: inline-block; }
.legend i.ring { border: 2px dashed var(--acc); background: none; width: 11px; height: 11px; border-radius: 50%; }

.statrow { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; flex: none; }
.duo { display: grid; grid-template-columns: minmax(0, 1fr) 1px minmax(0, 1fr); gap: 16px; padding: 16px; }
.duo .vr { background: var(--line); }
.big { font: 700 26px var(--disp); }
.big small { font-size: 14px; color: var(--mute); font-weight: 600; margin-left: 2px; }
.spark { margin-top: 8px; height: 34px; }
.mbar { position: relative; height: 8px; border-radius: 99px; background: var(--line); margin-top: 12px; }
.mbar i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 99px; background: var(--acc); transition: width .6s ease; }
.mbar u { position: absolute; top: -3px; bottom: -3px; width: 2px; background: var(--ink); border-radius: 2px; }
.mscale { display: flex; justify-content: space-between; font-size: 12px; color: var(--dim); margin-top: 6px; }
.players { padding: 16px; display: flex; flex-direction: column; min-height: 0; }
.plist { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; overflow: auto; max-height: 132px; }
.prow { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.prow span:nth-child(2) { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.head { width: 26px; height: 26px; border-radius: 7px; flex: none; display: inline-flex; align-items: center;
  justify-content: center; font: 700 12px var(--text); color: #fff; }

/* ---------- right panel */
.tabs { display: flex; gap: 0; border-bottom: 1px solid var(--line); flex: none; overflow-x: auto; scrollbar-width: thin; scrollbar-color: var(--line2) transparent; }
.tabs a { flex: 1 0 auto; justify-content: center; height: 40px; display: flex; align-items: center; padding: 0 6px; color: var(--mute); font-size: 13px;
  border-bottom: 2px solid transparent; white-space: nowrap; }
.tabs a:hover { color: var(--ink); }
.tabs a.on { color: var(--ink); border-bottom-color: var(--acc); }
.tabbody { flex: 1; min-height: 0; overflow: auto; display: flex; flex-direction: column; gap: 12px; }
.tabbody.fill { overflow: hidden; }
.console { flex: 1; min-height: 200px; overflow: auto; background: #121418; border: 1px solid var(--line); border-radius: 12px;
  padding: 12px 14px; font: 12.5px/1.65 var(--mono); color: #C9D0DB; white-space: pre-wrap; word-break: break-word; }
.console .w { color: var(--warn); } .console .e { color: var(--bad); } .console .c { color: var(--acc); }
.cmdrow { display: flex; gap: 10px; flex: none; }
.cmdrow input { font-family: var(--mono); height: 44px; }
.cmdrow button { height: 44px; }

.list { display: flex; flex-direction: column; gap: 6px; }
.item { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: var(--card); border: 1px solid var(--line); border-radius: 10px; }
.item.click { cursor: pointer; }
.item.click:hover, .item.sel { border-color: var(--acc); }
.item img { width: 36px; height: 36px; border-radius: 8px; background: var(--soft); flex: none; object-fit: cover; }
.item .grow { flex: 1; min-width: 0; }
.item .t { font-weight: 600; }
.item .d { font-size: 12px; color: var(--mute); overflow: hidden; text-overflow: ellipsis; }
.disabled-mod { opacity: .55; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 14px; font-size: 14px; align-items: center; }
.kv > div:nth-child(odd) { color: var(--mute); }
.cores { display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 6px; }
.core { padding: 8px; border-radius: 8px; background: var(--well); border: 1px solid var(--line); font-size: 12px; color: var(--mute); }
.core b { display: block; color: var(--ink); font: 12px var(--mono); }
.core.home { border-color: var(--acc); } .core.burst { border-color: var(--gold); } .core.res { opacity: .5; }
.lsw { display: inline-flex; padding: 3px; border-radius: 10px; background: var(--well); border: 1px solid var(--line); }
.lsw button { height: 28px; padding: 0 12px; background: transparent; color: var(--mute); border-radius: 7px; font-size: 13px; }
.lsw button.on { background: var(--soft2); color: #fff; }

/* ---------- overview */
.hstats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px; }
.home .prow.hp { display: grid; grid-template-columns: 26px minmax(0, 1fr) minmax(0, 1fr) 110px; padding: 6px 0; border-top: 1px solid var(--line); }
.home .prow.hp:first-child { border-top: 0; }
.home .prow.hp .sub { text-align: right; }
.home .act-row { grid-template-columns: 120px minmax(0, 1fr) 130px; }

/* ---------- full-width pages */
.page { max-width: 1100px; width: 100%; display: flex; flex-direction: column; gap: 16px; }
.page h1 { font: 800 30px var(--disp); letter-spacing: -.02em; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; font-weight: 500; font-size: 12px; color: var(--dim); padding: 0 10px 8px; }
td { padding: 10px; border-top: 1px solid var(--line); vertical-align: middle; }
td select { height: 34px; width: auto; }
.act-row { display: grid; grid-template-columns: 150px minmax(0, 1fr) 140px; gap: 14px; padding: 11px 4px; border-top: 1px solid var(--line); font-size: 14px; }
.act-row .when { color: var(--mute); font-size: 13px; }
.act-row .ip { color: var(--dim); font: 12px var(--mono); text-align: right; }
.act-row .det { font: 12px var(--mono); color: var(--mute); margin-top: 2px; overflow-wrap: anywhere; }
.act-row.fail .what { color: var(--bad); }
.empty { text-align: center; padding: 60px 20px; margin: auto; max-width: 460px; }
.empty img { width: 96px; height: 96px; }
.empty h2 { font-size: 24px; margin: 12px 0 6px; }

/* ---------- login, modal, toast */
.login { max-width: 380px; margin: 12vh auto 0; }
.login img { height: 64px; display: block; margin: 0 auto 18px; }
.modal { position: fixed; inset: 0; background: rgba(8, 9, 12, .7); display: flex; align-items: flex-start; justify-content: center;
  padding: 6vh 16px; z-index: 20; overflow: auto; }
.modal-card { width: 100%; max-width: 640px; background: var(--card); border: 1px solid var(--line2); border-radius: 16px; padding: 22px; }
.mtabs { display: flex; gap: 4px; margin: 14px 0; border-bottom: 1px solid var(--line); }
.mtabs a { padding: 10px 10px; color: var(--mute); border-bottom: 2px solid transparent; cursor: pointer; font-size: 14px; }
.mtabs a.on { color: var(--ink); border-bottom-color: var(--acc); }
.toast { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); background: var(--soft2); color: var(--ink);
  padding: 10px 16px; border-radius: 10px; z-index: 30; box-shadow: 0 8px 30px rgba(0, 0, 0, .4); max-width: 90vw; }
.uppill { position: fixed; right: 20px; bottom: 20px; z-index: 25; display: flex; align-items: center; gap: 10px; width: min(380px, calc(100vw - 40px));
  background: var(--card); border: 1px solid var(--line2); border-radius: 12px; padding: 10px 12px; box-shadow: 0 8px 30px rgba(0, 0, 0, .4); }
.uppill .upopen { all: unset; flex: 1; min-width: 0; cursor: pointer; display: grid; gap: 3px; }
.uppill .upopen:focus-visible { outline: 2px solid var(--acc); outline-offset: 4px; border-radius: 6px; }
.uppill b { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.uppill span { font-size: 12px; color: var(--mute); }
.uppill .bar { margin-top: 3px; }
.toast.err { background: var(--bad-bg); color: #FFC2CA; }

/* ---------- smaller screens */
@media (max-width: 1360px) {
  .layout { grid-template-columns: 270px minmax(0, 1fr) clamp(380px, 32vw, 440px); }
  .layout.wide { grid-template-columns: 270px minmax(0, 1fr); }
  .facts { gap: 10px 14px; } .facts dd { font-size: 14px; }
}
@media (max-height: 820px) { .ring { transform: scale(.8); margin: -23px 0; } }
@media (max-width: 1080px) {
  .layout, .layout.wide { grid-template-columns: 1fr; height: auto; }
  .side, .center, .rail { height: auto; position: static; }
  .side { border-right: 0; border-bottom: 1px solid var(--line); }
  .srvlist { max-height: 40vh; }
  .rail { border-left: 0; border-top: 1px solid var(--line); }
  .tabbody { max-height: 80vh; }
  .console { min-height: 50vh; }
  .statrow { grid-template-columns: 1fr; }
  .mapcard { min-height: 340px; }
  .act-row { grid-template-columns: 1fr; gap: 2px; }
  .act-row .ip { text-align: left; }
}
@media (max-width: 560px) {
  .center { padding: 16px 14px; }
  .facts { grid-template-columns: 1fr 1fr; }
  .duo { grid-template-columns: 1fr; } .duo .vr { display: none; }
  .details .dhead { flex-direction: column; }
}

.item.off .t, .item.off .d { opacity: .55; }
.hchart { margin-top: 14px; } .hchart svg { display: block; margin: 6px 0 2px; background: var(--well); border-radius: 8px; }
.me .ic { width: 32px; padding: 0; justify-content: center; display: inline-flex; align-items: center; }
.me .ic svg { width: 17px; height: 17px; }
.guide-wrap { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 20px; align-items: start; }
.toc { position: sticky; top: 16px; display: flex; flex-direction: column; gap: 2px; }
.toc a { color: var(--mute); text-decoration: none; padding: 6px 10px; border-radius: 8px; font-size: 14px; }
.toc a:hover { background: var(--soft); color: var(--ink); }
.guide-body { max-width: 760px; }
.guide-body section { scroll-margin-top: 16px; }
.guide-body p, .guide-body li { line-height: 1.55; }
.guide-body ul { padding-left: 20px; } .guide-body li { margin: 6px 0; }
@media (max-width: 900px) { .guide-wrap { grid-template-columns: 1fr; } .toc { position: static; flex-direction: row; flex-wrap: wrap; } }
