/* 컨퀘스트 오브 오드 — 다크 판타지 UI */
* { margin:0; padding:0; box-sizing:border-box; -webkit-tap-highlight-color:transparent; }
html, body { height:100%; background:#14100b; color:#e8dcc0; font-family:'Noto Serif KR', serif; overflow:hidden; }
html { background:#14100b; }
body { background:transparent; }
body::before { content:''; position:fixed; inset:0; z-index:-1; pointer-events:none;
  background:url('../assets/bg/title.jpg') center/cover;
  filter:brightness(0.32) blur(2px) saturate(0.8); }
#app { height:100%; }
#ui { height:100%; position:relative; display:flex; flex-direction:column; }
#game-canvas { display:none; }

/* 상단바 */
.topbar { display:flex; align-items:center; gap:10px 14px; min-height:44px; padding:4px 12px;
  background:linear-gradient(#2b2016,#1d150e); border-bottom:2px solid #8a6d2f; flex-wrap:wrap; }
.topbar .title { font-weight:bold; color:#e8c96a; white-space:nowrap; }
.res { white-space:nowrap; font-size:14px; }
.res.gold { color:#e8c96a; } .res.aude { color:#7ec8e8; } .res.shard { color:#c98ae8; }
.res.day, .res.ap { color:#b0a68a; }

/* 버튼 */
.btn { font-family:inherit; background:linear-gradient(#4a3524,#2b2016); color:#e8dcc0;
  border:2px solid #8a6d2f; border-radius:4px; padding:10px 22px; font-size:16px; cursor:pointer; }
.btn:active { transform:translateY(1px); }
.btn.small { padding:4px 12px; font-size:13px; }
.btn.big { padding:14px 40px; font-size:20px; display:block; margin:10px auto; min-width:220px; }
.btn.danger { border-color:#b04030; color:#e88; }
.btn.ghost { background:transparent; border-color:#554533; color:#b0a68a; margin-top:8px; }
.btn:disabled { opacity:0.4; cursor:default; }
.btnrow { display:flex; gap:8px; margin-top:10px; align-items:center; flex-wrap:wrap; }

/* 화면 공통 */
.screen { flex:1; min-height:0; overflow-y:auto; padding:12px; }
section { margin-bottom:20px; }
h3 { color:#c9a227; border-bottom:1px solid #554533; padding-bottom:4px; margin-bottom:8px; font-size:16px; }
.row { display:flex; justify-content:space-between; align-items:center; padding:8px 6px;
  border-bottom:1px solid #332a1e; gap:8px; }
.dim { color:#8a8068; font-size:12px; }
.small-note { margin-top:6px; }
.ok { color:#4a9e4a; }
select { font-family:inherit; background:#2b2016; color:#e8dcc0; border:1px solid #8a6d2f; padding:6px; border-radius:4px; }

/* 성 개발 뷰 */
#castle-view { display:block; width:100%; max-width:960px; height:auto; margin:0 auto 12px;
  border:2px solid #8a6d2f; border-radius:8px; background:#241b12; }

/* 분대 편성 */
.squad-row { display:flex; align-items:center; gap:8px; margin-bottom:8px; }
.squad-num { font-size:18px; font-weight:bold; color:#e8c96a; width:32px; text-align:center; }
.sq-slot { flex:1; min-height:56px; background:linear-gradient(#2b2016,#1d150e); border:2px solid #554533;
  border-radius:6px; display:flex; flex-direction:column; align-items:center; justify-content:center; padding:4px; }
.sq-slot.filled { border-color:#c9a227; cursor:pointer; }
.sq-slot.filled:active { transform:scale(0.97); }
.sq-name { font-weight:bold; color:#e8c96a; font-size:14px; }
.sq-stat { font-size:11px; color:#b0a68a; }

/* 카드 그리드 */
.grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(120px,1fr)); gap:8px; }
.card { background:linear-gradient(#2b2016,#1d150e); border:2px solid #8a6d2f; border-radius:6px;
  padding:8px; text-align:center; cursor:pointer; font-size:13px; }
.card:active { transform:scale(0.97); }
.card.filled { border-color:#c9a227; }
.card-name { font-weight:bold; color:#e8c96a; font-size:15px; }
.card-role { color:#8a8068; font-size:11px; }
.card-stat { font-size:12px; margin-top:2px; }
.card-cost { color:#7ec8e8; margin-top:2px; }
.card-own { color:#b0a68a; font-size:11px; }

/* 세계맵 */
#map-canvas { display:block; width:100%; }
#map-hint { position:absolute; left:50%; transform:translateX(-50%); top:94px; z-index:4;
  background:rgba(20,16,11,0.75); border:1px solid #554533; border-radius:14px; padding:4px 14px;
  font-size:11px; color:#b0a68a; pointer-events:none; white-space:nowrap; }
.map-title { font-weight:bold; color:#e8c96a; font-style:italic; white-space:nowrap; }
#map-bottombar { position:absolute; left:0; right:0; bottom:10px; display:flex; justify-content:center; gap:10px; z-index:5; pointer-events:none; }
.pill { pointer-events:auto; font-family:inherit; background:linear-gradient(#3a2e20,#1d150e); color:#e8dcc0;
  border:2px solid #8a6d2f; border-radius:20px; padding:8px 26px; font-size:15px; cursor:pointer;
  box-shadow:0 2px 6px rgba(0,0,0,0.5); }
.pill.primary { border-color:#c9a227; color:#e8c96a; font-weight:bold; }
.pill:active { transform:translateY(1px); }
.btnrow.col { flex-direction:column; align-items:stretch; }
.btnrow.col .btn { width:100%; }
.panel { position:absolute; right:12px; top:56px; width:min(320px, 90vw); background:rgba(20,16,11,0.95);
  border:2px solid #8a6d2f; border-radius:8px; padding:12px; z-index:10; }
.panel.hidden { display:none; }
.panel-title { font-size:18px; font-weight:bold; border-left:4px solid; padding-left:8px; margin-bottom:8px; }
.panel-title .sub { font-size:12px; color:#8a8068; font-weight:normal; }
.panel-body { font-size:14px; line-height:1.6; }
.panel-body.log { max-height:50vh; overflow-y:auto; }
.panel-body.log div { border-bottom:1px solid #332a1e; padding:4px 0; }

/* 타이틀 */
#title-screen { height:100%; background:url('../assets/bg/title.jpg') center/cover, #14100b;
  display:flex; align-items:center; justify-content:center; }
#title-inner { text-align:center; background:rgba(20,16,11,0.72); padding:40px 30px; border-radius:12px;
  border:2px solid #8a6d2f; }
#game-logo { font-size:42px; font-weight:bold; color:#e8c96a; text-shadow:0 2px 8px #000; letter-spacing:2px; }
#game-logo span { display:block; font-size:22px; color:#c9a227; margin-top:4px; letter-spacing:8px; }
#title-menu { margin-top:24px; }
.credits { margin-top:20px; font-size:11px; color:#8a8068; }
.sel-title { font-size:22px; color:#e8c96a; margin-bottom:16px; }
#nations { display:flex; gap:12px; flex-wrap:wrap; justify-content:center; }
.nation-card { background:linear-gradient(#2b2016,#1d150e); border:2px solid; border-radius:8px;
  padding:16px 20px; cursor:pointer; min-width:150px; }
.nation-card:active { transform:scale(0.97); }
.n-name { font-size:18px; font-weight:bold; }
.n-diff { font-size:13px; color:#b0a68a; margin-top:4px; }
.n-bonus { font-size:12px; color:#8a8068; margin-top:6px; }

/* 전투 HUD (원작 스타일: 공격/수비 정보 + 내구도 + 배속) */
#battle-hud { display:flex; align-items:center; justify-content:space-between; gap:10px;
  padding:6px 12px; background:linear-gradient(#2b2016,#1d150e); border-bottom:2px solid #8a6d2f; }
.hud-side { min-width:200px; }
.hud-side.right { text-align:right; }
.hud-label { font-size:10px; color:#8a8068; letter-spacing:2px; }
.hud-name { font-size:16px; font-weight:bold; color:#e8c96a; }
.hud-ether { color:#7ec8e8; font-size:14px; }
.hud-mid { text-align:center; display:flex; gap:8px; align-items:center; }
#hud-time { font-size:16px; color:#e8dcc0; font-variant-numeric:tabular-nums; }
.hud-btn { font-family:inherit; background:#2b2016; color:#e8dcc0; border:1px solid #8a6d2f;
  border-radius:4px; padding:3px 10px; font-size:13px; cursor:pointer; white-space:nowrap; }
.hud-dur { margin-top:3px; position:relative; width:180px; height:12px; background:#1a120c;
  border:1px solid #8a6d2f; border-radius:3px; overflow:hidden; margin-left:auto; }
#dur-fill { height:100%; background:linear-gradient(#c9a227,#8a6d2f); width:100%; }
.hud-dur span { position:absolute; inset:0; text-align:center; font-size:10px; line-height:12px; color:#fff; text-shadow:0 1px 2px #000; }

/* Entry 분대 카드 */
#battle-wrap { display:flex; justify-content:center; background:#000; flex:none; }
#battle-canvas { width:100%; max-width:960px; height:auto; display:block; touch-action:manipulation; }
#entry-bar { display:flex; align-items:flex-start; align-content:flex-start; gap:10px; overflow-x:auto; padding:10px 12px;
  flex:1; min-height:0;
  background:linear-gradient(#241a10,#17100a); border-top:3px solid #5a4630;
  box-shadow:inset 0 6px 12px rgba(0,0,0,0.6); }
#entry-cards { display:flex; gap:10px; }
.entry-label { color:#8a8068; font-size:12px; white-space:nowrap; }
.entry-card { font-family:inherit; flex:0 0 auto; display:flex; flex-direction:column; align-items:center; gap:3px;
  background:linear-gradient(180deg,#5a4630 0%,#4a3826 45%,#3a2c1c 55%,#4a3826 100%);
  color:#e8dcc0; border:2px solid #2b2016; outline:1px solid #8a6d2f;
  border-radius:4px; padding:8px 16px; cursor:pointer; min-width:118px;
  box-shadow:0 3px 6px rgba(0,0,0,0.5), inset 0 1px 0 rgba(232,220,192,0.15); }
.entry-card:active { transform:translateY(1px); }
.entry-card.deployed { opacity:0.45; outline-color:#554533; }
.sq-num { font-size:16px; font-weight:bold; color:#e8c96a; letter-spacing:1px; }
.sq-dots { display:flex; gap:4px; }
.sq-dot { width:12px; height:12px; border-radius:50%; border:1px solid #000; display:inline-block; }
.sq-ready { font-size:10px; color:#7ec86a; font-style:italic; font-family:Georgia,serif; }
.sq-cost { color:#7ec8e8; font-size:12px; border-top:1px solid rgba(232,220,192,0.25); padding-top:2px; width:100%; text-align:center; }

/* 오버레이 */
.overlay { position:fixed; inset:0; background:rgba(0,0,0,0.7); display:flex; align-items:center; justify-content:center; z-index:100; }
.overlay-box { background:linear-gradient(#2b2016,#1d150e); border:2px solid #c9a227; border-radius:10px;
  padding:30px 40px; text-align:center; }
.overlay-title { font-size:32px; font-weight:bold; color:#e8c96a; }
.overlay-sub { margin:10px 0 20px; color:#b0a68a; }

/* 전투 전 오드 경고 */
.warn { margin:8px 0; padding:8px 10px; background:rgba(200,60,40,0.15); border:1px solid #a84a3a;
  border-radius:4px; color:#e8a898; font-size:13px; }

/* 영웅 어빌리티 버튼 */
#hero-ability-bar { position:absolute; right:10px; top:64px; display:flex; flex-direction:column; gap:6px; z-index:5; }
.hero-btn { border-color:#6a4a9e; color:#c8aef0; }
.hero-btn:disabled { opacity:0.5; }

/* 3D 전투 뷰 */
#battle-wrap { position:relative; }
#battle-wrap.has3d #battle-canvas { position:absolute; inset:0; width:100%; max-width:none; height:100%; pointer-events:none; }
#battle3d-host { width:100%; position:relative; }
#battle-wrap.has3d #battle3d-host::after { content:''; position:absolute; inset:0; pointer-events:none;
  background:radial-gradient(ellipse at 50% 45%, transparent 50%, rgba(8,6,5,0.55) 100%); }

/* 모바일(세로) 전투 HUD 축소 */
@media (max-width:640px) {
  #battle-hud { gap:6px; padding:5px 8px; }
  .hud-side { min-width:0; }
  .hud-name { font-size:13px; }
  .hud-ether { font-size:12px; }
  #hud-time { font-size:13px; }
  .hud-btn { padding:3px 7px; font-size:12px; }
  .hud-mid { gap:5px; }
  .hud-dur { width:90px; }
}

/* 보스 인트로 (파편 심연) */
#boss-intro { position:absolute; inset:0; z-index:20; pointer-events:none; display:flex; align-items:center; justify-content:center;
  background:radial-gradient(ellipse at 50% 45%, rgba(26,12,44,0.25), rgba(10,5,20,0.88)); animation:bossIntroFade 2.9s ease forwards; }
#boss-intro .boss-intro-box { text-align:center; }
#boss-intro .boss-intro-label { color:#9a86c8; font-size:13px; letter-spacing:.45em; margin-bottom:10px; }
#boss-intro .boss-intro-name { color:#e8dcc0; font-size:42px; letter-spacing:.3em; text-shadow:0 0 26px #8a4aff, 0 0 60px #5a2acc; }
#boss-intro .boss-intro-sub { color:#c9b8e8; font-size:14px; letter-spacing:.18em; margin-top:12px; }
@keyframes bossIntroFade { 0% {opacity:0} 14% {opacity:1} 74% {opacity:1} 100% {opacity:0} }

/* 캠페인 종료 연출 */
.ending-box { min-width: 260px; text-align: center; }
.ending-stats { margin: 14px 0 18px; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 18px; }
.ending-stats div { display: flex; justify-content: space-between; border-bottom: 1px solid rgba(232,201,106,0.25); padding: 4px 2px; }
.ending-stats span { color: #b8a888; font-size: 13px; }
.ending-stats b { color: #e8c96a; }

/* 음향 토글 */
#btn-sound { position: fixed; right: 8px; bottom: 8px; z-index: 60; font: 11px/1 serif; letter-spacing: 1px;
  color: #b8a888; background: rgba(20,14,8,0.75); border: 1px solid rgba(232,201,106,0.4);
  border-radius: 10px; padding: 5px 9px; cursor: pointer; }
#btn-sound:active { transform: scale(0.96); }
@media (max-width: 600px) { #btn-sound { bottom: 74px; } }   /* 모바일: 하단 바와 겹침 방지 */

/* 튜토리얼 */
.tut-box { max-width:340px; text-align:center; }
.tut-body { color:#d8cfae; line-height:1.6; margin:14px 0 16px; font-size:14px; }
.tut-dots { margin-bottom:14px; }
.tut-dot { display:inline-block; width:7px; height:7px; border-radius:50%; background:#5a4a30; margin:0 4px; }
.tut-dot.on { background:#e8c96a; }

#map-legend { position:absolute; left:50%; transform:translateX(-50%); bottom:62px; z-index:5; font-size:11px; color:#d8cfae;
  background:rgba(20,16,11,0.78); border:1px solid #5a4a30; border-radius:10px; padding:3px 10px; pointer-events:none; white-space:nowrap; }

#snd-panel { position:fixed; right:8px; bottom:46px; z-index:210; background:rgba(26,19,12,0.96); border:1px solid #c9a227; border-radius:10px; padding:10px 12px; width:210px; color:#e8dcc0; font-size:13px; }
#snd-panel.hidden { display:none; }
#snd-panel .snd-row { display:flex; align-items:center; gap:8px; margin:4px 0; }
#snd-panel input[type=range] { flex:1; accent-color:#e8c96a; height:28px; }
#snd-panel .btn { width:100%; padding:6px; }
#map-legend { bottom:112px !important; }
@media (max-width: 600px) { #snd-panel { bottom: 108px; } }

#map-style-toggle { position:absolute; right:8px; top:46px; z-index:6; display:flex; border:1px solid #c9a227; border-radius:12px; overflow:hidden;
  background:rgba(26,19,12,0.9); cursor:pointer; user-select:none; -webkit-tap-highlight-color:transparent; }
#map-style-toggle span { padding:9px 12px; font-size:13px; color:#b8a888; min-width:56px; text-align:center; }
#map-style-toggle span.on { background:#c9a227; color:#2a1c0c; font-weight:bold; }
.hud-btn.on { background:#6b4a14; color:#ffe9a8; border-color:#e8c96a; }
#map-toast { position:fixed; left:12px; right:12px; bottom:84px; z-index:50; background:rgba(30,20,10,.94); color:#e8dcc0; border:1px solid #8a6d2f; border-radius:6px; padding:10px 12px; font-size:13px; line-height:1.4; opacity:0; pointer-events:none; transition:opacity .25s; }
#map-toast.show { opacity:1; }
#map-bottombar { gap:6px; }
.pill { white-space:nowrap; }
@media (max-width:520px) { #map-bottombar .pill { padding:8px 11px; font-size:13px; } }
#strat-mode { position:absolute; right:8px; top:92px; z-index:6; display:flex; align-items:center; border:1px solid #8a6d2f; border-radius:12px; overflow:hidden; background:rgba(29,21,14,.85); }
#strat-mode em { font-style:normal; font-size:11px; color:#b8a888; padding:0 8px; }
#strat-mode span { padding:7px 10px; font-size:13px; color:#b8a888; text-align:center; }
#strat-mode span.on { background:#8a6d2f; color:#fff2cc; font-weight:bold; }
@media (max-width:600px) { #castle-view { height:230px; object-fit:cover; object-position:center; } }

/* 세력별 성 개수 (세계맵 상단) */
#map-factions { position:absolute; bottom:68px; left:50%; transform:translateX(-50%); z-index:6; justify-content:center; width:max-content; display:flex; gap:4px 8px; flex-wrap:wrap; max-width:calc(100% - 16px);
  background:rgba(24,16,10,.82); border:1px solid #8a6a2e; border-radius:6px; padding:3px 8px; font-size:12px; color:#d8cfae; pointer-events:none; }
#map-factions span { display:inline-flex; align-items:center; gap:4px; white-space:nowrap; }
#map-factions span.me { color:#f1d98a; }
#map-factions i { width:9px; height:9px; border-radius:2px; display:inline-block; border:1px solid rgba(0,0,0,.5); }
#map-factions b { color:#fff2c4; }

/* 현황 대시보드 */
#dash { position:absolute; inset:0; display:flex; flex-direction:column; background:#1a120b; }
#dash .topbar .pill { margin-left:auto; pointer-events:auto; }
#dash .d-body { flex:1; overflow:auto; padding:10px 12px 18px; color:#d8cfae; font-size:13px; }
.d-share { display:flex; height:12px; border:1px solid #8a6a2e; border-radius:4px; overflow:hidden; }
.d-share i { display:block; min-width:2px; }
.d-legend { display:flex; flex-wrap:wrap; gap:3px 12px; margin:6px 0 10px; font-size:12px; }
.d-legend i { display:inline-block; width:9px; height:9px; border-radius:2px; margin-right:4px; }
.d-cards { display:grid; grid-template-columns:repeat(auto-fit,minmax(210px,1fr)); gap:8px; }
.d-card, .d-box { background:linear-gradient(180deg,#2a1d12,#1f150d); border:1px solid #8a6a2e; border-top:3px solid var(--nc,#8a6a2e); border-radius:6px; padding:8px 10px; }
.d-box { border-top-color:#8a6a2e; }
.d-head { display:flex; align-items:center; gap:8px; color:#f1d98a; font-size:14px; margin-bottom:4px; }
.d-head em { font-style:normal; font-size:10px; color:#1a120b; background:#e8c96a; border-radius:3px; padding:1px 5px; }
.d-line { display:flex; justify-content:space-between; margin-top:3px; }
.d-line b { color:#fff2c4; } .d-line small { color:#9a8a68; }
.d-bar { height:6px; background:#120c07; border-radius:3px; overflow:hidden; margin:2px 0 4px; }
.d-bar i { display:block; height:100%; }
.d-grid { display:grid; grid-template-columns:auto 1fr auto 1fr; gap:2px 8px; font-size:12px; margin-top:4px; }
.d-grid span { color:#a89a76; } .d-grid b { color:#fff2c4; text-align:right; font-weight:normal; }
.d-cols { display:grid; grid-template-columns:repeat(auto-fit,minmax(210px,1fr)); gap:8px; margin-top:8px; }
.d-box h4 { margin:0 0 4px; color:#e8c96a; font-size:13px; }
.d-box.wide { grid-column:1/-1; }
.d-log { font-size:12px; line-height:1.5; max-height:130px; overflow:auto; } .d-log b { color:#e8c96a; }

/* 위임 세부 설정 */
#deleg-cfg { position:absolute; right:8px; top:134px; z-index:6; padding:6px 12px; font-size:12px; pointer-events:auto; }
.overlay-box.deleg { max-width:340px; width:92%; }
.deleg h3 { margin:0 0 8px; color:#f1d98a; font-size:16px; }
.dg-label { color:#b8a888; font-size:12px; margin:8px 0 4px; }
.dg-row { display:flex; flex-wrap:wrap; gap:6px; }
.deleg .chip { padding:6px 10px; border:1px solid #8a6d2f; border-radius:12px; font-size:13px; color:#b8a888; background:rgba(29,21,14,.85); cursor:pointer; }
.deleg .chip.on { background:#8a6d2f; color:#fff2cc; font-weight:bold; }
.dg-note { font-size:11px; color:#9a8a68; margin:8px 0; line-height:1.4; }
.dg-actions { display:flex; gap:8px; justify-content:flex-end; margin-top:8px; }

/* 월드맵 하단 버튼줄: 좁은 화면에서는 3열 2행 격자로 정렬 (잘림 방지) */
@media (max-width:620px) {
  #map-bottombar { display:grid; grid-template-columns:repeat(3,1fr); gap:6px; left:8px; right:8px; bottom:8px; }
  #map-bottombar .pill { width:100%; padding:9px 4px; font-size:13px; text-align:center; }
  #map-factions { bottom:104px; }
  #map-legend { bottom:140px !important; }
  #snd-panel { bottom:112px; }
  #map-toast { bottom:112px; }
}

/* 스크롤바: 게임 UI 톤(짙은 갈색 + 금 테두리)으로 통일 */
* { scrollbar-width: thin; scrollbar-color: #8a6d2f #1a120b; }
*::-webkit-scrollbar { width: 11px; height: 11px; }
*::-webkit-scrollbar-track { background: #150e08; border-left: 1px solid #3a2b17; border-radius: 6px; }
*::-webkit-scrollbar-thumb { background: linear-gradient(90deg,#b8923a,#7a5c22); border: 2px solid #150e08; border-radius: 7px; min-height: 36px; }
*::-webkit-scrollbar-thumb:hover { background: linear-gradient(90deg,#e8c96a,#a8822e); }
*::-webkit-scrollbar-corner { background: #150e08; }
@media (max-width:620px) { body:has(#map-bottombar) #btn-sound { bottom:auto; right:auto; left:8px; top:50px; } }

/* 엔딩 일러스트 연출 */
.ending-ov { padding:0; overflow:hidden; align-items:flex-end; justify-content:center; background:#0d0905; }
.ending-ov .ending-art { position:absolute; inset:0; background-size:cover; background-position:center; opacity:0; animation: endFade 2.2s ease-out forwards, endZoom 30s ease-out forwards; }
.ending-ov .ending-shade { position:absolute; inset:0; background:linear-gradient(to top, rgba(10,6,3,0.92) 0%, rgba(10,6,3,0.55) 38%, rgba(10,6,3,0) 62%); }
.ending-ov .ending-box { position:relative; background:none; border:none; box-shadow:none; max-width:760px; width:94%; margin-bottom:max(14px, env(safe-area-inset-bottom)); opacity:0; animation: endFade 1.6s ease-out 1.4s forwards; }
.ending-ov .overlay-title { font-size:40px; letter-spacing:6px; text-shadow:0 2px 14px #000, 0 0 24px rgba(201,162,39,0.5); }
.ending-ov.lose .overlay-title { color:#c0584a; text-shadow:0 2px 14px #000, 0 0 24px rgba(160,40,30,0.6); }
.ending-ov .overlay-sub, .ending-ov .ending-stats { text-shadow:0 1px 6px #000; }
@keyframes endFade { to { opacity:1; } }
@keyframes endZoom { from { transform:scale(1); } to { transform:scale(1.12); } }
@media (max-width:620px) { .ending-ov .overlay-title { font-size:30px; } }
@media (max-width:620px) { .ending-ov.win .ending-art { background-position:18% center; } .ending-ov.lose .ending-art { background-position:30% center; } }

/* 언어 토글 */
#btn-lang { position:fixed; right:84px; bottom:8px; z-index:60; font:11px/1 serif; letter-spacing:1px; padding:7px 10px; border-radius:14px; background:rgba(29,21,14,0.88); color:#e8c96a; border:1px solid #8a6d2f; cursor:pointer; }
@media (max-width:600px) { #btn-lang { bottom:74px; } }
@media (max-width:620px) { body:has(#map-bottombar) #btn-lang { bottom:auto; right:auto; left:92px; top:50px; } }
