/* 15-11: páginas del mundo de RogueGods (héroes, la subida, pociones, efectos y proezas). Va encima de site.css. */
.w-sec { padding: clamp(48px, 7vw, 88px) 0; border-top: 1px solid var(--line); }
.w-sec:first-of-type { border-top: 0; }
.w-h2 { font-family: var(--display); font-size: clamp(28px, 4vw, 44px); font-weight: 900; line-height: 1.1; margin: 0 0 10px; }
.w-lead { color: var(--muted); font-size: 17px; line-height: 1.65; max-width: 760px; margin: 0 0 28px; }
.w-note { color: var(--muted); font-size: 14px; margin-top: 18px; }
.w-card { border-radius: 16px; background: radial-gradient(120% 90% at 50% 0%, rgba(243, 194, 91, .08), transparent 60%), linear-gradient(180deg, #171226, #09070f); box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), 0 24px 50px -30px #000; }
.w-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }

/* Héroes */
.wx-hero-card { display: grid; grid-template-columns: minmax(220px, 340px) 1fr; gap: clamp(24px, 4vw, 56px); align-items: start; padding: clamp(40px, 6vw, 72px) 0; border-top: 1px solid var(--line); }
.wx-hero-card:first-child { border-top: 0; }
.wx-hero-card:nth-child(even) { grid-template-columns: 1fr minmax(220px, 340px); }
.wx-hero-card:nth-child(even) .wx-hero-visual { order: 2; }
.wx-hero-visual { position: sticky; top: 96px; text-align: center; }
.wx-hero-visual img { width: 100%; max-width: 340px; aspect-ratio: 1; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 3px rgba(243, 194, 91, .7), 0 0 0 10px rgba(243, 194, 91, .08), 0 0 80px rgba(243, 160, 40, .35); }
.wx-hero-visual .wx-hero-num { display: block; margin-top: 16px; font-family: var(--display); font-weight: 900; font-size: 30px; letter-spacing: .2em; color: rgba(243, 194, 91, .75); }
.wx-hero-nick { margin: 0; color: var(--gold); font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.wx-hero-name { font-family: var(--display); font-size: clamp(38px, 6vw, 64px); font-weight: 900; line-height: 1; margin: 6px 0 18px; }
.wx-hero-lore { white-space: pre-line; font-size: 17px; line-height: 1.7; color: #e6ddcf; margin: 0 0 24px; }
.wx-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 0 0 18px; }
.wx-stat { padding: 14px 8px; text-align: center; border-radius: 12px; background: rgba(255, 255, 255, .03); border: 1px solid var(--line); }
.wx-stat b { display: block; font-family: var(--display); font-size: 30px; line-height: 1; color: #fff0c4; }
.wx-stat small { display: block; margin-top: 6px; font-size: 12px; color: var(--muted); }
.wx-kit { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0 0 18px; }
.wx-kit-item { display: flex; gap: 14px; align-items: center; padding: 12px 14px; border-radius: 12px; background: rgba(255, 255, 255, .03); border: 1px solid rgba(255, 255, 255, .07); }
.wx-kit-item img { width: 52px; height: 52px; object-fit: contain; flex: none; filter: drop-shadow(0 0 10px rgba(243, 194, 91, .35)); }
.wx-kit-item small { display: block; color: var(--gold); font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.wx-kit-item b { display: block; font-family: var(--display); font-size: 19px; line-height: 1.15; }
.wx-kit-item span { display: block; color: var(--muted); font-size: 14px; line-height: 1.45; margin-top: 2px; }
.wx-kit-item.wide { grid-column: 1 / -1; }
.w-label { margin: 22px 0 10px; color: var(--gold); font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.wx-deck { display: flex; flex-wrap: wrap; gap: 14px; }
.wx-deck a { position: relative; width: 112px; transition: transform .25s ease; }
.wx-deck a:hover, .wx-deck a:focus-visible { transform: translateY(-4px); }
.wx-deck img { width: 100%; aspect-ratio: 360 / 504; border-radius: 8px; box-shadow: 0 10px 24px -12px #000; }
.wx-deck .n { position: absolute; top: -8px; right: -8px; min-width: 30px; padding: 3px 8px; border-radius: 999px; background: var(--gold); color: #120d05; font-weight: 800; font-size: 13px; text-align: center; box-shadow: 0 4px 10px rgba(0, 0, 0, .5); }
.wx-hero-more { display: inline-block; margin-top: 18px; color: var(--gold); font-weight: 700; }
.wx-fourth { margin: 24px 0 0; padding: clamp(40px, 6vw, 64px) 24px; text-align: center; border: 1px dashed rgba(243, 194, 91, .4); border-radius: 20px; background: radial-gradient(60% 80% at 50% 40%, rgba(120, 80, 200, .14), transparent 70%); }
.wx-fourth .q { display: block; font-family: var(--display); font-size: 96px; line-height: 1; color: rgba(243, 194, 91, .55); text-shadow: 0 0 40px rgba(160, 110, 255, .5); }
.wx-fourth h2 { font-family: var(--display); font-size: clamp(26px, 3.5vw, 38px); margin: 10px 0 8px; }
.wx-fourth p { color: var(--muted); max-width: 520px; margin: 0 auto; }
.wx-same-note { margin: 10px 0 0; padding: 14px 18px; border-radius: 12px; border: 1px solid var(--line); color: #e6ddcf; background: rgba(243, 194, 91, .05); }

/* La subida: pisos, nodos, actos, forja, altares, eventos y castigo */
.wx-floors { display: grid; grid-template-columns: repeat(16, minmax(0, 1fr)); gap: 6px; margin: 0 0 28px; }
.wx-floor { display: grid; place-items: center; aspect-ratio: 1; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .1); background: rgba(255, 255, 255, .03); font-family: var(--display); font-size: 15px; color: var(--muted); }
.wx-floor.fixed { border-color: var(--gold); background: rgba(243, 194, 91, .1); color: #fff0c4; }
.wx-floor img { width: 70%; height: 70%; object-fit: contain; }
.wx-nodes { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
/* 16-11: cada parada del mapa con su captura del juego (misterio y tesoro, solo con su icono) */
.wx-node { display: flex; flex-direction: column; overflow: hidden; }
.wx-node-ph { position: relative; aspect-ratio: 4 / 3; background: radial-gradient(60% 60% at 50% 45%, rgba(243, 194, 91, .14), transparent 70%), #0d0a16; }
.wx-node-ph > img:not(.wx-node-ic) { width: 100%; height: 100%; object-fit: cover; display: block; }
.wx-node-ic { position: absolute; left: 12px; bottom: 12px; width: 50px; height: 50px; object-fit: contain; padding: 6px; border-radius: 12px; background: rgba(7, 6, 12, .78); box-shadow: 0 0 0 1px var(--line); filter: drop-shadow(0 0 10px rgba(243, 194, 91, .45)); }
.wx-node-ph.no-ph { display: grid; place-items: center; }
.wx-node-ph.no-ph .wx-node-ic { position: static; width: 26%; height: auto; max-height: 52%; padding: 0; background: none; box-shadow: none; opacity: .9; }
.wx-node-tx { padding: 16px 18px 20px; }
.wx-mapshots { display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 6px 0 8px; }
.wx-mapshots figure, .wx-forge-shot figure { margin: 0; }
.wx-mapshots button, .wx-forge-shot button { display: block; width: 100%; padding: 0; border: 0; border-radius: 16px; overflow: hidden; cursor: zoom-in; background: #0d0a16; box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), 0 24px 50px -30px #000; }
.wx-mapshots img, .wx-forge-shot img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; transition: transform .6s ease; }
.wx-mapshots button:hover img, .wx-forge-shot button:hover img { transform: scale(1.04); }
.wx-mapshots figcaption, .wx-forge-shot figcaption { margin-top: 10px; color: var(--muted); font-size: 15px; }
.wx-shots-note { margin: 0 0 30px; font-size: 12px; color: var(--muted); opacity: .8; }
.wx-forge-wrap { display: grid; gap: 16px; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: start; }
.wx-forge-wrap .wx-forge { grid-template-columns: 1fr; }
.wx-node h3, .w-card h3 { font-family: var(--display); font-size: 21px; margin: 0 0 4px; }
.wx-node p, .w-card p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.55; }
.wx-acts { display: grid; gap: 16px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.wx-act { padding: 22px; }
.wx-act .n { color: var(--gold); font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.wx-act h3 { font-size: 26px; }
.wx-bosses { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 10px; margin-top: 14px; }
.wx-bosses a { display: block; text-align: center; color: var(--ink); font-size: 12px; line-height: 1.25; }
.wx-bosses img { width: 100%; aspect-ratio: 1; object-fit: contain; border-radius: 12px; background: radial-gradient(70% 60% at 50% 50%, rgba(243, 194, 91, .12), transparent 70%); }
.wx-act .more { display: inline-block; margin-top: 14px; color: var(--gold); font-weight: 700; font-size: 14px; }
.wx-forge { display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.wx-forge .w-card { padding: 26px; }
.wx-forge h3 { font-size: 28px; }
.wx-costs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.wx-cost { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); font-size: 13px; color: #e6ddcf; }
.wx-cost b { color: var(--gold); }
.wx-gods-row { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); }
.wx-gods-row a { display: block; text-align: center; color: var(--ink); font-family: var(--display); font-weight: 700; font-size: 16px; }
.wx-gods-row img { width: 100%; aspect-ratio: 4 / 5; object-fit: contain; object-position: 50% 100%; border-radius: 14px; background: radial-gradient(90% 70% at 50% 35%, rgba(243, 194, 91, .16), transparent 70%), linear-gradient(180deg, #171226, #09070f); box-shadow: 0 0 0 1px rgba(255, 255, 255, .08); transition: transform .3s ease; }
.wx-gods-row a:hover img { transform: translateY(-4px); }
.wx-events { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.wx-event { padding: 22px; }
.wx-event p { font-style: italic; color: #d9cfbf; }
.wx-badge { display: inline-block; margin-top: 12px; padding: 3px 10px; border-radius: 999px; background: rgba(243, 194, 91, .14); color: var(--gold); font-size: 12px; font-weight: 700; }
.wx-punish { display: grid; gap: 10px; }
.wx-punish li { display: flex; gap: 16px; align-items: center; padding: 14px 18px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .08); background: rgba(255, 255, 255, .02); list-style: none; }
.wx-punish ol { padding: 0; margin: 0; }
.wx-punish .lv { flex: none; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; font-family: var(--display); font-weight: 900; font-size: 20px; color: #120d05; background: linear-gradient(180deg, #fff0c4, #c98a2b); }
.wx-punish li:nth-child(n+4) .lv { background: linear-gradient(180deg, #ffb37a, #a8321c); color: #fff; }

/* Pociones, efectos y proezas */
.wx-potions { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.wx-potion { padding: 22px 20px; text-align: center; }
.wx-potion img { width: 150px; height: auto; aspect-ratio: 256 / 320; object-fit: contain; margin: 0 auto 14px; filter: drop-shadow(0 14px 24px rgba(0, 0, 0, .6)); }
.wx-potion .price { display: inline-block; margin-top: 14px; padding: 4px 12px; border-radius: 999px; border: 1px solid var(--line); color: var(--gold); font-weight: 700; font-size: 14px; }
.wx-effects { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.wx-effect { display: flex; gap: 14px; padding: 16px 18px; }
.wx-effect img { width: 54px; height: 54px; flex: none; object-fit: contain; }
.wx-effect .ini { width: 54px; height: 54px; flex: none; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); font-family: var(--display); font-weight: 900; font-size: 22px; color: var(--gold); }
.wx-feats { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.wx-feat { display: flex; gap: 16px; align-items: center; padding: 16px 18px; }
.wx-feat img { width: 76px; height: 76px; flex: none; border-radius: 12px; object-fit: cover; box-shadow: 0 0 0 1px rgba(243, 194, 91, .35); }
.w-credit { margin-top: 26px; font-size: 12px; color: var(--muted); }

@media (max-width: 860px) {
  .wx-hero-card, .wx-hero-card:nth-child(even) { grid-template-columns: 1fr; }
  .wx-hero-card:nth-child(even) .wx-hero-visual { order: 0; }
  .wx-hero-visual { position: static; }
  .wx-hero-visual img { max-width: 240px; }
  .wx-acts, .wx-forge, .wx-forge-wrap { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .wx-mapshots { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .wx-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wx-kit { grid-template-columns: 1fr; }
  .wx-floors { grid-template-columns: repeat(8, minmax(0, 1fr)); }
  .wx-deck a { width: calc(33.333% - 10px); }
}
.lib-tabs .wrap { scrollbar-width: none; }
.lib-tabs .wrap::-webkit-scrollbar { display: none; }

/* ===== 16-11: más griego y épico, y rejillas sin huecos (Adriano: «6 criaturas de cada lugar… y así en toda la web, nivel de detalle alto, más rollo griego épico») ===== */
/* Greca entre bloques, como en la portada */
.w-sec { position: relative; border-top: 0; }
.w-sec + .w-sec::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 14px; opacity: .3; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='14' viewBox='0 0 28 14'%3E%3Cpath d='M0 13h6V3h12v8h-6V7' fill='none' stroke='%23f3c25b' stroke-width='1.6'/%3E%3Cpath d='M14 13h14' stroke='%23f3c25b' stroke-width='1.6'/%3E%3C/svg%3E") repeat-x center / 28px 14px; }
/* Títulos en oro con su greca debajo */
.w-h2 { background: linear-gradient(180deg, #fff6d8 0%, var(--gold) 55%, var(--gold-2) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.w-h2::after { content: ""; display: block; width: 120px; height: 12px; margin-top: 14px; opacity: .75; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='12' viewBox='0 0 24 12'%3E%3Cpath d='M0 11h5V2h10v7h-5V5' fill='none' stroke='%23f3c25b' stroke-width='1.5'/%3E%3Cpath d='M12 11h12' stroke='%23f3c25b' stroke-width='1.5'/%3E%3C/svg%3E") repeat-x left center / 24px 12px; }
/* Tarjetas con esquinas de oro, como un marco de templo */
.w-card { --c: rgba(243, 194, 91, .5); background:
  linear-gradient(var(--c), var(--c)) left 10px top 10px / 18px 1px no-repeat, linear-gradient(var(--c), var(--c)) left 10px top 10px / 1px 18px no-repeat,
  linear-gradient(var(--c), var(--c)) right 10px top 10px / 18px 1px no-repeat, linear-gradient(var(--c), var(--c)) right 10px top 10px / 1px 18px no-repeat,
  linear-gradient(var(--c), var(--c)) left 10px bottom 10px / 18px 1px no-repeat, linear-gradient(var(--c), var(--c)) left 10px bottom 10px / 1px 18px no-repeat,
  linear-gradient(var(--c), var(--c)) right 10px bottom 10px / 18px 1px no-repeat, linear-gradient(var(--c), var(--c)) right 10px bottom 10px / 1px 18px no-repeat,
  radial-gradient(120% 90% at 50% 0%, rgba(243, 194, 91, .09), transparent 60%), linear-gradient(180deg, #171226, #09070f);
  box-shadow: 0 0 0 1px rgba(243, 194, 91, .16), 0 24px 50px -30px #000; transition: box-shadow .3s ease, transform .3s ease; }
.w-card:hover { box-shadow: 0 0 0 1px rgba(243, 194, 91, .42), 0 0 36px -12px rgba(243, 160, 40, .4), 0 24px 50px -30px #000; }

/* Tres actos: el paisaje de cada acto de fondo y 6 criaturas, con la corona en los jefes */
.wx-acts { align-items: stretch; }
.wx-act { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; padding: 24px 22px 22px; }
.wx-act::before { content: ""; position: absolute; inset: 0; z-index: -2; background: var(--act-bg) center 30% / cover no-repeat; opacity: .5; transform: scale(1.04); transition: transform 1.4s ease, opacity .6s ease; }
.wx-act::after { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: linear-gradient(180deg, rgba(9, 7, 15, .3) 0%, rgba(9, 7, 15, .78) 36%, rgba(9, 7, 15, .95) 100%); box-shadow: inset 0 0 0 1px rgba(243, 194, 91, .2); }
.wx-act:hover::before { transform: scale(1.1); opacity: .62; }
.wx-act h3 { text-shadow: 0 2px 16px #000; }
.wx-bosses { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 10px; margin-top: 18px; flex: 1; align-content: start; }
.wx-bosses a { position: relative; transition: transform .3s ease, color .3s ease; }
.wx-bosses a:hover { transform: translateY(-4px); color: var(--gold-3); }
.wx-bosses img { margin-bottom: 4px; border-radius: 0; background: none; filter: drop-shadow(0 10px 12px rgba(0, 0, 0, .65)); }
.wx-bosses a::before { content: ""; position: absolute; z-index: -1; left: 6%; right: 6%; top: 8%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, rgba(243, 194, 91, .22), rgba(243, 194, 91, .06) 60%, transparent); pointer-events: none; }
.wx-bosses a.wx-boss::after { content: ""; position: absolute; top: 0; right: 2px; width: 26px; height: 26px; border-radius: 50%; background: rgba(7, 6, 12, .85) url("/assets/img/map/boss.webp") center / 64% no-repeat; box-shadow: 0 0 0 1px var(--gold), 0 0 14px rgba(243, 194, 91, .55); }
.wx-act .more { margin-top: 20px; }
@media (min-width: 861px) { .wx-act h3 { min-height: 2.25em; } }

/* Paradas del mapa: 4 columnas y el jefe a doble ancho (7 paradas, 2 filas llenas) */
.wx-nodes { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.wx-node.wx-node-boss { grid-column: span 2; }
.wx-node.wx-node-boss .wx-node-ph { aspect-ratio: 8 / 3; }
.wx-node.wx-node-boss .wx-node-ph > img:not(.wx-node-ic) { object-position: 50% 62%; }
@media (max-width: 1000px) { .wx-nodes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .wx-nodes { grid-template-columns: 1fr; } .wx-node.wx-node-boss { grid-column: auto; } .wx-node.wx-node-boss .wx-node-ph { aspect-ratio: 4 / 3; } }

/* Dioses del altar (11): filas centradas de 6 y 5 */
.wx-gods-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px 14px; }
.wx-gods-row a { flex: 0 0 calc((100% - 5 * 14px) / 6); }
@media (max-width: 860px) { .wx-gods-row a { flex-basis: calc((100% - 3 * 14px) / 4); } }
@media (max-width: 560px) { .wx-gods-row a { flex-basis: calc((100% - 2 * 14px) / 3); } }

/* Misterios (13): 3 columnas con dos destacados a doble ancho */
.wx-events { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-flow: dense; }
.wx-event.is-feat { grid-column: span 2; padding: 28px 30px; }
.wx-event.is-feat h3 { font-size: 27px; color: var(--gold-3); }
.wx-event.is-feat p { font-size: 17px; }
@media (max-width: 1000px) { .wx-events { grid-template-columns: repeat(2, minmax(0, 1fr)); } .wx-event.is-feat ~ .wx-event.is-feat { grid-column: auto; padding: 22px; } }
@media (max-width: 600px) { .wx-events { grid-template-columns: 1fr; } .wx-event.is-feat { grid-column: auto; } }

/* Efectos (8 y 26) en 2 columnas; proezas (17) en 3 con la primera a doble ancho */
.wx-effects { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.wx-feats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.wx-feat.is-feat { grid-column: span 2; }
.wx-feat.is-feat h3 { color: var(--gold-3); }
@media (max-width: 1000px) { .wx-feats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) { .wx-effects { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .wx-feats { grid-template-columns: 1fr; } .wx-feat.is-feat { grid-column: auto; } }
