#battle-votives {
  display:flex; align-items:center; justify-content:center; gap:5px; width:auto; min-width:44px;
  min-height:44px; padding:0 6px; font:600 17px/1 var(--font-body);
}
#battle-votives b { color:var(--print-gold); }
#battle-votives:focus-visible { outline:2px solid var(--print-gold); outline-offset:-2px; }
.votive-slot { display:grid; place-items:center; width:40px; height:44px; }
.votive-slot img,.votive-drag img { width:34px; height:34px; border:1px solid #aa9065; border-radius:3px; }
.votive-slot:not([data-votive-uid]),.votive-slot.drag-source { opacity:.5; }
[data-votive-uid] { cursor:grab; user-select:none; -webkit-user-select:none; }
.votive-slot,.votive-row[data-votive-uid] :is(img,button) { touch-action:none; }
.votive-drag,.votive-drag img { border-radius:4px; }
.votive-drag img { display:block; width:100%; height:100%; }
.battle-menu-purse { display:none; }
@media (max-width:680px) {
  #battle-votives:has(.votive-slot) { gap:0; padding:0; }
  #battle-votives:has(.votive-slot) .votive-label { display:none; }
  .votive-slot { width:34px; }
  .votive-slot img { width:30px; height:30px; }
  .battle-bar-actions:has(#battle-votives) { gap:1px; }
}
@media (max-width:480px) {
  .battle-bar:has(#battle-votives) { gap:5px; }
  .battle-bar:has(#battle-votives) .battle-gold { display:none; }
  .battle-bar:has(#battle-votives) .battle-place { font-size:17px; gap:4px; }
  .battle-menu-purse { display:inline-flex; align-items:center; gap:4px; color:var(--print-gold); }
  .battle-menu-purse .icon { width:16px; height:16px; }
}

.votive-dialog {
  width:min(475px,calc(100% - 24px)); max-height:calc(100dvh - 32px); margin:auto; padding:0;
  color:#302b22; background:#eaddc2; border:1px solid #9c8156; overflow:auto; overscroll-behavior:contain;
  box-shadow:0 8px 40px #100e0ac4; text-align:left; font:500 17px/1.3 var(--font-body);
}
.votive-dialog::backdrop { background:#10120fbb; }
.votive-sheet header {
  display:flex; align-items:center; gap:9px; padding:7px 8px 7px 18px;
  color:#eee1c7; background:#2b302a; border-bottom:3px solid #ac8b54;
}
.votive-sheet header .icon { width:22px; height:26px; flex:none; color:#dfbb78; }
.votive-sheet h2 { margin:0; font:700 29px/1.05 var(--font-display); }
.votive-count { margin-left:3px; white-space:nowrap; color:#dcc59e; font-variant-numeric:tabular-nums; }
.votive-close {
  margin-left:auto; flex:none; width:44px; height:44px; padding:0;
  border:0; color:inherit; background:transparent; font:500 30px/1 var(--font-body); cursor:pointer;
}
.votive-body { padding:14px 18px 18px; }
.votive-note,.votive-empty { margin:0; }
.votive-note { color:#62503a; }
.votive-empty { margin-top:12px; }
.votive-list { list-style:none; padding:0; margin:10px 0 0; }
.votive-row { display:grid; grid-template-columns:56px minmax(0,1fr) auto; align-items:center; gap:12px; padding:10px 0; }
.votive-row + .votive-row { border-top:1px solid #b6a385; }
.votive-row:last-child { padding-bottom:0; }
.votive-row img,.votive-feature img,.votive-offer img {
  display:block; width:56px; height:56px; border:1px solid #847152; background:#242525; object-fit:cover;
}
.votive-row b,.votive-offer h3 { font:700 23px/1.05 var(--font-display); }
.votive-row p,.votive-feature p,.votive-offer p { margin:3px 0 0; }
.votive-row button,.votive-target,.votive-back {
  min-height:44px; padding:5px 12px; border:1px solid #76603f; background:#3a3a2e; color:#fff1d6;
  font:600 17px/1.15 var(--font-body); cursor:pointer;
}
.votive-row button:disabled { color:#665d4c; background:transparent; border-color:transparent; cursor:default; }
.votive-dialog button:focus-visible { outline:2px solid #a76311; outline-offset:2px; }
.votive-sheet header button:focus-visible { outline-color:#e9c98d; outline-offset:-3px; }
.votive-feature { display:flex; align-items:center; gap:12px; margin:0 0 13px; }
.votive-feature img { width:74px; height:74px; }
.votive-target { display:flex; align-items:center; justify-content:space-between; gap:8px; width:100%; margin:6px 0; }
.votive-target small { color:#e0d2b9; }
.votive-back { margin-top:7px; color:#584932; border-color:#a39173; background:transparent; }
.votive-offer {
  display:flex; flex-wrap:wrap; align-items:center; gap:12px; width:fit-content; max-width:100%; margin:0 auto 18px;
  padding:10px 13px; border:1px solid #a08e61; background:#272d24; text-align:left;
}
.votive-offer small { color:#d6bc84; }
.votive-offer h3,.screen .votive-offer h3 { margin:2px 0; }
.votive-offer-actions { display:flex; align-items:center; gap:5px; }
.votive-summary { display:grid; grid-template-columns:auto minmax(0,1fr); width:min(100%,36rem); margin:0 auto; color:#efe7d6; }
.votive-summary small { font:600 12px/1.25 var(--font-body); text-transform:uppercase; letter-spacing:.07em; }
.votive-summary .votive-offer-actions { grid-column:2; flex-wrap:wrap; }
.votive-miss { margin:0; text-align:center; color:#ded1b8; }
.votive-miss span { color:#c6b9a3; }
.votive-sources summary { width:fit-content; padding:10px 0; cursor:pointer; }
.votive-sources p { margin:0; }
@media (max-width:440px) {
  .votive-body { padding:12px; }
  .votive-row { grid-template-columns:46px minmax(0,1fr) auto; gap:8px; }
  .votive-row img { width:46px; height:46px; }
  .votive-row button { padding-inline:7px; max-width:76px; }
}
@media (max-width:380px) {
  .battle-bar:has(#battle-votives) .battle-place .icon { display:none; }
  .votive-sheet header { gap:6px; padding-left:12px; }
  .votive-sheet h2 { font-size:25px; }
}
