.battle-result {
  --result-paper:#f5e6cb;
  --result-gold:#ddb273;
  --result-line:#725a3d;
  display:grid;
  gap:14px;
  margin:0 auto;
  max-width:500px;
  color:var(--result-paper);
}
.battle-result-hero {
  --hero-halo:#675331;
  --hero-accent:#edc689;
  position:relative;
  isolation:isolate;
  overflow:hidden;
  border:1px solid #846947;
  border-radius:12px;
  background:radial-gradient(ellipse at 50% 18%,var(--hero-halo),#201e20 76%);
  color:var(--hero-accent);
  padding:18px 14px 22px;
  text-align:center;
}
.battle-result-hero[data-verdict="loss"] { --hero-halo:#583533; --hero-accent:#f1ad9c; }
.battle-result-hero[data-verdict="draw"],
.battle-result-hero[data-verdict="abandon"] { --hero-halo:#414955; --hero-accent:#d8dfeb; }
.battle-result-hero::before {
  content:"";
  position:absolute;
  z-index:-1;
  inset:7px;
  border:1px solid #d9b47838;
  border-radius:8px;
  pointer-events:none;
}
.battle-result-hero img {
  display:block;
  width:54px;
  height:54px;
  object-fit:contain;
  margin:0 auto 1px;
  filter:sepia(.25);
}
#worldContent .battle-result-hero h1,
#modalBody .battle-result-hero h3 {
  color:inherit;
  font:900 clamp(2.2rem,10vw,3.65rem)/1.2 serif;
  letter-spacing:.075em;
  margin:0;
}
#worldContent .battle-result-hero p,
#modalBody .battle-result-hero p { color:#f5ecdb; margin:8px 0 0; font-size:.9rem; }
.battle-result-reason { color:#f1e5d1; text-align:center; overflow-wrap:anywhere; }
#worldContent .battle-result-reason { margin:0; }
.battle-result-stats { display:flex; flex-wrap:wrap; gap:7px; margin:0; }
#modalBody .battle-result-stats { margin:12px 0; }
.battle-result-stats div {
  flex:1 1 82px;
  text-align:center;
  border:1px solid #6f583c;
  border-radius:7px;
  padding:9px 5px;
  background:#2a241d;
}
.battle-result-stats dt { color:#ddc5a2; font-size:.78rem; }
.battle-result-stats dd { margin:3px 0 0; color:#fff0d5; font:700 1.2rem/1.25 system-ui,sans-serif; }
.battle-result-ledger { border:1px solid var(--result-line); border-radius:8px; background:#2b2119; padding:14px; }
#worldContent .battle-result-ledger h2 { margin:0 0 9px; font-size:1rem; }
.battle-result-ledger dl { margin:0 0 11px; }
.battle-result-ledger dl div {
  display:flex;
  justify-content:space-between;
  gap:12px;
  padding:7px 0;
  border-bottom:1px solid #594530;
  font-size:.86rem;
}
.battle-result-ledger dd { margin:0; font-weight:bold; }
.battle-result-bonus {
  display:flex;
  flex-wrap:wrap;
  justify-content:space-between;
  align-items:center;
  gap:5px 12px;
  padding:9px 10px;
  border:1px solid #6b5944;
  border-radius:6px;
  background:#211d1a;
  color:#edddc6;
  font-size:.81rem;
}
.battle-result-bonus.earned { border-color:#ad8349; background:#4d3522; color:#ffe0a5; }
.battle-result-actions {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:8px;
}
.battle-result-actions .primary { grid-column:1/-1; }
.battle-result-actions :is(.primary,.secondary) { font-size:.9rem; }
#worldMenu.world-result-active #worldContent { padding-top:14px; }
#worldContent .reward-reveal { max-width:500px; margin:0 auto; min-height:0; padding:19px 12px; }
#worldContent .reward-reveal h1 { color:#ffe6b8; }
.reward-reveal header p { color:#e8cda3; font-size:.9rem; }
.reward-reveal header p span { margin-inline-start:6px; font:inherit; color:#f9eddb; }
.reward-reveal .reward-controls { flex-wrap:wrap; width:100%; }
.reward-reveal .reward-controls .primary { flex:1 0 100%; }
.reward-front > span { pointer-events:none; }
#worldContent :is(.battle-result-actions,.reward-controls) .primary {
  border-color:#c18a4d;
  background:linear-gradient(#6d4931,#4a2f22);
  color:#fff1d6;
  box-shadow:none;
}
#worldContent :is(.battle-result-actions,.reward-controls) .primary:focus-visible,
.reward-reveal .reward-scene:focus-visible {
  outline:2px solid #ffe3a6;
  outline-offset:3px;
}
