/* v63 · 剑势：斜向构图、错位签条，正文与实际命中区保持稳定。 */
/* 待决时让出叙事空间；方略选择仍可操作，年谱页保留完整工具。 */
#stage-game.has-choice [data-side-pane=study] .workspace-heading{margin-bottom:6px;padding-bottom:14px}
#stage-game.has-choice [data-side-pane=study] .workspace-heading>span{font-size:30px}
#stage-game.has-choice .main-workspace .strategy-block{grid-template-columns:90px minmax(0,1fr);align-items:center;padding:9px 6%;margin-bottom:10px;gap:8px;max-width:none}
#stage-game.has-choice .strategy-block #focus-select{grid-column:2;font-size:21px;min-height:44px}
#stage-game.has-choice .strategy-block :is(#action-desc,#focus-desc){display:none}
#stage-game.has-choice [data-side-pane=study] :is(.log-toolbar,.year-meter){display:none}
#stage-game.has-choice [data-side-pane=study] .choice-panel{margin-top:6px}
#stage-game{--edge-gold:#b39a68;--deep-ink:#172f52;--cut-blue:#4766a1}
.workspace-heading{position:relative;isolation:isolate;padding-bottom:25px;gap:18px}
.workspace-heading:after{content:"";position:absolute;left:-4%;bottom:5px;width:76%;height:9px;background:linear-gradient(90deg,var(--deep-ink) 0 61%,transparent 61% 64%,var(--edge-gold) 64% 77%,transparent 77%);clip-path:polygon(3% 20%,100% 0,95% 50%,0 100%);pointer-events:none}
.workspace-heading small{border-left:1px solid #8396b1;padding-left:14px;transform:rotate(3deg)}
#stage-game>#side-tabs{counter-reset:chapter}
#stage-game .side-tabs button[data-side-tab]{counter-increment:chapter;text-align:left;padding-left:30px;overflow:visible}
#stage-game .side-tabs button[data-side-tab]:after{content:counter(chapter,decimal-leading-zero);position:absolute;left:1px;top:9px;bottom:auto;right:auto;width:auto;height:auto;background:none;border:0;font:italic 11px Georgia,serif;letter-spacing:0;color:#c8b887;transform:rotate(9deg)}
#stage-game .side-tabs button:before{inset:0 -7px;clip-path:polygon(9% 10%,100% 0,88% 87%,0 100%);background:var(--silk-texture),#10223edb}
#stage-game .side-tabs button.on:before{background:var(--silk-texture),linear-gradient(104deg,#b9a16c 0 5%,#4d71b5 5% 84%,#36558f 84%);filter:drop-shadow(0 4px 0 #08162e)}
#stage-game .side-tabs button:hover:before{background:var(--silk-texture),#355482}
#stage-game .side-tabs button.on{text-shadow:0 2px 8px #142b58}
#stage-game .main-workspace .strategy-block{display:grid;grid-template-columns:minmax(0,1fr);gap:8px;margin:0 1% 23px 3%;padding:24px 8% 26px 7%;color:#edf3ff}
.strategy-block:before{inset:0;background:var(--silk-texture),linear-gradient(115deg,#243f65,#172d4d 74%,#314f78);clip-path:polygon(3% 7%,100% 0,95% 92%,0 100%)}
.strategy-block:after{content:"";position:absolute;left:0;top:12%;height:62%;width:4px;transform:rotate(12deg);background:var(--edge-gold);pointer-events:none}
#stage-game .strategy-block :is(.p-label,#focus-select,#action-desc,#focus-desc){grid-column:1;grid-row:auto;min-width:0}
#stage-game .main-workspace .strategy-block .p-label{color:#d2be91;font-size:11px;letter-spacing:5px}
#stage-game .main-workspace .strategy-block #focus-select{width:100%;padding:4px 12px 9px 0;min-height:48px;color:#fff;font:25px/1.5 'Mingshu Display','KaiTi',serif;border:0;background:linear-gradient(178deg,transparent 94%,#a5bad34d 95% 97%,transparent 98%);cursor:pointer}
#focus-select option{color:#203653;background:#eaf0f7}
#stage-game .main-workspace .strategy-block :is(#action-desc,#focus-desc){color:#d0ddf0;font-size:12px;line-height:1.75}
#stage-game .strategy-block #focus-select:focus-visible{outline-color:#dbc58f;outline-offset:3px}
.main-workspace .log-toolbar{margin-right:2%;padding:7px 0 10px}
#stage-game .log-toolbar .mini-btn{min-height:44px;padding:8px 14px;background:linear-gradient(165deg,transparent 8%,#c2d1e766 9% 89%,transparent 90%);color:#304b73}
#stage-game .log-toolbar .mini-btn:hover{background:linear-gradient(165deg,transparent 8%,#aec3e599 9% 89%,transparent 90%)}
#stage-game .main-workspace .log-line{position:relative;padding:14px 15px 14px 9px;margin-right:5%;background:linear-gradient(177deg,transparent 2%,#d5e0ee66 3% 94%,transparent 95%)}
#stage-game .main-workspace .log-line:nth-child(even){margin-left:5%;margin-right:0;background:linear-gradient(177deg,transparent 2%,#edf3f970 3% 94%,transparent 95%)}
.main-workspace .log-y{color:#6e603f;position:relative;padding-top:3px}
.main-workspace .log-y:after{content:"";position:absolute;left:2px;top:28px;width:14px;height:2px;background:#a58d60;transform:rotate(-20deg)}
#stage-game .choice-panel:before{clip-path:polygon(2% 3%,100% 0,97% 96%,0 100%);background:var(--paper-texture),linear-gradient(120deg,#f7f9fdea,#e2eaf69e),url('img/indigo-mountains.png') center/cover}
.choice-options{gap:13px}
.choice-options button{padding-left:32px;padding-right:32px}
.choice-options button:after{clip-path:polygon(5% 9%,100% 0,94% 89%,0 100%)}
.choice-options button:nth-child(even){margin-left:4%;margin-top:3px}
#stage-game .sub-tabs button{padding:12px 26px;clip-path:polygon(10% 10%,100% 0,88% 91%,0 100%)}
.selection-layout{gap:23px;grid-template-columns:minmax(0,1.15fr) minmax(205px,.9fr)}
#stage-game .selection-grid{padding:15px 4px 15px 0;gap:12px 8px}
#stage-game .selection-grid :is(.item-row,.craft-row){clip-path:polygon(4% 5%,100% 0,96% 94%,0 100%);padding:14px 8px!important;background:var(--paper-texture),#eaf0f899}
#stage-game .selection-grid :is(.item-row,.craft-row):nth-child(3n+2){translate:0 6px}
#stage-game .selection-grid .selected{background:var(--paper-texture),#b8cbea;box-shadow:inset 4px 0 #486799}
.selection-detail{margin-top:33px;padding:30px 22px}
.selection-detail:before{clip-path:polygon(4% 4%,100% 0,97% 97%,0 100%);background:var(--paper-texture),var(--astral-texture) 80% 10%/300px no-repeat,#d2dfefb8}
.selection-detail:after{top:9px;left:7%;right:6%;height:3px;transform:rotate(-5deg);background:linear-gradient(90deg,#263e63 72%,transparent 72% 75%,#aa915f 75%)}
.selection-detail h2{transform:rotate(-3deg);transform-origin:left}
#stage-game :is(.detail-actions,.sect-controls) button{clip-path:polygon(8% 9%,100% 0,91% 92%,0 100%);min-height:48px;padding:14px 27px}
#stage-game .equipment-list .equip-row{padding:23px 20px;background:var(--paper-texture),linear-gradient(175deg,transparent 5%,#cbdbee8c 6% 95%,transparent 96%)}
#stage-game .equipment-list .equip-row:nth-child(even){margin-top:10px;margin-bottom:-2px}
#stage-game .market-row{background:var(--paper-texture),linear-gradient(176deg,transparent 3%,#d5e1ef99 4% 95%,transparent 96%);padding:22px 20px}
#stage-game .market-row:nth-child(even){margin-left:5%}
#stage-game [data-side-pane=world]>.p-block{border-left:0;background:var(--paper-texture),linear-gradient(175deg,transparent 4%,#c8d8eb99 5% 93%,transparent 94%);padding-top:29px;padding-bottom:28px}
#stage-game button:focus-visible{outline:2px solid #a88a49;outline-offset:-4px}
@media(min-width:1101px){#stage-game>#side-tabs{width:11.5%;left:31%}.side-tabs button:nth-child(odd){margin-right:7px}.choice-options button{flex-basis:230px}.main-workspace .strategy-block{max-width:620px}}
@media(min-width:681px) and (max-width:1100px){#stage-game .side-tabs button[data-side-tab]{padding-left:20px}#stage-game .side-tabs button[data-side-tab]:after{left:-2px;font-size:9px}.selection-layout{grid-template-columns:minmax(0,1fr) minmax(180px,.95fr);gap:15px}}
@media(max-width:680px){
 .workspace-heading{padding-bottom:20px;gap:12px}.workspace-heading:after{width:90%;height:7px}.workspace-heading small{padding-left:9px}
 #stage-game .side-tabs button[data-side-tab]{padding:9px 3px;text-align:center}
 #stage-game .side-tabs button[data-side-tab]:after{display:none}
 #stage-game .side-tabs button:nth-child(odd){margin-top:-5px!important}#stage-game .side-tabs button:nth-child(even){margin-top:4px!important}
 #stage-game .side-tabs button:before{inset:0;clip-path:polygon(8% 10%,100% 0,92% 90%,0 100%)}
 #stage-game .main-workspace .strategy-block{margin-left:0;margin-right:0;padding:22px 8% 26px;gap:5px}
 #stage-game .main-workspace .strategy-block #focus-select{font-size:23px}
 .selection-layout{grid-template-columns:1fr;gap:14px}.selection-detail{margin-top:8px;padding:28px 24px}
 #stage-game .log-toolbar .mini-btn{padding:8px 9px}.choice-options button:nth-child(even){margin-left:4%}
 #stage-game .equipment-list .equip-row:nth-child(even){margin-top:0;margin-left:4%}
 #stage-game .main-workspace .log-line{padding-right:7px;margin-right:3%}.main-workspace .log-y{flex-basis:2.2rem}
}

/* v74 · 章签与剑脊：轮廓错位，阅读基线稳定。装饰不参与命中。 */
#stage-game .workspace-heading{align-items:center;margin:8px 2% 25px 0;padding:10px 0 22px;gap:22px}
#stage-game .workspace-heading>span{position:relative;isolation:isolate;display:inline-block;padding:8px 30px 12px 23px;color:#f5f3e9;letter-spacing:5px;transform:rotate(-3deg);text-shadow:0 2px 0 #142746}
#stage-game .workspace-heading>span:before{content:"";position:absolute;inset:0 -5px;z-index:-1;background:var(--silk-texture),#203958;clip-path:polygon(6% 7%,100% 0,92% 86%,0 100%)}
#stage-game .workspace-heading>span:after{content:"";position:absolute;inset:7px -13px -7px 12px;z-index:-2;background:#b59b67;clip-path:polygon(6% 7%,100% 0,92% 86%,0 100%)}
#stage-game .workspace-heading:after{left:2%;bottom:1px;width:94%;height:2px;transform:rotate(-3deg);transform-origin:left;background:linear-gradient(90deg,#9b8352 0 18%,#54729855 18% 83%,transparent 83%)}
#stage-game .workspace-heading small{border:0;max-width:160px;font-size:11px;line-height:1.9;letter-spacing:2px;transform:none}
#stage-game .side-tabs button[data-side-tab]{transition:padding .18s,color .18s}
#stage-game .side-tabs button[data-side-tab]:before{clip-path:polygon(12% 3%,100% 0,85% 94%,0 100%);background:var(--silk-texture),linear-gradient(105deg,#152a47f0,#102039b8)}
#stage-game .side-tabs button[data-side-tab].on:before{inset:-3px -14px -3px -8px;background:var(--silk-texture),linear-gradient(110deg,#dbc58f 0 8%,#527bb8 8% 79%,#315385 79%);filter:drop-shadow(5px 6px 0 #091729)}
#stage-game .side-tabs button[data-side-tab].on{padding-left:35px;color:#fff}
#stage-game .side-tabs button[data-side-tab]:hover{color:#edd7a5}
#stage-game .main-workspace .strategy-block{margin-left:1%;margin-right:4%;padding:23px 7% 24px;gap:5px}
#stage-game .strategy-block:before{clip-path:polygon(3% 0,100% 6%,96% 100%,0 91%);background:var(--silk-texture),linear-gradient(120deg,#294b73,#152b4a 82%)}
#stage-game .strategy-block:after{left:auto;right:-1.5%;top:12%;height:76%;width:6px;transform:skew(-14deg);background:linear-gradient(#b79e6a 0 27%,transparent 27% 33%,#354e7399 33%)}
#stage-game .main-workspace .log-line,#stage-game .main-workspace .log-line:nth-child(even){background:none;border:0;margin:0 2%;padding:13px 10px 13px 4px}
#stage-game .main-workspace .log-line:after{content:"";position:absolute;left:42px;right:3%;bottom:0;height:1px;background:linear-gradient(90deg,#8b9fbc66,transparent);transform:rotate(-1deg);transform-origin:left;pointer-events:none}
#stage-game .main-workspace .log-line:nth-child(3n+2){margin-left:5%}
#stage-game .log-y{font:italic 19px Georgia,serif;color:#857044}
#stage-game .log-toolbar{gap:6px;align-items:center}
#stage-game .log-toolbar .mini-btn{background:var(--paper-texture),#c1d0e580;clip-path:polygon(9% 0,100% 5%,91% 100%,0 93%);padding:9px 14px}
#stage-game .sub-tabs{gap:4px 12px;flex-wrap:wrap;align-items:center}
#stage-game .sub-tabs button{background:var(--paper-texture),#c6d5e480;color:#385373;border:0;min-height:44px;padding:12px 25px;clip-path:polygon(10% 0,100% 7%,89% 100%,0 91%)}
#stage-game .sub-tabs button.on{background:var(--silk-texture),#29486f;color:#fff}
#stage-game .inventory-filter-btn{min-height:44px;clip-path:polygon(12% 0,100% 4%,88% 100%,0 94%);padding:10px 17px!important}
#stage-game .choice-options{gap:13px;align-items:stretch}
#stage-game .choice-options button{position:relative;text-align:left;padding:20px 30px 23px;min-height:76px}
#stage-game .choice-options button:after{clip-path:polygon(5% 0,100% 7%,94% 100%,0 91%);background:var(--silk-texture),#304e78}
#stage-game .choice-options button:first-child:after{background:var(--silk-texture),linear-gradient(115deg,#587cb8 0 88%,#c4ac78 88%)}
#stage-game .choice-options button:before{font-size:31px;line-height:1;color:#dcc797;transform:rotate(-9deg)}
#stage-game .choice-options button:nth-child(even){margin-left:3%;margin-top:8px}
#stage-game .choice-options button:hover:after{filter:brightness(1.15)}
#stage-game .detail-actions button{background:var(--silk-texture),#355988;clip-path:polygon(9% 0,100% 7%,89% 100%,0 93%)}
#stage-game .detail-actions button:nth-child(even){translate:0 5px;background-color:#263e60}
#stage-game .selection-detail:before{clip-path:polygon(0 3%,96% 0,100% 96%,4% 100%)}
#stage-game .selection-grid :is(.item-row,.craft-row){border:0;clip-path:polygon(7% 0,100% 4%,93% 100%,0 95%)}
#stage-game .selection-grid .selected{background:var(--paper-texture),linear-gradient(120deg,#c8d8ee,#aac1df);box-shadow:inset 5px 0 #3e608a}
#stage-game.has-choice [data-side-pane=study] .workspace-heading{margin-bottom:5px;padding:0 0 14px}
#stage-game.has-choice [data-side-pane=study] .workspace-heading>span{font-size:27px;padding:4px 23px 8px}
@media(min-width:1101px){
 #stage-game .side-tabs button[data-side-tab]:nth-child(3n+2){margin-left:-12px;margin-right:12px}
 #stage-game .side-tabs button[data-side-tab]:nth-child(3n){margin-left:7px;margin-right:-7px}
 #stage-game:not(.has-choice) .main-workspace .strategy-block{grid-template-columns:minmax(160px,.9fr) minmax(0,1.1fr);column-gap:24px;padding-top:25px;padding-bottom:27px}
 #stage-game:not(.has-choice) .strategy-block .p-label{grid-column:1;grid-row:1}
 #stage-game:not(.has-choice) .strategy-block #focus-select{grid-column:1;grid-row:2/4;align-self:start}
 #stage-game:not(.has-choice) .strategy-block #action-desc{grid-column:2;grid-row:1/3}
 #stage-game:not(.has-choice) .strategy-block #focus-desc{grid-column:2;grid-row:3}
}
@media(max-width:680px){
 #stage-game .workspace-heading{gap:15px;margin-top:4px;margin-bottom:18px;padding-bottom:15px}
 #stage-game .workspace-heading>span{font-size:27px;padding:7px 20px 11px 17px;letter-spacing:3px}
 #stage-game .workspace-heading small{font-size:10px;letter-spacing:1px;max-width:98px}
 #stage-game .side-tabs button[data-side-tab].on{padding-left:3px}
 #stage-game .side-tabs button[data-side-tab].on:before{inset:0 -1px;filter:none}
 #stage-game .main-workspace .strategy-block{margin-right:3%;padding:22px 7% 24px}
 #stage-game .log-toolbar .mini-btn{padding:9px;min-height:44px}
 #stage-game .choice-options button{padding:18px 25px 22px}
 #stage-game .choice-options button:nth-child(even){margin-top:2px}
 #stage-game .sub-tabs{gap:5px}
 #stage-game .sub-tabs button{padding:12px 18px}
}
@media(prefers-reduced-motion:reduce){#stage-game .side-tabs button[data-side-tab]{transition:none}}

#btn-break-recipes{min-height:44px;padding:12px 22px;border:0;background:var(--silk-texture),#365582;color:#fff;clip-path:polygon(8% 0,100% 5%,92% 100%,0 94%);margin:4px 0 15px}

.archive-export-actions{display:flex;flex-wrap:wrap;gap:10px;margin:14px 0}.archive-export-actions button{min-height:44px;padding:10px 16px}

/* v87 · 折锋：统一斜向力线，深浅叠片与不对称留白。 */
#stage-game{--edge-gold:#bda477;--cut-blue:#547eab}
#stage-game .workspace-heading{transform:none;gap:26px;padding-top:15px;margin-bottom:23px}
#stage-game .workspace-heading>span{transform:rotate(-6deg);padding:9px 34px 16px 25px;letter-spacing:7px}
#stage-game .workspace-heading>span:before{clip-path:polygon(8% 0,100% 6%,91% 100%,0 88%);background:var(--silk-texture),linear-gradient(115deg,#142942,#33557a)}
#stage-game .workspace-heading>span:after{inset:11px -15px -8px 19px;background:var(--paper-texture),#baa477;clip-path:polygon(8% 0,100% 6%,91% 100%,0 88%)}
#stage-game .workspace-heading small{align-self:flex-end;margin-bottom:9px;transform:rotate(-5deg);color:#405978}
#stage-game .workspace-heading:after{height:3px;width:91%;bottom:-2px;transform:rotate(-5deg);background:linear-gradient(90deg,#a38957 0 12%,transparent 12% 14%,#748baa77 14% 83%,transparent 83%)}
#stage-game .side-tabs button[data-side-tab]{padding:15px 14px 15px 40px;letter-spacing:3px;line-height:1.25;min-height:58px}
#stage-game .side-tabs button[data-side-tab]:before{inset:0 -6px;background:var(--silk-texture),linear-gradient(120deg,#10243ff5,#243d57eb);clip-path:polygon(12% 0,100% 5%,87% 100%,0 91%)}
#stage-game .side-tabs button[data-side-tab].on:before{inset:-5px -21px -5px -10px;background:var(--paper-texture),linear-gradient(110deg,#e9dfc2 0 83%,#b69e72 83% 87%,#315579 87%);filter:drop-shadow(5px 7px 0 #091729)}
#stage-game .side-tabs button[data-side-tab].on{color:#142c49;text-shadow:none;padding-left:43px}
#stage-game .side-tabs button[data-side-tab]:after{left:3px;top:4px;color:#bba479;font-size:10px}
#stage-game .side-tabs .nav-icon{display:block;position:absolute;left:12px;top:25px;width:19px;height:23px;object-fit:contain;filter:brightness(0) invert(.87);opacity:.85}
#stage-game .side-tabs .on .nav-icon{filter:brightness(0) saturate(100%);opacity:.65}
#stage-game .main-workspace .strategy-block{margin:17px 5% 25px 0;padding:32px 8% 34px 7%;isolation:isolate}
#stage-game .strategy-block:before{inset:0 -2% 0 0;clip-path:polygon(4% 0,100% 9%,94% 100%,0 87%);background:var(--silk-texture),linear-gradient(118deg,#355c7c 0%,#182e49 65%,#102238)}
#stage-game .strategy-block:after{right:-4%;top:16%;height:66%;width:12px;transform:skew(-18deg);background:linear-gradient(#bca477 0 46%,transparent 46% 52%,#395675 52% 82%,transparent 82% 88%,#395675 88%)}
#stage-game .main-workspace .strategy-block #focus-select{font-size:29px;background:linear-gradient(174deg,transparent 90%,#c2ae7d 91% 93%,transparent 94%);padding-bottom:14px}
#stage-game .main-workspace .strategy-block .p-label{letter-spacing:6px;color:#dfc992}
#stage-game .main-workspace .year-meter{transform:rotate(-3deg);width:75%;margin:8px 0 21px 5%;height:3px}
#stage-game .log-toolbar{padding:9px 0 15px;transform:rotate(-2deg);transform-origin:left}
#stage-game .log-toolbar .mini-btn{background:var(--paper-texture),#bdccde;clip-path:polygon(14% 0,100% 6%,85% 100%,0 90%)}
#stage-game .main-workspace .log-line:nth-child(3n+2){margin-left:7%}
#stage-game .main-workspace .log-line:after{transform:rotate(-3deg);right:9%;background:linear-gradient(90deg,#879bb966,transparent 80%)}
#stage-game .log-y{font-size:22px;transform:rotate(-7deg);color:#806a42}
#stage-game .sub-tabs{padding:8px 0 16px;gap:8px 15px}
#stage-game .sub-tabs button{transform:rotate(-3deg);padding:13px 30px}
#stage-game .sub-tabs button:nth-child(even){translate:0 7px}
#stage-game .sub-tabs button.on{background:var(--silk-texture),linear-gradient(110deg,#1a334f 86%,#b59d6f 86% 90%,#385879 90%)}
#stage-game .selection-grid :is(.item-row,.craft-row){clip-path:polygon(8% 0,100% 5%,93% 100%,0 94%);padding:20px 16px!important;background:var(--paper-texture),linear-gradient(135deg,#e6edf4,#cbd8e6);min-width:0}
#stage-game .selection-grid :is(.item-row,.craft-row):nth-child(even){translate:0 12px}
#stage-game .selection-grid .selected{background:var(--paper-texture),linear-gradient(125deg,#a9c4d9,#c0d4e5);box-shadow:inset 6px 0 #314f70}
#stage-game .selection-detail{margin-top:45px;padding:34px 25px;border:0;top:15px}
#stage-game .selection-detail:before{clip-path:polygon(4% 0,100% 3%,94% 100%,0 96%);background:var(--paper-texture),var(--astral-texture) 85% 0/290px no-repeat,linear-gradient(140deg,#bacddd,#e5edf4)}
#stage-game .selection-detail:after{height:5px;top:13px;transform:rotate(-7deg)}
#stage-game .choice-panel:before{clip-path:polygon(0 4%,100% 0,96% 100%,2% 96%)}
#stage-game .choice-options button:after{clip-path:polygon(7% 0,100% 8%,93% 100%,0 89%)}
#stage-game .choice-options button:first-child:after{background:var(--silk-texture),linear-gradient(112deg,#426b95 0 88%,#bca579 88% 91%,#1d3958 91%)}
#stage-game .actions button{border:0;clip-path:polygon(12% 0,100% 8%,88% 100%,0 92%);padding-left:19px;padding-right:19px}
#stage-game button:focus-visible{outline:3px solid #ae8240;outline-offset:-5px}
@media(min-width:1101px){
 #stage-game>#side-tabs{left:29%;width:14%;gap:15px;transform:rotate(-12deg)}
 #stage-game .side-tabs button[data-side-tab]:nth-child(3n+2){margin-left:-17px;margin-right:17px}
 #stage-game .side-tabs button[data-side-tab]:nth-child(3n){margin-left:4px;margin-right:-4px}
 #stage-game:not(.has-choice) .main-workspace .strategy-block{grid-template-columns:minmax(155px,.85fr) minmax(0,1.15fr);column-gap:22px}
 .selection-layout{grid-template-columns:minmax(0,1.1fr) minmax(205px,.9fr);gap:20px}
}
@media(min-width:681px) and (max-width:1100px){
 #stage-game .side-tabs button[data-side-tab]{font-size:22px;padding-left:31px;letter-spacing:2px}
 #stage-game .side-tabs button[data-side-tab].on{padding-left:31px}
 #stage-game .side-tabs .nav-icon{left:7px;width:17px}
}
@media(max-width:680px){
 #stage-game .workspace-heading{gap:16px;margin-bottom:20px;padding-top:12px}
 #stage-game .workspace-heading>span{font-size:27px;letter-spacing:3px;padding:8px 22px 12px 17px}
 #stage-game .workspace-heading small{transform:none;margin-bottom:2px}
 #stage-game .side-tabs button[data-side-tab],#stage-game .side-tabs button[data-side-tab].on{padding:9px 2px;min-height:44px;letter-spacing:0;line-height:1.3}
 #stage-game .side-tabs .nav-icon{display:none}
 #stage-game .side-tabs button[data-side-tab].on:before{inset:-2px 0;filter:none}
 #stage-game .main-workspace .strategy-block{padding:25px 8% 30px;margin:12px 4% 22px 0}
 #stage-game .main-workspace .strategy-block #focus-select{font-size:25px}
 #stage-game .strategy-block:after{width:7px;right:-3%}
 #stage-game .log-toolbar{transform:none;gap:5px}
 #stage-game .selection-detail{margin-top:18px;padding:30px 23px}
 #stage-game .selection-grid :is(.item-row,.craft-row):nth-child(even){translate:0 5px}
 #stage-game .sub-tabs button{padding:12px 23px}
}
@media(prefers-reduced-motion:reduce){#stage-game .side-tabs button{transition:none}}
/* 矮桌面保留七个导航入口；控件区域采用斜面，输入文字保持正向。 */
#stage-game .craft-tools{position:relative;background:var(--paper-texture),linear-gradient(174deg,transparent 4%,#c4d3e580 5% 94%,transparent 95%);padding:26px 18px 29px}
#stage-game .craft-tools :is(input,select),#stage-game .pack-tools :is(input,select){border:0;background:linear-gradient(175deg,transparent 90%,#859bb97a 91% 93%,transparent 94%)}
@media(min-width:681px) and (max-height:800px){
 #stage-game>#side-tabs{top:22%;gap:7px}
 #stage-game .side-tabs button[data-side-tab]{min-height:48px;padding-top:10px;padding-bottom:10px;font-size:25px}
 #stage-game .side-tabs #toggle-character{margin-top:5px;min-height:44px}
 #stage-game .side-tabs .nav-icon{top:20px}
}
/* 方略实绩沿用斜面内部网格，不增加独立卡片。 */
#stage-game .strategy-block .route-progress{grid-column:1/-1;grid-row:auto;color:#e0cfa7;font-size:12px;line-height:1.8;letter-spacing:.3px;padding:8px 0 0;margin-top:4px;background:linear-gradient(177deg,#97acc333 0 1px,transparent 2px);overflow-wrap:anywhere}
#stage-game.has-choice .strategy-block .route-progress{display:none}
/* 不可选仍需可读：条件说明不随整块按钮褪色。 */
#stage-game .choice-options button:disabled{opacity:1;color:#f0f3f7;cursor:not-allowed;transform:none;transition:none}
#stage-game .choice-options button:disabled:after{background:repeating-linear-gradient(125deg,transparent 0 13px,#ffffff09 13px 14px),var(--silk-texture),#43546a;filter:none}
#stage-game .choice-options button:disabled:before{color:#d5c5a4}
#stage-game .choice-options button:disabled .choice-option-meta{color:#f0e1bd}
/* 附近来往：姓名、气息与交互意愿分层，避免窄屏挤成一行。 */
#stage-game .nearby-item{border:0;border-radius:0!important;padding:20px 18px 22px;margin:10px 0;background:var(--paper-texture),linear-gradient(174deg,transparent 3%,#c3d3e67a 4% 96%,transparent 97%)}
#stage-game .nearby-item>b{font:17px/1.7 serif;color:#263f60;overflow-wrap:anywhere}
#stage-game .nearby-item>.p-sub{display:block;margin-top:5px;line-height:1.8}
#stage-game .nearby-actions{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-start;gap:9px 14px;margin-top:12px}
#stage-game .nearby-actions button{min-height:44px;min-width:56px;padding:10px 20px;border:0;color:#f5f1e5;background:var(--silk-texture),#335273;clip-path:polygon(9% 0,100% 6%,91% 100%,0 92%)}
#stage-game .nearby-actions .spar-declined{color:#52657d;font-size:12px}
#stage-game .interaction-item{padding:12px 10px 12px 15px;line-height:1.9;overflow-wrap:anywhere;border-left-color:#a58c5c}
#btn-ruins-more{min-height:44px;margin-top:12px;padding:12px 22px;border:0;color:#f2eddf;background:var(--silk-texture),#345371;clip-path:polygon(6% 0,100% 5%,94% 100%,0 93%)}
#stage-game .ruin-item>span{min-width:0;overflow-wrap:anywhere}
#stage-game .ruin-item button{min-height:44px;min-width:66px;padding:11px 17px;border:0;background:var(--silk-texture),#345371;color:#f4efdf;clip-path:polygon(9% 0,100% 5%,91% 100%,0 94%);flex-shrink:0}
#stage-game .ruin-item button:disabled{opacity:1;background:#52647a;color:#f0e8d6;cursor:not-allowed}

/* 炼制用途提示：服用额度与材料条件分开阅读。 */
#stage-game .craft-row .craft-use-note{display:block;margin-top:6px;color:#334b66;line-height:1.6}
#stage-game .craft-row .craft-use-note.is-full{color:#674729;border-left:3px solid #977346;padding-left:7px;font-weight:700}
@media(max-width:600px){
 #stage-game #craft-list .selection-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;max-height:360px}
 #stage-game #craft-list .selection-grid .craft-row{padding:16px 12px!important}
 #stage-game #craft-list .craft-policy-note{font-size:12px;line-height:1.8;padding:12px;margin-bottom:18px}
}

#stage-game .selection-detail .craft-use-note{color:#334b66;padding:10px 12px;background:var(--paper-texture),#dce6ed}
#stage-game .selection-detail .craft-use-note.is-full{color:#674729;border-left:3px solid #977346}

#board-dialog{width:min(620px,calc(100vw - 32px));max-height:82vh;box-sizing:border-box;border:0;border-top:5px solid #987d4c;padding:24px;color:#203852;background:var(--paper-texture),#e1e9ef;box-shadow:12px 16px 0 #08162688}
#board-dialog::backdrop{background:#071427b8}
#board-dialog h2{font-family:serif;transform:rotate(-2deg);margin:0 0 22px}
#close-board{float:right}
#board-dialog button,#board-dialog select{min-height:44px;padding:8px 12px}
#board-dialog button{background:#203852;color:#f3e8cc;border:0;clip-path:polygon(6% 0,100% 0,94% 100%,0 100%)}
.board-controls{display:flex;flex-wrap:wrap;gap:12px;align-items:center}
#board-results{padding:0;list-style:none}#board-results li{padding:14px 10px;border-bottom:1px solid #9cabb8;display:flex;flex-wrap:wrap;gap:8px;justify-content:space-between}
#board-results span{font-size:12px}#board-results strong{overflow-wrap:anywhere}
#board-dialog #close-board{position:relative;z-index:2}
#board-dialog h2{max-width:calc(100% - 76px)}

.end-sync{margin:18px 0;padding:14px 18px;background:var(--paper-texture),#dce6ef;border-left:3px solid #9b8357;color:#243d56}.end-sync p{line-height:1.8}.end-sync button{min-height:44px}.end-sync button:disabled{opacity:.65}

#sect-entry-hint{padding:10px 12px;margin-top:10px;background:var(--paper-texture),#d9e4ed;color:#304760}#sect-entry-hint button{min-height:44px;margin:8px 0 0;padding:8px 18px;clip-path:polygon(6% 0,100% 0,94% 100%,0 100%);border:0;background:#223c59;color:#f2e5c6}

.chain-memories{margin-top:12px;padding:10px 12px;background:var(--paper-texture),#e0e8ef}.chain-memories summary{cursor:pointer;min-height:44px;display:list-item;line-height:44px;color:#294862}.actor-memory{padding:8px 0;line-height:1.8}.actor-memory ul{padding-left:20px}.actor-memory li{margin:6px 0;overflow-wrap:anywhere}#btn-chain-history-more{min-height:44px;margin-top:16px}
/* v110 · 剑签：轮廓承担动势，文字承担阅读。 */
#stage-game .topbar{isolation:isolate;padding:12px 20px 15px;gap:14px}
#stage-game .topbar:before{content:"";position:absolute;inset:0 -8px -2px -10px;z-index:-1;pointer-events:none;background:var(--silk-texture),linear-gradient(112deg,#152b45 0 78%,#294966 78%);clip-path:polygon(3% 0,100% 8%,97% 87%,0 100%)}
#stage-game .topbar:after{content:"";position:absolute;left:4%;right:20%;bottom:-5px;height:2px;background:linear-gradient(90deg,#bda477,transparent);transform:rotate(-2deg);pointer-events:none}
#stage-game .topbar :is(.tb-sub,.tb-chip,.tb-right){color:#e0e8ee}
#stage-game .topbar .resource-stat{color:#f0e3c7;font-size:18px}
#stage-game .topbar .resource-stat img{filter:brightness(0) invert(.88)}
#stage-game .topbar .bar{background:#7791a04d;height:3px}
#stage-game .topbar .bar-fill{background:#d2bb82}
#stage-game .workspace-heading>span{letter-spacing:5px;text-shadow:none}
#stage-game .workspace-heading>span:after{inset:14px -11px -5px 30px;background:var(--paper-texture),linear-gradient(110deg,#c7b68b 0 76%,transparent 76% 80%,#718ca1 80%)}
#stage-game .workspace-heading small{transform:none;border-left:2px solid #a88f5c;padding-left:12px;margin-left:auto;font-size:11px}
#stage-game .main-workspace .strategy-block{padding-top:25px;padding-bottom:27px;margin-bottom:18px}
#stage-game .strategy-block:before{clip-path:polygon(3% 0,100% 5%,95% 100%,0 94%);background:var(--silk-texture),var(--astral-texture) right center/270px no-repeat,linear-gradient(115deg,#294b67,#142b42 76%)}
#stage-game .strategy-block:after{width:7px;right:-3%;top:9%;height:83%;background:linear-gradient(#cfb98c 0 26%,transparent 26% 30%,#385675 30% 85%,transparent 85% 90%,#385675 90%)}
#stage-game .log-toolbar{transform:none}
#stage-game .main-workspace .log-line:nth-child(3n+2){margin-left:3%}
#stage-game .side-tabs button[data-side-tab]{white-space:nowrap;letter-spacing:2px}
#stage-game .side-tabs button[data-side-tab]:before{clip-path:polygon(10% 0,100% 0,88% 100%,0 94%)}
#stage-game .side-tabs button[data-side-tab].on:before{background:var(--paper-texture),linear-gradient(110deg,#ece2c6 0 84%,#c8af7c 84% 88%,#213d59 88%);filter:drop-shadow(4px 6px 0 #08182b)}
#stage-game .selection-grid :is(.item-row,.craft-row){clip-path:polygon(0 0,100% 0,100% calc(100% - 13px),calc(100% - 13px) 100%,0 100%);box-shadow:inset 0 0 0 1px #71889e40}
#stage-game .selection-grid :is(.item-row,.craft-row):nth-child(even){translate:0 5px}
#stage-game .selection-grid .selected{box-shadow:inset 4px 0 #9b7840,inset 0 0 0 1px #8fa4b4;background:var(--paper-texture),linear-gradient(130deg,#e9dfc5,#cfdae1)}
#stage-game .choice-options button{transition:transform .16s ease;outline-offset:-5px}
#stage-game .choice-options button:after{clip-path:polygon(5% 0,100% 0,94% 100%,0 96%)}
#stage-game .choice-options button:nth-child(even):after{clip-path:polygon(0 0,95% 3%,100% 96%,5% 100%)}
#stage-game .choice-options button:focus-visible{outline-color:#e7c780}
@media(min-width:1101px){
 #stage-game .main-workspace{left:42%;right:3%}
 #stage-game>#side-tabs{left:28%;width:14.5%;gap:12px}
}
@media(min-width:681px) and (max-width:1100px){
 #stage-game>#side-tabs{left:28%;width:16%;gap:12px;transform:rotate(-8deg)}
 #stage-game .side-tabs button[data-side-tab]{font-size:21px;padding:13px 10px 13px 31px;min-height:53px}
 #stage-game .side-tabs .nav-icon{top:20px;width:16px;height:18px}
 #stage-game .topbar{left:45%;right:3%;gap:8px;padding:10px 12px}
 #stage-game .topbar .resource-stat{font-size:15px;gap:4px}
 #stage-game .topbar .tb-mid{min-width:110px}
 #stage-game .workspace-heading{gap:10px}
 #stage-game .workspace-heading>span{font-size:31px;padding-right:23px;letter-spacing:3px}
 #stage-game .workspace-heading small{max-width:100px;font-size:10px;padding-left:8px}
}
@media(max-width:680px){
 #stage-game .topbar{padding:8px 12px;gap:8px}
 #stage-game .topbar:before{inset:0 -4px;clip-path:polygon(2% 0,100% 3%,98% 95%,0 100%)}
 #stage-game .topbar .resource-stat{font-size:13px}
 #stage-game .topbar:after{display:none}
 #stage-game .workspace-heading small{font-size:10px;max-width:92px;padding-left:8px}
 #stage-game .workspace-heading>span{letter-spacing:3px}
 #stage-game .main-workspace .strategy-block{padding:23px 8% 27px}
 #stage-game .side-tabs button[data-side-tab]{letter-spacing:0;white-space:nowrap}
 #stage-game .selection-grid :is(.item-row,.craft-row):nth-child(even){translate:none}
}
@media(prefers-reduced-motion:reduce){#stage-game .choice-options button{transition:none}}
