:root{
  --bg:#070a0f;
  --panel:#0b0f17;
  --card:#0e1420;
  --border:#233047;
  --text:#e9eef7;
  --muted:#98a6bf;
  --accent:#7b5cff;
  --good:#28d17c;
  --bad:#ff3b3b;
  --shadow: 0 14px 40px rgba(0,0,0,.45);
  --radius: 18px;
}

*{box-sizing:border-box}
body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color:var(--text);
  background:
    radial-gradient(800px 450px at 20% -10%, rgba(123,92,255,.25), transparent 60%),
    radial-gradient(700px 380px at 90% 0%, rgba(255,80,80,.10), transparent 55%),
    linear-gradient(180deg, #05070c, var(--bg));
}

a{color:inherit;text-decoration:none}

.topbar{
  position:sticky; top:0; z-index:20;
  display:flex; align-items:center; justify-content:space-between;
  padding:14px 18px;
  background:rgba(7,10,15,.75);
  backdrop-filter: blur(10px);
  border-bottom:1px solid rgba(35,48,71,.6);
}

.brand{display:flex; gap:12px; align-items:center}
.sigil{
  width:42px;height:42px;border-radius:14px;
  display:grid;place-items:center;
  background:linear-gradient(135deg, rgba(123,92,255,.35), rgba(255,80,80,.12));
  border:1px solid rgba(35,48,71,.8);
  box-shadow: var(--shadow);
}
.title{font-weight:800;letter-spacing:.02em}
.subtitle{font-size:12px;color:var(--muted)}

.nav{display:flex;gap:10px;align-items:center}

.wrap{max-width:1120px;margin:0 auto;padding:18px 16px 60px}
.panel{
  background:rgba(11,15,23,.75);
  border:1px solid rgba(35,48,71,.75);
  border-radius: var(--radius);
  padding:18px;
  box-shadow: var(--shadow);
  margin:16px 0;
}
.panel-head{
  display:flex;gap:16px;align-items:flex-start;justify-content:space-between;
  flex-wrap:wrap;
}
h1{margin:0 0 6px;font-size:30px}
.muted{color:var(--muted)}
.small{font-size:12px}

.statusbox{
  display:flex;gap:10px;align-items:center;
  padding:10px 12px;
  background:rgba(14,20,32,.85);
  border:1px solid rgba(35,48,71,.75);
  border-radius:16px;
}
.dot{width:12px;height:12px;border-radius:999px;background:#666;box-shadow:0 0 18px rgba(255,255,255,.15)}
.statusline{font-weight:750}

.grid{
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap:14px;
  margin-top:14px;
}
@media (max-width: 860px){
  .grid{grid-template-columns:1fr}
}

.card{
  background:rgba(14,20,32,.85);
  border:1px solid rgba(35,48,71,.75);
  border-radius: var(--radius);
  padding:14px;
}
.card-title{font-weight:800;margin-bottom:10px}
.kv{
  display:grid;
  grid-template-columns: 140px 1fr;
  gap:10px 12px;
}
.k{color:var(--muted);font-size:12px}
.v{font-weight:650}

.btn{
  border:1px solid rgba(35,48,71,.9);
  background:linear-gradient(135deg, rgba(123,92,255,.35), rgba(123,92,255,.12));
  color:var(--text);
  padding:10px 12px;
  border-radius:14px;
  cursor:pointer;
  font-weight:750;
}
.btn:hover{filter:brightness(1.08)}
.btn.ghost{
  background:rgba(14,20,32,.65);
}
.btn.danger{
  background:linear-gradient(135deg, rgba(255,59,59,.35), rgba(255,59,59,.12));
}
.actions{display:flex;gap:10px;flex-wrap:wrap}

.accordion{
  background:rgba(14,20,32,.70);
  border:1px solid rgba(35,48,71,.75);
  border-radius: var(--radius);
  padding:10px 12px;
  margin:12px 0;
}
.accordion > summary{
  cursor:pointer;
  list-style:none;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  font-weight:800;
}
.accordion > summary::-webkit-details-marker{display:none}
.chev{color:var(--muted)}
.acc-body{padding:12px 2px 2px}

.req-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:12px;
}
@media (max-width: 860px){
  .req-grid{grid-template-columns:1fr}
}
.req{
  background:rgba(11,15,23,.55);
  border:1px solid rgba(35,48,71,.55);
  border-radius:16px;
  padding:12px;
}
.req-head{font-weight:900;margin-bottom:8px}
.req ul{margin:0;padding-left:18px}
.req li{margin:6px 0;color:var(--text)}

.map-wrap{
  border-radius:16px;
  overflow:hidden;
  border:1px solid rgba(35,48,71,.55);
}
#map{
  width:100%;
  height:420px;
  background:#0b0f17;
}
.map-tools{
  display:flex;
  gap:10px;
  align-items:center;
  flex-wrap:wrap;
  padding:10px;
  background:rgba(11,15,23,.55);
  border-top:1px solid rgba(35,48,71,.55);
}

.footer{padding:4px 2px}

.mods-bar{display:flex;gap:10px;align-items:center;justify-content:space-between;flex-wrap:wrap;margin-bottom:10px}
.mods-list{display:grid;gap:8px}
.mod-item{
  display:flex;align-items:center;justify-content:space-between;gap:12px;
  padding:10px 12px;border-radius:14px;
  background:rgba(11,15,23,.55);
  border:1px solid rgba(35,48,71,.55);
}
.mod-left{display:flex;gap:10px;align-items:center}
.badge{
  font-size:11px;color:var(--muted);
  border:1px solid rgba(35,48,71,.7);
  padding:4px 8px;border-radius:999px;
}
code{background:rgba(14,20,32,.7);padding:2px 6px;border-radius:8px;border:1px solid rgba(35,48,71,.6)}

.marker-emoji{
  width:28px;height:28px;
  border-radius:999px;
  display:grid;place-items:center;
  background:rgba(14,20,32,.85);
  border:1px solid rgba(35,48,71,.85);
  box-shadow: 0 10px 24px rgba(0,0,0,.45);
  font-size:16px;
}
