/* === 打字射击游戏 === */
#view-game-shoot {
  background: #0a0a2e;
  position: relative;
  overflow: hidden;
}

#shoot-game-container {
  width: 100%;
  height: 100vh;
  position: relative;
}

#shoot-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

/* Start screen */
.shoot-start-screen {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(10,10,46,0.95);
  z-index: 10;
  text-align: center;
  padding: 20px;
}

.shoot-title {
  font-size: 3rem;
  font-weight: 900;
  background: linear-gradient(135deg, #ff6b6b, #ffd93d, #6bcb77, #4d96ff, #ff6fff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 10px;
  animation: shootTitlePulse 2s ease-in-out infinite;
}

@keyframes shootTitlePulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.shoot-subtitle {
  color: #aaa;
  font-size: 1.1rem;
  margin-bottom: 30px;
}

.shoot-rules {
  background: rgba(255,255,255,0.05);
  border-radius: 12px;
  padding: 20px 30px;
  margin-bottom: 30px;
  text-align: left;
  max-width: 400px;
}

.shoot-rules h3 {
  color: #ffd93d;
  font-size: 1rem;
  margin-bottom: 12px;
}

.shoot-rules ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.shoot-rules li {
  color: #ccc;
  font-size: 0.9rem;
  margin-bottom: 8px;
  padding-left: 0;
}

.shoot-start-btn {
  padding: 16px 48px;
  font-size: 1.3rem;
  font-weight: 800;
  border: none;
  border-radius: 50px;
  background: linear-gradient(135deg, #ff6b6b, #ffd93d);
  color: #1a1a2e;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 20px rgba(255,107,107,0.4);
}

.shoot-start-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 30px rgba(255,107,107,0.6);
}

.shoot-scope {
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.shoot-scope label {
  color: #ffd93d;
  font-size: 0.9rem;
  font-weight: 600;
}

.shoot-scope select {
  padding: 10px 20px;
  font-size: 1rem;
  border-radius: 12px;
  border: 2px solid rgba(255,217,61,0.3);
  background: rgba(255,255,255,0.08);
  color: #fff;
  cursor: pointer;
  outline: none;
  min-width: 220px;
  transition: border-color 0.2s;
}

.shoot-scope select:hover,
.shoot-scope select:focus {
  border-color: rgba(255,217,61,0.6);
}

.shoot-scope select option {
  background: #1a1a4e;
  color: #fff;
}

/* Game top bar */
.shoot-topbar {
  position: absolute;
  top: 0; left: 0; right: 0;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  z-index: 5;
}

/* Result overlay */
.shoot-result-screen {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10,10,46,0.85);
  z-index: 20;
}

.shoot-result-card {
  background: linear-gradient(135deg, #1a1a4e, #2a2a5e);
  border: 2px solid rgba(255,217,61,0.3);
  border-radius: 20px;
  padding: 40px;
  text-align: center;
  min-width: 320px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.5);
}

.shoot-result-card h2 {
  color: #ffd93d;
  font-size: 2rem;
  margin-bottom: 20px;
}

.shoot-result-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 24px;
}

.shoot-result-stat {
  background: rgba(255,255,255,0.05);
  border-radius: 10px;
  padding: 12px;
}

.shoot-result-stat .label {
  display: block;
  color: #888;
  font-size: 0.8rem;
  margin-bottom: 4px;
}

.shoot-result-stat .value {
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
}

.shoot-result-stat .value.gold { color: #ffd93d; }

.shoot-result-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.shoot-btn-retry {
  padding: 12px 32px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, #6bcb77, #4d96ff);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s;
}

.shoot-btn-retry:hover { transform: scale(1.05); }

.shoot-btn-back {
  padding: 12px 32px;
  border: 2px solid rgba(255,255,255,0.2);
  border-radius: 12px;
  background: transparent;
  color: #aaa;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.shoot-btn-back:hover {
  border-color: #fff;
  color: #fff;
}

@media (max-width: 600px) {
  .shoot-title { font-size: 2rem; }
  .shoot-rules { padding: 16px 20px; }
  .shoot-start-btn { padding: 12px 36px; font-size: 1.1rem; }
  .shoot-result-card { padding: 24px; min-width: auto; margin: 0 20px; }
}
