/* ====== 圈地追捕（地图版）专属样式，基础样式复用 style.css ====== */

/* ====== 模式切换链接 ====== */
.mode-link {
  margin-top: 20px;
  color: var(--secondary);
  font-size: 13px;
  text-decoration: none;
}

/* ====== 规则卡 / 圈状态 ====== */
.rules-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 14px 16px;
  width: 100%;
  margin-bottom: 12px;
  font-size: 13px;
  color: var(--text-dim);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.rules-card b {
  color: var(--text);
}

.circle-status {
  width: 100%;
  text-align: center;
  font-size: 13px;
  color: var(--danger);
  background: rgba(225,112,85,0.12);
  border-radius: 8px;
  padding: 8px;
  margin-bottom: 16px;
}

.circle-status.ready {
  color: var(--success);
  background: rgba(0,184,148,0.12);
}

.room-tag.circle-ready {
  background: var(--success);
  color: white;
}

/* ====== 地图容器 ====== */
#screen-circle,
#screen-game {
  background: #000;
  overflow: hidden;
}

.map-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
}

/* ====== 画圈工具条 ====== */
.circle-toolbar {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: calc(env(safe-area-inset-bottom) + 12px);
  z-index: 10;
  background: rgba(26,26,46,0.92);
  border-radius: var(--radius);
  padding: 14px;
  backdrop-filter: blur(8px);
}

.circle-hint {
  font-size: 12px;
  color: var(--text-dim);
  text-align: center;
  margin-bottom: 10px;
}

.radius-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  margin-bottom: 12px;
}

.radius-row input[type="range"] {
  flex: 1;
}

#circle-radius-label {
  min-width: 56px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.circle-btn-row {
  display: flex;
  gap: 8px;
}

.circle-btn-row .btn {
  flex: 1;
  padding: 10px 4px;
  font-size: 13px;
}

/* ====== 游戏HUD ====== */
.hud-bottom-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 12px;
  padding-bottom: calc(env(safe-area-inset-bottom) + 12px);
  background: linear-gradient(to top, rgba(0,0,0,0.75), transparent);
  pointer-events: auto;
}

/* ====== 出圈警告 ====== */
.bounds-banner {
  margin: 0 16px;
  background: rgba(214,48,49,0.95);
  color: white;
  font-weight: 700;
  font-size: 14px;
  text-align: center;
  padding: 12px;
  border-radius: 10px;
  animation: boundsBlink 1s infinite;
  pointer-events: none;
}

@keyframes boundsBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.65; }
}

/* ====== 人类面板 ====== */
.human-panel {
  width: 100%;
  max-width: 400px;
  background: rgba(26,26,46,0.9);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 13px;
  text-align: center;
  backdrop-filter: blur(6px);
}

#nearest-ghost.danger {
  color: var(--danger);
  font-weight: 700;
}

/* ====== 鬼的目标面板 ====== */
.ghost-panel {
  width: 100%;
  max-width: 400px;
  background: rgba(26,26,46,0.9);
  border-radius: 10px;
  padding: 10px 14px;
  backdrop-filter: blur(6px);
}

.ghost-panel-title {
  font-size: 12px;
  color: var(--text-dim);
  margin-bottom: 6px;
}

.target-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 160px;
  overflow-y: auto;
}

.target-empty {
  font-size: 12px;
  color: var(--text-dim);
  text-align: center;
  padding: 6px;
}

.target-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}

.target-name {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.target-dist {
  font-variant-numeric: tabular-nums;
  color: var(--text-dim);
  min-width: 48px;
  text-align: right;
}

.target-dist.in-range {
  color: var(--danger);
  font-weight: 700;
}

.btn-catch {
  min-width: 52px;
}

.btn-catch:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* ====== 技能转盘 ====== */
.btn-roulette {
  background: linear-gradient(135deg, var(--primary), #8e44ad);
  color: white;
  font-weight: 700;
  animation: roulettePulse 1.5s infinite;
}

@keyframes roulettePulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(108,92,231,0.5); }
  50% { transform: scale(1.04); box-shadow: 0 0 0 10px rgba(108,92,231,0); }
}

.roulette-modal {
  max-width: 320px;
}

.wheel-wrap {
  position: relative;
  width: 240px;
  height: 240px;
  margin: 8px auto 12px;
}

.wheel {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  position: relative;
  border: 4px solid rgba(255,255,255,0.25);
  box-shadow: 0 4px 24px rgba(0,0,0,0.5);
  overflow: hidden;
}

.wheel-label {
  position: absolute;
  inset: 0;
  text-align: center;
  font-size: 10px;
  font-weight: 700;
  color: white;
  padding-top: 18px;
  text-shadow: 0 1px 3px rgba(0,0,0,0.7);
  pointer-events: none;
}

.wheel-pointer {
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 22px;
  color: #ffd32a;
  z-index: 2;
  text-shadow: 0 2px 4px rgba(0,0,0,0.6);
}

.roulette-result {
  min-height: 36px;
  font-size: 13px;
  color: var(--text);
  margin-bottom: 4px;
}

/* ====== 技能效果徽章 ====== */
.effect-badges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.effect-badge {
  font-size: 11px;
  font-weight: 600;
  color: white;
  background: rgba(108,92,231,0.9);
  padding: 2px 8px;
  border-radius: 10px;
  font-variant-numeric: tabular-nums;
}

.effect-badge.bad {
  background: rgba(99,110,114,0.9);
}

/* ====== 计时器紧急态 ====== */
.hud-timer.urgent {
  color: var(--danger);
  font-weight: 700;
}

/* ====== 玩家地图标记 ====== */
.player-marker {
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: translateY(-2px);
}

.marker-icon {
  font-size: 24px;
  line-height: 1;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.6));
}

.marker-name {
  font-size: 10px;
  font-weight: 600;
  color: white;
  background: rgba(0,0,0,0.7);
  padding: 1px 6px;
  border-radius: 8px;
  white-space: nowrap;
  margin-top: 2px;
}

.marker-ghost .marker-name {
  background: rgba(214,48,49,0.85);
}

.marker-human .marker-name {
  background: rgba(0,184,148,0.85);
}

.marker-me .marker-name {
  outline: 2px solid var(--secondary);
}

/* ====== 道具栏（AR 四件套）====== */
.item-bar {
  display: flex;
  gap: 6px;
  pointer-events: auto;
}
.item-btn {
  position: relative;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.15);
  color: white;
  font-size: 20px;
  cursor: pointer;
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s, background 0.15s;
}
.item-btn:active { transform: scale(0.92); }
.item-btn:hover { background: rgba(108,92,231,0.5); }
.item-count {
  position: absolute;
  bottom: -2px;
  right: -2px;
  background: var(--danger);
  color: white;
  font-size: 11px;
  font-weight: 700;
  min-width: 16px;
  height: 16px;
  line-height: 16px;
  border-radius: 8px;
  padding: 0 4px;
  text-align: center;
}

/* ====== 任务点 / 挑战按钮 / 雷达标记 ====== */
.task-marker {
  font-size: 24px;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.6));
  animation: taskPulse 2s infinite;
}
@keyframes taskPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.2); }
}
.btn-task {
  background: var(--secondary);
  color: #fff;
  font-weight: 700;
  padding: 10px 18px;
  border-radius: 20px;
  box-shadow: 0 0 12px rgba(0,206,201,0.6);
  animation: taskPulse 1.5s infinite;
}
.radar-marker {
  font-size: 22px;
  filter: drop-shadow(0 0 6px rgba(108,92,231,0.9));
  animation: radarBlink 0.8s infinite;
}
@keyframes radarBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* ====== 反应点击小游戏 ====== */
.minigame-content { max-width: 340px; }
.minigame-arena {
  position: relative;
  width: 100%;
  height: 240px;
  background: rgba(0,0,0,0.4);
  border-radius: 10px;
  margin: 12px 0;
  overflow: hidden;
  border: 1px solid #333;
}
.mini-target {
  position: absolute;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: radial-gradient(circle, #00b894, #00cec9);
  border: 3px solid #fff;
  box-shadow: 0 0 16px rgba(0,206,201,0.9);
  cursor: pointer;
  animation: targetIn 0.2s ease-out;
}
@keyframes targetIn {
  from { transform: scale(0); }
  to { transform: scale(1); }
}
