* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Microsoft YaHei', sans-serif;
  background: linear-gradient(135deg, #0a0a1a 0%, #1a1a3a 50%, #0d0d2d 100%);
  color: #e0e0e0;
  min-height: 100vh;
  padding: 20px;
}

.game-container {
  max-width: 600px;
  margin: 0 auto;
  padding: 20px;
}

.game-title {
  text-align: center;
  color: #ffd700;
  text-shadow: 0 0 10px #ffd700;
  margin-bottom: 20px;
  font-size: 2em;
}

.player-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 10px;
  background: rgba(255, 255, 255, 0.1);
  padding: 15px;
  border-radius: 10px;
  margin-bottom: 15px;
}

.stat {
  text-align: center;
  padding: 10px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 5px;
}

.stat span:first-child {
  display: block;
  font-size: 0.9em;
  color: #aaa;
}

.stat span:last-child {
  font-size: 1.2em;
  font-weight: bold;
  color: #fff;
}

.realm {
  color: #ffd700 !important;
}

.progress-bar {
  height: 20px;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 15px;
  border: 1px solid #ffd700;
}

.progress {
  height: 100%;
  background: linear-gradient(90deg, #00ff88, #00aaff);
  transition: width 0.3s ease;
  box-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
}

.action-description {
  background: rgba(0, 0, 0, 0.4);
  padding: 15px;
  border-radius: 10px;
  margin-bottom: 15px;
  border-left: 3px solid #ffd700;
  min-height: 60px;
}

.actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  margin-bottom: 15px;
}

.action-btn {
  padding: 12px;
  background: linear-gradient(135deg, #2a4a6a, #1a3a5a);
  border: 2px solid #4a8abf;
  color: #fff;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1em;
  transition: all 0.3s;
}

.action-btn:hover {
  background: linear-gradient(135deg, #3a5a7a, #2a4a6a);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(74, 138, 191, 0.4);
}

.action-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.log-area {
  background: rgba(0, 0, 0, 0.4);
  border-radius: 10px;
  padding: 15px;
  margin-bottom: 15px;
}

.log-area h3 {
  color: #ffd700;
  margin-bottom: 10px;
}

#log {
  max-height: 150px;
  overflow-y: auto;
  font-size: 0.9em;
}

.log-entry {
  padding: 5px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: #ccc;
}

.log-entry.good {
  color: #00ff88;
}

.log-entry.bad {
  color: #ff4444;
}

.log-entry.special {
  color: #ffd700;
  font-weight: bold;
}

.inventory {
  background: rgba(0, 0, 0, 0.4);
  border-radius: 10px;
  padding: 15px;
}

.inventory h3 {
  color: #ffd700;
  margin-bottom: 10px;
}

#inventory {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.item {
  background: rgba(74, 138, 191, 0.3);
  padding: 8px 12px;
  border-radius: 5px;
  border: 1px solid #4a8abf;
  font-size: 0.9em;
}

@media (max-width: 480px) {
  .game-container {
    padding: 10px;
  }
  
  .game-title {
    font-size: 1.5em;
  }
  
  .actions {
    grid-template-columns: 1fr;
  }
}
