:root {
  color-scheme: dark;
  --bg: #050816;
  --panel: #0a1125;
  --panel-2: #0f1931;
  --cyan: #65e7ff;
  --pink: #ff5ecf;
  --yellow: #ffe66d;
  --green: #7cffb2;
  --text: #f7fbff;
  --muted: #8ba0b8;
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--bg); }
body {
  margin: 0;
  min-height: 100dvh;
  color: var(--text);
  background:
    radial-gradient(circle at 18% 0%, rgba(101,231,255,.13), transparent 28rem),
    radial-gradient(circle at 90% 18%, rgba(255,94,207,.12), transparent 24rem),
    linear-gradient(180deg, #081126 0%, #040713 52%, #02040b 100%);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.shell {
  width: min(100%, 760px);
  margin: 0 auto;
  padding: calc(env(safe-area-inset-top) + 24px) 18px calc(env(safe-area-inset-bottom) + 34px);
}

.hero {
  position: relative;
  padding: 22px 4px 26px;
}
.hero::after {
  content: "";
  position: absolute;
  left: 4px;
  right: 4px;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(101,231,255,.42), rgba(255,94,207,.34), transparent);
}
.eyebrow {
  margin: 0 0 8px;
  color: var(--cyan);
  font-size: 10px;
  letter-spacing: .24em;
  text-transform: uppercase;
}
h1 {
  margin: 0;
  max-width: 8ch;
  font-size: clamp(42px, 13vw, 74px);
  line-height: .86;
  letter-spacing: -.08em;
}
h1 span { color: var(--pink); }
.intro {
  max-width: 46ch;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}
.counter {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 17px;
  padding: 7px 10px;
  border: 1px solid rgba(124,255,178,.22);
  border-radius: 999px;
  color: #b9ffd4;
  background: rgba(124,255,178,.06);
  font-size: 10px;
  letter-spacing: .1em;
}
.counter::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 12px var(--green);
}

.game-list {
  display: grid;
  gap: 16px;
  padding: 22px 0;
}
.game-card {
  position: relative;
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  min-height: 148px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 22px;
  color: inherit;
  text-decoration: none;
  background: linear-gradient(135deg, rgba(15,25,49,.96), rgba(7,12,27,.96));
  box-shadow: 0 18px 50px rgba(0,0,0,.28), inset 0 1px rgba(255,255,255,.04);
}
.game-card:active { transform: scale(.992); }
.game-card::after {
  content: "›";
  position: absolute;
  right: 16px;
  bottom: 13px;
  color: rgba(255,255,255,.42);
  font-size: 30px;
  line-height: 1;
}
.art {
  position: relative;
  min-height: 148px;
  overflow: hidden;
  border-right: 1px solid rgba(255,255,255,.08);
}
.card-copy { padding: 18px 42px 18px 17px; }
.card-copy small {
  display: block;
  margin-bottom: 5px;
  color: var(--cyan);
  font-size: 9px;
  letter-spacing: .16em;
}
.card-copy h2 {
  margin: 0;
  font-size: 22px;
  letter-spacing: -.05em;
}
.card-copy p {
  margin: 8px 0 12px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}
.tags { display: flex; flex-wrap: wrap; gap: 5px; }
.tag {
  padding: 4px 6px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 6px;
  color: #c7d2df;
  font-size: 8px;
  letter-spacing: .06em;
}

.space-art {
  background: radial-gradient(circle at 50% 18%, #163666, #071126 62%, #03050b);
}
.space-art::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle, white 0 1px, transparent 1.5px),
    radial-gradient(circle, rgba(101,231,255,.9) 0 1px, transparent 1.5px);
  background-size: 27px 31px, 43px 37px;
  background-position: 7px 9px, 18px 3px;
  opacity: .55;
}
.ship {
  position: absolute;
  left: 50%;
  bottom: 23px;
  width: 0;
  height: 0;
  transform: translateX(-50%);
  border-left: 19px solid transparent;
  border-right: 19px solid transparent;
  border-bottom: 58px solid #dffaff;
  filter: drop-shadow(0 0 12px rgba(101,231,255,.8));
}
.ship::after {
  content: "";
  position: absolute;
  left: -5px;
  top: 39px;
  width: 10px;
  height: 28px;
  background: linear-gradient(#ff5ecf, transparent);
}
.enemy-dot {
  position: absolute;
  width: 15px;
  height: 11px;
  border-radius: 50% 50% 35% 35%;
  background: var(--pink);
  box-shadow: 0 0 10px rgba(255,94,207,.75);
}
.enemy-dot.e1 { left: 18px; top: 31px; }
.enemy-dot.e2 { right: 16px; top: 43px; background: var(--yellow); }
.enemy-dot.e3 { left: 47px; top: 16px; background: var(--cyan); }

.bubble-art {
  background: radial-gradient(circle at 50% 8%, #223a5f, #10172c 55%, #070b18);
}
.bubble {
  position: absolute;
  width: 29px;
  height: 29px;
  border-radius: 50%;
  box-shadow: inset -7px -8px 11px rgba(0,0,0,.2), inset 5px 5px 8px rgba(255,255,255,.3), 0 0 12px currentColor;
}
.b1 { left: 8px; top: 13px; color: #ff5f73; background: #ff5f73; }
.b2 { left: 39px; top: 13px; color: #65e7ff; background: #65e7ff; }
.b3 { left: 70px; top: 13px; color: #ffe66d; background: #ffe66d; }
.b4 { left: 23px; top: 40px; color: #8d7cff; background: #8d7cff; }
.b5 { left: 54px; top: 40px; color: #7cffb2; background: #7cffb2; }
.b6 { left: 39px; top: 67px; color: #ff8a4c; background: #ff8a4c; }
.cannon {
  position: absolute;
  left: 50%;
  bottom: 12px;
  width: 12px;
  height: 46px;
  transform: translateX(-50%) rotate(0deg);
  transform-origin: 50% 100%;
  border-radius: 8px 8px 2px 2px;
  background: linear-gradient(90deg, #7d8aa4, #e9f1ff, #687590);
  box-shadow: 0 0 12px rgba(101,231,255,.25);
}

.block-art {
  background:
    linear-gradient(rgba(101,231,255,.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(101,231,255,.055) 1px, transparent 1px),
    radial-gradient(circle at 50% 16%, #17294e, #091126 64%, #040711);
  background-size: 18px 18px, 18px 18px, auto;
}
.tetromino {
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 2px;
  box-shadow: inset 2px 2px rgba(255,255,255,.24), inset -2px -2px rgba(0,0,0,.18), 18px 0 currentColor, 36px 0 currentColor;
}
.tetromino::before,
.tetromino::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 2px;
  background: currentColor;
  box-shadow: inset 2px 2px rgba(255,255,255,.24), inset -2px -2px rgba(0,0,0,.18);
}
.t1 { left: 19px; top: 18px; color: #65e7ff; background: currentColor; }
.t1::before { left: 18px; top: 18px; }
.t1::after { display: none; }
.t2 { left: 30px; top: 65px; color: #ffe66d; background: currentColor; box-shadow: inset 2px 2px rgba(255,255,255,.24), inset -2px -2px rgba(0,0,0,.18), 18px 0 currentColor; }
.t2::before { left: 0; top: 18px; }
.t2::after { left: 18px; top: 18px; }
.t3 { left: 11px; top: 110px; color: #ff6680; background: currentColor; box-shadow: inset 2px 2px rgba(255,255,255,.24), inset -2px -2px rgba(0,0,0,.18), 18px 0 currentColor; }
.t3::before { left: 18px; top: -18px; }
.t3::after { left: 36px; top: -18px; }
.t4 { right: 15px; top: 98px; color: #7cffb2; background: currentColor; box-shadow: inset 2px 2px rgba(255,255,255,.24), inset -2px -2px rgba(0,0,0,.18); }
.t4::before { left: 0; top: -18px; }
.t4::after { left: -18px; top: -18px; }

.coming {
  margin: 0 0 26px;
  padding: 15px 16px;
  border: 1px dashed rgba(255,255,255,.11);
  border-radius: 16px;
  color: #71839a;
  font-size: 10px;
  line-height: 1.55;
  text-align: center;
}
footer {
  padding-top: 4px;
  color: #52657b;
  font-size: 9px;
  line-height: 1.55;
  text-align: center;
}

@media (min-width: 620px) {
  .game-list { grid-template-columns: 1fr 1fr; }
  .game-card { grid-template-columns: 120px 1fr; }
}
