.full-edition #p-battle { --w: var(--page); }

.battle-page {
  --battle-rule: 1px solid rgba(130, 99, 64, .32);
  --battle-heading: "Kai", serif;
  position: absolute;
  inset: 4% 4.5% 4% 14%;
  display: flex;
  flex-direction: column;
  color: var(--ink);
  font: 15px/1.5 "SerifSC", serif;
}
@media (min-width: 1024px) {
  .battle-page { inset: 16px 24px 16px 72px; }
}
:lang(en) .battle-page { --battle-heading: "SerifSC", serif; }
.battle-nav {
  border-bottom-color: #aa956f;
}
.battle-nav .yard-button { font-family: var(--battle-heading); }
.battle-folio {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: clamp(18px, 3vw, 46px);
  align-items: start;
}
.battle-folio .battle-folio-leaf, .battle-folio .battle-case-list { min-width: 0; }
.battle-folio-leaf .gate { position: static; display: grid; place-items: center; width: auto; height: auto; margin: 0 0 16px; }
.battle-folio-leaf .moon { width: clamp(125px, 14vw, 204px); aspect-ratio: 1; margin: 0; }
.battle-folio-leaf .battle-field { margin: 14px 0; }
.battle-case-sheet { padding: 4px 0 10px; }
.battle-case-sheet + .battle-case-sheet { padding-top: 12px; border-top: 1px solid rgba(130, 99, 64, .24); }
.battle-case-sheet > * + *, .battle-reward-slip > * + * { margin-top: 8px; }
.battle-case-sheet blockquote { margin: 8px 0; border-inline-start: 2.5px solid #9b3a29; padding-inline-start: 10px; color: #4f3a27; }
.battle-case-route { padding: 8px 0; border-top: 1px solid rgba(130, 99, 64, .2); }
.battle-case-route h5 { margin: 0; font: bold 1em var(--battle-heading); }
.battle-training { color: #842d22; }
.equipment-comparison, .battle-access, .recraft-work { min-width: 0; font-size: 14px; }
.equipment-comparison summary, .battle-access summary, .recraft-work summary {
  cursor: pointer; min-height: 44px; align-content: center; color: var(--verm-deep);
}
.equipment-comparison table, .eating-tiers { width: 100%; border-collapse: collapse; font-size: 13px; }
.equipment-comparison th, .equipment-comparison td, .eating-tiers th, .eating-tiers td {
  border-bottom: 1px dotted #aa956f; padding: 4px 3px; text-align: start; overflow-wrap: anywhere;
}
.equipment-comparison td, .eating-tiers td { font-variant-numeric: tabular-nums; }
.equipment-comparison table { table-layout: fixed; }
.equipment-comparison thead th:first-child { width: 35%; }
.battle-disciplines .battle-button:disabled { opacity: 1; color: #64523f; border-color: #b49c78; border-style: dashed; }
.equipment-comparison .changed, .eating-tiers tr[aria-current] { color: var(--verm-deep); font-weight: bold; }
.battle-armory > .battle-actions:has(details) { align-items: flex-start; }
.battle-armory > .battle-actions > div { min-width: 0; max-width: 100%; }
.battle-armory > .battle-actions > div:has(details[open]) { flex: 1 1 100%; }
.entry-paths { padding-inline-start: 1.15em; }
.entry-paths li { margin-block: 5px; }
.battle-access small, .battle-incoming small { display: block; font-size: 13px; color: var(--ink-soft); }
.battle-incoming { padding: 8px 0; border-block: var(--battle-rule); }
.battle-incoming p, .recraft-work p { margin: 4px 0; }
.battle-writ-status { color: var(--ink-soft); white-space: nowrap; }
.battle-reward-slip { margin: 12px 0; border-top: var(--battle-rule); padding-top: 8px; }
.battle-reward-slip summary { cursor: pointer; }
.battle-reward-slip ul { padding-inline-start: 18px; }
@media (max-width: 760px) {
  html:is([data-text-scale="1.25"], [data-text-scale="1.5"]) #p-battle {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    row-gap: 6px;
  }
  html:is([data-text-scale="1.25"], [data-text-scale="1.5"]) #p-battle .panel-head {
    position: static;
    margin: 12px 16px 0;
  }
  html:is([data-text-scale="1.25"], [data-text-scale="1.5"]) #p-battle .battle-page {
    position: static;
    min-height: 0;
    margin: 0 12px 8px;
  }
  html:is([data-text-scale="1.25"], [data-text-scale="1.5"]) #p-battle .battle-nav {
    display: flex; flex-wrap: wrap; justify-content: start; gap: 0 8px;
  }
  html:is([data-text-scale="1.25"], [data-text-scale="1.5"]) #p-battle .battle-nav button {
    flex: 0 1 auto; white-space: nowrap;
  }
  #p-battle .battle-nav {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    gap: 4px;
    padding-bottom: 2px;
  }
  #p-battle .battle-nav .yard-button {
    flex: 0 0 auto;
    white-space: nowrap;
    min-height: 44px;
    padding: 0 9px;
    font-size: 14px;
  }
  .battle-folio { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .battle-folio-leaf .moon { width: 108px; }
}
.battle-scroll {
  position: relative;
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  min-height: 0;
  padding: 10px 8px 20px 0;
  scrollbar-color: #a78b66 transparent;
}
.battle-content :where(h3, h4, p, ol, ul, dl, dt, dd) { margin: 0; }
.battle-content :where(h3, h4) {
  font-family: var(--battle-heading);
  font-weight: normal;
  line-height: 1.2;
}
.battle-content h3 { font-size: clamp(22px, 2.6vw, 31px); }
.battle-content h4 { font-size: clamp(18px, 1.9vw, 23px); }
.battle-content p { overflow-wrap: anywhere; }
.battle-button {
  min-height: 36px;
  padding: 5px 12px;
  border: 1px solid #8a6c48;
  border-radius: 3px;
  background: linear-gradient(180deg, #f6eedc 0%, #e7d7b8 100%);
  color: #241a13;
  font-family: var(--battle-heading);
  cursor: pointer;
  line-height: 1.25;
  box-shadow: inset 0 1px 0 rgba(255, 250, 236, .8);
  transition: border-color .14s ease, background .14s ease;
}
.battle-button[aria-pressed="true"] {
  background: rgba(179, 48, 28, .12);
  border-color: rgba(179, 48, 28, .48);
  color: var(--verm-deep);
  box-shadow: inset 0 -2px 0 var(--verm-deep);
  font-weight: 600;
}
.battle-button:hover:not(:disabled) { border-color: var(--verm-deep); background: #fff7e8; }
.battle-page :is(button, select, summary):focus-visible {
  outline: 2px solid #7f2c1e;
  outline-offset: 2px;
}
.full-edition.locked .battle-page { pointer-events: none; }
.battle-nav sup { margin-inline-start: 3px; color: inherit; }
.battle-nav sup.is-full { color: var(--verm-deep); font-weight: 700; }
.battle-nav .yard-button[aria-pressed="true"] sup.is-full { color: #ffe7a8; }
.battle-field { display: grid; align-items: center; gap: 6px; min-width: 0; grid-template-columns: auto minmax(0, 1fr); }
.battle-field select {
  appearance: none;
  -webkit-appearance: none;
  min-width: 0;
  min-height: 34px;
  padding: 3px 26px 3px 9px;
  border: 1px solid #8c6d47;
  border-radius: 3px;
  background-color: #f6eedc;
  background-image:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1.5 1.5L6 6.2L10.5 1.5' fill='none' stroke='%23593a24' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/></svg>"),
    linear-gradient(180deg, #faf3e4 0%, #eadbc0 100%);
  background-repeat: no-repeat, no-repeat;
  background-position: right 8px center, 0 0;
  background-size: 10px 7px, 100% 100%;
  box-shadow: inset 0 1px 0 rgba(255, 252, 240, .85), 0 1px 2px rgba(45, 30, 18, .12);
  color: #241a13;
  font: inherit;
  font-family: var(--battle-heading);
  text-overflow: ellipsis;
  cursor: pointer;
}
.battle-field option { background: var(--paper); }
.battle-field select:hover { border-color: var(--verm-deep); }
.battle-page [data-battle-seal] { width: clamp(104px, 12vw, 124px); min-height: 48px; height: 48px; margin: 3px 5px; }
.battle-page [data-battle-seal] .face { font: 19px/1.15 var(--battle-heading); padding: 0 6px; white-space: nowrap; }
:lang(en) .battle-page [data-battle-seal] .face { font-size: 14px; }
.battle-encounter, .battle-kit {
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(0, 1fr);
  align-items: start;
  gap: clamp(12px, 2.4vw, 32px);
}
.battle-tableau, .battle-kit-notes { display: grid; gap: 8px; min-width: 0; }
.battle-budget { min-width: 0; }
.battle-budget .battle-field { margin-block: 5px; }
.battle-budget-result { display: grid; gap: 5px; padding-top: 8px; border-top: var(--battle-rule); }
.battle-budget-result ul { padding-inline-start: 1.25em; }
.battle-matchup summary { cursor: pointer; }
.battle-matchup table { width: 100%; table-layout: fixed; border-collapse: collapse; font-size: .88em; }
.battle-matchup caption { padding: 4px 0; text-align: start; color: var(--ink-soft); }
.battle-matchup th, .battle-matchup td { border-bottom: var(--battle-rule); text-align: start; padding: 4px; overflow-wrap: anywhere; }
.battle-matchup td { font-variant-numeric: tabular-nums; }
.battle-matchup tr.current { background: #e5d3ae; }
.battle-stage-head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 6px; }
.battle-stage-head span { font-size: 13px; color: var(--ink-soft); }
.battle-stage {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-width: 0;
  padding: 10px 12px 12px;
  border: 3px double #b9995c;
  outline: 1px solid #4d3726;
  background: var(--night);
  color: #fff1d7;
}
.battle-stage-head { display: grid; gap: 4px; }
.battle-stage-head .bsh-top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.battle-stage-head .bsh-top h3 { margin: 0; }
.battle-place-lore {
  margin: 0;
  padding: 4px 9px;
  border-left: 2.5px solid var(--verm-deep);
  background: rgba(235, 220, 192, .52);
  border-radius: 2px;
  font-family: "Kai", "SerifSC", serif;
  font-size: 12.5px;
  line-height: 1.45;
  color: #4f3a27;
}
.battle-stage[data-wall="street"] { --battle-wall: url("../assets/walls/street.webp"); }
.battle-stage[data-wall="marsh"] { --battle-wall: url("../assets/walls/marsh.webp"); }
.battle-stage[data-wall="furnace"] { --battle-wall: url("../assets/walls/furnace.webp"); }
.battle-stage[data-wall="rail"] { --battle-wall: url("../assets/walls/rail.webp"); }
.battle-stage[data-wall="mirror"] { --battle-wall: url("../assets/walls/mirror.webp"); }
.battle-stage[data-wall="rift"] { --battle-wall: url("../assets/walls/rift.webp"); }
.battle-stage[data-wall="covenant"] { --battle-wall: url("../assets/walls/covenant.webp"); }
.battle-stage[data-wall="guixu"] { --battle-wall: url("../assets/walls/guixu.webp"); }
.battle-stage::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(180deg, #1d151448, #190e0e27 38%, #170f0ee6 75%, #130e0dec),
    var(--battle-wall, none) center center / cover no-repeat;
}
.battle-facing {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 2.4em minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
  place-items: center;
  height: clamp(120px, 19.5vh, 186px);
}
.battle-facing img { width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.battle-keeper { filter: drop-shadow(-4px 3px 0 #783322a8); }
.battle-foe { filter: drop-shadow(0 3px 11px #0c0606) drop-shadow(0 0 8px #dbaa574f); }
/* Regional visual variants for reused non-boss foes in regions 3–8 (strictly warm ink/cinnabar/brass/ash palette) */
.battle-foe[data-foe-variant="furnace"] {
  filter: sepia(.28) saturate(1.24) contrast(1.08) brightness(.94) drop-shadow(0 3px 11px #140704) drop-shadow(0 0 11px rgba(218, 86, 36, .48));
}
.battle-foe[data-foe-variant="rail"] {
  filter: saturate(.65) contrast(1.16) brightness(.88) drop-shadow(0 3px 12px #090808) drop-shadow(0 0 10px rgba(132, 114, 96, .38));
}
.battle-foe[data-foe-variant="mirror"] {
  transform: scaleX(-1);
  filter: contrast(1.12) saturate(.74) brightness(1.06) drop-shadow(-4px 3px 10px #0c0806) drop-shadow(0 0 10px rgba(238, 227, 204, .34));
}
.battle-foe[data-foe-variant="rift"] {
  filter: contrast(1.16) sepia(.18) drop-shadow(5px -2px 0 rgba(179, 48, 28, .5)) drop-shadow(-4px 2px 0 rgba(238, 227, 204, .22)) drop-shadow(0 3px 10px #0c0606);
}
.battle-foe[data-foe-variant="covenant"] {
  filter: sepia(.32) saturate(1.18) brightness(1.03) drop-shadow(0 3px 11px #120b05) drop-shadow(0 0 12px rgba(201, 162, 90, .48));
}
.battle-foe[data-foe-variant="guixu"] {
  filter: grayscale(.42) contrast(1.26) brightness(.84) drop-shadow(0 3px 12px #070404) drop-shadow(0 0 13px rgba(179, 48, 28, .48));
}
.battle-versus, .battle-foe-name {
  font: 28px/1.15 var(--battle-heading);
  color: #f6d9a6;
  text-shadow: 0 2px 5px #160c0a;
  text-align: center;
}
.battle-foe-name {
  max-width: 100%;
  border-block: 1px solid #d3a96e9d;
  padding: .4em;
  font-size: clamp(14px, 2vw, 25px);
  overflow-wrap: anywhere;
  background: #1e1514ae;
}
.battle-strike { min-height: 1.5em; text-align: center; color: #ffe0a3; font-size: 13px; }
.battle-strike small { margin-inline-start: .75em; font-size: inherit; }
.battle-vital-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.battle-vitals { display: grid; align-content: start; font-variant-numeric: tabular-nums; }
.battle-vitals p { display: flex; justify-content: space-between; flex-wrap: wrap; align-items: baseline; gap: 0 7px; }
.battle-vitals p strong { font-size: 15px; font-weight: 600; }
.battle-vitals p span { font-size: 13px; }
.battle-vitals .battle-time { color: #f1c994; margin-top: 5px; }
.battle-vitals progress {
  appearance: none;
  border: 0;
  display: block;
  width: 100%;
  height: 6px;
  color: #e5ac58;
  background: #4d3a3299;
}
.battle-vitals progress::-webkit-progress-bar { background: #4d3a3299; }
.battle-hp::-webkit-progress-value { background: #edb763; }
.battle-hp::-moz-progress-bar { background: #edb763; }
.battle-vitals[data-vitals="enemy"] .battle-hp::-webkit-progress-value { background: #e27e65; }
.battle-vitals[data-vitals="enemy"] .battle-hp::-moz-progress-bar { background: #e27e65; }
.battle-cadence::-webkit-progress-value { background: #e5d2ad; }
.battle-cadence::-moz-progress-bar { background: #e5d2ad; }
.battle-vitals .battle-cadence { height: 3px; }
.battle-front-action, .battle-current, .battle-actions, .battle-field-actions, .battle-quick-eat {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}
.battle-front-action { justify-content: space-between; gap: 4px 10px; }
.battle-current { gap: 4px 8px; flex: 1 1 auto; justify-content: space-between; }
.battle-field-actions:has(> div:empty + div:empty) { display: none; }
.battle-current-text { display: grid; gap: 3px; font-weight: 600; }
.battle-current-text small { font-weight: 400; color: var(--ink-soft); }
.battle-paper {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 6px;
  border: 1px solid rgba(132, 100, 64, .28);
  border-radius: 4px;
  background: rgba(250, 244, 231, .82);
  padding: 9px 13px;
  box-shadow: none;
}
.battle-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(130, 99, 64, .28);
}
.battle-nav .yard-button {
  min-height: 34px;
  padding: 4px 13px;
  border: 1px solid transparent !important;
  border-radius: 3px;
  background: transparent !important;
  color: #4f3d2f !important;
}
.battle-nav .yard-button:hover { background: rgba(130, 99, 64, .1) !important; color: var(--ink) !important; }
.battle-nav .yard-button::before { display: none !important; }
.battle-nav .yard-button[aria-pressed="true"] {
  background: rgba(179, 48, 28, .12) !important;
  border-color: rgba(179, 48, 28, .38) !important;
  color: var(--verm-deep) !important;
  box-shadow: inset 0 -2px 0 var(--verm-deep);
  font-weight: 600;
}
.battle-food-slot {
  display: grid !important;
  gap: 3px;
  justify-items: center;
  padding: 8px 6px !important;
  border: 1px solid rgba(132, 100, 64, .55) !important;
  border-radius: 4px !important;
  background: linear-gradient(180deg, #f4e8cf 0%, #e4d1ae 100%) !important;
}
.battle-food-slot[aria-pressed="true"] {
  border-color: var(--verm-deep) !important;
  box-shadow: inset 0 0 0 1.5px var(--verm-deep) !important;
}
.battle-food-slot .slot-idx { font-size: 11px; color: #755f47; }
.battle-food-slot .slot-item { display: inline-flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 2px 4px; font-size: 13px; overflow-wrap: normal; }
.battle-food-slot .slot-item b { word-break: keep-all; overflow-wrap: break-word; }
.battle-food-slot .slot-item em { white-space: nowrap; flex-shrink: 0; font-style: normal; font-variant-numeric: tabular-nums; color: var(--ink-soft); }
.battle-quick-pantry {
  display: grid;
  gap: 5px;
  padding: 8px 10px;
  background: rgba(255, 224, 152, .22);
  border: 1px dashed rgba(179, 122, 48, .65);
  border-radius: 3px;
}
.battle-quick-pantry .bqp-label { font-size: 12px; font-weight: 600; color: #7a4b16; }
.battle-quick-pantry .bqp-list { display: flex; flex-wrap: wrap; gap: 6px; }
.battle-quick-load {
  display: inline-flex !important;
  align-items: center;
  gap: 5px;
  min-height: 34px !important;
  padding: 3px 10px !important;
  font-size: 13px !important;
  border-color: #a85b28 !important;
  background: linear-gradient(180deg, #fff6e2 0%, #f1d9ad 100%) !important;
}
.battle-readiness-tip {
  display: grid;
  gap: 3px;
  padding: 5px 9px;
  background: rgba(218, 68, 44, .08);
  border-left: 2.5px solid var(--verm-deep);
  border-radius: 2px;
  font-size: 12.5px;
  color: #702618;
}
.battle-inline-kit {
  margin-left: 6px;
  padding: 1px 8px;
  min-height: 24px;
  border: 1px solid #a83c24;
  border-radius: 3px;
  background: linear-gradient(180deg, #c23b24 0%, #922313 100%);
  color: #fff6e6;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.battle-player-brief {
  padding: 8px 10px;
  background: rgba(132, 100, 64, .07);
  border-radius: 3px;
  display: grid;
  gap: 5px;
}
.bpb-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.bpb-head h4 { margin: 0; font-family: var(--battle-heading); font-size: 15.5px; color: #3c2c1f; }
.tri-badge { padding: 1px 7px; border-radius: 2px; font-size: 11.5px; font-weight: 600; cursor: help; }
.tri-badge.adv { background: rgba(111, 90, 42, .16); color: #4e3b10; }
.tri-badge.even { background: rgba(105, 86, 65, .12); color: #4a3c2e; }
.tri-badge.dis { background: rgba(179, 48, 28, .12); color: var(--verm-deep); }
.bpb-grid { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: baseline; }
.bpb-grid > div {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
}
.bpb-grid span { font-size: 11.5px; color: #6e5943; }
.bpb-grid b { font-size: 13.5px; color: #241912; font-variant-numeric: tabular-nums; }
.battle-dossier { padding: 9px 13px; gap: 5px; }
.battle-map, .battle-enemy-intel, .battle-receipt { display: grid; gap: 5px; min-width: 0; align-content: start; }
.battle-entry { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; margin-top: 4px; }
.battle-warning { color: #8b2b1c; }
.battle-enemy-intel { border-top: var(--battle-rule); padding-top: 7px; }
.battle-defences, .battle-strike-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  min-width: 0;
  gap: 3px 8px;
  padding: 2px 0;
}
.battle-strike-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.battle-defences div, .battle-strike-stats div { border-bottom: 1px dotted #9d8664; }
.battle-defences dt, .battle-strike-stats dt { font-size: 13px; color: var(--ink-soft); overflow-wrap: anywhere; }
.battle-defences dd, .battle-strike-stats dd { font-weight: 600; font-variant-numeric: tabular-nums; }
.battle-attacks, .battle-options, .battle-skills { list-style: none; padding: 0; }
.battle-attacks li { padding: 4px 0; border-bottom: 1px dotted #9d8664; }
.battle-attacks p { display: flex; justify-content: space-between; gap: 8px; }
.battle-attacks small { display: block; color: var(--ink-soft); font-size: 13px; }
.battle-enemy-intel summary { cursor: pointer; padding: 5px 0; }
.battle-food-slots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; }
.battle-food-heading { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 9px; }
.battle-food-heading small { color: var(--ink-soft); }
.battle-food-slot, .battle-slot { display: grid; gap: 4px; text-align: start; align-content: start; min-width: 0; }
.battle-food-slot { padding: 5px; font-size: 13px; }
.battle-food-slot > span:not(.slot-item), .battle-slot span { min-width: 0; overflow-wrap: anywhere; }
.battle-food-slot .ic, .battle-slot .ic, .battle-item .ic { width: 22px; height: 22px; vertical-align: middle; margin-inline-end: 3px; }
.battle-receipt { border-inline-start: 3px double var(--verm-deep); padding: 4px 10px; }
.battle-receipt h4 { color: var(--verm-deep); }
.battle-receipt p { font-size: 14px; }
.battle-equipment {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  align-items: start;
  gap: 12px;
}
.battle-slots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.battle-slot { min-height: 48px; padding: 6px 8px; border-radius: 4px; background: rgba(252, 247, 236, .82); }
.battle-slot.is-empty { background: rgba(235, 224, 200, .42); border-color: rgba(130, 99, 64, .24); }
.battle-slot small { color: var(--ink-soft); font-size: 11.5px; }
.battle-fitting { display: grid; gap: 6px; min-width: 0; padding-inline-start: 10px; border-inline-start: var(--battle-rule); }
.battle-option { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.battle-options .battle-option > span { color: var(--ink-soft); }
.battle-options li { border-bottom: 1px solid rgba(130, 99, 64, .18); margin: 3px 0; padding: 4px 0; }
.battle-item { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; max-width: 100%; background: transparent; border: 0;
  padding: 2px 0; color: var(--ink); text-align: start; cursor: pointer; }
.battle-item span { overflow-wrap: anywhere; }
.battle-spoils-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.battle-orders-writs { display: flex; flex-wrap: wrap; gap: 6px; padding-top: 6px; border-top: 1px solid rgba(130, 99, 64, .18); }
.battle-item:hover { text-decoration: underline; }
.battle-skills { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 12px; }
.battle-skills li { display: flex; justify-content: space-between; gap: 5px; border-bottom: 1px dotted #9d8664; overflow-wrap: anywhere; }
.battle-skills b { flex-shrink: 0; }
.battle-spoils-cap { margin: 2px 0 10px; font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }
.battle-spoils > ol { list-style: none; padding: 0; }
.battle-spoils > ol > li { border-bottom: var(--battle-rule); padding: 6px 0 8px; }

@media (max-width: 760px) {
  .full-edition #p-battle .panel-head { top: 6px; flex-direction: row; align-items: baseline; gap: 8px; }
  .full-edition #p-battle .panel-head b { font-size: 18px; }
  .full-edition #p-battle .panel-head i { display: none; }
  .battle-page { inset: 36px 10px 6px; }
  .battle-scroll { padding-inline: 0; }
  .battle-encounter, .battle-kit { grid-template-columns: minmax(0, 1fr); }
  .battle-encounter { gap: 8px; }
  .battle-tableau, .battle-dossier { display: contents; }
  .battle-stage-head { order: 0; }
  .battle-stage { order: 1; }
  .battle-front-action { order: 2; }
  .battle-map { order: 3; }
  .battle-recent { order: 4; }
  .battle-encounter:has(.battle-death-detail) .battle-recent { order: 3; }
  .battle-encounter:has(.battle-death-detail) .battle-map { order: 4; }
  .battle-meals { order: 5; }
  .battle-enemy-intel { order: 6; }
  .battle-stage { padding: 6px 8px 9px; }
  .battle-facing { height: clamp(100px, 17vh, 150px); }
  #p-battle .battle-nav { gap: 3px; }
  #p-battle .battle-nav .yard-button {
    padding: 4px 6px !important;
    font-size: 13px !important;
    min-width: 0 !important;
  }
  .battle-page [data-battle-seal] { width: clamp(106px, 30vw, 128px); }
  .battle-page [data-battle-seal] .face { font-size: 17px; }
  :lang(en) .battle-page [data-battle-seal] .face { font-size: 13.5px; }
  .battle-vital-pair { gap: 10px; }
  .battle-current { justify-content: space-between; flex: 1 1 100%; }
  .battle-ready-kit { min-width: 0; }
  .battle-equipment { grid-template-columns: minmax(0, 1fr); }
  .battle-fitting { border-top: var(--battle-rule); border-inline-start: 0; padding: 4px 0 0; }
  .battle-map .battle-field { grid-template-columns: 5.3em minmax(0, 1fr); }
}

.battle-round-report { display: grid; gap: 5px; min-width: 0; border-top: var(--battle-rule); padding-top: 8px; }
.battle-round-report h5 { color: var(--verm-deep); font-size: 16px; margin: 0; }
.battle-round-report table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 1.35; }
.battle-round-report caption { font-weight: 600; text-align: start; }
.battle-round-report th, .battle-round-report td { padding: 4px; text-align: end; border-bottom: 1px dotted #9d8664; font-variant-numeric: tabular-nums; }
.battle-round-report th:first-child { text-align: start; overflow-wrap: anywhere; }
.battle-round-report tbody th { font-weight: normal; }
.battle-report-history summary { min-height: 44px; align-content: center; cursor: pointer; }
.battle-report-history > details { padding-inline-start: 10px; }
.battle-death-detail > summary { cursor: pointer; color: var(--verm-deep); }
.battle-death-detail .battle-round-report h5 { display: none; }
