/* Game Page Styles */

.game-container {
  position: fixed;
  top: 60px;
  left: 0;
  right: 0;
  bottom: 0;
  background: #0a0a0a;
  overflow: hidden;
}

.game-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: #fff;
}

#game-world {
  width: 100%;
  height: 100%;
  position: relative;
}

#game-canvas {
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, #1a1a2e 0%, #0a0a0a 100%);
}

/* HUD Overlay */
.game-hud {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 100;
}

.hud-top {
  position: absolute;
  top: 20px;
  left: 20px;
  right: 20px;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
}

.player-info {
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(10px);
  padding: 15px 20px;
  border-radius: 15px;
  border: 2px solid rgba(255, 215, 0, 0.3);
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.player-name {
  font-size: 18px;
  font-weight: bold;
  color: #FFD700;
}

.player-instance {
  font-size: 12px;
  color: #00FFFF;
  opacity: 0.8;
}

.player-stats {
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(10px);
  padding: 15px 20px;
  border-radius: 15px;
  border: 2px solid rgba(255, 215, 0, 0.3);
  display: flex;
  gap: 20px;
}

.stat {
  font-size: 16px;
  font-weight: bold;
  color: #fff;
}

.hud-bottom {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
}

.controls-hint {
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(10px);
  padding: 12px 25px;
  border-radius: 25px;
  border: 2px solid rgba(255, 215, 0, 0.2);
  color: #fff;
  font-size: 14px;
  text-align: center;
}

/* Phone Button */
.phone-button {
  position: absolute;
  bottom: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #FFD700, #FF1493);
  border: 3px solid #fff;
  font-size: 28px;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
  transition: transform 0.2s, box-shadow 0.2s;
  pointer-events: auto;
  z-index: 200;
}

.phone-button:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 25px rgba(255, 215, 0, 0.6);
}

.phone-button:active {
  transform: scale(0.95);
}

/* Character Creator */
.character-creator {
  max-width: 800px;
  margin: 50px auto;
  padding: 40px;
  background: rgba(26, 26, 46, 0.95);
  border-radius: 20px;
  border: 2px solid rgba(255, 215, 0, 0.3);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.character-creator h1 {
  color: #FFD700;
  text-align: center;
  font-size: 48px;
  margin-bottom: 10px;
}

.character-creator h2 {
  color: #00FFFF;
  text-align: center;
  font-size: 28px;
  margin-bottom: 40px;
}

.creator-form {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.form-group label {
  color: #FFD700;
  font-size: 18px;
  font-weight: bold;
}

.form-group input {
  padding: 15px 20px;
  font-size: 18px;
  border: 2px solid rgba(255, 215, 0, 0.3);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  transition: border-color 0.3s;
}

.form-group input:focus {
  outline: none;
  border-color: #FFD700;
}

.style-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 20px;
}

.style-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 25px;
  background: rgba(0, 0, 0, 0.5);
  border: 3px solid rgba(255, 215, 0, 0.2);
  border-radius: 15px;
  cursor: pointer;
  transition: all 0.3s;
}

.style-option:hover {
  border-color: rgba(255, 215, 0, 0.5);
  transform: translateY(-5px);
  box-shadow: 0 5px 20px rgba(255, 215, 0, 0.3);
}

.style-option.selected {
  border-color: #FFD700;
  background: rgba(255, 215, 0, 0.1);
  box-shadow: 0 0 30px rgba(255, 215, 0, 0.5);
}

.style-icon {
  font-size: 48px;
  margin-bottom: 10px;
}

.style-option span {
  color: #fff;
  font-size: 16px;
  font-weight: bold;
  text-align: center;
}

.btn-large {
  padding: 20px 40px;
  font-size: 20px;
  margin-top: 20px;
}

/* Responsive */
@media (max-width: 768px) {
  .hud-top {
    flex-direction: column;
    gap: 10px;
  }
  
  .character-creator {
    margin: 20px;
    padding: 20px;
  }
  
  .style-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
