.battle-reward-panel ul {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
  display: grid;
  gap: .55rem;
}
.battle-reward-panel li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .2rem .75rem;
  padding: .5rem .7rem;
  border: 1px solid #a9875560;
  border-radius: .5rem;
}
.battle-reward-panel li strong { white-space: nowrap; }
.battle-reward-result {
  padding: .6rem .85rem;
  margin: .6rem auto 1rem;
  max-width: 36rem;
  border: 1px solid #b18c63;
  border-radius: .6rem;
}
.battle-reward-result > p { margin: .3rem 0; }


.revision-cost { color: #ffe2a4; font-weight: 700; }

.revision-modes a { margin: .2rem .15rem .2rem 0; }
.playing-card[data-drag-card] { touch-action: pan-x; }
.playing-card.card-drop-ready { outline: 2px solid #f3d68c; }
.enemy-side .playing-card.card-drop-ready::after { content: 'ここで離して攻撃'; max-width: 95%; white-space: normal; text-align: center; }
.playing-card.card-drop-over { outline: 4px solid #fff2bb; }
.loan-op-match .battle-main { position: relative; }
.revision-move {
  position: absolute;
  z-index: 12;
  inset: 45% auto auto 50%;
  transform: translate(-50%, -50%);
  display: flex;
  gap: .75rem;
  align-items: center;
  width: max-content;
  max-width: min(88%, 35rem);
  padding: .45rem .8rem;
  color: #fff5d6;
  background: #092528f5;
  border: 1px solid #cda86c;
  border-radius: .45rem;
  box-shadow: 0 .55rem 2rem #00111299;
  pointer-events: none;
}
.revision-move.spell { background: #37204df5; border-color: #e0b9f5; }
.revision-move-card { flex: 0 0 46px; width: 46px; }
.revision-move-card img { display: block; width: 100%; }
@keyframes revision-shatter {
  20% { background: #fff2b8; color: #30202a; }
  60% { transform: scale(1.13) rotate(-6deg); box-shadow: 0 0 1rem #e5be76; }
}
.revision-life-break { animation: revision-shatter .5s ease-out; }
@media (prefers-reduced-motion: reduce) {
  .revision-life-break { animation: none; outline: 2px solid #f3d68c; }
}
@media (min-width: 1120px) and (min-height: 720px) {
  .loan-op-match .r7-arena {
    --leader-card: clamp(108px, 9.4vw, 146px);
    --board-card: clamp(114px, 10.2vw, 164px);
    --hand-card: clamp(84px, 7.8vw, 112px);
    grid-template-columns: minmax(0, 1fr) 258px;
    min-height: calc(100svh - 86px);
  }
  body.cpu-match .loan-op-match .r7-arena { min-height: calc(100svh - 160px); }
}

.card-tile.earned-gold { position: relative; outline: 2px solid #dcb45e; outline-offset: -2px; }
.card-tile.runtime-print > .earned-gold-label { display:block; position: absolute; top: 5px; right: 4px; z-index: 5; border-radius: .25rem;
  background: #ffde88; color: #403014; padding: .15rem .35rem; font-size: .7rem; font-weight: 800; }

.arena .end-turn-action.end-turn-ready{outline:2px solid #f6d375;outline-offset:2px;box-shadow:0 0 0 4px #d4952a38,0 0 16px #d4952a6b}
.arena[data-turn-owner="0"][data-acting-owner="0"] .phase-cue strong{color:#ffe6a0}

.puzzle-editor [hidden]{display:none!important}

.last-battle-note{font-size:.74rem;color:#ffe2a0}.last-battle-note[hidden]{display:none}
.result-gold-card{width:105px;margin:10px auto;filter:drop-shadow(0 0 8px #e7b04e9e)}
.result-gold-card img{width:100%;display:block}
.result-screen .battle-reward-panel{margin:.65em auto;max-width:560px}
.battle-cost-chip{position:absolute;z-index:2;top:3px;left:3px;background:#172c37;color:#e9ffeb;font-size:.7rem;padding:.08em .3em;border-radius:4px;pointer-events:none}

.puzzle-explanation{max-width:55ch;margin:.7em 0;padding-inline-start:1.4em}
.puzzle-explanation li+li{margin-top:.35em}
.puzzle-stars{color:#ffe19b;white-space:nowrap;letter-spacing:.06em}
.mode-archive{margin:1em 0;padding:.8em 1em;border:1px solid #a58256;border-radius:.65em}
.mode-archive summary{cursor:pointer;font-weight:700}
.mode-archive li+li{margin-top:.3em}
/* Keep text links readable whether or not the browser has visited them. */
:is(.revision-modes,#mode-summary,.mode-archive) a[href]:not(.button){color:#ffe5a6;text-decoration:underline;text-underline-offset:.17em}
:is(.revision-modes,#mode-summary,.mode-archive) a[href]:not(.button):hover{text-decoration-thickness:.14em}
:is(.revision-modes,#mode-summary,.mode-archive) a[href]:not(.button):focus-visible{outline:2px solid #ffe5a6;outline-offset:3px;border-radius:2px}
.incident-stages{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,135px),1fr));gap:.65em;margin:1em 0}
.incident-stages .incident-stage{display:grid;align-content:start;justify-items:center;gap:.4em;padding:.7em;min-width:0;white-space:normal;text-align:center;font-size:.9rem;border:1px solid #ae8d62;border-radius:.65em}
.incident-stage[aria-pressed=true]{outline:2px solid #ffe19b;background:#445e54;color:#fff8e8}
.incident-stage:disabled{opacity:1;color:#d9e5db;background:#293e3d;border-color:#738b80}
.incident-stage img{border:1px solid #f3ce76;border-radius:.35em;object-fit:contain;max-width:100%;background:#172b2d}
.incident-stage-title{font-weight:750}
.incident-stage-state{color:#ffe19b}
.borrowed-setup [hidden],.result-next [hidden]{display:none!important}
.result-next{margin:1em 0}
.result-next h2{font-size:1.2rem;margin:.4em 0}
.result-missions{max-width:560px;margin:1em auto}
.loan-op-match .playing-card{position:relative}
.loan-op-match .ability-badges{position:absolute;z-index:6;top:23%;right:.15em;display:grid;justify-items:end;gap:.16em;line-height:1.14;pointer-events:none}
.loan-op-match .ability-badge{font-size:clamp(.55rem,1.2vw,.68rem);font-weight:700;padding:.11em .24em;border-radius:.24em;background:#183e4b;color:#fff6dd}
.loan-op-match .ability-reaction{background:#752c46}
.loan-op-match .ability-defense{background:#2d4b83}
.loan-op-match .ability-affinity{background:#345841}
