#hashaDomestic[hidden] { display:none; }
#hashaDomestic .hd-poach-result { color:#ffe4a0; font-weight:800; }
#hashaDomestic .hd-orders:has(#hashaCommandOverlay:not([hidden]) .hg-poach-grid) { grid-column:1 / -1; }
#hashaDomestic .hg-poach-grid {
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:8px;
}
#hashaDomestic .hg-poach-grid > button {
  min-width:0;
  min-height:42px;
  padding:6px 9px;
  text-align:left;
  white-space:nowrap;
  background:linear-gradient(#faf4db,#e4d4a4);
  color:#17372a;
}
#hashaDomestic .hg-poach-grid strong,
#hashaDomestic .hg-poach-grid button > span { display:inline; }
#hashaDomestic .hg-poach-grid button > span { margin-left:10px;font-size:15px; }
#hashaDomestic .hg-poach-loyalty-short { display:none; }
#hashaDomestic .hg-poach-governor {
  margin-inline-start:6px;
  padding:1px 4px;
  border-radius:3px;
  background:#6c471b;
  color:#fff4d3;
  font-size:13px;
  white-space:nowrap;
}
@media(max-width:900px) {
  #hashaDomestic .hg-poach-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
}
@media(max-width:600px) {
  #hashaDomestic .hg-poach-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  #hashaDomestic .hg-poach-grid > button { white-space:normal;overflow-wrap:anywhere;padding:6px;line-height:1.35; }
  #hashaDomestic .hg-poach-grid button > span { margin-left:4px; }
  #hashaDomestic .hg-poach-loyalty-full { display:none; }
  #hashaDomestic .hg-poach-loyalty-short { display:inline;white-space:nowrap; }
}
@media(orientation:landscape) and (max-height:600px) and (pointer:coarse) {
  #hashaDomestic .hg-poach-grid > button { white-space:normal;overflow-wrap:anywhere;padding:6px;line-height:1.35; }
  #hashaDomestic .hg-poach-grid button > span { margin-left:4px; }
  #hashaDomestic .hg-poach-loyalty-full { display:none; }
  #hashaDomestic .hg-poach-loyalty-short { display:inline;white-space:nowrap; }
}
#hashaDomestic { --hd-gold:#c7ad72;--hd-rule:#826f4d;--hd-ivory:#e9e2ca;display:block;padding:0;position:fixed;inset:0;z-index:22000;overflow:auto;background:radial-gradient(ellipse at top,#104735,#03271f 75%);color:#f2ead5;font:18px/1.6 "Yu Mincho","Hiragino Mincho ProN",serif; }
#hashaDomestic * { box-sizing:border-box; }
body.hasha-domestic-open { overflow:hidden; }
body.hasha-domestic-open > .modal-overlay:not(#hashaDomestic, #ruleOverlay.governance-rules-open) { display:none !important; }
#hashaDomestic .hd-shell { width:min(1180px,100%);margin:auto;padding:16px; }
#hashaDomestic .hd-header { display:flex;flex-direction:row;align-items:center;justify-content:space-between;gap:16px;margin-bottom:18px;border-bottom:1px solid var(--hd-gold);padding-bottom:15px; }
#hashaDomestic h1 { font-size:clamp(23px,3vw,34px);margin:0;line-height:1.5; }
#hashaDomestic .hd-header h1 { display:flex;align-items:center;gap:clamp(12px,2vw,24px);min-width:0;white-space:nowrap; }
#hashaDomestic .hd-date { flex:none;border:2px solid #c7ad72;background:#164b39;color:#e9e2ca;padding:0.08em 0.42em;box-shadow:inset 0 0 0 2px #ffffff08;font-variant-numeric:tabular-nums; }
#hashaDomestic .hd-turn { white-space:nowrap; }
html:lang(ja) #hashaDomestic :is(.hd-turn-city,.hd-city-name,.hd-territory-name) {
 font-family:"Yu Gothic","Hiragino Kaku Gothic ProN","Meiryo",sans-serif;
 font-weight:700;
}
@media(max-width:600px) {
 #hashaDomestic .hd-header h1 { width:100%;font-size:clamp(18px,5vw,30px);gap:clamp(10px,3vw,16px); }
 #hashaDomestic .hd-date { padding:0.06em 0.32em; }
 html:lang(en) #hashaDomestic .hd-header h1 { font-size:clamp(13px,3.7vw,22px); }
}
#hashaDomestic h2 { font-size:28px;letter-spacing:.08em;margin:0 0 16px;border-bottom:1px solid var(--hd-rule);padding-bottom:10px; }
#hashaDomestic h3 { font-size:25px;margin:0 0 8px; }
#hashaDomestic p { margin:8px 0; }
#hashaDomestic button { font:inherit;cursor:pointer;min-height:48px;border:1px solid var(--hd-gold);border-radius:7px;padding:8px 16px;background:#163f30;color:var(--hd-ivory); }
#hashaDomestic button:focus-visible { outline:3px solid #fff4a8;outline-offset:4px; }
#hashaDomestic button:hover { filter:brightness(1.18); }
#hashaDomestic .hd-layout { display:grid;grid-template-columns:minmax(0,1.9fr) minmax(270px,1fr);gap:18px; }
#hashaDomestic .hd-panel { border:2px solid var(--hd-gold);border-radius:8px;padding:19px 21px;background:#062d24d9;box-shadow:inset 0 0 0 1px #7d6947; }
#hashaDomestic .hd-overview-body { display:grid;grid-template-columns:minmax(230px,0.8fr) minmax(0,1.2fr);gap:34px;align-items:center; }
#hashaDomestic .hd-territory-heading { display:flex;align-items:center;justify-content:center;gap:32px;border-bottom:1px solid var(--hd-rule);margin-bottom:7px;padding-bottom:10px; }
#hashaDomestic .hd-territory-heading:has(.hd-strategist:not([hidden])) { gap:clamp(6px,1vw,14px);white-space:nowrap; }
#hashaDomestic .hd-strategist { margin:0;font-weight:bold;font-size:clamp(15px,1.6vw,22px); }
#hashaDomestic .hd-strategist[hidden] { display:none; }
#hashaDomestic .hd-territory-heading:has(.hd-strategist:not([hidden])) h2,
#hashaDomestic .hd-territory-heading:has(.hd-strategist:not([hidden])) .hd-governor { font-size:clamp(19px,2vw,28px); }
#hashaDomestic .hd-territory-heading h2 { font-size:32px;letter-spacing:0;border:0;margin:0;padding:0; }
#hashaDomestic .hd-governor { font-size:32px;font-weight:bold;margin:0; }
#hashaDomestic dl { margin:0; }
#hashaDomestic dl { max-width:230px;margin:auto; }
#hashaDomestic dl div { display:flex;justify-content:space-between;gap:12px;border-bottom:1px solid #71856785;padding:4px 0;font-size:26px; }
#hashaDomestic dd { margin:0;color:#fff2ce;font-weight:bold;font-variant-numeric:tabular-nums; }
#hashaDomestic dt { white-space:nowrap; }
#hashaDomestic dd { min-width:8ch;white-space:nowrap;text-align:right; }
#hashaDomestic .hd-map { position:relative;width:100%;max-width:350px;height:330px;justify-self:center; }
#hashaDomestic .hd-map .hd-map-art { position:absolute;left:0;top:34px;width:100%;height:calc(100% - 34px);fill:none;pointer-events:none; }
#hashaDomestic .hd-map-roads { stroke:#a9b6a18c;stroke-width:1.6;stroke-dasharray:5 5; }
#hashaDomestic .hd-map-terrain { stroke:#a9b6a136;stroke-width:1.5; }
#hashaDomestic .hd-map-river { stroke:#88aeb74d; }
#hashaDomestic .hd-map-legend { position:absolute;top:0;left:0;width:100%;display:flex;justify-content:center;flex-wrap:wrap;gap:2px 10px;font-size:20px;line-height:1.4; }
#hashaDomestic .hd-map-legend span { white-space:nowrap; }
#hashaDomestic .hd-map-legend span::before { content:'';display:inline-block;width:9px;height:9px;margin-right:4px;background:var(--faction-color); }
#hashaDomestic [data-legend-faction=cao] { --faction-color:#ee6c70; }
#hashaDomestic [data-legend-faction=liu] { --faction-color:#69acff; }
#hashaDomestic [data-legend-faction=sun] { --faction-color:#f2d552; }
#hashaDomestic .hd-city-name { display:block;font-size:29px;line-height:1.3; }
#hashaDomestic .hd-city-faction { display:block;font-size:17px;line-height:1.4;font-weight:normal;white-space:nowrap; }
#hashaDomestic .hd-map .hd-city-castle { display:block;position:absolute;top:-15px;left:calc(50% - 18px);width:36px;height:29px;margin:0;background:#092b22;fill:#c7d0bf;pointer-events:none; }
#hashaDomestic .hd-map button[aria-current=step]::after { content:'手番';position:absolute;top:-24px;left:0;font-size:16px;color:var(--hd-gold); }
#hashaDomestic .hd-map button { position:absolute;width:34%;min-width:90px;padding:22px 6px 9px;background:#092b22;font-size:29px;font-weight:bold;border:4px solid;box-shadow:inset 0 0 0 1px #ffffff18; }
#hashaDomestic [data-territory=xuchang] { top:80px;left:33%; }
#hashaDomestic [data-territory=xinye] { bottom:20px;left:0; }
#hashaDomestic [data-territory=wu] { bottom:20px;right:0; }
#hashaDomestic .hd-map button[data-faction=cao] { border-color:#ee6c70; }
#hashaDomestic .hd-map button[data-faction=liu] { border-color:#69acff; }
#hashaDomestic .hd-map button[data-faction=sun] { border-color:#f2d552; }
#hashaDomestic .hd-map button[aria-pressed=true] { outline:2px solid #e8d7a9;outline-offset:3px;background:#1c493a;box-shadow:0 0 0 5px #dbc98a24,inset 0 0 12px #dbc98a12; }
#hashaDomestic .hd-map button[aria-pressed=true]::before { content:'⚑ 選択';position:absolute;left:0;top:-39px;padding:1px 5px;background:#092b22;color:#e8d39a;font-size:16px;line-height:1.5;white-space:nowrap; }
#hashaDomestic .hd-orders > button { display:block;width:100%;margin-top:13px;min-height:74px;font-size:30px;font-weight:bold;letter-spacing:.35em;background:linear-gradient(#f0ead5,#dcd0aa);color:#123e2d;border:2px solid #ac935f;box-shadow:inset 0 0 0 1px #fff8e3,0 3px 0 #597c69; }
#hashaDomestic .hd-orders > button[data-command] { font-family:"Yu Gothic","Hiragino Kaku Gothic ProN","Meiryo",sans-serif;font-weight:700;text-align:center; }
#hashaDomestic .hd-orders h2 { color:#e8d39a;font-family:"Yu Gothic",sans-serif;font-size:21px;letter-spacing:0;font-weight:800;margin-bottom:13px; }
#hashaDomestic .hd-report { margin-top:14px;min-height:0;background:#092f27; }
#hashaDomestic .hd-report.hg-poach-report { height:auto;min-height:0;max-height:none;overflow:visible;padding:18px 22px; }
#hashaDomestic .hd-report p { margin:0;white-space:pre-line;font-size:20px;line-height:1.85;color:#f1ead9; }
#hashaDomestic footer { margin-top:14px;text-align:right; }
@media(max-width:850px) {
 #hashaDomestic .hd-layout { grid-template-columns:1fr; }
 #hashaDomestic .hd-orders > button { min-height:64px;margin-top:10px;font-size:29px; }
}
@media(min-width:851px) and (max-width:1050px) {
 #hashaDomestic .hd-overview-body { grid-template-columns:1fr; }
 #hashaDomestic .hd-map { max-width:320px;height:330px; }
}
@media(max-width:520px) {
 #hashaDomestic .hd-shell { padding:12px; }
 #hashaDomestic .hd-header { flex-wrap:wrap;gap:8px; }
 #hashaDomestic .hd-header button { margin-left:auto; }
 #hashaDomestic .hd-panel { padding:15px; }
 #hashaDomestic .hd-layout { gap:12px; }
 #hashaDomestic .hd-overview-body { grid-template-columns:1fr;gap:14px; }
 #hashaDomestic .hd-map { height:330px; }
 #hashaDomestic h2 { font-size:25px; }
 #hashaDomestic .hd-orders { padding:11px 12px 12px; }
 #hashaDomestic .hd-orders h2 { margin-bottom:7px;padding-bottom:8px;font-size:clamp(14px,4.1vw,16px);line-height:1.3;white-space:nowrap; }
 #hashaDomestic .hd-orders > button { min-height:48px;margin-top:7px;padding-block:4px;font-size:23px;line-height:1.25; }
 #hashaDomestic .hd-report { margin-top:10px; }
 #hashaDomestic footer button { width:100%; }
 /* Keep the compact mobile typography scoped to phones; desktop remains unchanged. */
 #hashaDomestic .hd-territory-heading { gap:20px; }
 #hashaDomestic .hd-territory-heading h2,
 #hashaDomestic .hd-governor { font-size:28px; }
 #hashaDomestic dl div { gap:8px;font-size:25px; }
 #hashaDomestic dd { min-width:0;font-size:23px; }
 #hashaDomestic .hd-orders > button { white-space:normal; }
 #hashaDomestic .hd-report { height:auto;min-height:0;max-height:none;overflow:visible;padding:15px; }
 #hashaDomestic .hd-report p { font-size:22px;line-height:1.65;overflow-wrap:anywhere; }
}
.hg-transfer-quantity{display:grid;grid-template-columns:3em minmax(0,1fr) 48px;align-items:center;gap:10px;margin:8px 0}.hg-transfer-quantity>label{margin:0}.hg-transfer-quantity>input{width:100%;min-width:0;box-sizing:border-box;text-align:right;font-size:22px;appearance:textfield}.hg-transfer-quantity>input::-webkit-inner-spin-button{appearance:none}.hg-transfer-spin{display:flex;flex-direction:column;gap:3px}#hashaDomestic .hg-transfer-spin button{width:48px;min-height:34px;margin:0;padding:2px;border:2px solid #d6bb72;border-radius:3px;background:linear-gradient(#277bb5,#06436b);color:#fff;font-size:18px;font-weight:bold;line-height:1.3}#hashaDomestic .hg-transfer-spin button:disabled{opacity:.4;cursor:default}

#hashaDomestic .hd-orders { position:relative; }
#hashaDomestic .hd-result-image { display:none; }
#hashaDomestic.hd-result-picture .hd-orders:has(.hd-result-image[src*="income-"]) { min-height:200px; }
#hashaDomestic .hd-result-image[src*="explore-"] { object-fit:contain;background:#efe1c5; }
#hashaDomestic.hd-result-picture .hd-orders { overflow:hidden; }
#hashaDomestic.hd-result-picture .hd-result-image { display:block;position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center;z-index:5; }
@media (max-width:850px) {
 #hashaDomestic.hd-result-picture .hd-orders { min-height:180px; }
}
#hashaDomestic.hd-viewing-other .hd-orders > h2,
#hashaDomestic.hd-viewing-other .hd-orders > button[data-command],
#hashaDomestic.hd-viewing-other .hd-mobile-prompt { visibility:hidden;pointer-events:none; }
#hashaDomestic .hd-selection-guide { position:absolute;inset:12px;margin:0;display:flex;align-items:center;justify-content:center;white-space:pre-line;text-align:left;color:#d8c58e;font-size:16px;line-height:1.65; }
#hashaDomestic .hd-selection-guide[hidden] { display:none; }
#hashaDomestic.hd-cpu-turn .hd-selection-guide { flex-direction:column;gap:12px;text-align:center;font-family:"Yu Mincho","Hiragino Mincho ProN",serif;font-size:clamp(15px,2vw,19px); }
#hashaDomestic.hd-cpu-turn .hd-selection-guide strong { font-size:clamp(20px,2.4vw,27px);color:#e8d39a; }
@media(max-width:600px) { #hashaDomestic .hd-selection-guide { font-size:14px;inset:4px;line-height:1.5; } }
/* Capital proposals share the report window on every screen size. */
#hashaDomestic .hd-capital-actions { display:flex; flex-wrap:nowrap; gap:12px; margin-top:16px; }
#hashaDomestic .hd-capital-actions > button { flex:0 1 170px;min-width:0;min-height:54px;padding:10px 12px;font-family:"Yu Gothic","Hiragino Kaku Gothic ProN","Meiryo",sans-serif;font-size:18px;font-weight:600;line-height:1.3;white-space:nowrap; }
#hashaDomestic .hd-capital-actions > button:last-child { background:linear-gradient(#f0ead5,#dcd0aa);color:#123e2d; }
html[lang="en"] #hashaDomestic .hd-capital-actions > button { font-size:13px; }
@media (max-width:480px) {
 #hashaDomestic .hd-capital-actions { gap:8px; }
 #hashaDomestic .hd-capital-actions > button { flex:1 1 0;padding-inline:6px;font-size:clamp(12px,3.8vw,16px); }
 html[lang="en"] #hashaDomestic .hd-capital-actions > button { font-size:clamp(10px,3.1vw,13px); }
}
#hashaDomestic .hd-cpu-thinking-image {
 display:block;width:auto;height:45%;max-width:100%;min-height:0;object-fit:contain;
 border-radius:4px;opacity:.92;
}
@media(max-width:850px), (orientation:landscape) and (max-height:600px) and (pointer:coarse) {
 #hashaDomestic .hd-cpu-thinking-image { display:none; }
}
