#xko{--gold:#dbc58e;--violet:#ba9bff;--ink:#121725;background:#121725;color:#e9eef3;min-height:100dvh;padding:0;overflow-x:hidden}#xko.active{display:flex;flex-direction:column}body[data-screen=xko] #musicDock{display:none!important}#xko button{font:inherit;cursor:pointer;min-height:44px}#xko button:disabled{cursor:not-allowed;opacity:.5}#xko button:focus-visible{outline:3px solid #bdeaff;outline-offset:3px}.x-top{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 4vw;border-bottom:1px solid #81748d;background:#202534}.x-top h1{margin:2px 0;font-size:24px;color:var(--gold)}.x-kicker{font-size:11px;letter-spacing:3px;color:#bbb1cf}.x-top p{margin:0;font-size:13px;color:#bccad5}.x-top-actions{display:flex;gap:8px}.x-top button,.x-footer button,.x-tools button,.x-review button{background:#2c3445;border:1px solid #898097;color:#f1e5c9;border-radius:10px;padding:8px 14px}.x-main{width:min(1250px,100%);margin:auto;flex:1;padding:26px clamp(14px,4vw,48px)}.x-intro{display:grid;grid-template-columns:1fr auto;gap:24px;align-items:center;margin:4px 0 24px}.x-intro h2{font-size:clamp(28px,5vw,46px);margin:8px 0;color:var(--gold)}.x-intro p{color:#bec7d6;line-height:1.7;margin:6px 0}.x-badge{border:1px solid #7c698f;border-radius:50%;width:100px;height:100px;display:grid;place-content:center;text-align:center;color:var(--gold);background:radial-gradient(#4b3d61,#141c2b);box-shadow:0 0 40px #6951ac44}.x-badge strong{font-size:32px}.x-levels{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.x-card{position:relative;text-align:left;background:linear-gradient(145deg,#343247,#192330);border:1px solid #645d78;border-radius:14px;padding:20px;color:#dce7ed;overflow:hidden}.x-card.selected{border-color:var(--gold);box-shadow:0 0 0 1px var(--gold),0 0 25px #b9a6ff24}.x-card[disabled]{filter:grayscale(.7)}.x-card header{display:flex;justify-content:space-between;gap:8px;font-size:12px;letter-spacing:1px;color:#d9c7ef}.x-card h3{font-size:21px;color:var(--gold);margin:12px 0 6px}.x-card p{font-size:13px;line-height:1.5;max-width:65%;min-height:40px}.x-card small{display:block;color:#adc3cf}.x-monster-thumb{position:absolute;right:5px;bottom:18px;width:100px;height:100px;object-fit:contain;pointer-events:none}.x-guidance{margin:24px 0;color:#aabac7;line-height:1.8;font-size:13px}.x-footer{position:relative;display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;padding:14px 4vw calc(14px + env(safe-area-inset-bottom));border-top:1px solid #6c657e;background:#202a35;margin-top:auto}.x-music{margin-left:auto;display:flex;align-items:center;justify-content:flex-end;gap:10px;font-size:12px;max-width:100%}.x-music span{max-width:260px;line-height:1.5}.x-battle-stage{height:clamp(180px,29vh,300px);position:relative;background:radial-gradient(ellipse at 50% 110%,#6c607e,#252a40 60%,#101522);border-bottom:1px solid #b9a07c;overflow:hidden}.x-battle-stage:before{content:'';position:absolute;inset:60% -20% -80%;background:repeating-linear-gradient(90deg,transparent 0 49px,#c9c3ff18 50px),repeating-linear-gradient(0deg,transparent 0 49px,#c9c3ff18 50px);transform:perspective(200px) rotateX(35deg)}#xActors{position:absolute;inset:0;width:100%;height:100%;z-index:2}.x-enemy-hud{position:absolute;right:3%;top:14px;background:#101524df;border:1px solid #807190;border-radius:9px;padding:8px 12px;z-index:3;width:min(40%,300px);font-size:13px}.x-enemy-hud progress{width:100%;height:10px;accent-color:#c889b7;display:block;margin-top:5px}.x-hud{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:10px 4vw;background:#263442;border-bottom:1px solid #536573;font-size:13px}.x-hud progress{accent-color:#5ee69f;max-width:120px}.x-tools{margin-left:auto;display:flex;align-items:center;gap:6px}.x-tools select{min-height:44px;background:#172534;color:#fff;border:1px solid #7f899c;max-width:180px;border-radius:8px;padding:6px}.x-challenge{width:min(1000px,100%);margin:0 auto;padding:18px 20px 24px}.x-question{font-size:clamp(18px,2.4vw,23px);line-height:1.5;margin:10px 0 16px;color:#f5e9ca}.x-observe{background:#070b12;border:1px solid #7b7391;border-radius:12px;overflow:hidden;position:relative}.x-observe img{display:block;width:100%;height:min(58vh,620px);object-fit:contain;background:#000}.x-observe-head{display:flex;justify-content:space-between;align-items:center;padding:10px 14px;color:#dbceff}.x-observe-head button{border:1px solid #82859a;background:#303447;color:#fff;border-radius:8px;padding:6px 12px}.x-count{font-variant-numeric:tabular-nums;font-size:22px;color:#ead098}.x-timebar{height:5px;background:#ba9bff;transition:width .1s linear}.x-choices{display:grid;grid-template-columns:1fr 1fr;gap:12px}.x-choice{display:flex;gap:12px;text-align:left;padding:17px;background:#2c424b;color:#edf3f3;border:1px solid #71808a;border-radius:10px;align-items:center}.x-choice b{display:grid;place-items:center;background:#b7a56e;color:#152833;min-width:30px;height:30px;border-radius:7px}.x-choice.correct{background:#1d5948;border-color:#6bd1a7}.x-choice.wrong{background:#693640;border-color:#e1a2a4}.x-explain{background:#273b40;border:1px solid #658e81;border-radius:10px;padding:16px;line-height:1.75;margin:18px 0}.x-source{font-size:12px;color:#adbbc7;display:block;margin:12px 0}.x-primary{padding:13px 22px;border:1px solid #eedca8;border-radius:10px;color:#1b2b35;background:linear-gradient(#e4cf95,#b79a61);font-weight:bold}.x-result{text-align:center;max-width:720px;margin:36px auto;padding:24px;border:1px solid #8f7d9c;border-radius:18px;background:linear-gradient(#333447,#1c2936)}.x-result h2{font-size:32px;color:var(--gold)}.x-result p{line-height:1.8}.x-result img{width:170px;height:170px;object-fit:contain}.x-result-actions{display:flex;gap:12px;justify-content:center;flex-wrap:wrap}.x-review{margin-top:25px;text-align:left}.x-review details{border-top:1px solid #64737c;padding:12px 0}.x-review summary{cursor:pointer}.x-review p{font-size:14px}.x-review img{width:100%;height:auto;max-height:500px;object-fit:contain;background:black}.x-lightbox{border:1px solid #9285a8;background:#090d14;color:#fff;width:96vw;max-width:1600px;height:94dvh;padding:12px}.x-lightbox::backdrop{background:#000d}.x-lightbox img{width:100%;height:calc(100% - 65px);object-fit:contain}.x-lightbox button{min-height:44px;float:right}.x-error{color:#ffd1d1;padding:20px;text-align:center}
@media(max-width:700px){.x-top{padding:12px 14px;align-items:flex-start}.x-top h1{font-size:21px}.x-top-actions{flex-direction:column}.x-main{padding:18px 14px}.x-levels{grid-template-columns:1fr 1fr;gap:10px}.x-card{padding:13px}.x-card h3{font-size:18px}.x-card p{max-width:100%;min-height:45px;font-size:12px}.x-monster-thumb{position:static;display:block;width:85px;height:85px;margin:0 auto}.x-card header{font-size:11px}.x-badge{width:76px;height:76px}.x-badge strong{font-size:25px}.x-hud{padding:9px 12px;gap:8px}.x-hud progress{max-width:70px}.x-tools{width:100%;justify-content:flex-end}.x-choices{grid-template-columns:1fr}.x-challenge{padding:14px}.x-footer{padding:12px 14px calc(14px + env(safe-area-inset-bottom));font-size:12px}.x-music span{max-width:210px}.x-observe img{height:53vh}.x-battle-stage{height:200px}.x-enemy-hud{font-size:11px}.x-intro{gap:10px}.x-top p{font-size:11px}}
.x-map-title{display:flex;align-items:center;gap:20px;padding:18px 4vw;background:#1c2332}.x-map-title h2{margin:4px 0;color:#ead5a7;font-size:24px}.x-map-title p{margin:0;color:#b4c5d2;font-size:13px}.x-map-title button{margin-left:auto;border:1px solid #8b7b9e;border-radius:9px;background:#303b4b;color:#f6e7c6;padding:8px 12px}.x-map-viewport{height:clamp(350px,53dvh,650px);position:relative;overflow:hidden;touch-action:pan-y;cursor:grab;background:#1b2032}.x-map-viewport.dragging{cursor:grabbing}.x-map-viewport button{cursor:inherit}#xMapWorld{position:absolute;inset:0 auto auto 0;background:url('assets/xko/map.webp') center/100% 100% no-repeat;will-change:transform}.x-route-line{position:absolute;left:5.5%;right:5.5%;top:65%;height:3px;background:linear-gradient(90deg,#f0e1a8aa,#c5b7e077,#e3d1a999);box-shadow:0 0 9px #f4dbb3}.x-map-node{position:absolute;transform:translate(-50%,-50%);display:flex;align-items:center;flex-direction:column;background:none;border:0;color:#fff2c7;z-index:2;padding:0}.x-map-node span{display:grid;place-items:center;width:52px;height:52px;background:radial-gradient(#53506b,#252f41);border:3px solid #b2a3be;border-radius:50%;box-shadow:0 4px 9px #0008;font-weight:bold;font-size:21px}.x-map-node b{margin-top:7px;padding:4px 9px;background:#151c2bdf;border:1px solid #817394;border-radius:6px;font-size:13px;white-space:nowrap}.x-map-node.selected span{background:radial-gradient(#eddda6,#ab8f5f);color:#172530;border-color:#fff2c1;box-shadow:0 0 0 5px #eedca644,0 0 25px #f4d586}.x-map-node.locked span{filter:grayscale(.7);color:#afb1b9}#xMapActors{position:absolute;width:100%;height:100%;inset:0;pointer-events:none;z-index:3}.x-map-quest{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:15px 4vw;background:#283141;border-top:1px solid #bfa16c;border-bottom:1px solid #71647c}.x-map-quest h3{margin:6px 0;color:#eddaad;font-size:23px}.x-map-quest p{margin:0;color:#b9cbd3;font-size:13px}.x-map-quest small{color:#c7b6dc}.x-map-months{display:flex;gap:8px;padding:12px 4vw;overflow:auto;scrollbar-width:none}.x-map-months::-webkit-scrollbar{display:none}.x-map-months button{flex:0 0 44px;border:1px solid #7e708f;border-radius:50%;background:#2b3444;color:#e7e3ef}.x-map-months button.selected{background:#dac693;color:#172a33}.x-map-note{font-size:12px;padding:0 4vw 14px;color:#b2bfca;line-height:1.7;margin:0}
@media(max-width:700px){.x-map-title{padding:12px 14px;flex-wrap:wrap;gap:8px}.x-map-title h2{font-size:20px}.x-map-title p{order:3;width:100%;font-size:12px}.x-map-title button{font-size:12px}.x-map-viewport{height:47dvh;min-height:300px}.x-map-quest{padding:12px 14px;gap:9px}.x-map-quest h3{font-size:19px}.x-map-quest .x-primary{padding:10px;max-width:42%;font-size:14px}.x-map-quest small{font-size:11px}}
.x-route-line{display:none}
/* Header and music footer own space; only the middle content scrolls. */
#xko{position:fixed;inset:0;height:100dvh;min-height:0;overflow:hidden;z-index:2}
#xko>.x-top,#xko>.x-footer{flex:0 0 auto}
#xBody{flex:1 1 auto;min-height:0;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain}
.x-top button{border:1px solid #897a94;background:#2c3445;color:#f1e5c9;border-radius:10px;padding:8px 12px}
.x-observe img{height:min(52dvh,620px)}
/* Every battle panel fits its viewport; long clinical terms wrap in place. */
#xko,#xko *{box-sizing:border-box}
#xko>.x-top,#xko>.x-footer,#xBody{width:100%;max-width:100%;min-width:0}
.x-top>div,.x-top-actions,.x-footer>span,.x-music,.x-music span{min-width:0}
.x-top>div{flex:1}.x-top-actions{flex-shrink:0}
.x-top p,.x-kicker,.x-music span,.x-result p,.x-question,.x-explain,.x-review{overflow-wrap:anywhere}
.x-main,.x-challenge,.x-result,.x-observe,.x-choices{min-width:0;max-width:100%}
.x-choices{grid-template-columns:repeat(2,minmax(0,1fr))}
.x-choice{width:100%;min-width:0;white-space:normal;overflow-wrap:anywhere}
.x-choice b{flex:0 0 30px}.x-choice span{min-width:0}
.x-hud>span{min-width:0;overflow-wrap:anywhere}
.x-tools{min-width:0;max-width:100%;flex-wrap:wrap}
.x-tools select{min-width:0;flex:1 1 120px}
.x-result img[hidden]{display:none}
.x-result .x-victory-poster{display:block;width:100%;height:auto;aspect-ratio:3/4;object-fit:contain;border-radius:12px;margin:16px auto}
.x-battle-stage{background-size:cover;background-position:center 58%;background-repeat:no-repeat}
.x-battle-stage:before{display:none}
@media(max-width:700px){
 .x-top{gap:10px}.x-top-actions{max-width:31%}.x-top-actions button{padding:8px;white-space:normal;overflow-wrap:anywhere}
 .x-kicker{font-size:9px;letter-spacing:1.5px}.x-top h1{font-size:20px}
 .x-choices{grid-template-columns:minmax(0,1fr)}
 .x-tools{display:grid;grid-template-columns:auto minmax(0,1fr) auto;width:100%;gap:6px}
 .x-tools select{width:100%;max-width:100%;font-size:16px}
 #xWeapon{grid-column:2/4}.x-tools button{padding:8px 10px}
 .x-result{margin:12px auto;padding:16px}.x-result h2{font-size:25px;line-height:1.4;margin:12px 0}
 .x-result-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 .x-result-actions button{min-width:0;padding:12px 8px;white-space:normal}
 .x-footer{gap:8px;padding:10px 14px calc(10px + env(safe-area-inset-bottom))}
 .x-music{font-size:11px}.x-music button{flex:0 0 44px;padding:6px}.x-music span{max-width:220px}
}
/* Match the existing pneumonia campaign's compact character HUD. */
#xko .x-player-top{display:flex;align-items:center;gap:12px;padding:12px 20px;background:#203e40;border-bottom:1px solid #c6b381}
#xko .x-avatar{width:58px;height:70px;flex:0 0 58px;border:1px solid #d5bf87;border-radius:11px;overflow:hidden}
#xko .x-player-stats{flex:1;min-width:0;max-width:640px}
.x-player-name{display:flex;align-items:center;gap:9px;flex-wrap:wrap;margin-bottom:7px;font-size:19px;line-height:1.2}
.x-rank{padding:3px 7px;border-radius:8px;background:#718d7f;font-size:11px;font-weight:bold;color:#fff}
.x-level{color:#dbc58e;white-space:nowrap}
.x-stat-bar{height:13px;border-radius:9px;background:#091622;border:1px solid #718588;overflow:hidden;position:relative;margin-top:4px}
.x-stat-bar i{display:block;height:100%;width:0;transition:width .25s}
.x-health i{background:linear-gradient(90deg,#0b9f3b,#2aff63)}
.x-experience i{background:linear-gradient(90deg,#0e72b5,#31c2f0)}
.x-stat-bar span{position:absolute;inset:0 5px 0 0;text-align:right;font-size:10px;color:#e2eaf3;line-height:11px;white-space:nowrap}
#xko .x-backpack{position:relative;margin-left:4px;width:48px;height:48px;flex:0 0 48px;min-height:44px;padding:0;background:#0b1727;border:1px solid #718588;border-radius:10px;font-size:27px}
.x-backpack span{position:absolute;top:-9px;right:-7px;min-width:23px;padding:2px 4px;border-radius:20px;background:#b5945b;color:#132a30;border:1px solid #e4c995;font-size:13px;font-weight:bold}
.x-navigation{flex:0 0 auto;display:flex;align-items:center;justify-content:space-between;gap:8px;padding:6px 14px;background:#20353e;border-bottom:1px solid #706651}
.x-navigation span{color:#dbc58e;font-size:13px}.x-navigation button{padding:6px 10px;color:#f2e8cc;border:1px solid #7d908e;border-radius:9px;background:#29434b;font-size:12px}
#xko .x-map-viewport{height:clamp(380px,60dvh,720px);isolation:isolate}
#xko .x-map-title{position:absolute;top:16px;left:16px;z-index:4;display:block;max-width:calc(100% - 90px);margin:0;padding:13px 17px;border-left:3px solid #dbc58e;border-radius:3px;background:linear-gradient(110deg,#172b3be0,#172b3b66);color:#fff0cc;text-shadow:0 2px 4px #112331;pointer-events:none}
#xko .x-map-title h2{font-size:24px;line-height:1.3;margin:8px 0;color:#fff0cc;overflow-wrap:anywhere}
#xko .x-map-title p{font-size:12px;line-height:1.5;color:#f4ecd6}
#xko .x-recenter{position:absolute;z-index:5;right:14px;top:16px;display:grid;place-items:center;width:44px;height:44px;padding:0;border-radius:50%;border:1px solid #c5bf9c;background:#f9f0d9e8;color:#365450;font-size:28px;line-height:1;cursor:pointer}
@media(max-width:700px){
 #xko .x-player-top{gap:8px;padding:10px 12px}
 #xko .x-avatar{width:48px;height:60px;flex-basis:48px}
 .x-player-name{font-size:16px;gap:6px;margin-bottom:6px}.x-rank{font-size:10px;padding:3px 6px}
 #xko .x-backpack{width:44px;height:44px;flex-basis:44px;margin-left:0;font-size:26px}
 .x-stat-bar{height:12px}.x-stat-bar span{line-height:10px;font-size:9px}
 .x-navigation{padding:5px 10px;gap:6px}.x-navigation span{font-size:11px}.x-navigation button{padding:5px 8px;font-size:11px}
 #xko .x-map-title{top:12px;left:12px;padding:10px 12px;max-width:calc(100% - 78px)}
 #xko .x-map-title h2{font-size:20px}.x-map-title .x-kicker{font-size:10px;letter-spacing:1px}
 #xko .x-map-title p{font-size:11px}#xko .x-recenter{top:12px;right:12px}
}
@media(max-width:360px){.x-player-name{font-size:14px;gap:4px}.x-rank{font-size:9px;padding:2px 4px}.x-navigation span{display:none}}
/* One black campaign palette; chapter details live only on the map overlay. */
#xko .x-player-top,#xko .x-navigation,#xko .x-footer{background:#121725}
#xko .x-map-panel{margin:12px clamp(12px,3vw,28px) 16px;padding:16px 18px;background:#121725;border:1px solid #c9b078;border-radius:7px;color:#f4ecd6}
.x-panel-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}
.x-panel-heading p{min-width:0;font-size:14px;line-height:1.65;overflow-wrap:anywhere}
#xko #xMapWeapon{flex:0 0 auto;padding:10px 14px;border:1px solid #dbc58e;border-radius:12px;background:#1e2a36;color:#f4ecd6;font-weight:bold}
#xko .x-map-panel .x-map-months{display:grid;grid-template-columns:repeat(15,minmax(0,1fr));gap:8px;padding:0;margin:0 0 16px;overflow:visible}
#xko .x-map-panel .x-map-months button{display:grid;place-items:center;justify-self:center;width:100%;max-width:44px;min-width:0;min-height:0;aspect-ratio:1;padding:0;border-radius:50%;border:1px solid #98a395;background:#f9f0d7;color:#35544e;font-size:16px}
#xko .x-map-panel .x-map-months button.locked{background:#818d8e;border-color:#677a7d;color:#334b51}
#xko .x-map-panel .x-map-months button.cleared{background:#fff8e3;border-color:#a9b99d;color:#385c52}
#xko .x-map-panel .x-map-months button.selected{background:#365e54;border-color:#365e54;color:#fff8df}
#xko .x-map-panel #xMapEnter{display:block;width:100%;max-width:none;padding:14px;font-size:19px;border-radius:12px;box-shadow:0 3px 0 #8c7646}
@media(max-width:900px){#xko .x-map-panel .x-map-months{grid-template-columns:repeat(8,minmax(0,1fr));gap:8px}}
@media(max-width:480px){#xko .x-map-panel{padding:13px;margin:10px 12px 14px}.x-panel-heading{gap:8px}.x-panel-heading p{font-size:12px}#xko #xMapWeapon{padding:8px 10px;font-size:13px}#xko .x-map-panel .x-map-months{grid-template-columns:repeat(5,minmax(0,1fr));gap:8px}#xko .x-map-panel #xMapEnter{font-size:17px}}
/* Single-row chapter strip at every breakpoint, within the existing gold frame. */
#xko .x-navigation button{background:#121725}
#xko .x-map-panel .x-map-months{display:flex;flex-wrap:nowrap;gap:10px;overflow-x:auto;overflow-y:hidden;max-width:100%;padding:3px 1px 5px;margin-bottom:14px;touch-action:pan-x pan-y;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch;scrollbar-width:none;cursor:grab;user-select:none}
#xko .x-map-panel .x-map-months::-webkit-scrollbar{display:none}
#xko .x-map-panel .x-map-months button{flex:0 0 44px;width:44px;height:44px;min-height:44px;max-width:44px;cursor:inherit}
#xko .x-map-panel .x-map-months.dragging{cursor:grabbing}
/* Consistent black surfaces, including answered/disabled choices. */
#xko .x-choice,#xko .x-choice.correct,#xko .x-choice.wrong,#xko .x-explain{background:#121725}
#xko .x-choice.correct{border-color:#6bd1a7;box-shadow:inset 3px 0 #6bd1a7}
#xko .x-choice.wrong{border-color:#e1a2a4;box-shadow:inset 3px 0 #e1a2a4}
#xko .x-choice:disabled{opacity:1}
#xko .x-choice:disabled:not(.correct):not(.wrong){color:#a9b3c0}
#xko .x-explain{border-color:#658e81}
/* Return-to-town floats over the content; no separate navigation/status strip. */
#xko>.x-navigation{position:relative;flex:0 0 0;height:0;min-height:0;padding:0;border:0;background:none;z-index:8;display:block}
#xko>.x-navigation #xHome{position:absolute;top:10px;left:12px;margin:0;min-height:44px;background:#121725e8;padding:8px 12px;font-size:12px}
#xko .x-map-title{top:66px}
#xko[data-phase="battle"] #xBody,#xko[data-phase="result"] #xBody{padding-top:60px}
#xko>.x-footer{min-height:0;padding:8px 14px calc(8px + env(safe-area-inset-bottom));gap:0}
#xko>.x-footer .x-music{margin-left:auto}
/* Tablet/desktop: the compact chapter card overlays the map at center-left.
   It is a sibling of the draggable map, so scrolling chapters cannot pan it. */
@media(min-width:701px){
 #xko[data-phase="map"] #xBody{position:relative;overflow:hidden}
 #xko[data-phase="map"] .x-map-viewport{height:100%;min-height:0}
 #xko[data-phase="map"] .x-map-panel{position:absolute;left:22px;top:auto;bottom:12px;transform:none;z-index:6;width:min(380px,calc(100% - 44px));max-height:calc(100% - 32px);overflow-y:auto;margin:0;padding:18px;background:#121725cc;box-shadow:0 8px 26px #0005}
 #xko[data-phase="map"] .x-panel-heading{align-items:center;gap:10px}
 #xko[data-phase="map"] .x-panel-heading p{font-size:13px}
 #xko[data-phase="map"] #xMapWeapon{font-size:13px;padding:9px 11px}
 #xko[data-phase="map"] #xMapEnter{font-size:17px;padding:13px}
}
@media(min-width:701px) and (max-height:650px){
 #xko[data-phase="map"] .x-map-panel{top:auto;bottom:12px;transform:none;padding:12px;width:350px}
 #xko[data-phase="map"] .x-panel-heading{margin-bottom:8px}
 #xko[data-phase="map"] .x-map-panel .x-map-months{margin-bottom:8px}
}

/* 80% panel background; labels and controls remain fully opaque. */
#xko .x-map-panel{background:#121725cc}

/* X-KO weapon picker: black surfaces, gold selection outline. */
body[data-dungeon="xko"] #roWeaponDialog,
body[data-dungeon="xko"] #roWeaponDialog .ro-loadout-options,
body[data-dungeon="xko"] #roWeaponDialog .ro-loadout-option,
body[data-dungeon="xko"] #roWeaponDialog .ro-loadout-option.selected,
body[data-dungeon="xko"] #roWeaponDialog .ro-loadout-art,
body[data-dungeon="xko"] #roCloseWeapons{background:#000;color:#fff0ce}
body[data-dungeon="xko"] #roWeaponDialog::backdrop{background:#000a}
body[data-dungeon="xko"] #roWeaponDialog .ro-loadout-option.selected{border-color:#e7c889;outline:2px solid #e7c889;outline-offset:3px}
