/* Battle-system chapter; image slots share one presentation size. */
.swordsman-page .s-battle{background:linear-gradient(180deg,#e7f3fd,#f8fcff 55%,#ddecf8)}
.swordsman-page .s-controls-guide{margin:0 0 20px;padding:20px 22px;border:1px solid #7da9ca;border-left:5px solid #276da4;background:linear-gradient(120deg,#e0f1fc,#f8fcff 70%);box-shadow:0 14px 35px #16476c14;color:#173a5e}
.swordsman-page .s-controls-guide-head{margin-bottom:10px}
.swordsman-page .s-controls-guide-head .s-eyebrow{margin:0;color:#2a719f}
.swordsman-page .s-controls-guide-grid{display:grid;grid-template-columns:1fr 1fr 1fr 1.55fr;gap:0;border-top:1px solid #b8d1e4}
.swordsman-page .s-control-card{min-width:0;padding:12px 18px 0 0;text-align:left}
.swordsman-page .s-control-card+.s-control-card{padding-left:18px;border-left:1px solid #b8d1e4}
.swordsman-page .s-control-main{display:flex;align-items:center;justify-content:flex-start;gap:10px;min-height:37px;margin-bottom:7px}
.swordsman-page .s-control-card kbd{flex:none;min-width:58px;padding:7px 9px;border:1px solid #174d7d;border-bottom-width:3px;border-radius:7px;background:#173d68;color:#fff;text-align:center;font:700 14px/1.2 var(--sans)}
.swordsman-page .s-control-card h4{margin:0;color:#173a5e;font:700 15px/1.35 var(--sans)}
.swordsman-page .s-control-card p{margin:0;color:#45627b;font:12px/1.6 var(--sans)}
@media(max-width:960px){.swordsman-page .s-controls-guide-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.swordsman-page .s-control-card:nth-child(3){padding-left:0;border-left:0}.swordsman-page .s-control-card:nth-child(n+3){margin-top:12px;padding-top:12px;border-top:1px solid #b8d1e4}}
@media(max-width:600px){.swordsman-page .s-controls-guide{margin-bottom:16px;padding:16px 14px}.swordsman-page .s-controls-guide-grid{grid-template-columns:1fr}.swordsman-page .s-control-card,.swordsman-page .s-control-card+.s-control-card{margin-top:0;padding:12px 0;border-top:0;border-left:0;border-bottom:1px solid #b8d1e4}.swordsman-page .s-control-card:last-child{padding-bottom:0;border-bottom:0}.swordsman-page .s-control-card kbd{min-width:54px;font-size:12px}.swordsman-page .s-control-card h4{font-size:14px}.swordsman-page .s-control-card p{font-size:12px}}
.swordsman-page .s-battle-system{position:relative;z-index:1;border:1px solid #9bbbd5;background:#f8fbff;box-shadow:0 28px 70px #101d2b1a}
.swordsman-page .s-battle-tabs{display:grid;grid-template-columns:repeat(8,1fr);border-bottom:1px solid #a7c4da;background:#e0edf7}
.swordsman-page .s-battle-tab{display:flex;align-items:center;justify-content:center;gap:9px;min-height:68px;padding:13px 8px;border:0;border-right:1px solid #afc8dc;background:transparent;color:#315779;font:600 13px var(--sans);cursor:pointer;transition:background .25s,color .25s,transform .25s}
.swordsman-page .s-battle-tab:last-child{border-right:0}
.swordsman-page .s-battle-tab span{color:#678dac;font:italic 14px Georgia,serif}
.swordsman-page .s-battle-tab:hover{background:#f2f8fc;transform:translateY(-2px)}
.swordsman-page .s-battle-tab.is-active{background:#123762;color:#fff;box-shadow:inset 0 -4px #80d4f5}
.swordsman-page .s-battle-tab.is-active span{color:#a7daf1}
.swordsman-page .s-battle-tab:focus-visible{outline:3px solid #61bae8;outline-offset:-4px}
.swordsman-page .s-battle-panel{padding:clamp(24px,4vw,54px)}
.swordsman-page .s-battle-panel[hidden]{display:none}
.swordsman-page .s-battle-panel-head{display:flex;justify-content:space-between;align-items:end;gap:28px;margin-bottom:32px}
.swordsman-page .s-battle-panel-head span{color:#3876a6;font:700 11px var(--sans);letter-spacing:.22em}
.swordsman-page .s-battle-panel-head h3{margin:8px 0 0;color:#112d50;font:500 clamp(29px,3vw,42px)/1.35 var(--serif)}
.swordsman-page .s-battle-panel-head p{max-width:460px;margin:0;color:#4b6681;font:14px/1.8 var(--sans)}
.swordsman-page .s-battle-overview{display:grid;grid-template-columns:minmax(280px,.78fr) 1.22fr;gap:clamp(22px,3vw,44px);align-items:start;margin-bottom:34px}
.swordsman-page .s-system-shot{position:relative;display:flex;flex-direction:column;justify-content:end;aspect-ratio:4/3;min-height:260px;overflow:hidden;padding:25px;border:1px solid #91b7d2;background:radial-gradient(circle at 62% 34%,#7fadd064,#183d69 60%,#0a2346);color:#e8f7ff}
.swordsman-page .s-system-shot:before{content:"";position:absolute;inset:13px;border:1px solid #a8d9f766;pointer-events:none}
.swordsman-page .s-system-shot:after{content:"";position:absolute;inset:0;background:linear-gradient(135deg,transparent 45%,#c8ecff16 45.2% 45.5%,transparent 45.7%),radial-gradient(#bdeaff2b 1px,transparent 1px);background-size:auto,19px 19px;opacity:.6;pointer-events:none}
.swordsman-page .s-system-shot b,.swordsman-page .s-system-shot small{position:relative;z-index:1}
.swordsman-page .s-system-shot b{font:500 27px/1.3 var(--serif)}
.swordsman-page .s-system-shot small{margin-top:8px;color:#b8d9eb;font:11px var(--sans);letter-spacing:.13em}
.swordsman-page .s-system-shot-mark{position:absolute;top:28%;left:50%;transform:translate(-50%,-50%);font:italic 98px Georgia,serif;color:#d3eeff1c}
.swordsman-page .s-system-shot--game{padding:0}
.swordsman-page .s-system-shot--game:before,.swordsman-page .s-system-shot--game:after{content:none}
.swordsman-page .s-system-shot--game img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.swordsman-page .s-battle-summary{padding:6px 0}
.swordsman-page .s-battle-summary p{margin:0 0 16px;color:#284764;font:15px/1.9 var(--sans)}
.swordsman-page .s-battle-summary p:first-child{color:#17365a;font:20px/1.65 var(--serif)}
.swordsman-page .s-battle-note{padding:16px 20px;border-left:3px solid #73b7dd;background:#e7f2f9;color:#315775;font:13px/1.8 var(--sans)}
.swordsman-page .s-battle-note strong{color:#165183}
.swordsman-page .s-battle-subhead{margin:34px 0 15px;color:#123a63;font:500 23px/1.4 var(--serif)}
.swordsman-page .s-battle-table-wrap{overflow-x:auto;border:1px solid #b4cbdd;background:#fff;box-shadow:0 8px 23px #1c527b0d}
.swordsman-page .s-battle-table{width:100%;border-collapse:collapse;color:#2b4965;font:14px/1.75 var(--sans)}
.swordsman-page .s-battle-table th,.swordsman-page .s-battle-table td{padding:13px 18px;text-align:center;vertical-align:top;border-bottom:1px solid #d5e3ed}
.swordsman-page .s-battle-table tr:last-child td{border-bottom:0}
.swordsman-page .s-battle-table thead th{background:#173d68;color:#eff9ff;font-size:12px;letter-spacing:.08em}
.swordsman-page .s-battle-table tbody tr:nth-child(even){background:#f1f7fb}
.swordsman-page .s-battle-table tbody th{width:126px;color:#164772;white-space:nowrap}
.swordsman-page .s-battle-table td:first-child{font-weight:650;color:#164772;white-space:nowrap}
.swordsman-page .s-battle-table em{color:#a45f43;font-style:normal;font-weight:600}
.swordsman-page .s-attribute-table th:first-child,.swordsman-page .s-attribute-table td:first-child{width:150px}
.swordsman-page .s-battle-foot{margin:15px 0 0;color:#55728b;font:12px/1.75 var(--sans)}
.swordsman-page .s-affinity-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:0 0 28px}
.swordsman-page .s-affinity-grid div{padding:16px 18px;background:#e7f2fa;border:1px solid #c1d9e8}
.swordsman-page .s-affinity-grid b{display:block;color:#164974;font:600 15px var(--sans)}
.swordsman-page .s-affinity-grid span{display:block;margin-top:6px;color:#55758d;font:12px var(--sans)}
@media(max-width:900px){.swordsman-page .s-battle-overview{grid-template-columns:1fr 1fr}.swordsman-page .s-battle-panel-head{display:block}.swordsman-page .s-battle-panel-head p{margin-top:13px}}
@media(max-width:760px){.swordsman-page .s-battle-tabs{display:flex;overflow-x:auto;scrollbar-width:thin}.swordsman-page .s-battle-tab{flex:0 0 145px;min-height:58px}.swordsman-page .s-battle-overview{grid-template-columns:1fr}.swordsman-page .s-system-shot{min-height:0;max-width:520px;width:100%}.swordsman-page .s-battle-panel{padding:22px 18px 30px}.swordsman-page .s-battle-table{min-width:520px;font-size:13px}.swordsman-page .s-affinity-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:760px){.swordsman-page .s-command-table{min-width:0;table-layout:fixed}.swordsman-page .s-command-table th:first-child,.swordsman-page .s-command-table td:first-child{width:76px;white-space:nowrap}.swordsman-page .s-command-table th,.swordsman-page .s-command-table td{padding:11px 8px}}
@media(max-width:760px){.swordsman-page .s-attribute-table{min-width:0;table-layout:fixed}.swordsman-page .s-attribute-table th:first-child,.swordsman-page .s-attribute-table td:first-child{width:80px}.swordsman-page .s-attribute-table th,.swordsman-page .s-attribute-table td{padding:11px 8px}}
@media(max-width:420px){.swordsman-page .s-affinity-grid{grid-template-columns:1fr 1fr}.swordsman-page .s-affinity-grid div{padding:12px}.swordsman-page .s-battle-panel-head h3{font-size:29px}}
@media(prefers-reduced-motion:reduce){.swordsman-page .s-battle-tab{transition:none}}
