* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Segoe UI', system-ui, sans-serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #fff;
}

/* ---------- Home ---------- */
.home {
  text-align: center;
  padding: 20px;
}
.home h1 { font-size: 2.2rem; margin-bottom: 8px; }
.home p { opacity: .8; margin-bottom: 32px; font-size: 1.1rem; }

.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  max-width: 700px;
}

.game-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.12);
  border: 2px solid rgba(255,255,255,.2);
  border-radius: 16px;
  padding: 28px 20px;
  color: #fff;
  text-decoration: none;
  transition: .2s;
}
.game-card:hover {
  background: rgba(255,255,255,.25);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,.2);
}

.game-icon { font-size: 2.5rem; }
.game-title { font-size: 1.3rem; font-weight: 700; }
.game-desc { font-size: .9rem; opacity: .7; }

/* ---------- Back button ---------- */
.back-btn {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(0,0,0,.35);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 10px;
  padding: 8px 14px;
  color: #fff;
  text-decoration: none;
  font-size: .9rem;
  font-weight: 600;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: background .2s, transform .2s;
}
.back-btn:hover {
  background: rgba(0,0,0,.55);
  transform: scale(1.05);
}
.back-btn svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Ad slots ---------- */
.ad-sidebar {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 160px;
  height: 600px;
  background: rgba(0,0,0,.15);
  border: 1px dashed rgba(255,255,255,.2);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.3);
  font-size: .75rem;
  text-align: center;
  z-index: 100;
  overflow: hidden;
}
.ad-sidebar--left  { left: 10px; }
.ad-sidebar--right { right: 10px; }

/* Hide on screens too narrow for side ads */
@media (max-width: 1200px) {
  .ad-sidebar { display: none; }
}
