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

html, body {
  height: 100%;
}

body {
  font-family: system-ui, sans-serif;
  background: #0f172a;
  color: #f1f5f9;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1;
}

header {
  text-align: center;
}

header h1 {
  font-size: 2.5rem;
  letter-spacing: 0.05em;
}

.games-grid {
  display: grid;
  grid-template-columns: 1fr;
  align-items: start;
  gap: 1.5rem;
  padding: 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

@media (min-width: 641px) {
  .games-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 961px) {
  .games-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.game-card {
  background: #1e293b;
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease;
}

.game-card:hover {
  transform: translateY(-4px);
}

.thumbnail-wrap {
  position: relative;
}

.game-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  background: #334155;
  display: block;
}

.play-btn {
  position: absolute;
  bottom: 10px;
  right: 10px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #22c55e;
  color: #0a0f1c;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
  transition: transform 0.15s ease, background 0.15s ease;
}

.play-btn:hover {
  background: #4ade80;
  transform: scale(1.08);
}

.game-card h2 {
  padding: 0.8rem 1rem 0.2rem;
  font-size: 1.2rem;
}

.game-card p {
  padding: 0 1rem 1rem;
  font-size: 0.9rem;
  color: #94a3b8;
}

.nav-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
}

.logo-link {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
}

.logo-mark {
  width: 32px;
  height: 32px;
  display: block;
  flex: none;
  object-fit: contain;
}

.logo-word {
  height: 26px;
  width: auto;
  display: block;
  flex: none;
}

@media (min-width: 641px) {
  .logo-mark {
    width: 35px;
    height: 35px;
  }

  .logo-word {
    height: 35px;
  }
}

.logo-link:hover .logo-mark,
.logo-link:hover .logo-word {
  opacity: 0.85;
}

nav a {
  color: #94a3b8;
  text-decoration: none;
  margin-left: 1.5rem;
  font-size: 0.95rem;
}

nav a:hover {
  color: #22c55e;
}

.hero {
  padding: 2rem 1rem 3rem;
}

footer {
  border-top: 1px solid #1e293b;
  padding: 2rem;
  text-align: center;
}

.footer-links a {
  color: #94a3b8;
  text-decoration: none;
  margin: 0 0.8rem;
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: #22c55e;
}

.newsletter-form {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.newsletter-form input {
  padding: 0.6rem 0.9rem;
  border-radius: 8px;
  border: 1px solid #334155;
  background: #1e293b;
  color: #f1f5f9;
  font-size: 0.9rem;
  min-width: 220px;
}

.newsletter-form input:focus {
  outline: none;
  border-color: #22c55e;
}

.newsletter-form button {
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  border: none;
  background: #22c55e;
  color: #0a0f1c;
  font-weight: 700;
  cursor: pointer;
}

.newsletter-form button:hover {
  background: #4ade80;
}

.copyright {
  margin-top: 1.5rem;
  font-size: 0.85rem;
  color: #64748b;
}