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

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  background: #111;
  color: #fff;
}

#game-container {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

/* three.js 画布 */
#game-container canvas {
  display: block;
  width: 100%;
  height: 100%;
  image-rendering: pixelated; /* 像素风味道 */
}

/* HUD 顶部信息栏 */
#hud {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 10;
  pointer-events: none;
  background: rgba(0, 0, 0, 0.4);
  padding: 10px 14px;
  border-radius: 8px;
  backdrop-filter: blur(4px);
  font-size: 14px;
}

#hud .row {
  display: flex;
  align-items: center;
  margin-top: 4px;
}

#hud .row span.label {
  margin-right: 4px;
  color: #ccc;
}

/* HP 血条 */
#hp-container {
  width: 160px;
  height: 14px;
  border-radius: 7px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  overflow: hidden;
  background: rgba(0, 0, 0, 0.4);
  margin-top: 4px;
}

#hp-bar {
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, #ff5252, #ffeb3b);
}

/* 左下角操作提示 */
#tips {
  position: fixed;
  left: 10px;
  bottom: 10px;
  z-index: 10;
  font-size: 12px;
  color: #ccc;
  background: rgba(0,0,0,0.4);
  padding: 6px 10px;
  border-radius: 6px;
}

/* 小地图：右上角一个小方块 Canvas */
#minimap {
  position: fixed;
  top: 10px;
  right: 10px;
  width: 160px;
  height: 160px;
  z-index: 10;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.4);
  background: rgba(0,0,0,0.6);
}

/* 通用覆盖层（开始/结束界面） */
.overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 20;
  background: radial-gradient(circle at center, rgba(0,0,0,0.7), rgba(0,0,0,0.95));
}

.overlay .panel {
  background: rgba(20, 20, 20, 0.95);
  border-radius: 12px;
  padding: 20px 28px;
  box-shadow: 0 18px 40px rgba(0,0,0,0.6);
  text-align: center;
  max-width: 420px;
}

.overlay h1,
.overlay h2 {
  margin-bottom: 10px;
}

.overlay p {
  margin-top: 6px;
  margin-bottom: 12px;
  line-height: 1.6;
  color: #ddd;
}

button.btn {
  margin-top: 10px;
  padding: 8px 18px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  background: linear-gradient(135deg, #ff9800, #ff5722);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 6px 16px rgba(0,0,0,0.5);
  transition: transform 0.1s ease, box-shadow 0.1s ease, filter 0.1s ease;
  pointer-events: auto;
}

button.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.6);
  filter: brightness(1.05);
}

button.btn:active {
  transform: translateY(0px) scale(0.98);
  box-shadow: 0 4px 10px rgba(0,0,0,0.7);
}

/* 游戏结束遮罩默认隐藏，由 JS 控制显示 */
#overlay-gameover {
  display: none;
}

/* 开始游戏面板专属样式 */
#overlay-start .start-panel {
  max-width: 520px;
  padding-top: 22px;
  padding-bottom: 20px;
  background: radial-gradient(circle at top, rgba(45,45,75,0.95), rgba(12,12,24,0.98));
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.16);
  box-shadow: 0 24px 60px rgba(0,0,0,0.7);
  position: relative;
}

/* 顶部细条装饰 */
.panel-header-accent {
  position: absolute;
  top: 0;
  left: 50%;
  width: 160px;
  height: 4px;
  transform: translateX(-50%);
  border-radius: 0 0 999px 999px;
  background: linear-gradient(90deg, #ff9800, #ff5722);
}

/* 旧标题样式（可保留兼容） */
.game-title {
  font-size: 24px;
  margin-bottom: 4px;
  background: linear-gradient(120deg, #ffffff, #ffe082);
  -webkit-background-clip: text;
  color: transparent;
}

.game-subtitle {
  font-size: 13px;
  color: #b0bec5;
  margin-bottom: 12px;
}

/* 标签行 */
.tag-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.tag {
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(0,0,0,0.25);
}

/* 玩法说明列表 */
.feature-list {
  list-style: none;
  text-align: left;
  font-size: 13px;
  color: #e0e0e0;
  margin: 4px 0 10px;
  padding-left: 0;
}

.feature-list li {
  margin: 4px 0;
  line-height: 1.5;
}

/* 操作提示 */
.operation-tip {
  font-size: 12px;
  color: #b0bec5;
  margin-top: 4px;
}

/* 顶部 HUD 标题更像正式游戏名 */
#hud .hud-title {
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

/* 缩圈倒计时 UI */
#zone-timer-container {
  margin-top: 6px;
  font-size: 11px;
  color: #cfd8dc;
}

#zone-timer-label {
  margin-bottom: 2px;
}

#zone-timer-bar {
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: rgba(255,255,255,0.12);
  overflow: hidden;
}

#zone-timer-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #00e5ff, #ffeb3b);
  transition: width 0.1s linear;
}

/* 飞机 / 跳伞选择面板 */
#overlay-plane .plane-panel {
  max-width: 380px;
  background: radial-gradient(circle at top, rgba(30,40,70,0.97), rgba(5,5,15,0.98));
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.18);
  box-shadow: 0 24px 60px rgba(0,0,0,0.8);
  text-align: center;
  padding-bottom: 18px;
}

#plane-map {
  margin-top: 8px;
  border-radius: 8px;
  background: #020612;
  border: 1px solid rgba(255,255,255,0.15);
}

.plane-title {
  margin-bottom: 6px;
}

.plane-tip-main {
  font-size: 12px;
  color: #cfd8dc;
  margin-top: 8px;
}

.plane-tip-sub {
  font-size: 11px;
  color: #90a4ae;
  margin-top: 2px;
}

/* 视野雾圈：中心透明，外圈变暗，半径由 JS 控制 */
#fog-overlay {
  pointer-events: none;
  position: absolute;
  inset: 0;

  /* 默认值，JS 会动态覆盖这两个变量 */
  --fog-inner: 40%;
  --fog-fade: 80%;

  background: radial-gradient(
    circle at center,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0) var(--fog-inner),
    rgba(0, 0, 0, 0.6) var(--fog-fade),
    rgba(0, 0, 0, 0.85) 100%
  );
  mix-blend-mode: multiply;
}

/* ========= 新版开始界面文案样式 ========= */

/* 标题 / 副标题 / 标语 */
.start-title {
  font-size: 24px;
  margin: 0;
  text-align: center;
  background: linear-gradient(120deg, #ffffff, #ffe082);
  -webkit-background-clip: text;
  color: transparent;
}

.start-subtitle {
  font-size: 13px;
  font-weight: 400;
  opacity: 0.85;
  margin: 4px 0 10px;
  text-align: center;
  color: #b0bec5;
}

.start-tagline {
  font-size: 12px;
  text-align: center;
  color: #cfd8dc;
  margin-bottom: 6px;
}

/* 灵感来源小字 */
.start-credit {
  font-size: 11px;
  text-align: center;
  color: #90a4ae;
  margin-top: -2px;
  margin-bottom: 10px;
  opacity: 0.85;
}

/* 区块标题 + 列表 */
.start-section {
  margin-bottom: 10px;
}

.start-section-title {
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #90caf9;
  margin-bottom: 4px;
}

.start-list {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 12px;
  color: #eceff1;
}

.start-list li {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
  line-height: 1.4;
}

.start-list .key {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 4px;
  border: 1px solid rgba(255,255,255,0.3);
  font-size: 11px;
  background: rgba(0,0,0,0.25);
}

/* 开始按钮（新版） */
#overlay-start .primary-btn {
  margin-top: 10px;
  width: 100%;
  padding: 9px 0;
  border-radius: 999px;
  border: none;
  font-size: 14px;
  font-weight: 600;
  background: linear-gradient(135deg, #00e676, #00b0ff);
  color: #020617;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(0,0,0,0.6);
  transition: transform 0.08s ease, box-shadow 0.08s ease, filter 0.1s ease;
  pointer-events: auto;
}

#overlay-start .primary-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 32px rgba(0,0,0,0.75);
  filter: brightness(1.05);
}

#overlay-start .primary-btn:active {
  transform: translateY(0);
  box-shadow: 0 8px 18px rgba(0,0,0,0.7);
  filter: brightness(0.97);
}
