/* 우주지도 난이도 선택 상자와 시나리오 외 난이도(악몽 등)의 지도·전투 표시 */
#map .campaign-title-row{display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px;margin:7px 0;max-width:calc(100% - 46px)}
#map .campaign-title-row h1{margin:0;min-width:0;font-size:clamp(19px,5.8vw,25px);word-break:keep-all}
#map .difficulty-select{position:relative;z-index:4;flex:none}
#map .difficulty-toggle{display:flex;align-items:center;gap:8px;min-height:34px;min-width:92px;padding:6px 11px 6px 12px;border:1px solid #6fd6ff99;border-radius:9px;background:linear-gradient(180deg,#143555f2,#081a2df2);color:#eafaff;font:700 13px/1 var(--font-body);letter-spacing:0;box-shadow:0 0 10px #2bb4ff33,inset 0 0 10px #4fc8ff22;cursor:pointer}
#map .difficulty-toggle b{flex:1;text-align:left;white-space:nowrap;font-weight:700}
#map .difficulty-toggle i{width:7px;height:7px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:translateY(-2px) rotate(45deg);transition:transform .18s}
#map .difficulty-toggle[aria-expanded="true"] i{transform:translateY(2px) rotate(225deg)}
#map .difficulty-list{position:absolute;top:calc(100% + 6px);left:0;width:max-content;min-width:100%;max-width:min(250px,70vw);margin:0;padding:5px;list-style:none;display:grid;gap:4px;border:1px solid #6fd6ff88;border-radius:11px;background:#06121ffa;box-shadow:0 14px 30px #000c,0 0 16px #2bb4ff33}
#map .difficulty-list[hidden]{display:none}
#map .difficulty-list button{display:grid;gap:3px;width:100%;min-height:44px;padding:8px 11px;border:1px solid transparent;border-radius:8px;background:#0e2338;color:#e8f7ff;text-align:left;font-family:var(--font-body);cursor:pointer}
#map .difficulty-list button b{font-size:13px;font-weight:700}
#map .difficulty-list button small{font-size:10.5px;line-height:1.35;color:#9fc0d8;letter-spacing:0;word-break:keep-all}
#map .difficulty-list button.selected{border-color:#7fe6ff;background:#164264}
#map .difficulty-list button[data-difficulty="nightmare"] b{color:#ff9aa6}
#map .difficulty-list button.locked{opacity:.58}
#map .difficulty-list button.locked b::after{content:" 🔒";font-size:11px}

/* 악몽: 제목·선택 상자·지도·관문 패널을 붉은 톤으로 */
#map[data-difficulty="nightmare"] .campaign-heading>small{color:#ff8b99}
#map[data-difficulty="nightmare"] .difficulty-toggle{border-color:#ff6b7fcc;background:linear-gradient(180deg,#5a1424f2,#240710f2);color:#ffe3e7;box-shadow:0 0 12px #ff2c4a55,inset 0 0 12px #ff506822}
#map[data-difficulty="nightmare"] .campaign-art img,#map[data-difficulty="nightmare"] .magenta-scene>img,#map[data-difficulty="nightmare"] .chapter-card>img{filter:sepia(.55) hue-rotate(-42deg) saturate(1.9) brightness(.72)!important}
#map[data-difficulty="nightmare"] .magenta-route-panel,#map[data-difficulty="nightmare"] .campaign-art.solar{border-color:#ff5d74aa!important;box-shadow:0 0 18px #ff2c4a33,inset 0 0 26px #7a0f2433!important}
#map[data-difficulty="nightmare"] .magenta-gate.cleared{filter:hue-rotate(165deg) saturate(1.2)}
#map[data-difficulty="nightmare"] .chapter-picker .chapter-card{border-color:#ff7285;box-shadow:0 0 5px #ffb0bb,0 0 16px #ff2c4a55;animation:none}
#map[data-difficulty="nightmare"] .chapter-copy em{color:#ffb9c2}
#map .difficulty-brief{display:grid;gap:7px;margin:12px 0 2px;padding:10px 11px;border:1px solid #ff6b7f77;border-radius:10px;background:#2b0912cc;font-family:var(--font-body)}
#map .difficulty-brief p{display:flex;flex-wrap:wrap;align-items:center;gap:5px;margin:0}
#map .difficulty-brief b{width:100%;font-size:11.5px;color:#ffb3bd;font-weight:700}
#map .difficulty-brief span{padding:4px 7px;border-radius:6px;background:#ffffff14;color:#fff1f3;font-size:11px;white-space:nowrap}
#map .difficulty-brief-reward span{background:#ffd46a1f;color:#ffe7a8}

/* 악몽 전투 화면 표시 */
.battle-viewport.difficulty-battle .battle-operation small{color:#ff8b99}
.battle-viewport.difficulty-battle .battle-command-bar{box-shadow:0 0 18px #ff2c4a55;border-bottom-color:#ff5d74}
.battle-viewport.difficulty-battle::after{content:"";position:absolute;inset:0;z-index:3;pointer-events:none;box-shadow:inset 0 0 70px #ff17383d}
.battle-result .battle-rewards,#battle-rewards{flex-wrap:wrap}
