/* Solera Card Games — portada (index de cada idioma).
 *
 * Va en un fichero aparte de styles.css a propósito: styles.css se cachea 7
 * días y lo usan también las páginas legales y de reglas. Las clases de aquí
 * llevan prefijo `lp-` (o viven dentro de .lp-table/.lp-art) para no chocar.
 *
 * Las cartas se dibujan con HTML + los mismos palos SVG que la app
 * (apps/web/src/components/SuitIcon.tsx), y escalan con el contenedor (cqw),
 * así que la mesa se ve igual de bien a 320 px que a 1400 px.
 *
 * Generado junto con los index por scripts/build-landing.mjs (el CSS no se
 * genera; se edita aquí).
 */

:root {
  --felt: #0f3d2a;
  --felt-hi: #1b5e40;
  --felt-lo: #092619;
  --card-face: #fef9e7;
  --wood: #2b1a0d;
}

/* ── Cabecera ─────────────────────────────────────── */
.nav-right {
  display: flex;
  align-items: center;
  gap: 14px;
}
.nav-play {
  padding: 8px 16px;
  font-size: 14px;
  border-radius: 10px;
}
@media (max-width: 440px) {
  .brand-text {
    display: none;
  }
}
/* Tienda: en escritorio va como texto en .nav-links; en móvil (donde
   .nav-links se oculta) como icono. Si ya se ve la píldora de monedas (que
   también lleva a la tienda), el icono sobra. */
.nav-shop {
  display: none;
}
@media (max-width: 820px) {
  .nav-shop {
    display: flex;
  }
  .nav-right:has(#nav-coins) .nav-shop {
    display: none;
  }
}

/* Titulares de la portada alineados a la izquierda (styles.css los centra). */
.lp section h2 {
  text-align: left;
}
.lp section h2::after {
  margin: 14px 0 0;
}

.lp-eyebrow {
  margin: 0;
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* ── Hero ─────────────────────────────────────────── */
.lp-hero {
  position: relative;
  padding: 64px 0 88px;
  overflow: hidden;
}
.lp-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(50% 60% at 78% 50%, rgba(27, 94, 64, 0.28), transparent 70%),
    radial-gradient(60% 50% at 10% -10%, rgba(124, 92, 255, 0.16), transparent 70%);
  pointer-events: none;
}
.lp-hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  gap: 56px;
  align-items: center;
}
.lp-hero h1 {
  font-size: clamp(38px, 5.4vw, 62px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 14px 0 18px;
}
.lp-hero h1 em {
  display: block;
  color: var(--gold);
  font-style: italic;
}
.lp-lead {
  max-width: 500px;
  margin: 0 0 28px;
  color: var(--ink-muted);
  font-size: clamp(16px, 1.8vw, 19px);
}
.lp-pick-label {
  margin: 0 0 10px;
  color: var(--ink-dim);
  font-size: 13px;
  font-weight: 600;
}

/* Selector de juego: el CTA principal es elegir juego, no "entrar a la app". */
.lp-picker {
  display: grid;
  gap: 10px;
  max-width: 470px;
}
.lp-pick {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 16px 10px 10px;
  border-radius: 14px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  color: var(--ink);
  transition:
    transform 0.15s ease,
    border-color 0.15s ease,
    background 0.15s ease;
}
.lp-pick:hover {
  text-decoration: none;
  transform: translateX(4px);
  border-color: rgba(251, 191, 36, 0.55);
  background: var(--bg-elev);
}
.lp-pick:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}
.lp-pick-main {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
  min-width: 0;
}
.lp-pick-name {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
}
.lp-pick-meta {
  color: var(--ink-dim);
  font-size: 13px;
}
.lp-pick-go {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--gold);
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
}
.lp-pick-go svg {
  width: 16px;
  height: 16px;
  transition: transform 0.15s ease;
}
.lp-pick:hover .lp-pick-go svg {
  transform: translateX(3px);
}
/* El primero (el juego del idioma) va destacado: una sola acción obvia. */
.lp-pick.is-main {
  background: var(--brand);
  border-color: transparent;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 10px 30px rgba(124, 92, 255, 0.35);
}
.lp-pick.is-main:hover {
  background: var(--brand-600);
}
.lp-pick.is-main .lp-pick-meta {
  color: rgba(255, 255, 255, 0.78);
}
.lp-pick.is-main .lp-pick-go {
  color: #fff;
}
.lp-note {
  margin: 16px 0 0;
  color: var(--ink-dim);
  font-size: 13px;
}

/* Mini naipe del selector */
.mini {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 34px;
  height: 48px;
  border-radius: 6px;
  background: var(--card-face);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}
.mini svg {
  width: 22px;
  height: 22px;
}

/* ── Naipes (mesa del hero y arte de cada juego) ─── */
.lp-table,
.lp-art {
  container-type: inline-size;
}
.c {
  --cw: 15cqw;
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--cw);
  aspect-ratio: 2 / 3;
  border-radius: calc(var(--cw) * 0.1);
  background: var(--card-face);
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.3),
    0 calc(var(--cw) * 0.08) calc(var(--cw) * 0.18) rgba(0, 0, 0, 0.38);
  transform: translate(-50%, -50%) rotate(var(--r, 0deg));
  animation: lpDeal 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) var(--d, 0s) backwards;
  transition: translate 0.2s ease;
}
.c .ix {
  position: absolute;
  top: 5%;
  left: 7%;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--sc);
  font: 700 calc(var(--cw) * 0.19) / 1 var(--font-display);
}
.c .ix svg {
  width: calc(var(--cw) * 0.15);
  height: calc(var(--cw) * 0.15);
  margin-top: 2px;
}
.c .ix.br {
  top: auto;
  left: auto;
  right: 7%;
  bottom: 5%;
  transform: rotate(180deg);
}
.c .pip {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 52%;
  height: 52%;
  transform: translate(-50%, -50%);
}
.oros {
  --sc: #9c6f12;
}
.copas,
.hearts {
  --sc: #c0392b;
}
.espadas {
  --sc: #2c3e50;
}
.bastos {
  --sc: #7c4a1e;
}
.spades {
  --sc: #1f2937;
}

/* Dorso: el mismo que la app por defecto (índigo con filete y rombo dorado). */
.c.back {
  background: linear-gradient(135deg, #312e81, #1e1b4b);
  border: 1px solid rgba(124, 92, 255, 0.5);
}
.c.back::before {
  content: '';
  position: absolute;
  inset: 8%;
  border: 1px solid rgba(124, 92, 255, 0.6);
  border-radius: calc(var(--cw) * 0.06);
}
.c.back::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 22%;
  aspect-ratio: 1;
  border: 1.5px solid var(--gold);
  transform: translate(-50%, -50%) rotate(45deg);
  opacity: 0.8;
}

/* ── Mesa del hero ────────────────────────────────── */
.lp-table {
  position: relative;
  justify-self: end;
  width: 100%;
  max-width: 580px;
  aspect-ratio: 5 / 4;
  border-radius: 30px;
  background:
    repeating-linear-gradient(
      115deg,
      rgba(255, 255, 255, 0.012) 0 2px,
      transparent 2px 5px
    ),
    radial-gradient(110% 85% at 50% 42%, var(--felt-hi) 0%, var(--felt) 58%, var(--felt-lo) 100%);
  box-shadow:
    0 0 0 8px var(--wood),
    0 0 0 9px rgba(251, 191, 36, 0.4),
    inset 0 0 70px rgba(0, 0, 0, 0.45),
    0 40px 90px rgba(0, 0, 0, 0.55);
}
/* La mesa es un enlace a esa misma partida. */
a.lp-table {
  display: block;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}
a.lp-table:hover {
  text-decoration: none;
  transform: translateY(-4px);
  box-shadow:
    0 0 0 8px var(--wood),
    0 0 0 9px rgba(251, 191, 36, 0.8),
    inset 0 0 70px rgba(0, 0, 0, 0.45),
    0 48px 100px rgba(0, 0, 0, 0.6);
}
a.lp-table:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 14px;
}
a.lp-table:hover .c.play {
  translate: 0 calc(var(--cw) * -0.14);
}
/* "Jugar →" siempre visible (en móvil no hay hover que lo descubra). */
.lp-table-cta {
  position: absolute;
  top: 5%;
  right: 4%;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0.55em 1em;
  border-radius: 999px;
  background: rgba(251, 191, 36, 0.14);
  border: 1px solid rgba(251, 191, 36, 0.6);
  color: var(--gold);
  font-size: clamp(11px, 2.4cqw, 14px);
  font-weight: 800;
  white-space: nowrap;
  animation: lpFade 0.6s ease 1.5s backwards;
  transition:
    background 0.2s ease,
    color 0.2s ease;
}
.lp-table-cta svg {
  width: 1.1em;
  height: 1.1em;
  transition: transform 0.2s ease;
}
a.lp-table:hover .lp-table-cta {
  background: var(--gold);
  color: #1a1205;
}
a.lp-table:hover .lp-table-cta svg {
  transform: translateX(3px);
}
a.lp-art {
  display: block;
  cursor: pointer;
}
a.lp-art:hover {
  text-decoration: none;
}

.lp-table .c {
  --cw: 13cqw;
}
.lp-table .hand {
  --cw: 17cqw;
}
.lp-table .hand:hover {
  translate: 0 calc(var(--cw) * -0.12);
}
/* Carta jugable: el mismo brillo dorado que en la app. */
.lp-table .c.play {
  box-shadow:
    0 0 0 2px var(--gold),
    0 0 calc(var(--cw) * 0.22) rgba(251, 191, 36, 0.55),
    0 calc(var(--cw) * 0.08) calc(var(--cw) * 0.18) rgba(0, 0, 0, 0.38);
  animation:
    lpDeal 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) var(--d, 0s) backwards,
    lpGlow 2.4s ease-in-out 1.6s infinite;
}
/* Mazo con grosor. */
.lp-table .deck {
  box-shadow:
    1px 1px 0 #17143d,
    2px 2px 0 #1e1b4b,
    3px 3px 0 #17143d,
    4px 4px 0 #1e1b4b,
    0 calc(var(--cw) * 0.1) calc(var(--cw) * 0.2) rgba(0, 0, 0, 0.4);
}
.lp-chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0.55em 1em;
  border-radius: 999px;
  background: rgba(10, 14, 26, 0.72);
  border: 1px solid rgba(251, 191, 36, 0.4);
  color: var(--ink);
  font-size: clamp(11px, 2.4cqw, 14px);
  font-weight: 700;
  white-space: nowrap;
  animation: lpFade 0.6s ease 1.3s backwards;
}
.lp-chip i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  animation: lpBlink 1.6s ease-in-out infinite;
}
.lp-label {
  position: absolute;
  color: rgba(255, 255, 255, 0.55);
  font-size: clamp(10px, 2.1cqw, 12px);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transform: translateX(-50%);
  animation: lpFade 0.6s ease 1.1s backwards;
}

/* ── Juegos ───────────────────────────────────────── */
.lp-games {
  padding: 72px 0 88px;
}
.lp-head {
  margin-bottom: 36px;
}
.lp-head h2 {
  margin: 10px 0 0;
}
.lp-head p {
  max-width: 560px;
  margin: 18px 0 0;
  color: var(--ink-muted);
}
.lp-games-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.lp-game {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 20px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}
.lp-game:hover {
  transform: translateY(-4px);
  border-color: rgba(251, 191, 36, 0.45);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.4);
}
.lp-art {
  position: relative;
  height: 190px;
  background:
    radial-gradient(90% 120% at 50% 40%, var(--felt-hi), var(--felt) 60%, var(--felt-lo));
  border-bottom: 3px solid var(--wood);
}
.lp-art .c {
  --cw: 21cqw;
  --y: 54%;
  animation: none;
}
/* Al pasar por encima, el abanico se abre un poco. */
.lp-game:hover .lp-art .c {
  translate: var(--hx, 0) -6px;
}
.lp-game-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 10px;
  padding: 22px 22px 24px;
}
.lp-game h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: 26px;
}
.lp-game h3 svg {
  width: 27px;
  height: 18px;
  border-radius: 3px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}
.lp-game p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 15px;
}
.lp-game-meta {
  color: var(--ink-dim);
  font-size: 13px;
  font-weight: 600;
}
.lp-game-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: auto;
  padding-top: 8px;
}
.lp-game-actions .btn {
  padding: 11px 22px;
}
.lp-rules {
  color: var(--ink-muted);
  font-size: 14px;
  font-weight: 700;
}
.lp-rules:hover {
  color: var(--ink);
}

/* ── Historia + qué hay ───────────────────────────── */
.lp-story {
  padding: 88px 0;
  background: linear-gradient(180deg, var(--bg), var(--bg-surface));
  border-top: 1px solid var(--border);
}
.lp-story-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 64px;
  align-items: start;
}
.lp-story h2 {
  margin: 10px 0 0;
}
.lp-big {
  margin: 26px 0 16px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(20px, 2.3vw, 26px);
  line-height: 1.45;
}
.lp-story-grid > div > p:not(.lp-big):not(.lp-eyebrow) {
  margin: 0;
  color: var(--ink-muted);
}
.lp-sign {
  margin: 22px 0 0 !important;
  color: var(--gold) !important;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 18px;
}
.lp-facts {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--border);
}
.lp-facts li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 15px 0;
  border-bottom: 1px solid var(--border);
}
.lp-facts strong {
  font-size: 15px;
}
.lp-facts span {
  color: var(--ink-muted);
  font-size: 14px;
}

/* ── Cierre ───────────────────────────────────────── */
.lp-final {
  padding: 80px 0 96px;
}
.lp-final-box {
  position: relative;
  overflow: hidden;
  padding: 56px 28px;
  border-radius: 28px;
  text-align: center;
  background:
    radial-gradient(80% 120% at 50% 0%, var(--felt-hi), var(--felt) 55%, var(--felt-lo));
  box-shadow:
    0 0 0 6px var(--wood),
    0 0 0 7px rgba(251, 191, 36, 0.35),
    inset 0 0 60px rgba(0, 0, 0, 0.4);
}
.lp .lp-final-box h2 {
  margin: 0;
  text-align: center;
  font-size: clamp(30px, 4.4vw, 44px);
}
.lp .lp-final-box h2::after {
  margin: 14px auto 0;
}
.lp-final-box p {
  margin: 18px auto 26px;
  color: rgba(255, 255, 255, 0.78);
}
.lp-final-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}
.btn-gold {
  background: var(--gold);
  color: #1a1205;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    0 6px 18px rgba(0, 0, 0, 0.3);
}
.btn-gold:hover {
  background: #fcd34d;
}
.btn-felt {
  background: rgba(10, 14, 26, 0.45);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.25);
}
.btn-felt:hover {
  background: rgba(10, 14, 26, 0.65);
}

/* ── Animación ────────────────────────────────────── */
@keyframes lpDeal {
  from {
    opacity: 0;
    translate: 0 30cqw;
  }
}
@keyframes lpFade {
  from {
    opacity: 0;
  }
}
@keyframes lpGlow {
  50% {
    box-shadow:
      0 0 0 2px #fde68a,
      0 0 calc(var(--cw) * 0.34) rgba(251, 191, 36, 0.8),
      0 calc(var(--cw) * 0.08) calc(var(--cw) * 0.18) rgba(0, 0, 0, 0.38);
  }
}
@keyframes lpBlink {
  50% {
    opacity: 0.25;
  }
}
@media (prefers-reduced-motion: reduce) {
  .c,
  .lp-table .c.play,
  .lp-chip,
  .lp-chip i,
  .lp-label,
  .lp-table-cta {
    animation: none;
  }
  .lp-pick,
  .lp-game,
  .c,
  a.lp-table {
    transition: none;
  }
  a.lp-table:hover {
    transform: none;
  }
}

/* ── Responsive ───────────────────────────────────── */
@media (max-width: 900px) {
  .lp-hero {
    padding: 36px 0 64px;
  }
  .lp-hero-grid,
  .lp-story-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .lp-table {
    justify-self: center;
    max-width: 480px;
  }
  .lp-picker {
    max-width: none;
  }
  .lp-games-grid {
    grid-template-columns: 1fr;
    max-width: 520px;
  }
  .lp-hero {
    padding-bottom: 40px;
  }
  .lp-games {
    padding-top: 40px;
  }
}
@media (max-width: 520px) {
  .lp-pick-name {
    font-size: 18px;
  }
  .lp-final-box {
    padding: 44px 18px;
  }
  .lp-final-actions .btn {
    flex: 1 1 100%;
    justify-content: center;
  }
}
