/* Ficha de juego — refinamiento PC alineado con el catálogo editorial. */
:root {
  --game-v2-bg: #080b11;
  --game-v2-panel: #10161f;
  --game-v2-panel-hi: #151d28;
  --game-v2-line: rgba(255, 255, 255, .09);
  --game-v2-cyan: #00d4ff;
  --game-v2-green: #5eff9f;
  --game-v2-violet: #b794ff;
  --game-v2-amber: #ffb020;
  --game-v2-red: #ff6b6b;
  --game-v2-ease: cubic-bezier(.2, .8, .2, 1);
}

body { background: var(--game-v2-bg); }

.juego-goty-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 42px;
  padding: 0 13px;
  border: 1px solid rgba(246, 200, 95, .48);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(246, 200, 95, .18), rgba(95, 65, 8, .1));
  color: #f6c85f;
  font: 800 10px/1 'Barlow', sans-serif;
  letter-spacing: .075em;
  text-transform: uppercase;
  box-shadow: inset 0 1px rgba(255, 255, 255, .08), 0 0 24px rgba(246, 200, 95, .08);
}

.juego-goty-badge svg { width: 17px; height: 17px; }
.juego-tier-desc { display: block; color: rgba(236, 242, 248, .62); font: 500 10px/1.25 'Barlow', sans-serif; }

@media (min-width: 1024px) {
  .juego-main {
    max-width: 1560px;
    margin-inline: auto;
    padding: 24px clamp(18px, 2.4vw, 42px) 96px;
  }

  .juego-hero {
    min-height: min(690px, calc(100vh - 48px)) !important;
    margin: 0 !important;
    padding: 82px clamp(34px, 5vw, 78px) 42px !important;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 22px;
    box-shadow: 0 34px 90px rgba(0, 0, 0, .36);
  }

  .juego-hero-bg {
    background-position: center 26% !important;
    filter: saturate(.92) contrast(1.04) !important;
    transform: scale(1.02) !important;
  }

  .juego-hero-bg-grad {
    background:
      linear-gradient(90deg, rgba(5, 8, 13, .96) 0%, rgba(5, 8, 13, .79) 38%, rgba(5, 8, 13, .2) 72%),
      linear-gradient(0deg, #080b11 0%, rgba(8, 11, 17, .42) 40%, rgba(8, 11, 17, .18) 100%) !important;
  }

  .juego-breadcrumb {
    top: 26px !important;
    left: clamp(34px, 5vw, 78px) !important;
    color: rgba(255, 255, 255, .62) !important;
    font-size: 11px !important;
  }

  .juego-hero-grid {
    max-width: 1160px !important;
    min-height: 410px;
    margin: 40px 0 0 !important;
    padding-bottom: 92px;
    align-items: end !important;
    gap: 30px !important;
  }

  .juego-hero-portada {
    width: 205px !important;
    border: 1px solid rgba(255, 255, 255, .18) !important;
    border-radius: 13px !important;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .5) !important;
  }

  .juego-hero-info { max-width: 820px; }

  .juego-hero-plataformas { margin-bottom: 14px !important; }
  .juego-plataforma {
    min-height: 27px !important;
    padding: 0 9px !important;
    border: 1px solid rgba(255, 255, 255, .16) !important;
    border-radius: 6px !important;
    background: rgba(8, 12, 18, .54) !important;
    backdrop-filter: blur(10px);
    font: 700 9px/1 'Barlow', sans-serif !important;
    letter-spacing: .05em;
  }

  .juego-hero-titulo {
    max-width: 950px;
    margin: 0 0 12px !important;
    color: #fff !important;
    font: 400 clamp(58px, 6vw, 96px)/.86 'Bebas Neue', sans-serif !important;
    letter-spacing: .015em !important;
    text-wrap: balance;
    text-shadow: 0 12px 40px rgba(0, 0, 0, .42);
  }

  .juego-hero-sinopsis {
    max-width: 720px !important;
    color: #c4ced9 !important;
    font: 500 16px/1.58 'Barlow', sans-serif !important;
  }

  .juego-hero-badges { gap: 8px !important; margin-top: 20px !important; }
  .juego-estado-badge,
  .juego-day-one-badge,
  .juego-hero-recordar {
    min-height: 42px !important;
    border-radius: 8px !important;
  }

  .juego-hero-score-float {
    position: absolute !important;
    right: clamp(34px, 4vw, 70px) !important;
    bottom: 116px !important;
    width: 120px !important;
    height: 120px !important;
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(0, 212, 255, .32) !important;
    border-radius: 50% !important;
    background: rgba(8, 12, 18, .72) !important;
    box-shadow: 0 0 0 7px rgba(0, 212, 255, .05), 0 18px 50px rgba(0, 0, 0, .35) !important;
    backdrop-filter: blur(15px);
  }

  .juego-hero-score-num { font-size: 42px !important; }
  .juego-hero-score-label { margin-top: 0 !important; }

  .juego-hero-stats {
    max-width: none !important;
    position: absolute;
    left: clamp(34px, 5vw, 78px);
    right: clamp(34px, 5vw, 78px);
    bottom: 28px;
    display: flex !important;
    margin: 0 !important;
    padding: 12px 0 !important;
    border: 1px solid rgba(255, 255, 255, .11) !important;
    border-radius: 12px !important;
    background: rgba(8, 12, 18, .68) !important;
    backdrop-filter: blur(16px);
  }

  .juego-hero-stat {
    min-width: 150px;
    padding: 4px 20px !important;
    border-left: 1px solid rgba(255, 255, 255, .08);
  }
  .juego-hero-stat:first-child { border-left: 0; }

  .juego-tracking-zona,
  .juego-tiers,
  .juego-precio-zona,
  .juego-layout {
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .juego-tracking-zona { margin-top: 18px !important; }
  .juego-tracking-grid { grid-template-columns: minmax(0, 1.18fr) minmax(360px, .82fr) !important; gap: 14px !important; }

  .juego-tracking-card {
    border: 1px solid var(--game-v2-line) !important;
    border-radius: 14px !important;
    background: linear-gradient(145deg, rgba(20, 27, 38, .96), rgba(13, 18, 26, .98)) !important;
    box-shadow: 0 12px 34px rgba(0, 0, 0, .14);
  }

  .juego-tracking-eyebrow,
  .juego-tiers-h,
  .juego-precio-card-eyebrow {
    color: #718093 !important;
    font: 800 10px/1 'Barlow', sans-serif !important;
    letter-spacing: .12em !important;
    text-transform: uppercase;
  }

  .juego-tracking-buttons { gap: 8px !important; }
  .juego-tk-btn {
    min-height: 48px !important;
    border-radius: 8px !important;
    background: #0e141d !important;
    font-size: 12px !important;
    transition: transform .2s var(--game-v2-ease), border-color .2s, background .2s !important;
  }
  .juego-tk-btn:hover { transform: translateY(-2px); }
  .juego-tk-btn.is-active { box-shadow: inset 0 0 0 1px currentColor, 0 8px 22px rgba(0, 0, 0, .16) !important; }

  .juego-tracking-stats { gap: 0 !important; }
  .juego-tk-stat { padding: 2px 18px !important; border-left: 1px solid var(--game-v2-line); }
  .juego-tk-stat:first-child { padding-left: 0 !important; border-left: 0; }
  .juego-tk-stat-num { color: #fff !important; font: 400 31px/1 'Bebas Neue', sans-serif !important; }
  .juego-tk-stat-label { color: #7d8b9b !important; }

  .juego-tiers {
    margin-top: 14px !important;
    padding: 20px !important;
    border: 1px solid var(--game-v2-line) !important;
    border-radius: 14px !important;
    background: #0d121a !important;
  }
  .juego-tiers-h { margin-bottom: 13px !important; }
  .juego-tiers-grid { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; gap: 9px !important; }
  .juego-tier {
    min-height: 86px !important;
    display: grid !important;
    grid-template-columns: auto 1fr !important;
    grid-template-rows: auto auto !important;
    align-content: center;
    column-gap: 10px;
    padding: 14px !important;
    border: 1px solid color-mix(in srgb, var(--tier-color) 35%, transparent) !important;
    border-radius: 10px !important;
    background: linear-gradient(145deg, color-mix(in srgb, var(--tier-color) 11%, #111722), #0f151e) !important;
    box-shadow: none !important;
  }
  .juego-tier[data-tier="essential"] { --tier-color: #a9b4c1; }
  .juego-tier[data-tier="premium"] { --tier-color: var(--game-v2-violet); }
  .juego-tier[data-tier="pc"] { --tier-color: var(--game-v2-amber); }
  .juego-tier[data-tier="ultimate"] { --tier-color: var(--game-v2-cyan); }
  .juego-tier-brand { grid-row: 1 / 3; align-self: center; color: var(--tier-color) !important; }
  .juego-tier-brand > span { display: none; }
  .juego-tier-label { align-self: end; color: #f0f4f8 !important; font: 700 14px/1.2 'Barlow', sans-serif !important; }
  .juego-tier-desc { align-self: start; margin-top: 3px; }
  .juego-tiers-nota { margin: 13px 0 0 !important; color: #718093 !important; font-size: 11px !important; }

  .juego-precio-zona { margin-top: 14px !important; }
  .juego-precio-grid { gap: 14px !important; }
  .juego-precio-card {
    min-height: 230px;
    border: 1px solid var(--game-v2-line) !important;
    border-radius: 14px !important;
    background: linear-gradient(145deg, #121925, #0d121a) !important;
    box-shadow: 0 12px 34px rgba(0, 0, 0, .13);
  }
  .juego-precio-card-title { color: #fff !important; font-size: 29px !important; }
  .juego-cta { min-height: 44px !important; border-radius: 8px !important; }

  .juego-layout { grid-template-columns: minmax(0, 1fr) 320px !important; gap: 18px !important; margin-top: 18px !important; }
  .juego-main-col { min-width: 0; }
  .juego-bloque,
  .juego-sb-card,
  .juego-cta-comunidad {
    border: 1px solid var(--game-v2-line) !important;
    border-radius: 14px !important;
    background: linear-gradient(160deg, #111822, #0d121a) !important;
    box-shadow: 0 12px 34px rgba(0, 0, 0, .1);
  }
  .juego-bloque { padding: clamp(22px, 2.5vw, 34px) !important; }
  .juego-bloque-title { color: #f4f7fb !important; font-size: 31px !important; letter-spacing: .04em !important; }
  .juego-bloque-title::after { content: ""; display: inline-block; width: 70px; height: 1px; margin: 0 0 7px 12px; background: linear-gradient(90deg, rgba(0, 212, 255, .4), transparent); }
  .juego-descripcion { max-width: 76ch; color: #b7c1cd !important; font-size: 16px !important; line-height: 1.7 !important; }

  .juego-trailer-wrap { border-radius: 12px !important; box-shadow: 0 18px 50px rgba(0, 0, 0, .28); }
  .juego-galeria { grid-template-columns: 1.5fr 1fr 1fr !important; gap: 10px !important; }
  .juego-galeria-item { border-radius: 10px !important; }
  .juego-galeria-item:first-child { grid-row: span 2; }

  .juego-sidebar { top: 18px !important; }
  .juego-sb-card { margin-bottom: 12px !important; }
  .juego-sb-title { color: #f0f4f8 !important; }

  .juego-resumen-reviews { border: 1px solid var(--game-v2-line) !important; border-radius: 12px !important; background: #0d131c !important; }
  .juego-resena { border-color: var(--game-v2-line) !important; background: #0d131c !important; }
  .juego-resena.is-mine { border-color: rgba(0, 212, 255, .32) !important; }
  .juego-resena-form { border: 1px solid rgba(0, 212, 255, .2) !important; border-radius: 12px !important; background: rgba(0, 212, 255, .035) !important; }

  :where(.juego-main a, .juego-main button, .juego-main input, .juego-main textarea, .juego-main summary):focus-visible {
    outline: 2px solid var(--game-v2-cyan) !important;
    outline-offset: 3px !important;
  }
}

@media (min-width: 1024px) and (max-width: 1279px) {
  .juego-hero-score-float { display: none !important; }
  .juego-tiers-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .juego-layout { grid-template-columns: minmax(0, 1fr) 280px !important; }
}

/* Data-aware sections shared by desktop and mobile. */
.juego-layout,
.juego-main-col,
.juego-bloque {
  min-width: 0;
}
.juego-main-col {
  width: 100%;
  max-width: 100%;
}
.juego-descripcion {
  overflow-wrap: anywhere;
}
.juego-tk-stat.is-zero { display: none !important; }
.juego-tracking-stats {
  grid-template-columns: repeat(auto-fit, minmax(92px, 1fr)) !important;
}
.juego-tracking-empty {
  max-width: 42ch;
  margin: 8px 0 0;
  color: #8c99a8;
  font: 500 13px/1.45 'Barlow', sans-serif;
}

.juego-media-zona,
.juego-veredicto-compacto {
  max-width: 1240px;
  margin: 18px auto 0;
}

.juego-media-zona {
  padding: 18px;
  border: 1px solid var(--game-v2-line);
  border-radius: 14px;
  background: linear-gradient(160deg, #111822, #0d121a);
}
.juego-media-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.juego-media-head h2 {
  margin: 0;
  color: #f4f7fb;
  font: 400 26px/1 'Bebas Neue', sans-serif;
}
.juego-media-head span {
  color: #778697;
  font: 700 10px/1 'Barlow', sans-serif;
  text-transform: uppercase;
}

.juego-trailer-deferred { margin-bottom: 12px; }
.juego-trailer-play {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: #080b11;
  color: #fff;
  cursor: pointer;
}
.juego-trailer-play::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 42%, rgba(5, 8, 13, .84));
}
.juego-trailer-play img { width: 100%; height: 100%; object-fit: cover; display: block; }
.juego-trailer-play-icon {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 50%;
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, .94);
  color: #071019;
  transform: translate(-50%, -50%);
  transition: transform .2s var(--game-v2-ease), background .2s;
}
.juego-trailer-play:hover .juego-trailer-play-icon { transform: translate(-50%, -50%) scale(1.07); background: var(--game-v2-cyan); }
.juego-trailer-play-label {
  position: absolute;
  z-index: 2;
  left: 16px;
  bottom: 14px;
  color: #fff;
  font: 750 12px/1 'Barlow', sans-serif;
}

.juego-galeria-item {
  appearance: none;
  width: 100%;
  padding: 0;
  cursor: zoom-in;
}

.juego-veredicto-compacto {
  min-height: 64px;
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border: 1px solid rgba(0, 212, 255, .24);
  border-radius: 12px;
  background: rgba(0, 212, 255, .055);
  color: #dce8f3;
  text-decoration: none;
}
.juego-veredicto-compacto > span { font: 750 13px/1.2 'Barlow', sans-serif; }
.juego-veredicto-compacto > strong { color: var(--game-v2-cyan); font: 400 30px/1 'Bebas Neue', sans-serif; }
.juego-veredicto-compacto > small { color: #8190a0; font: 600 11px/1 'Barlow', sans-serif; }

.juego-noticias-grid { grid-template-columns: 1fr !important; gap: 10px !important; }
.juego-noticia-card {
  min-width: 0;
  display: grid;
  grid-template-columns: 124px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 9px;
  border: 1px solid var(--game-v2-line);
  border-radius: 10px;
  background: #0d131c;
  color: #edf4fa;
  text-decoration: none;
  transition: border-color .2s, background .2s;
}
.juego-noticia-card:hover { border-color: rgba(0, 212, 255, .34); background: #111a25; }
.juego-noticia-media {
  aspect-ratio: 16 / 9;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 7px;
  background: linear-gradient(135deg, rgba(0, 212, 255, .16), #121b27);
  color: #718396;
}
.juego-noticia-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.juego-noticia-copy { min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.juego-noticia-copy strong { font: 700 14px/1.25 'Barlow', sans-serif; }
.juego-noticia-copy small { overflow: hidden; color: #8c99a8; font: 500 12px/1.35 'Barlow', sans-serif; white-space: nowrap; text-overflow: ellipsis; }
.juego-noticia-meta { display: flex; gap: 7px; color: var(--game-v2-cyan); font: 750 9px/1 'Barlow', sans-serif; text-transform: uppercase; }
.juego-noticia-meta time { color: #718093; }
.juego-noticia-arrow { color: #718093; }

.juego-lightbox[hidden] { display: none !important; }
.juego-lightbox {
  position: fixed;
  z-index: 10020;
  inset: 0;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 52px;
  align-items: center;
  gap: 12px;
  padding: 70px clamp(12px, 3vw, 44px) 30px;
  background: rgba(3, 5, 8, .94);
  backdrop-filter: blur(14px);
}
.juego-lightbox figure { min-width: 0; max-width: 1500px; margin: 0 auto; }
.juego-lightbox figure img { max-width: 100%; max-height: calc(100vh - 130px); width: auto; height: auto; display: block; margin: auto; border-radius: 8px; }
.juego-lightbox figcaption { min-height: 18px; margin-top: 9px; color: #98a6b5; font: 500 12px/1.3 'Barlow', sans-serif; text-align: center; }
.juego-lightbox button { border: 1px solid rgba(255,255,255,.16); background: rgba(14,20,29,.88); color: #fff; cursor: pointer; }
.juego-lightbox-close { position: absolute; top: 18px; right: 18px; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; }
.juego-lightbox-nav { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; }
.juego-lightbox-open { overflow: hidden; }

@media (min-width: 1024px) {
  .juego-hero { min-height: min(610px, calc(100vh - 48px)) !important; }
  .juego-media-zona,
  .juego-veredicto-compacto { max-width: none; margin-left: 0; margin-right: 0; }
  .juego-media-zona { padding: 20px; }
  .juego-tiers-grid { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)) !important; }
  .juego-precio-card { min-height: 0 !important; }
}

@media (max-width: 1023px) {
  .juego-media-zona,
  .juego-veredicto-compacto { margin-left: 16px; margin-right: 16px; }
  .juego-tiers { margin: 16px !important; padding: 14px !important; }
  .juego-tiers-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 8px !important; }
  .juego-tier {
    min-height: 68px !important;
    display: grid !important;
    grid-template-columns: auto minmax(0, 1fr) !important;
    grid-template-rows: auto auto !important;
    align-content: center;
    column-gap: 8px;
    padding: 10px !important;
  }
  .juego-tier-brand { grid-row: 1 / 3; align-self: center; }
  .juego-tier-brand > span { display: none; }
  .juego-tier-label { align-self: end; font: 700 13px/1.15 'Barlow', sans-serif !important; }
  .juego-tier-desc { align-self: start; margin-top: 2px; font-size: 9px; }
  .juego-tiers-nota { margin-top: 9px !important; padding: 8px 10px !important; }
  .juego-precio-card { min-height: 0 !important; }
}

@media (max-width: 600px) {
  .juego-layout {
    width: 100%;
    max-width: 100%;
    grid-template-columns: minmax(0, 1fr) !important;
  }
  .juego-main-col { width: 100%; max-width: 100%; }
  .juego-sb-dl {
    grid-template-columns: minmax(72px, 88px) minmax(0, 1fr) !important;
    column-gap: 10px !important;
  }
  .juego-sb-dl dd { min-width: 0; max-width: 100%; }
  .juego-sb-dl .juego-chip {
    max-width: 100% !important;
    white-space: normal !important;
    overflow-wrap: anywhere;
    text-align: left;
  }
  .juego-tracking-zona { margin-top: 14px; }
  .juego-tracking-card { padding: 14px !important; }
  .juego-tracking-comunidad { min-height: 0; }
  .juego-tracking-stats { gap: 8px !important; }
  .juego-tk-stat { min-height: 54px; padding: 8px !important; border: 1px solid var(--game-v2-line) !important; border-radius: 8px; }
  .juego-media-zona { padding: 14px; }
  .juego-media-head h2 { font-size: 23px; }
  .juego-trailer-play-icon { width: 52px; height: 52px; }
  .juego-galeria {
    display: flex !important;
    grid-template-columns: none !important;
    gap: 8px !important;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }
  .juego-galeria::-webkit-scrollbar { display: none; }
  .juego-galeria-item,
  .juego-galeria-item:first-child { flex: 0 0 78%; grid-row: auto; scroll-snap-align: start; }
  .juego-veredicto-compacto { grid-template-columns: 1fr auto auto; gap: 8px; }
  .juego-veredicto-compacto > small { grid-column: 1; grid-row: 2; }
  .juego-veredicto-compacto > svg { grid-column: 3; grid-row: 1 / 3; }
  .juego-noticia-card { grid-template-columns: 88px minmax(0, 1fr) auto; gap: 10px; padding: 7px; }
  .juego-noticia-copy strong { font-size: 12px; }
  .juego-noticia-copy small { display: none; }
  .juego-lightbox { grid-template-columns: 1fr; padding: 74px 10px 70px; }
  .juego-lightbox figure img { max-height: calc(100vh - 170px); }
  .juego-lightbox-nav { position: absolute; bottom: 14px; }
  .juego-lightbox-prev { left: calc(50% - 58px); }
  .juego-lightbox-next { right: calc(50% - 58px); }
}

@media (prefers-reduced-motion: reduce) {
  .juego-tk-btn,
  .juego-cta,
  .juego-galeria-item img,
  .juego-trailer-play-icon { transition: none !important; }
}
