.oath-battle {
  --battle-gold: #d4ae70;
  --battle-border: #70563e;
  color: #f2e6cb;
  background:
    linear-gradient(to bottom, #111014, transparent 25%, transparent 70%, #141216),
    linear-gradient(100deg, rgb(19 17 20 / .89), rgb(19 17 20 / .71) 45%, rgb(16 17 22 / .52)),
    #161318 url("art/land-morok.webp") center / cover no-repeat;
  scroll-margin-top: 12px;
}
.oath-battle, .oath-battle * { box-sizing: border-box; }
.oath-battle-inner {
  width: min(100% - 2 * clamp(20px, 5vw, 84px), 1400px);
  margin-inline: auto;
  padding-block: clamp(40px, 6vw, 90px);
}
.oath-battle-heading {
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 54px);
  margin-bottom: clamp(23px, 3vw, 43px);
}
.oath-battle-heading h2 {
  margin: 0;
  font: 600 clamp(46px, 5.9vw, 86px)/.98 var(--folio);
  letter-spacing: -.035em;
  text-wrap: balance;
}
.oath-battle-heading > span {
  position: relative;
  flex: 1;
  height: 1px;
  background: var(--battle-border);
}
.oath-battle-heading > span::after {
  content: "";
  position: absolute;
  right: 0;
  top: -5px;
  width: 82px;
  height: 11px;
  background: url("../../img/scenes/title-rule.svg") right center / 82px 11px no-repeat;
}
.battle-chapters {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  align-items: start;
  gap: clamp(30px, 4vw, 68px);
  position: relative;
  min-inline-size: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
.battle-reader, .battle-choice {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  padding: 0;
  margin: 0;
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}
.battle-controls { border-top: 1px solid var(--battle-border); }
.battle-step {
  position: relative;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  align-items: baseline;
  gap: clamp(7px, 1.5vw, 23px);
  border-bottom: 1px solid var(--step-rule, #554739);
  color: var(--step-ink, #d1c5b0);
  padding: clamp(17px, 2.6vw, 39px) 7px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.battle-choice { inset: 0 auto auto 0; }
.battle-step-number {
  color: #c3a173;
  text-align: center;
  font: 600 18px/1.1 var(--folio);
}
.battle-step-name { font: 600 clamp(24px, 2.65vw, 41px)/1.05 var(--folio); }
.battle-step:hover { color: #fff1d7; }
#battle-party:checked ~ .battle-controls [for="battle-party"],
#battle-crossing:checked ~ .battle-controls [for="battle-crossing"],
#battle-hearth:checked ~ .battle-controls [for="battle-hearth"] {
  --step-ink: #fff1d7;
  --step-rule: var(--battle-gold);
  --step-marker: 1;
}
.battle-step::before {
  content: "";
  position: absolute;
  inset-inline-start: 1px;
  top: 50%;
  width: 4px;
  height: 4px;
  opacity: var(--step-marker, 0);
  background: #ecae73;
  transform: translateY(-50%) rotate(45deg);
}
#battle-party:focus-visible ~ .battle-controls [for="battle-party"],
#battle-crossing:focus-visible ~ .battle-controls [for="battle-crossing"],
#battle-hearth:focus-visible ~ .battle-controls [for="battle-hearth"] {
  outline: 2px solid #f9cf90;
  outline-offset: -3px;
}
.battle-scenes { display: grid; min-width: 0; }
.battle-plate { grid-area: 1 / 1; display: grid; grid-template-rows: auto 1fr; margin: 0; min-width: 0; visibility: hidden; }
#battle-party:checked ~ .battle-scenes #scene-party,
#battle-crossing:checked ~ .battle-scenes #scene-crossing,
#battle-hearth:checked ~ .battle-scenes #scene-hearth { visibility: visible; --scene-opacity: 1; }
.battle-picture {
  overflow: hidden;
  aspect-ratio: 2.25;
  border: 1px solid #8d704e;
  background: #202325;
}
.battle-picture img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.battle-caption {
  display: grid;
  grid-template-columns: minmax(5em, 1fr) minmax(0, 2.1fr);
  align-items: center;
  gap: clamp(15px, 1.6vw, 28px);
  margin: 0;
  padding: clamp(15px, 1.65vw, 24px);
  border-bottom: 1px solid var(--battle-border);
  background: #201c1e;
  font: 450 clamp(14px, 1.12vw, 17px)/1.48 var(--body);
  color: #dfd4c3;
}
.battle-caption b { font: 600 clamp(23px, 2.4vw, 36px)/1.02 var(--folio); color: #edc58c; }
@media (prefers-reduced-motion: no-preference) {
  .battle-picture img { opacity: var(--scene-opacity, 0); transition: opacity 220ms ease-out; }
  .battle-step { transition: color 160ms ease, border-color 160ms ease; }
}
@media (max-width: 800px) {
  .battle-chapters { grid-template-columns: 1fr; gap: 14px; }
  .battle-controls { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .battle-step { grid-template-columns: 1fr; gap: 5px; align-content: start; padding: 11px 10px 12px; }
  .battle-step-number { font-size: 16px; text-align: start; }
  .battle-step-name { font-size: clamp(18px, 3.6vw, 26px); }
  .battle-step::before { top: 16px; inset-inline-start: 0; transform: rotate(45deg); }
  .battle-picture { aspect-ratio: 1.95; }
}
@media (max-width: 480px) {
  .oath-battle-inner { width: calc(100% - 36px); padding-block: 34px; }
  .oath-battle-heading { margin-bottom: 20px; gap: 9px; }
  .oath-battle-heading h2 { font-size: clamp(39px, 10.2vw, 50px); }
  .oath-battle-heading > span { display: none; }
  .battle-step { padding-inline: 7px 4px; }
  .battle-step::before { width: 3px; height: 3px; }
  .battle-picture { aspect-ratio: 1.58; }
  .battle-caption { grid-template-columns: 1fr; gap: 6px; padding: 13px 15px 15px; }
}
