/* Aether World — admin panel. Night sky of the start hub; crystals as accents. */
:root {
  --bg: #0a0c11;
  --side: #0c0f15;
  --surface: #10131a;
  --surface-2: #151922;
  --surface-3: #1a1f2a;
  --line: #1c212c;
  --line-2: #262c39;
  --text: #e4e7ee;
  --text-2: #a2a9b9;
  --text-3: #687084;
  --aether: #7fe3d4;
  --aether-dim: rgba(127, 227, 212, .12);
  --amethyst: #a796ff;
  --amethyst-dim: rgba(167, 150, 255, .12);
  --gold: #e8c27a;
  --gold-dim: rgba(232, 194, 122, .12);
  --ember: #ff7b68;
  --ember-dim: rgba(255, 123, 104, .12);
  --moss: #8fd48a;
  --sky: #82b7ff;
  --r: 8px;
  --font: "Onest", system-ui, sans-serif;
  --serif: "Spectral", Georgia, serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font: 14px/1.45 var(--font);
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "tnum" 1;
}
body::before {
  content: "";
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(1100px 520px at 88% -12%, rgba(127, 227, 212, .055), transparent 62%),
    radial-gradient(800px 460px at 8% 112%, rgba(167, 150, 255, .045), transparent 60%);
}
a { color: var(--aether); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: rgba(127, 227, 212, .25); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: #232837; border-radius: 10px; border: 2px solid var(--bg); }
::-webkit-scrollbar-track { background: transparent; }

/* ---------------------------------------------------------------- layout */
.app { position: relative; z-index: 1; display: grid; grid-template-columns: 236px 1fr; min-height: 100vh; }
.side {
  position: sticky; top: 0; height: 100vh;
  display: flex; flex-direction: column;
  background: var(--side); border-right: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 12px; padding: 22px 20px 18px; }
.brand svg { flex: none; }
.brand b { display: block; font: 600 21px/1 var(--serif); letter-spacing: .05em; }
.brand span { display: block; margin-top: 5px; color: var(--text-3); font-size: 11.5px; letter-spacing: .02em; }
.nav { flex: 1; overflow-y: auto; padding: 4px 10px 12px; }
.nav h6 { margin: 18px 10px 6px; color: var(--text-3); font: 500 11px/1 var(--font); letter-spacing: .08em; text-transform: uppercase; }
.nav a {
  position: relative; display: flex; align-items: center; gap: 11px;
  height: 34px; padding: 0 10px; border-radius: 6px;
  color: var(--text-2); font-weight: 500;
}
.nav a:hover { background: var(--surface-2); color: var(--text); text-decoration: none; }
.nav a.on { background: var(--surface-2); color: var(--text); }
.nav a.on::before { content: ""; position: absolute; left: -10px; top: 8px; bottom: 8px; width: 2px; border-radius: 2px; background: var(--aether); }
.nav a.on svg { color: var(--aether); }
.nav svg { width: 17px; height: 17px; flex: none; color: var(--text-3); }
.nav .count { margin-left: auto; color: var(--text-3); font: 12px var(--mono); }

.side-foot { padding: 14px 16px 16px; border-top: 1px solid var(--line); }
.srv-line { display: flex; align-items: center; gap: 9px; font-weight: 500; }
.srv-addr {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  margin-top: 10px; padding: 7px 10px; border: 1px solid var(--line-2); border-radius: 6px;
  font: 12.5px var(--mono); color: var(--text-2); cursor: pointer;
}
.srv-addr:hover { border-color: var(--aether); color: var(--text); }
.me { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; color: var(--text-3); font-size: 12.5px; }
.me button { background: none; border: 0; color: var(--text-3); cursor: pointer; padding: 0; }
.me button:hover { color: var(--ember); }

.main { min-width: 0; display: flex; flex-direction: column; }
.top {
  position: sticky; top: 0; z-index: 5;
  display: flex; align-items: center; gap: 16px;
  padding: 18px 32px 16px;
  background: rgba(10, 12, 17, .86); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.top h1 { margin: 0; font: 600 25px/1.1 var(--serif); letter-spacing: .01em; }
.top .sub { margin-top: 3px; color: var(--text-3); font-size: 12.5px; }
.top-actions { margin-left: auto; display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.burger { display: none; }
.view { padding: 24px 32px 48px; display: flex; flex-direction: column; gap: 18px; }

/* ---------------------------------------------------------------- primitives */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); min-width: 0; }
.card-h { display: flex; align-items: center; gap: 12px; padding: 14px 18px 0; min-height: 44px; }
.card-h h3 { margin: 0; font: 600 14px/1.2 var(--font); color: var(--text); }
.card-h .hint { color: var(--text-3); font-size: 12.5px; }
.card-h .tools { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.card-b { padding: 14px 18px 18px; }
.card-b.flush { padding: 8px 0 6px; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.split { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.stack { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.muted { color: var(--text-3); }
.dim { color: var(--text-2); }
.mono { font-family: var(--mono); font-size: 12.5px; }
.right { margin-left: auto; }
.empty { padding: 34px 18px; text-align: center; color: var(--text-3); }
.sep { height: 1px; background: var(--line); margin: 6px 0; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  height: 32px; padding: 0 13px; border-radius: 6px;
  background: var(--surface-2); border: 1px solid var(--line-2); color: var(--text);
  font-weight: 500; font-size: 13px; cursor: pointer; white-space: nowrap;
  transition: border-color .15s, background .15s, color .15s;
}
.btn:hover { border-color: #3a4152; background: var(--surface-3); }
.btn:disabled { opacity: .45; cursor: default; }
.btn svg { width: 15px; height: 15px; }
.btn.primary { background: var(--aether); border-color: var(--aether); color: #06120f; }
.btn.primary:hover { background: #9aeee2; border-color: #9aeee2; }
.btn.danger { color: var(--ember); border-color: rgba(255, 123, 104, .3); background: transparent; }
.btn.danger:hover { background: var(--ember-dim); border-color: var(--ember); }
.btn.gold { color: var(--gold); border-color: rgba(232, 194, 122, .3); background: transparent; }
.btn.gold:hover { background: var(--gold-dim); border-color: var(--gold); }
.btn.ghost { background: transparent; border-color: transparent; color: var(--text-2); }
.btn.ghost:hover { color: var(--text); background: var(--surface-2); }
.btn.sm { height: 27px; padding: 0 9px; font-size: 12.5px; }
.btn.icon { width: 32px; padding: 0; }
.btn.sm.icon { width: 27px; }

.in, select.in, textarea.in {
  height: 34px; padding: 0 11px; border-radius: 6px;
  background: #0c0f14; border: 1px solid var(--line-2); color: var(--text); outline: none;
  transition: border-color .15s, box-shadow .15s;
}
textarea.in { height: auto; padding: 10px 12px; resize: vertical; line-height: 1.5; }
.in:focus { border-color: var(--aether); box-shadow: 0 0 0 3px var(--aether-dim); }
.in::placeholder { color: var(--text-3); }
.in.wide { width: 100%; }
label.field { display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; color: var(--text-2); }
label.field .help { color: var(--text-3); font-size: 12px; }

.seg { display: inline-flex; padding: 2px; border: 1px solid var(--line-2); border-radius: 7px; background: #0c0f14; }
.seg button { height: 26px; padding: 0 10px; border: 0; border-radius: 5px; background: none; color: var(--text-3); font-size: 12.5px; font-weight: 500; cursor: pointer; }
.seg button:hover { color: var(--text); }
.seg button.on { background: var(--surface-3); color: var(--text); }

.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); }
.tabs button {
  position: relative; height: 40px; padding: 0 14px; border: 0; background: none;
  color: var(--text-3); font-weight: 500; cursor: pointer;
}
.tabs button:hover { color: var(--text); }
.tabs button.on { color: var(--text); }
.tabs button.on::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 2px; background: var(--aether); border-radius: 2px; }
.tabs .n { margin-left: 6px; color: var(--text-3); font: 11.5px var(--mono); }

.tag {
  display: inline-flex; align-items: center; gap: 5px; height: 21px; padding: 0 7px;
  border: 1px solid var(--line-2); border-radius: 5px;
  color: var(--text-2); font-size: 11.5px; font-weight: 500; white-space: nowrap;
}
.tag.ok { color: var(--moss); border-color: rgba(143, 212, 138, .3); }
.tag.aether { color: var(--aether); border-color: rgba(127, 227, 212, .3); }
.tag.violet { color: var(--amethyst); border-color: rgba(167, 150, 255, .3); }
.tag.gold { color: var(--gold); border-color: rgba(232, 194, 122, .3); }
.tag.bad { color: var(--ember); border-color: rgba(255, 123, 104, .3); }

.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--text-3); flex: none; }
.dot.ok { background: var(--moss); box-shadow: 0 0 0 3px rgba(143, 212, 138, .14); }
.dot.warn { background: var(--gold); box-shadow: 0 0 0 3px rgba(232, 194, 122, .14); animation: pulse 1.6s infinite; }
.dot.bad { background: var(--ember); box-shadow: 0 0 0 3px rgba(255, 123, 104, .14); }
.dot.off { background: #3b4252; }
@keyframes pulse { 50% { opacity: .35; } }

.switch { position: relative; width: 36px; height: 20px; flex: none; cursor: pointer; }
.switch input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.switch i { position: absolute; inset: 0; border-radius: 20px; background: #232937; transition: background .15s; }
.switch i::after { content: ""; position: absolute; left: 3px; top: 3px; width: 14px; height: 14px; border-radius: 50%; background: #8a91a3; transition: transform .15s, background .15s; }
.switch input:checked + i { background: rgba(127, 227, 212, .3); }
.switch input:checked + i::after { transform: translateX(16px); background: var(--aether); }

.meter { height: 4px; border-radius: 4px; background: #1b202b; overflow: hidden; }
.meter i { display: block; height: 100%; border-radius: 4px; background: var(--aether); transition: width .5s; }
.meter.warn i { background: var(--gold); }
.meter.bad i { background: var(--ember); }

/* ---------------------------------------------------------------- tables */
.tbl { width: 100%; border-collapse: collapse; }
.tbl th {
  text-align: left; padding: 9px 12px; color: var(--text-3);
  font-size: 12px; font-weight: 500; border-bottom: 1px solid var(--line); white-space: nowrap;
}
.tbl td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tbody tr:hover td { background: rgba(255, 255, 255, .015); }
.tbl tr.click { cursor: pointer; }
.tbl th:first-child, .tbl td:first-child { padding-left: 18px; }
.tbl th:last-child, .tbl td:last-child { padding-right: 18px; }
.tbl .num { text-align: right; font-variant-numeric: tabular-nums; }
.tbl-wrap { overflow-x: auto; }

.who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.who img, .head {
  width: 28px; height: 28px; border-radius: 5px; flex: none;
  image-rendering: pixelated; background: var(--surface-3);
}
.who b { font-weight: 600; }
.who small { display: block; color: var(--text-3); font-size: 12px; }

/* ---------------------------------------------------------------- security */
.nav .badge {
  margin-left: auto; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
  background: var(--ember); color: #1d0705; font: 600 11px/18px var(--font); text-align: center;
  box-shadow: 0 0 0 3px rgba(255, 123, 104, .14);
}
.sec-feed { display: flex; flex-direction: column; gap: 10px; padding: 0 18px 18px; }
.sec-card {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 14px;
  padding: 14px 16px 14px 18px; border-radius: var(--r);
  background: var(--surface-2); border: 1px solid var(--line);
}
.sec-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--line-2); }
.sec-card.mods::before { background: var(--amethyst); }
.sec-card.suspicious::before { background: var(--gold); }
.sec-card.cheat::before, .sec-card.blocked::before, .sec-card.hwidban::before { background: var(--ember); }
.sec-card.hwidunban::before { background: var(--moss); }
.sec-card.cheat {
  border-color: rgba(255, 123, 104, .3);
  background: radial-gradient(420px 140px at 0% 0%, rgba(255, 123, 104, .14), transparent 70%), var(--surface-2);
}
.sec-head { width: 48px; height: 48px; border-radius: 7px; image-rendering: pixelated; background: var(--surface-3); box-shadow: 0 0 0 2px var(--line-2); }
.sec-card.cheat .sec-head { box-shadow: 0 0 0 2px var(--ember), 0 0 20px rgba(255, 123, 104, .4); }
.sec-card.suspicious .sec-head { box-shadow: 0 0 0 2px rgba(232, 194, 122, .7); }
.sec-card.mods .sec-head { box-shadow: 0 0 0 2px rgba(167, 150, 255, .55); }
.sec-top { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.sec-name { font-weight: 600; font-size: 14.5px; color: var(--text); }
.sec-card.new .sec-name::after {
  content: ""; display: inline-block; width: 7px; height: 7px; margin-left: 7px; border-radius: 50%; vertical-align: middle;
  background: var(--ember); box-shadow: 0 0 0 3px rgba(255, 123, 104, .16);
}
.sec-time { margin-left: auto; color: var(--text-3); font-size: 12px; }
.sec-text { margin-top: 4px; color: var(--text-2); font-size: 13px; }
.sec-mods { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.mod {
  display: inline-flex; align-items: center; gap: 7px; height: 24px; padding: 0 9px; border-radius: 6px;
  background: #0c0f14; border: 1px solid var(--line-2); color: var(--text); font-size: 12px;
}
.mod i { font: 11px var(--mono); font-style: normal; color: var(--text-3); }
.mod.cheat { border-color: rgba(255, 123, 104, .55); background: rgba(255, 123, 104, .08); color: #ffb4a9; }
.mod.suspicious { border-color: rgba(232, 194, 122, .5); color: var(--gold); }
.sec-foot { display: flex; align-items: center; gap: 10px; margin-top: 10px; font-size: 12px; }
.sec-foot .btn { margin-left: auto; }

/* ---------------------------------------------------------------- grimac */
.grim-top { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; align-items: center; padding: 10px 18px; border-bottom: 1px solid var(--line); }
.grim-top:last-child { border-bottom: 0; }
.grim-checks { grid-column: 1; display: flex; flex-wrap: wrap; gap: 4px; }
.grim-n { grid-column: 2; grid-row: 1 / span 2; text-align: right; }
.grim-n b { display: block; font-size: 20px; font-weight: 600; color: var(--gold); }
.grim-n span { color: var(--text-3); font-size: 11.5px; }
.tbl tr.grim-new td:first-child { box-shadow: inset 2px 0 0 var(--ember); }

/* ---------------------------------------------------------------- overview */
.hero { display: grid; grid-template-columns: auto 1fr auto; gap: 22px; align-items: center; padding: 22px 24px; position: relative; overflow: hidden; }
.hero::after {
  content: ""; position: absolute; right: -60px; top: -80px; width: 340px; height: 240px; pointer-events: none;
  background: radial-gradient(closest-side, rgba(127, 227, 212, .09), transparent);
}
.crystal { width: 54px; height: 54px; }
.crystal .c-line { stroke: var(--aether); }
.crystal.warn .c-line { stroke: var(--gold); }
.crystal.bad .c-line, .crystal.off .c-line { stroke: #4b5263; }
.crystal.ok .c-core { animation: glow 3.2s ease-in-out infinite; }
@keyframes glow { 50% { opacity: .35; } }
.hero h2 { margin: 0; font: 600 24px/1.15 var(--serif); }
.hero .state { margin-top: 6px; display: flex; align-items: center; gap: 9px; color: var(--text-2); flex-wrap: wrap; }
.hero .meta { text-align: right; color: var(--text-3); font-size: 12.5px; line-height: 1.7; position: relative; z-index: 1; }

.tiles { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.tile { padding: 15px 16px 14px; display: flex; flex-direction: column; gap: 3px; }
.tile .lbl { color: var(--text-3); font-size: 12.5px; }
.tile .val { font: 600 27px/1.15 var(--font); letter-spacing: -.01em; }
.tile .val small { font-size: 14px; font-weight: 500; color: var(--text-3); margin-left: 3px; }
.tile .val.ok { color: var(--moss); }
.tile .val.warn { color: var(--gold); }
.tile .val.bad { color: var(--ember); }
.tile .sub { color: var(--text-3); font-size: 12px; min-height: 17px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile .meter { margin-top: 8px; }

.feed { display: flex; flex-direction: column; }
.feed-i { display: grid; grid-template-columns: 52px 22px minmax(0, 1fr); gap: 8px; align-items: baseline; padding: 6px 18px; font-size: 13px; }
.feed-i .t { color: var(--text-3); font: 11.5px var(--mono); }
.feed-i .ic { width: 14px; height: 14px; align-self: center; }
.feed-i .tx { min-width: 0; overflow-wrap: anywhere; color: var(--text-2); }
.feed-i .tx b { color: var(--text); font-weight: 600; }
.ev-join { color: var(--moss); } .ev-quit { color: var(--text-3); } .ev-death { color: var(--ember); }
.ev-chat { color: var(--aether); } .ev-command { color: var(--amethyst); } .ev-kick { color: var(--gold); }

/* ---------------------------------------------------------------- charts */
.chart { position: relative; width: 100%; }
.chart svg { display: block; width: 100%; overflow: visible; }
.chart .gl { stroke: #1b202a; stroke-width: 1; }
.chart .ax { fill: var(--text-3); font: 10.5px var(--mono); }
.chart .cross { stroke: #3a4152; stroke-width: 1; stroke-dasharray: 3 3; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; color: var(--text-3); font-size: 12px; }
.legend i { display: inline-block; width: 10px; height: 2px; border-radius: 2px; margin-right: 6px; vertical-align: middle; }
.tip {
  position: absolute; z-index: 3; pointer-events: none; min-width: 140px;
  padding: 8px 10px; border-radius: 6px; background: #0d1016; border: 1px solid var(--line-2);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .45); font-size: 12px;
}
.tip .h { color: var(--text-3); font: 11px var(--mono); margin-bottom: 4px; }
.tip .r { display: flex; align-items: center; gap: 8px; }
.tip .r i { width: 8px; height: 8px; border-radius: 2px; }
.tip .r b { margin-left: auto; font-weight: 600; padding-left: 12px; }

.heat { display: grid; grid-template-columns: 26px repeat(24, minmax(0, 1fr)); gap: 3px; font: 10.5px var(--mono); color: var(--text-3); }
.heat .c { aspect-ratio: 1.4; border-radius: 3px; background: #141821; }
.heat .hl { display: flex; align-items: center; }
.heat .hh { text-align: center; }

/* ---------------------------------------------------------------- console */
.console-wrap { display: flex; flex-direction: column; height: calc(100vh - 150px); min-height: 420px; }
.console {
  flex: 1; overflow-y: auto; padding: 14px 18px;
  background: #07090d; border-bottom: 1px solid var(--line);
  font: 12.5px/1.6 var(--mono); white-space: pre-wrap; overflow-wrap: anywhere;
}
.console .l { color: #b9bfcc; }
.console .l .ts { color: #4d5568; }
.console .l.warn { color: var(--gold); }
.console .l.err { color: var(--ember); }
.console .l.ok { color: var(--moss); }
.console .l.cmd { color: var(--aether); }
.console .l.reset { color: var(--amethyst); border-top: 1px dashed #2a3040; margin-top: 8px; padding-top: 8px; }
.console mark { background: rgba(232, 194, 122, .25); color: inherit; border-radius: 2px; }
.cmdbar { display: flex; gap: 10px; padding: 12px 14px; align-items: center; }
.cmdbar .prompt { color: var(--aether); font: 600 14px var(--mono); }
.cmdbar input { flex: 1; font-family: var(--mono); font-size: 13px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; padding: 0 14px 12px; }
.chips button { height: 25px; padding: 0 9px; border-radius: 5px; border: 1px solid var(--line-2); background: none; color: var(--text-3); font: 12px var(--mono); cursor: pointer; }
.chips button:hover { color: var(--text); border-color: #3a4152; }

/* ---------------------------------------------------------------- player */
.p-head { display: flex; gap: 20px; align-items: center; padding: 22px 24px; }
.p-head .big { width: 76px; height: 76px; border-radius: 8px; image-rendering: pixelated; background: var(--surface-3); }
.p-head h2 { margin: 0; font: 600 28px/1.1 var(--serif); }
.p-head .uuid { color: var(--text-3); font: 12px var(--mono); margin-top: 4px; cursor: pointer; }
.p-head .uuid:hover { color: var(--text-2); }
.p-head .tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.p-actions { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 24px 20px; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 8px 18px; font-size: 13px; }
.kv dt { color: var(--text-3); }
.kv dd { margin: 0; text-align: right; overflow-wrap: anywhere; }
.bars2 { display: flex; flex-direction: column; gap: 12px; }
.bars2 .lbl { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--text-2); margin-bottom: 5px; }

.inv { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 4px; }
.slot {
  position: relative; aspect-ratio: 1; border-radius: 5px; background: #0c0f14; border: 1px solid #1a1f29;
  display: flex; align-items: center; justify-content: center; padding: 3px; overflow: hidden;
}
.slot .gem { width: 42%; aspect-ratio: 1; transform: rotate(45deg); border-radius: 2px; }
.slot .nm { position: absolute; left: 3px; right: 3px; bottom: 2px; font-size: 9px; line-height: 1.1; color: var(--text-3); text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.slot .am { position: absolute; right: 4px; top: 2px; font: 600 10.5px var(--mono); color: var(--text); }
.slot.ench { border-color: rgba(167, 150, 255, .5); box-shadow: inset 0 0 12px rgba(167, 150, 255, .18); }
.slot.named .nm { color: var(--gold); }
.slot.empty-s { opacity: .55; }
.inv-sep { grid-column: 1 / -1; height: 6px; }
.inv-side { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; max-width: 280px; }

.talents { display: flex; flex-wrap: wrap; gap: 6px; }
.q-row { display: grid; grid-template-columns: minmax(0, 1fr) 110px 46px; gap: 12px; align-items: center; padding: 6px 0; font-size: 13px; }

/* ---------------------------------------------------------------- worlds, aether */
.world { padding: 18px 20px; display: flex; flex-direction: column; gap: 14px; }
.world h3 { margin: 0; font: 600 18px/1.2 var(--serif); }
.world .key { color: var(--text-3); font: 11.5px var(--mono); }
.world .stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.world .stats div { display: flex; flex-direction: column; gap: 2px; }
.world .stats span { color: var(--text-3); font-size: 12px; }
.world .stats b { font-size: 17px; font-weight: 600; }
.clock { font: 600 22px/1 var(--mono); }
.altar { display: flex; gap: 14px; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.altar:last-child { border-bottom: 0; }
.altar .sig { width: 36px; height: 36px; flex: none; }

/* ---------------------------------------------------------------- files */
.crumbs { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; font: 13px var(--mono); }
.crumbs button { border: 0; background: none; color: var(--text-2); padding: 3px 6px; border-radius: 4px; cursor: pointer; font: inherit; }
.crumbs button:hover { background: var(--surface-2); color: var(--text); }
.crumbs span { color: var(--text-3); }
.fi { display: flex; align-items: center; gap: 10px; }
.fi svg { width: 16px; height: 16px; color: var(--text-3); flex: none; }
.fi.dir svg { color: var(--gold); }
.editor { width: 100%; min-height: calc(100vh - 260px); border: 0; border-radius: 0 0 var(--r) var(--r); background: #07090d; color: #d5dae4; font: 13px/1.6 var(--mono); padding: 16px 18px; resize: none; outline: none; tab-size: 2; }
.drop { border: 1px dashed var(--line-2); border-radius: var(--r); padding: 16px; text-align: center; color: var(--text-3); transition: border-color .15s, background .15s; }
.drop.over { border-color: var(--aether); background: var(--aether-dim); color: var(--text); }

/* ---------------------------------------------------------------- banners, modal, toasts, login */
.banner { display: flex; align-items: center; gap: 12px; padding: 11px 16px; border-radius: var(--r); border: 1px solid rgba(232, 194, 122, .3); background: var(--gold-dim); color: var(--gold); font-size: 13px; }
.banner .btn { margin-left: auto; }

.overlay { position: fixed; inset: 0; z-index: 50; background: rgba(4, 5, 8, .66); backdrop-filter: blur(3px); display: flex; align-items: center; justify-content: center; padding: 20px; animation: fade .12s; }
.modal { width: min(460px, 100%); background: var(--surface); border: 1px solid var(--line-2); border-radius: 10px; box-shadow: 0 30px 80px rgba(0, 0, 0, .55); }
.modal h3 { margin: 0; padding: 20px 22px 0; font: 600 19px/1.2 var(--serif); }
.modal .mb { padding: 14px 22px 4px; display: flex; flex-direction: column; gap: 14px; color: var(--text-2); }
.modal .mf { display: flex; justify-content: flex-end; gap: 8px; padding: 16px 22px 20px; }
@keyframes fade { from { opacity: 0; } }

#toasts { position: fixed; right: 20px; bottom: 20px; z-index: 60; display: flex; flex-direction: column; gap: 8px; }
.toast { max-width: 360px; padding: 11px 14px; border-radius: 7px; background: #141822; border: 1px solid var(--line-2); border-left: 3px solid var(--aether); box-shadow: 0 12px 30px rgba(0, 0, 0, .4); font-size: 13px; animation: rise .2s; transition: opacity .3s, transform .3s; }
.toast.err { border-left-color: var(--ember); }
.toast.out { opacity: 0; transform: translateY(6px); }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }

.login { position: relative; z-index: 1; min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.login-box { width: min(380px, 100%); }
.login-box .mark { display: flex; flex-direction: column; align-items: center; gap: 14px; margin-bottom: 26px; text-align: center; }
.login-box .mark b { font: 600 30px/1 var(--serif); letter-spacing: .08em; }
.login-box .mark span { color: var(--text-3); font-size: 13px; }
.login-box form { display: flex; flex-direction: column; gap: 14px; padding: 24px; }
.login-box .err { color: var(--ember); font-size: 13px; min-height: 18px; }
.stars { position: fixed; inset: 0; z-index: 0; pointer-events: none; }

.spin { width: 14px; height: 14px; border: 2px solid rgba(255, 255, 255, .15); border-top-color: var(--aether); border-radius: 50%; animation: rot .8s linear infinite; display: inline-block; }
@keyframes rot { to { transform: rotate(360deg); } }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1280px) {
  .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1100px) {
  .grid2, .split, .grid3 { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 860px) {
  .app { grid-template-columns: 1fr; }
  .side { position: fixed; left: 0; top: 0; bottom: 0; width: 260px; z-index: 40; transform: translateX(-100%); transition: transform .2s; }
  .app.nav-open .side { transform: none; box-shadow: 20px 0 60px rgba(0, 0, 0, .5); }
  .burger { display: inline-flex; }
  .top { padding: 14px 16px; flex-wrap: wrap; }
  .view { padding: 16px 16px 40px; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero { grid-template-columns: auto 1fr; }
  .hero .meta { grid-column: 1 / -1; text-align: left; }
  .world .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .p-head { flex-wrap: wrap; }
}
