/* v12.41: the language pill sits inside the gold frame, and twelve heroes share the title screen. */

/* The menu frame is #mainmenu::before { inset: 20px } plus a 4px outer and inner shadow.
   The pill used to sit at top 18 / right 22, across that line. It now lives in the clear
   interior, with the same two equal cells in both languages. */
.mm-lang{top:52px;right:56px;z-index:6}
.langtog{display:inline-grid;grid-template-columns:1fr 1fr;width:208px;height:36px;align-items:stretch}
.langtog .langopt,
html.lang-es .langtog .langopt{
  min-width:0 !important;width:100% !important;height:100%;margin:0;padding:0 8px;
  display:flex;align-items:center;justify-content:center;
  font-size:13px;line-height:1;letter-spacing:.04em;font-weight:600;white-space:nowrap;
  box-sizing:border-box;
}
.langopt.on{font-weight:700}
@media (max-width:900px){
  .mm-lang{top:40px;right:40px}
  .langtog{width:188px;height:34px}
}
@media (max-width:640px){
  .mm-lang{top:36px;right:36px}
  .langtog{width:168px;height:32px}
  .langtog .langopt,html.lang-es .langtog .langopt{font-size:12px;padding:0 4px}
}

/* Twelve hero cards: four across, tall enough to read, and the page scrolls instead of clipping. */
#title{overflow:auto;justify-content:flex-start}
#title .heroes{
  display:grid;grid-template-columns:repeat(4,minmax(0,248px));
  gap:8px 12px;width:min(1064px,94vw);margin:0 auto 6px;
}
#title .hcard{min-width:0;padding:6px 8px 8px}
#title .hcard .hport{height:118px}
#title .hcard .hname{font-size:16px;margin-top:4px;line-height:1.1}
#title .hcard .htitle{font-size:12px;line-height:1.15;min-height:1.15em}
#title .hcard .hdesc{font-size:12px;line-height:1.2;min-height:2.4em}
#title .hcard .hpow{min-height:24px}
#title .rv-row{flex-wrap:wrap;justify-content:flex-start;gap:6px}
#title .dk-row{grid-template-columns:repeat(3,minmax(0,1fr))}
#title .pl-nav{margin:8px 0 18px}

html.adapt #title .heroes{
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:min(720px,96vw);
}
html.adapt #title .hcard .hport{height:150px}
html.adapt #title .dk-row{grid-template-columns:1fr 1fr}
@media (max-width:720px){
  #title .heroes{grid-template-columns:repeat(2,minmax(0,1fr));width:min(560px,96vw)}
  #title .hcard .hport{height:160px}
}
