/* =====================
   GLOBAL CONTAINER
===================== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

section {
  margin-bottom: 32px;
}

/* =====================
   HEADER NAV
===================== */
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.main-nav {
  display: flex;
  gap: 16px;
}

.main-nav a {
  text-decoration: none;
  font-size: 14px;
  color: #222;
  font-weight: 500;
}

.main-nav a:hover {
  color: #0073e6;
}

@media (max-width: 768px) {
  .main-nav {
    gap: 10px;
    flex-wrap: wrap;
  }
}

/* =====================
   HOMEPAGE
===================== */
.home-intro {
  margin: 20px 0 30px;
  text-align: left;
}

.home-intro h1 {
  font-size: 24px;
  margin-bottom: 10px;
}

.home-intro p {
  font-size: 15px;
  color: #444;
  max-width: 800px;
}

/* Games Grid */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 14px;
  justify-items: center;
}

.game-card {
  background: #fff;
  border-radius: 8px;
  padding: 6px;
  box-shadow: 0 1px 6px rgba(0,0,0,0.08);
  text-decoration: none;
  color: #222;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.game-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.15);
}

.game-card .thumb img {
  width: 100%;
  border-radius: 6px;
  display: block;
}

.game-card .title {
  margin-top: 6px;
  font-size: 14px;
  font-weight: 500;
  text-align: center;
  min-height: 36px;
}

/* Categories */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 10px;
  justify-items: center;
}

.category-card {
  padding: 10px 14px;
  background: #f7f8fa;
  border-radius: 6px;
  text-align: center;
  font-weight: 500;
  font-size: 14px;
  color: #222;
  text-decoration: none;
}

.category-card:hover {
  background: #e9eef3;
}

/* =====================
   SECTION HEADINGS
===================== */
section h2 {
  font-size: 20px;
  margin-bottom: 14px;
  border-left: 4px solid #0073e6;
  padding-left: 10px;
}

/* =====================
   GAME PAGE
===================== */

.game-title {
  text-align: center;
  margin: 30px 0;
  font-size: 36px;
}

/* Center game block */
.game-main {
  display: flex;
  justify-content: center;
  margin: 40px 0;
}

/* Game card */
.game-player {
  width: 100%;
  max-width: 900px;
  background: #0f0f14;
  border-radius: 18px;
  padding: 20px;
  text-align: center;
}

/* Iframe wrapper */
.game-iframe-wrapper {
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 14px;
  overflow: hidden;
}

/* iframe */
.game-iframe-wrapper iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* Fullscreen button */
.game-actions {
  display: flex;
  justify-content: center;
  margin-top: 16px;
}

#fullscreenBtn {
  padding: 12px 28px;
  border-radius: 999px;
  background: #6d4cff;
  color: #fff;
  border: none;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}

#fullscreenBtn:hover {
  opacity: 0.9;
}

/* =====================
   GAME CONTENT SECTIONS
===================== */
.content-grid {
  max-width: 1200px;
  margin: 60px auto;
}

.game-description,
.how-to-play,
.game-faq {
  line-height: 1.8;
}

@media (min-width: 1024px) {
  .content-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
  }
}

/* =====================
   FOOTER
===================== */
footer {
  margin-top: 40px;
}