/* sitio publico: rankings, perfiles, clanes y mundos. Va despues de portada.css y usa sus mismos tonos */
.cab { padding-top: 16px; }
.cab h1 { margin: 8px 0 4px; overflow-wrap: anywhere; }
.sub { margin: 0 0 8px; font-size: 15px; color: #9b927f; }
.estado { margin: 12px 0 0; font-size: 14px; color: #9b927f; }
.vacio { margin: 0; color: #9b927f; font-size: 15px; }
.ancho main, .ancho .cab, .ancho .pie { max-width: 960px; }

/* navegacion */
.sitio-nav { display: flex; flex-wrap: wrap; gap: 4px 14px; font: 13px 'Silkscreen', monospace; }
.sitio-nav a { color: #9b927f; text-decoration: none; padding: 6px 0; }
.sitio-nav a:hover { color: #eadfca; }
.sitio-nav a[aria-current="page"] { color: #2fd0e0; text-decoration: underline; text-underline-offset: 4px; }

/* el taladro: pixeles nitidos */
canvas.taladro { image-rendering: pixelated; image-rendering: crisp-edges; display: block; }

/* pestanas de categoria (enlaces reales) */
.tipos { display: flex; flex-wrap: wrap; gap: 6px; margin: 16px 0 0; padding: 0; list-style: none; }
.tipos a { display: block; padding: 8px 10px; border: 2px solid #2a3038; border-radius: 8px; background: #11151a; color: #eadfca; text-decoration: none; font-size: 15px; }
.tipos a[aria-current="page"] { border-color: #2fd0e0; color: #2fd0e0; }
.tipos a:focus-visible, .paginas a:focus-visible, .sitio-nav a:focus-visible, .buscador input:focus-visible, .buscador button:focus-visible { outline: 3px solid #f2c14e; outline-offset: 2px; }
.mundo-sel { display: flex; align-items: center; gap: 10px; margin-top: 16px; }
.mundo-sel select { font: inherit; font-size: 16px; padding: 8px 10px; border-radius: 8px; border: 2px solid #2a3038; background: #11151a; color: #eadfca; max-width: 100%; }
.mundo-sel select:focus-visible { outline: 3px solid #f2c14e; outline-offset: 2px; }
.mundo-unico { margin: 16px 0 0; font: 15px 'Silkscreen', monospace; color: #eadfca; }

/* podio: los tres primeros con su taladro */
.podio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }
.podio li { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 6px; border: 2px solid #2a3038; border-radius: 8px; background: #11151a; text-align: center; min-width: 0; }
.podio li:first-child { border-color: #f2c14e; }
.podio .puesto { font: 14px 'Silkscreen', monospace; color: #f2c14e; }
.podio a { overflow-wrap: anywhere; font-weight: 700; }
.podio .nivel { font-size: 13px; color: #9b927f; }
.tabla .nv { width: 3em; padding-left: 2px; padding-right: 4px; }
.podio .valor { font-size: 14px; color: #9b927f; }

/* tabla de puestos */
.tabla table { border-collapse: collapse; width: 100%; font-size: 15px; }
.tabla th, .tabla td { text-align: left; border-bottom: 1px solid #2a3038; padding: 8px 6px; vertical-align: middle; }
.tabla th { font-size: 13px; color: #9b927f; font-weight: 400; }
.tabla .num { text-align: right; white-space: nowrap; }
.tabla .mini { width: 52px; padding-right: 0; }
.tabla td:nth-child(3) { overflow-wrap: anywhere; }
.tag { font: 13px 'Silkscreen', monospace; color: #9b927f; white-space: nowrap; }
.tipo { font-size: 13px; color: #9b927f; }
.paginas { display: flex; justify-content: space-between; gap: 12px; margin-top: 12px; }

/* perfil */
.perfil-cab { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; padding: 16px; border: 2px solid #2a3038; border-radius: 10px; background: #11151a; }
.perfil-cab .datos { min-width: 0; flex: 1 1 200px; }
.perfil-cab p { margin: 4px 0; }
.ficha { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin: 0; }
.ficha div { padding: 10px 12px; border: 2px solid #2a3038; border-radius: 8px; background: #11151a; min-width: 0; }
.ficha dt { font-size: 13px; color: #9b927f; }
.ficha dd { margin: 2px 0 0; font: 15px 'Silkscreen', monospace; color: #eadfca; overflow-wrap: anywhere; }
.lista { margin: 0; padding-left: 20px; }
.lista li { margin-bottom: 6px; overflow-wrap: anywhere; }

/* buscador */
.buscador label { display: block; margin-bottom: 6px; font-size: 15px; }
.buscador-fila { display: flex; gap: 8px; }
.buscador input { flex: 1; min-width: 0; font: inherit; font-size: 16px; padding: 10px; border-radius: 8px; border: 2px solid #2a3038; background: #0b0d10; color: #eadfca; }
.buscador button { font: inherit; font-size: 16px; padding: 10px 14px; border-radius: 8px; border: 2px solid #2fd0e0; background: #2fd0e0; color: #0b0d10; cursor: pointer; }
.resultados { margin: 8px 0 0; padding-left: 20px; }
.resultados li { margin-bottom: 6px; overflow-wrap: anywhere; }

/* mundos */
.mundo { padding: 14px; border: 2px solid #2a3038; border-radius: 10px; background: #11151a; margin-bottom: 16px; }
.mundo h2 { margin: 0 0 4px; }
.mundo h3 { font-size: 15px; margin: 16px 0 8px; color: #eadfca; }
.mundo .ficha div { background: #0b0d10; }
.mundo .podio li { background: #0b0d10; }
.top5 { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }
.top5 li { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 4px; border: 2px solid #2a3038; border-radius: 8px; background: #0b0d10; text-align: center; min-width: 0; }
.top5 a { overflow-wrap: anywhere; }

@media (min-width: 900px) {
  .podio li { padding: 16px 8px; }
}
@media (max-width: 420px) {
  .tabla table { font-size: 14px; }
  .tabla th, .tabla td { padding: 8px 4px; }
}
.oculto { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.podio-mundo { font-size: 15px; margin: 16px 0 8px; }
.podio-mundo .tipo { font-family: 'Atkinson', system-ui, sans-serif; }
.tabla th:first-child.num, .tabla td:first-child.num { width: 3.5em; }
