/* Game Page Specific Styles */
.game-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--bg-dark);
  position: relative;
  overflow: hidden;
}

.game-page::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('../assets/lava-bg.jpg') center/cover no-repeat;
  opacity: 0.2;
  z-index: -1;
}

.game-wrapper {
  flex: 1;
  padding: 30px 20px 50px;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}

.game-wrapper h1 {
  font-family: 'UnifrakturCook', cursive;
  font-size: 2.5rem;
  margin-bottom: 30px;
  color: var(--lava-orange);
  text-shadow: 0 0 15px var(--ember-glow);
  text-align: center;
}

.game-container {
  width: 100%;
  height: 80vh;
  max-height: 80vh;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 0 30px rgba(255, 60, 0, 0.3);
  border: 2px solid var(--blood-red);
  background-color: #000;
  margin-bottom: 30px;
}

.game-iframe {
  border: none;
  width: 100%;
  height: 100%;
  position: relative;
  z-index: 5;
  background-color: #000;
}

.game-loading {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: rgba(15, 11, 11, 0.9);
  z-index: 10;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.lava-loader {
  width: 80px;
  height: 80px;
  position: relative;
  margin-bottom: 20px;
}

.lava-loader::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--lava-orange);
  box-shadow: 0 0 20px var(--lava-orange), 0 0 60px var(--fire-yellow);
  animation: pulse 1s infinite alternate;
}

.lava-loader::after {
  content: '';
  position: absolute;
  top: 10px;
  left: 10px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--blood-red);
  z-index: 2;
  animation: pulse 1.5s infinite alternate-reverse;
}

.game-loading p {
  color: #fff;
  font-family: 'Cinzel', serif;
  font-size: 1.2rem;
  text-shadow: 0 0 10px var(--lava-orange);
}

.back-btn {
  display: inline-block;
  padding: 12px 30px;
  background: linear-gradient(45deg, var(--blood-red), var(--lava-orange));
  color: #fff;
  text-decoration: none;
  border-radius: 5px;
  font-weight: 600;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.back-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 20px var(--lava-orange);
}

/* Corners with lava effect */
.game-container::before,
.game-container::after {
  content: '';
  position: absolute;
  width: 100px;
  height: 100px;
  background: radial-gradient(circle, var(--lava-orange) 0%, transparent 70%);
  z-index: 2;
  opacity: 0.7;
  pointer-events: none;
}

.game-container::before {
  top: -20px;
  left: -20px;
  animation: pulse 3s infinite alternate;
}

.game-container::after {
  bottom: -20px;
  right: -20px;
  animation: pulse 4s infinite alternate-reverse;
}

/* Responsive styles */
@media (max-width: 768px) {
  .game-wrapper h1 {
    font-size: 2rem;
    margin-bottom: 20px;
  }
  
  .game-container {
    height: 60vh;
    max-height: 60vh;
  }
  
  .lava-loader {
    width: 60px;
    height: 60px;
  }
  
  .lava-loader::after {
    top: 8px;
    left: 8px;
    width: 44px;
    height: 44px;
  }
  
  .game-loading p {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .game-wrapper h1 {
    font-size: 1.5rem;
  }
  
  .game-container {
    height: 50vh;
    max-height: 50vh;
  }
  
  .back-btn {
    padding: 10px 20px;
    font-size: 0.9rem;
  }
}