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

/* ── Tokens ── */
:root {
  --bg:       #080809;
  --surface:  #111114;
  --surface2: #1a1a20;
  --accent:   #e8ff00;
  --accent2:  #ff3c6e;
  --text:     #f0f0f0;
  --muted:    #555;
  --border:   rgba(232,255,0,.12);
  --pixel:    'Press Start 2P', monospace;
  --body:     'Rajdhani', sans-serif;
  --radius:   4px;
}

/* ── Base ── */
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 1rem;
  line-height: 1.6;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  position: relative;
}

/* ── Texture overlays ── */
.noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 128px 128px;
  z-index: 50;
}

.scanlines {
  pointer-events: none;
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    transparent,
    transparent 3px,
    rgba(0,0,0,.12) 3px,
    rgba(0,0,0,.12) 4px
  );
  z-index: 51;
}

/* ── Header ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .75rem 2rem;
  background: rgba(8,8,9,.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-logo img {
  height: 36px;
  image-rendering: pixelated;
  display: block;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.site-nav a {
  font-family: var(--pixel);
  font-size: .5rem;
  color: var(--muted);
  text-decoration: none;
  letter-spacing: .05em;
  transition: color .2s;
}

.site-nav a:hover { color: var(--accent); }

.nav-yt {
  display: flex !important;
  align-items: center;
  gap: .4rem;
  color: var(--accent) !important;
  border: 1px solid var(--accent);
  padding: .35rem .75rem;
  border-radius: var(--radius);
  transition: background .2s, color .2s !important;
}

.nav-yt:hover {
  background: var(--accent) !important;
  color: var(--bg) !important;
}

.nav-yt svg { flex-shrink: 0; }

.nav-games {
  display: flex;
  align-items: center;
  gap: .4rem;
}

.nav-games-icon { display: none; }

/* ── Language switcher ── */
.lang-switcher {
  display: flex;
  gap: .35rem;
  margin-left: .5rem;
  border-left: 1px solid var(--border);
  padding-left: 1rem;
}

.lang-btn {
  display: flex;
  align-items: center;
  gap: .35rem;
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: .3rem .5rem;
  cursor: pointer;
  color: var(--muted);
  font-family: var(--pixel);
  font-size: .45rem;
  letter-spacing: .05em;
  transition: color .2s, border-color .2s, background .2s;
}

.lang-btn svg {
  width: 22px;
  height: 11px;
  border-radius: 2px;
  flex-shrink: 0;
  box-shadow: 0 0 0 1px rgba(255,255,255,.1);
}

.lang-btn:hover {
  color: var(--text);
  border-color: var(--border);
}

.lang-btn.active {
  color: var(--accent);
  border-color: rgba(232,255,0,.35);
  background: rgba(232,255,0,.05);
}

/* ── Section title ── */
.section-title {
  font-family: var(--pixel);
  font-size: clamp(.6rem, 1.5vw, .8rem);
  color: var(--muted);
  letter-spacing: .1em;
  margin-bottom: 2.5rem;
}

.section-title span { color: var(--accent); }

/* ── Hero (landing) ── */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100dvh - 65px);
  overflow: hidden;
}

/* ── Scroll hint ── */
.scroll-hint {
  position: absolute;
  bottom: 1.75rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color .2s;
  animation: bounce 2s ease-in-out infinite;
}

.scroll-hint:hover { color: var(--accent); }

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(6px); }
}

.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
  z-index: 0;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.75rem;
  padding: 4rem 1.5rem;
  text-align: center;
}

.hero-banner {
  width: clamp(280px, 65vw, 520px);
  image-rendering: pixelated;
  filter: drop-shadow(0 0 30px rgba(232,255,0,.35)) drop-shadow(0 0 60px rgba(232,255,0,.1));
  animation: glow-pulse 4s ease-in-out infinite;
}

.hero-tagline {
  font-family: var(--pixel);
  font-size: clamp(.5rem, 1.8vw, .7rem);
  color: var(--muted);
  letter-spacing: .25em;
  text-transform: uppercase;
}

.hero-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
}

.badge-label {
  font-family: var(--pixel);
  font-size: .45rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
}

.google-play-badge {
  height: 56px;
  transition: transform .2s, filter .2s;
  filter: drop-shadow(0 0 8px rgba(232,255,0,.15));
}

.google-play-badge:hover {
  transform: scale(1.05);
  filter: drop-shadow(0 0 16px rgba(232,255,0,.4));
}

/* ── Games section ── */
.games-section {
  padding: 5rem 2rem;
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
}

.games-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
}

.game-card {
  display: block;
  text-decoration: none;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .25s, border-color .25s, box-shadow .25s;
  width: clamp(280px, 40%, 360px);
}

.game-card:hover {
  transform: translateY(-4px);
  border-color: rgba(232,255,0,.35);
  box-shadow: 0 12px 40px rgba(232,255,0,.08);
}

.game-card-img {
  position: relative;
  width: 100%;
  height: 320px;
  overflow: hidden;
}

.game-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform .4s;
}

.game-card:hover .game-card-img img { transform: scale(1.04); }

.game-card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(232,255,0,.08);
  display: grid;
  place-items: center;
  opacity: 0;
  transition: opacity .25s;
}

.game-card-overlay span {
  font-family: var(--pixel);
  font-size: .55rem;
  color: var(--accent);
  letter-spacing: .1em;
  border: 1px solid var(--accent);
  padding: .5rem 1rem;
}

.game-card:hover .game-card-overlay { opacity: 1; }

.game-card-body {
  padding: 1.25rem 1.5rem;
}

.game-card-body h3 {
  font-family: var(--pixel);
  font-size: .6rem;
  margin-bottom: .6rem;
  color: var(--accent);
  line-height: 1.6;
}

.game-card-body p {
  font-size: .95rem;
  color: var(--muted);
  margin-bottom: 1rem;
  line-height: 1.5;
}

.game-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
}

.game-card-tags span {
  font-family: var(--pixel);
  font-size: .4rem;
  padding: .25rem .6rem;
  border: 1px solid var(--border);
  color: var(--muted);
  letter-spacing: .05em;
}

/* ── Footer ── */
.site-footer {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  padding: 1.5rem 2rem;
  border-top: 1px solid var(--border);
  font-family: var(--pixel);
  font-size: .45rem;
  color: var(--muted);
  letter-spacing: .08em;
}

.site-footer a {
  color: var(--muted);
  text-decoration: none;
  transition: color .2s;
}

.site-footer a:hover { color: var(--accent); }

.footer-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

/* ── Animations ── */
@keyframes glow-pulse {
  0%, 100% { filter: drop-shadow(0 0 30px rgba(232,255,0,.35)) drop-shadow(0 0 60px rgba(232,255,0,.1)); }
  50%       { filter: drop-shadow(0 0 50px rgba(232,255,0,.55)) drop-shadow(0 0 90px rgba(255,60,110,.15)); }
}

/* ── Responsive ── */
@media (max-width: 600px) {
  .site-header { padding: .6rem .85rem; gap: .5rem; }
  .games-section { padding: 3rem 1rem; }
  .site-footer { flex-direction: column; align-items: flex-start; }

  /* Games link: show icon, hide label */
  .nav-games-label { display: none; }
  .nav-games-icon { display: block; }

  /* YouTube: icon only, no text */
  .nav-yt span { display: none; }
  .nav-yt { padding: .35rem .5rem; }

  /* tighter lang switcher */
  .lang-switcher { padding-left: .6rem; gap: .25rem; }
  .lang-btn span { display: none; }
  .lang-btn { padding: .3rem .35rem; }
  .lang-btn svg { width: 26px; height: 13px; }
}

@media (max-width: 380px) {
  .header-logo img { height: 28px; }
  .nav-yt svg { width: 16px; height: 16px; }
}
