/* ============================================
   🎨 드래곤소드 맵 - 스타일시트
   ============================================
   
   목차:
   1. 전역 설정 & CSS 변수
   2. 기본 레이아웃
   3. 사이드바 & 패널 공통
   4. 모드 전환 버튼
   5. 진행도 패널
   6. 검색 패널
   7. 필터 패널
   8. 제보 패널
   9. 관리자 패널
   10. 알림
   11. Leaflet 커스터마이징
   12. 이모지 마커
   13. 툴팁 & 팝업
   14. 스플래시 화면
   15. 음악 플레이어
   16. 스크롤바
   17. 반응형
   
   ============================================ */

/* ============================================
   1. 전역 설정 & CSS 변수
   ============================================ */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* 메인 컬러 */
  --neon-pink: #ff00ff;
  --neon-cyan: #00ffff;
  
  /* 보조 컬러 */
  --primary: #667eea;
  --primary-dark: #5568d3;
  --success: #4caf50;
  --danger: #f44336;
  --warning: #ff9800;
  
  /* 배경 & 유리효과 */
  --dark: #1a1a2e;
  --dark-bg: rgba(20, 0, 40, 0.95);
  --glass: rgba(255, 255, 255, 0.1);
  --glass-dark: rgba(0, 0, 0, 0.5);
  
  /* 그림자 & 테두리 */
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.37);
  --border: rgba(255, 255, 255, 0.18);
  --glow-pink: 0 0 20px rgba(255, 0, 255, 0.5);
  --glow-cyan: 0 0 20px rgba(0, 255, 255, 0.5);
  
  /* 패널 크기 */
  --panel-width: 320px;
  --panel-radius: 12px;
  --btn-radius: 8px;
}

html {
  background: #0f1419;
}

body {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  overflow: hidden;
  font-family: 'Segoe UI', 'Noto Sans KR', Tahoma, Geneva, Verdana, sans-serif;
  height: 100vh;
}

/* ============================================
   2. 기본 레이아웃
   ============================================ */

#map {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1;
}

/* ============================================
   3. 사이드바 & 패널 공통
   ============================================ */

.left-sidebar {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: calc(100vh - 80px);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.right-sidebar {
  position: fixed;
  top: 10px;
  right: 10px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: calc(100vh - 80px);
  overflow-y: auto;
  width: var(--panel-width);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.left-sidebar.hidden {
  transform: translateX(-120%);
  opacity: 0;
  pointer-events: none;
}

.right-sidebar.hidden {
  transform: translateX(120%);
  opacity: 0;
  pointer-events: none;
}

/* 패널 공통 스타일 */
.panel {
  background: linear-gradient(135deg, rgba(20, 0, 40, 0.95), rgba(40, 0, 60, 0.95));
  border: 2px solid rgba(255, 0, 255, 0.3);
  border-radius: var(--panel-radius);
  box-shadow: var(--glow-pink);
  overflow: hidden;
  transition: all 0.3s ease;
}

.panel:hover {
  border-color: rgba(255, 0, 255, 0.5);
  box-shadow: 0 0 25px rgba(255, 0, 255, 0.3);
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 15px;
  background: linear-gradient(135deg, rgba(255, 0, 255, 0.2), rgba(0, 255, 255, 0.1));
  cursor: pointer;
  user-select: none;
  transition: background 0.3s ease;
}

.panel-header:hover {
  background: linear-gradient(135deg, rgba(255, 0, 255, 0.3), rgba(0, 255, 255, 0.2));
}

.panel-header span:first-child {
  color: var(--neon-cyan);
  font-weight: bold;
  font-size: 14px;
  text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

.panel-toggle {
  color: var(--neon-pink);
  font-size: 12px;
  transition: transform 0.3s ease;
}

.panel-content {
  padding: 15px;
  max-height: 600px;
  opacity: 1;
  overflow-y: auto;
  transition: max-height 0.3s ease, padding 0.3s ease, opacity 0.3s ease;
}

/* 패널 접힘 상태 */
.panel.collapsed .panel-toggle {
  transform: rotate(-90deg);
}

.panel.collapsed .panel-content {
  max-height: 0;
  padding: 0;
  opacity: 0;
  overflow: hidden;
}

/* 사이드바 내 패널 위치 초기화 */
.left-sidebar .progress-panel,
.left-sidebar .mode-switch,
.right-sidebar .search-box,
.right-sidebar .filter-panel,
.right-sidebar .report-panel,
.right-sidebar .admin-panel {
  position: relative;
  top: auto;
  left: auto;
  right: auto;
  bottom: auto;
  width: 100%;
}

/* 전체 UI 토글 버튼 */
.toggle-all-btn {
  position: fixed;
  bottom: 80px;
  right: 340px;
  z-index: 1001;
  width: 40px;
  height: 50px;
  background: linear-gradient(135deg, rgba(20, 0, 40, 0.95), rgba(40, 0, 60, 0.95));
  border: 2px solid rgba(255, 0, 255, 0.5);
  border-radius: 10px 0 0 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--glow-pink);
  transition: all 0.3s ease;
}

.toggle-all-btn:hover {
  background: linear-gradient(135deg, rgba(255, 0, 255, 0.3), rgba(0, 255, 255, 0.3));
  box-shadow: 0 0 30px rgba(255, 0, 255, 0.6);
}

.toggle-all-btn .toggle-icon {
  color: var(--neon-cyan);
  font-size: 18px;
  transition: transform 0.3s ease;
  transform: rotate(180deg);
}

.toggle-all-btn.ui-hidden {
  right: 10px;
}

.toggle-all-btn.ui-hidden .toggle-icon {
  transform: rotate(0deg);
}

/* ============================================
   4. 모드 전환 버튼
   ============================================ */

.mode-switch {
  display: flex;
  gap: 10px;
  background: var(--dark-bg);
  padding: 10px;
  border-radius: var(--panel-radius);
  border: 2px solid var(--neon-pink);
  box-shadow: var(--glow-pink);
  backdrop-filter: blur(10px);
}

.mode-btn {
  padding: 10px 20px;
  background: var(--glass);
  color: var(--neon-cyan);
  border: 2px solid var(--neon-cyan);
  border-radius: var(--btn-radius);
  cursor: pointer;
  font-weight: bold;
  font-size: 14px;
  transition: all 0.3s ease;
  box-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
}

.mode-btn:hover {
  background: rgba(0, 255, 255, 0.2);
  box-shadow: 0 0 20px rgba(0, 255, 255, 0.6);
  transform: translateY(-2px);
}

.mode-btn.active {
  background: linear-gradient(135deg, var(--neon-pink), var(--neon-cyan));
  color: white;
  border-color: white;
  box-shadow: 0 0 25px rgba(255, 0, 255, 0.8);
}

/* ============================================
   5. 진행도 패널
   ============================================ */

#progressPanel .panel-content {
  max-height: calc(100vh - 250px);
}

.progress-item {
  background: rgba(255, 255, 255, 0.05);
  padding: 15px;
  margin-bottom: 12px;
  border-radius: 10px;
  border-left: 4px solid var(--primary);
  transition: all 0.3s ease;
}

.progress-item:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateX(5px);
}

.progress-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.progress-item-name {
  display: flex;
  align-items: center;
  gap: 10px;
  color: white;
  font-weight: bold;
  font-size: 15px;
}

.progress-bar-container {
  width: 100%;
  height: 10px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  overflow: hidden;
  margin-top: 8px;
}

.progress-bar {
  height: 100%;
  border-radius: 10px;
  transition: width 0.5s ease;
  box-shadow: 0 0 10px rgba(102, 126, 234, 0.8);
}

.reset-all-btn {
  width: 100%;
  padding: 12px;
  background: linear-gradient(135deg, #ff6b6b, #ff0000);
  color: white;
  border: none;
  border-radius: var(--btn-radius);
  cursor: pointer;
  font-weight: bold;
  font-size: 14px;
  transition: all 0.3s ease;
  box-shadow: 0 0 15px rgba(255, 0, 0, 0.5);
}

.reset-all-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 25px rgba(255, 0, 0, 0.8);
}

/* ============================================
   6. 검색 패널
   ============================================ */

.search-input {
  width: 100%;
  padding: 12px;
  background: var(--glass);
  color: var(--neon-cyan);
  border: 2px solid var(--neon-cyan);
  border-radius: var(--btn-radius);
  font-size: 14px;
  outline: none;
  transition: all 0.3s ease;
}

.search-input:focus {
  background: rgba(255, 255, 255, 0.2);
  box-shadow: 0 0 15px rgba(0, 255, 255, 0.5);
}

.search-input::placeholder {
  color: rgba(0, 255, 255, 0.5);
}

.search-results {
  color: var(--neon-pink);
  font-size: 13px;
  margin-top: 10px;
  text-align: center;
  font-weight: bold;
  text-shadow: 0 0 10px rgba(255, 0, 255, 0.8);
}

/* ============================================
   7. 필터 패널
   ============================================ */

.filter-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.filter-btn {
  width: 100%;
  padding: 10px 5px;
  background: var(--glass);
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--btn-radius);
  cursor: pointer;
  font-size: 12px;
  font-weight: bold;
  transition: all 0.3s ease;
  text-align: center;
  white-space: nowrap;
}

.filter-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
}

.filter-btn.active {
  background: linear-gradient(135deg, var(--neon-pink), var(--neon-cyan));
  border-color: white;
  box-shadow: 0 0 20px rgba(255, 0, 255, 0.8);
}

.filter-btn[data-type="all"] {
  grid-column: span 2;
}

/* 타입별 active 색상 */
.filter-btn[data-type="아"].active { background: linear-gradient(135deg, #2196f3, #1976d2); }
.filter-btn[data-type="도"].active { background: linear-gradient(135deg, #757575, #424242); }
.filter-btn[data-type="토"].active { background: linear-gradient(135deg, #212121, #000000); }
.filter-btn[data-type="퀘"].active { background: linear-gradient(135deg, #4caf50, #388e3c); }
.filter-btn[data-type="달"].active { background: linear-gradient(135deg, #f44336, #d32f2f); }
.filter-btn[data-type="퍼"].active { background: linear-gradient(135deg, #9c27b0, #7b1fa2); }
.filter-btn[data-type="새"].active { background: linear-gradient(135deg, #ff9800, #f57c00); }

/* ============================================
   8. 제보 패널
   ============================================ */

.report-title {
  color: var(--neon-pink);
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 15px;
  text-align: center;
  text-shadow: 0 0 10px rgba(255, 0, 255, 0.8);
}

.report-label {
  display: block;
  color: var(--neon-cyan);
  font-size: 13px;
  font-weight: bold;
  margin-bottom: 8px;
  margin-top: 12px;
}

.report-input,
.report-coord {
  width: 100%;
  padding: 12px;
  background: var(--glass);
  color: var(--neon-cyan);
  border: 2px solid var(--neon-cyan);
  border-radius: var(--btn-radius);
  font-size: 14px;
  outline: none;
  transition: all 0.3s ease;
  font-family: inherit;
}

.report-input:focus,
.report-coord:focus {
  background: rgba(255, 255, 255, 0.2);
  box-shadow: 0 0 15px rgba(0, 255, 255, 0.5);
}

.report-coord {
  flex: 1;
  text-align: center;
}

.report-btn {
  width: 100%;
  padding: 12px;
  margin-top: 12px;
  background: linear-gradient(135deg, var(--neon-pink), var(--neon-cyan));
  color: white;
  border: none;
  border-radius: var(--btn-radius);
  cursor: pointer;
  font-weight: bold;
  font-size: 14px;
  transition: all 0.3s ease;
  box-shadow: var(--glow-pink);
}

.report-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 25px rgba(255, 0, 255, 0.8);
}

.report-guide {
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
  margin-top: 12px;
  text-align: center;
  padding: 10px;
  background: rgba(138, 43, 226, 0.2);
  border-radius: var(--btn-radius);
  border: 1px solid rgba(138, 43, 226, 0.4);
}

.report-list {
  margin-top: 15px;
  max-height: 250px;
  overflow-y: auto;
}

.report-list-empty {
  color: rgba(255, 255, 255, 0.5);
  text-align: center;
  padding: 30px 20px;
  font-size: 13px;
}

.report-count {
  color: var(--neon-cyan);
  font-size: 13px;
  font-weight: bold;
  margin-bottom: 12px;
  text-align: center;
  text-shadow: 0 0 10px rgba(0, 255, 255, 0.8);
}

.report-item {
  background: rgba(255, 255, 255, 0.05);
  padding: 12px;
  margin-bottom: 10px;
  border-radius: var(--btn-radius);
  border-left: 3px solid var(--neon-pink);
  transition: all 0.3s ease;
}

.report-item:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateX(5px);
}

.report-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.report-item-type {
  color: var(--neon-cyan);
  font-size: 13px;
  font-weight: bold;
}

.report-item-delete {
  padding: 5px 10px;
  background: linear-gradient(135deg, #ff0000, #cc0000);
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 11px;
  font-weight: bold;
  transition: all 0.3s ease;
}

.report-item-delete:hover {
  transform: scale(1.05);
  box-shadow: 0 0 10px rgba(255, 0, 0, 0.8);
}

.report-item-comment {
  color: white;
  font-size: 13px;
  margin-bottom: 5px;
}

.report-item-coord {
  color: rgba(255, 255, 255, 0.6);
  font-size: 12px;
}

/* ============================================
   9. 관리자 패널
   ============================================ */

.panel.admin-panel {
  display: none;
}

.panel.admin-panel.active {
  display: block;
}

.admin-title {
  color: var(--neon-pink);
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 15px;
  text-align: center;
  text-shadow: 0 0 10px rgba(255, 0, 255, 0.8);
}

.admin-btn {
  padding: 12px;
  background: linear-gradient(135deg, var(--neon-cyan), #0099cc);
  color: white;
  border: none;
  border-radius: var(--btn-radius);
  cursor: pointer;
  font-weight: bold;
  font-size: 14px;
  transition: all 0.3s ease;
  box-shadow: var(--glow-cyan);
}

.admin-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 25px rgba(0, 255, 255, 0.8);
}

#changedMarkersPanel {
  max-height: 280px;
  overflow-y: auto;
  background: rgba(20, 0, 40, 0.4);
  padding: 15px;
  border-radius: var(--btn-radius);
  border: 1px solid rgba(255, 0, 255, 0.3);
}

/* ============================================
   10. 알림
   ============================================ */

.notification {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: linear-gradient(135deg, rgba(255, 0, 255, 0.95), rgba(0, 255, 255, 0.95));
  color: white;
  padding: 20px 40px;
  border-radius: var(--panel-radius);
  font-weight: bold;
  font-size: 16px;
  z-index: 10000;
  pointer-events: none;
  box-shadow: 0 0 30px rgba(255, 0, 255, 0.8);
  opacity: 0;
  transition: opacity 0.3s ease;
  text-align: center;
  border: 2px solid white;
  backdrop-filter: blur(10px);
}

.notification.show {
  opacity: 1;
  animation: pulse 0.5s ease;
}

@keyframes pulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50% { transform: translate(-50%, -50%) scale(1.05); }
}

/* ============================================
   11. Leaflet 커스터마이징
   ============================================ */

.leaflet-container {
  background: transparent !important;
}

.leaflet-popup-content-wrapper {
  background: var(--dark-bg) !important;
  color: white !important;
  border-radius: var(--panel-radius) !important;
  border: 2px solid var(--neon-cyan) !important;
  box-shadow: var(--glow-cyan) !important;
}

.leaflet-popup-tip {
  background: var(--dark-bg) !important;
  border: 2px solid var(--neon-cyan) !important;
}

.custom-popup .leaflet-popup-content-wrapper {
  background: rgba(20, 20, 20, 0.95) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.custom-popup .leaflet-popup-content {
  margin: 15px !important;
}

.custom-popup .leaflet-popup-tip {
  background: rgba(20, 20, 20, 0.95) !important;
}

/* 줌 컨트롤 */
.leaflet-control-zoom {
  display: block !important;
  border: 2px solid var(--neon-cyan) !important;
  border-radius: 10px !important;
  box-shadow: var(--glow-cyan) !important;
  background: var(--dark-bg) !important;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.leaflet-control-zoom a {
  width: 40px !important;
  height: 40px !important;
  line-height: 40px !important;
  background: var(--glass) !important;
  color: var(--neon-cyan) !important;
  border: none !important;
  font-size: 20px !important;
  font-weight: bold !important;
  text-shadow: 0 0 10px rgba(0, 255, 255, 0.8) !important;
  transition: all 0.3s ease !important;
  text-indent: 0 !important;
}

.leaflet-control-zoom a:hover {
  background: linear-gradient(135deg, var(--neon-pink), var(--neon-cyan)) !important;
  color: white !important;
  box-shadow: var(--glow-pink) !important;
}

.leaflet-control-zoom a:first-child {
  border-bottom: 1px solid rgba(0, 255, 255, 0.3) !important;
}

/* ============================================
   12. 이모지 마커
   ============================================ */

.emoji-marker {
  background: transparent !important;
  border: none !important;
}

.emoji-icon {
  font-size: 32px;
  text-align: center;
  filter: drop-shadow(0 3px 3px rgba(0, 0, 0, 0.5));
  transition: all 0.2s ease;
  cursor: pointer;
}

.emoji-icon:hover {
  transform: scale(1.3);
  filter: drop-shadow(0 5px 8px rgba(0, 0, 0, 0.7));
}

/* 타입별 호버 효과 */
.emoji-icon[data-type="아"]:hover { filter: drop-shadow(0 0 10px #2196f3); }
.emoji-icon[data-type="도"]:hover { filter: drop-shadow(0 0 10px #757575); }
.emoji-icon[data-type="퀘"]:hover { filter: drop-shadow(0 0 10px #4caf50); }
.emoji-icon[data-type="달"]:hover { filter: drop-shadow(0 0 10px #f44336); }
.emoji-icon[data-type="퍼"]:hover { filter: drop-shadow(0 0 10px #9c27b0); }
.emoji-icon[data-type="새"]:hover { filter: drop-shadow(0 0 10px #ff9800); }
.emoji-icon[data-type="토"]:hover { filter: drop-shadow(0 0 10px #212121); }

/* 삭제 선택 상태 */
.emoji-icon.delete-selected {
  animation: shake 0.5s ease-in-out infinite;
  filter: drop-shadow(0 0 15px #ff0000) !important;
}

@keyframes shake {
  0%, 100% { transform: rotate(0deg) scale(1.1); }
  25% { transform: rotate(-10deg) scale(1.1); }
  75% { transform: rotate(10deg) scale(1.1); }
}

/* ============================================
   13. 툴팁 & 팝업
   ============================================ */

.leaflet-tooltip.custom-tooltip {
  background: var(--dark-bg) !important;
  color: #ffffff !important;
  border: 2px solid var(--neon-cyan) !important;
  border-radius: 10px !important;
  padding: 10px 15px !important;
  font-size: 13px !important;
  font-weight: bold !important;
  box-shadow: var(--glow-cyan) !important;
  white-space: nowrap !important;
  max-width: none !important;
  width: auto !important;
}

.leaflet-tooltip.custom-tooltip::before,
.leaflet-tooltip-top:before { border-top-color: var(--neon-cyan) !important; }
.leaflet-tooltip-bottom:before { border-bottom-color: var(--neon-cyan) !important; }
.leaflet-tooltip-left:before { border-left-color: var(--neon-cyan) !important; }
.leaflet-tooltip-right:before { border-right-color: var(--neon-cyan) !important; }

/* ============================================
   14. 스플래시 화면
   ============================================ */

.splash-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 99999;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: #000;
  opacity: 1;
  transition: opacity 0.8s ease;
}

.splash-screen.fade-out {
  opacity: 0;
  pointer-events: none;
}

.splash-screen.hidden {
  display: none;
}

.splash-content {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 80px;
}

.splash-image-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.splash-game-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  opacity: 0.9;
  animation: zoomIn 20s ease-in-out infinite alternate;
}

@keyframes zoomIn {
  from { transform: scale(1); }
  to { transform: scale(1.05); }
}

.splash-overlay {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 30px 50px;
  background: rgba(0, 0, 0, 0.7);
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  animation: fadeInUp 1s ease;
  max-width: 500px;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.splash-title {
  font-size: 36px;
  font-weight: bold;
  color: #ffffff;
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.5), 0 0 40px rgba(0, 200, 255, 0.5);
  margin-bottom: 20px;
  letter-spacing: 8px;
}

.splash-copyright {
  color: rgba(255, 255, 255, 0.8);
  font-size: 13px;
  line-height: 1.6;
  margin-bottom: 20px;
}

.splash-copyright strong {
  color: var(--neon-cyan);
}

.splash-press-key {
  color: rgba(255, 255, 255, 0.6);
  font-size: 13px;
  animation: blink 1.5s ease-in-out infinite;
  padding: 12px 25px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 25px;
  background: rgba(255, 255, 255, 0.1);
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* ============================================
   15. 음악 플레이어
   ============================================ */

.music-btn {
  position: fixed;
  bottom: 8px;
  left: calc(50% + 160px);
  z-index: 10000;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1a0a2e, #2d1b4e);
  border: 3px solid var(--neon-cyan);
  color: var(--neon-cyan);
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 20px rgba(0, 255, 255, 0.6), 0 0 40px rgba(0, 255, 255, 0.3);
  transition: all 0.3s ease;
  animation: musicBtnGlow 2s ease-in-out infinite;
}

@keyframes musicBtnGlow {
  0%, 100% { 
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.6), 0 0 40px rgba(0, 255, 255, 0.3);
    border-color: var(--neon-cyan);
  }
  50% { 
    box-shadow: 0 0 30px rgba(255, 0, 255, 0.8), 0 0 60px rgba(255, 0, 255, 0.4);
    border-color: var(--neon-pink);
  }
}

.music-btn:hover {
  transform: scale(1.15);
}

.music-btn.playing {
  border-color: var(--neon-pink);
  color: var(--neon-pink);
  animation: musicPlaying 0.8s ease-in-out infinite;
}

@keyframes musicPlaying {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

.music-panel {
  position: fixed;
  bottom: 70px;
  left: calc(50% + 80px);
  width: 280px;
  background: linear-gradient(135deg, rgba(20, 0, 40, 0.98), rgba(40, 0, 60, 0.98));
  border: 2px solid var(--neon-cyan);
  border-radius: 15px;
  padding: 15px;
  z-index: 10001;
  box-shadow: 0 0 30px rgba(0, 255, 255, 0.5);
  backdrop-filter: blur(15px);
  display: none;
  animation: slideUp 0.3s ease;
}

.music-panel.active {
  display: block;
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.music-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(0, 255, 255, 0.3);
}

.music-panel-header span {
  color: var(--neon-cyan);
  font-weight: bold;
  font-size: 14px;
}

.music-panel-close {
  background: none;
  border: none;
  color: var(--neon-pink);
  font-size: 18px;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.music-panel-close:hover {
  transform: scale(1.2);
}

.music-now-playing {
  color: var(--neon-pink);
  font-size: 13px;
  text-align: center;
  padding: 8px;
  background: rgba(255, 0, 255, 0.1);
  border-radius: var(--btn-radius);
  margin-bottom: 10px;
}

.music-list {
  max-height: 150px;
  overflow-y: auto;
  margin-bottom: 12px;
}

.music-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  margin-bottom: 5px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--btn-radius);
  cursor: pointer;
  color: #ffffff;
  font-size: 13px;
  transition: background 0.2s ease;
}

.music-item:hover {
  background: rgba(0, 255, 255, 0.2);
}

.music-item.active {
  background: linear-gradient(135deg, rgba(255, 0, 255, 0.3), rgba(0, 255, 255, 0.3));
  border-left: 3px solid var(--neon-cyan);
}

.music-controls {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 12px;
}

.music-control-btn {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(0, 255, 255, 0.2), rgba(255, 0, 255, 0.2));
  border: 2px solid var(--neon-cyan);
  color: var(--neon-cyan);
  font-size: 18px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.music-control-btn:hover {
  background: linear-gradient(135deg, var(--neon-cyan), var(--neon-pink));
  color: #fff;
  transform: scale(1.1);
}

.music-volume {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--neon-cyan);
}

.music-volume input[type="range"] {
  flex: 1;
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.2);
  appearance: none;
  cursor: pointer;
}

.music-volume input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--neon-cyan), var(--neon-pink));
  cursor: pointer;
}

/* ============================================
   16. 스크롤바
   ============================================ */

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, var(--neon-pink), var(--neon-cyan));
  border-radius: 10px;
  box-shadow: var(--glow-pink);
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, var(--neon-cyan), var(--neon-pink));
  box-shadow: var(--glow-cyan);
}

/* ============================================
   17. 반응형
   ============================================ */

@media (max-width: 768px) {
  :root {
    --panel-width: 280px;
  }
  
  .left-sidebar,
  .right-sidebar {
    width: calc(100vw - 20px);
    max-width: var(--panel-width);
  }
  
  .toggle-all-btn {
    right: calc(var(--panel-width) + 20px);
  }
  
  .music-panel {
    left: 50%;
    transform: translateX(-50%);
    width: 260px;
    bottom: 65px;
  }
  
  .music-btn {
    left: calc(50% + 130px);
    width: 45px;
    height: 45px;
    font-size: 20px;
  }
  
  .splash-title {
    font-size: 28px;
    letter-spacing: 4px;
  }
  
  .splash-overlay {
    padding: 20px 30px;
    margin: 0 20px;
  }
}

@media (max-width: 480px) {
  :root {
    --panel-width: 260px;
  }
  
  .mode-switch {
    flex-direction: column;
    gap: 8px;
  }
  
  .mode-btn {
    padding: 8px 15px;
    font-size: 13px;
  }
  
  .splash-title {
    font-size: 24px;
  }
}
/* 픽셀 아이콘 선명하게 */
.emoji-icon img {
  image-rendering: pixelated;
  image-rendering: -moz-crisp-edges;
  image-rendering: crisp-edges;
  -ms-interpolation-mode: nearest-neighbor;
  display: block;
  margin: 0 auto;
}
/* 픽셀 아이콘 (지도용) */
.emoji-icon img {
  image-rendering: pixelated;
  image-rendering: -moz-crisp-edges;
  image-rendering: crisp-edges;
  -ms-interpolation-mode: nearest-neighbor;
  display: block;
  margin: 0 auto;
}

/* 픽셀 아이콘 (패널용) */
.panel-icon {
  width: 20px;
  height: 20px;
  vertical-align: middle;
  image-rendering: pixelated;
  image-rendering: -moz-crisp-edges;
  image-rendering: crisp-edges;
  display: inline-block;
  margin-right: 2px;
}
/* 마커 위에서도 맵 커서 유지 */
.leaflet-marker-icon {
  cursor: inherit !important;
}
