
/* REF21: only new layout/language/featured-games/mobile rules */
.language-switcher{position:relative;margin-left:14px;z-index:1000}
.language-current{background:#111;color:#fff;border:1px solid rgba(255,48,48,.7);border-radius:8px;padding:8px 12px;font-weight:800;letter-spacing:.08em;cursor:pointer}
.language-menu{display:none;position:absolute;right:0;top:calc(100% + 7px);min-width:132px;background:#090909;border:1px solid rgba(255,48,48,.55);border-radius:10px;padding:6px;box-shadow:0 14px 35px rgba(0,0,0,.5)}
.language-switcher.open .language-menu{display:grid}
.language-menu button{border:0;background:transparent;color:#ddd;text-align:left;padding:9px 10px;border-radius:7px;cursor:pointer;font-weight:700}
.language-menu button:hover{background:#210606;color:#fff}
.featured-games-section{overflow:hidden}
.featured-games-carousel{overflow:hidden;width:100%;position:relative;padding:8px 0 18px;mask-image:linear-gradient(to right,transparent 0,#000 4%,#000 96%,transparent 100%)}
.featured-games-track{display:flex;gap:18px;width:max-content;will-change:transform}
.featured-game-card{width:clamp(170px,19vw,245px);flex:0 0 auto;background:#0b0b0b;border:1px solid rgba(255,48,48,.28);border-radius:14px;overflow:hidden;box-shadow:0 10px 28px rgba(0,0,0,.35)}
.featured-game-card img{display:block;width:100%;aspect-ratio:2/3;object-fit:cover;background:#141414}
.featured-game-caption{padding:10px 11px;font-size:12px;font-weight:800;letter-spacing:.06em;color:#eee;text-align:center}
.featured-games-note{text-align:center;color:#888;font-size:12px;margin-top:2px}.featured-games-note strong{color:#ddd}
/* Prevent the language control from changing the header geometry on mobile. */
@media(max-width:900px){.language-switcher{margin-left:8px}.navigation{gap:10px}.language-current{padding:7px 9px}.featured-game-card{width:165px}}
@media(max-width:600px){.featured-games-carousel{margin-left:-8px;width:calc(100% + 16px)}.featured-game-card{width:145px}.featured-games-track{gap:12px}.language-menu{right:0}}

/* REF22: language selector aligned to the right side of the header */
.header{position:fixed!important;}
.header .header-content{position:relative!important;}
.header .language-switcher{
  position:absolute!important;
  right:0!important;
  top:50%!important;
  transform:translateY(-50%)!important;
  margin-left:0!important;
  z-index:1001!important;
}
.header .language-current{min-width:48px;text-align:center;}
.header .language-menu{right:0;left:auto;}
@media(max-width:900px){
  .header .language-switcher{right:0!important;}
  .header .header-content{padding-right:62px!important;box-sizing:border-box;}
}
@media(max-width:700px){
  .header .language-switcher{right:0!important;}
  .header .language-current{padding:7px 10px;}
}

/* Privacy header uses the same right-aligned selector. */
.privacy-header{position:fixed!important;}
.privacy-header .language-switcher{
  position:absolute!important;
  right:24px!important;
  top:50%!important;
  transform:translateY(-50%)!important;
  margin-left:0!important;
}
@media(max-width:700px){.privacy-header .language-switcher{right:14px!important;}}

/* REF22: featured games must appear before the console compatibility section. */
.featured-games-section{position:relative;}

/* REF25 - Juegos Destacados estilo catálogo premium / etiqueta de versión */
.featured-games-track{align-items:stretch;}
.featured-game-card{
  position:relative;
  width:clamp(180px,19vw,245px);
  background:#0b0b0b;
  border:1px solid rgba(255,48,48,.32);
  border-radius:14px;
  overflow:hidden;
  box-shadow:0 10px 28px rgba(0,0,0,.35);
}
.featured-game-media{
  position:relative;
  width:100%;
  aspect-ratio:2/3;
  overflow:hidden;
  background:linear-gradient(145deg,#151515,#070707);
}
.featured-game-media img{
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
  background:#111;
}
.featured-game-badge{
  position:absolute;
  left:9px;
  top:9px;
  z-index:2;
  display:inline-flex;
  align-items:center;
  min-height:26px;
  padding:5px 9px;
  border:1px solid rgba(255,255,255,.16);
  border-radius:6px;
  background:rgba(180,0,0,.92);
  color:#fff;
  font-size:10px;
  line-height:1;
  font-weight:900;
  letter-spacing:.055em;
  text-transform:uppercase;
  box-shadow:0 5px 16px rgba(0,0,0,.45);
}
.featured-game-caption{
  min-height:64px;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:11px 12px 12px;
  color:#f2f2f2;
  font-size:13px;
  line-height:1.3;
  font-weight:800;
  letter-spacing:.01em;
  text-align:center;
  overflow-wrap:anywhere;
}
.featured-game-card:hover{
  border-color:rgba(255,48,48,.72);
  transform:translateY(-2px);
  transition:transform .2s ease,border-color .2s ease;
}
@media(max-width:900px){
  .featured-game-card{width:165px;}
  .featured-game-caption{font-size:12px;min-height:62px;padding:9px 9px 10px;}
  .featured-game-badge{left:7px;top:7px;font-size:9px;padding:5px 7px;}
}
@media(max-width:600px){
  .featured-game-card{width:150px;border-radius:10px;}
  .featured-games-track{gap:12px;}
  .featured-game-caption{font-size:11px;min-height:60px;}
  .featured-game-badge{font-size:8px;letter-spacing:.035em;}
}


/* REF26 - Juegos Destacados: tarjetas más grandes + navegación manual */
.featured-games-carousel-wrap{
  position:relative;
  width:100%;
  display:flex;
  align-items:center;
}
.featured-games-carousel-wrap .featured-games-carousel{
  flex:1 1 auto;
  min-width:0;
  padding-left:44px;
  padding-right:44px;
}
.featured-games-track{
  gap:22px;
}
.featured-game-card{
  width:clamp(245px,23vw,305px);
}
.featured-games-nav{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  z-index:20;
  width:42px;
  height:42px;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:0;
  border:1px solid rgba(255,48,48,.72);
  border-radius:50%;
  background:rgba(8,8,8,.94);
  color:#fff;
  font-size:30px;
  line-height:1;
  cursor:pointer;
  box-shadow:0 8px 22px rgba(0,0,0,.45);
  transition:background .2s ease, transform .2s ease, border-color .2s ease;
}
.featured-games-nav:hover{
  background:#b40000;
  border-color:#ff3030;
  transform:translateY(-50%) scale(1.06);
}
.featured-games-prev{left:0;}
.featured-games-next{right:0;}
@media(max-width:900px){
  .featured-games-carousel-wrap .featured-games-carousel{padding-left:38px;padding-right:38px;}
  .featured-game-card{width:205px;}
  .featured-games-track{gap:16px;}
  .featured-games-nav{width:38px;height:38px;font-size:27px;}
}
@media(max-width:600px){
  .featured-games-carousel-wrap .featured-games-carousel{padding-left:34px;padding-right:34px;}
  .featured-game-card{width:195px;border-radius:11px;}
  .featured-games-track{gap:13px;}
  .featured-games-nav{width:34px;height:34px;font-size:24px;}
}

/* REF31: juegos destacados un poco más grandes */
.featured-game-card{width:clamp(190px,21vw,265px)!important;}
@media(max-width:900px){.featured-game-card{width:180px!important;}}
@media(max-width:600px){.featured-game-card{width:158px!important;}}
