/* Wiki 99B · portada rolera (19/11): el mundo real de fondo, estandartes, rasgos con ícono, selección de clase, el camino
   de los primeros pasos y los portales de cada sección. La misma familia que la portada de 99bforever.online. */

/* héroe: Lorencia de fondo, en vivo */
.hero-mundo{position:relative;overflow:hidden;isolation:isolate}
.hm-fondo{position:absolute;inset:0;z-index:-1;overflow:hidden}
.hm-fondo img{width:100%;height:100%;object-fit:cover;object-position:50% 45%;filter:saturate(1.1) brightness(.42) contrast(1.05);transform:scale(1.25);animation:hm-viaje 60s ease-in-out infinite alternate}
.hm-fondo::after{content:"";position:absolute;inset:0;background:radial-gradient(80% 70% at 30% 40%,rgba(8,8,10,.35),rgba(8,8,10,.92)),linear-gradient(0deg,var(--bg),transparent 40%)}
@keyframes hm-viaje{to{transform:scale(1.35) translate(-3%,2%)}}

/* estandartes con las cifras del servidor */
.estandartes-w{list-style:none;margin:26px 0 8px;padding:0;display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px;align-items:start}
.estandartes-w li{position:relative;padding:34px 8px 30px;text-align:center;background:linear-gradient(180deg,#5a1717,#2a0a0a);
  clip-path:polygon(0 0,100% 0,100% 100%,50% calc(100% - 18px),0 100%);box-shadow:inset 0 0 0 1px rgba(255,200,150,.12);animation:mece-w 6s ease-in-out infinite;transform-origin:50% 0}
.estandartes-w li:nth-child(2){background:linear-gradient(180deg,#1d2c4a,#0e1729);animation-delay:-1s}
.estandartes-w li:nth-child(3){background:linear-gradient(180deg,#4a3a12,#231a07);animation-delay:-2s}
.estandartes-w li:nth-child(4){background:linear-gradient(180deg,#183b2a,#0a1c14);animation-delay:-3s}
.estandartes-w li:nth-child(5){background:linear-gradient(180deg,#3b1d4a,#1a0d22);animation-delay:-4s}
.estandartes-w li:nth-child(6){background:linear-gradient(180deg,#4a2a12,#221207);animation-delay:-5s}
.estandartes-w li::before{content:"";position:absolute;left:-5px;right:-5px;top:0;height:10px;background:linear-gradient(180deg,var(--gold-hi),#b67a35 60%,#6e4510)}
.estandartes-w li::after{content:"";position:absolute;inset:14px 8px 26px;border:1px solid rgba(241,212,149,.25);pointer-events:none}
.estandartes-w img{display:block;width:46px;height:46px;object-fit:contain;margin:0 auto 6px;filter:drop-shadow(0 3px 5px rgba(0,0,0,.6))}
.estandartes-w b{display:block;font:700 clamp(1.15rem,2vw,1.55rem)/1.1 var(--mono);color:#ffe7b5;text-shadow:0 2px 8px rgba(0,0,0,.6)}
.estandartes-w span{display:block;margin-top:5px;font:700 .62rem/1.25 var(--sans);letter-spacing:.14em;text-transform:uppercase;color:#e9d8b8}
@keyframes mece-w{50%{transform:rotate(.6deg)}}

/* rasgos (portada.md): cada uno con su ícono del juego */
.rasgos-grid a{position:relative;padding-left:74px!important}
.rasgos-grid a::before{content:"";position:absolute;left:14px;top:16px;width:46px;height:46px;background:center/contain no-repeat;filter:drop-shadow(0 3px 5px rgba(0,0,0,.6))}
.rasgos-grid a:nth-child(1)::before{background-image:url(/img/mm/kind_16.webp)}
.rasgos-grid a:nth-child(2)::before{background-image:url(/img/arte/beneficio-offattack.webp)}
.rasgos-grid a:nth-child(3)::before{background-image:url(/img/arte/uso-mercado.webp)}
.rasgos-grid a:nth-child(4)::before{background-image:url(/img/arte/uso-xshop.webp)}
.rasgos-grid a:nth-child(5)::before{background-image:url(/img/mm/portalfull.webp)}
.rasgos-grid a:nth-child(6)::before{background-image:url(/img/mm/kind_25.webp)}

/* selección de clase (igual que en 99bforever.online) */
.hs-fila{display:flex;gap:6px;height:min(58vh,480px);min-height:360px}
.hs-carta{position:relative;flex:1 1 0;min-width:0;overflow:hidden;text-decoration:none;color:inherit;border:1px solid var(--line);background:#060606;transition:flex-grow .55s cubic-bezier(.2,.8,.2,1),border-color .3s,box-shadow .3s}
.hs-carta img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:50% 15%;filter:grayscale(.5) brightness(.6) contrast(1.05);transition:filter .5s,transform .8s}
.hs-carta::before{content:"";position:absolute;inset:0;z-index:1;background:linear-gradient(180deg,transparent 35%,rgba(6,6,7,.95) 92%)}
.hs-carta::after{content:"";position:absolute;left:0;right:0;bottom:0;height:3px;z-index:2;background:var(--cc);transform:scaleX(0);transform-origin:left;transition:transform .5s}
.hs-txt{position:absolute;z-index:2;left:0;right:0;bottom:0;padding:16px 14px;display:grid;gap:3px}
.hs-txt small{font:700 .64rem/1 var(--sans);letter-spacing:.2em;text-transform:uppercase;color:var(--cc)}
.hs-txt b{font:700 clamp(1rem,1.7vw,1.45rem)/1.05 var(--display);color:var(--text);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hs-txt em{font:italic 500 .9rem var(--sans);color:var(--muted)}
.hs-carta:hover,.hs-carta:focus-visible{flex-grow:2.4;border-color:var(--cc);box-shadow:0 0 0 1px var(--cc),0 18px 48px rgba(0,0,0,.6);outline:none}
.hs-carta:hover img,.hs-carta:focus-visible img{filter:none;transform:scale(1.04)}
.hs-carta:hover::after,.hs-carta:focus-visible::after{transform:scaleX(1)}

/* el camino de los primeros pasos */
.camino-p{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0;position:relative}
.camino-p::before{content:"";position:absolute;left:4%;right:4%;top:27px;height:2px;background:linear-gradient(90deg,var(--gold-lo),var(--gold-hi),var(--gold-lo))}
.camino-p li{position:relative}
.camino-p a{display:flex;flex-direction:column;align-items:center;text-align:center;gap:12px;padding:0 12px 6px;text-decoration:none;color:inherit}
.cp-paso{position:relative;z-index:1;width:56px;height:56px;display:grid;place-items:center;font:700 1.4rem var(--display);color:#0b0a09;
  background:linear-gradient(180deg,var(--gold-hi),var(--gold) 60%,var(--gold-lo));clip-path:polygon(50% 0,100% 50%,50% 100%,0 50%);transition:transform .3s,filter .3s}
.camino-p a:hover .cp-paso{transform:scale(1.12);filter:drop-shadow(0 0 10px rgba(241,212,149,.6))}
.cp-txt b{display:block;font:700 1.02rem/1.2 var(--display);color:var(--gold-hi)}
.cp-txt small{display:block;margin-top:6px;color:var(--muted);font-size:.86rem;line-height:1.4}

/* portales a cada sección */
.portales{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px}
.portal{position:relative;display:flex;flex-direction:column;text-decoration:none;color:inherit;background:linear-gradient(180deg,#141210,#0b0a09);border:1px solid var(--line);overflow:hidden;transition:border-color .25s,transform .25s,box-shadow .25s}
.portal:hover{border-color:var(--gold-hi);transform:translateY(-3px);box-shadow:0 14px 30px rgba(0,0,0,.55),0 0 22px rgba(201,162,92,.12)}
.pt-arte{position:relative;display:grid;place-items:center;aspect-ratio:4/3;background:radial-gradient(70% 70% at 50% 45%,rgba(201,162,92,.16),transparent 70%),#070707;border-bottom:1px solid var(--line);overflow:hidden}
.pt-arte img{max-width:76%;max-height:80%;object-fit:contain;filter:drop-shadow(0 8px 10px rgba(0,0,0,.6));transition:transform .5s}
.p-foto .pt-arte img{max-width:none;max-height:none;width:100%;height:100%;object-fit:cover;filter:brightness(.85)}
.p-med .pt-arte img{max-width:72%;max-height:86%}
.portal:hover .pt-arte img{transform:scale(1.08)}
.pt-txt{padding:10px 12px 12px}
.pt-txt b{display:block;font:700 1rem var(--display);color:var(--gold-hi)}
.pt-txt small{display:block;margin-top:3px;font:600 .76rem var(--mono);color:var(--muted)}

@media (max-width:1000px){
  .estandartes-w{grid-template-columns:repeat(3,minmax(0,1fr))}
  .portales{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media (max-width:720px){
  .estandartes-w{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .hs-fila{height:auto;min-height:0;overflow-x:auto;scroll-snap-type:x mandatory;gap:8px;padding-bottom:4px;margin-inline:-16px;padding-inline:16px;scrollbar-width:none}
  .hs-fila::-webkit-scrollbar{display:none}
  .hs-carta{flex:0 0 66%;aspect-ratio:3/4;scroll-snap-align:center}
  .hs-carta img{filter:none}
  .hs-carta:hover,.hs-carta:focus-visible{flex-grow:0}
  .camino-p{grid-template-columns:1fr;gap:4px}
  .camino-p::before{left:27px;right:auto;top:20px;bottom:20px;width:2px;height:auto;background:linear-gradient(180deg,var(--gold-lo),var(--gold-hi),var(--gold-lo))}
  .camino-p a{flex-direction:row;align-items:center;text-align:left;padding:6px 0}
  .portales{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (prefers-reduced-motion:reduce){
  .hm-fondo img,.estandartes-w li{animation:none}
}
/* el héroe no se ensancha por el texto del buscador */
.hero-mundo .hero-in{grid-template-columns:minmax(0,auto) minmax(0,1fr)}
.hero-mundo .hero-txt,.hero-mundo .hero-buscar{min-width:0;max-width:100%}
.hero-mundo .hero-buscar span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
@media (max-width:720px){
  .hero-mundo .hero-in{grid-template-columns:minmax(0,1fr)}
  .hero-mundo h1{font-size:clamp(1.5rem,7vw,2rem);overflow-wrap:break-word}
}
