* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body {
  background: #0f1115;
  color: #ffffff;
}

/* Header & Navigation Bar */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  background: #1a1d24;
  border-bottom: 1px solid #282c37;
}

.logo {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: 1px;
}

.logo span {
  color: #00d26a;
}

.categories button {
  background: #282c37;
  color: #bbbbbb;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  cursor: pointer;
  margin-left: 0.5rem;
}

.categories button.active,
.categories button:hover {
  background: #00d26a;
  color: #000000;
  font-weight: 600;
}

/* Game Catalog Grid */
.container {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 1rem;
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1.25rem;
}

.card {
  background: #1a1d24;
  border-radius: 8px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s, box-shadow 0.2s;
  border: 1px solid #282c37;
  display: block;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.4);
  border-color: #00d26a;
}

.card img {
  width: 100%;
  height: 130px;
  object-fit: cover;
  display: block;
  background-color: #282c37;
}

.card-info {
  padding: 0.75rem;
}

.card-info h3 {
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
}

.tag {
  font-size: 0.75rem;
  color: #888888;
  background: #282c37;
  padding: 2px 6px;
  border-radius: 4px;
}

/* Dedicated Play Screen */
.play-layout {
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.play-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.frame-wrapper {
  flex: 1;
  width: 100%;
  background: #000000;
  display: flex;
}

#game-frame {
  width: 100%;
  height: 100%;
  border: none;
}

.back-btn,
.fs-btn {
  color: #ffffff;
  background: #282c37;
  padding: 0.5rem 1rem;
  text-decoration: none;
  border-radius: 6px;
  font-size: 0.85rem;
  border: none;
  cursor: pointer;
}

.back-btn:hover,
.fs-btn:hover {
  background: #3b404e;
}