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

body {
  font-family: 'Baloo 2', 'Segoe UI', sans-serif;
  background: linear-gradient(135deg, #fceabb 0%, #f8b500 100%);
  background: linear-gradient(135deg, #a1c4fd 0%, #c2e9fb 50%, #fbc2eb 100%);
  min-height: 100vh;
  color: #2d2d3a;
}

.site-header {
  text-align: center;
  padding: 30px 20px 10px;
}

.logo {
  font-size: 2.4rem;
  font-weight: 800;
  color: #ff5e78;
  text-shadow: 2px 2px 0 #fff;
}

.tagline {
  font-size: 1.1rem;
  font-weight: 700;
  color: #4a4a6a;
  margin-top: 6px;
}

.games-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px 20px 60px;
}

.page-title {
  text-align: center;
  font-size: 1.8rem;
  font-weight: 800;
  color: #3a3a5a;
  margin-bottom: 30px;
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 24px;
}

.game-card {
  border-radius: 24px;
  padding: 28px 20px;
  text-align: center;
  text-decoration: none;
  color: #fff;
  box-shadow: 0 10px 24px rgba(0,0,0,0.15);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.card-blue   { background: linear-gradient(160deg, #5b6bff, #9b8cff); }
.card-pink   { background: linear-gradient(160deg, #ff8bc6, #ff5e99); }
.card-green  { background: linear-gradient(160deg, #4fd39a, #33b17a); }
.card-orange { background: linear-gradient(160deg, #ffb454, #ff8a3d); }

.active-card:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 16px 30px rgba(0,0,0,0.25);
  cursor: pointer;
}

.locked-card {
  filter: grayscale(0.15);
  opacity: 0.92;
  cursor: default;
}

.card-emoji {
  font-size: 3.2rem;
  line-height: 1;
}

.game-card h2 {
  font-size: 1.4rem;
  font-weight: 800;
}

.game-card p {
  font-size: 0.95rem;
  opacity: 0.95;
  min-height: 40px;
}

.play-btn, .soon-btn {
  margin-top: 6px;
  display: inline-block;
  padding: 10px 22px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.95rem;
}

.play-btn {
  background: #fff;
  color: #5b6bff;
}

.soon-btn {
  background: rgba(255,255,255,0.25);
  color: #fff;
}

.site-footer {
  text-align: center;
  padding: 20px;
  font-size: 0.9rem;
  color: #4a4a6a;
}

.dev-credit {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 16px auto 0;
  padding: 10px 20px 10px 10px;
  background: #fff;
  border-radius: 50px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.1);
}

.dev-avatar {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.dev-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.dev-initials {
  display: none;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, #5b6bff, #9b8cff);
  color: #fff;
  font-weight: 800;
  font-size: 1rem;
}

.dev-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  line-height: 1.25;
}

.dev-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: #9b9bb0;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.dev-name {
  font-size: 1rem;
  font-weight: 800;
  color: #3a3a5a;
}

@media (max-width: 480px) {
  .logo { font-size: 1.9rem; }
  .page-title { font-size: 1.4rem; }
}
