/* ==========================================================
   Mr Duck Gaming — retro arcade theme
   Plain CSS, no external fonts/CDNs. Pixel look is faked with
   monospace stacks, letter-spacing, and hard-edged shadows.
   ========================================================== */

:root {
  --bg: #0b0b14;
  --bg-panel: #12121f;
  --bg-card: #161628;
  --neon-pink: #ff2fb3;
  --neon-cyan: #2ff3ff;
  --neon-yellow: #f6ff2f;
  --neon-green: #39ff88;
  --text-main: #e8e8f4;
  --text-dim: #9a9ac0;
  --border: #2c2c48;
  --font-pixel: "Courier New", Courier, "Lucida Console", monospace;
  --font-body: "Courier New", Courier, monospace;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  background:
    radial-gradient(ellipse at top, #1a1a2e 0%, var(--bg) 60%),
    var(--bg);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.6;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* CRT scanline overlay */
.scanlines {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 999;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.035) 0px,
    rgba(255, 255, 255, 0.035) 1px,
    transparent 1px,
    transparent 3px
  );
  mix-blend-mode: overlay;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ---------------- Header ---------------- */

.site-header {
  border-bottom: 2px solid var(--border);
  background: linear-gradient(180deg, var(--bg-panel), var(--bg));
  padding: 2.25rem 1.5rem 1.75rem;
  text-align: center;
  box-shadow: 0 2px 24px rgba(47, 243, 255, 0.08);
}

.header-inner {
  max-width: 960px;
  margin: 0 auto;
}

.logo {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-pixel);
  font-size: clamp(1.6rem, 5vw, 2.75rem);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.logo-mr {
  color: var(--neon-yellow);
  text-shadow: 0 0 6px rgba(246, 255, 47, 0.7), 0 0 18px rgba(246, 255, 47, 0.35);
}

.logo-duck {
  color: var(--neon-pink);
  text-shadow: 0 0 6px rgba(255, 47, 179, 0.8), 0 0 20px rgba(255, 47, 179, 0.4);
}

.logo-gaming {
  color: var(--neon-cyan);
  text-shadow: 0 0 6px rgba(47, 243, 255, 0.8), 0 0 20px rgba(47, 243, 255, 0.4);
}

.tagline {
  margin: 0.9rem 0 0;
  color: var(--text-dim);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
}

/* ---------------- Hero ---------------- */

.hero {
  max-width: 960px;
  margin: 0 auto;
  padding: 3rem 1.5rem 2rem;
  text-align: center;
}

.glitch {
  font-family: var(--font-pixel);
  font-size: clamp(1.75rem, 6vw, 3rem);
  letter-spacing: 0.15em;
  color: var(--neon-green);
  text-shadow:
    0 0 8px rgba(57, 255, 136, 0.7),
    2px 0 0 rgba(255, 47, 179, 0.6),
    -2px 0 0 rgba(47, 243, 255, 0.6);
  margin: 0;
  animation: flicker 4s infinite steps(1);
}

@keyframes flicker {
  0%, 92%, 100% { opacity: 1; }
  93% { opacity: 0.6; }
  94% { opacity: 1; }
  96% { opacity: 0.75; }
  97% { opacity: 1; }
}

.hero-sub {
  color: var(--text-dim);
  max-width: 620px;
  margin: 1rem auto 0;
  font-size: 0.95rem;
}

/* ---------------- Games section ---------------- */

.games-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.5rem 1.5rem 4rem;
}

.section-title {
  font-family: var(--font-pixel);
  color: var(--neon-cyan);
  letter-spacing: 0.1em;
  font-size: 1.1rem;
  border-bottom: 1px dashed var(--border);
  padding-bottom: 0.75rem;
  margin-bottom: 2rem;
}

.section-title.small {
  font-size: 0.95rem;
}

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

.games-empty {
  color: var(--text-dim);
  font-style: italic;
}

/* ---------------- Game card ---------------- */

.game-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.game-card:hover {
  transform: translateY(-4px);
  border-color: var(--neon-pink);
  box-shadow: 0 0 0 1px var(--neon-pink), 0 8px 24px rgba(255, 47, 179, 0.2);
}

.game-thumb {
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #1c1c33, #10101c);
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--border);
}

.game-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  image-rendering: pixelated;
}

.game-thumb-placeholder {
  font-family: var(--font-pixel);
  font-size: 2rem;
  letter-spacing: 0.3em;
  color: var(--neon-cyan);
  opacity: 0.55;
}

.game-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}

.game-genre {
  align-self: flex-start;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--neon-yellow);
  border: 1px solid rgba(246, 255, 47, 0.4);
  padding: 0.15rem 0.5rem;
  border-radius: 2px;
}

.game-title {
  font-family: var(--font-pixel);
  font-size: 1.15rem;
  letter-spacing: 0.03em;
  margin: 0.25rem 0 0;
  color: var(--text-main);
}

.game-tagline {
  margin: 0;
  font-size: 0.82rem;
  color: var(--neon-pink);
  opacity: 0.9;
}

.game-description {
  margin: 0.25rem 0 0.75rem;
  font-size: 0.88rem;
  color: var(--text-dim);
  flex: 1;
}

.play-button {
  align-self: flex-start;
  font-family: var(--font-pixel);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  padding: 0.55rem 1.1rem;
  border: 1px solid var(--neon-green);
  color: var(--neon-green);
  border-radius: 2px;
  transition: background 0.15s ease, color 0.15s ease;
}

.play-button:hover {
  background: var(--neon-green);
  color: #06110a;
}

.play-button.disabled {
  border-color: var(--text-dim);
  color: var(--text-dim);
  cursor: not-allowed;
}

.play-button.disabled:hover {
  background: none;
  color: var(--text-dim);
}

.game-card.coming-soon {
  opacity: 0.75;
}

/* ---------------- Footer ---------------- */

.site-footer {
  border-top: 2px solid var(--border);
  background: var(--bg-panel);
  padding: 2rem 1.5rem 2.5rem;
}

.footer-inner {
  max-width: 960px;
  margin: 0 auto;
}

.footer-inner p {
  color: var(--text-dim);
  font-size: 0.85rem;
  max-width: 640px;
}

.footer-meta {
  margin-top: 1.25rem;
  font-size: 0.75rem;
  color: #6a6a90;
}

/* ---------------- Responsive tweaks ---------------- */

@media (max-width: 480px) {
  .logo {
    gap: 0.35rem;
  }
  .games-grid {
    grid-template-columns: 1fr;
  }
}
