  :root {
    --bg: #0b0814; --bg2: #140d24; --card: #1b1230; --line: #3a2a5c;
    --gold: #f5c451; --gold2: #ff9f1c; --purple: #a855f7; --cyan: #38e1ff; --green: #4ade80;
    --text: #efe9ff; --muted: #b6a9d6;
  }
  * { box-sizing: border-box; }
  html { scroll-behavior: smooth; }
  html, body { overflow-x: hidden; }
  body { margin: 0; font-family: "Segoe UI", system-ui, sans-serif; background: var(--bg); color: var(--text); line-height: 1.6; }
  a { color: var(--gold); }

  /* --- barra --- */
  nav { position: sticky; top: 0; z-index: 10; display: flex; gap: 22px; align-items: center; padding: 14px 6vw;
        background: rgba(11, 8, 20, .85); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
  nav .logo { white-space: nowrap; font-weight: 800; letter-spacing: 2px; color: var(--gold); margin-right: auto; }
  nav a { color: var(--muted); text-decoration: none; font-size: 14px; text-transform: uppercase; letter-spacing: 1px; }
  nav a:hover { color: var(--gold); }

  /* --- portada --- */
  .hero { position: relative; min-height: 88vh; display: grid; place-items: center; text-align: center; overflow: hidden;
          background: radial-gradient(ellipse at 50% 35%, #3b1d6e 0%, #1a0f33 40%, var(--bg) 75%); }
  .hero::before { content: ""; position: absolute; inset: -20%; background:
      conic-gradient(from 0deg at 50% 50%, transparent 0 20deg, rgba(245,196,81,.08) 30deg, transparent 50deg 140deg, rgba(168,85,247,.12) 160deg, transparent 190deg 300deg, rgba(56,225,255,.08) 320deg, transparent 340deg);
      animation: girar 40s linear infinite; }
  @keyframes girar { to { transform: rotate(360deg); } }
  .chispa { position: absolute; width: 4px; height: 4px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 12px 3px var(--gold2);
            opacity: 0; animation: subir linear infinite; }
  @keyframes subir { 0% { transform: translateY(0) scale(.6); opacity: 0; } 15% { opacity: 1; } 100% { transform: translateY(-90vh) scale(1.2); opacity: 0; } }
  .hero-inner { position: relative; z-index: 1; padding: 0 20px; }
  .escudo { width: 190px; height: 190px; filter: drop-shadow(0 0 30px rgba(245,196,81,.55)); animation: flotar 5s ease-in-out infinite; }
  @keyframes flotar { 50% { transform: translateY(-12px); } }
  h1 { font-size: clamp(42px, 8vw, 92px); margin: 10px 0 0; letter-spacing: 6px; line-height: 1;
       background: linear-gradient(180deg, #fff5d1, var(--gold) 45%, var(--gold2)); -webkit-background-clip: text; background-clip: text; color: transparent;
       text-shadow: 0 0 40px rgba(245,196,81,.25); }
  .lema { color: var(--muted); letter-spacing: 4px; text-transform: uppercase; margin: 14px 0 30px; }
  .botones { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
  .btn { display: inline-block; padding: 14px 30px; border-radius: 8px; font-weight: 700; text-decoration: none; letter-spacing: 1px; text-transform: uppercase; }
  .btn-oro { background: linear-gradient(180deg, var(--gold), var(--gold2)); color: #2a1600; box-shadow: 0 6px 24px rgba(255,159,28,.35); }
  .btn-oro:hover { filter: brightness(1.1); }
  .btn-borde { border: 1px solid var(--purple); color: var(--text); background: rgba(168,85,247,.12); }
  .estado { margin-top: 28px; display: inline-flex; gap: 10px; align-items: center; padding: 8px 18px; border-radius: 30px; background: rgba(74,222,128,.1); border: 1px solid rgba(74,222,128,.35); color: var(--green); font-size: 14px; }
  .estado i { width: 9px; height: 9px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); }

  /* --- secciones --- */
  section { padding: 80px 6vw; }
  section:nth-of-type(even) { background: var(--bg2); }
  h2 { font-size: 34px; margin: 0 0 8px; text-align: center; }
  h2 span { color: var(--gold); }
  .sub { text-align: center; color: var(--muted); margin: 0 0 40px; }
  .grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
  .card { background: linear-gradient(180deg, var(--card), #150e26); border: 1px solid var(--line); border-radius: 14px; padding: 22px; position: relative; overflow: hidden; }
  .card::after { content: ""; position: absolute; inset: 0; border-radius: 14px; pointer-events: none; background: linear-gradient(120deg, transparent 40%, rgba(245,196,81,.08) 50%, transparent 60%); background-size: 250% 100%; animation: brillo 6s linear infinite; }
  @keyframes brillo { from { background-position: 150% 0; } to { background-position: -100% 0; } }
  .card h3 { margin: 0 0 6px; color: var(--gold); font-size: 19px; }
  .card p { margin: 0; color: var(--muted); font-size: 15px; }
  .dato { font-size: 38px; font-weight: 800; color: var(--text); }
  .dato small { font-size: 15px; color: var(--muted); font-weight: 400; }
  .tag { display: inline-block; font-size: 12px; padding: 2px 10px; border-radius: 20px; margin: 4px 4px 0 0; border: 1px solid var(--line); color: var(--muted); }
  .tag.exc { color: var(--green); border-color: rgba(74,222,128,.4); }
  .tag.anc { color: var(--cyan); border-color: rgba(56,225,255,.4); }
  .tag.soc { color: var(--purple); border-color: rgba(168,85,247,.5); }

  table { width: 100%; border-collapse: collapse; background: var(--card); border-radius: 12px; overflow: hidden; }
  th, td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--line); font-size: 15px; }
  th { background: #241843; color: var(--gold); font-weight: 600; }
  tr:last-child td { border-bottom: none; }
  .hora { color: var(--cyan); font-family: Consolas, monospace; }

  .descarga { display: flex; gap: 18px; align-items: center; }
  .descarga .icono { flex: none; width: 64px; height: 64px; border-radius: 14px; display: grid; place-items: center; font-size: 30px;
                     background: radial-gradient(circle at 30% 30%, #5b2ea3, #26134a); border: 1px solid var(--purple); }
  .pasos { counter-reset: paso; list-style: none; padding: 0; max-width: 820px; margin: 30px auto 0; }
  .pasos li { counter-increment: paso; position: relative; padding: 14px 18px 14px 64px; margin-bottom: 12px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; }
  .pasos li::before { content: counter(paso); position: absolute; left: 16px; top: 12px; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
                      font-weight: 800; color: #2a1600; background: linear-gradient(180deg, var(--gold), var(--gold2)); }
  code { background: #2a1d48; padding: 2px 8px; border-radius: 6px; color: var(--gold); }
  .aviso { max-width: 820px; margin: 20px auto 0; padding: 14px 18px; border-radius: 12px; background: rgba(255,159,28,.08); border: 1px solid rgba(255,159,28,.35); color: #ffd79a; font-size: 14px; }
  footer { padding: 40px 6vw; text-align: center; color: var(--muted); font-size: 13px; border-top: 1px solid var(--line); }
  @media (max-width: 700px) { nav a:not(.logo) { display: none; } }
  .buscador { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin: 0 0 22px; }
  .buscador input, .buscador select { background: var(--card); color: var(--text); border: 1px solid var(--line); border-radius: 8px; padding: 10px 14px; font-size: 15px; min-width: 220px; }
  .pos { font-weight: 800; color: var(--gold); width: 50px; }
  .top1 td { background: rgba(245,196,81,.12); } .top2 td { background: rgba(203,213,225,.08); } .top3 td { background: rgba(205,127,50,.1); }
  .on { color: var(--green); } .off { color: var(--muted); }
  .vacio { text-align: center; color: var(--muted); padding: 24px; }
  .actualizado { text-align: center; color: var(--muted); font-size: 13px; margin-top: 12px; }
  /* cuenta regresiva */
  .cuenta { margin: 26px auto 0; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
  .cuenta div { min-width: 86px; padding: 12px 8px; border-radius: 12px; background: rgba(20, 12, 40, .75); border: 1px solid rgba(245,196,81,.45);
                box-shadow: 0 0 24px rgba(168,85,247,.25) inset; }
  .cuenta b { display: block; font-size: 38px; line-height: 1.1; color: var(--gold); font-variant-numeric: tabular-nums; }
  .cuenta span { font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); }
  .apertura { margin-top: 22px; color: var(--text); letter-spacing: 3px; text-transform: uppercase; font-size: 14px; }
  .apertura b { color: var(--gold); }
  /* ilustraciones propias */
  .emblema { position: relative; width: 420px; max-width: 92vw; margin: 0 auto; }
  .alas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .9; filter: drop-shadow(0 0 18px rgba(56,225,255,.45)); animation: aletear 4s ease-in-out infinite; }
  @keyframes aletear { 50% { transform: scaleX(1.04) translateY(-6px); } }
  .emblema .escudo { position: relative; display: block; margin: 0 auto; }
  .castillo { position: absolute; left: 0; right: 0; bottom: -2px; width: 100%; height: 26vh; z-index: 0; }
  .dragon { position: absolute; top: 14%; width: 220px; opacity: .55; z-index: 0; animation: volar 26s linear infinite; }
  @keyframes volar { from { left: -260px; transform: translateY(0); } 50% { transform: translateY(-30px); } to { left: 110%; transform: translateY(0); } }
  .clase { text-align: center; }
  .clase svg { width: 92px; height: 92px; margin: 4px auto 10px; display: block; filter: drop-shadow(0 0 14px rgba(245,196,81,.35)); }
  .batalla { padding: 0; background: var(--bg) !important; }
  .batalla figure { margin: 0; position: relative; }
  .batalla img { display: block; width: 100%; height: auto; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .batalla figcaption { padding: 18px 12px; background: linear-gradient(180deg, #2a0f44, var(--bg)); text-align: center; font-size: clamp(20px, 3.4vw, 40px); font-weight: 800; letter-spacing: 4px;
                        color: #fff5d1; text-shadow: 0 0 24px rgba(255,159,28,.8), 0 2px 0 #000; text-transform: uppercase; }

  /* portada con la ilustración propia */
  .hero { background: linear-gradient(180deg, rgba(7,4,12,.35), rgba(7,4,12,.55) 60%, var(--bg)), var(--bg); }
  .hero::before { opacity: .45; }
  .hero h1 { margin-top: 18vh; }
  /* cabecera de las páginas interiores */
  .banner { position: relative; padding: 110px 6vw 60px; text-align: center; overflow: hidden;
            background: linear-gradient(180deg, rgba(7,4,12,.55), rgba(7,4,12,.85) 70%, var(--bg)); }
  .banner h1 { font-size: clamp(36px, 6vw, 64px); margin: 0; }
  .banner p { color: var(--muted); letter-spacing: 3px; text-transform: uppercase; margin: 10px 0 0; }
  nav a.activo { color: var(--gold); border-bottom: 2px solid var(--gold); padding-bottom: 4px; }
  .accesos a { text-decoration: none; color: inherit; transition: transform .2s; }
  .accesos a:hover { transform: translateY(-4px); }
  .accesos .card h3::after { content: "  →"; }

  /* en las páginas interiores el título ya está en la cabecera */
  .banner + section > h2, .titulo-pagina + section > h2:first-child { display: none; }

  /* banner del servidor (franja superior de banners-mu-sjm.webp, 1672x941 px, la franja mide 321 px) */
  .banner-mu { width: 100%; aspect-ratio: 1672 / 321; background: url("banners-mu-sjm.webp") center top / 100% auto no-repeat, #07040c; border-bottom: 2px solid var(--gold); box-shadow: 0 6px 30px rgba(245,196,81,.25); }
  .hero-con-banner { min-height: auto; padding: 46px 0 70px; background: radial-gradient(ellipse at 50% 0%, #3b1d6e 0%, #1a0f33 45%, var(--bg) 80%); }
  .hero-con-banner .lema { margin-top: 0; }
  .oculto { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }


/* ===================== Diseño profesional ===================== */
/* Imagen banners-mu-sjm.webp: 1672x941 px con tres banners.
   Banner 1: filas 0-322, banner 2: filas 328-636 (centro 482), banner 3: filas 642-940 (centro 791). */

/* Fondo fijo de toda la página: banner 2, desenfocado y oscurecido.
   Tamaño 320 % del alto de la pantalla: se ven ~294 filas centradas en la 482 (de la 335 a la 629). */
body { background: #07040c; }
body::before { content: ""; position: fixed; inset: -24px; z-index: -2;
  background: url("banners-mu-sjm.webp") 3% 51.8% / auto 320% no-repeat;  /* parte izquierda del banner 2: la elfa, sin texto */
  filter: blur(7px) brightness(.38) saturate(1.15); }
body::after { content: ""; position: fixed; inset: 0; z-index: -1;
  background: radial-gradient(ellipse at 50% 0%, rgba(59,29,110,.35), transparent 60%), linear-gradient(180deg, rgba(7,4,12,.2), rgba(7,4,12,.75)); }

/* Contenido centrado con ancho máximo y secciones transparentes */
section, section:nth-of-type(even) { background: transparent !important; max-width: 1200px; margin: 0 auto; padding: 64px 24px; }
h1, h2, .card h3, nav .logo { font-family: Georgia, "Times New Roman", serif; }
h2 { font-size: 36px; letter-spacing: 1px; }
h2::after { content: ""; display: block; width: 90px; height: 2px; margin: 14px auto 0; background: linear-gradient(90deg, transparent, var(--gold), transparent); }
.card { background: rgba(18, 11, 32, .72); border: 1px solid rgba(245,196,81,.18); backdrop-filter: blur(6px); box-shadow: 0 10px 30px rgba(0,0,0,.35); }
.card::after { display: none; }
table { background: rgba(18, 11, 32, .78); backdrop-filter: blur(6px); box-shadow: 0 10px 30px rgba(0,0,0,.35); }
th { background: rgba(36, 24, 67, .9); }
nav { background: rgba(7, 4, 12, .88); box-shadow: 0 2px 20px rgba(0,0,0,.5); }
footer { background: rgba(7, 4, 12, .9); }

/* Portada del inicio: el contador sobre el banner 3 (parte derecha, sin su texto de la izquierda).
   Tamaño 320 % del alto de la sección y anclado abajo: se ven las filas 647-940. */
.hero-con-banner { max-width: none; background:
    linear-gradient(90deg, rgba(7,4,12,.92) 0%, rgba(7,4,12,.7) 45%, rgba(7,4,12,.25) 100%),
    url("banners-mu-sjm.webp") 100% 100% / auto 320% no-repeat, #07040c !important;
  border-bottom: 1px solid rgba(245,196,81,.25); padding: 56px 0 64px; }
.hero-con-banner::before { display: none; }
.hero-con-banner .hero-inner { max-width: 1200px; margin: 0 auto; text-align: center; }
.cuenta div { background: rgba(7, 4, 12, .78); backdrop-filter: blur(4px); }

/* Título de las páginas interiores, bajo el banner */
.titulo-pagina { text-align: center; padding: 42px 24px 8px; }
.titulo-pagina h1 { font-size: clamp(34px, 5vw, 54px); margin: 0; color: var(--gold); text-shadow: 0 2px 20px rgba(245,196,81,.25); }
.titulo-pagina p { color: var(--muted); letter-spacing: 3px; text-transform: uppercase; margin: 8px 0 0; font-size: 14px; }

/* Letras estilo MU: Cinzel (fuente libre, licencia SIL Open Font License) */
h1, h2, h3, .card h3, nav a, nav .logo, .btn, .titulo-pagina h1, .lema, .apertura, .cuenta span, th, .tag {
  font-family: "Cinzel", Georgia, "Times New Roman", serif; }
h1, .titulo-pagina h1 { font-weight: 900; }
nav a { font-weight: 700; letter-spacing: 1.5px; }
.cuenta b, .dato { font-family: "Cinzel", Georgia, serif; font-weight: 900; }

/* Cursor del juego (Data/Interface/Cursor.ozt del cliente, convertido a PNG). Al hacer clic usa CursorPush. */
html, body { cursor: url("cursor.png?v=3") 2 2, auto; }
a, button, .btn, select, label, summary { cursor: url("cursor.png?v=3") 2 2, pointer; }
a:active, button:active, .btn:active { cursor: url("cursor-clic.png?v=3") 2 2, pointer; }
input[type="search"], input[type="text"] { cursor: text; }

/* menú con Cinzel: un poco más compacto para que quepa entero */
nav { gap: 18px; flex-wrap: wrap; }
nav a { font-size: 13px; letter-spacing: 1px; }

/* ===================== Portada en tres columnas ===================== */
.portal { max-width: 1280px; margin: 0 auto; padding: 40px 20px 56px; display: grid; grid-template-columns: 270px minmax(0, 1fr) 330px; gap: 22px; align-items: start; }
.portal .col { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.panel { background: rgba(14, 9, 26, .82); border: 1px solid rgba(245,196,81,.22); border-radius: 10px; overflow: hidden; backdrop-filter: blur(6px); box-shadow: 0 10px 30px rgba(0,0,0,.4); }
.panel-t { margin: 0; padding: 11px 16px; font-family: "Cinzel", Georgia, serif; font-size: 14px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--gold);
  background: linear-gradient(180deg, rgba(60,36,110,.9), rgba(30,18,58,.9)); border-bottom: 1px solid rgba(245,196,81,.35);
  display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.panel-t a { font-family: inherit; font-size: 11px; color: var(--muted); text-decoration: none; letter-spacing: 1px; }
.panel-t a:hover { color: var(--gold); }
.panel-c { padding: 14px 16px; }
.panel-c.sin-relleno { padding: 0; }

.servidor-estado { display: flex; align-items: center; gap: 10px; font-family: "Cinzel", Georgia, serif; font-size: 18px; margin-bottom: 10px; }
.luz { width: 12px; height: 12px; border-radius: 50%; background: #6b6480; box-shadow: 0 0 0 3px rgba(107,100,128,.25); }
.luz.on { background: var(--green); box-shadow: 0 0 10px var(--green); }
.luz.pronto { background: var(--gold); box-shadow: 0 0 10px var(--gold); animation: latido 1.6s infinite; }
@keyframes latido { 50% { opacity: .35; } }
.lista-datos { list-style: none; margin: 0; padding: 0; font-size: 14px; }
.lista-datos li { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px dashed rgba(182,169,214,.15); }
.lista-datos li:last-child { border-bottom: 0; }
.lista-datos span { color: var(--muted); }
.verde { color: var(--green); }

.contadores { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.contadores div { background: rgba(7,4,12,.6); border: 1px solid rgba(245,196,81,.15); border-radius: 8px; padding: 10px; text-align: center; }
.contadores b { display: block; font-family: "Cinzel", Georgia, serif; font-size: 22px; color: var(--gold); }
.contadores span { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; }

.comunidad { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.red { display: block; text-align: center; padding: 8px; border-radius: 6px; font-size: 13px; font-weight: 700; color: #fff; text-decoration: none; }
.red.whatsapp { background: #1f9d55; } .red.discord { background: #5865f2; } .red.facebook { background: #1877f2; } .red.tiktok { background: #222; border: 1px solid #555; }
.red.pronto { opacity: .55; pointer-events: none; }
.comunidad .nota { grid-column: 1 / -1; margin: 4px 0 0; font-size: 12px; color: var(--muted); text-align: center; }

.noticias { list-style: none; margin: 0; padding: 0; }
.noticias li { display: grid; grid-template-columns: 64px 1fr auto; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid rgba(182,169,214,.12); }
.noticias li:last-child { border-bottom: 0; }
.noticias a { color: var(--text); text-decoration: none; font-size: 15px; }
.noticias a:hover { color: var(--gold); }
.noticias time { font-size: 12px; color: var(--muted); white-space: nowrap; }
.etiqueta { text-align: center; font-size: 10px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; padding: 4px 0; border-radius: 4px; color: #120a00; }
.e-aviso { background: var(--gold); } .e-nuevo { background: var(--green); } .e-evento { background: var(--cyan); } .e-info { background: var(--purple); color: #fff; }

.castillo-c { display: flex; align-items: center; gap: 20px; background: radial-gradient(ellipse at 15% 50%, rgba(245,196,81,.12), transparent 60%); }
.castillo-datos { display: grid; gap: 8px; flex: 1; }
.castillo-datos div { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px dashed rgba(182,169,214,.15); padding-bottom: 6px; }
.castillo-datos span { color: var(--muted); font-size: 13px; white-space: nowrap; }
.castillo-datos b { text-align: right; font-size: 14px; }
#csClan { font-family: "Cinzel", Georgia, serif; color: var(--gold); font-size: 17px; }

.grid.mini { grid-template-columns: repeat(3, 1fr); gap: 12px; }
.grid.mini .card { padding: 14px; }
.grid.mini .dato { font-size: 28px; }
.grid.mini p { font-size: 13px; margin: 4px 0 0; }

.buscar-pj { display: flex; gap: 8px; }
.buscar-pj input { flex: 1; min-width: 0; padding: 9px 12px; border-radius: 6px; border: 1px solid rgba(245,196,81,.3); background: rgba(7,4,12,.7); color: var(--text); }
.buscar-pj .btn { padding: 9px 14px; font-size: 13px; }

table.top { width: 100%; border-collapse: collapse; font-size: 13px; background: none; box-shadow: none; backdrop-filter: none; border-radius: 0; margin: 0; }
table.top th { background: rgba(7,4,12,.55); font-size: 11px; padding: 7px 8px; text-align: left; color: var(--muted); }
table.top td { padding: 7px 8px; border-bottom: 1px solid rgba(182,169,214,.1); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 110px; }
table.top tr:hover td { background: rgba(245,196,81,.06); }
table.top a { color: var(--text); text-decoration: none; } table.top a:hover { color: var(--gold); }
.tenue { color: var(--muted); font-size: 12px; }
.puesto { font-family: "Cinzel", Georgia, serif; font-weight: 900; text-align: center; width: 26px; }
.puesto.p1 { color: #ffd54a; } .puesto.p2 { color: #d9dde3; } .puesto.p3 { color: #e0915a; }
.vacio { text-align: center; color: var(--muted); padding: 16px !important; white-space: normal !important; }
.portal .actualizado { margin: -10px 0 0; font-size: 12px; color: var(--muted); text-align: center; }

/* Pie de página en columnas */
footer.pie { text-align: left; padding: 0; border-top: 0; background: rgba(7,4,12,.94); position: relative; }
footer.pie::before { content: ""; display: block; height: 2px; background: linear-gradient(90deg, transparent, var(--purple), var(--gold), var(--purple), transparent); }
.pie-columnas { max-width: 1200px; margin: 0 auto; padding: 40px 24px 28px; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr auto; gap: 28px; align-items: start; }
.pie-marca b { font-family: "Cinzel", Georgia, serif; font-size: 20px; color: var(--gold); letter-spacing: 1px; }
.pie-marca p { color: var(--muted); font-size: 14px; max-width: 300px; }
.pie-columnas h4 { margin: 0 0 12px; font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--cyan); }
.pie-columnas a:not(.btn) { display: block; color: var(--muted); text-decoration: none; font-size: 14px; margin-bottom: 9px; }
.pie-columnas a:not(.btn):hover { color: var(--gold); }
.pie-legal { border-top: 1px solid rgba(182,169,214,.12); max-width: 1200px; margin: 0 auto; padding: 16px 24px 22px; }
.pie-legal p { margin: 0; font-size: 12px; color: #7d7298; }

@media (max-width: 1100px) { .portal { grid-template-columns: 1fr 1fr; } .portal .col-centro { grid-column: 1 / -1; order: -1; } }
@media (max-width: 720px) { .portal { grid-template-columns: 1fr; } .grid.mini { grid-template-columns: 1fr; } .pie-columnas { grid-template-columns: 1fr 1fr; } .pie-marca { grid-column: 1 / -1; } .noticias li { grid-template-columns: 60px 1fr; } .noticias time { display: none; } }

/* Página de descargas */
.espejos { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 8px; }
.espejos .btn { padding: 9px 16px; font-size: 13px; }
.pronto-txt { display: inline-block; padding: 8px 14px; border: 1px dashed rgba(245,196,81,.45); border-radius: 6px; color: var(--gold); font-size: 13px; }
table.requisitos { max-width: 760px; margin: 0 auto; }
table.requisitos td:first-child { color: var(--muted); }


/* ===================== Estética medieval ===================== */
/* Letra MedievalSharp (Google Fonts, licencia SIL Open Font License). Solo tiene un grosor: sin negrita falsa. */
:root { --letra-medieval: "MedievalSharp", "Cinzel", Georgia, serif; }
h1, h2, h3, .card h3, nav a, nav .logo, .btn, .titulo-pagina h1, .lema, .apertura, .cuenta span, .cuenta b, .dato, th, .tag,
.panel-t, .servidor-estado, .contadores b, #csClan, .puesto, .pie-marca b, .pie-columnas h4 {
  font-family: var(--letra-medieval); font-weight: 400; font-synthesis: none; }
h2 { letter-spacing: .5px; }
nav a { letter-spacing: .5px; font-size: 14px; }
.btn { letter-spacing: .5px; }

/* Escudo de clan junto a los títulos */
h2::before, .titulo-pagina h1::before, .titulo-pagina h1::after, .panel-t::before {
  content: ""; display: inline-block; vertical-align: -0.12em; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 46'%3E%3Cpath d='M20 1 L38 7 V22 C38 34 29 41 20 45 C11 41 2 34 2 22 V7 Z' fill='%23f5c451'/%3E%3Cpath d='M20 4.5 L35 9.5 V22 C35 32 27.5 38 20 41.5 C12.5 38 5 32 5 22 V9.5 Z' fill='%23241843'/%3E%3Cpath d='M20 4.5 L35 9.5 V22 H20 Z M20 22 H5 C5 32 12.5 38 20 41.5 Z' fill='%23b91c3c'/%3E%3Cpath d='M20 4.5 V41.5 M5 22 H35' stroke='%23f5c451' stroke-width='2.4'/%3E%3Ccircle cx='20' cy='22' r='4.2' fill='%23f5c451'/%3E%3Ccircle cx='20' cy='22' r='2' fill='%2338e1ff'/%3E%3C/svg%3E") center / contain no-repeat;
  filter: drop-shadow(0 0 6px rgba(245,196,81,.45)); }
h2::before { width: .8em; height: .92em; margin-right: .35em; }
.titulo-pagina h1::before, .titulo-pagina h1::after { width: .7em; height: .8em; margin: 0 .3em; }
.panel-t { justify-content: flex-start; }
.panel-t::before { width: 18px; height: 21px; margin-right: 2px; flex: none; }
.panel-t a { margin-left: auto; }

/* Armas de las clases: medallón con brillo */
.clase svg.arma { width: 128px; height: 128px; margin: 0 auto 12px; border-radius: 50%;
  background: radial-gradient(circle, rgba(168,85,247,.28) 0%, rgba(36,24,67,.6) 55%, transparent 70%);
  filter: drop-shadow(0 6px 14px rgba(0,0,0,.6)); transition: transform .25s; }
.clase:hover svg.arma { transform: scale(1.07) rotate(-3deg); }

/* ===================== Colores y cuadros medievales ===================== */
/* Paleta: oro viejo, bronce, rojo vino, hierro, cuero oscuro y pergamino. */
:root {
  --bg: #0d0906; --bg2: #17100a; --card: #1f160e; --line: #5a4424;
  --gold: #e2b25a; --gold2: #a8641e; --purple: #8e2433; --cyan: #d9bf86; --green: #7fae5a;
  --text: #f0e4c8; --muted: #b8a582;
  --hierro: #2a2520; --vino: #5e1620;
  /* Remaches de las 4 esquinas + cuero oscuro: fondo común de los cuadros */
  --remache: radial-gradient(circle, #f3d999 0 1.6px, #8a6a32 2.2px, #1a120a 3px, transparent 3.4px);
  --cuero: linear-gradient(180deg, rgba(44,32,21,.94), rgba(20,14,9,.96));
  --marco: inset 0 0 0 1px rgba(10,6,3,.95), inset 0 0 0 3px rgba(226,178,90,.28), inset 0 0 0 4px rgba(10,6,3,.9), 0 10px 26px rgba(0,0,0,.65);
}
body { background: var(--bg); }
body::after { background: radial-gradient(ellipse at 50% 0%, rgba(120,60,20,.25), transparent 60%), linear-gradient(180deg, rgba(13,9,6,.25), rgba(13,9,6,.8)); }
::selection { background: var(--vino); color: #fff3d6; }

/* Cuadros: cuero oscuro, marco doble de oro viejo y remaches en las esquinas */
.card, .panel, .pasos li, table, .contadores div, .cuenta div {
  background: var(--remache) 6px 6px / 10px 10px no-repeat, var(--remache) calc(100% - 6px) 6px / 10px 10px no-repeat,
              var(--remache) 6px calc(100% - 6px) / 10px 10px no-repeat, var(--remache) calc(100% - 6px) calc(100% - 6px) / 10px 10px no-repeat,
              var(--cuero) !important;
  border: 1px solid #7a5a2a; border-radius: 4px; box-shadow: var(--marco); backdrop-filter: none; }
.card:hover { border-color: var(--gold); box-shadow: var(--marco), 0 0 22px rgba(226,178,90,.18); }
.panel { border-radius: 4px; }
.card h3 { color: var(--gold); }
.dato { color: var(--gold); text-shadow: 0 2px 0 #3a2410; }

/* Títulos de panel: estandarte rojo vino con borde de oro */
.panel-t { background: linear-gradient(180deg, #7a1d29, #4a0f17) !important; color: #f6dc9a; border-bottom: 2px solid #b8863a;
  box-shadow: inset 0 1px 0 rgba(255,220,150,.25), inset 0 -3px 0 rgba(0,0,0,.35); text-shadow: 0 1px 2px #000; }
.panel-t a { color: #e9cf96; }

/* Tablas: madera oscura */
th, table.top th { background: linear-gradient(180deg, #3a2716, #24170d) !important; color: #e8c98a; border-bottom: 1px solid #7a5a2a; }
td { border-bottom-color: rgba(122,90,42,.25) !important; }
tr:hover td, table.top tr:hover td { background: rgba(226,178,90,.07); }

/* Botones: placa de oro biselada y placa de hierro */
.btn { border-radius: 3px; }
.btn-oro { background: linear-gradient(180deg, #f3d38a 0%, #d59f45 45%, #9c6420 100%); color: #2a1404; border: 1px solid #5a3a12;
  box-shadow: inset 0 1px 0 rgba(255,245,210,.7), inset 0 -2px 0 rgba(0,0,0,.25), 0 4px 14px rgba(0,0,0,.5); text-shadow: 0 1px 0 rgba(255,240,200,.5); }
.btn-oro:hover { filter: brightness(1.08); }
.btn-borde { background: linear-gradient(180deg, #4a423a, #26211c); color: #f0e4c8; border: 1px solid #b8863a;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.15), 0 4px 14px rgba(0,0,0,.5); }

/* Menú: barra de hierro con filo dorado */
nav { background: linear-gradient(180deg, rgba(38,32,27,.97), rgba(17,13,10,.97)) !important; border-bottom: 2px solid #8a6a32;
  box-shadow: 0 2px 0 rgba(0,0,0,.6), 0 6px 20px rgba(0,0,0,.6); }
nav a { color: #cdb88c; } nav a:hover, nav a.activo { color: #f6dc9a; }
nav .logo { color: var(--gold); text-shadow: 0 1px 0 #000, 0 0 12px rgba(226,178,90,.35); }

/* Contador: placas de hierro */
.cuenta div { background: var(--remache) 5px 5px / 9px 9px no-repeat, var(--remache) calc(100% - 5px) 5px / 9px 9px no-repeat,
  var(--remache) 5px calc(100% - 5px) / 9px 9px no-repeat, var(--remache) calc(100% - 5px) calc(100% - 5px) / 9px 9px no-repeat,
  linear-gradient(180deg, rgba(58,50,42,.95), rgba(24,20,16,.96)) !important; }
.cuenta b { color: #f6dc9a; text-shadow: 0 2px 0 #000, 0 0 14px rgba(226,178,90,.4); }
.estado { background: rgba(30,22,12,.85); border-color: rgba(127,174,90,.45); }

/* Títulos de sección: línea con rombo de oro */
h2 { color: #f0e4c8; text-shadow: 0 2px 0 #000; }
h2 span { color: var(--gold); }
h2::after { width: 160px; height: 10px; background:
  linear-gradient(45deg, transparent 40%, var(--gold) 40% 60%, transparent 60%) center / 10px 10px no-repeat,
  linear-gradient(90deg, transparent, #b8863a 30%, transparent 46%, transparent 54%, #b8863a 70%, transparent) center / 100% 2px no-repeat; }
.titulo-pagina h1 { color: var(--gold); text-shadow: 0 3px 0 #2a1404, 0 0 24px rgba(226,178,90,.3); }

/* Etiquetas, pasos, código y avisos */
.e-aviso { background: linear-gradient(180deg, #f3d38a, #b8863a); } .e-nuevo { background: linear-gradient(180deg, #9cc77a, #4d7c3a); color: #0f1a08; }
.e-evento { background: linear-gradient(180deg, #e0c48a, #9a7440); } .e-info { background: linear-gradient(180deg, #a8323f, #5e1620); color: #f6dc9a; }
.etiqueta { border-radius: 2px; border: 1px solid rgba(0,0,0,.5); }
.pasos li::before { background: radial-gradient(circle at 35% 30%, #f3d38a, #9c6420) !important; color: #2a1404; border: 1px solid #5a3a12; }
code { background: #2b1f13; color: var(--gold); border: 1px solid #5a4424; border-radius: 3px; }
.aviso { background: rgba(94,22,32,.35); border-color: rgba(184,134,58,.5); color: #f3d9a4; border-radius: 4px; }
.tag { border-radius: 3px; }

/* Buscadores y campos */
input, select { background: #1a120a !important; color: var(--text) !important; border: 1px solid #7a5a2a !important; border-radius: 3px !important; }
input:focus, select:focus { outline: 1px solid var(--gold); }

/* Comunidad y castillo */
.red { border-radius: 3px; border: 1px solid rgba(0,0,0,.5); }
.castillo-c { background: radial-gradient(ellipse at 15% 50%, rgba(226,178,90,.14), transparent 60%); }
.luz { box-shadow: 0 0 0 3px rgba(120,100,70,.3); }

/* Armas de las clases: medallón de bronce */
.clase svg.arma { background: radial-gradient(circle, rgba(226,178,90,.22) 0%, rgba(60,38,18,.75) 52%, transparent 70%); }

/* Pie de página */
footer.pie { background: linear-gradient(180deg, rgba(23,17,11,.97), rgba(10,7,4,.98)); }
footer.pie::before { height: 3px; background: linear-gradient(90deg, transparent, #5e1620, var(--gold), #5e1620, transparent); }
.pie-columnas h4 { color: #e0c27a; }
.pie-legal p { color: #8a7a5c; }
.tag.soc { color: #ec8d97; border-color: rgba(236,141,151,.45); }
.tag.anc { color: #8fd3e8; border-color: rgba(143,211,232,.4); }
.tag.exc { color: #9fd27a; border-color: rgba(159,210,122,.45); }

/* Escudo de Castle Siege */
.castillo-c .escudo { flex: none; }
.castillo-c .escudo img { display: block; width: 120px; height: auto; filter: drop-shadow(0 6px 12px rgba(0,0,0,.7)); }
@media (max-width: 720px) { .castillo-c { flex-direction: column; } }

/* Armas de las clases: imágenes tal como las envió el dueño, al doble de tamaño */
.clase .arma-img { display: block; width: 122px; height: 164px; margin: 0 auto 14px; border: 1px solid #7a5a2a; border-radius: 3px;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.6), 0 0 0 3px rgba(10,6,3,.9), 0 0 0 4px rgba(226,178,90,.35), 0 8px 18px rgba(0,0,0,.6); transition: transform .25s; }
.clase:hover .arma-img { transform: scale(1.05); }

/* Castle Siege: escudo grande y centrado, datos debajo */
.castillo-c { flex-direction: column; align-items: center; gap: 14px; background: radial-gradient(ellipse at 50% 30%, rgba(226,178,90,.16), transparent 65%); }
.castillo-c .escudo img { width: 170px; }
.castillo-datos { width: 100%; max-width: 560px; }

/* Nombre del servidor encima del texto pintado en el banner */
.banner-mu { position: relative; }
.banner-nombre {
  position: absolute; left: 34.6%; width: 31.4%; top: 45.5%; height: 36%;
  display: flex; align-items: center; justify-content: center;
  font-family: "Cinzel", serif; font-weight: 900; font-size: 4.3vw; letter-spacing: .04em; text-transform: uppercase; line-height: 1;
  background: radial-gradient(ellipse at 50% 45%, #6e1216 0%, #3c070b 60%, #1c0306 100%);
  border: 2px solid #d9a441; border-radius: 10px;
  box-shadow: 0 0 14px rgba(0,0,0,.8), inset 0 0 12px rgba(0,0,0,.7), 0 0 10px rgba(245,196,81,.35);
}
.banner-nombre::before {
  content: "San Juan";
  background: linear-gradient(180deg, #fff6c9 0%, #f5c451 40%, #c9851c 70%, #fbe08a 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  -webkit-text-stroke: 1px #4a0d0d; filter: drop-shadow(0 2px 2px rgba(0,0,0,.9));
}
.banner-nombre { color: transparent; }
.banner-nombre { font-size: 0; } .banner-nombre::before { font-size: 4.3vw; }


/* ===================== Estilo serio: negro y bronce ===================== */
/* Fondo negro liso, botones de bronce, títulos color durazno y tablas con cabecera rojo oscuro.
   Imágenes: pantallas de inicio oficiales del cliente (Data/Interface/lo_back_im0*.OZJ y lo_back_s5_im0*.OZJ),
   pasadas a JPG en la carpeta fotos/. Cada pantalla son 6 piezas: arriba 512+512+256 x 512 px, abajo las mismas x 223 px. */
:root {
  --bg: #111; --bg2: #161616; --card: #1a1a1a; --line: #2c2c2c;
  --gold: #e8b27c; --gold2: #a07850; --text: #e9e4dc; --muted: #a59d92; --cyan: #4fc3e8; --green: #5fd068;
  --bronce: linear-gradient(180deg, #b48a5e 0%, #9a7149 50%, #7f5a37 100%);
  --letra-medieval: "Segoe UI", Roboto, system-ui, sans-serif;
}
body { background: #111; color: var(--text); }
body::before, body::after { display: none; }
::selection { background: #7f5a37; color: #fff; }

/* Letras: limpias y serias. Solo el logo y el título de la portada usan Cinzel. */
h1, h2, h3, .card h3, nav a, .btn, .titulo-pagina h1, .lema, .apertura, .cuenta span, .cuenta b, .dato, th, .tag,
.panel-t, .servidor-estado, .contadores b, #csClan, .puesto, .pie-marca b, .pie-columnas h4, .bloque-t {
  font-family: "Segoe UI", Roboto, system-ui, sans-serif; font-weight: 600; font-synthesis: weight; letter-spacing: .2px; }
nav .logo, .pie-marca b { font-family: "Cinzel", Georgia, serif; font-weight: 900; letter-spacing: 2px; }

/* Sin escuditos dibujados en los títulos */
h2::before, .titulo-pagina h1::before, .titulo-pagina h1::after, .panel-t::before { display: none !important; }
h2 { color: var(--gold); text-shadow: none; }
h2::after { width: 70px; height: 2px; background: #9a7149; }
.titulo-pagina h1 { color: var(--gold); text-shadow: none; font-weight: 700; }

/* Menú: botones de bronce como placas */
nav { justify-content: center; gap: 10px; padding: 14px 3vw; background: #111 !important; border-bottom: 1px solid #262626; box-shadow: 0 2px 14px rgba(0,0,0,.6); }
nav .logo { margin-right: 18px; color: #e8b27c; text-shadow: none; font-size: 18px; }
nav a:not(.logo) { padding: 7px 13px; border-radius: 6px; background: var(--bronce); border: 1px solid #e2c9a0; color: #fff !important;
  font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; box-shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 2px 6px rgba(0,0,0,.5); }
nav a:not(.logo):hover, nav a.activo { filter: brightness(1.15); border-bottom: 1px solid #e2c9a0; padding-bottom: 7px; }
nav a.activo { box-shadow: inset 0 0 0 1px #fff3dc, 0 0 10px rgba(232,178,124,.45); }

/* Botones */
.btn { border-radius: 6px; text-transform: uppercase; }
.btn-oro, .btn-bronce { background: var(--bronce) !important; color: #fff !important; border: 1px solid #e2c9a0; text-shadow: 0 1px 1px rgba(0,0,0,.4);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 3px 10px rgba(0,0,0,.5); }
.btn-borde { background: #1d1d1d !important; color: #fff; border: 1px solid #9a7149; box-shadow: 0 3px 10px rgba(0,0,0,.5); }
.btn-oro:hover, .btn-bronce:hover, .btn-borde:hover { filter: brightness(1.12); }

/* Cuadros y tablas lisos, sin cuero ni remaches */
.card, .panel, .pasos li, table, .contadores div, .cuenta div {
  background: #1a1a1a !important; border: 1px solid #2c2c2c; border-radius: 6px; box-shadow: 0 6px 18px rgba(0,0,0,.45); }
.card:hover { border-color: #9a7149; box-shadow: 0 6px 18px rgba(0,0,0,.45); }
.card h3 { color: var(--gold); }
.dato { color: #fff; text-shadow: none; }
th, table.top th { background: linear-gradient(180deg, #4a1a0e, #2c0f08) !important; color: #e9d6bf; border-bottom: 1px solid #5a2a18;
  text-transform: uppercase; font-size: 12px; letter-spacing: .5px; }
td { border-bottom-color: #262626 !important; }
tr:nth-child(even) td { background: #1d1b19; }
tr:hover td, table.top tr:hover td { background: #26221d; }
.panel-t { background: #1a1a1a !important; color: var(--gold); border-bottom: 1px solid #2c2c2c; box-shadow: none; text-shadow: none;
  text-transform: none; font-size: 17px; letter-spacing: 0; }
.panel-t a { color: #c9a27a; }
.tag { border-radius: 4px; border-color: #3a3a3a; }
code { background: #222; border: 1px solid #3a3a3a; color: var(--gold); border-radius: 4px; }
.aviso { background: #1f1712; border-color: #7f5a37; color: #e9d6bf; border-radius: 6px; }
.pasos li::before { background: var(--bronce) !important; color: #fff; border: 1px solid #e2c9a0; }
input, select { background: #141414 !important; border: 1px solid #3a3a3a !important; border-radius: 6px !important; }
input:focus, select:focus { outline: 1px solid #b48a5e; }
.e-aviso, .e-nuevo, .e-evento, .e-info { background: var(--bronce); color: #fff; }
.tag.exc { color: #7fdc86; border-color: rgba(127,220,134,.4); } .tag.anc { color: #6fd0f0; border-color: rgba(111,208,240,.4); } .tag.soc { color: #e88fa0; border-color: rgba(232,143,160,.4); }
.clase .arma-img { border-color: #3a3a3a; box-shadow: 0 6px 16px rgba(0,0,0,.6); }

/* Pie */
footer.pie { background: #0c0c0c; }
footer.pie::before { height: 1px; background: #2c2c2c; }
.pie-columnas h4 { color: var(--gold); }
.pie-legal p { color: #7a736a; }

/* Banner del servidor */
.banner-mu { border-bottom: 1px solid #2c2c2c; box-shadow: 0 6px 20px rgba(0,0,0,.6); }

/* Imagen oficial del juego armada con sus 6 piezas; cubre su contenedor como una foto de fondo */
.foto-mu { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.foto-mu::before { content: ""; position: absolute; left: 50%; top: 50%; width: max(100%, calc(var(--alto, 100%) * 1280 / 735)); aspect-ratio: 1280 / 735; transform: translate(-50%, -50%);
  background-repeat: no-repeat;
  background-size: 40% 69.66%, 40% 69.66%, 20% 69.66%, 40% 30.34%, 40% 30.34%, 20% 30.34%;
  background-position: 0 0, 66.667% 0, 100% 0, 0 100%, 66.667% 100%, 100% 100%; }
.foto-inicio::before { background-image: url("fotos/inicio-1.jpg"), url("fotos/inicio-2.jpg"), url("fotos/inicio-3.jpg"), url("fotos/inicio-4.jpg"), url("fotos/inicio-5.jpg"), url("fotos/inicio-6.jpg"); }
.foto-batalla::before { background-image: url("fotos/batalla-1.jpg"), url("fotos/batalla-2.jpg"), url("fotos/batalla-3.jpg"), url("fotos/batalla-4.jpg"), url("fotos/batalla-5.jpg"), url("fotos/batalla-6.jpg"); }
.foto-mu::after { content: ""; position: absolute; inset: 0; }

/* Portada con la imagen oficial detrás del contador */
.hero-con-banner { position: relative; background: #0d0d0d !important; border-bottom: 1px solid #262626; padding: 70px 0 76px; overflow: hidden; container-type: size; height: 470px; }
.hero-con-banner .foto-mu::before { width: max(100cqw, calc(100cqh * 1280 / 735)); }
.hero-con-banner .foto-mu::after { background: linear-gradient(180deg, rgba(10,10,10,.35), rgba(10,10,10,.55) 70%, #111), radial-gradient(ellipse at 50% 50%, rgba(0,0,0,.55), transparent 70%); }
.hero-con-banner .hero-inner { position: relative; z-index: 1; }
.lema { color: #e9d6bf; text-shadow: 0 2px 6px #000; }
.apertura { color: #e9d6bf; text-shadow: 0 2px 6px #000; } .apertura b { color: var(--gold); }
.cuenta div { background: rgba(17,17,17,.82) !important; border: 1px solid #9a7149; box-shadow: 0 6px 18px rgba(0,0,0,.6); }
.cuenta b { color: #fff; text-shadow: none; font-weight: 700; }
.cuenta span { color: var(--gold); }
.estado { background: rgba(17,17,17,.82); border-color: rgba(95,208,104,.45); color: #7fdc86; }

/* Barra de estado del servidor */
.barra-estado { max-width: 1200px; margin: 26px auto 0; padding: 0 20px; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.barra-estado > div { background: #1a1a1a; border: 1px solid #2c2c2c; border-radius: 6px; padding: 7px 14px; display: flex; flex-direction: column; align-items: center; min-width: 92px; }
.barra-estado span { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; }
.barra-estado b { color: #fff; font-size: 15px; font-variant-numeric: tabular-nums; }
.barra-estado .be-luz { flex-direction: row; gap: 8px; }
.luz { background: #555; box-shadow: none; }
.luz.pronto { background: #e8b27c; box-shadow: 0 0 8px #e8b27c; }
.luz.on { background: #5fd068; box-shadow: 0 0 8px #5fd068; }

/* Portada en dos columnas, como los MU conocidos */
.portada { max-width: 1200px; margin: 0 auto; padding: 30px 20px 56px; display: grid; grid-template-columns: 1fr 1fr; gap: 30px 44px; }
.portada .bloque { max-width: none; margin: 0; padding: 0; min-width: 0; display: flex; flex-direction: column; }
.portada .bloque.ancho { grid-column: 1 / -1; }
.bloque-t { margin: 0 0 12px; color: #f0bf8e; font-size: 20px; font-weight: 500; display: flex; align-items: baseline; gap: 12px; }
.bloque-t a { margin-left: auto; font-size: 12px; color: #c9a27a; text-decoration: none; text-transform: uppercase; letter-spacing: .5px; }
.bloque-t a:hover { color: #fff; }

.portada .noticias li { grid-template-columns: auto 1fr auto; gap: 12px; padding: 8px 0; border-bottom: 0; }
.portada .noticias a { color: #e0b080; font-size: 16px; }
.portada .noticias a:hover { color: #fff; }
.portada .noticias time { color: #fff; font-size: 13px; }
.portada .etiqueta { background: var(--bronce); color: #fff; border: 0; border-radius: 3px; font-size: 10px; padding: 4px 9px; min-width: 64px; }
.leer { align-self: flex-end; margin-top: 10px; padding: 7px 14px; font-size: 12px; }

/* Castle Siege: imagen oficial con el clan dueño encima */
.cs-cartel { position: relative; height: 230px; border-radius: 6px; overflow: hidden; border: 1px solid #2c2c2c; container-type: size; display: grid; place-items: center; }
.cs-cartel .foto-mu::before { width: max(100cqw, calc(100cqh * 1280 / 735)); top: 42%; }
.cs-cartel .foto-mu::after { background: linear-gradient(90deg, rgba(0,0,0,.7), rgba(0,0,0,.25) 50%, rgba(0,0,0,.7)); }
.cs-dueno { position: relative; z-index: 1; display: flex; align-items: center; gap: 22px; }
.cs-dueno b { display: block; font-size: clamp(30px, 4.6vw, 52px); font-style: italic; font-weight: 900; color: #fff; text-transform: uppercase; line-height: 1; text-shadow: 0 3px 10px #000; }
.cs-dueno span { display: block; margin-top: 8px; color: #e9d6bf; font-size: 14px; text-shadow: 0 2px 6px #000; }
.marca { width: 96px; height: 96px; image-rendering: pixelated; background: rgba(0,0,0,.35); border: 2px solid #9a7149; border-radius: 4px; }
.marca.sin-marca { background: rgba(0,0,0,.45) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23b48a5e'%3E%3Cpath d='M3 21V10l2-1V5h2v3l2-1V4h2v3h2V4h2v3l2 1V5h2v4l2 1v11h-7v-5a2 2 0 0 0-4 0v5z'/%3E%3C/svg%3E") center / 60% no-repeat; }
.marca.chica { width: 18px; height: 18px; border-width: 1px; vertical-align: -4px; margin-right: 8px; }

/* Rankings */
table.rk, table.horario { width: 100%; border-collapse: collapse; font-size: 14px; border-radius: 6px; overflow: hidden; }
table.rk th { padding: 14px 8px; text-align: center; }
table.rk td { padding: 11px 8px; text-align: center; color: #ddd; }
table.rk td a { color: #ddd; text-decoration: none; } table.rk td a:hover { color: var(--gold); }
table.rk sup { color: #e0566a; font-size: 10px; margin-left: 2px; }
table.rk .fuerte { color: #fff; font-weight: 600; }
table.rk .pos { width: 46px; color: #ccc; }
.medalla { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; font-size: 12px; font-weight: 800; color: #3a2a10;
  box-shadow: inset 0 -2px 3px rgba(0,0,0,.35), inset 0 2px 2px rgba(255,255,255,.6), 0 1px 3px rgba(0,0,0,.6); }
.medalla.m1 { background: radial-gradient(circle at 35% 30%, #fff1b5, #e0b440 55%, #9a7414); }
.medalla.m2 { background: radial-gradient(circle at 35% 30%, #ffffff, #c4c8cc 55%, #7d8287); }
.medalla.m3 { background: radial-gradient(circle at 35% 30%, #ffd9b0, #c98a4f 55%, #7f4f22); }

/* Horario de eventos con cuenta regresiva */
table.horario td { padding: 9px 12px; font-size: 14px; color: #ddd; }
table.horario td:first-child { font-weight: 600; }
table.horario .hora { color: #4fc3e8; font-family: inherit; font-weight: 400; }
table.horario .falta { text-align: right; white-space: nowrap; color: #fff; }
table.horario .falta b { color: #f3d34a; font-variant-numeric: tabular-nums; }
table.horario .falta b.ya { color: #5fd068; }
.portada .buscar-pj { margin-top: 14px; }
.portada .actualizado { grid-column: 1 / -1; margin: 0; color: var(--muted); font-size: 12px; text-align: center; }

@media (max-width: 900px) { .portada { grid-template-columns: 1fr; } .hero-con-banner { height: auto; container-type: normal; } .hero-con-banner .foto-mu::before { width: max(100%, 900px); } }
@media (max-width: 700px) { nav a:not(.logo) { display: none; } nav .logo { margin: 0; } .portada .noticias time { display: none; } }
.cs-dueno #csClan { font-size: clamp(30px, 4.6vw, 52px); color: #fff; font-family: "Segoe UI", Roboto, system-ui, sans-serif; font-weight: 900; }

/* Jugadores de la semana: podio con los 3 que más experiencia ganaron */
.bloque-t small { font-size: 13px; color: var(--muted); font-weight: 400; }
.podio { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, minmax(0, 220px)); gap: 26px; align-items: end; justify-content: center; width: 100%; padding: 0 20px; }
.podio-pj { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 3px; padding: 14px 10px; border-radius: 6px;
  background: rgba(10,10,10,.62); border: 1px solid rgba(180,138,94,.55); box-shadow: 0 8px 22px rgba(0,0,0,.6); }
.podio-pj.p1 { order: 2; padding: 22px 10px; border-color: #e0b440; box-shadow: 0 0 18px rgba(224,180,64,.35), 0 8px 22px rgba(0,0,0,.6); }
.podio-pj.p2 { order: 1; } .podio-pj.p3 { order: 3; }
.podio-pj .medalla { width: 34px; height: 34px; font-size: 16px; }
.podio-pj.p1 .medalla { width: 42px; height: 42px; font-size: 19px; }
.podio-pj small { color: var(--gold); text-transform: uppercase; font-size: 11px; letter-spacing: 1px; }
.podio-pj b { font-size: 22px; font-style: italic; font-weight: 900; text-transform: uppercase; line-height: 1.1; }
.podio-pj.p1 b { font-size: 28px; }
.podio-pj b a { color: #fff; text-decoration: none; text-shadow: 0 2px 8px #000; } .podio-pj b a:hover { color: var(--gold); }
.podio-clase { color: #cfc6ba; font-size: 13px; }
.podio-exp { color: #5fd068; font-weight: 700; font-size: 14px; }
.podio-vacio { text-align: center; }
.podio-vacio b { display: block; font-size: clamp(28px, 4vw, 46px); font-style: italic; font-weight: 900; color: #fff; text-transform: uppercase; text-shadow: 0 3px 10px #000; }
.podio-vacio span { color: #e9d6bf; text-shadow: 0 2px 6px #000; }
.cs-cartel { height: 250px; }
@media (max-width: 700px) { .cs-cartel { height: auto; padding: 18px 0; } .podio { grid-template-columns: 1fr; } .podio-pj.p1, .podio-pj.p2, .podio-pj.p3 { order: 0; } }
.podio-pj b { text-transform: none; }

/* ===================== Crear cuenta ===================== */
nav a.nav-cuenta { background: linear-gradient(180deg, #e0b440, #b8862a) !important; color: #1a1205 !important; border-color: #fff1c9; }
form.registro { max-width: 460px; margin: 0 auto 26px; padding: 26px; display: grid; gap: 16px; background: #1a1a1a; border: 1px solid #2c2c2c; border-radius: 8px; box-shadow: 0 6px 18px rgba(0,0,0,.45); }
form.registro label { display: grid; gap: 6px; color: #e9d6bf; font-weight: 600; font-size: 14px; }
form.registro label small { color: var(--muted); font-weight: 400; }
form.registro input { padding: 11px 12px; font-size: 15px; color: #fff !important; }
form.registro .trampa { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
form.registro .btn { width: 100%; padding: 13px; font-size: 15px; }
form.registro .btn:disabled { opacity: .6; cursor: wait; }
.mensaje { margin: 0; min-height: 1.4em; text-align: center; font-weight: 600; }
.mensaje.ok { color: #7fdc86; } .mensaje.error { color: #ff8a8a; }
#registro .aviso, #registro .pasos { max-width: 460px; }

/* Pie legal discreto: texto corto, pequeño y gris */
.pie-legal p { font-size: 11px; color: #66605a; text-align: center; letter-spacing: .3px; }
