/* Player headquarters and expandable field manuals share the ink/paper palette. */
#game#game#game#game#game #dashboard{display:flex;gap:0;padding:0;background:#ebe6d9 url('./assets/ui/wuxia/map-paper.webp') center/cover;color:#293d36;backdrop-filter:none;text-shadow:none}
#game#game#game#game#game #dashboard.hidden{display:none}
#game#game#game#game#game #dashboard button{border:0;border-image:none;border-radius:2px;background:none;box-shadow:none;padding:8px 12px;min-height:44px;color:#365247;font:600 13px/1.3 system-ui;letter-spacing:0;text-shadow:none;cursor:pointer;touch-action:manipulation}
#game#game#game#game#game #dashboard button::before,#game#game#game#game#game #dashboard button::after{display:none}
#game#game#game#game#game #dashboard button:focus-visible{outline:2px solid #ac5137;outline-offset:2px}
#game#game#game#game#game #dashboard button:hover{background:#36524712}
#game#game#game#game#game #dashboard button:disabled{opacity:.65;cursor:default;filter:grayscale(.7)}
#dashboard .camp-nav{display:flex;flex-direction:column;align-items:stretch;width:150px;flex:0 0 150px;padding:26px 14px 14px;background:#203a35ed;border-right:1px solid #bba376;color:#eee3c6}
#dashboard .camp-nav>img{width:100%;height:auto;object-fit:contain;max-height:90px}
#dashboard .camp-nav-caption{text-align:center;font:11px/1.5 SimSun,serif;letter-spacing:.5em;color:#d1bd95;margin:0 0 22px}
#dashboard .camp-tabs{display:flex;flex-direction:column;gap:6px;flex:1}
#game#game#game#game#game #dashboard .camp-nav button{color:#dddec9;text-align:left;font:15px/1.3 SimSun,serif;letter-spacing:.12em;padding:11px 12px;border-left:2px solid transparent}
#game#game#game#game#game #dashboard .camp-nav button[aria-pressed=true]{color:#ffe4ac;border-left-color:#d6b578;background:#d8be7a1c}
#game#game#game#game#game #dashboard #camp-exit{color:#b8c4b6;font-size:12px;margin-top:5px;border-top:1px solid #8d9c8040}
#dashboard .camp-main{flex:1;min-width:0;display:flex;flex-direction:column;height:100%;padding:22px 28px 12px;background:#f2eddfc4}
#dashboard .camp-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-shrink:0;margin-bottom:16px}
#dashboard .camp-heading>div>span{font:10px/1.5 system-ui;letter-spacing:.3em;color:#9b5137}
#game#game#game#game#game #dashboard h2{font:700 28px/1.3 SimSun,serif;letter-spacing:2px;margin:3px 0;color:#263f35;text-shadow:none}
#dashboard .camp-heading p{font-size:11px;color:#607061;margin:0}
#dashboard .camp-header-actions{display:flex;gap:10px;align-items:center}
#game#game#game#game#game #dashboard #camp-depart{background:#943f2f;color:#ffedc8;padding:12px 24px;font:18px/1.2 SimSun,serif;letter-spacing:.14em;border:1px solid #c2a067;box-shadow:0 3px 10px #743f2826}
#dashboard .camp-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr)) 1.4fr;flex-shrink:0;border-top:1px solid #aaa89066;border-bottom:1px solid #aaa89066;margin-bottom:14px;padding:12px 0}
#dashboard .camp-stats>div{border-right:1px solid #b4b49b60;padding:0 16px}#dashboard .camp-stats>div:first-child{padding-left:0}#dashboard .camp-stats>div:last-child{border:0}
#dashboard .camp-stats span{display:block;font-size:11px;color:#687466;margin-bottom:4px}
#dashboard .camp-stats b{display:block;font:700 23px/1.2 Georgia,SimSun,serif;color:#3b5141}#dashboard #camp-best{color:#9b4b31}#dashboard #camp-highest{font-size:18px;line-height:28px}
#camp-content{min-height:0;flex:1;overflow:auto;display:grid;grid-template-columns:1.3fr 1fr;gap:16px;align-content:start;padding:0 5px 22px 0;scrollbar-width:thin;scrollbar-color:#8c987b transparent;touch-action:pan-y}
#camp-content:not([data-tab=overview]){grid-template-columns:1fr}
#dashboard .camp-section{min-width:0;padding:12px 16px 10px;background:#faf7e9b5;border:1px solid #a9b39555;border-radius:2px}
#dashboard .camp-section[hidden]{display:none}.camp-history-section{grid-column:1/-1}
#dashboard .camp-section-title{display:flex;align-items:center;justify-content:space-between;gap:5px;margin-bottom:4px;border-bottom:1px solid #aeb69844}
#game#game#game#game#game #dashboard h3{font:700 18px/1.4 SimSun,serif;letter-spacing:.12em;margin:0;color:#3c5241}
#dashboard h3 small{font:10px/1 system-ui;letter-spacing:0;color:#7a8572;margin-left:8px}
#game#game#game#game#game #dashboard .camp-section-title button{font-size:11px;padding:5px;min-height:36px;color:#857653}
#game#game#game#game#game #dashboard .camp-map{width:100%;display:flex;align-items:center;gap:14px;padding:13px 0;text-align:left;border-bottom:1px solid #b2b8a644;border-radius:0}
.camp-map-number{font:italic 27px/1 Georgia,serif;color:#9c8f6c}.camp-map div{flex:1}.camp-map small{color:#97754d;font-size:10px}.camp-map b{display:block;font:700 18px/1.3 SimSun,serif;color:#3a5343;margin:2px 0}.camp-map p{font:11px/1.4 system-ui;color:#65775f;margin:0}.camp-map em{font:11px/1.3 system-ui;color:#8f4e35;max-width:60px}.camp-map.locked{filter:grayscale(1)}
#camp-completed,#camp-rank-position,.camp-muted{font:11px/1.5 system-ui;color:#7c806b;margin:8px 0 0}
#camp-rank-position{margin:5px 0;color:#99553b}.camp-rank-row{display:flex;align-items:center;gap:14px;padding:10px 0;border-bottom:1px solid #aeb59d44}.camp-rank-row>em{font:italic 24px/1 Georgia;color:#b39c65}.camp-rank-row>span{flex:1;min-width:0}.camp-rank-row b{font:600 13px/1.4 system-ui;color:#3c5143;overflow-wrap:anywhere}.camp-rank-row small{display:block;font:10px/1.5 system-ui;color:#7a8671}.camp-rank-row>strong{font:18px/1.2 Georgia;color:#936039;text-align:right}.camp-rank-row.mine{background:#bca46f16}
.camp-empty{font:18px/1.5 SimSun,serif;text-align:center;color:#6c7a65;padding:25px 15px}.camp-empty span{display:block;font:11px/1.5 system-ui;margin-top:6px;color:#939781}
.camp-battle{border-bottom:1px solid #aeb59d44}.camp-battle summary{display:flex;align-items:center;justify-content:space-between;gap:14px;min-height:54px;padding:8px 0;cursor:pointer;list-style:none;font-size:12px}.camp-battle summary::-webkit-details-marker{display:none}.camp-battle summary>span:first-child{flex:1}.camp-battle b{font:600 13px/1.5 system-ui;color:#425643}.camp-battle small{display:block;font:10px/1.5 system-ui;color:#7e8773}.camp-battle-outcome{font-size:11px;color:#85734f}.camp-battle summary>span:nth-child(3){text-align:right}.camp-battle summary>i{font:16px/1 serif;color:#7e8873}.camp-battle>p{font:12px/1.8 system-ui;color:#5e7158;background:#d0d7be44;padding:10px;margin:0 0 8px}
.camp-footer{display:flex;align-items:center;justify-content:flex-end;gap:12px;min-height:45px;flex-shrink:0;border-top:1px solid #a9ad9255}.camp-footer>span{margin-right:auto;font:12px/1 SimSun,serif;letter-spacing:.15em;color:#8b8f78}#game#game#game#game#game #camp-resume{color:#995039;border:1px solid #b1966a}#game#game#game#game#game #camp-resume[hidden]{display:none}
/* Fades appear only where more content exists, and disappear at the end. */
.fade-scroll{--fade-top:0px;--fade-bottom:0px;mask-image:linear-gradient(to bottom,transparent,#000 var(--fade-top),#000 calc(100% - var(--fade-bottom)),transparent)}
.fade-scroll[data-scroll-top=true]{--fade-top:16px}.fade-scroll[data-scroll-bottom=true]{--fade-bottom:24px}
#game#game#game#game#game #event-panel[data-variant=roster] .event-dialog{position:relative;display:grid;grid-template-columns:110px minmax(0,1fr);grid-template-rows:auto 1fr auto;gap:10px 18px;width:96vw;max-width:1440px;height:90dvh;max-height:none;padding:22px;border:1px solid #ad9870;border-image:none;border-radius:3px;background:#eee9db url('./assets/ui/wuxia/map-paper.webp') center/cover;overflow:hidden}
#game#game#game#game#game #event-panel[data-variant=roster] .eyebrow{display:none}
#game#game#game#game#game #event-panel[data-variant=roster] #event-title{grid-column:1;grid-row:1;margin:6px 0 0;font:700 27px/1.4 SimSun,serif;color:#324b3d;letter-spacing:.15em;text-align:left}
#game#game#game#game#game #event-panel[data-variant=roster] #event-copy{grid-column:1;grid-row:2;font:12px/1.6 system-ui;color:#738064;margin:0;text-align:left}
#game#game#game#game#game #event-panel[data-variant=roster] #event-close{grid-column:1;grid-row:3;font:13px/1.3 SimSun,serif;border:1px solid #a19771;border-image:none;background:#3a5146;color:#f8edcc;min-height:44px;padding:6px;margin:0;border-radius:2px}
#game#game#game#game#game #event-panel[data-variant=roster] #event-options{grid-column:2;grid-row:1/4;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-auto-rows:max-content;gap:9px;align-content:start;overflow:auto;max-height:none;height:100%;padding:0 7px 24px 0;border-left:1px solid #939d7d55;padding-left:16px;scrollbar-width:thin;touch-action:pan-y}
#game#game#game#game#game #event-panel[data-variant=roster] .event-group{grid-column:1/-1;font:600 12px/1.5 SimSun,serif;color:#8b7553;letter-spacing:.2em;margin:0;padding:5px 0;border:0}
#game#game#game#game#game #event-panel[data-variant=roster] #event-options .event-option{display:grid;grid-template-columns:34px minmax(0,1fr);gap:5px 8px;position:relative;min-height:91px;height:auto;padding:10px;border:1px solid #aab39677;border-image:none;border-radius:2px;background:#faf7ebd9;box-shadow:none;opacity:1;filter:none;color:#395240;text-shadow:none;overflow:visible}
#game#game#game#game#game #event-panel[data-variant=roster] #event-options .event-option:disabled{opacity:.68;filter:none;border-image:none;background:#e1e4d6b5;color:#6c7964}
#game#game#game#game#game #event-panel[data-variant=roster] #event-options .event-option::before,#game#game#game#game#game #event-panel[data-variant=roster] #event-options .event-option::after{display:none}
#game#game#game#game#game #event-panel[data-variant=roster] .event-icon{grid-column:1;grid-row:1;position:static;width:34px;margin:0}
#game#game#game#game#game #event-panel[data-variant=roster] .event-icon .game-icon{width:34px;height:34px;margin:0;filter:none}
#game#game#game#game#game #event-panel[data-variant=roster] .event-option>b{grid-column:2;grid-row:1;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:2px;font:700 15px/1.3 SimSun,serif;white-space:normal;padding:0}
#game#game#game#game#game #event-panel[data-variant=roster] .event-tag{position:static;margin:0;font:10px/1.2 system-ui;color:#927652;background:none;padding:0;border:0}
#game#game#game#game#game #event-panel[data-variant=roster] .event-option>span:not(.event-icon){grid-column:1/-1;grid-row:2;font:11px/1.5 system-ui;color:#607459;white-space:normal;overflow:visible;text-overflow:clip;margin:0}
@media(max-height:540px){
 #dashboard .camp-nav{width:116px;flex-basis:116px;padding:12px 10px 6px}#dashboard .camp-nav>img{max-height:51px}.camp-nav-caption{display:none}#dashboard .camp-tabs{gap:1px}#game#game#game#game#game #dashboard .camp-nav button{font-size:12px;padding:8px;min-height:40px}#dashboard .camp-main{padding:12px 16px 5px}#dashboard .camp-heading{margin-bottom:8px}#game#game#game#game#game #dashboard h2{font-size:21px;margin:0}.camp-heading>div>span{display:none}#dashboard .camp-heading p{font-size:10px}#game#game#game#game#game #dashboard #camp-depart{font-size:16px;padding:9px 15px}#dashboard .camp-stats{padding:8px 0;margin-bottom:9px}#dashboard .camp-stats span{font-size:9px;margin-bottom:3px}#dashboard .camp-stats b{font-size:19px}#dashboard #camp-highest{font-size:13px;line-height:23px}#dashboard .camp-stats>div{padding:0 10px}#camp-content{gap:10px}#dashboard .camp-section{padding:7px 11px}#game#game#game#game#game #dashboard h3{font-size:15px}.camp-map b{font-size:15px}.camp-map p{font-size:9px}.camp-map-number{font-size:23px}#game#game#game#game#game #dashboard .camp-map{padding:8px 0;gap:8px}.camp-rank-row{padding:7px 0;gap:8px}.camp-footer{min-height:40px}.camp-footer>span{font-size:10px}#game#game#game#game#game #dashboard .camp-footer button{min-height:38px;font-size:11px}
 #game#game#game#game#game #event-panel[data-variant=roster] .event-dialog{height:94dvh;grid-template-columns:80px minmax(0,1fr);padding:14px;gap:7px 10px}#game#game#game#game#game #event-panel[data-variant=roster] #event-title{font-size:23px}#game#game#game#game#game #event-panel[data-variant=roster] #event-options{gap:7px;padding-left:10px}#game#game#game#game#game #event-panel[data-variant=roster] #event-options .event-option{min-height:78px;padding:7px;grid-template-columns:28px minmax(0,1fr);gap:4px 6px}#game#game#game#game#game #event-panel[data-variant=roster] .event-icon,#game#game#game#game#game #event-panel[data-variant=roster] .event-icon .game-icon{width:28px;height:28px}#game#game#game#game#game #event-panel[data-variant=roster] .event-option>b{font-size:13px}#game#game#game#game#game #event-panel[data-variant=roster] .event-option>span:not(.event-icon){font-size:10px;line-height:1.4}
}
@media(min-width:1250px){#game#game#game#game#game #event-panel[data-variant=roster] #event-options{grid-template-columns:repeat(4,minmax(0,1fr))}}

#game#game#game#game#game #dashboard{align-items:stretch;justify-content:flex-start}
#camp-content[data-tab=overview] .camp-map-section{grid-column:1;grid-row:1}
#camp-content[data-tab=overview] .camp-rank-section{grid-column:2;grid-row:1/3}
#camp-content[data-tab=overview] .camp-history-section{grid-column:1;grid-row:2}
@media(max-height:540px){
 #camp-content[data-tab=overview] .camp-map p{display:none}
 #game#game#game#game#game #camp-content[data-tab=overview] .camp-map{padding:4px 0;min-height:44px}
 #camp-content[data-tab=overview] .camp-map b{font-size:14px;margin:0}
 #camp-content[data-tab=overview] #camp-completed{font-size:9px;margin:4px 0 0}
 #camp-content[data-tab=overview] .camp-battle:nth-child(n+2){display:none}
 #camp-content[data-tab=overview] .camp-battle-outcome{display:none}
 #camp-content[data-tab=overview] .camp-history-section>.camp-muted{display:none}
}

#camp-content[data-tab=overview] .camp-history-section{grid-row:1}
#camp-content[data-tab=overview] .camp-map-section{grid-row:2}
#game#game#game#game#game #event-panel[data-variant=roster] #event-title{writing-mode:vertical-rl;text-orientation:upright;letter-spacing:.2em;white-space:nowrap;font-size:27px;line-height:1.3;max-height:160px}
#game#game#game#game#game #event-panel[data-variant=roster] #event-close{width:100%;white-space:nowrap;font-size:11px;padding:5px 2px}
