/* The expedition panel is a live field journal, using the game's painted assets. */
#menu #campShell .expedition-panel{min-width:0;overflow:hidden!important}
#menu #campShell .battlefield-browser.region-list{display:flex!important;flex-direction:column!important;gap:8px!important;min-width:0;min-height:0!important;flex:1!important;margin:0 10px 10px!important;height:auto!important;overflow:hidden!important;grid-template-columns:none!important}
#menu #campShell .battlefield-browser *{box-sizing:border-box}
#menu #campShell .battlefield-browser button{font-family:inherit;letter-spacing:0;min-width:0;min-height:0;border-radius:0;margin:0;cursor:pointer;color:#f7e7bc;text-shadow:0 2px 2px #071e28;box-shadow:none;touch-action:manipulation}
#menu #campShell .bf-art{position:absolute;inset:0;pointer-events:none;background-image:url('assets/backgrounds/dungeon-cards-chibi.png');background-size:var(--map-size,400% 300%);background-position:var(--map-offset,0 0);background-repeat:no-repeat}
#menu #campShell .bf-banner{position:relative;flex:none;height:65px;overflow:hidden;border:1px solid #9f976d;isolation:isolate;background:#203f48}
#menu #campShell .bf-banner::after{content:'';position:absolute;inset:0;background:linear-gradient(90deg,#092736e8,#10273480 55%,#1027343b);z-index:1;pointer-events:none}
#menu #campShell .bf-banner-copy{display:flex;align-items:center;gap:10px;padding:9px 12px;height:100%;position:relative;z-index:2}
#menu #campShell .bf-number{font:700 32px Georgia,serif;color:#e7cb85;text-shadow:0 3px #112936}
#menu #campShell .bf-banner-copy small{font-size:10px;color:#d5ddcb;display:block;line-height:1.2}
#menu #campShell .bf-banner-copy h3{font-size:22px;line-height:1.3;margin:1px 0 0;color:#fff1c6;letter-spacing:.05em;white-space:nowrap}
#menu #campShell .bf-status{font-size:10px;color:#f1dfaa;margin-left:auto;white-space:nowrap;padding:4px 6px;background:#142e38c9;border:1px solid #a49465}
#menu #campShell .bf-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;flex:none}
#menu #campShell .bf-tabs button{height:32px;padding:4px;background:#1a3b49 url('assets/ui/BigBlueButton_Regular.png') center/100% 100%;border:1px solid #667c77;font-size:12px}
#menu #campShell .bf-tabs button[aria-selected=true]{color:#fff0b0;border-color:#edcd7e;box-shadow:inset 0 -2px #edcd7e,0 0 8px #e9c77522;background-color:#315963}
#menu #campShell .bf-detail{position:relative;flex:1;min-height:180px;overflow:auto;overscroll-behavior:contain;background:#0b2834c9;border:1px solid #6d8380;scrollbar-width:thin;scrollbar-color:#a59262 #102e39}
#menu #campShell .bf-view-boss{display:flex;flex-direction:column;gap:7px;padding:8px}
#menu #campShell .bf-boss-roster{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:5px;flex:none}
#menu #campShell .bf-boss-roster button{display:flex;flex-direction:column;align-items:center;gap:5px;border:0;padding:0 0 4px;background:transparent;font-size:10px;line-height:1.3;filter:none!important}
#menu #campShell .bf-boss-roster button>span:last-child{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
#menu #campShell .bf-medallion{position:relative;display:block;width:min(100%,53px);aspect-ratio:1;border-radius:50%;background:radial-gradient(circle,#355962,#10232e 80%);border:2px solid #7e927f;box-shadow:0 0 0 2px #071e2b,inset 0 0 7px #071e2b}
#menu #campShell .bf-medallion img{width:100%;height:100%;object-fit:contain;pointer-events:none}
#menu #campShell .bf-medallion i{position:absolute;bottom:-6px;left:50%;transform:translateX(-50%);font:700 10px Georgia,serif;font-style:normal;display:grid;place-items:center;background:#23434d;border:1px solid #a3966c;width:16px;height:16px;border-radius:50%}
#menu #campShell .bf-boss-roster button.selected{color:#ffe6a0}
#menu #campShell .bf-boss-roster button.selected .bf-medallion{border-color:#f1d481;box-shadow:0 0 0 2px #403b2d,0 0 12px #f0ce6a66}
#menu #campShell .bf-demo-stage{position:relative;flex:1;min-height:110px;max-height:220px;overflow:hidden;border:1px solid #a99464;background:#173b43;isolation:isolate}
#menu #campShell .bf-demo-stage canvas{display:block;width:100%;height:100%;min-height:110px;object-fit:cover;image-rendering:pixelated}
#menu #campShell .bf-demo-overlay{position:absolute;inset:0 0 auto;display:flex;justify-content:space-between;gap:7px;align-items:center;padding:7px 9px;background:linear-gradient(#0a2339dc,#0a233900);pointer-events:none;text-shadow:0 2px 2px #071e28}
#menu #campShell .bf-demo-overlay strong{font-size:15px;color:#fff1c6}
#menu #campShell .bf-demo-overlay span{font-size:9px;color:#e4e6cc}
#menu #campShell .bf-demo-controls{position:absolute;right:6px;bottom:6px;display:flex;gap:4px}
#menu #campShell .bf-demo-controls button{display:grid;place-items:center;width:25px;height:25px;background:#13313ce8;border:1px solid #b8a676;font-size:15px;padding:0}
#menu #campShell .bf-skill-chips{display:flex;flex-wrap:wrap;gap:5px;flex:none}
#menu #campShell .bf-skill-chips button{flex:1;white-space:nowrap;background:#203e48;border:1px solid #69837d;font-size:10px;line-height:1.3;padding:5px 6px}
#menu #campShell .bf-skill-chips button.selected{border-color:#dbbd78;background:#3d5550;color:#ffe6a0}
#menu #campShell .bf-boss-tip{font-size:11px;line-height:1.5;color:#c8d5c7;margin:0;padding:0 2px;flex:none}
#menu #campShell .bf-route-section{flex:none;min-height:0}
#menu #campShell .bf-route-heading{display:flex;align-items:center;gap:8px;margin-bottom:5px;height:23px}
#menu #campShell .bf-route-heading strong{font-size:12px;color:#f0dfb1}
#menu #campShell .bf-position{margin-left:auto;font:11px Georgia,serif;color:#afc3b7;font-variant-numeric:tabular-nums}
#menu #campShell .bf-route-arrows{display:flex;gap:4px}
#menu #campShell .bf-route-arrows button{height:23px;width:26px;display:grid;place-items:center;padding:0;background:#254852 url('assets/ui/SmallBlueSquareButton_Regular.png') center/100% 100%;border:0;font-size:20px}
#menu #campShell .bf-route-arrows button:disabled{opacity:.3;cursor:default}
#menu #campShell .bf-route-track{position:relative;display:flex;gap:8px;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x proximity;scrollbar-width:thin;scrollbar-color:#b49d66 #0c2a35;padding:2px 1px 6px;touch-action:pan-x;cursor:grab;user-select:none;overscroll-behavior-x:contain;min-width:0}
#menu #campShell .bf-route-track.is-dragging{cursor:grabbing;scroll-snap-type:none}
#menu #campShell .bf-route-track.is-dragging button{cursor:grabbing;pointer-events:none}
#menu #campShell .bf-route{position:relative;isolation:isolate;flex:0 0 46%;height:87px;overflow:hidden;scroll-snap-align:center;border:1px solid #758a7f!important;background:#163541!important;padding:0!important;box-shadow:0 3px 0 #09212e!important;text-align:left;filter:none!important}
#menu #campShell .bf-route::after{content:'';position:absolute;inset:0;pointer-events:none;z-index:1;background:linear-gradient(90deg,#0a2338d9,#0a233828),linear-gradient(0deg,#0a23388c,transparent 70%)}
#menu #campShell .bf-route-copy{position:relative;z-index:2;height:100%;display:flex;flex-direction:column;justify-content:center;padding:8px 10px}
#menu #campShell .bf-route-copy small{color:#d8c48e;font-size:12px;line-height:1.2}
#menu #campShell .bf-route-copy b{font-size:15px;line-height:1.5;color:#fff0bf;white-space:nowrap}
#menu #campShell .bf-route-state{font-size:10px;color:#c5d4c7;line-height:1.5}
#menu #campShell .bf-route.is-selected{border-color:#ffe4a0!important;box-shadow:inset 0 0 0 1px #e2bd72,0 0 9px #f2cd6b55!important}
#menu #campShell .bf-route.is-locked .bf-art,#menu #campShell .battlefield-browser.is-locked .bf-banner .bf-art,#menu #campShell .bf-locked-paint .bf-art{filter:grayscale(1) brightness(.64)}
#menu #campShell .bf-route.is-locked .bf-route-copy b{color:#c1c8c2}
#menu #campShell .bf-route.is-locked .bf-route-copy small,#menu #campShell .bf-route.is-locked .bf-route-state{color:#9eaaa7}
#menu #campShell .bf-route.is-locked::before{content:'⌑';position:absolute;top:8px;right:9px;z-index:3;color:#b8bfb8;font-size:18px}
#menu #campShell .bf-route:hover{border-color:#d4bd83!important}
#menu #campShell .battlefield-browser button:focus-visible,#menu #campShell .bf-route-track:focus-visible{outline:2px solid #ffdf91;outline-offset:-3px}
#menu #campShell .bf-map{margin:0;display:flex;align-items:center;justify-content:center;min-height:140px;flex:1;background:#24474d}
#menu #campShell .bf-view-map{display:flex;flex-direction:column}
#menu #campShell .bf-map canvas{display:block;max-height:100%;width:100%;height:auto;image-rendering:pixelated;object-fit:contain}
#menu #campShell .bf-map-meta{display:grid;grid-template-columns:1.8fr 1fr 1fr;border-top:1px solid #82957b55;padding:10px;gap:8px}
#menu #campShell .bf-map-meta span{display:flex;flex-direction:column;gap:5px;min-width:0}
#menu #campShell .bf-map-meta small{font-size:10px;color:#acc2b4}
#menu #campShell .bf-map-meta b{font-size:13px;color:#f5dfad}
#menu #campShell .bf-drops{display:flex;flex-direction:column;padding:5px 8px;gap:2px}
#menu #campShell .bf-drop{display:flex;gap:9px;align-items:center;border-bottom:1px solid #7c927d44;padding:5px 0;min-height:50px}
#menu #campShell .bf-drop>img{width:37px;height:37px;border:1px solid #b2a26e;background:#183b40;object-fit:contain;image-rendering:pixelated;flex:none}
#menu #campShell .bf-drop>div{display:flex;flex:1;min-width:0;flex-direction:column;gap:2px}
#menu #campShell .bf-drop small{font-size:9px;color:#aac4b7}
#menu #campShell .bf-drop b{font-size:12px;color:#f3dfb4;line-height:1.2}
#menu #campShell .bf-drop span{font-size:9px;color:#bfcbb8}
#menu #campShell .bf-drop>strong,#menu #campShell .bf-material>strong{font:700 13px Georgia,serif;color:#e3c984;flex:none}
#menu #campShell .bf-material{display:flex;align-items:center;gap:9px;padding:8px 0;font-size:11px;color:#dfc4f0}
#menu #campShell .bf-material img{width:30px;height:30px;object-fit:contain}
#menu #campShell .bf-material>strong{margin-left:auto}
#menu #campShell .bf-locked-paint{height:calc(100% - 30px);min-height:150px;position:relative;isolation:isolate;display:grid;place-items:center;overflow:hidden}
#menu #campShell .bf-locked-paint::after{content:'';position:absolute;inset:0;background:#0b1e2988;z-index:1}
#menu #campShell .bf-locked-paint strong{position:relative;z-index:2;color:#d0d4cd;font-size:24px;text-shadow:0 3px 2px #000}
#menu #campShell .bf-locked-caption{position:relative;z-index:2;margin:8px;text-align:center;font-size:11px;color:#aebbb4}
@media(max-height:780px){#menu #campShell .bf-banner{height:57px}#menu #campShell .bf-medallion{max-width:44px}#menu #campShell .bf-route{height:74px}#menu #campShell .bf-boss-tip{font-size:10px}#menu #campShell .bf-view-boss{gap:5px;padding:6px}#menu #campShell .battlefield-browser.region-list{gap:6px!important}}
@media(max-width:1100px){#menu #campShell .expedition-panel{height:650px!important;min-height:650px!important}#menu #campShell .battlefield-browser.region-list{display:flex!important;flex-direction:column!important}#menu #campShell .bf-route{flex-basis:30%}#menu #campShell .bf-demo-stage{max-height:260px}}
@media(max-width:740px){#menu #campShell .expedition-panel{height:650px!important}#menu #campShell .bf-route{flex-basis:46%}#menu #campShell .bf-demo-stage{max-height:230px}}

#menu #campShell .battlefield-browser.is-locked .bf-detail canvas,#menu #campShell .battlefield-browser.is-locked .bf-detail img{filter:grayscale(1) brightness(.8)}
/* Use the single painted blue-and-gold action asset, not a nine-slice atlas. */
#menu #campShell .bf-tabs button{background:transparent url('assets/ui/armory-action.png') center/100% 165% no-repeat;border:0!important;padding:5px 14px 5px 19px;font-weight:700}
#menu #campShell .bf-tabs button[aria-selected=true]{box-shadow:none;filter:brightness(1.35);color:#fff2b7}
#menu #campShell .bf-route-arrows button{background:transparent url('assets/ui/armory-action.png') center/240% 165% no-repeat}
#menu #campShell .bf-view-map .bf-map{flex:none;height:225px;min-height:225px}
#menu #campShell .bf-map canvas{height:100%;max-height:100%;object-fit:contain}
/* Opaque painted-cloth backing keeps the camp video out of the field journal. */
#menu #campShell .expedition-panel{
 background-color:#102d3b!important;
 background-image:linear-gradient(135deg,#163747d9,#0d2536ed),url('assets/ui/armory-action.png')!important;
 background-position:center,center!important;
 background-size:100% 100%,300% 300%!important;
 background-repeat:no-repeat!important;
 backdrop-filter:none!important;
 opacity:1!important;
}
#menu #campShell .bf-detail{background:#112e3c!important}
#menu #campShell .bf-route-heading{color:#f0dfb1}
/* Keep the complete combat demonstration visible at desktop window heights. */
#menu #campShell .bf-demo-stage canvas{object-fit:contain;min-height:0}
@media(min-width:1101px) and (max-height:780px){
 #menu #campShell .bf-banner{height:48px}
 #menu #campShell .bf-detail.bf-view-boss{min-height:210px;overflow:hidden}
 #menu #campShell .bf-medallion{max-width:34px}
 #menu #campShell .bf-boss-roster button{gap:3px;padding-bottom:0;font-size:9px}
 #menu #campShell .bf-skill-chips button{font-size:9px;padding:3px 4px}
 #menu #campShell .bf-demo-stage{min-height:80px;flex:1 1 80px}
 #menu #campShell .bf-boss-tip{font-size:9px;line-height:1.25}
 #menu #campShell .bf-route{height:56px}
}
/* The fourth chapter keeps the battlefield window's original frames and buttons. */
.marsh-camp-map{display:block;width:100%;max-height:340px;object-fit:contain}.marsh-camp-scene{position:relative;display:grid;place-items:center;background-size:cover;background-position:center}
#menu #campShell .bf-medallion canvas{display:block;width:100%;height:100%;image-rendering:pixelated}#menu #campShell .marsh-camp-scene canvas{width:100%;height:100%;object-fit:contain}#menu #campShell .marsh-camp-loading{position:absolute;bottom:8px;color:#f2dfb2}

/* Face artwork follows the original round medallion; its rank stays outside. */
#menu #campShell .bf-medallion>img,#menu #campShell .bf-medallion>canvas{display:block;aspect-ratio:1;border-radius:50%;object-fit:contain;overflow:hidden}
#menu #campShell .marsh-camp-scene{display:block}
#menu #campShell .marsh-camp-scene>canvas{position:absolute;inset:0;width:100%;height:100%;object-fit:contain}
#menu #campShell .marsh-camp-loading{left:12px;right:12px;text-align:center;background:#102e3cf0;padding:6px;border-radius:4px}
#menu #campShell .marsh-camp-loading button{margin-left:8px;padding:3px 9px}
