:root {
  --ink: #14061f;
  --gold: #ffe566;
  --hot: #ff3d7f;
  --panel: rgba(12, 4, 28, 0.78);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background:
    radial-gradient(1200px 500px at 50% -10%, #6a2cff 0%, transparent 55%),
    linear-gradient(#1a0a3a, #082038 55%, #0b2a18);
  color: #fff;
  font-family: Nunito, system-ui, sans-serif;
}

.scanlines {
  pointer-events: none;
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 2px,
    rgba(0, 0, 0, 0.08) 2px,
    rgba(0, 0, 0, 0.08) 3px
  );
  opacity: 0.4;
  z-index: 5;
}

.hero {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: calc(28px + env(safe-area-inset-top, 0px)) 18px 10px;
}

.blink {
  margin: 0 0 12px;
  font-family: "Press Start 2P", monospace;
  font-size: 9px;
  letter-spacing: 2px;
  color: var(--gold);
  animation: blink 1.1s steps(2, start) infinite;
}

@keyframes blink {
  50% { opacity: 0.2; }
}

h1 {
  margin: 0 0 12px;
  font-family: "Press Start 2P", monospace;
  font-size: clamp(26px, 8vw, 42px);
  line-height: 1.25;
  text-shadow:
    3px 3px 0 #ff2d6a,
    6px 6px 0 #3a1060;
}

h1 span {
  color: var(--gold);
}

.lede {
  margin: 0 auto;
  max-width: 420px;
  font-weight: 800;
  color: #ffd0ea;
}

.grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  width: min(920px, calc(100% - 28px));
  margin: 22px auto 40px;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  background: var(--panel);
  border: 4px solid var(--gold);
  border-radius: 18px;
  box-shadow:
    0 0 0 4px #1a0a3a,
    0 16px 40px rgba(0, 0, 0, 0.35);
}

.card img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #3ec4ff;
}

.card-cover {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 4 / 3;
  font-size: clamp(64px, 18vw, 96px);
  background: linear-gradient(145deg, #6a2cff, #ff3d7f 55%, #ffe566);
}

.hub-home {
  position: fixed;
  top: calc(12px + env(safe-area-inset-top, 0px));
  left: max(14px, env(safe-area-inset-left, 0px));
  z-index: 10;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  border: 2px solid rgba(255, 229, 102, 0.45);
  background: rgba(12, 4, 28, 0.82);
  color: var(--gold);
  font-family: "Press Start 2P", monospace;
  font-size: 8px;
  letter-spacing: 1px;
  text-decoration: none;
}

.hub-home:hover {
  border-color: var(--gold);
  color: #fff;
}

.card-body {
  padding: 14px 14px 16px;
}

.card h2 {
  margin: 0 0 8px;
  font-family: "Press Start 2P", monospace;
  font-size: 13px;
  line-height: 1.45;
  color: var(--gold);
}

.card p {
  margin: 0 0 14px;
  font-weight: 800;
  font-size: 14px;
  line-height: 1.4;
  color: #ffd0ea;
}

.play {
  display: inline-block;
  font-family: "Press Start 2P", monospace;
  font-size: 11px;
  color: #fff;
  background: var(--hot);
  padding: 10px 14px;
  border-radius: 10px;
  box-shadow: 0 4px 0 #a0124a;
}

.card:active .play {
  transform: translateY(3px);
  box-shadow: 0 1px 0 #a0124a;
}

.badge {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 1;
  font-family: "Press Start 2P", monospace;
  font-size: 9px;
  color: #fff;
  background: #ff3d7f;
  padding: 7px 8px;
  border-radius: 8px;
  box-shadow: 0 3px 0 #a0124a;
}
