﻿@font-face {
  font-family: "PressStart";
  src: url("fonts/prstart.ttf") format("truetype");
  font-display: swap;
}

:root {
  --bg: #020202;
  --panel: rgba(5, 5, 5, 0.84);
  --panel-border: #1eff5f;
  --text: #f5f5f5;
  --accent: #ffe14d;
  --link: #57e2ff;
}

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

html,
body {
  width: 100%;
  height: 100%;
}

body {
  font-family: "PressStart", monospace;
  background: var(--bg);
  color: var(--text);
  position: relative;
  overflow: hidden;
}

.stars {
  position: fixed;
  inset: -200%;
  background-repeat: repeat;
  pointer-events: none;
}

.stars-back {
  background-image:
    radial-gradient(1px 1px at 20px 30px, #ffffff, transparent 60%),
    radial-gradient(1px 1px at 120px 80px, #d1f7ff, transparent 60%),
    radial-gradient(1px 1px at 200px 140px, #ffffff, transparent 60%),
    radial-gradient(1px 1px at 300px 200px, #f7ffd1, transparent 60%);
  background-size: 320px 240px;
  opacity: 0.35;
  animation: driftBack 120s linear infinite;
}

.stars-mid {
  background-image:
    radial-gradient(2px 2px at 40px 10px, #ffffff, transparent 62%),
    radial-gradient(2px 2px at 170px 100px, #78d6ff, transparent 62%),
    radial-gradient(2px 2px at 240px 180px, #ffffff, transparent 62%),
    radial-gradient(2px 2px at 340px 210px, #ffd5f5, transparent 62%);
  background-size: 380px 260px;
  opacity: 0.55;
  animation: driftMid 70s linear infinite;
}

.stars-front {
  background-image:
    radial-gradient(3px 3px at 20px 20px, #ffffff, transparent 65%),
    radial-gradient(3px 3px at 140px 120px, #66ecff, transparent 65%),
    radial-gradient(3px 3px at 220px 190px, #ffffff, transparent 65%),
    radial-gradient(3px 3px at 360px 240px, #fff28d, transparent 65%);
  background-size: 420px 300px;
  opacity: 0.8;
  animation: driftFront 35s linear infinite;
}

.screen {
  width: 100%;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 18px;
}

.panel {
  width: min(980px, 100%);
  max-height: calc(100vh - 36px);
  overflow: auto;
  background: var(--panel);
  border: 3px solid var(--panel-border);
  box-shadow: 0 0 0 3px #000, 0 0 22px rgba(30, 255, 95, 0.45);
  border-radius: 12px;
  padding: 24px;
  text-align: center;
}

.logo {
  width: min(320px, 85%);
  image-rendering: pixelated;
  margin-bottom: 20px;
}

h1 {
  font-size: clamp(18px, 2.5vw, 30px);
  margin-bottom: 14px;
  line-height: 1.4;
  color: var(--accent);
  text-shadow: 0 0 10px rgba(255, 225, 77, 0.35);
}

.subtitle {
  font-size: clamp(11px, 1.45vw, 15px);
  line-height: 1.8;
  margin-bottom: 28px;
}

h2 {
  font-size: clamp(15px, 2vw, 22px);
  margin-bottom: 18px;
  color: var(--panel-border);
}

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

.game-card {
  display: grid;
  grid-template-columns: 108px 1fr;
  grid-template-areas:
    "banner content"
    "link link";
  gap: 12px 14px;
  align-items: start;
  border: 2px solid #2a2a2a;
  background: rgba(0, 0, 0, 0.58);
  padding: 14px;
  text-align: left;
}

.game-banner {
  grid-area: banner;
  display: block;
  width: 100%;
  height: auto;
  max-height: 88px;
  object-fit: contain;
  justify-self: start;
  align-self: start;
  image-rendering: pixelated;
}

.game-content {
  grid-area: content;
  min-width: 0;
}

.game-card h3 {
  font-size: clamp(13px, 1.6vw, 16px);
  margin-bottom: 10px;
  color: #ffffff;
}

.game-card p {
  font-size: clamp(10px, 1.15vw, 12px);
  line-height: 1.7;
  margin-bottom: 0;
  color: #e6e6e6;
}

.game-card a,
.social a {
  color: var(--link);
  text-decoration: none;
  border-bottom: 1px dashed var(--link);
  font-size: clamp(10px, 1.1vw, 12px);
}

.game-card > a {
  grid-area: link;
  justify-self: stretch;
  display: block;
  width: 100%;
  text-align: center;
  padding: 9px 12px;
  font-size: clamp(12px, 1.4vw, 15px);
}

.game-card a:hover,
.social a:hover {
  color: #fff;
  border-bottom-color: #fff;
}

.social {
  margin-top: 22px;
  font-size: clamp(10px, 1.15vw, 12px);
  line-height: 1.8;
}

@keyframes driftBack {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(260px, 220px, 0); }
}

@keyframes driftMid {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-360px, 280px, 0); }
}

@keyframes driftFront {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(580px, 380px, 0); }
}

@media (max-width: 900px) {
  .screen {
    padding: 12px;
  }

  .panel {
    max-height: calc(100vh - 24px);
    padding: 18px;
    border-width: 2px;
  }

  .games {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  body {
    overflow: auto;
  }

  .screen {
    align-items: start;
    padding: 10px;
  }

  .panel {
    max-height: none;
    padding: 14px;
    border-radius: 10px;
  }

  .logo {
    width: min(260px, 92%);
    margin-bottom: 14px;
  }

  h1 {
    margin-bottom: 10px;
    line-height: 1.35;
  }

  .subtitle {
    margin-bottom: 18px;
    line-height: 1.6;
  }

  h2 {
    margin-bottom: 12px;
  }

  .games {
    gap: 12px;
  }

  .game-card {
    grid-template-columns: 88px 1fr;
    grid-template-areas:
      "banner content"
      "link link";
    gap: 10px;
    padding: 12px;
  }

  .game-banner {
    width: 100%;
    max-height: 64px;
  }

  .game-card > a {
    font-size: clamp(7px, 2.45vw, 10px);
    white-space: nowrap;
    letter-spacing: 0;
    line-height: 1.1;
    padding: 8px 4px;
  }

  .social {
    margin-top: 16px;
    line-height: 1.6;
  }
}





