/* ============================================
   GAME PAGE SPECIFIC STYLES
   ============================================ */

.game-page {
  max-width: 1400px;
  margin: 0 auto;
  padding: 24px 24px 80px;
}

/* Game header bar */
.game-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  padding: 16px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.back-link {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
  white-space: nowrap;
}

.back-link:hover {
  color: var(--accent);
}

.game-header h1 {
  font-size: 22px;
  font-weight: 700;
  flex: 1;
  text-align: center;
  letter-spacing: -0.3px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fullscreen-btn {
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  width: 42px;
  height: 42px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 18px;
  transition: all 0.2s;
}

.fullscreen-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

/* Game iframe container */
.game-frame-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  background: #000;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  margin-bottom: 48px;
}

.game-frame-container iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* Loading spinner */
.game-loading {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: var(--text-dim);
  z-index: 1;
  background: var(--bg);
}

.game-loading.hidden {
  display: none;
}

.spinner {
  width: 44px;
  height: 44px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* More games section */
.more-games-section {
  margin-top: 32px;
}

/* Mobile adjustments */
@media (max-width: 720px) {
  .game-page {
    padding: 16px 12px 60px;
  }
  .game-header {
    padding: 12px;
  }
  .game-header h1 {
    font-size: 17px;
  }
  .fullscreen-btn {
    width: 38px;
    height: 38px;
    font-size: 16px;
  }
}
/* ============================================
   GAME INFO SECTION (per-game descriptions)
   ============================================ */
.game-info-section {
  max-width: 1400px;
  margin: 32px auto;
  padding: 0 24px;
}

.game-info-inner {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px;
}

.game-info-title {
  font-size: 24px;
  margin: 0 0 8px;
  color: var(--text);
}

.game-info-category {
  color: var(--text-dim);
  font-size: 14px;
  margin: 0 0 20px;
}

.game-info-description {
  color: #c8c8d0;
  line-height: 1.7;
  margin: 0 0 16px;
}

.game-info-howto {
  color: #c8c8d0;
  line-height: 1.7;
  margin: 0 0 24px;
  font-size: 14px;
}

.game-info-subhead {
  font-size: 18px;
  margin: 24px 0 16px;
  color: var(--text);
}

.similar-games-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.similar-game-card {
  display: block;
  text-decoration: none;
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg);
  border: 1px solid var(--border);
  transition: transform 0.15s, border-color 0.15s;
}

.similar-game-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
}

.similar-game-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.similar-game-title {
  display: block;
  padding: 10px 12px;
  font-size: 13px;
  color: var(--text);
  font-weight: 500;
}

@media (max-width: 600px) {
  .game-info-inner {
    padding: 20px;
  }
  .game-info-title {
    font-size: 20px;
  }
  .similar-games-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}