:root {
  color-scheme: light;
  --games-bg: #f7f6fb;
  --games-ink: #24212d;
  --games-muted: #6f6a7c;
  --games-line: rgba(64, 55, 87, .13);
  --games-shadow: 0 14px 42px rgba(36, 30, 58, .105);
}

[data-theme="dark"] {
  color-scheme: dark;
  --games-bg: #121019;
  --games-ink: #f4f0ff;
  --games-muted: #bcb4d1;
  --games-line: rgba(225, 216, 255, .14);
  --games-shadow: 0 22px 58px rgba(0, 0, 0, .34);
}

body.games-page {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 18% 10%, rgba(124,58,237,.10), transparent 30rem),
    radial-gradient(circle at 92% 28%, rgba(20,184,166,.08), transparent 28rem),
    var(--games-bg);
  color: var(--games-ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.games-main {
  width: min(960px, calc(100% - 40px));
  margin: 0 auto;
  padding: 42px 0 46px;
}

.games-hero {
  padding: 10px 0 22px;
  border-bottom: 1px solid var(--games-line);
  margin-bottom: 24px;
}

.games-hero-copy {
  max-width: 680px;
}


.games-title {
  margin: 0;
  color: var(--games-ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(42px, 5.6vw, 58px);
  line-height: .92;
  letter-spacing: -.05em;
}

.games-intro {
  max-width: 680px;
  margin: 12px 0 0;
  color: var(--games-muted);
  font-size: 16px;
  line-height: 1.58;
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.game-card {
  text-decoration: none;
  color: inherit;
}

.game-card-premium {
  --accent-a: #7c3aed;
  --accent-b: #5b47d6;
  position: relative;
  isolation: isolate;
  display: flex;
  min-height: 154px;
  padding: 20px;
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,.30);
  background: linear-gradient(135deg, color-mix(in oklab, var(--accent-a) 92%, white 4%), var(--accent-b));
  box-shadow: var(--games-shadow);
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.game-card-premium::before {
  content: "";
  position: absolute;
  inset: 1px;
  z-index: -1;
  border-radius: 21px;
  background:
    radial-gradient(circle at 14% 12%, rgba(255,255,255,.22), transparent 15rem),
    radial-gradient(circle at 88% 86%, rgba(255,255,255,.14), transparent 13rem);
}

/* La línea editorial se corta antes del CTA: no debe pasar por debajo de “Jugar”. */
.game-card-premium::after {
  content: "";
  position: absolute;
  left: 20px;
  right: 116px;
  bottom: 46px;
  height: 1px;
  background: rgba(255,255,255,.22);
  opacity: .72;
}

.game-card-featured {
  grid-column: span 2;
  min-height: 174px;
}

.game-card-premium:hover {
  transform: translateY(-2px);
  filter: saturate(1.03);
  box-shadow: 0 18px 54px rgba(36, 30, 58, .15);
}

.game-card-body {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
}

.game-category {
  display: inline-flex;
  color: rgba(255,255,255,.86);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.game-card-premium h2 {
  margin: 15px 0 6px;
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(27px, 3.1vw, 35px);
  line-height: .96;
  letter-spacing: -.04em;
  text-wrap: balance;
}

.game-card-featured h2 {
  font-size: clamp(31px, 4vw, 40px);
}

.game-card-premium p {
  max-width: 480px;
  margin: 0;
  color: rgba(255,255,255,.84);
  font-size: 13px;
  line-height: 1.42;
}

.game-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin-top: auto;
  padding-top: 22px;
  padding-right: 112px;
  color: rgba(255,255,255,.76);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .01em;
}

.game-meta {
  display: inline;
  min-height: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  font: inherit;
}

.game-meta + .game-meta::before {
  content: "·";
  margin: 0 7px;
  color: rgba(255,255,255,.54);
}

.game-progress[hidden] {
  display: none !important;
}

.game-progress {
  display: block;
  margin-top: 8px;
  padding: 0;
  background: transparent;
  color: rgba(255,255,255,.88);
  box-shadow: none;
  font-size: 11px;
  font-weight: 900;
}

.game-side {
  position: absolute;
  right: 18px;
  bottom: 31px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.game-arrow {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 30px;
  padding: 0 11px;
  border-radius: 999px;
  background: rgba(255,255,255,.92);
  color: color-mix(in oklab, var(--accent-b) 82%, #111);
  font-size: 12px;
  font-weight: 900;
  box-shadow: 0 8px 22px rgba(0,0,0,.10);
  transition: transform .18s ease;
}

.game-card-premium:hover .game-arrow {
  transform: translateX(1px);
}

.game-orb {
  display: none !important;
}

.game-clave {
  --accent-a: #7c3aed;
  --accent-b: #5b45d9;
}

.game-ruta {
  --accent-a: #0fafa1;
  --accent-b: #087d79;
}

.game-areas {
  --accent-a: #7a9a21;
  --accent-b: #527017;
}

.game-puentes {
  --accent-a: #2479a8;
  --accent-b: #185f8a;
}

.game-bloques {
  --accent-a: #c27720;
  --accent-b: #995317;
}

.games-footer {
  width: min(960px, calc(100% - 40px));
  margin: 22px auto 0;
  padding: 20px 0 34px;
  border-top: 1px solid var(--games-line);
  color: var(--games-muted);
  text-align: center;
  font-size: 12px;
}

.games-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 18px;
  margin: 0 0 10px;
}

.games-footer a {
  color: color-mix(in oklab, var(--games-muted) 88%, var(--games-ink));
  text-decoration: none;
}

.games-footer a:hover {
  color: var(--games-ink);
}

.games-footer-legal {
  opacity: .78;
}

.games-footer p {
  margin: 0;
  opacity: .76;
}

@media (max-width: 760px) {
  .games-main {
    width: min(100% - 28px, 960px);
    padding-top: 32px;
    padding-bottom: 38px;
  }

  .games-hero {
    margin-bottom: 18px;
  }

  .games-title {
    font-size: 43px;
  }

  .games-intro {
    font-size: 15px;
  }

  .games-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .game-card-featured {
    grid-column: span 1;
  }

  .game-card-featured,
  .game-card-premium {
    min-height: 158px;
    padding: 18px;
    border-radius: 20px;
  }

  .game-card-premium::before {
    border-radius: 19px;
  }

  .game-card-premium::after {
    left: 18px;
    right: 104px;
    bottom: 44px;
  }

  .game-card-premium h2,
  .game-card-featured h2 {
    margin-top: 13px;
    font-size: 30px;
  }

  .game-card-premium p {
    font-size: 12.5px;
  }

  .game-side {
    right: 16px;
    bottom: 29px;
  }

  .game-meta-row {
    padding-right: 96px;
    padding-top: 20px;
  }

  .games-footer {
    width: min(100% - 28px, 960px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .game-card-premium,
  .game-arrow {
    transition: none;
  }

  .game-card-premium:hover,
  .game-card-premium:hover .game-arrow {
    transform: none;
  }
}

/* Final system alignment — menu support, visible kicker, bottom support CTA */



/* Use the canonical menu, but give the support CTA enough room on this page. */




.games-support {
  margin: 26px 0 0;
}

.games-support-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  min-height: 78px;
  padding: 16px 20px;
  border-radius: 22px;
  text-decoration: none;
  color: #fff;
  background:
    radial-gradient(circle at 18% 20%, rgba(255,255,255,.12), transparent 16rem),
    linear-gradient(135deg, #302742, #4d3b73);
  box-shadow: 0 18px 52px rgba(36, 30, 58, .14);
}

.games-support-logo {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 16px;
  background: rgba(255,255,255,.12);
}

.games-support-logo svg {
  width: 31px;
  height: 31px;
}

.games-support-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.games-support-copy strong {
  font-size: 16px;
  line-height: 1.15;
  font-weight: 900;
}

.games-support-copy em {
  color: rgba(255,255,255,.76);
  font-size: 13px;
  line-height: 1.25;
  font-style: normal;
}

.games-support-arrow {
  color: rgba(255,255,255,.76);
  font-size: 18px;
  font-weight: 900;
}

.games-support-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 22px 60px rgba(36, 30, 58, .18);
}

.games-support-card {
  transition: transform .18s ease, box-shadow .18s ease;
}

@media (max-width: 760px) {

  .games-support {
    margin-top: 20px;
  }

  .games-support-card {
    min-height: 72px;
    padding: 14px 16px;
    border-radius: 20px;
  }

  .games-support-copy strong {
    font-size: 15px;
  }

  .games-support-copy em {
    font-size: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .games-support-card {
    transition: none;
  }

  .games-support-card:hover {
    transform: none;
  }
}


/* P0 typography fix — prevent Juegos title clipping */
.games-hero,
.games-hero-copy {
  overflow: visible;
}

.games-hero {
  padding-top: 18px;
}

.games-title {
  line-height: 1.06;
  padding-top: .04em;
  padding-bottom: .03em;
  overflow: visible;
}

@media (max-width: 760px) {
  .games-title {
    line-height: 1.07;
    padding-top: .05em;
  }
}


/* Restored editorial kicker — visible, compact, non-clipping */


.games-title {
  line-height: 1.06;
  padding-top: .04em;
  padding-bottom: .03em;
}

@media (max-width: 760px) {
}

.games-hero {
  padding-top: 24px;
}



.games-title {
  line-height: 1.06;
  padding-top: .03em;
  padding-bottom: .02em;
}

@media (max-width: 760px) {
  .games-hero {
    padding-top: 20px;
  }
}


/* Final vertical rhythm fix — give hero proper air below sticky header */
.games-main {
  padding-top: 72px;
}

.games-hero {
  padding-top: 0;
}


@media (max-width: 760px) {
  .games-main {
    padding-top: 86px;
  }

  .games-title {
    font-size: clamp(36px, 10.5vw, 40px);
    line-height: 1.08;
    letter-spacing: -.035em;
  }
}
