/* ── Reset ─────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html, body {
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

/* ── Sim Background ────────────────────────────────── */
.sim-bg {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.6;
}

/* ── Base ──────────────────────────────────────────── */
html {
  background: #05050a;
  color: #aaa;
  font-family: 'Courier New', 'Lucida Console', monospace;
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* ── Scene (full viewport container) ───────────────── */
.scene {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

/* ── Header / Logo ─────────────────────────────────── */
header {
  text-align: center;
  margin-bottom: 50px;
  position: relative;
  z-index: 1;
}
.logo {
  font-family: 'Silkscreen', monospace;
  font-size: 64px;
  font-weight: 700;
  line-height: 1.1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  cursor: default;
  animation: logoIn 1s ease-out both;
}
.logo-forty {
  color: #ff6;
  text-shadow:
    0 0 20px rgba(255, 255, 100, 0.4),
    0 0 60px rgba(255, 255, 100, 0.15);
  transition: text-shadow 0.3s, transform 0.3s;
  display: inline-block;
}
.logo-games {
  color: #666;
  font-size: 48px;
  letter-spacing: 8px;
  transition: color 0.3s, letter-spacing 0.4s;
}
.logo:hover .logo-forty {
  text-shadow:
    0 0 30px rgba(255, 255, 100, 0.7),
    0 0 80px rgba(255, 255, 100, 0.3),
    0 0 120px rgba(255, 255, 100, 0.1);
  transform: scale(1.03);
}
.logo:hover .logo-games {
  color: #999;
  letter-spacing: 14px;
}

@keyframes logoIn {
  0%   { opacity: 0; transform: translateY(-20px) scale(0.95); filter: blur(8px); }
  100% { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}

.tagline {
  color: #333;
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-top: 16px;
  animation: fadeUp 1s 0.4s ease-out both;
}
@keyframes fadeUp {
  0%   { opacity: 0; transform: translateY(10px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* ── Games section ─────────────────────────────────── */
.games {
  width: 100%;
  max-width: 620px;
  position: relative;
  z-index: 1;
  animation: fadeUp 0.8s 0.6s ease-out both;
}

/* ── Game Card ─────────────────────────────────────── */
.card {
  position: relative;
  display: block;
  text-decoration: none;
  color: inherit;
  border-radius: 4px;
  transition: transform 0.25s ease;
}
.card:hover {
  transform: translateY(-3px);
}
.card:active {
  transform: translateY(0) scale(0.99);
  transition-duration: 0.08s;
}

/* Glow behind card on hover */
.card-glow {
  position: absolute;
  inset: -1px;
  border-radius: 5px;
  background: linear-gradient(135deg, rgba(255,255,100,0.15), rgba(100,255,200,0.1), rgba(100,200,255,0.1));
  opacity: 0;
  transition: opacity 0.4s;
  z-index: 0;
  filter: blur(1px);
}
.card:hover .card-glow {
  opacity: 1;
}

.card-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 24px;
  background: #0a0a14;
  border: 1px solid #1a1a2a;
  border-radius: 4px;
  padding: 24px;
  transition: border-color 0.3s, background 0.3s;
}
.card:hover .card-inner {
  border-color: #2a2a40;
  background: #0d0d18;
}

/* Icon */
.card-icon {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #07070e;
  border: 1px solid #1a1a2a;
  border-radius: 3px;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.card:hover .card-icon {
  border-color: #ff6;
  box-shadow: 0 0 20px rgba(255,255,100,0.08);
}
.card-icon pre {
  font-size: 11px;
  line-height: 1.15;
  color: #ff6;
  white-space: pre;
  font-family: 'Courier New', monospace;
}
.card-icon .hi { color: #ff6; }
.card-icon .dim { color: #444; }

/* Body */
.card-body h2 {
  font-family: 'Silkscreen', monospace;
  font-size: 20px;
  color: #eee;
  margin-bottom: 2px;
  transition: color 0.2s;
}
.card:hover .card-body h2 {
  color: #ff6;
}
.card-genre {
  font-size: 10px;
  color: #444;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 8px;
}
.card-desc {
  font-size: 13px;
  color: #555;
  line-height: 1.5;
  margin-bottom: 12px;
}

/* Meta pills */
.card-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 3px 10px;
  border-radius: 2px;
  border: 1px solid #1a1a2a;
}
.pill.live {
  color: #6f6;
  border-color: #1a3a1a;
  background: #0a160a;
}
.pill.players {
  color: #6ff;
  border-color: #1a2a3a;
  background: #0a1018;
}

/* Live pulse dot */
.pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #6f6;
  display: inline-block;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(100,255,100,0.5); }
  50%      { opacity: 0.6; box-shadow: 0 0 0 6px rgba(100,255,100,0); }
}

/* Arrow */
.card-arrow {
  flex-shrink: 0;
  font-size: 24px;
  color: #222;
  transition: color 0.3s, transform 0.3s;
  font-family: 'Silkscreen', monospace;
}
.card:hover .card-arrow {
  color: #ff6;
  transform: translateX(6px);
}

/* ── Footer ────────────────────────────────────────── */
footer {
  margin-top: 60px;
  text-align: center;
  font-size: 10px;
  color: #222;
  letter-spacing: 1px;
  position: relative;
  z-index: 1;
  animation: fadeUp 0.8s 0.8s ease-out both;
}

/* ── Responsive ────────────────────────────────────── */
@media (max-width: 520px) {
  .logo { font-size: 44px; }
  .logo-games { font-size: 32px; letter-spacing: 4px; }
  .logo:hover .logo-games { letter-spacing: 8px; }
  header { margin-bottom: 36px; }
  .card-inner { padding: 16px; gap: 16px; }
  .card-icon { width: 64px; height: 64px; }
  .card-icon pre { font-size: 9px; }
  .card-body h2 { font-size: 17px; }
  .card-arrow { display: none; }
}
