/* ── Variables ─────────────────────────────────────────────────────────────── */
:root {
  --bg:           #0a0f1e;
  --bg-surface:   #0f172a;
  --bg-elevated:  #1e293b;
  --bg-overlay:   #263347;

  --accent:       #7c3aed;
  --accent-l:     #8b5cf6;
  --accent-d:     #6d28d9;
  --cyan:         #06b6d4;
  --cyan-l:       #22d3ee;
  --amber:        #f59e0b;
  --red:          #ef4444;
  --green:        #10b981;

  --text:         #f8fafc;
  --text-sec:     #94a3b8;
  --text-muted:   #475569;

  --glass-bg:     rgba(255,255,255,0.04);
  --glass-border: rgba(255,255,255,0.08);
  --glass-hover:  rgba(255,255,255,0.07);

  --r:    14px;
  --r-sm: 8px;
  --r-lg: 20px;
  --r-xl: 28px;

  --shadow: 0 4px 24px rgba(0,0,0,.45);
  --shadow-lg: 0 8px 48px rgba(0,0,0,.55);
  --glow: 0 0 40px rgba(124,58,237,.25);
}

/* ── Reset ─────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }

/* ── Typography ────────────────────────────────────────────────────────────── */
h1, h2, h3, h4 { font-family: 'Space Grotesk', sans-serif; line-height: 1.15; }
.text-sm  { font-size: 0.875rem; }
.text-xs  { font-size: 0.75rem; }
.text-secondary { color: var(--text-sec); }
.text-muted     { color: var(--text-muted); }
.text-center    { text-align: center; }
.mb-3 { margin-bottom: 12px; }
.mb-5 { margin-bottom: 20px; }

/* ── Layout ────────────────────────────────────────────────────────────────── */
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Navbar ────────────────────────────────────────────────────────────────── */
.navbar {
  position: sticky;
  top: 12px;
  z-index: 100;
  padding: 0 24px;
  pointer-events: none;
}
.nav-inner {
  max-width: 1160px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 20px;
  height: 56px;
  background: rgba(10,15,30,0.85);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-xl);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow);
  pointer-events: all;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  flex-shrink: 0;
}
.nav-logo-icon {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--accent), var(--cyan));
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.nav-center {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-link {
  padding: 6px 12px;
  font-size: 0.875rem;
  color: var(--text-sec);
  border-radius: var(--r-sm);
  transition: color 150ms, background 150ms;
}
.nav-link:hover { color: var(--text); background: var(--glass-hover); }
.nav-end {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

/* Nav auth states */
.nav-user {
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-l));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  overflow: hidden;
}
.nav-avatar img { width: 100%; height: 100%; object-fit: cover; }
.nav-username {
  font-size: 0.875rem;
  font-weight: 500;
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.platform-badge {
  font-size: 0.65rem;
  padding: 2px 7px;
  border-radius: 99px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.platform-twitch  { background: rgba(145,71,255,0.2); color: #b787ff; }
.platform-youtube { background: rgba(255,0,0,0.15);   color: #ff6b6b; }
.platform-guest   { background: var(--glass-bg);      color: var(--text-muted); }

/* ── Buttons ───────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 18px;
  border-radius: var(--r-sm);
  font-size: 0.875rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  border: none;
  transition: all 150ms ease;
  white-space: nowrap;
  text-decoration: none;
}
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-l));
  color: white;
  box-shadow: 0 2px 12px rgba(124,58,237,.35);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 4px 20px rgba(124,58,237,.5); }
.btn-primary:active { transform: translateY(0); }
.btn-ghost {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--text-sec);
}
.btn-ghost:hover { background: var(--glass-hover); color: var(--text); }
.btn-outline {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--text-sec);
}
.btn-outline:hover { border-color: rgba(255,255,255,0.4); color: var(--text); background: var(--glass-bg); }
.btn-cyan {
  background: linear-gradient(135deg, var(--cyan), var(--cyan-l));
  color: #0c1928;
  font-weight: 700;
}
.btn-cyan:hover { transform: translateY(-1px); box-shadow: 0 4px 20px rgba(6,182,212,.4); }
.btn-sm  { padding: 7px 14px; font-size: 0.8rem; }
.btn-lg  { padding: 14px 28px; font-size: 1rem; border-radius: var(--r); }
.btn-full { width: 100%; justify-content: center; }
.icon-btn {
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--r-sm);
  color: var(--text-muted);
  transition: color 150ms, background 150ms;
}
.icon-btn:hover { color: var(--text); background: var(--glass-hover); }

/* ── Glass Card ────────────────────────────────────────────────────────────── */
.glass-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--r);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* ── Badges ────────────────────────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 99px;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.badge-purple { background: rgba(124,58,237,.2); color: var(--accent-l); border: 1px solid rgba(124,58,237,.25); }
.badge-cyan   { background: rgba(6,182,212,.15);  color: var(--cyan);     border: 1px solid rgba(6,182,212,.2); }
.badge-green  { background: rgba(16,185,129,.15); color: #34d399;         border: 1px solid rgba(16,185,129,.2); }
.badge-amber  { background: rgba(245,158,11,.15); color: var(--amber);    border: 1px solid rgba(245,158,11,.2); }
.badge-new {
  background: linear-gradient(135deg, var(--cyan), #0891b2);
  color: #0c1928;
  font-weight: 800;
}

/* ── Gradient text ─────────────────────────────────────────────────────────── */
.gradient-text {
  background: linear-gradient(135deg, var(--accent-l) 0%, var(--cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Hero ──────────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 100px 0 80px;
}
.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
  pointer-events: none;
}
.hero-glow-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
  top: -100px; left: -200px;
  animation: drift 8s ease-in-out infinite alternate;
}
.hero-glow-2 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, var(--cyan) 0%, transparent 70%);
  bottom: -100px; right: -150px;
  animation: drift 10s ease-in-out infinite alternate-reverse;
}
@keyframes drift {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(30px, 20px) scale(1.05); }
}
.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(6,182,212,.1);
  border: 1px solid rgba(6,182,212,.2);
  border-radius: 99px;
  font-size: 0.8rem;
  color: var(--cyan-l);
  font-weight: 500;
  margin-bottom: 24px;
}
.badge-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.75); }
}
.hero-title {
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 20px;
}
.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--text-sec);
  max-width: 580px;
  margin: 0 auto 36px;
  line-height: 1.7;
}
.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 56px;
}
.hero-stats {
  display: inline-flex;
  align-items: center;
  gap: 32px;
  padding: 20px 40px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-lg);
  backdrop-filter: blur(12px);
}
.stat { text-align: center; }
.stat-val {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.6rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--text), var(--accent-l));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-lbl { font-size: 0.72rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; margin-top: 2px; }
.stat-sep { width: 1px; height: 36px; background: var(--glass-border); }

/* ── Section ───────────────────────────────────────────────────────────────── */
.section { padding: 96px 0; }
.section-alt { background: rgba(15,23,42,.5); }
.section-head { text-align: center; margin-bottom: 56px; }
.section-title {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.section-sub { color: var(--text-sec); font-size: 1.05rem; max-width: 480px; margin: 0 auto; }

/* ── Toolbar ───────────────────────────────────────────────────────────────── */
.toolbar {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.search-wrap {
  position: relative;
  flex: 1;
  min-width: 200px;
  max-width: 300px;
}
.search-ico {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}
.search-input {
  width: 100%;
  padding: 10px 14px 10px 38px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-sm);
  color: var(--text);
  font-family: inherit;
  font-size: 0.875rem;
  outline: none;
  transition: border-color 150ms;
}
.search-input::placeholder { color: var(--text-muted); }
.search-input:focus { border-color: var(--accent); }
.pills { display: flex; gap: 6px; flex-wrap: wrap; }
.pill {
  padding: 7px 14px;
  border-radius: 99px;
  font-size: 0.8rem;
  font-weight: 500;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--text-sec);
  cursor: pointer;
  transition: all 150ms;
}
.pill:hover  { background: var(--glass-hover); color: var(--text); }
.pill.active { background: rgba(124,58,237,.2); border-color: rgba(124,58,237,.4); color: var(--accent-l); }

/* ── Games Grid ────────────────────────────────────────────────────────────── */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 18px;
}

/* skeleton loading */
.game-skeleton {
  aspect-ratio: 3/4;
  border-radius: var(--r);
  background: linear-gradient(90deg, var(--glass-bg) 25%, rgba(255,255,255,0.06) 50%, var(--glass-bg) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border: 1px solid var(--glass-border);
}
@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position:  200% 0; }
}

/* ── Game Card ─────────────────────────────────────────────────────────────── */
.game-card {
  border-radius: var(--r);
  overflow: hidden;
  cursor: pointer;
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
  position: relative;
}
.game-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0,0,0,.5), var(--glow);
  border-color: rgba(124,58,237,.3);
}
.game-card:focus-visible {
  outline: 2px solid var(--accent-l);
  outline-offset: 2px;
}
.game-thumb {
  aspect-ratio: 16/9;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.game-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 300ms; }
.game-card:hover .game-thumb img { transform: scale(1.04); }
.game-thumb-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.game-card-badge {
  position: absolute;
  top: 10px;
  right: 10px;
}
.game-body { padding: 16px; }
.game-name {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.game-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}
.game-plays { font-size: 0.75rem; color: var(--text-muted); }
.game-actions { display: flex; gap: 8px; }

/* ── Category gradient palettes ─────────────────────────────────────────────── */
.cat-quiz    { background: linear-gradient(135deg, #1e1050 0%, #2d1b69 100%); }
.cat-reflex  { background: linear-gradient(135deg, #1a0a0a 0%, #3b1515 100%); }
.cat-word    { background: linear-gradient(135deg, #071e30 0%, #0c3a5c 100%); }
.cat-social  { background: linear-gradient(135deg, #062019 0%, #0c3325 100%); }
.cat-art     { background: linear-gradient(135deg, #1e0c2d 0%, #3b1150 100%); }
.cat-default { background: linear-gradient(135deg, var(--bg-elevated) 0%, var(--bg-overlay) 100%); }

/* ── Steps ─────────────────────────────────────────────────────────────────── */
.steps {
  display: flex;
  align-items: stretch;
  gap: 0;
  justify-content: center;
}
.step {
  flex: 1;
  max-width: 320px;
  padding: 36px 28px;
  position: relative;
  transition: transform 200ms, box-shadow 200ms;
}
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg), var(--glow); }
.step-arrow {
  display: flex;
  align-items: center;
  padding: 0 8px;
  color: var(--text-muted);
  flex-shrink: 0;
}
.step-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--accent-l);
  letter-spacing: 0.1em;
  margin-bottom: 20px;
}
.step-icon {
  width: 52px; height: 52px;
  background: linear-gradient(135deg, rgba(124,58,237,.2), rgba(6,182,212,.15));
  border: 1px solid rgba(124,58,237,.25);
  border-radius: var(--r);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-l);
  margin-bottom: 20px;
}
.step h3 { font-size: 1.1rem; margin-bottom: 10px; }
.step p  { font-size: 0.875rem; color: var(--text-sec); line-height: 1.7; }

/* ── Download CTA ──────────────────────────────────────────────────────────── */
.download-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 48px 56px;
  position: relative;
  overflow: hidden;
  flex-wrap: wrap;
}
.download-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(124,58,237,.1) 0%, rgba(6,182,212,.07) 100%);
  pointer-events: none;
}
.download-text { position: relative; flex: 1; min-width: 240px; }
.download-text h2 { font-size: 2rem; margin-bottom: 10px; }
.download-text p  { color: var(--text-sec); font-size: 1.05rem; }
.download-btns {
  position: relative;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  flex-shrink: 0;
}
.download-note {
  width: 100%;
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
  position: relative;
  margin-top: 16px;
}

/* ── Footer ────────────────────────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--glass-border);
  padding: 32px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--text-sec);
}
.footer-copy { font-size: 0.8rem; color: var(--text-muted); }
.footer-links { display: flex; gap: 20px; }
.footer-links a { font-size: 0.8rem; color: var(--text-muted); transition: color 150ms; }
.footer-links a:hover { color: var(--text-sec); }

/* ── Overlay / Modal ───────────────────────────────────────────────────────── */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: fade-in 150ms ease;
}
.overlay.hidden { display: none; }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

.modal {
  background: #111827;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--r-lg);
  width: 100%;
  max-width: 480px;
  box-shadow: var(--shadow-lg);
  animation: slide-up 200ms ease;
  overflow: hidden;
}
.modal-sm { max-width: 400px; }
@keyframes slide-up { from { transform: translateY(16px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

.modal-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px 16px;
  border-bottom: 1px solid var(--glass-border);
}
.modal-title { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 1.05rem; }
.modal-bd { padding: 24px; }

.modal-icon-box {
  width: 60px; height: 60px;
  background: linear-gradient(135deg, var(--accent), var(--accent-l));
  border-radius: var(--r-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  box-shadow: 0 0 30px rgba(124,58,237,.4);
}

/* ── OAuth buttons ─────────────────────────────────────────────────────────── */
.oauth-btns { display: flex; flex-direction: column; gap: 10px; }
.oauth-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-sm);
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all 150ms;
}
.oauth-btn:hover { background: var(--glass-hover); border-color: rgba(255,255,255,.15); transform: translateY(-1px); }

/* ── Game detail modal content ─────────────────────────────────────────────── */
.game-detail-thumb {
  aspect-ratio: 16/9;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  position: relative;
}
.game-detail-body { padding: 24px; }
.game-detail-badges { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.game-detail-desc { color: var(--text-sec); line-height: 1.7; margin-bottom: 20px; font-size: 0.9rem; }
.game-detail-howto {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-sm);
  padding: 16px;
  margin-bottom: 24px;
}
.game-detail-howto h4 { font-size: 0.8rem; color: var(--accent-l); margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.06em; }
.game-detail-howto p  { font-size: 0.85rem; color: var(--text-sec); line-height: 1.7; }
.game-detail-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.game-detail-meta  { font-size: 0.75rem; color: var(--text-muted); }

/* ── Screenshots Gallery ───────────────────────────────────────────────────── */
.game-gallery {
  margin-bottom: 20px;
  border-radius: var(--r-sm);
  overflow: hidden;
  border: 1px solid var(--glass-border);
}
.gallery-main {
  width: 100%;
  aspect-ratio: 16/9;
  background: var(--bg-elevated);
  overflow: hidden;
}
.gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 200ms;
}
.gallery-thumbs {
  display: flex;
  gap: 4px;
  padding: 6px;
  background: rgba(0,0,0,.3);
  overflow-x: auto;
}
.gallery-thumb {
  width: 64px;
  height: 40px;
  object-fit: cover;
  border-radius: 4px;
  cursor: pointer;
  opacity: 0.55;
  border: 2px solid transparent;
  transition: opacity 150ms, border-color 150ms;
  flex-shrink: 0;
}
.gallery-thumb:hover { opacity: 0.85; }
.gallery-thumb.active { opacity: 1; border-color: var(--accent-l); }

/* ── Toast ─────────────────────────────────────────────────────────────────── */
#toast-root {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}
.toast {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 16px;
  background: #1e293b;
  border: 1px solid var(--glass-border);
  border-radius: var(--r-sm);
  box-shadow: var(--shadow);
  min-width: 260px;
  max-width: 360px;
  pointer-events: all;
  animation: toast-in 200ms ease;
}
.toast.dismissing { animation: toast-out 200ms ease forwards; }
@keyframes toast-in  { from { transform: translateX(20px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes toast-out { from { transform: translateX(0); opacity: 1; } to { transform: translateX(20px); opacity: 0; } }
.toast-icon { flex-shrink: 0; margin-top: 1px; }
.toast-body { flex: 1; }
.toast-title { font-size: 0.8rem; font-weight: 700; margin-bottom: 2px; }
.toast-msg   { font-size: 0.8rem; color: var(--text-sec); }
.toast-success { border-left: 3px solid var(--green); }
.toast-error   { border-left: 3px solid var(--red); }
.toast-info    { border-left: 3px solid var(--cyan); }
.toast-warning { border-left: 3px solid var(--amber); }
.toast-loading { border-left: 3px solid var(--accent-l); }

/* ── Responsive ────────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .nav-center { display: none; }
  .hero { min-height: unset; padding: 80px 0 60px; }
  .hero-stats { gap: 20px; padding: 16px 24px; }
  .stat-sep { display: none; }
  .steps { flex-direction: column; align-items: stretch; }
  .steps .step { max-width: 100%; }
  .step-arrow { display: none; }
  .download-card { flex-direction: column; text-align: center; padding: 32px 24px; }
  .download-btns { justify-content: center; width: 100%; }
  .footer-inner { flex-direction: column; text-align: center; gap: 10px; }
}
@media (max-width: 480px) {
  .hero-title { font-size: 2rem; }
  .games-grid { grid-template-columns: 1fr 1fr; }
  .hero-stats { flex-direction: column; gap: 12px; }
  .toolbar { flex-direction: column; align-items: stretch; }
  .search-wrap { max-width: 100%; }
}
