/* ── Reset ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --green:    #00ff41;
  --green-dim: #00aa2a;
  --dark:     #0a0a0f;
  --card-bg:  #0f0f18;
  --border:   #1e1e30;
  --text:     #c8c8dd;
  --muted:    #555566;
  --font:     'Press Start 2P', monospace;
  --radius:   2px;
}

html { font-size: 10px; }

body {
  font-family: var(--font);
  background: var(--dark);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ── CRT scanlines ───────────────────────────────────────── */
.scanlines {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.15) 2px,
    rgba(0, 0, 0, 0.15) 4px
  );
}

/* ── Layout ──────────────────────────────────────────────── */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 5rem 2.4rem;
}

/* ── Header ──────────────────────────────────────────────── */
.site-header {
  text-align: center;
  margin-bottom: 6rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 2rem;
}

.logo-text {
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  color: var(--green);
  letter-spacing: 0.15em;
  text-shadow:
    0 0 20px rgba(0, 255, 65, 0.7),
    0 0 60px rgba(0, 255, 65, 0.3);
}

.cursor {
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  color: var(--green);
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

.tagline {
  font-size: 1.1rem;
  color: var(--green-dim);
  letter-spacing: 0.5em;
}

/* ── Games grid ──────────────────────────────────────────── */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 2.8rem;
}

/* ── Game card ───────────────────────────────────────────── */
.game-card {
  background: var(--card-bg);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
  position: relative;
  display: flex;
  flex-direction: column;
}

.card-live {
  cursor: pointer;
}

.card-live:hover {
  border-color: var(--green);
  transform: translateY(-5px);
  box-shadow:
    0 10px 30px rgba(0, 255, 65, 0.15),
    0 0 0 1px rgba(0, 255, 65, 0.25);
}

.card-live:hover .card-title {
  color: var(--green);
}

.card-inactive {
  opacity: 0.72;
}

/* ── Thumbnail ───────────────────────────────────────────── */
.card-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--q-bg, #0a0a1a);
}

.card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.thumb-placeholder {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(45deg, rgba(0,0,0,0.4) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(0,0,0,0.4) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, rgba(0,0,0,0.4) 75%),
    linear-gradient(-45deg, transparent 75%, rgba(0,0,0,0.4) 75%);
  background-size: 20px 20px;
  background-position: 0 0, 0 10px, 10px -10px, -10px 0;
  opacity: 0.35;
}

.quality-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 0.85rem;
  font-family: var(--font);
  border: 2px solid currentColor;
  padding: 4px 7px;
  letter-spacing: 0.05em;
  background: rgba(0, 0, 0, 0.75);
  z-index: 1;
  line-height: 1;
}

/* ── Card body ───────────────────────────────────────────── */
.card-body {
  padding: 1.8rem 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  flex: 1;
}

.card-title {
  font-size: 1.2rem;
  color: var(--text);
  letter-spacing: 0.05em;
  line-height: 1.6;
  transition: color 0.15s ease;
}

.card-desc {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 2;
}

.card-status {
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  align-self: flex-start;
  padding: 5px 9px;
  border-radius: var(--radius);
  border: 1px solid;
  line-height: 1;
  margin-top: auto;
}

.status-live {
  color: var(--green);
  background: rgba(0, 255, 65, 0.08);
  border-color: rgba(0, 255, 65, 0.35);
}

.status-soon {
  color: #ffaa44;
  background: rgba(255, 170, 68, 0.08);
  border-color: rgba(255, 170, 68, 0.35);
}

.status-wip {
  color: #44aaff;
  background: rgba(68, 170, 255, 0.08);
  border-color: rgba(68, 170, 255, 0.35);
}

/* ── States ──────────────────────────────────────────────── */
.loading-text,
.empty-text {
  text-align: center;
  color: var(--green-dim);
  font-size: 1.2rem;
  padding: 6rem 2rem;
  letter-spacing: 0.25em;
}

/* ── Footer ──────────────────────────────────────────────── */
.site-footer {
  margin-top: 7rem;
  padding-top: 2.4rem;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
  letter-spacing: 0.12em;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 600px) {
  .container   { padding: 3rem 1.6rem; }
  .games-grid  { grid-template-columns: 1fr; }
  .site-header { margin-bottom: 4rem; }
}
