/* =============================================================================
   MoonOrbit Arcade — Landing page. Unidades = px del lienzo 1920×1080.
   Importa variables de main.css. No usar vw/vh salvo min-height:100dvh shell.
   ============================================================================= */

/* ---------------------------------------------------------------------------
   Layout de secciones (scroll vertical dentro del stage)
   --------------------------------------------------------------------------- */

.landing-content {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* ---------------------------------------------------------------------------
   Sección Hero
   --------------------------------------------------------------------------- */

.hero-section {
  position: relative;
  overflow: hidden;
  min-height: 480px;
  display: block;
  border-bottom: 1px solid var(--line);
  padding: 0 80px;
}

#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 64px;
  padding: 56px 0;
}

.hero-logo {
  position: relative;
  width: 400px;
  aspect-ratio: 1;
}

.hero-logo-float {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero-logo-img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  border-radius: 22%;
}

.hero-logo-glow {
  position: absolute;
  inset: -12%;
  border-radius: 50%;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(circle, rgba(0, 240, 255, 0.28) 0%, rgba(123, 92, 255, 0.18) 40%, transparent 70%);
}

.hero-orbit {
  position: absolute;
  inset: -14%;
  z-index: 2;
  pointer-events: none;
  transform: rotate(-16deg) scaleY(0.32);
}

.hero-orbit-track {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(0, 240, 255, 0.35);
  box-shadow: 0 0 18px rgba(0, 240, 255, 0.25);
}

.hero-orbit-sat {
  position: absolute;
  top: -7px;
  left: 50%;
  width: 14px;
  height: 14px;
  margin-left: -7px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 12px 4px rgba(0, 240, 255, 0.8), 0 0 24px 8px rgba(255, 59, 212, 0.45);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 860px;
  padding: 0;
}

.hero-kicker {
  color: var(--cyan);
  font-family: var(--font-display);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-size: var(--type-body);
  margin: 0 0 18px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: 72px;
  line-height: 1.1;
  margin: 0 0 20px;
  letter-spacing: 0.03em;
}

.hero-title em {
  font-style: normal;
  background: linear-gradient(90deg, var(--cyan), var(--violet), var(--magenta));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-subtitle {
  font-size: var(--type-meta);
  color: var(--text-muted);
  margin: 0 0 36px;
  max-width: 55ch;
  line-height: 1.55;
}

.hero-cta-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}

/* ---------------------------------------------------------------------------
   Sección Evento mensual
   --------------------------------------------------------------------------- */

.event-section {
  padding: 56px 80px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(123, 92, 255, 0.08) 0%, transparent 60%);
}

.event-banner-wrap {
  position: relative;
  margin-bottom: 28px;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}

.event-banner {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 320px;
  object-fit: cover;
  object-position: center;
}

.event-banner-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(5, 6, 15, 0) 55%, rgba(5, 6, 15, 0.7));
}

.section-title {
  font-family: var(--font-display);
  font-size: var(--type-title);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0 0 6px;
}

.section-sub {
  color: var(--text-muted);
  font-size: var(--type-body);
  margin: 0 0 32px;
}

.event-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 32px;
}

.event-season {
  font-family: var(--font-display);
  font-size: var(--type-meta);
  color: var(--violet);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.countdown-wrap {
  display: flex;
  align-items: center;
  gap: 16px;
}

.countdown-label {
  color: var(--text-muted);
  font-size: var(--type-body);
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

.countdown-display {
  font-family: var(--font-display);
  font-size: var(--type-meta);
  letter-spacing: 0.12em;
  display: flex;
  gap: 4px;
}

.countdown-part {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  min-width: 52px;
}

.countdown-num {
  font-size: 30px;
  line-height: 1;
}

.countdown-unit {
  font-size: 13px;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  text-transform: uppercase;
}

.countdown-d .countdown-num { color: var(--cyan); }
.countdown-h .countdown-num { color: var(--violet); }
.countdown-m .countdown-num { color: var(--magenta); }
.countdown-s .countdown-num { color: var(--gold); }

.countdown-sep {
  font-size: 26px;
  line-height: 1.05;
  color: var(--line-strong);
  align-self: flex-start;
  padding-top: 2px;
}

.event-games-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 28px;
}

.event-game-card {
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-bottom: 16px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.event-game-card:hover {
  border-color: rgba(0, 240, 255, 0.4);
  box-shadow: 0 0 24px rgba(0, 240, 255, 0.08);
}

.event-game-preview {
  height: 160px;
  overflow: hidden;
  background: var(--bg-deep);
  position: relative;
}

.event-game-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: none;
  pointer-events: none;
}

.event-game-info {
  padding: 0 16px;
}

.event-game-name {
  font-family: var(--font-display);
  font-size: var(--type-body);
  letter-spacing: 0.06em;
  margin: 0 0 6px;
  color: var(--text);
}

.event-game-score {
  font-size: var(--type-body);
  color: var(--text-muted);
}

.event-game-score strong {
  color: var(--cyan);
}

.event-cta-row {
  display: flex;
  align-items: center;
  gap: 16px;
}

.event-medal-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: var(--type-body);
  color: var(--text-muted);
  padding: 6px 14px;
  border: 1px solid rgba(255, 209, 102, 0.3);
  border-radius: 999px;
  background: rgba(255, 209, 102, 0.06);
}

.event-medal-badge span {
  font-size: 22px;
}

.event-medal-badge img {
  display: block;
  width: 22px;
  height: 22px;
}

/* ---------------------------------------------------------------------------
   Sección Modos de juego
   --------------------------------------------------------------------------- */

.modes-section {
  padding: 56px 80px;
  border-bottom: 1px solid var(--line);
}

.modes-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 32px;
}

.mode-card {
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  overflow: hidden;
}

.mode-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
}

.mode-card.mode-story::before {
  background: linear-gradient(90deg, var(--cyan), var(--violet));
}

.mode-card.mode-infinite::before {
  background: linear-gradient(90deg, var(--magenta), var(--violet));
}

.mode-icon {
  font-size: 48px;
  line-height: 1;
}

.mode-icon img {
  width: 48px;
  height: 48px;
}

.mode-title {
  font-family: var(--font-display);
  font-size: var(--type-meta);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0;
}

.mode-desc {
  color: var(--text-muted);
  font-size: var(--type-body);
  margin: 0;
  max-width: 42ch;
  line-height: 1.55;
}

.mode-details {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.mode-chip {
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 18px;
  letter-spacing: 0.06em;
}

.mode-chip.cyan {
  background: rgba(0, 240, 255, 0.12);
  border: 1px solid rgba(0, 240, 255, 0.3);
  color: var(--cyan);
}

.mode-chip.violet {
  background: rgba(123, 92, 255, 0.12);
  border: 1px solid rgba(123, 92, 255, 0.3);
  color: var(--violet);
}

/* ---------------------------------------------------------------------------
   Sección Catálogo
   --------------------------------------------------------------------------- */

.catalog-section {
  padding: 56px 80px;
  border-bottom: 1px solid var(--line);
}

.catalog-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0 28px;
}

.catalog-chip {
  padding: 8px 20px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: var(--type-body);
  cursor: pointer;
  letter-spacing: 0.06em;
  transition: all 0.18s;
}

.catalog-chip:hover {
  border-color: rgba(0, 240, 255, 0.4);
  color: var(--cyan);
}

.catalog-chip.is-active {
  background: rgba(0, 240, 255, 0.12);
  border-color: rgba(0, 240, 255, 0.45);
  color: var(--cyan);
}

#landing-game-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.catalog-more-row {
  margin-top: 24px;
  display: flex;
  justify-content: center;
}

/* ---------------------------------------------------------------------------
   Sección Rankings
   --------------------------------------------------------------------------- */

.rankings-section {
  padding: 56px 80px;
  border-bottom: 1px solid var(--line);
}

.rankings-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--line);
  margin: 24px 0 0;
}

.rankings-tab {
  padding: 12px 28px;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: var(--type-body);
  cursor: pointer;
  letter-spacing: 0.06em;
  transition: all 0.15s;
  margin-bottom: -1px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.rankings-tab:hover {
  color: var(--text);
}

.rankings-tab.is-active {
  color: var(--cyan);
  border-bottom-color: var(--cyan);
}

#rankings-body {
  min-height: 240px;
  padding: 28px 0 0;
}

.rankings-board {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 900px;
}

.rankings-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
  font-size: var(--type-body);
  border-radius: 10px;
  transition: background 0.15s;
}

.rankings-row:hover {
  background: rgba(255, 255, 255, 0.03);
}

.rankings-rank {
  width: 36px;
  text-align: center;
  font-family: var(--font-display);
  font-size: var(--type-body);
  color: var(--text-muted);
  flex-shrink: 0;
}

.rankings-rank.rank-1 { color: var(--gold); }
.rankings-rank.rank-2 { color: #c0c0c0; }
.rankings-rank.rank-3 { color: #cd7f32; }

.rankings-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rankings-score {
  font-family: var(--font-display);
  font-size: var(--type-body);
  color: var(--cyan);
  letter-spacing: 0.08em;
}

.rankings-game-detail {
  font-size: 18px;
  color: var(--text-muted);
}

.rankings-empty {
  text-align: center;
  color: var(--text-muted);
  padding: 40px 0;
  font-size: var(--type-body);
}

/* ---------------------------------------------------------------------------
   Sección Medallas
   --------------------------------------------------------------------------- */

.medals-section {
  padding: 56px 80px;
  border-bottom: 1px solid var(--line);
}

.medals-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 32px;
}

.medals-col {
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
}

.medals-col-title {
  font-family: var(--font-display);
  font-size: var(--type-body);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 20px;
}

.medal-showcase-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.medal-showcase-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid transparent;
  transition: all 0.18s;
}

.medal-showcase-item:hover {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.03);
}

.medal-showcase-icon {
  font-size: 28px;
  line-height: 1;
  flex-shrink: 0;
}

.medal-showcase-icon img {
  width: 28px;
  height: 28px;
}

/* Medallas de tier en las columnas Oro/Plata/... (más grandes que los íconos de UI) */
.medal-showcase-icon.medal-showcase-medal img {
  width: 40px;
  height: 40px;
}

.medal-showcase-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.medal-showcase-name {
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: 0.06em;
}

.medal-showcase-desc {
  font-size: 17px;
  color: var(--text-muted);
}

.medal-gold .medal-showcase-name { color: var(--gold); }
.medal-silver .medal-showcase-name { color: #c0c0c0; }
.medal-bronze .medal-showcase-name { color: #cd7f32; }
.medal-crystal .medal-showcase-name { color: var(--cyan); }
.medal-nebula .medal-showcase-name { color: var(--violet); }

/* ---------------------------------------------------------------------------
   Sección Novedades / Changelog
   --------------------------------------------------------------------------- */

.news-section {
  padding: 56px 80px;
  border-bottom: 1px solid var(--line);
}

.changelog-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 32px;
  max-width: 800px;
}

.changelog-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 16px 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.changelog-item:last-child {
  border-bottom: none;
}

.changelog-date {
  font-family: var(--font-display);
  font-size: var(--type-body);
  color: var(--cyan);
  letter-spacing: 0.1em;
  padding-top: 2px;
}

.changelog-title {
  font-family: var(--font-display);
  font-size: var(--type-body);
  letter-spacing: 0.06em;
  margin: 0 0 6px;
}

.changelog-body {
  color: var(--text-muted);
  font-size: var(--type-body);
  margin: 0;
  line-height: 1.5;
}

/* ---------------------------------------------------------------------------
   Sección CTA final
   --------------------------------------------------------------------------- */

.cta-section {
  padding: 56px 80px;
  border-bottom: 1px solid var(--line);
}

.bottom-banner {
  background:
    linear-gradient(135deg, rgba(123, 92, 255, 0.18), rgba(0, 240, 255, 0.08)),
    var(--bg-elevated);
  border: 1px solid rgba(123, 92, 255, 0.45);
  border-radius: var(--radius);
  padding: 48px 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  box-shadow: var(--shadow), 0 0 60px rgba(123, 92, 255, 0.12);
}

.bottom-banner.hidden {
  display: none;
}

.banner-text h2 {
  font-family: var(--font-display);
  font-size: var(--type-title);
  letter-spacing: 0.06em;
  margin: 0 0 10px;
}

.banner-text p {
  color: var(--text-muted);
  font-size: var(--type-body);
  margin: 0;
  max-width: 52ch;
}

.banner-actions {
  display: flex;
  gap: 14px;
  flex-shrink: 0;
}

/* ---------------------------------------------------------------------------
   Footer
   --------------------------------------------------------------------------- */

.landing-footer {
  padding: 28px 80px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--text-muted);
  font-size: var(--type-body);
}

.landing-footer-brand {
  font-family: var(--font-display);
  font-size: var(--type-body);
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.cloud-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: var(--type-body);
}

.cloud-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-muted);
  display: inline-block;
}

.cloud-dot.online { background: var(--ok); box-shadow: 0 0 8px var(--ok); }
.cloud-dot.offline { background: var(--text-muted); }

/* ---------------------------------------------------------------------------
   Nav anchors en header
   --------------------------------------------------------------------------- */

.landing-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.landing-nav a {
  padding: 6px 14px;
  border-radius: 999px;
  color: var(--text-muted);
  font-size: var(--type-body);
  letter-spacing: 0.06em;
  transition: color 0.15s, background 0.15s;
}

.landing-nav a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

/* Subnav y secciones de la portada: sticky + offset de anclas (NS-A) */
.game-stage-body {
  --landing-top-h: calc(var(--vu-hud-h, 100px) + 56px);
}

.site-header[data-page="home"] {
  position: sticky;
  top: 0;
  z-index: 30;
}

.landing-subnav {
  position: sticky;
  top: var(--vu-hud-h, 100px);
  z-index: 29;
}

.landing-content > section[id] {
  scroll-margin-top: calc(var(--landing-top-h) + 12px);
}

.landing-subnav a.is-active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
}

/* ---------------------------------------------------------------------------
   Animaciones de portada (HA-B): reveal al scrollear y tilt en las cards.
   Sin .js-reveal (sin JS, con reduce-motion o con IO no soportado), todo se ve.
   --------------------------------------------------------------------------- */

.js-reveal [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
}

.js-reveal [data-reveal].is-revealed {
  animation: landing-reveal 0.55s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

@keyframes landing-reveal {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.js-reveal [data-reveal] > .event-games-grid > *,
.js-reveal [data-reveal] > .modes-grid > *,
.js-reveal [data-reveal] > .medals-grid > *,
.js-reveal [data-reveal] > #landing-game-grid > .game-card {
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 0.4s ease var(--reveal-delay, 0ms),
    transform 0.4s ease var(--reveal-delay, 0ms);
}

.js-reveal [data-reveal].is-revealed > .event-games-grid > *,
.js-reveal [data-reveal].is-revealed > .modes-grid > *,
.js-reveal [data-reveal].is-revealed > .medals-grid > *,
.js-reveal [data-reveal].is-revealed > #landing-game-grid > .game-card {
  opacity: 1;
  transform: translateY(0);
}

#landing-game-grid .game-card {
  --rx: 0deg;
  --ry: 0deg;
  --mx: 50%;
  --my: 50%;
  transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry));
  transform-style: preserve-3d;
  will-change: transform;
  transition:
    transform 0.35s ease,
    translate 0.35s ease,
    opacity 0.4s ease var(--reveal-delay, 0ms);
}

#landing-game-grid .game-card:hover {
  translate: 0 -4px;
}

#landing-game-grid .game-card.is-tilting {
  transition: transform 0.08s linear;
}

#landing-game-grid .game-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(
    circle at var(--mx, 50%) var(--my, 50%),
    rgba(0, 240, 255, 0.16) 0%,
    rgba(123, 92, 255, 0.08) 38%,
    transparent 68%
  );
  transition: opacity 0.3s ease;
}

#landing-game-grid .game-card.is-tilting::after {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .js-reveal [data-reveal] {
    opacity: 1;
    transform: none;
    animation: none;
  }
  .js-reveal [data-reveal] > .event-games-grid > *,
  .js-reveal [data-reveal] > .modes-grid > *,
  .js-reveal [data-reveal] > .medals-grid > *,
  .js-reveal [data-reveal] > #landing-game-grid > .game-card {
    opacity: 1;
    transform: none;
    transition: none;
  }
  #landing-game-grid .game-card {
    transform: none;
    transition: none;
  }
}

/* ---------------------------------------------------------------------------
   Mobile (portrait, ancho < 1024 en lienzo) — data-layout="mobile"
   --------------------------------------------------------------------------- */

.game-shell[data-layout="mobile"] .hero-section {
  min-height: 0;
  padding: 0 16px;
}

.game-shell[data-layout="mobile"] .hero-title {
  font-size: 32px;
  margin-bottom: 8px;
}

.game-shell[data-layout="mobile"] .hero-kicker {
  font-size: 12px;
  letter-spacing: 0.14em;
  margin-bottom: 6px;
}

.game-shell[data-layout="mobile"] .hero-inner {
  grid-template-columns: 1fr;
  justify-items: center;
  text-align: center;
  gap: 12px;
  padding: 16px 0;
}

.game-shell[data-layout="mobile"] .hero-logo {
  width: 120px;
}

.game-shell[data-layout="mobile"] .hero-subtitle {
  font-size: 16px;
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.game-shell[data-layout="mobile"] .hero-cta-row {
  flex-direction: column;
  align-items: stretch;
  width: 100%;
}

.game-shell[data-layout="mobile"] .hero-cta-row .btn {
  width: 100%;
}

.game-shell[data-layout="mobile"] .hero-cta-row {
  justify-content: center;
}

.game-shell[data-layout="mobile"] .hero-subtitle {
  margin-inline: auto;
}

.game-shell[data-layout="mobile"] .hero-content,
.game-shell[data-layout="mobile"] .hero-inner,
.game-shell[data-layout="mobile"] .hero-title,
.game-shell[data-layout="mobile"] .hero-subtitle {
  min-width: 0;
  max-width: 100%;
}

.game-shell[data-layout="mobile"] .hero-title,
.game-shell[data-layout="mobile"] .hero-subtitle {
  overflow-wrap: anywhere;
}

.game-shell[data-layout="mobile"] .event-section,
.game-shell[data-layout="mobile"] .modes-section,
.game-shell[data-layout="mobile"] .catalog-section,
.game-shell[data-layout="mobile"] .rankings-section,
.game-shell[data-layout="mobile"] .medals-section,
.game-shell[data-layout="mobile"] .news-section,
.game-shell[data-layout="mobile"] .cta-section {
  padding: 24px 16px;
}

.game-shell[data-layout="mobile"] .section-title {
  font-size: 24px;
}

.game-shell[data-layout="mobile"] .section-sub {
  font-size: 15px;
  margin-bottom: 12px;
}

.game-shell[data-layout="mobile"] .event-games-grid,
.game-shell[data-layout="mobile"] .modes-grid,
.game-shell[data-layout="mobile"] .medals-grid {
  grid-template-columns: 1fr;
}

.game-shell[data-layout="mobile"] #landing-game-grid {
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.game-shell[data-layout="mobile"] #landing-game-grid .game-card {
  height: 100%;
  min-height: 0;
  padding: 0 8px 10px;
  gap: 8px;
}

.game-shell[data-layout="mobile"] #landing-game-grid .card-media {
  margin: 0 -8px 8px;
}

.game-shell[data-layout="mobile"] #landing-game-grid .card-top,
.game-shell[data-layout="mobile"] #landing-game-grid .game-card > p,
.game-shell[data-layout="mobile"] #landing-game-grid .card-progress {
  display: none;
}

.game-shell[data-layout="mobile"] #landing-game-grid .game-card h3 {
  margin: 0;
  font-size: 14px;
  line-height: 1.2;
}

.game-shell[data-layout="mobile"] #landing-game-grid .game-card .btn {
  margin-top: auto;
  width: 100%;
  min-height: 36px;
  padding: 6px 8px;
  font-size: 14px;
}

.game-shell[data-layout="mobile"] .event-header {
  flex-direction: column;
  align-items: flex-start;
}

.game-shell[data-layout="mobile"] .event-banner {
  max-height: 140px;
}

.game-shell[data-layout="mobile"] .event-section .section-sub {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.game-shell[data-layout="mobile"] .mode-desc,
.game-shell[data-layout="mobile"] .mode-details {
  display: none;
}

.game-shell[data-layout="mobile"] .mode-card {
  gap: 10px;
  padding: 16px;
}

.game-shell[data-layout="mobile"] .catalog-chip {
  font-size: 15px;
  padding: 6px 12px;
}

.game-shell[data-layout="mobile"] .rankings-game-detail {
  display: none;
}

.game-shell[data-layout="mobile"] .medal-showcase-desc {
  display: none;
}

.game-shell[data-layout="mobile"] .medals-col:last-child {
  display: none;
}

.game-shell[data-layout="mobile"] .medals-grid {
  grid-template-columns: 1fr;
  margin-top: 12px;
}

.game-shell[data-layout="mobile"] .bottom-banner {
  flex-direction: column;
  padding: 20px 16px;
}

.game-shell[data-layout="mobile"] .event-cta-row {
  flex-direction: column;
  align-items: stretch;
}

.game-shell[data-layout="mobile"] .banner-actions {
  flex-direction: column;
  align-items: stretch;
  width: 100%;
}

.game-shell[data-layout="mobile"] .landing-footer {
  padding: 20px;
  flex-direction: column;
  gap: 10px;
  text-align: center;
}

.game-shell[data-layout="mobile"] .changelog-item {
  grid-template-columns: 1fr;
  gap: 4px;
}

.game-shell[data-layout="mobile"] .landing-nav {
  display: none;
}

.game-shell[data-layout="mobile"] .landing-content > section[id] {
  scroll-margin-top: 68px;
}

/* Celular horizontal: el hero entra en el alto corto y las grillas muestran más. */
.game-shell[data-layout="mobile"][data-orient="landscape"] .hero-inner {
  grid-template-columns: auto minmax(0, 1fr);
  justify-items: start;
  text-align: left;
  gap: 16px;
  padding: 10px 0;
}

.game-shell[data-layout="mobile"][data-orient="landscape"] .hero-logo {
  width: 96px;
}

.game-shell[data-layout="mobile"][data-orient="landscape"] .hero-title {
  font-size: 28px;
}

.game-shell[data-layout="mobile"][data-orient="landscape"] .hero-cta-row {
  flex-direction: row;
  align-items: center;
  width: auto;
}

.game-shell[data-layout="mobile"][data-orient="landscape"] .hero-cta-row .btn {
  width: auto;
}

.game-shell[data-layout="mobile"][data-orient="landscape"] .event-section,
.game-shell[data-layout="mobile"][data-orient="landscape"] .modes-section,
.game-shell[data-layout="mobile"][data-orient="landscape"] .catalog-section,
.game-shell[data-layout="mobile"][data-orient="landscape"] .rankings-section,
.game-shell[data-layout="mobile"][data-orient="landscape"] .medals-section,
.game-shell[data-layout="mobile"][data-orient="landscape"] .news-section,
.game-shell[data-layout="mobile"][data-orient="landscape"] .cta-section {
  padding: 16px;
}

.game-shell[data-layout="mobile"][data-orient="landscape"] .modes-grid,
.game-shell[data-layout="mobile"][data-orient="landscape"] #landing-game-grid,
.game-shell[data-layout="mobile"][data-orient="landscape"] .medals-grid {
  grid-template-columns: 1fr 1fr;
}

.game-shell[data-layout="mobile"][data-orient="landscape"] .event-games-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.landing-subnav {
  justify-content: center;
  padding: 10px 40px;
  border-bottom: 1px solid var(--line);
  background: rgba(5, 6, 15, 0.55);
}
