/* =====================================================================
   ArtixGunZ - tema del launcher aplicado a la web
   ---------------------------------------------------------------------
   Se carga despues de style.css y solo redefine la capa visual: paleta,
   tipografia, marcos, botones y fondo. Ninguna clase funcional cambia,
   asi que las plantillas siguen igual y el rollback es borrar el <link>.

   Paleta tomada de los recursos del launcher MFC:
     res\artic_bg.bmp, res\artic_start.bmp, res\articgunz_icon_128.ico
   ===================================================================== */

:root {
  /* Superficies: el launcher es negro grafito, no azul marino. */
  --bg: #0a0a0a;
  --bg-2: #0e0e0e;
  --panel: #141414;
  --panel-2: #1a1a1a;
  --panel-3: #202020;
  --line: #2c2c2c;
  --line-soft: rgba(255, 255, 255, 0.06);

  /* Acento: el cian del logo y del icono (#00CAFF / #00FFFF). */
  --cyan: #00caff;
  --cyan-2: #7feaff;
  --cyan-dim: #0a86a8;
  --cyan-glow: rgba(0, 202, 255, 0.35);
  --cyan-soft: rgba(0, 202, 255, 0.1);
  --deep: #00326d;

  /* Se redefinen los nombres viejos para que todo el CSS existente
     herede el acento nuevo sin tocar una sola plantilla. */
  --gold: #00caff;
  --gold-2: #7feaff;

  --red: #e5484d;
  --green: #3ddc84;
  --text: #ededed;
  --muted: #8b9198;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.65);

  --display: "Bahnschrift", "DIN Alternate", "Segoe UI Variable Display",
             "Segoe UI", Tahoma, sans-serif;
  --body: "Segoe UI Variable Text", "Segoe UI", Tahoma, Arial, sans-serif;
}

/* ------------------------------- fondo ------------------------------- */

body {
  font-family: var(--body);
  background: var(--bg);
  letter-spacing: 0.1px;
}

/* El launcher es un campo de puntos sobre negro con un halo cian tenue. */
.page-bg {
  background-image: url("/static/bg.png");
  background-position: center top;
  background-size: cover;
  background-repeat: no-repeat;
  filter: saturate(0.35) brightness(0.28) contrast(1.05);
  transform: scale(1.04);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(1100px 620px at 50% -10%, rgba(0, 202, 255, 0.1), transparent 62%),
    radial-gradient(700px 420px at 88% 12%, rgba(0, 50, 109, 0.22), transparent 66%),
    radial-gradient(circle at center, rgba(255, 255, 255, 0.035) 1px, transparent 1.2px),
    linear-gradient(180deg, rgba(10, 10, 10, 0.5) 0%, rgba(10, 10, 10, 0.9) 55%, #0a0a0a 100%);
  background-size: auto, auto, 22px 22px, auto;
}

/* ------------------------------- tipografia ------------------------------- */

h1, h2, h3, .brand, .stat-n, .status-name, .eyebrow {
  font-family: var(--display);
  font-weight: 700;
}

h1 { letter-spacing: 1.5px; text-transform: uppercase; }
h2 { letter-spacing: 0.6px; }

.eyebrow {
  color: var(--cyan);
  letter-spacing: 3px;
  font-size: 10px;
  font-weight: 600;
}

a { color: var(--cyan-2); }
a:hover { color: #fff; }

code {
  color: var(--cyan-2);
  background: var(--cyan-soft);
  border: 1px solid rgba(0, 202, 255, 0.16);
}

/* ------------------------------- topbar ------------------------------- */

.topbar {
  background: rgba(8, 8, 8, 0.9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 rgba(0, 202, 255, 0.14);
}

.brand {
  letter-spacing: 3px;
  font-size: 15px;
  text-transform: uppercase;
}
.brand img {
  width: 38px;
  height: 38px;
  filter: drop-shadow(0 0 10px rgba(0, 202, 255, 0.35));
}
.brand strong {
  color: var(--cyan);
  text-shadow: 0 0 18px var(--cyan-glow);
}

.nav-links a {
  color: var(--muted);
  font-family: var(--display);
  letter-spacing: 1.1px;
  text-transform: uppercase;
  font-size: 12px;
  padding-bottom: 3px;
  border-bottom: 1px solid transparent;
}
.nav-links a:hover {
  color: var(--text);
  border-bottom-color: var(--cyan);
}

/* ------------------------------- botones ------------------------------- */

/* Metal pulido del START GAME: bisel claro arriba, sombra abajo. */
.btn {
  border-radius: 6px;
  border: 1px solid #3a3a3a;
  background:
    linear-gradient(180deg, #2b2b2b 0%, #1b1b1b 48%, #131313 100%);
  color: var(--text);
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  font-size: 12px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.09),
    inset 0 -1px 0 rgba(0, 0, 0, 0.7),
    0 6px 16px rgba(0, 0, 0, 0.45);
}
.btn:hover {
  color: #fff;
  border-color: var(--cyan);
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 0 0 1px rgba(0, 202, 255, 0.28),
    0 10px 26px rgba(0, 202, 255, 0.16);
}

/* Primario: el acento cian del launcher. */
.btn.gold,
.btn.primary {
  border-color: #0d7ea0;
  background:
    linear-gradient(180deg, #0f9fc9 0%, #0785ab 46%, #045d7a 100%);
  color: #04161d;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.25);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    inset 0 -1px 0 rgba(0, 0, 0, 0.35),
    0 8px 22px rgba(0, 202, 255, 0.22);
}
.btn.gold:hover,
.btn.primary:hover {
  color: #001015;
  border-color: var(--cyan-2);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.45),
    0 0 24px rgba(0, 202, 255, 0.45);
}

.btn.ghost {
  background: rgba(255, 255, 255, 0.02);
  border-color: #333;
  color: var(--muted);
}
.btn.ghost:hover { color: var(--text); border-color: var(--cyan); }

.btn.big { padding: 14px 26px; font-size: 13px; }
.btn.small { padding: 8px 13px; font-size: 10.5px; letter-spacing: 1.2px; }

/* ------------------------------- marcos ------------------------------- */

/* Esquinas tipo HUD, como el borde del launcher. */
.panel,
.hero-copy,
.hero-card,
.char-card,
.mini-stat,
.auth-card,
.auth-side,
.news-entry,
.news-grid article {
  position: relative;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: linear-gradient(160deg, #171717 0%, #101010 100%);
  box-shadow: var(--shadow);
}

.panel::after,
.hero-copy::after,
.hero-card::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  pointer-events: none;
  background:
    linear-gradient(90deg, var(--cyan) 0 26px, transparent 26px) left top / 100% 1px no-repeat,
    linear-gradient(180deg, var(--cyan) 0 26px, transparent 26px) left top / 1px 100% no-repeat,
    linear-gradient(270deg, var(--cyan) 0 26px, transparent 26px) right bottom / 100% 1px no-repeat,
    linear-gradient(0deg, var(--cyan) 0 26px, transparent 26px) right bottom / 1px 100% no-repeat;
  opacity: 0.55;
}

.hero-copy {
  border-color: #262626;
  background:
    radial-gradient(760px 340px at 12% 0%, rgba(0, 202, 255, 0.12), transparent 62%),
    linear-gradient(150deg, #161616 0%, #0c0c0c 100%);
}

.hero h1 {
  font-size: clamp(40px, 6.6vw, 76px);
  letter-spacing: 6px;
  line-height: 1;
}

/* Logo del launcher como pieza principal del hero. */
.hero-logo {
  display: block;
  width: min(340px, 72%);
  height: auto;
  margin: 0 0 18px;
  filter: drop-shadow(0 0 26px rgba(0, 202, 255, 0.32));
}
.hero h1 span {
  color: var(--cyan);
  text-shadow: 0 0 34px rgba(0, 202, 255, 0.55);
}

.lead { color: var(--muted); }

.hero-note {
  color: var(--muted);
  border-left: 2px solid var(--cyan);
  padding-left: 10px;
}

/* ------------------------------- estado ------------------------------- */

.hero-card { border-color: #262626; }
.status-name { letter-spacing: 2px; text-transform: uppercase; }
.status-grid > div {
  background: #121212;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.stat-n {
  color: var(--cyan-2);
  text-shadow: 0 0 22px rgba(0, 202, 255, 0.3);
}
.stat-l { letter-spacing: 1.6px; font-size: 10px; }

.dot.on {
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(61, 220, 132, 0.12), 0 0 18px rgba(61, 220, 132, 0.8);
}
.dot.off {
  background: var(--red);
  box-shadow: 0 0 0 4px rgba(229, 72, 77, 0.12), 0 0 14px rgba(229, 72, 77, 0.6);
}

.connect-box {
  border: 1px dashed rgba(0, 202, 255, 0.4);
  background: rgba(0, 202, 255, 0.05);
  border-radius: 8px;
}
.connect-box .mono { color: var(--cyan-2); letter-spacing: 0.5px; }

/* ------------------------------- tablas ------------------------------- */

.table-wrap { border-radius: 8px; border: 1px solid var(--line); background: #0d0d0d; }
th {
  background: #161616;
  color: var(--cyan);
  font-family: var(--display);
  letter-spacing: 1.8px;
  font-size: 10px;
  border-bottom: 1px solid var(--line);
}
td { border-bottom: 1px solid #1e1e1e; }
tbody tr:hover { background: rgba(0, 202, 255, 0.05); }
td.rank { color: var(--cyan); }

/* ------------------------------- formularios ------------------------------- */

.form input, .form select,
input[type="text"], input[type="password"], input[type="email"],
input[type="number"], input[type="search"], select, textarea {
  border-radius: 6px;
  border: 1px solid #333;
  background: #0e0e0e;
  color: var(--text);
  font-family: var(--body);
}
.form input:focus, .form select:focus,
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(0, 202, 255, 0.14);
}

.notice {
  border: 1px solid rgba(0, 202, 255, 0.3);
  background: rgba(0, 202, 255, 0.06);
  border-radius: 8px;
}

/* ------------------------------- varios ------------------------------- */

.badge { border-radius: 4px; letter-spacing: 1px; text-transform: uppercase; font-size: 10px; }
.badge.gold { background: var(--cyan); color: #04161d; border-color: var(--cyan); }

.level-pill {
  border-radius: 4px;
  background: rgba(0, 202, 255, 0.1);
  border: 1px solid rgba(0, 202, 255, 0.35);
  color: var(--cyan-2);
}

.char-stats { background: #0d0d0d; border: 1px solid var(--line); border-radius: 8px; }
.equip-item { border-radius: 4px; border-color: #2a2a2a; background: #121212; }
.empty { border-radius: 8px; border-color: #333; }

.tabs a { border-radius: 4px; background: #121212; letter-spacing: 1.2px; text-transform: uppercase; font-size: 11px; }
.tabs a.active { background: var(--cyan); border-color: var(--cyan); color: #04161d; }

.download-icon {
  border-radius: 8px;
  background: linear-gradient(180deg, #0f9fc9, #045d7a);
  color: #04161d;
  box-shadow: 0 10px 30px rgba(0, 202, 255, 0.25);
}

.hash { background: #0d0d0d; border: 1px solid var(--line); border-radius: 8px; }
.error-code { color: var(--cyan); }

.flash { border-radius: 6px; background: #161616; border: 1px solid var(--line); }
.flash.ok { border-color: rgba(61, 220, 132, 0.45); background: rgba(61, 220, 132, 0.07); color: #b6f5cf; }
.flash.err { border-color: rgba(229, 72, 77, 0.5); background: rgba(229, 72, 77, 0.09); color: #ffc2c4; }
.flash.info { border-color: rgba(0, 202, 255, 0.4); color: var(--cyan-2); }

.footer {
  border-top: 1px solid var(--line);
  background: rgba(8, 8, 8, 0.85);
  font-family: var(--display);
  letter-spacing: 0.6px;
}

/* ------------------------------- shop ------------------------------- */

.shop-category {
  border-radius: 4px;
  border: 1px solid #333;
  background: #121212;
  font-family: var(--display);
  letter-spacing: 1.2px;
  text-transform: uppercase;
  font-size: 11px;
}
.shop-category:hover,
.shop-category.active {
  border-color: var(--cyan);
  color: var(--cyan);
  background: rgba(0, 202, 255, 0.09);
}
.shop-card {
  border-radius: 8px;
  border: 1px solid var(--line);
  background: linear-gradient(160deg, #171717, #101010);
}
.shop-card:hover {
  border-color: rgba(0, 202, 255, 0.5);
  box-shadow: 0 0 0 1px rgba(0, 202, 255, 0.2), 0 14px 34px rgba(0, 0, 0, 0.6);
}

/* ------------------------------- rail de estado ------------------------------- */

/* Franja fina bajo el topbar: version del cliente, estado y jugadores. */
.release-rail {
  position: sticky;
  top: 66px;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 7px clamp(16px, 4vw, 54px);
  background: rgba(6, 6, 6, 0.9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

@media (max-width: 640px) {
  .release-rail { top: auto; position: static; }
}

/* ------------------------------- utilidades ------------------------------- */

/* Etiqueta de version para el rail superior. */
.version-tag {
  font-family: var(--display);
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 3px 8px;
  text-transform: uppercase;
}
.version-tag b { color: var(--cyan); font-weight: 600; }

@media (max-width: 640px) {
  .hero h1 { letter-spacing: 3px; }
  .panel::after, .hero-copy::after, .hero-card::after { opacity: 0.35; }
}

/* Respeta a quien pide menos movimiento. */
@media (prefers-reduced-motion: reduce) {
  .btn:hover { transform: none; }
}


/* ---- Podio de rankings (top ladder) ---- */
.podium{display:grid;grid-template-columns:1fr 1.6fr 1fr;gap:16px;
        align-items:stretch;margin:0 0 18px}
.podium-label{font:700 12px/1 "Bahnschrift","Segoe UI",sans-serif;letter-spacing:2.5px;
              text-transform:uppercase;color:#00caff;margin-bottom:10px}
.podium-center{text-align:center}
.podium-ranks{display:flex;flex-direction:column;gap:8px}
.podium-slot{position:relative;display:flex;flex-direction:column;align-items:center;
             gap:4px;padding:12px 18px;border-radius:10px;
             background:linear-gradient(160deg,#161616,#0f0f0f);
             border:1px solid #2c2c2c}
.podium-slot.place-1{border-color:#c9a227;box-shadow:0 0 26px rgba(201,162,39,.28);
                     order:1;background:linear-gradient(160deg,#1c1910,#101010)}
.podium-slot.place-2{border-color:#8f9aa6;order:2;opacity:.92}
.podium-slot.place-3{border-color:#8a5a2b;order:3;opacity:.85}
.podium-trophy{font:800 18px "Bahnschrift","Segoe UI",sans-serif;color:#00caff;
               width:34px;height:34px;line-height:34px;border-radius:50%;
               border:1px solid #2f4a55;text-shadow:0 0 14px rgba(0,202,255,.6)}
.podium-slot.place-1 .podium-trophy{color:#ffd75e;border-color:#c9a227;
                                    text-shadow:0 0 16px rgba(255,215,94,.7)}
.podium-name{font:700 17px "Bahnschrift","Segoe UI",sans-serif;color:#ededed}
.podium-sub{font:500 12px "Segoe UI",Arial,sans-serif;color:#8b9198}
.podium-card{display:flex;flex-direction:column;gap:4px;padding:16px 18px;
             border-radius:10px;background:linear-gradient(160deg,#161616,#0f0f0f);
             border:1px solid #2c2c2c;border-left:2px solid #00caff}
.podium-side .podium-card{min-height:86px;justify-content:center}
@media(max-width:900px){.podium{grid-template-columns:1fr}
  .podium-side .podium-card{min-height:0}}
