body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background: #1a1a1a;
  color: #f0f0f0;
  padding: 2rem;
}

header {
  text-align: center;
  margin-bottom: 2rem;
}

header h1 {
  font-size: 3rem;
  color: #00f0ff;
}

header p {
  color: #ccc;
  font-size: 1.2rem;
}

.category-nav {
  text-align: center;
  margin-bottom: 2rem;
}

.category-btn {
  background: #2a2a2a;
  color: #00f0ff;
  border: 1px solid #00f0ff44;
  padding: 0.6rem 1.2rem;
  margin: 0.3rem;
  border-radius: 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.category-btn:hover,
.category-btn.active {
  background: #00f0ff;
  color: #111;
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.game-card {
  background: #2e2e2e;
  border-radius: 1rem;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 0 10px #00f0ff33;
  transition: transform 0.2s ease;
}

.game-card:hover {
  transform: scale(1.03);
}

.game-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.game-card h2 {
  text-align: center;
  padding: 1rem;
  font-size: 1.1rem;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 10;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.8);
}

.modal-content {
  position: relative;
  margin: 5% auto;
  width: 90%;
  max-width: 960px;
  background: #111;
  border-radius: 1rem;
  overflow: hidden;
}

.modal-content #gameContainer {
  width: 100%;
  height: 600px;
}

.modal-content iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.close {
  position: absolute;
  top: 10px;
  right: 20px;
  font-size: 2rem;
  color: #fff;
  cursor: pointer;
}
