:root {
  --pink: #ff6eb4;
  --pink-light: #ffb3d9;
  --pink-soft: #fff0f7;
  --pink-mid: #ff90c8;
  --white: #ffffff;
  --dark: #2d1f2e;
  --gray: #f5e6f0;
  --text: #3d2040;
  --muted: #a07090;
  --card-radius: 16px;
  --shadow: 0 4px 20px rgba(255,110,180,0.15);
}
.site-logo {
  width: 60px;
  height: 60px;
  object-fit: contain;
} 
* { margin: 0; padding: 0; box-sizing: border-box; }
 
body {
  font-family: 'Nunito', sans-serif;
  background: var(--pink-soft);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}
 
/* ── HEADER ── */
header {
  background: var(--white);
  box-shadow: 0 2px 16px rgba(255,110,180,0.12);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 0 2rem;
}
 
.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  height: 64px;
}
 
.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  flex-shrink: 0;
}
 
.logo-icon {
  width: 42px;
  height: 42px;
}
 
.logo-text {
  font-family: 'Fredoka One', cursive;
  font-size: 1.8rem;
  color: var(--pink);
  letter-spacing: -0.5px;
  line-height: 1;
}
 
.logo-text span { color: var(--dark); }
 
.search-bar {
  flex: 1;
  max-width: 500px;
  position: relative;
}
 
.search-bar input {
  width: 100%;
  padding: 0.65rem 1.2rem 0.65rem 3rem;
  border: 2px solid var(--pink-light);
  border-radius: 50px;
  font-family: 'Nunito', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  background: var(--pink-soft);
  color: var(--text);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
 
.search-bar input:focus {
  border-color: var(--pink);
  box-shadow: 0 0 0 3px rgba(255,110,180,0.15);
}
 
.search-bar input::placeholder { color: var(--muted); }
 
.search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--pink);
  font-size: 1rem;
}
 
 
 
 
 
/* ── CATEGORIES ── */
.categories {
  background: var(--white);
  border-bottom: 2px solid var(--gray);
  padding: 0 2rem;
  overflow-x: auto;
  scrollbar-width: none;
}
 
.categories::-webkit-scrollbar { display: none; }
 
.categories-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  gap: 0.3rem;
  padding: 0.7rem 0;
}
 
.cat-btn {
  padding: 0.45rem 1.1rem;
  border-radius: 50px;
  border: 2px solid transparent;
  background: var(--pink-soft);
  color: var(--muted);
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
  flex-shrink: 0;
}
 
.cat-btn:hover, .cat-btn.active {
  background: var(--pink);
  color: white;
  border-color: var(--pink);
}
 
/* ── MAIN ── */
main {
  max-width: 1280px;
  margin: 0 auto;
  padding: 2rem;
}
 
.section-title {
  font-family: 'Fredoka One', cursive;
  font-size: 1.5rem;
  color: var(--dark);
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
 
/* ── FEATURED (big card) ── */
.featured-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: 200px 200px;
  gap: 1rem;
  margin-bottom: 2.5rem;
}
 
.game-card {
  border-radius: var(--card-radius);
  overflow: hidden;
  cursor: pointer;
  position: relative;
  background: var(--gray);
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}
 
.game-card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 12px 35px rgba(255,110,180,0.25);
}
 
.game-card.big { grid-row: span 2; }
 
.game-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
 
.game-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(45,31,46,0.85) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.25s;
  display: flex;
  align-items: flex-end;
  padding: 1rem;
}
 
.game-card:hover .game-card-overlay { opacity: 1; }
 
.play-btn {
  background: var(--pink);
  color: white;
  border: none;
  border-radius: 50px;
  padding: 0.5rem 1.4rem;
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: 0.9rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: background 0.2s;
}
 
.play-btn:hover { background: #ff3d99; }
 
.game-title-badge {
  position: absolute;
  bottom: 0.6rem;
  left: 0.8rem;
  right: 0.8rem;
  color: white;
  font-weight: 800;
  font-size: 0.9rem;
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
  pointer-events: none;
}
 
/* ── GAMES GRID ── */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1rem;
  margin-bottom: 2.5rem;
}
 
.game-thumb {
  border-radius: var(--card-radius);
  overflow: hidden;
  cursor: pointer;
  position: relative;
  background: var(--gray);
  box-shadow: var(--shadow);
  aspect-ratio: 1;
  transition: transform 0.2s, box-shadow 0.2s;
}
 
.game-thumb:hover {
  transform: translateY(-4px) scale(1.04);
  box-shadow: 0 10px 28px rgba(255,110,180,0.3);
}
 
.game-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
 
.game-thumb-overlay {
  position: absolute;
  inset: 0;
  background: rgba(255,110,180,0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s;
  border-radius: var(--card-radius);
}
 
.game-thumb:hover .game-thumb-overlay { opacity: 1; }
 
.play-circle {
  width: 50px;
  height: 50px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}
 
.game-thumb-name {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(45,31,46,0.9), transparent);
  color: white;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.8rem 0.5rem 0.4rem;
  text-align: center;
}
 
/* placeholder colors for games without images */
.game-thumb.c1 { background: linear-gradient(135deg, #ffb3d9, #ff6eb4); }
.game-thumb.c2 { background: linear-gradient(135deg, #b3d9ff, #6eb4ff); }
.game-thumb.c3 { background: linear-gradient(135deg, #b3ffcc, #6effa0); }
.game-thumb.c4 { background: linear-gradient(135deg, #ffe0b3, #ffb36e); }
.game-thumb.c5 { background: linear-gradient(135deg, #e0b3ff, #c06eff); }
.game-thumb.c6 { background: linear-gradient(135deg, #fffdb3, #ffe06e); }
 
.game-emoji {
  font-size: 3.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}
 
/* ── FOOTER ── */
footer {
  background: var(--white);
  border-top: 2px solid var(--gray);
  padding: 2rem;
  text-align: center;
}
 
.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
}
 
.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
  margin-bottom: 1rem;
}
 
.footer-section {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.4rem;
}
 
.footer-label {
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
 
.footer-links a {
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  transition: color 0.2s;
}
 
.footer-links a:hover { color: var(--pink); }
 
.footer-copy {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 1rem;
}
 
/* ── GAME PLAYER ── */
.player-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(45,31,46,0.95);
  z-index: 1000;
  flex-direction: column;
}
 
.player-overlay.open { display: flex; }
 
.player-header {
  display: flex;
  align-items: center;
  padding: 1rem 1.5rem;
  background: var(--dark);
  gap: 1rem;
}
 
.btn-back {
  background: var(--pink);
  color: white;
  border: none;
  border-radius: 50px;
  padding: 0.5rem 1.2rem;
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  cursor: pointer;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
 
.player-game-title {
  color: white;
  font-family: 'Fredoka One', cursive;
  font-size: 1.3rem;
}
 
.player-frame {
  flex: 1;
  border: none;
  background: #000;
}
 
/* ── MOBILE ── */
@media (max-width: 768px) {
  header { padding: 0 1rem; }
  .logo-text { font-size: 1.4rem; }
  .search-bar { max-width: 100%; }
  .header-inner { gap: 0.8rem; }
 
  .hero { padding: 1.5rem 1rem; }
 
  main { padding: 1.2rem 1rem; }
 
  .featured-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 160px 160px 160px;
  }
  .game-card.big { grid-column: span 2; grid-row: span 1; }
 
  .games-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.7rem;
  }
 
  .footer-links { gap: 0.5rem 1rem; }
}
 
@media (max-width: 420px) {
  .featured-grid { grid-template-columns: 1fr 1fr; }
  .games-grid { grid-template-columns: repeat(2, 1fr); }
