@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&family=Silkscreen:wght@400;700&display=swap');

:root {
  --bg: #0c0e16;
  --surface: #161926;
  --surface-hi: #1f2438;
  --border: #363e5c;
  --text: #f8fafc;
  --muted: #9aa6c4;
  --red: #d93829;
  --gold: #ffd166;
  --green: #52e069;
  --font-px: 'Press Start 2P', monospace;
  --font-ui: 'Silkscreen', monospace;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  background: radial-gradient(circle at 50% 0%, #1d2238 0%, #0c0e16 65%);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(12, 14, 22, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 2px solid rgba(255, 255, 255, 0.08);
}

.header-inner {
  max-width: 1060px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #fff;
}

.logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--red);
  border: 2px solid #fff6e5;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  box-shadow: 3px 3px 0 #07080d;
}

.logo-text {
  font-family: var(--font-px);
  font-size: 15px;
  letter-spacing: 0.6px;
}

.logo-text span {
  color: var(--gold);
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header-nav a {
  font-family: var(--font-ui);
  font-size: 12px;
  color: var(--muted);
  text-decoration: none;
}

.header-nav a:hover { color: #fff; }

.header-nav .nav-cta {
  background: var(--red);
  color: #fff6e5;
  border: 2px solid #fff6e5;
  border-radius: 8px;
  padding: 7px 12px;
  box-shadow: 2px 2px 0 #07080d;
}

/* Main */
.page-wrap {
  max-width: 1060px;
  margin: 0 auto;
  padding: 32px 20px 64px;
}

/* Hero Spotlight */
.hero-spotlight {
  display: grid;
  grid-template-columns: 1.15fr 0.95fr;
  gap: 28px;
  align-items: center;
  background: var(--surface);
  border: 3px solid #f4ecd8;
  border-radius: 18px;
  padding: 28px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 8px 8px 0 #07080d;
  margin-bottom: 44px;
}

.eyebrow {
  font-family: var(--font-px);
  font-size: 9px;
  color: var(--gold);
  margin-bottom: 12px;
  letter-spacing: 0.8px;
}

.hero-title {
  font-family: var(--font-px);
  font-size: clamp(22px, 3.6vw, 34px);
  line-height: 1.3;
  margin: 0 0 14px;
  color: #fff6e5;
  text-shadow: 3px 3px 0 var(--red);
}

.hero-desc {
  color: #d6deed;
  font-size: 15px;
  line-height: 1.65;
  margin: 0 0 18px;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}

.hero-tags span {
  font-family: var(--font-ui);
  font-size: 11px;
  color: #e2e8f0;
  background: rgba(255, 255, 255, 0.07);
  border: 1.5px solid var(--border);
  border-radius: 7px;
  padding: 4px 9px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn-primary, .btn-secondary {
  font-family: var(--font-px);
  font-size: 11px;
  text-decoration: none;
  padding: 13px 18px;
  border-radius: 9px;
  border: 3px solid #fff6e5;
  box-shadow: 4px 4px 0 #07080d;
  transition: transform 0.08s, filter 0.1s;
  display: inline-block;
}

.btn-primary {
  background: var(--red);
  color: #fff6e5;
}

.btn-secondary {
  background: var(--surface-hi);
  color: #e2e8f0;
  border-color: var(--border);
}

.btn-primary:hover, .btn-secondary:hover { filter: brightness(1.12); }
.btn-primary:active, .btn-secondary:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 #07080d; }

/* Animated Pixel Preview Box */
.hero-preview {
  position: relative;
  border: 3px solid #090a10;
  border-radius: 12px;
  overflow: hidden;
  background: #6ec6ff;
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.25);
}

#previewCanvas {
  width: 100%;
  height: auto;
  display: block;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

.preview-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  font-family: var(--font-px);
  font-size: 8px;
  background: rgba(12, 14, 22, 0.8);
  color: var(--gold);
  border: 1.5px solid rgba(255, 209, 102, 0.5);
  padding: 5px 8px;
  border-radius: 6px;
}

/* Games Catalog Section */
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
  border-bottom: 2px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 10px;
}

.section-head h2 {
  font-family: var(--font-px);
  font-size: 14px;
  margin: 0;
  color: var(--gold);
}

.game-count {
  font-family: var(--font-ui);
  font-size: 12px;
  color: var(--muted);
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 20px;
}

.game-card {
  background: var(--surface);
  border: 2.5px solid var(--border);
  border-radius: 14px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  box-shadow: 5px 5px 0 #07080d;
  transition: transform 0.1s, border-color 0.15s;
}

.game-card.live:hover {
  transform: translateY(-3px);
  border-color: var(--gold);
}

.game-card.soon {
  opacity: 0.72;
  border-style: dashed;
}

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.card-emoji {
  font-size: 28px;
}

.status-pill {
  font-family: var(--font-px);
  font-size: 8px;
  padding: 5px 8px;
  border-radius: 6px;
  background: rgba(82, 224, 105, 0.16);
  color: var(--green);
  border: 1px solid rgba(82, 224, 105, 0.45);
}

.status-pill.soon {
  background: rgba(255, 209, 102, 0.12);
  color: var(--gold);
  border-color: rgba(255, 209, 102, 0.35);
}

.card-title {
  font-family: var(--font-px);
  font-size: 13px;
  margin: 0 0 6px;
  color: #fff6e5;
}

.card-desc {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.55;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.card-url {
  font-family: var(--font-ui);
  font-size: 10px;
  color: #74c0fc;
}

.card-play {
  font-family: var(--font-px);
  font-size: 9px;
  text-decoration: none;
  background: var(--red);
  color: #fff6e5;
  padding: 8px 12px;
  border-radius: 7px;
  border: 2px solid #fff6e5;
}

.card-play.disabled {
  background: #252a3d;
  color: var(--muted);
  border-color: var(--border);
  pointer-events: none;
}

/* Footer */
.site-footer {
  border-top: 2px solid rgba(255, 255, 255, 0.08);
  padding: 22px 20px;
  color: var(--muted);
  font-size: 13px;
}

.footer-inner {
  max-width: 1060px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-links {
  display: flex;
  gap: 18px;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
}

.footer-links a:hover { color: var(--gold); }

@media (max-width: 780px) {
  .hero-spotlight {
    grid-template-columns: 1fr;
    padding: 20px;
  }
  .header-nav a:first-child {
    display: none;
  }
}
