.person-item {
  width: 10px;
  height: 10px;
  background: red;
  border-radius: 50%;
  position: absolute;
  /* left: 0;
  top: 0; */
  z-index: 2000;
}
/* #MapContainer {
  transform: scale(0) !important;
} */

/* 雷达标记样式 */
.radar-marker {
  background: transparent !important;
  border: none !important;
}

/* -------------------------------------------------------------------------- */
/* Feature Toggles (Hide/Show elements) */
/* -------------------------------------------------------------------------- */

/* 名称开关只藏名字文本，装备圆点（在标签内）不受影响 */
.hide-showName .teammate-name,
.hide-showName .team-label {
    display: none !important;
}

.hide-showHealth .health-bar,
.hide-showHealth .teammate-health-bar-container {
    display: none !important;
}

.hide-showDirection .radar-direction,
.hide-showDirection .teammate-direction {
    display: none !important;
}

/* 武器开关：玩家标记上的武器名标签 */
.hide-showWeapon .teammate-weapon,
.hide-showWeapon .radar-weapon {
    display: none !important;
}

/* 头盔开关：血量条左侧头盔圆点 */
.hide-showHelmet .gear-dot.gear-helmet {
    display: none !important;
}

/* 护甲开关：血量条右侧护甲圆点 */
.hide-showArmor .gear-dot.gear-armor {
    display: none !important;
}

/* 关闭"显示死亡盒子"只隐藏死亡盒箱体，不影响地面物资（菱形）标记 */
.hide-showBoxes .dead-box-marker.death-crate {
    display: none !important;
}

/* 标记数量过多（perf-heavy）时关闭呼吸/漂浮动画：
   每个 infinite 动画都在持续触发合成，数量一多帧率会明显下降 */
.perf-heavy .dead-box-marker.death-crate .crate-svg,
.perf-heavy .dead-box-marker.item-marker .item-diamond,
.perf-heavy .dead-box-marker .box-icon {
    animation: none !important;
}

.hide-showItems #itemFilterPanel {
    display: none !important;
}

/* -------------------------------------------------------------------------- */
/* Dead Box Marker */
/* -------------------------------------------------------------------------- */

.dead-box-icon {
  background: transparent !important;
  border: none !important;
}

.dead-box-marker {
  position: relative;
  width: 18px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  filter:
    drop-shadow(0 3px 4px rgba(0, 0, 0, 0.62))
    drop-shadow(0 0 8px rgba(129, 245, 204, 0.45));
}

.dead-box-marker .box-icon {
  width: 14px;
  height: 17px;
  background:
    radial-gradient(circle at 34% 22%, rgba(255, 255, 255, 0.72) 0 11%, transparent 12%),
    linear-gradient(135deg, #f4fff7 0%, #c9e8d7 36%, #8fc3a8 70%, #5f8873 100%);
  border: 1px solid #dff8e8;
  border-bottom-width: 2px;
  border-radius: 7px 7px 3px 3px;
  box-shadow:
    inset 1px 1px 0 rgba(255, 255, 255, 0.74),
    inset -1px -2px 0 rgba(20, 58, 26, 0.2),
    0 0 0 1px rgba(29, 54, 43, 0.78),
    0 0 6px rgba(139, 255, 210, 0.42),
    0 0 10px rgba(95, 210, 170, 0.22);
  position: relative;
  transition: all 0.3s ease;
  transform: rotate(-2deg);
  animation: gravePulse 1.8s ease-in-out infinite;
}

.dead-box-marker .box-icon::before {
  content: 'RIP';
  position: absolute;
  top: 5px;
  left: 50%;
  transform: translateX(-50%);
  color: #1c3d1e;
  font-size: 5px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1;
  font-family: Arial, sans-serif;
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.62);
}

.dead-box-marker .box-icon::after {
  content: '';
  position: absolute;
  width: 6px;
  height: 8px;
  top: 7px;
  left: 5px;
  border-left: 1px solid rgba(21, 69, 25, 0.78);
  border-bottom: 1px solid rgba(21, 69, 25, 0.6);
  transform: skew(-18deg) rotate(12deg);
  border-radius: 0 0 0 3px;
}

.dead-box-marker::after {
  content: '';
  position: absolute;
  left: 2px;
  right: 2px;
  bottom: 1px;
  height: 6px;
  background:
    radial-gradient(ellipse at center, #9c6b34 0%, #53341e 64%, transparent 66%),
    radial-gradient(circle at 19% 50%, #c48b48 0 2px, transparent 3px),
    radial-gradient(circle at 76% 56%, #75502c 0 2px, transparent 3px);
  border-radius: 50%;
  z-index: -1;
}

.dead-box-marker .box-label {
  position: absolute;
  top: -18px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(18, 22, 19, 0.88);
  color: #d8e6d9;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 10px;
  white-space: nowrap;
  font-family: 'Arial', sans-serif;
  text-shadow: 0 1px 2px #000;
  pointer-events: none;
  z-index: 5;
  border: 1px solid rgba(160, 190, 168, 0.42);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.45),
    0 2px 6px rgba(0, 0, 0, 0.35);
}

@keyframes gravePulse {
  0%, 100% {
    filter: brightness(1) saturate(1);
  }
  50% {
    filter: brightness(1.12) saturate(1.08);
  }
}

/* -------------------------------------------------------------------------- */
/* Teammate/Enemy Marker (Teardrop Style) */
/* -------------------------------------------------------------------------- */

.teammate-marker-container {
  position: relative;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  will-change: transform;
}

/* 泪滴主体 - Teardrop Body */
.teammate-body {
  position: absolute;
  width: 14px;
  height: 14px;
  background: var(--team-color);
  border-radius: 50%;
  /* Removed glow box-shadow */
  z-index: 2;
  /* Circle shape, direction is separate */
}

/* 独立的三角形指示器 - Direction Triangle */
.teammate-direction {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform-origin: 50% 50%;
  pointer-events: none;
  z-index: 1;
}

.teammate-direction::after {
  content: '';
  position: absolute;
  top: -2px;
  left: 50%;
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-bottom: 10px solid var(--team-color);
  transform: translateX(-50%);
}

/* Teammate Label：只负责布局，名字与圆点是其子元素 */
.teammate-label {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  pointer-events: none;
  display: flex;           /* 名称 + 装备圆点 横向排 */
  align-items: center;
  gap: 5px;
  font-size: 10px;
  font-family: 'Arial', sans-serif;
}

/* 名字胶囊：底色/描边挂在名字上，名称关闭时圆点仍能独立显示 */
.teammate-name {
  background: rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  padding: 2px 6px;
  border-radius: 4px;
  white-space: nowrap;
  text-shadow: 0 0 2px #000;
}

/* 断流失联的标记：半透明闪烁，保留最后已知位置 */
.marker-stale {
    opacity: 0.45 !important;
    filter: grayscale(0.6);
    animation: staleBlink 1.6s ease-in-out infinite;
}

@keyframes staleBlink {
    0%, 100% { opacity: 0.4; }
    50%      { opacity: 0.85; }
}

/* Teammate Health Bar */
/* .teammate-health-bar-container {
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 2px;
  background: #000;
  border: 0.5px solid #fff;
  border-radius: 1px;
  overflow: hidden;
} */

/* -------------------------------------------------------------------------- */
/* Tech-Style Radar Marker - Compact & Tech */
/* -------------------------------------------------------------------------- */

.radar-marker-container {
  position: relative;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  will-change: transform;
}

/* 扫描圈 - Rotating Ring (Restored Animation) */
.radar-scan-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 32px;
  height: 32px;
  transform: translate(-50%, -50%);
  border: 1px dashed var(--team-color);
  border-radius: 50%;
  opacity: 0.8;
  animation: spin 3s linear infinite;
  box-shadow: 0 0 4px var(--team-color);
}

@keyframes spin {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* 底部光晕 - Static Glow */
.radar-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 24px;
  height: 24px;
  background: radial-gradient(circle, var(--team-color) 0%, transparent 70%);
  opacity: 0.4;
  border-radius: 50%;
}

/* 朝向指示器 - Tech Cone */
.radar-direction {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  will-change: transform;
}

/* FOV Beam (Removed) */
.radar-direction .direction-cone {
  display: none;
}

/* Direction Chevron (Sharp Indicator) */
.radar-direction::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 10px;
  /* Chevron shape */
  border-top: 3px solid var(--team-color);
  border-right: 3px solid var(--team-color);
  /* Rotate to point UP and position */
  transform: translate(-50%, -50%) translateY(-12px) rotate(-45deg);
  filter: drop-shadow(0 0 3px var(--team-color));
  z-index: 1;
}

/* 主体 - Tech Node */
.radar-body {
  position: relative;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(0, 20, 30, 0.9);
  border: 1.5px solid var(--team-color);
  box-shadow: 0 0 6px var(--team-color);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

/* Hover effect */
.radar-body:hover {
  transform: scale(1.1);
  box-shadow: 0 0 10px var(--team-color);
  z-index: 10;
}

/* 本地玩家特殊样式 */
.radar-body.local-player {
  border-color: #ffd700;
  border-width: 2px;
  box-shadow: 0 0 8px #ffd700;
}

/* 核心点 */
.radar-core {
  position: absolute;
  width: 4px;
  height: 4px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 0 2px #fff;
  z-index: 3;
}

/* 队伍标签 */
.team-label {
  position: absolute;
  top: -14px;
  font-family: 'Arial', sans-serif;
  font-size: 9px;
  font-weight: bold;
  color: #fff;
  text-shadow: 0 0 2px #000;
  background: rgba(0, 0, 0, 0.6);
  padding: 0 3px;
  border-radius: 3px;
  white-space: nowrap;
  transform: scale(0.9);
}

/* 血量条 */
.health-bar {
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 2px;
  background: rgba(0,0,0,0.8);
  border: 0.5px solid rgba(255,255,255,0.3);
  border-radius: 1px;
  overflow: hidden;
}

/* 武器名称标签（血量条/装备分割条下方） */
.teammate-weapon,
.radar-weapon {
  position: absolute;
  top: 46px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.62);
  color: #ffe08a;
  padding: 1px 5px;
  border-radius: 3px;
  font-size: 9px;
  line-height: 12px;
  white-space: nowrap;
  font-family: 'Arial', sans-serif;
  text-shadow: 0 0 2px #000;
  pointer-events: none;
}

/* 头盔/护甲等级圆点：玩家名称右侧，上下两颗（上头盔、下护甲） */
.gear-dot {
  flex: none;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  border: 0.5px solid rgba(255, 255, 255, 0.75);
  box-shadow: 0 0 3px rgba(0, 0, 0, 0.85);
  pointer-events: none;
}

.gear-dots-col {
  display: flex;
  flex-direction: column; /* 竖着排列：上头盔、下护甲 */
  align-items: center;
  justify-content: center;
  gap: 3px;
}

/* 装备分割条：血条正下方、同宽（24px）、一分为二（左头右甲）。
   名称关闭时启用此样式替代圆点；名称开启时隐藏。 */
.gear-bar {
  position: absolute;
  bottom: -11px;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 3px;
  display: none;              /* 名称开启时隐藏 */
  border: 0.5px solid rgba(255, 255, 255, 0.3);
  border-radius: 1.5px;
  overflow: hidden;
  pointer-events: none;
  box-shadow: 0 0 3px rgba(0, 0, 0, 0.85);
}

/* 名称关闭：显示分割条样式（圆点列隐藏） */
.hide-showName .gear-bar { display: flex; }
.hide-showName .gear-dots-col { display: none; }

.gear-bar-seg {
  width: 50%;
  height: 100%;
}

/* 头盔/护甲总开关关闭时：分割条对应半段显示为空槽灰 */
.hide-showHelmet .gear-bar .gear-bar-helmet {
    background: rgba(60, 60, 60, 0.85) !important;
}

.hide-showArmor .gear-bar .gear-bar-armor {
    background: rgba(60, 60, 60, 0.85) !important;
}

.gear-dot.empty {
  background: rgba(60, 60, 60, 0.8);
  border-color: rgba(255, 255, 255, 0.25);
}

.health-fill {
  height: 100%;
  box-shadow: 0 0 2px currentColor;
}

/* 雷达实体动画和防重叠样式 */
.leaflet-marker-icon {
  /* transition: transform 0.3s ease-out !important; REMOVED to fix zoom drift */
  will-change: transform;
}

.radar-type-1 {
  z-index: 1000 !important;
}

.radar-type-2 {
  z-index: 500 !important;
}

.radar-type-3 {
  z-index: 750 !important;
}

/* SVG容器优化 */
.leaflet-marker-icon svg {
  overflow: hidden !important;
  pointer-events: none;
  backface-visibility: hidden;
  transform-style: preserve-3d;
}

/* 文本渲染优化 */
.leaflet-marker-icon text {
  text-rendering: optimizeSpeed;
  shape-rendering: optimizeSpeed;
}

/* 雷达控制面板按钮 */
.radar-control-toggle {
  position: fixed;
  top: 10px;
  right: 10px;
  z-index: 9999;
  width: 40px;
  height: 40px;
  background: rgba(0, 0, 0, 0.7);
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  transition: all 0.3s ease;
}

.radar-control-toggle:hover {
  background: rgba(0, 0, 0, 0.9);
  transform: scale(1.05);
}

.radar-control-toggle .radar-toggle-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid #fff;
  position: relative;
  background:
    radial-gradient(circle, rgba(255,255,255,0.5) 2px, transparent 3px),
    radial-gradient(circle, transparent 6px, rgba(255,255,255,0.5) 7px, transparent 8px);
  box-shadow: 0 0 5px rgba(255,255,255,0.5);
}

.radar-control-toggle .radar-toggle-icon::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 12px;
  background: linear-gradient(45deg, rgba(255,255,255,0.9) 0%, transparent 60%);
  transform-origin: 0 0;
  animation: radar-scan 2s infinite linear;
}

@keyframes radar-scan {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* 雷达控制面板 - Tech Style */
.radar-control {
  position: fixed;
  top: 60px;
  right: 10px;
  z-index: 9999;
  background: rgba(10, 25, 40, 0.85); /* Deep tech blue */
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 255, 255, 0.3);
  box-shadow: 0 0 15px rgba(0, 255, 255, 0.15), inset 0 0 20px rgba(0, 255, 255, 0.05);
  color: #0ff;
  padding: 12px 16px;
  border-radius: 4px;
  font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-size: 13px;
  line-height: 1.8;
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  min-width: 160px;
}

.radar-control::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #0ff, transparent);
}

.radar-control.hidden {
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px) scale(0.95);
  pointer-events: none;
}

.radar-control .radar-title {
  font-weight: 700;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-bottom: 1px solid rgba(0, 255, 255, 0.2);
  padding-bottom: 4px;
  text-shadow: 0 0 5px rgba(0, 255, 255, 0.5);
}

.radar-control label {
  display: flex;
  align-items: center;
  cursor: pointer;
  padding: 4px 0;
  transition: color 0.2s;
  color: rgba(255, 255, 255, 0.8);
}

.radar-control input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  border: 1px solid #0ff;
  background: rgba(0, 0, 0, 0.5);
  margin-right: 8px;
  flex-shrink: 0; /* Prevent checkbox from shrinking */
  position: relative;
  cursor: pointer;
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.radar-control input[type="checkbox"]:checked {
  background: rgba(0, 255, 255, 0.3);
  box-shadow: 0 0 5px #0ff;
}

.radar-control input[type="checkbox"]:checked::after {
  content: '✓';
  color: #0ff;
  font-size: 10px;
  font-weight: bold;
}

.radar-control select {
  width: 100%;
  margin-top: 5px;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(0, 255, 255, 0.3);
  color: #0ff;
  padding: 4px;
  border-radius: 2px;
  outline: none;
}

.radar-control select:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.mobile-map-switch {
  display: none;
}

.mobile-map-row {
  display: flex;
  gap: 6px;
  align-items: stretch;
}

.mobile-map-row select {
  flex: 1;
  min-width: 0;
}

.mobile-map-apply {
  flex: 0 0 auto;
  background: rgba(0, 255, 255, 0.16);
  border: 1px solid rgba(0, 255, 255, 0.48);
  color: #dff;
  border-radius: 2px;
  padding: 0 10px;
  font: inherit;
  cursor: pointer;
}

.mobile-map-apply:active {
  background: rgba(0, 255, 255, 0.3);
}

/* 房间控制样式 */
.room-control {
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(0, 255, 255, 0.2);
}

.radar-title-sub {
    font-size: 11px;
    color: rgba(0, 255, 255, 0.7);
    margin-bottom: 6px;
    text-transform: uppercase;
}

.room-input {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(0, 255, 255, 0.3);
    color: #fff;
    padding: 6px;
    margin-bottom: 8px;
    border-radius: 2px;
    font-family: inherit;
    font-size: 12px;
    box-sizing: border-box; /* 确保padding不会撑大宽度 */
}

.room-input:focus {
    outline: none;
    border-color: #0ff;
    box-shadow: 0 0 5px rgba(0, 255, 255, 0.3);
}

.room-buttons {
    display: flex;
    gap: 8px;
    margin-bottom: 6px;
}

.room-btn {
    flex: 1;
    padding: 6px 0;
    border: none;
    border-radius: 2px;
    cursor: pointer;
    font-size: 12px;
    font-weight: bold;
    transition: all 0.2s;
    text-transform: uppercase;
}

.room-btn.connect {
    background: rgba(0, 255, 157, 0.2);
    border: 1px solid rgba(0, 255, 157, 0.5);
    color: #00ff9d;
}

.room-btn.connect:hover {
    background: rgba(0, 255, 157, 0.4);
    box-shadow: 0 0 8px rgba(0, 255, 157, 0.3);
}

.room-btn.disconnect {
    background: rgba(255, 56, 56, 0.2);
    border: 1px solid rgba(255, 56, 56, 0.5);
    color: #ff3838;
}

.room-btn.disconnect:hover {
    background: rgba(255, 56, 56, 0.4);
    box-shadow: 0 0 8px rgba(255, 56, 56, 0.3);
}

.room-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    filter: grayscale(100%);
}

.connection-status {
    font-size: 11px;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 4px;
}

.connection-status.connected {
    color: #00ff9d;
    text-shadow: 0 0 5px rgba(0, 255, 157, 0.5);
}

.connection-status.disconnected {
    color: #ff3838;
}

.item-filter-panel {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(0, 255, 255, 0.2);
}

.item-filter-panel.floating-item-panel {
    position: fixed;
    top: 118px;
    right: 10px;
    z-index: 10000;
    width: 260px;
    max-width: calc(100vw - 20px);
    margin-top: 0;
    padding: 10px 12px 12px;
    box-sizing: border-box;
    background: rgba(8, 20, 32, 0.88);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 255, 255, 0.28);
    border-top: 2px solid rgba(0, 255, 255, 0.65);
    border-radius: 4px;
    box-shadow:
        0 8px 26px rgba(0, 0, 0, 0.45),
        0 0 15px rgba(0, 255, 255, 0.12),
        inset 0 0 18px rgba(0, 255, 255, 0.04);
    color: #dff;
    user-select: none;
    -webkit-user-select: none;
}

.item-filter-panel.floating-item-panel.dragging {
    opacity: 0.92;
}

.item-panel-drag-handle {
    cursor: move;
    margin: -4px -6px 8px;
    padding: 4px 6px 7px;
    border-bottom: 1px solid rgba(0, 255, 255, 0.16);
    touch-action: none;
    -webkit-user-select: none;
    user-select: none;
}

.item-panel-drag-handle::after {
    content: '';
    float: right;
    width: 22px;
    height: 10px;
    margin-top: 2px;
    opacity: 0.45;
    background:
        radial-gradient(circle, currentColor 1px, transparent 2px) 0 0 / 7px 5px;
}

.item-level-filters {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4px 8px;
    margin-bottom: 8px;
}

.item-filter-title {
    margin: 2px 0 5px;
    color: rgba(255, 255, 255, 0.58);
    font-size: 11px;
}

.item-level-filters label {
    display: flex;
    align-items: center;
    padding: 1px 0;
    font-size: 12px;
    line-height: 1.2;
    color: rgba(255, 255, 255, 0.82);
    cursor: pointer;
}

.item-filter-panel input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    border: 1px solid #0ff;
    background: rgba(0, 0, 0, 0.5);
    margin-right: 6px;
    flex-shrink: 0;
    position: relative;
    cursor: pointer;
    border-radius: 2px;
}

.item-filter-panel input[type="checkbox"]:checked {
    background: rgba(0, 255, 255, 0.3);
    box-shadow: 0 0 5px #0ff;
}

.item-filter-panel input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    inset: -2px 0 0 2px;
    color: #0ff;
    font-size: 10px;
    font-weight: bold;
}

.item-list {
    border: 1px solid rgba(0, 255, 255, 0.22);
    background: rgba(0, 0, 0, 0.24);
    border-radius: 3px;
    overflow: hidden;
}

.item-list-head,
.item-row {
    display: grid;
    grid-template-columns: minmax(72px, 1fr) 38px 48px;
    gap: 6px;
    align-items: center;
}

.item-list-head {
    padding: 4px 6px;
    color: rgba(0, 255, 255, 0.74);
    font-size: 11px;
    border-bottom: 1px solid rgba(0, 255, 255, 0.16);
}

.item-list-body {
    max-height: 168px;
    overflow-y: auto;
}

.item-row {
    padding: 4px 6px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 11px;
    line-height: 1.25;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.item-row:last-child {
    border-bottom: none;
}

.item-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.item-level {
    color: #ffd166;
}

.item-price {
    color: #8ff0bd;
    text-align: right;
}

.item-empty {
    padding: 8px 6px;
    color: rgba(255, 255, 255, 0.45);
    font-size: 11px;
    text-align: center;
}

/* Radar loot markers: PUBG-style death crate + tiered diamond loot */
.dead-box-icon {
  background: transparent !important;
  border: none !important;
}

.dead-box-marker.death-crate {
  width: 36px;
  height: 28px;
  filter:
    drop-shadow(0 4px 4px rgba(0, 0, 0, 0.72))
    drop-shadow(0 0 7px rgba(255, 182, 92, 0.26));
}

.dead-box-marker.death-crate .crate-svg {
  width: 36px;
  height: 28px;
  overflow: visible !important;
  animation: cratePulse 2s ease-in-out infinite;
}

.dead-box-marker.death-crate .crate-shadow {
  fill: rgba(0, 0, 0, 0.36);
}

.dead-box-marker.death-crate .crate-top {
  fill: #c78943;
  stroke: #f1bb70;
  stroke-width: 1;
}

.dead-box-marker.death-crate .crate-front {
  fill: #7b4a22;
  stroke: #d79a55;
  stroke-width: 1;
}

.dead-box-marker.death-crate .crate-left {
  fill: #9e622d;
  stroke: #d79a55;
  stroke-width: 1;
}

.dead-box-marker.death-crate .crate-right {
  fill: #593517;
  stroke: #d79a55;
  stroke-width: 1;
}

.dead-box-marker.death-crate .crate-band-v,
.dead-box-marker.death-crate .crate-band-h {
  fill: rgba(45, 26, 14, 0.66);
}

.dead-box-marker.death-crate .crate-line {
  fill: none;
  stroke: rgba(255, 223, 160, 0.48);
  stroke-width: 0.8;
}

.dead-box-marker.death-crate .crate-highlight {
  fill: rgba(255, 236, 178, 0.38);
}

.dead-box-marker.death-crate::after {
  display: none;
}

.dead-box-marker.item-marker {
  width: 22px;
  height: 22px;
  filter:
    drop-shadow(0 3px 4px rgba(0, 0, 0, 0.7))
    drop-shadow(0 0 9px var(--item-glow));
}

.dead-box-marker.item-marker .item-diamond {
  width: 15px;
  height: 15px;
  position: relative;
  transform: rotate(45deg);
  border-radius: 3px;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.94) 0 18%, rgba(255,255,255,0.32) 19% 33%, transparent 34%),
    linear-gradient(135deg, var(--item-light) 0%, var(--item-color) 52%, var(--item-dark) 100%);
  border: 1px solid rgba(255,255,255,0.76);
  box-shadow:
    inset 1px 1px 0 rgba(255,255,255,0.58),
    inset -2px -2px 0 rgba(0,0,0,0.22),
    0 0 0 1px rgba(0,0,0,0.62),
    0 0 10px var(--item-glow);
  animation: diamondFloat 1.7s ease-in-out infinite;
}

.dead-box-marker.item-marker .item-diamond::after {
  content: '';
  position: absolute;
  width: 5px;
  height: 5px;
  left: 2px;
  top: 2px;
  border-radius: 1px;
  background: rgba(255, 255, 255, 0.58);
}

.dead-box-marker.item-marker::after {
  display: none;
}

.dead-box-marker.item-level-1 {
  --item-color: #f4f5f7;
  --item-light: #ffffff;
  --item-dark: #9ea4ad;
  --item-glow: rgba(255,255,255,0.42);
}

.dead-box-marker.item-level-2 {
  --item-color: #44d36f;
  --item-light: #a8ffbc;
  --item-dark: #16743a;
  --item-glow: rgba(68,211,111,0.58);
}

.dead-box-marker.item-level-3 {
  --item-color: #339af0;
  --item-light: #91d5ff;
  --item-dark: #16559a;
  --item-glow: rgba(51,154,240,0.62);
}

.dead-box-marker.item-level-4 {
  --item-color: #b45cff;
  --item-light: #e0b5ff;
  --item-dark: #65309c;
  --item-glow: rgba(180,92,255,0.68);
}

.dead-box-marker.item-level-5 {
  --item-color: #ffd43b;
  --item-light: #fff0a3;
  --item-dark: #a86f00;
  --item-glow: rgba(255,212,59,0.74);
}

.dead-box-marker.item-level-6 {
  --item-color: #ff3838;
  --item-light: #ff9a9a;
  --item-dark: #931313;
  --item-glow: rgba(255,56,56,0.78);
}

.dead-box-marker.item-marker .box-label {
  top: -19px;
  background: rgba(8, 10, 14, 0.88);
  color: #f7fbff;
  border-color: var(--item-glow);
}

.dead-box-marker.death-crate .box-label {
  top: -21px;
  background: rgba(30, 20, 12, 0.9);
  color: #ffe2b0;
  border-color: rgba(255, 198, 118, 0.42);
}

@keyframes cratePulse {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.12); }
}

@keyframes diamondFloat {
  0%, 100% { transform: rotate(45deg) translate(0, 0); }
  50% { transform: rotate(45deg) translate(-1px, -1px); }
}

@media (max-width: 768px), (pointer: coarse) {
  body.mobile-radar-focus .nav-ctn,
  body.mobile-radar-focus .left-nav-ctn,
  body.mobile-radar-focus .map-select,
  body.mobile-radar-focus .map-floor,
  body.mobile-radar-focus .select-region-ctn,
  body.mobile-radar-focus .curr-map-ctn,
  body.mobile-radar-focus .btn-war-change,
  body.mobile-radar-focus .btn-view-change,
  body.mobile-radar-focus .random-ctn,
  body.mobile-radar-focus .map-floor-change-ctn,
  body.mobile-radar-focus .war-lv-change-ctn,
  body.mobile-radar-focus .deploy-swiper,
  body.mobile-radar-focus .bottom-bar {
    display: none !important;
    pointer-events: none !important;
  }

  html,
  body,
  .content,
  .m-main-wrap,
  .m-vertical,
  .m-wrap,
  .m-index,
  #MapContainer {
    width: 100vw !important;
    height: 100dvh !important;
    min-height: 100dvh !important;
    overflow: hidden !important;
  }

  .radar-control-toggle {
    top: calc(env(safe-area-inset-top, 0px) + 8px);
    right: 8px;
    width: 34px;
    height: 34px;
  }

  .radar-control-toggle .radar-toggle-icon {
    width: 19px;
    height: 19px;
  }

  .radar-control {
    top: calc(env(safe-area-inset-top, 0px) + 50px);
    left: 8px;
    right: 8px;
    width: auto;
    min-width: 0;
    max-height: calc(100dvh - env(safe-area-inset-top, 0px) - 64px);
    overflow-y: auto;
    padding: 8px 10px;
    font-size: 12px;
    line-height: 1.45;
  }

  .radar-control .radar-title {
    margin-bottom: 6px;
    padding-bottom: 3px;
  }

  .radar-control label {
    padding: 2px 0;
  }

  .room-control {
    margin-bottom: 8px;
    padding-bottom: 8px;
  }

  .room-buttons {
    gap: 6px;
  }

  .mobile-map-switch {
    display: block;
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(0, 255, 255, 0.2);
  }

  .item-filter-panel.floating-item-panel {
    left: 8px;
    right: auto;
    top: auto;
    bottom: calc(env(safe-area-inset-bottom, 0px) + 8px);
    width: min(210px, calc(100vw - 16px));
    max-width: calc(100vw - 16px);
    max-height: 32dvh;
    padding: 7px;
  }

  .item-panel-drag-handle {
    margin: -3px -4px 6px;
    padding: 3px 4px 6px;
  }

  .item-level-filters {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 2px;
  }

  .item-level-filters label {
    justify-content: center;
    font-size: 10px;
  }

  .item-filter-panel input[type="checkbox"] {
    width: 12px;
    height: 12px;
    margin-right: 3px;
  }

  .item-list-head,
  .item-row {
    grid-template-columns: minmax(58px, 1fr) 30px 42px;
    gap: 4px;
  }

  .item-list-body {
    max-height: 22dvh;
  }

  .item-list-head,
  .item-row,
  .item-empty {
    font-size: 10px;
  }
}
