:root {
  --bg: #07111f;
  --panel: rgba(14, 24, 43, 0.86);
  --text: #edf2ff;
  --muted: #afbdd9;
  --line: rgba(255, 255, 255, 0.08);
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.32);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  min-height: 100vh;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(70, 136, 255, 0.22), transparent 35%),
    radial-gradient(circle at top right, rgba(179, 85, 255, 0.24), transparent 32%),
    linear-gradient(180deg, #0b1730 0%, #07111f 55%, #050c17 100%);
}

.page {
  width: min(1100px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 40px;
}

.hero {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 24px;
  align-items: center;
  margin-bottom: 28px;
}

.hero-copy h1 {
  font-size: clamp(2.2rem, 5vw, 4.4rem);
  line-height: 0.98;
  margin: 0 0 14px;
  letter-spacing: -0.04em;
}
.hero-copy h1 span {
  color: #87a9ff;
}
.eyebrow {
  margin: 0 0 10px;
  color: #9eb5ff;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .82rem;
}
.intro {
  margin: 0;
  font-size: 1.08rem;
  color: var(--muted);
}

.avatar-wrap {
  display: flex;
  justify-content: center;
}
.avatar {
  width: min(100%, 330px);
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
  border-radius: 30px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

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

.game {
  position: relative;
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 138px;
  padding: 20px 22px;
  border-radius: 26px;
  text-decoration: none;
  color: inherit;
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.game::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .16;
  pointer-events: none;
}
.game:hover {
  transform: translateY(-2px);
  transition: transform .18s ease, border-color .18s ease;
}
.game-cah::before {
  background: linear-gradient(135deg, rgba(255,255,255,.16), rgba(0,0,0,.45));
}
.game-trio::before {
  background: linear-gradient(135deg, rgba(31,214,255,.20), rgba(120,72,255,.20));
}
.game-spy::before {
  background: linear-gradient(135deg, rgba(255,198,72,.16), rgba(255,84,84,.12));
}
.game-soon::before {
  background: linear-gradient(135deg, rgba(161,133,255,.18), rgba(60,88,160,.12));
}

.game-icon {
  flex: 0 0 82px;
  width: 82px;
  height: 82px;
  border-radius: 22px;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.09);
  position: relative;
}

.cards span {
  position: absolute;
  width: 34px;
  height: 48px;
  border-radius: 7px;
  background: #fff;
  box-shadow: 0 8px 18px rgba(0,0,0,.25);
}
.cards span:nth-child(1) { transform: rotate(-18deg) translateX(-16px); }
.cards span:nth-child(2) { transform: rotate(-4deg); }
.cards span:nth-child(3) {
  transform: rotate(12deg) translateX(16px);
  background: #0e1118;
  border: 1px solid rgba(255,255,255,.18);
}
.cards span:nth-child(3)::after {
  content: "?";
  color: #fff;
  font-weight: 800;
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 1.3rem;
}

.trio {
  display: block;
}
.trio span {
  position: absolute;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  color: #0c1c37;
  font-weight: 900;
  font-size: .9rem;
  background: #f4f0df;
  clip-path: polygon(50% 4%, 96% 90%, 4% 90%);
  box-shadow: 0 6px 14px rgba(0,0,0,.22);
}
.trio span:nth-child(1) { left: 27px; top: 10px; }
.trio span:nth-child(2) { left: 12px; top: 36px; }
.trio span:nth-child(3) { left: 42px; top: 36px; }

.spy .hat {
  position: absolute;
  width: 44px;
  height: 12px;
  background: #0b0f16;
  border-radius: 999px;
  top: 20px;
}
.spy .hat::before {
  content: "";
  position: absolute;
  left: 8px;
  top: -12px;
  width: 28px;
  height: 16px;
  background: #0b0f16;
  border-radius: 8px 8px 4px 4px;
}
.spy .glasses {
  position: absolute;
  width: 44px;
  height: 16px;
  top: 42px;
}
.spy .glasses::before,
.spy .glasses::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 12px;
  border: 3px solid #fff;
  border-radius: 6px;
  top: 0;
}
.spy .glasses::before { left: 0; }
.spy .glasses::after { right: 0; }

.soon {
  font-size: 2rem;
  color: #cabfff;
}

.game-text {
  flex: 1 1 auto;
  min-width: 0;
}
.game-text h2 {
  margin: 0 0 8px;
  font-size: clamp(1.2rem, 2.1vw, 2rem);
  letter-spacing: -0.03em;
}
.game-text p {
  margin: 0;
  color: var(--muted);
  line-height: 1.35;
  font-size: .98rem;
}

.go {
  flex: 0 0 auto;
  align-self: center;
  font-weight: 800;
  font-size: .95rem;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.07);
}
.disabled {
  opacity: .7;
}

@media (max-width: 840px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .avatar {
    width: min(100%, 260px);
  }
  .games {
    grid-template-columns: 1fr;
  }
  .game {
    min-height: 126px;
  }
}

@media (max-width: 560px) {
  .page { width: min(100% - 20px, 1100px); padding-top: 18px; }
  .game { padding: 16px; gap: 14px; }
  .game-icon { flex-basis: 68px; width: 68px; height: 68px; border-radius: 18px; }
  .go { padding: 8px 13px; font-size: .88rem; }
  .game-text p { font-size: .92rem; }
  .trio span:nth-child(1) { left: 21px; top: 8px; }
  .trio span:nth-child(2) { left: 8px; top: 31px; }
  .trio span:nth-child(3) { left: 35px; top: 31px; }
  .trio span { width: 24px; height: 24px; font-size: .82rem; }
  .cards span { width: 28px; height: 41px; }
  .spy .hat { width: 38px; top: 18px; }
  .spy .hat::before { left: 7px; width: 24px; }
  .spy .glasses { width: 38px; top: 37px; }
  .spy .glasses::before, .spy .glasses::after { width: 15px; height: 10px; }
}

/* Versión compacta: los juegos tienen prioridad en la pantalla. */
.page { padding-top: 14px; padding-bottom: 20px; }
.hero {
  grid-template-columns: 1fr 170px;
  gap: 12px;
  margin-bottom: 15px;
  min-height: 155px;
}
.hero-copy h1 { font-size: clamp(1.8rem, 3.4vw, 2.9rem); line-height: 1.07; margin-bottom: 8px; }
.eyebrow { margin-bottom: 5px; font-size: .69rem; }
.intro { font-size: .91rem; }
.avatar { width: 144px; height: 144px; aspect-ratio: 1; object-fit: cover; object-position: 50% 18%; border-radius: 50%; }
.games { gap: 12px; }
.game { min-height: 112px; padding: 14px 16px; gap: 14px; border-radius: 20px; }
.game-icon { flex-basis: 68px; width: 68px; height: 68px; border-radius: 16px; }
.game-text h2 { font-size: clamp(1.12rem, 1.9vw, 1.45rem); margin-bottom: 5px; }
.game-text p { font-size: .85rem; }
.trio span:nth-child(1) { left: 21px; top: 8px; }
.trio span:nth-child(2) { left: 8px; top: 31px; }
.trio span:nth-child(3) { left: 35px; top: 31px; }
.trio span { width: 24px; height: 24px; font-size: .82rem; }
.cards span { width: 28px; height: 41px; }
.spy .hat { width: 38px; top: 18px; }
.spy .hat::before { left: 7px; width: 24px; }
.spy .glasses { width: 38px; top: 37px; }
.spy .glasses::before, .spy .glasses::after { width: 15px; height: 10px; }
@media (max-width: 840px) {
  .hero { grid-template-columns: minmax(0, 1fr) 110px; text-align: left; min-height: 112px; gap: 12px; margin-bottom: 14px; }
  .avatar { width: 108px; height: 108px; }
  .hero-copy h1 { font-size: clamp(1.65rem, 5vw, 2.4rem); }
  .games { grid-template-columns: 1fr; }
  .game { min-height: 99px; }
}
@media (max-width: 560px) {
  .page { width: calc(100% - 20px); padding: 12px 0 18px; }
  .hero { grid-template-columns: minmax(0, 1fr) 86px; min-height: 90px; gap: 9px; margin-bottom: 10px; }
  .avatar { width: 84px; height: 84px; border-radius: 50%; }
  .hero-copy h1 { font-size: clamp(1.45rem, 6.3vw, 2rem); margin-bottom: 3px; line-height: 1.03; }
  .eyebrow { font-size: .59rem; letter-spacing: .12em; margin-bottom: 3px; }
  .intro { font-size: .75rem; }
  .games { gap: 9px; }
  .game { min-height: 88px; padding: 11px; gap: 10px; border-radius: 17px; }
  .game-icon { flex: 0 0 56px; width: 56px; height: 56px; border-radius: 13px; }
  .game-text h2 { font-size: clamp(.98rem, 4vw, 1.2rem); margin-bottom: 3px; }
  .game-text p { font-size: .74rem; }
  .go { padding: 6px 9px; font-size: .75rem; }
  .cards span { width: 23px; height: 33px; }
  .trio span { width: 20px; height: 20px; font-size: .7rem; }
  .trio span:nth-child(1) { left: 18px; top: 6px; }
  .trio span:nth-child(2) { left: 7px; top: 26px; }
  .trio span:nth-child(3) { left: 29px; top: 26px; }
  .spy .hat { width: 32px; top: 16px; }
  .spy .hat::before { left: 6px; width: 20px; top: -10px; }
  .spy .glasses { width: 34px; top: 30px; }
  .spy .glasses::before, .spy .glasses::after { width: 13px; height: 10px; }
}
