/* Game Page Specific Styles */
.game-page {
  background-image: url('../assets/wood-bg.jpg');
  background-size: cover;
  background-attachment: fixed;
}

.game-header {
  padding: var(--spacing-md);
  position: relative;
  z-index: 10;
}

.game-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
}

.game-title {
  color: var(--gold);
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.7);
  margin: 0;
  text-align: center;
  font-family: 'Pirata One', cursive;
  font-size: 2.5rem;
}

.game-container {
  height: calc(100vh - 180px);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 var(--spacing-md);
  position: relative;
}

.game-frame {
  width: 100%;
  height: 100%;
  max-width: 1400px;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
  border: 2px solid var(--gold);
  position: relative;
  background-color: var(--black);
}

.game-frame::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, 
    var(--gold) 0%, var(--gold) 1%, transparent 1%, transparent 99%, 
    var(--gold) 99%, var(--gold) 100%);
  pointer-events: none;
  z-index: 1;
  opacity: 0.5;
}

.game-frame iframe {
  width: 100%;
  height: 100%;
  border: none;
  position: relative;
  z-index: 2;
}

.game-loading {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: rgba(15, 20, 32, 0.9);
  z-index: 3;
}

.game-loading-icon {
  width: 80px;
  height: 80px;
  position: relative;
}

.game-loading-icon::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../assets/compass-icon.png');
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  animation: rotate 2s linear infinite;
}

@keyframes rotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.game-footer {
  position: relative;
  z-index: 10;
  padding: var(--spacing-sm) 0;
  background-color: rgba(15, 20, 32, 0.8);
}

/* Responsive Game Frame */
@media screen and (max-width: 768px) {
  .game-container {
    height: calc(100vh - 200px);
    padding: 0 var(--spacing-xs);
  }
  
  .game-title {
    font-size: 1.8rem;
    margin-top: var(--spacing-sm);
  }
  
  .game-nav {
    flex-direction: column;
    gap: var(--spacing-xs);
  }
}

/* For Landscape Orientation on Mobile */
@media screen and (max-height: 500px) and (orientation: landscape) {
  .game-header {
    padding: var(--spacing-xs);
  }
  
  .game-nav {
    flex-direction: row;
  }
  
  .game-title {
    font-size: 1.5rem;
  }
  
  .game-container {
    height: calc(100vh - 120px);
  }
  
  .game-footer {
    padding: var(--spacing-xs) 0;
  }
  
  .footer-content {
    padding: 0 var(--spacing-xs);
  }
}