#hashaPreparation[hidden]{display:none!important}body.hasha-preparing{overflow:hidden}#hashaPreparation{position:fixed;inset:0;z-index:25000;overflow:auto;color:#20372a;background:repeating-linear-gradient(90deg,#ffffff03 0 2px,transparent 2px 6px),radial-gradient(ellipse at top,#176044,#032d22);padding:20px;font-family:"Yu Mincho","Hiragino Mincho ProN",serif;font-size:18px}#hashaPreparation *{box-sizing:border-box}.hp-shell{max-width:1250px;margin:auto;border:2px solid #c5a44f;border-radius:12px;padding:18px;box-shadow:0 8px 40px #0008}.hp-shell h1{color:#fff4cd;text-align:center;background:linear-gradient(#563a1d,#2c1c0b);margin:0;padding:12px 18px;font-size:32px;letter-spacing:.12em;white-space:nowrap}.hp-shell header,.hp-shell aside section,.hp-roster{background:linear-gradient(100deg,#fff9df,#eee2b3);border:2px solid #bda467;border-radius:7px;overflow:hidden}.hp-shell .hp-header{padding:16px;display:grid;grid-template-columns:max-content minmax(0,1fr);align-items:center;gap:12px 28px}.hp-context{min-width:0}.hp-shell .hp-context p{display:flex;flex-wrap:wrap;align-items:center;gap:6px 20px;margin:0}.hp-shell .hp-context .hp-origin{font-size:24px;font-weight:bold}.hp-shell .hp-context .hp-opponent{margin-top:10px;font-size:18px}.hp-header-stats{grid-column:1/-1;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px 24px;margin:0}.hp-header-stats>div{min-width:0}.hp-header-stats dd{margin:2px 0 0}.hp-stats{display:flex;flex-wrap:wrap;gap:8px 24px;margin:10px 0;font-size:18px;text-align:left}.hp-stats>div{flex:1 1 130px}.hp-stats dt{font-weight:normal;font-size:16px}.hp-stats dd{margin:3px 0;font-weight:bold;font-size:23px;font-variant-numeric:tabular-nums}.hp-layout{display:grid;grid-template-columns:minmax(0,1.8fr) minmax(300px,1fr);gap:18px;margin-top:18px}.hp-shell h2{background:linear-gradient(#593b1c,#30200e);color:#fff2c9;margin:0;padding:10px;text-align:center;font-size:22px;border-bottom:2px solid #c5a44f}.hp-shell table{width:100%;border-collapse:collapse;font-size:19px}.hp-shell th,.hp-shell td{padding:10px 8px;border:1px solid #bdad7b;text-align:center}.hp-shell thead{background:#e4d29c}.hp-shell tbody tr:nth-child(even){background:#fff8dc80}.hp-stepper{display:flex;align-items:center;justify-content:center;gap:8px;white-space:nowrap}.hp-stepper strong{min-width:76px;text-align:center;font-size:24px;font-variant-numeric:tabular-nums}.hp-shell button{min-height:44px;min-width:44px;background:linear-gradient(#277bb5,#06436b);color:#fff;border:2px solid #d6bb72;border-radius:7px;font:700 18px "Yu Gothic",sans-serif;cursor:pointer;padding:8px 14px;box-shadow:0 2px 3px #0004}.hp-shell button:hover:not(:disabled){filter:brightness(1.15)}.hp-shell button:focus-visible{outline:3px solid #f79c29;outline-offset:2px}.hp-shell button:disabled{opacity:.4;cursor:default}.hp-shell aside section{margin-bottom:16px;padding-bottom:16px}.hp-shell aside p,.hp-shell aside .hp-stats{margin:14px 16px;line-height:1.7}.hp-shell aside section>button{margin-left:16px}.hp-commander{background:#8d2421;color:#fff6cf;padding:3px;border-radius:3px}.hp-fort{display:flex;align-items:center;justify-content:space-between;padding:12px;gap:8px;border-bottom:1px solid #bda467}.hp-candidates{display:grid;gap:8px;margin:12px}.hp-validation{color:#fff3ca;min-height:30px;line-height:1.6}.hp-shell footer{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;border-top:1px solid #c5a44f;padding-top:18px}.hp-shell footer button{font-size:22px;padding:14px 8px}.hp-shell footer [data-action=next]{background:linear-gradient(#be3831,#740e16)}
@media(max-width:800px){#hashaPreparation{padding:8px;font-size:16px}.hp-shell{padding:10px}.hp-layout{grid-template-columns:1fr}.hp-shell .hp-header{padding:12px;gap:10px;grid-template-columns:1fr}.hp-shell h1{font-size:24px;padding:8px 12px}.hp-shell .hp-context .hp-origin{font-size:19px;gap:4px 12px}.hp-shell .hp-context .hp-opponent{font-size:16px;margin-top:4px;gap:4px 12px}.hp-header-stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 16px}.hp-header-stats dt{font-size:15px}.hp-header-stats dd{font-size:22px}.hp-shell th,.hp-shell td{padding:10px 3px;font-size:16px}.hp-stepper{gap:4px}.hp-stepper strong{font-size:21px;min-width:66px}.hp-stepper button{padding:6px;min-width:42px}.hp-shell footer{grid-template-columns:1fr 1fr;gap:10px}.hp-shell footer button{font-size:18px}.hp-shell aside{display:grid;gap:10px}.hp-shell aside section{margin:0}}@media(prefers-reduced-motion:reduce){#hashaPreparation *{scroll-behavior:auto}}
.hp-governor{display:inline-block;background:#79521a;color:#fff6cf;padding:3px;border-radius:3px}
.hp-shell .hp-role-slot,.hp-role-space{display:inline-flex;flex:0 0 36px;width:36px;height:36px;min-width:36px;min-height:36px;align-items:center;justify-content:center;margin-right:8px;padding:0;border-radius:3px;font-size:21px;box-shadow:none}.hp-shell .hp-role-slot{background:#f6edcf;color:#5c4825;border:1px solid #bda467}.hp-shell .hp-role-slot.is-commander{background:#8d2421;color:#fff6cf}.hp-shell .hp-role-slot.is-governor{background:#79521a;color:#fff6cf}.hp-role-dialog{max-width:420px;width:calc(100% - 32px);border:2px solid #bda467;border-radius:8px;background:#fff4d1;color:#20372a;padding:20px}.hp-role-dialog::backdrop{background:#0009}.hp-role-dialog p{line-height:1.7}.hp-role-dialog button{margin:8px 8px 0 0}
.hp-layout{grid-template-columns:1fr}.hp-roster table{display:block}.hp-roster thead{display:none}.hp-roster tbody{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.hp-roster tr{display:grid;grid-template-columns:minmax(120px,1fr) minmax(70px,.65fr) 145px;align-items:center;border-bottom:1px solid #bdad7b;min-height:76px}.hp-roster th,.hp-roster td{border:0;padding:8px}.hp-roster th{text-align:left}.hp-shell .hp-appoint{font-size:12px;min-width:0;min-height:30px;padding:3px}.hp-stepper{gap:4px}.hp-spin-buttons{display:flex;flex-direction:column}.hp-shell .hp-spin-buttons button{min-height:30px;min-width:44px;padding:2px 8px;font-size:15px;border-radius:3px}.hp-layout aside{display:grid;grid-template-columns:1fr 1fr;gap:16px}.hp-header{position:sticky;top:0;z-index:2}.hp-header-stats dd{white-space:nowrap}.hp-header-stats{gap:8px}
@media(max-width:800px){.hp-roster tbody{grid-template-columns:1fr}.hp-roster tr{grid-template-columns:minmax(100px,1fr) minmax(60px,.6fr) 125px}.hp-layout aside{grid-template-columns:1fr}.hp-header-stats dd{font-size:18px}.hp-shell .hp-header{gap:4px;padding:8px}.hp-shell .hp-context .hp-origin{font-size:16px}.hp-shell .hp-header h1{font-size:20px;padding:4px}}


.hp-shell .hp-header{grid-template-columns:260px minmax(0,1fr);gap:8px 20px;padding:12px}.hp-shell .hp-header h1{grid-row:1/3;align-self:stretch;display:flex;align-items:center;justify-content:center;font-size:29px}.hp-context{display:flex;align-items:center;flex-wrap:wrap;gap:8px 24px}.hp-shell .hp-context .hp-opponent{margin:0}.hp-header .hp-header-stats{grid-column:2;display:flex;gap:12px 28px;margin:0}.hp-header-stats>div{display:flex;align-items:baseline;gap:12px;flex:0 1 auto}.hp-header-stats dt{white-space:nowrap}.hp-header-stats dd{font-size:23px}.hp-roster th{display:flex;align-items:center}.hp-roster tr{align-items:stretch}.hp-roster th,.hp-roster td{border-right:1px solid #bdad7b;display:flex;align-items:center;justify-content:center}.hp-roster th{justify-content:flex-start}.hp-roster thead{display:block}.hp-roster thead tr{min-height:44px;background:#e4d29c}.hp-roster thead th{justify-content:center}.hp-roster tbody tr{border-top:1px solid #bdad7b;border-bottom:0}.hp-roster tbody tr:nth-child(odd){border-right:2px solid #bda467}
@media(max-width:800px){.hp-shell .hp-header{grid-template-columns:1fr;padding:8px;gap:6px}.hp-shell .hp-header h1{grid-row:auto;font-size:20px;padding:4px}.hp-header .hp-header-stats{grid-column:1;gap:4px 14px}.hp-header-stats>div{gap:6px}.hp-header-stats dd{font-size:18px}.hp-context{gap:4px 12px}.hp-roster tbody tr:nth-child(odd){border-right:0}.hp-shell .hp-role-slot,.hp-role-space{flex-basis:30px;width:30px;min-width:30px;margin-right:5px}.hp-roster th{font-size:16px}}
.hp-roster thead{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}@media(max-width:800px){.hp-roster thead{grid-template-columns:1fr}.hp-roster thead tr:nth-child(2){display:none}}
.hp-shell .hp-fort-max{min-width:64px;padding:6px 10px;font-size:16px}.hp-fort>span:first-child{min-width:44px}.hp-fort>span:last-child{min-width:54px;text-align:right}

.hp-shell .hp-role-slot.is-commander:disabled{opacity:1;filter:none;color:#fff6cf;background:#8d2421;border-color:#d6bb72}
.hp-validation:empty{display:none}
#hashaPreparation .hp-rice-required.is-short{color:#b51d1d}
.hp-defense-options{grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:start}.hp-defense-guide{color:#fff3ca;line-height:1.7;margin:14px 4px}.hp-shell .hp-fort-max{min-width:142px;font-size:15px;white-space:nowrap}
@media(max-width:800px){.hp-defense-options{grid-template-columns:1fr}.hp-defense-guide{margin:0 4px 12px}.hp-fort{flex-wrap:wrap}}
.hp-roster tbody th{font-size:23px}.hp-roster tbody td:nth-child(2){font-size:22px}
.hp-roster{max-height: min(52dvh,480px);overflow-y:auto;scrollbar-gutter:auto}
.hp-roster thead{display:none}
.hp-roles-dialog label{display:block;margin:12px 0;font-weight:700}.hp-roles-dialog select{display:block;width:100%;min-height:48px;margin-top:4px;padding:8px;font:700 19px "Yu Gothic",sans-serif;color:#193c2c;background:#fff8df;border:2px solid #bda467;border-radius:5px}.hp-roles-dialog button{min-height:48px;padding:8px 12px;color:#fff;background:#075084;border:2px solid #bda467;border-radius:6px;font-weight:700}.hp-roles-dialog{max-height:90dvh;overflow:auto}.hp-roles-dialog [role=alert]{color:#a01f18}.hp-shell .hp-roles-open{font-size:15px;min-height:40px;padding:5px 9px}
.hp-officer-choices{display:none}
.hp-roles-dialog[open]{position:fixed;inset:0;margin:auto;box-sizing:border-box}
.hp-rice-alert{box-sizing:border-box;width:min(460px,calc(100vw - 32px));margin:auto;padding:24px;color:#f8f1df;background:#202020;border:0;border-radius:14px;box-shadow:0 10px 36px #0009;font:18px/1.6 "Yu Gothic",sans-serif}.hp-rice-alert::backdrop{background:#0007}.hp-rice-alert h2{margin:0 0 14px;font-size:20px}.hp-rice-alert p{margin:0 0 22px;white-space:pre-line}.hp-rice-alert button{display:block;min-width:64px;min-height:44px;margin-left:auto;padding:8px 16px;border:0;border-radius:9px;background:#fff;color:#18231d;font:700 17px "Yu Gothic",sans-serif}
@media(max-width:600px){.hp-roles-dialog{width:calc(100% - 24px);max-height:88dvh;padding:14px}.hp-roles-dialog>p{margin:4px 0 8px;line-height:1.45}.hp-roles-dialog .hp-role-group{margin:0 0 8px}.hp-roles-dialog label{margin:6px 0;font-size:17px}.hp-roles-dialog select{display:none}.hp-roles-dialog .hp-officer-choices{position:relative;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;max-height:18dvh;overflow-y:auto;padding:4px 14px 4px 4px;margin:4px 0 8px;border:1px solid #bda467;border-radius:6px;background:#f4e8bd;scrollbar-gutter:stable;scrollbar-width:thin;scrollbar-color:#79521a #dfd0a4}.hp-roles-dialog .hp-officer-choices::-webkit-scrollbar{width:8px}.hp-roles-dialog .hp-officer-choices::-webkit-scrollbar-track{background:#dfd0a4;border-radius:4px}.hp-roles-dialog .hp-officer-choices::-webkit-scrollbar-thumb{background:#79521a;border:1px solid #f4e8bd;border-radius:4px}.hp-roles-dialog .hp-scroll-indicator{position:absolute;top:4px;right:3px;bottom:4px;width:6px;border-radius:4px;background:#dfd0a4;pointer-events:none}.hp-roles-dialog .hp-scroll-indicator[hidden]{display:none}.hp-roles-dialog .hp-scroll-indicator>span{display:block;width:100%;border-radius:4px;background:#79521a}.hp-roles-dialog .hp-officer-choice{min-width:0;min-height:48px;overflow-wrap:anywhere;color:#20372a;background:linear-gradient(#fff9df,#eee2b3);border:2px solid #bda467;font-size:18px;padding:6px 8px}.hp-roles-dialog .hp-officer-choice[aria-pressed=true]{color:#fff6cf;background:linear-gradient(#176044,#06402f);border-color:#c5a44f;box-shadow:inset 0 0 0 2px #fff3c4}.hp-roles-dialog .hp-officer-choice[aria-pressed=true]::after{content:' ✓';font-size:.85em}.hp-roles-dialog .hp-officer-choice:disabled{display:none}.hp-roles-dialog>[role=alert]{margin:4px 0;min-height:0}.hp-roles-dialog>button{min-height:46px;margin:6px 5px 0 0;padding:7px 9px;font-size:16px}}
.hp-roster tbody{grid-template-columns:repeat(4,minmax(0,1fr))}
.hp-roster tbody tr{grid-template-columns:minmax(0,1fr) 160px;grid-template-rows:auto auto;min-height:82px;border:1px solid #bdad7b}
.hp-roster tbody th{grid-column:1;grid-row:1;padding:5px 6px 0;white-space:normal;overflow-wrap:anywhere}
.hp-roster tbody td:nth-child(2){grid-column:1;grid-row:2;justify-content:flex-start;padding:0 6px 4px 50px;border:0}
.hp-roster tbody td:last-child{grid-column:2;grid-row:1/3;padding:4px;border:0}
.hp-roster .hp-stepper strong{min-width:72px;text-align:right}
.hp-roster .hp-stepper{justify-content:flex-end}
.hp-shell .hp-troop-max{align-self:stretch;display:flex;flex-direction:column;justify-content:center;align-items:center;min-width:26px;padding:0 3px;font-size:13px;line-height:1.15;border-radius:3px}
.hp-roster tbody th{border-right:0;min-width:0}
@media(max-width:1240px){.hp-roster tbody{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:1100px){.hp-roster tbody{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:650px){.hp-roster tbody{grid-template-columns:1fr}.hp-roster{max-height:55dvh}.hp-roster tbody td:nth-child(2){padding-left:41px}}
@media(max-width:800px){.hp-roster tbody th{font-size:20px}.hp-roster tbody td:nth-child(2){font-size:19px}}
html:lang(en) #hashaPreparation .hp-context,
html:lang(en) #hashaPreparation footer,
html:lang(en) #hashaPreparation .hp-header-stats { flex-wrap:wrap; }
html:lang(en) #hashaPreparation h1 { white-space:normal; }
html:lang(en) #hashaPreparation .hp-roster th,
html:lang(en) #hashaPreparation .hp-roster td,
html:lang(en) #hashaPreparation button,
html:lang(en) .hp-role-dialog button { white-space:normal;overflow-wrap:anywhere; }
html:lang(en) .hp-role-dialog select { max-width:100%; }
html:lang(en) #hashaPreparation .hp-roster tbody tr { grid-template-columns:minmax(0,1fr) 128px; }
html:lang(en) #hashaPreparation .hp-unit-name {
  min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
  font-size:clamp(13px,1.45vw,19px);
}
html:lang(en) #hashaPreparation .hp-roster th[data-full-name] { position:relative; }
html:lang(en) #hashaPreparation .hp-roster th:has(.hp-unit-name:focus)::after {
  content:attr(data-full-name);position:absolute;top:100%;left:4px;right:4px;z-index:2;
  padding:3px 5px;background:#fff9df;border:1px solid #bda467;border-radius:4px;
  white-space:normal;overflow-wrap:anywhere;pointer-events:none;font-size:13px;
}
html:lang(en) #hashaPreparation .hp-roster .hp-stepper strong { min-width:0;font-size:clamp(14px,1.6vw,21px); }
html:lang(en) #hashaPreparation .hp-roster .hp-troop-max { white-space:nowrap;overflow-wrap:normal; }
@media(min-width:1241px) {
  html:lang(en) #hashaPreparation .hp-roster tbody { grid-template-columns:repeat(3,minmax(0,1fr)); }
}
@media(max-width:600px) {
  html:lang(en) #hashaPreparation .hp-roster th,
  html:lang(en) #hashaPreparation .hp-roster td { font-size:12px; }
  html:lang(en) #hashaPreparation .hp-header-stats { font-size:12px; }
}

.hp-defense-guide{text-align:left;min-width:0;overflow-wrap:break-word}
.hp-defense-guide p{margin:0 0 .65em;line-height:1.7}
.hp-defense-guide p:last-child{margin-bottom:0}
