/* Game Pages Specific Styles */
.game-page {
  overflow-x: hidden;
  background: var(--bg-primary);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.game-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-sm) var(--space-lg);
  background: rgba(13, 16, 32, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--glass-border);
  position: fixed;
  width: 100%;
  z-index: 10;
  height: 60px;
}

.back-button {
  display: flex;
  align-items: center;
}

.back-link {
  display: flex;
  align-items: center;
  color: var(--text-primary);
  transition: color var(--transition-speed);
}

.back-icon {
  font-size: 1.5rem;
  margin-right: var(--space-xs);
}

.back-link:hover {
  color: var(--accent-aqua);
  text-shadow: 0 0 5px var(--accent-aqua);
}

.game-title h1 {
  font-family: 'Cinzel', serif;
  font-size: 1.5rem;
  background: linear-gradient(90deg, var(--accent-violet), var(--accent-aqua));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.game-container {
  flex: 1;
  padding: var(--space-md);
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  overflow: visible;
}

.game-iframe {
  border: none;
  width: 100%;
  height: 600px; /* Fixed height for the game */
  display: block;
  background-color: #000;
  margin-bottom: var(--space-lg);
}

.game-footer {
  padding: var(--space-xs) var(--space-md);
  background: rgba(13, 16, 32, 0.9);
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-secondary);
  border-top: 1px solid var(--glass-border);
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .game-title h1 {
    font-size: 1.2rem;
  }
  
  .back-link span:not(.back-icon) {
    display: none;
  }

  .game-iframe {
    height: 450px; /* Smaller height on mobile */
  }
}

/* Loading animation for iframe */
/*.game-container::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 50px;
  height: 50px;
  border: 5px solid rgba(138, 43, 226, 0.3);
  border-top-color: var(--accent-violet);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  z-index: 0;
}*/

.game-iframe[data-loaded="true"] + .game-container::before {
  display: none;
}