/* Pixel Art Skynex — portada */
:root {
  --bg: #0b0b14;
  --panel: #14142a;
  --panel-2: #1b1b36;
  --line: #2a2a4c;
  --ink: #fff1e8;
  --muted: #b9b6c9;
  --acc: #ffec27;
  --mono: ui-monospace, "Cascadia Mono", "SF Mono", Consolas, "Liberation Mono", monospace;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { background: var(--bg); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--acc); }

/* Cabecera con paisaje */
.hero {
  position: relative;
  min-height: 300px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
  border-bottom: 4px solid var(--line);
  background: #111d35;
}
.hero-scene {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}
.hero-text {
  position: relative;
  text-align: center;
  padding: 40px 16px 34px;
  text-shadow: 0 2px 0 #000;
}
.logo { margin: 0 0 10px; line-height: 0; }
.logo canvas {
  width: 357px;
  max-width: 84vw;
  height: auto;
  aspect-ratio: 51 / 11;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}
.tagline {
  margin: 0;
  font-family: var(--mono);
  font-size: clamp(15px, 2.4vw, 19px);
  font-weight: 700;
}
.subtag { margin: 4px 0 0; color: var(--muted); font-size: 14px; }

/* Rejilla de juegos */
.wrap { max-width: 1120px; margin: 0 auto; padding: 32px 16px 24px; }
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 18px;
}
.card {
  --c: #29adff;
  display: flex;
  flex-direction: column;
  min-width: 0;
  color: var(--ink);
  text-decoration: none;
  background: var(--panel);
  border: 3px solid var(--line);
  box-shadow: 6px 6px 0 #00000080;
  transition: transform .12s steps(2), box-shadow .12s steps(2), border-color .12s;
}
.card:hover, .card:focus-visible {
  transform: translate(-3px, -3px);
  box-shadow: 9px 9px 0 #00000099;
  border-color: var(--c);
  outline: none;
}
.card:active { transform: translate(2px, 2px); box-shadow: 3px 3px 0 #00000080; }
.card.soon { opacity: .55; filter: grayscale(.6); cursor: default; }
.card.soon:hover { transform: none; box-shadow: 6px 6px 0 #00000080; border-color: var(--line); }
.card-art {
  position: relative;
  aspect-ratio: 16 / 9;
  display: grid;
  place-items: center;
  background:
    linear-gradient(0deg, #0000004d 0 50%, transparent 50%) 0 0 / 100% 8px,
    var(--c);
  border-bottom: 3px solid var(--line);
  overflow: hidden;
}
.card-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 55%, transparent 30%, #00000059 100%);
  pointer-events: none;
}
.card-art img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}
.card-num {
  background: #05050ccc;
  color: var(--acc) !important;
  padding: 1px 5px;
}
.card-num {
  position: absolute;
  top: 8px;
  left: 10px;
  z-index: 1;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  color: #000000a6;
}
.card-body { flex: 1; display: flex; flex-direction: column; gap: 6px; padding: 14px 16px 16px; }
.card h2 {
  margin: 0;
  font-family: var(--mono);
  font-size: 17px;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.card p { margin: 0; color: var(--muted); font-size: 14.5px; }
.card-meta {
  margin-top: auto;
  padding-top: 8px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 12px;
}
.chip {
  padding: 2px 7px;
  background: var(--panel-2);
  border: 2px solid var(--line);
  color: var(--ink);
  text-transform: uppercase;
}
.rec { margin-left: auto; color: var(--acc); font-weight: 700; white-space: nowrap; }
.rec.none { color: #6f6a86; font-weight: 400; }

.note { text-align: center; color: var(--muted); }

.foot {
  max-width: 1120px;
  margin: 0 auto;
  padding: 24px 16px 40px;
  text-align: center;
  color: var(--muted);
  font-size: 13.5px;
  border-top: 2px dashed var(--line);
}
.foot p { margin: 4px 0; }

@media (max-width: 560px) {
  .hero { min-height: 250px; }
  .grid { grid-template-columns: 1fr; gap: 14px; }
  .card { flex-direction: row; }
  .card-art { width: 128px; aspect-ratio: auto; min-height: 104px; flex: none; border-bottom: 0; border-right: 3px solid var(--line); }
  .card-body { padding: 12px 14px; }
  .card h2 { font-size: 15px; }
  .card p { font-size: 13.5px; }
}
@media (prefers-reduced-motion: reduce) {
  .card, .card-art canvas { transition: none; }
}
