/* ============================================
   SmartSpot Pro — Mobile-First Game Site
   Dark gaming aesthetic, touch-optimized
   ============================================ */

:root {
  --bg:        #0d0d1a;
  --bg2:       #12122a;
  --card:      #1a1a35;
  --card2:     #20204a;
  --border:    rgba(255,255,255,0.08);
  --accent:    #6c63ff;
  --accent2:   #ff6584;
  --accent3:   #00d4aa;
  --text:      #e8e8f0;
  --muted:     #8888aa;
  --radius:    14px;
  --radius-sm: 8px;
  --shadow:    0 4px 24px rgba(0,0,0,0.5);
  --nav-h:     56px;
  --bot-h:     64px;
  --safe-bot:  env(safe-area-inset-bottom, 0px);
}

/* ── Reset ────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-tap-highlight-color: transparent; }
body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100dvh;
  padding-bottom: calc(var(--bot-h) + var(--safe-bot));
}
@media (min-width: 768px) { body { padding-bottom: 0; } }

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent2); }
img { display: block; max-width: 100%; }

/* ── Top Header ───────────────────────────── */
.site-header {
  background: rgba(13,13,26,0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
  position: sticky;
  top: 0;
  z-index: 200;
}
.site-logo {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  letter-spacing: -0.02em;
}
.site-logo .logo-sub { color: var(--muted); font-weight: 400; font-size: 0.85rem; }

.site-nav { display: none; gap: 1.5rem; align-items: center; }
@media (min-width: 768px) {
  .site-nav { display: flex; }
  .site-nav a { color: var(--muted); font-size: 0.9rem; transition: color 0.2s; }
  .site-nav a:hover, .site-nav a.active { color: var(--accent); }
}

.lang-switcher {
  display: flex;
  gap: 2px;
  background: var(--card);
  border-radius: 8px;
  padding: 3px;
}
.lang-switcher a {
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
  transition: all 0.2s;
  white-space: nowrap;
}
.lang-switcher a.active,
.lang-switcher a:hover { background: var(--accent); color: #fff; }

/* ── Bottom Navigation (mobile only) ────────── */
.bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: rgba(18,18,42,0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--border);
  height: calc(var(--bot-h) + var(--safe-bot));
  padding-bottom: var(--safe-bot);
}
.bottom-nav-inner {
  display: flex;
  align-items: stretch;
  height: var(--bot-h);
}
.bottom-nav a {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: var(--muted);
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: color 0.15s;
  padding: 0 4px;
}
.bottom-nav a .icon { font-size: 1.4rem; line-height: 1; }
.bottom-nav a.active { color: var(--accent); }
@media (max-width: 767px) { .bottom-nav { display: block; } }

/* ── Page Wrapper ─────────────────────────── */
.wrap { max-width: 1100px; margin: 0 auto; padding: 1.25rem 1rem; }
@media (min-width: 768px) { .wrap { padding: 2rem 1.5rem; } }

/* ── Hero ─────────────────────────────────── */
.hero {
  text-align: center;
  padding: 2.5rem 1rem 2rem;
  background: radial-gradient(ellipse at center top, rgba(108,99,255,0.18) 0%, transparent 65%);
  border-radius: var(--radius);
  margin-bottom: 2rem;
}
.hero h1 {
  font-size: clamp(1.8rem, 6vw, 3.2rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 0.75rem;
  background: linear-gradient(135deg, #fff 0%, var(--accent) 60%, var(--accent2) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero p { font-size: 1rem; color: var(--muted); max-width: 480px; margin: 0 auto 1.5rem; }
.hero-btns { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; }

/* ── Buttons ──────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 1.4rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.9rem;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
  min-height: 44px;
  white-space: nowrap;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: #7b72ff; color: #fff; transform: translateY(-1px); box-shadow: 0 4px 16px rgba(108,99,255,0.4); }
.btn-primary:active { transform: scale(0.97); }
.btn-outline { background: transparent; color: var(--accent); border: 2px solid var(--accent); }
.btn-outline:hover { background: var(--accent); color: #fff; }
.btn-play {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff;
  font-size: 1rem;
  padding: 0.85rem 2rem;
  border-radius: 50px;
  box-shadow: 0 4px 20px rgba(108,99,255,0.45);
  width: 100%;
  font-weight: 800;
  letter-spacing: 0.02em;
}
.btn-play:hover { transform: translateY(-2px); box-shadow: 0 6px 28px rgba(108,99,255,0.55); color: #fff; }
.btn-play:active { transform: scale(0.98); }

/* ── Section Label ────────────────────────── */
.section-label { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1rem; }
.section-label h2 { font-size: 1.05rem; font-weight: 800; white-space: nowrap; text-transform: uppercase; letter-spacing: 0.05em; }
.section-label .line { flex: 1; height: 1px; background: var(--border); }

/* ── Game Grid ────────────────────────────── */
.game-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem;
  margin-bottom: 2rem;
}
@media (min-width: 600px) { .game-grid { grid-template-columns: repeat(3, 1fr); gap: 1rem; } }
@media (min-width: 900px) { .game-grid { grid-template-columns: repeat(4, 1fr); } }

/* ── Game Card ────────────────────────────── */
.game-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}
.game-card:active { transform: scale(0.97); }
@media (hover: hover) {
  .game-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(108,99,255,0.25);
    border-color: rgba(108,99,255,0.4);
  }
}
.game-card-thumb {
  width: 100%;
  aspect-ratio: 16/9;
  background: var(--card2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  overflow: hidden;
  position: relative;
}
.game-card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 40%, rgba(0,0,0,0.55));
  opacity: 0;
  transition: opacity 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.game-card:hover .thumb-overlay,
.game-card:active .thumb-overlay { opacity: 1; }
.thumb-play-icon {
  width: 42px; height: 42px;
  background: rgba(108,99,255,0.9);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
}
.game-card-body {
  padding: 0.65rem 0.85rem 0.35rem;
  fle