* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #0d1420;
  --card: #16203180;
  --line: rgba(255, 255, 255, 0.1);
  --txt: #eef2f8;
  --dim: rgba(238, 242, 248, 0.6);
}

body {
  min-height: 100dvh;
  font-family: system-ui, 'Segoe UI', Roboto, sans-serif;
  background:
    radial-gradient(900px 600px at 20% -10%, #1d2f4a 0%, transparent 60%),
    radial-gradient(700px 500px at 90% 10%, #22203f 0%, transparent 55%),
    var(--bg);
  color: var(--txt);
  display: flex; flex-direction: column; align-items: center;
  gap: 28px;
  padding: clamp(28px, 7vw, 64px) 18px calc(32px + env(safe-area-inset-bottom));
  -webkit-tap-highlight-color: transparent;
}

header { text-align: center; display: flex; flex-direction: column; gap: 10px; }
h1 { font-size: clamp(30px, 8vw, 50px); font-weight: 900; letter-spacing: -0.01em; }
.sub { color: var(--dim); font-size: clamp(14px, 2.6vw, 16px); max-width: 460px; line-height: 1.5; }

.grid {
  display: grid; gap: 16px; width: min(880px, 100%);
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
}
.cargando { color: var(--dim); text-align: center; grid-column: 1 / -1; }

.card {
  display: flex; align-items: center; gap: 16px;
  background: var(--card); border: 1px solid var(--line);
  border-radius: 18px; padding: 18px; text-decoration: none; color: inherit;
  transition: transform 0.15s, border-color 0.15s, background 0.15s;
  /* El color de acento lo pone cada juego desde el manifiesto. */
  backdrop-filter: blur(6px);
}
.card:hover {
  transform: translateY(-3px);
  border-color: var(--c);
  background: color-mix(in srgb, var(--c) 12%, var(--card));
}
.card:active { transform: translateY(0); }

.ico {
  width: 62px; height: 62px; flex: none; border-radius: 15px;
  display: flex; align-items: center; justify-content: center; font-size: 32px;
  background: color-mix(in srgb, var(--c) 24%, transparent);
  border: 1px solid color-mix(in srgb, var(--c) 45%, transparent);
}
.body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.body h2 { font-size: 19px; font-weight: 800; }
.body p { font-size: 13.5px; color: var(--dim); line-height: 1.45; }

.tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 2px; }
.tags span {
  font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 999px;
  background: color-mix(in srgb, var(--c) 20%, transparent);
  color: color-mix(in srgb, var(--c) 65%, white);
}

.go { font-size: 13px; font-weight: 800; color: var(--c); flex: none; }
@media (max-width: 420px) {
  .go { display: none; }          /* en pantalla chica la tarjeta entera ya es el botón */
  .card { padding: 15px; gap: 13px; }
  .ico { width: 52px; height: 52px; font-size: 27px; }
}

footer { color: var(--dim); font-size: 13px; margin-top: auto; padding-top: 20px; }
footer a { color: #7fd0ff; text-decoration: none; font-weight: 700; }
footer a:hover { text-decoration: underline; }
