/* 공유 언어 스위처 (요청서 ②) — 어느 페이지든 LangSwitcher.open()으로 사용.
   설정 페이지의 .lang-overlay/.lang-option 과 별개의 .lang-sw-* 네임스페이스(회귀 방지).
   바텀시트 스타일 + 다크 모달 토큰(미니게임/설정 모달과 톤 일관). */
.lang-sw-overlay {
  position: fixed;
  inset: 0;
  z-index: 4000;
  display: none;
  align-items: flex-end;
  justify-content: center;
  background: rgba(0, 0, 0, .6);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}
.lang-sw-overlay.show { display: flex; }
.lang-sw-popup {
  width: 100%;
  max-width: 420px;
  background: #171c2b;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 20px 20px 0 0;
  padding: 18px 16px calc(18px + env(safe-area-inset-bottom, 0px));
  box-shadow: 0 -10px 40px rgba(0, 0, 0, .5);
  max-height: 80vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  animation: langSwIn .22s ease;
}
@keyframes langSwIn {
  from { transform: translateY(16px); opacity: .4; }
  to   { transform: none; opacity: 1; }
}
@media (prefers-reduced-motion: reduce) { .lang-sw-popup { animation: none; } }
.lang-sw-title {
  font-size: 15px;
  font-weight: 800;
  text-align: center;
  margin: 0 0 12px;
}
.lang-sw-list { display: flex; flex-direction: column; gap: 6px; }
.lang-sw-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid transparent;
  cursor: pointer;
}
.lang-sw-option:active { background: rgba(255, 255, 255, .08); }
.lang-sw-option.selected {
  background: rgba(124, 200, 90, .14);
  border-color: rgba(124, 200, 90, .4);
}
.lang-sw-flag {
  width: 24px;
  height: 18px;
  border-radius: 3px;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .2);
}
.lang-sw-name { flex: 1; font-size: 14px; font-weight: 700; }
.lang-sw-check { color: #7cd85a; font-weight: 900; }
.lang-sw-cancel {
  margin-top: 10px;
  text-align: center;
  padding: 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .06);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}
.lang-sw-cancel:active { background: rgba(255, 255, 255, .1); }
