/* Grmnrt Hosting — paleta medida en vivo en grmnrt.com (no de la doc) */
:root{
  --bg:#0C0D21; --card:#1A1A2F; --border:#3C3C5D;
  --primary:#4B33EB; --primary-soft:#8B7AE8;
  --text:#D6D6DC; --muted:#8282A4;
  --ok:#16a249; --err:#f25a5a; --warn:#ffa200;
  --r-box:10px; --r-in:7px;
  --font:Nunito, ui-sans-serif, system-ui, sans-serif;
  --mono:ui-monospace, SFMono-Regular, "Cascadia Mono", Consolas, monospace;
}

*{box-sizing:border-box}
html{color-scheme:dark}
body{
  margin:0; min-height:100vh; font-family:var(--font); font-size:16px;
  color:var(--text); background-color:var(--bg);
  background-image:
    linear-gradient(rgba(12,13,34,.78), rgba(12,13,34,.95)),
    url('panel-login-bg.png');
  background-size:cover; background-position:center; background-attachment:fixed;
  -webkit-font-smoothing:antialiased;
  display:flex; flex-direction:column;
}

/* ---- cabecera y pie, comunes a las dos herramientas ---- */
header{
  display:flex; align-items:center; gap:14px; flex-wrap:wrap;
  padding:14px 22px; border-bottom:1px solid var(--border);
  background:rgba(12,13,34,.72); backdrop-filter:blur(8px);
  position:sticky; top:0; z-index:10;
}
header .brand{display:flex; align-items:center; gap:10px; text-decoration:none; color:var(--text); font-weight:800}
header .brand img{width:30px; height:30px; border-radius:var(--r-in)}
header nav{margin-left:auto; display:flex; align-items:center; gap:6px; flex-wrap:wrap}
header nav a{
  color:var(--muted); text-decoration:none; font-size:.92rem; font-weight:600;
  padding:7px 11px; border-radius:var(--r-in);
}
header nav a:hover{color:var(--text); background:var(--card)}
header nav a.cta{background:var(--primary); color:#fff}
header nav a.cta:hover{background:#5c46ef; color:#fff}

main{flex:1; width:100%; max-width:920px; margin:0 auto; padding:30px 22px 50px}
h1{font-size:1.85rem; margin:0 0 8px; letter-spacing:-.02em}
.sub{color:var(--muted); margin:0 0 26px; max-width:64ch; line-height:1.55}

.card{
  background:var(--card); border:1px solid var(--border);
  border-radius:var(--r-box); padding:20px; margin-bottom:18px;
}
.card h2{font-size:1rem; margin:0 0 14px; font-weight:700}

label{display:block; font-size:.83rem; color:var(--muted); font-weight:700; margin-bottom:6px}
input[type=text]{
  width:100%; padding:10px 12px; font:inherit; font-size:.95rem; color:var(--text);
  background:#2B2B48; border:1px solid var(--border); border-radius:var(--r-in);
}
input[type=text]:focus{outline:2px solid var(--primary); outline-offset:-1px}
button{
  font:inherit; font-weight:700; font-size:.92rem; cursor:pointer;
  padding:10px 18px; border-radius:var(--r-in);
  background:var(--primary); color:#fff; border:1px solid transparent;
}
button:hover{background:#5c46ef}
button[disabled]{opacity:.6; cursor:progress}

.row{display:flex; gap:12px; flex-wrap:wrap; align-items:flex-end}
.row > .grow{flex:1 1 240px; min-width:0}

footer{
  border-top:1px solid var(--border); background:rgba(12,13,34,.72);
  padding:26px 22px; text-align:center; color:var(--muted); font-size:.9rem;
}
footer a{color:var(--primary-soft); font-weight:700}
footer .cta{
  display:inline-block; margin-bottom:12px; padding:11px 20px;
  background:var(--primary); color:#fff; text-decoration:none;
  border-radius:var(--r-in); font-weight:700;
}
footer .cta:hover{background:#5c46ef}

/* ---- edición Java / Bedrock ---- */
.edition{display:flex; gap:0; border:1px solid var(--border); border-radius:var(--r-in); overflow:hidden; width:max-content}
.edition label{
  margin:0; padding:10px 18px; cursor:pointer; font-size:.9rem; font-weight:700;
  color:var(--muted); background:#2B2B48;
}
.edition label:has(input:checked){background:var(--primary); color:#fff}
.edition input{position:absolute; opacity:0; pointer-events:none}

/* ---- resultado ---- */
.status{display:flex; align-items:center; gap:14px; margin-bottom:18px; flex-wrap:wrap}
.status img.icon{width:64px; height:64px; border-radius:var(--r-in); image-rendering:pixelated; background:#0A0A16}
.status .who{min-width:0}
.status .addr{font-family:var(--mono); font-size:1.1rem; font-weight:700; overflow-wrap:anywhere}
.pill{
  display:inline-flex; align-items:center; gap:7px; margin-top:5px;
  padding:4px 12px; border-radius:99px; font-size:.85rem; font-weight:700;
}
.pill::before{content:''; width:8px; height:8px; border-radius:99px; background:currentColor}
.pill.on{background:rgba(22,162,73,.18); color:var(--ok)}
.pill.off{background:rgba(242,90,90,.18); color:var(--err)}

.motd{
  font-family:var(--mono); font-size:1rem; line-height:1.55;
  background:#0A0A16; border:1px solid var(--border); border-radius:var(--r-in);
  padding:14px 16px; margin-bottom:18px; word-break:break-word; white-space:pre-wrap;
}
.mc-b{font-weight:700} .mc-i{font-style:italic}
.mc-u{text-decoration:underline} .mc-s{text-decoration:line-through}
.mc-u.mc-s{text-decoration:underline line-through}

.facts{display:grid; grid-template-columns:repeat(auto-fit,minmax(180px,1fr)); gap:12px; margin-bottom:18px}
.fact{background:#0A0A16; border:1px solid var(--border); border-radius:var(--r-in); padding:12px 14px; min-width:0}
.fact dt{font-size:.76rem; color:var(--muted); font-weight:700; text-transform:uppercase; letter-spacing:.04em; margin-bottom:4px}
.fact dd{margin:0; font-size:.95rem; font-weight:700; overflow-wrap:anywhere}
.fact dd small{display:block; font-weight:400; color:var(--muted); font-size:.8rem; margin-top:2px; overflow-wrap:anywhere}

.meter{height:8px; border-radius:99px; background:#2B2B48; overflow:hidden; margin-top:8px}
.meter > i{display:block; height:100%; background:var(--primary); border-radius:99px}

.players{display:flex; flex-wrap:wrap; gap:8px}
.players span{
  display:inline-flex; align-items:center; gap:7px;
  background:#0A0A16; border:1px solid var(--border); border-radius:var(--r-in);
  padding:5px 11px 5px 6px; font-size:.88rem; font-family:var(--mono);
}
.players img{width:22px; height:22px; border-radius:4px; image-rendering:pixelated}

.note{
  border-radius:var(--r-in); padding:12px 14px; font-size:.9rem; line-height:1.5;
  margin-bottom:18px;
}
.note.err{background:rgba(242,90,90,.14); border:1px solid rgba(242,90,90,.4); color:#ffc9c9}
.note.warn{background:rgba(255,162,0,.14); border:1px solid rgba(255,162,0,.4); color:#ffdda6}

.src{color:var(--muted); font-size:.8rem; margin:0}
.hint{color:var(--muted); font-size:.85rem; line-height:1.6}
.hint code{font-family:var(--mono); color:var(--primary-soft); background:#0A0A16; padding:1px 5px; border-radius:4px}

@media (max-width:640px){
  main{padding:22px 16px 40px}
  h1{font-size:1.5rem}
}
