/* ═══════════════════════════════════════════════════════
   happysays.css — shared design system
   All pages include this file.
   Page-specific styles go in a <style> block on the page.
═══════════════════════════════════════════════════════ */

/* VARIABLES */
:root {
  --bg-deep:    #0a0c14;
  --bg-mid:     #111526;
  --bg-card:    #161c32;
  --neon-green: #f5c400;
  --neon-pink:  #ff8c00;
  --neon-blue:  #3d9bff;
  --neon-yellow:#ffe94e;
  --text-main:  #e8eaf6;
  --text-muted: #8892b0;
  --pixel:      'Press Start 2P', monospace;
  --body-font:  'Barlow', sans-serif;
  --radius:     4px;
}

/* RESET */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg-deep);
  color: var(--text-main);
  font-family: var(--body-font);
  font-size: 1rem;
  line-height: 1.6;
  overflow-x: hidden;
  padding: 0;
}

/* SCANLINE OVERLAY */
body::before {
  content: '';
  position: fixed; inset: 0;
  background: repeating-linear-gradient(
    to bottom, transparent, transparent 3px,
    rgba(0,0,0,.18) 3px, rgba(0,0,0,.18) 4px
  );
  pointer-events: none;
  z-index: 9999;
}

/* LINKS */
a { color: var(--neon-green); text-decoration: none; }
a:hover { color: var(--neon-pink); text-decoration: none; }

/* NAVBAR */
.navbar {
  background: rgba(10,12,20,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(245,196,0,.15);
  padding: .75rem 1rem;
}
.navbar-brand { padding: 0; }
.navbar-brand img { height: 35px; }

.navbar-toggler { border-color: rgba(245,196,0,.4); }
.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(245,196,0,0.8)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}
.nav-link {
  font-family: var(--pixel); font-size: .5rem;
  color: var(--text-muted) !important; letter-spacing: .1em;
  padding: .5rem .9rem !important; transition: color .2s;
}
.nav-link:hover, .nav-link.active { color: var(--neon-green) !important; }

/* PAGE HERO (interior pages) */
.page-hero {
  padding: 8rem 0 4rem;
  background:
    radial-gradient(ellipse 70% 60% at 50% 40%, rgba(61,155,255,.1) 0%, transparent 70%),
    var(--bg-deep);
  position: relative; overflow: hidden;
}
.page-hero::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0; height: 40%;
  background:
    linear-gradient(rgba(61,155,255,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(61,155,255,.06) 1px, transparent 1px);
  background-size: 40px 40px;
  transform: perspective(400px) rotateX(60deg);
  transform-origin: bottom center;
  animation: gridScroll 6s linear infinite;
}
@keyframes gridScroll {
  from { background-position: 0 0; }
  to   { background-position: 0 40px; }
}
.page-hero-content { position: relative; z-index: 2; }

/* SECTION LABELS */
.section-label {
  font-family: var(--pixel); font-size: .45rem;
  color: var(--neon-green); letter-spacing: .3em; margin-bottom: .75rem;
}
.section-title {
  font-family: var(--pixel);
  font-size: clamp(.85rem, 2.5vw, 1.5rem);
  line-height: 1.6; margin-bottom: .5rem;
}
.section-line {
  width: 48px; height: 3px;
  background: linear-gradient(90deg, var(--neon-green), var(--neon-pink));
  margin-bottom: 2rem; border-radius: 2px;
}

/* BUTTONS */
.btn-arcade {
  font-family: var(--pixel); font-size: .55rem;
  letter-spacing: .1em; padding: .85rem 1.75rem;
  border-radius: var(--radius);
  border: 2px solid var(--neon-green);
  color: var(--bg-deep); background: var(--neon-green);
  box-shadow: 0 0 18px rgba(245,196,0,.45);
  transition: transform .15s, box-shadow .15s;
  display: inline-block;
}
.btn-arcade:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 28px rgba(245,196,0,.7);
  color: var(--bg-deep);
}
.btn-arcade-ghost {
  background: transparent;
  color: var(--neon-pink) !important;
  border-color: var(--neon-pink);
  box-shadow: 0 0 14px rgba(255,140,0,.25);
}
.btn-arcade-ghost:hover { box-shadow: 0 0 26px rgba(255,140,0,.55); }

/* GAME CARDS */
.game-card {
  background: var(--bg-card);
  border: 1px solid rgba(245,196,0,.12);
  border-radius: var(--radius); overflow: hidden;
  transition: transform .2s, border-color .2s, box-shadow .2s;
  height: 100%;
}
.game-card:hover {
  transform: translateY(-6px);
  border-color: rgba(245,196,0,.4);
  box-shadow: 0 12px 40px rgba(0,0,0,.4);
}
.game-card-img, .game-card-img-placeholder {
  width: 100%; aspect-ratio: 16/9;
  display: flex; align-items: center;
  justify-content: center; font-size: 3rem;
}
.game-card-body { padding: 1.25rem; }
.game-tag {
  font-family: var(--pixel); font-size: .38rem;
  letter-spacing: .12em; color: var(--neon-yellow);
  border: 1px solid rgba(255,233,78,.3);
  padding: .2rem .5rem; border-radius: 2px;
  display: inline-block; margin-bottom: .75rem;
}
.game-title { font-weight: 700; font-size: 1.1rem; margin-bottom: .4rem; }
.game-desc  { font-size: .9rem; color: var(--text-muted); margin-bottom: 1rem; }
.game-link, .game-cta {
  font-family: var(--pixel); font-size: .42rem;
  color: var(--neon-green); letter-spacing: .1em;
}
.game-link::after, .game-cta::after { content: ' →'; }
.game-link:hover, .game-cta:hover { color: var(--neon-pink); }
.game-card:hover .game-cta { color: var(--neon-pink); }

/* PLATFORM BADGES */
.platform-badge {
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--bg-deep);
  border: 1px solid rgba(245,196,0,.2);
  border-radius: var(--radius);
  padding: .5rem 1rem;
  font-size: .85rem; color: var(--text-muted);
  margin: .25rem;
}
.platform-badge strong { color: var(--text-main); }

/* FOOTER */
footer {
  background: var(--bg-deep);
  border-top: 1px solid rgba(245,196,0,.1);
  padding: 2rem 0;
  font-size: .75rem; color: var(--text-muted);
  text-align: center; margin: 0;
}
footer a { color: var(--neon-green); }
footer a:hover { color: var(--neon-pink); }
.footer-pixel {
  font-family: 'Press Start 2P', monospace; font-size: .38rem;
  color: rgba(245,196,0,.3); letter-spacing: .15em; margin-top: .5rem;
}
