:root{
  --bg:#0b1020;
  --card:#121a33;
  --text:#e9eeff;
}

*{box-sizing:border-box}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;
  background: radial-gradient(1200px 600px at 20% 0%, #1a255a 0%, var(--bg) 55%);
  color:var(--text);
}

.wrap{max-width:1100px;margin:0 auto;padding:20px}

header{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:16px;
  border-bottom:1px solid rgba(255,255,255,.08);
}

h1{margin:0;font-size:28px}
.sub{margin:6px 0 0;color:rgba(233,238,255,.75)}

.controls{display:flex;align-items:center;gap:10px}
.pill{
  padding:8px 10px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(18,26,51,.6);
  border-radius:999px;
  font-size:12px;
  color:rgba(233,238,255,.85);
}

button{
  cursor:pointer;
  padding:10px 12px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.18);
  background:rgba(255,255,255,.05);
  color:var(--text);
  font-weight:700;
}
button:hover{border-color:rgba(255,255,255,.3)}

.grid{
  margin-top:20px;
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap:14px;
}

.card{
  background: rgba(18,26,51,.82);
  border:1px solid rgba(255,255,255,.10);
  border-radius:18px;
  padding:14px;
  box-shadow: 0 10px 30px rgba(0,0,0,.18);
}

.cardHeader{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:10px;
}

.name{font-size:16px;margin:0 0 4px}
.addr{font-size:12px;color:rgba(233,238,255,.70);margin:0}

.badge{
  padding:6px 10px;
  border-radius:999px;
  font-size:12px;
  font-weight:900;
  border:1px solid rgba(255,255,255,.14);
}
.badge.ok{background:rgba(76,255,176,.20)}
.badge.bad{background:rgba(255,76,122,.20)}
.badge.warn{background:rgba(255,210,76,.20)}

.meta{
  margin-top:12px;
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:10px;
}
.kv{
  background:rgba(255,255,255,.03);
  border:1px solid rgba(255,255,255,.08);
  border-radius:14px;
  padding:10px;
}
.k{font-size:11px;color:rgba(233,238,255,.70)}
.v{font-size:14px;font-weight:900;margin-top:2px}

.motd{
  margin-top:12px;
  padding:10px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.08);
  background:rgba(255,255,255,.03);
  white-space:pre-wrap;
  font-size:12px;
  color:rgba(233,238,255,.85);
  min-height:42px;
}
.actions{margin-top:12px}
.copy{
  text-align:center;
  padding:10px 12px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.04);
  font-weight:900;
  cursor:pointer;
}
.copy:hover{border-color:rgba(255,255,255,.28)}

.players-wrap{
  margin-top:10px;
  padding:10px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.08);
  background:rgba(255,255,255,.03);
}
.players-title{
  font-size:11px;
  color:rgba(233,238,255,.70);
  margin-bottom:6px;
  font-weight:800;
}
.players{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
}
.player{
  padding:6px 8px;
  font-size:12px;
  border-radius:999px;
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.09);
  color:rgba(233,238,255,.9);
}
.players-empty{
  margin-top:10px;
  font-size:12px;
  color:rgba(233,238,255,.60);
}
