/* Game Page Styles */
.game-section {
  padding-top: 100px;
  min-height: 100vh;
}

.game-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--space-md);
}

.game-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-lg);
}

.game-header h1 {
  font-size: 2.5rem;
  margin: 0;
  position: relative;
  display: inline-block;
}

.game-header h1:after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.btn-back {
  display: inline-block;
  padding: var(--space-xs) var(--space-sm);
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  border: none;
  border-radius: 4px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn-back:before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--primary-dark), var(--secondary-dark));
  transition: all 0.4s ease;
  z-index: -1;
}

.btn-back:hover:before {
  left: 0;
}

.game-frame {
  position: relative;
  width: 100%;
  margin-bottom: var(--space-lg);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.game-frame:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--primary-dark), var(--secondary-dark));
  opacity: 0.2;
  z-index: -1;
}

.game-frame iframe {
  display: block;
  background-color: #000;
  border-radius: 8px;
}

.game-description {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: var(--space-lg);
  margin-bottom: var(--space-lg);
}

.game-description p {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: var(--space-lg);
}

.game-controls {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-md);
}

.control-item {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.05);
  padding: var(--space-sm);
  border-radius: 4px;
}

.control-icon {
  width: 30px;
  height: 30px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  margin-right: var(--space-sm);
}

.control-item p {
  margin: 0;
  font-size: 0.9rem;
}

/* Loading Animation */
.game-frame:after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 50px;
  height: 50px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: var(--primary);
  animation: spin 1s ease-in-out infinite;
  z-index: -1;
}

@keyframes spin {
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

/* Responsive Game Layout */
@media screen and (max-width: 768px) {
  .game-header {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .game-header h1 {
    margin-bottom: var(--space-md);
  }
  
  .btn-back {
    align-self: flex-start;
  }
  
  .game-frame {
    height: 400px;
  }
  
  .game-frame iframe {
    height: 100% !important;
  }
}

@media screen and (max-width: 480px) {
  .game-frame {
    height: 300px;
  }
  
  .game-controls {
    grid-template-columns: 1fr;
  }
}