:root {
  --bg: #0a0a14;
  --bg-card: #14142b;
  --cyan: #00f0ff;
  --magenta: #ff00ea;
  --purple: #a855f7;
  --text: #e0e0ff;
  --text-dim: #7a7a9a;
  --border: #2a2a4a;
}

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

html, body {
  background: var(--bg);
  color: var(--text);
  font-family: 'VT323', 'Courier New', monospace;
  font-size: 20px;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

.scanlines {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: repeating-linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.15) 0,
    rgba(0, 0, 0, 0.15) 1px,
    transparent 1px,
    transparent 3px
  );
  pointer-events: none;
  z-index: 2;
}

.grid-bg {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image:
    linear-gradient(rgba(0, 240, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 240, 255, 0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 1;
}

header, main, footer {
  position: relative;
  z-index: 3;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

header {
  padding-top: 80px;
  padding-bottom: 60px;
  text-align: center;
}

.logo {
  font-family: 'Press Start 2P', monospace;
  font-size: clamp(32px, 7vw, 64px);
  background: linear-gradient(90deg, var(--cyan), var(--magenta));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 4px;
  text-shadow: 0 0 30px rgba(0, 240, 255, 0.3);
  margin-bottom: 20px;
}

.tagline {
  color: var(--text-dim);
  font-size: 22px;
  letter-spacing: 2px;
}

.section {
  margin-bottom: 80px;
}

.section-title {
  font-family: 'Press Start 2P', monospace;
  font-size: 18px;
  color: var(--cyan);
  margin-bottom: 30px;
  letter-spacing: 2px;
  text-shadow: 0 0 10px rgba(0, 240, 255, 0.5);
}

.bracket {
  color: var(--magenta);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
  position: relative;
}

.card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 4px;
  padding: 1px;
  background: linear-gradient(135deg, transparent, transparent);
  pointer-events: none;
  transition: background 0.3s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--cyan);
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.3), 0 0 40px rgba(255, 0, 234, 0.1);
}

.card-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  background:
    linear-gradient(135deg, rgba(0, 240, 255, 0.05), rgba(255, 0, 234, 0.05)),
    repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(168, 85, 247, 0.03) 10px, rgba(168, 85, 247, 0.03) 20px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  font-size: 14px;
  letter-spacing: 1px;
}

.placeholder .card-thumb::after {
  content: '?';
  font-family: 'Press Start 2P', monospace;
  font-size: 48px;
  color: var(--border);
  opacity: 0.5;
}

.card-body {
  padding: 16px 20px;
}

.card-title {
  font-family: 'Press Start 2P', monospace;
  font-size: 14px;
  color: var(--text);
  margin-bottom: 8px;
  min-height: 14px;
  letter-spacing: 1px;
}

.card-desc {
  color: var(--text-dim);
  font-size: 18px;
  letter-spacing: 1px;
}

footer {
  text-align: center;
  padding: 40px 24px 60px;
  color: var(--text-dim);
  font-size: 18px;
  letter-spacing: 2px;
}

.blink {
  color: var(--cyan);
  animation: blink 1s steps(2) infinite;
}

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

@media (max-width: 600px) {
  header { padding-top: 50px; padding-bottom: 40px; }
  .section { margin-bottom: 50px; }
  .card-grid { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; }
}
