/* Keep the field or arena visible behind combat panels. */
body:has(#app .battle-view) #modal:not(:empty),
#modal:has(.capture-result-sheet,.result-heading) {
  background: #11092338;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
body:has(#app .battle-view) #modal > .modal-box,
#modal:has(.capture-result-sheet,.result-heading) > .modal-box {
  border-color: #e0bc86;
}
.battle-stage .battle-miss-callout {
  position: absolute; z-index: 16; top: 48%; inset-inline: 0; margin-inline: auto;
  width: max-content; padding: 8px 14px; border-radius: 10px;
  border: 1px solid #f1a477; background: #27192bef; color: #ffd9aa;
  font-size: clamp(22px,6vw,28px); font-weight: 850; line-height: 1.2;
  text-shadow: 0 2px 4px #291124; pointer-events: none;
}
.battle-log .battle-miss-note {
  display: block; margin-bottom: 2px; color: #ffcc99; font-size: 13px;
}
#app .menu-companion-tip {
  padding: 12px 14px; margin-block: 12px 0; background: #211830;
  color: #ebd8ba; border: 1px solid #9e7fb259; border-radius: 12px; font-size: 14px;
}
.growth-header {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px;
}
.growth-header h2,.growth-header p { margin: 0; }
.growth-header p,.growth-block { font-size: 13px; }
.growth-header .creature-art { flex: none; width: 76px; height: 76px; }
.evolution-requirements { display: grid; gap: 5px; margin-block: 8px 12px; }
.evolution-requirements h3 { margin: 0 0 4px; color: #f7dba4; font-size: 15px; }
.growth-material { border: 1px solid #a582b473; border-radius: 10px; background: #20172f; }
.growth-material > summary {
  display: grid; grid-template-columns: minmax(0,1fr) auto;
  gap: 5px 10px; min-height: 46px; padding: 8px 10px; color: #f7e9d6;
  font-size: 13px; font-weight: 700; cursor: pointer; list-style: none;
}
.growth-material > summary::-webkit-details-marker { display: none; }
.growth-material-name { display: flex; align-items: center; gap: 6px; }
.growth-material-name .ui-icon { flex: none; width: 16px; height: 16px; color: #efc48f; }
.growth-material progress { grid-column: 1 / -1; width: 100%; height: 5px; border: 0; border-radius: 6px; overflow: hidden; accent-color: #d6ae7a; }
.growth-material progress::-webkit-progress-bar { background: #4b375c; }
.growth-material progress::-webkit-progress-value { background: #d6ae7a; }
.growth-material > p { margin: 0; padding: 1px 10px 9px; font-size: 13px; color: #f4e0c4; }
.growth-block { margin: 4px 0 0; color: #ffcb95; }
#app .growth-action,#modal .growth-action { display: grid; place-content: center; gap: 2px; min-height: 44px; padding: 8px; }
#app .growth-action:disabled,#modal .growth-action:disabled {
  opacity: 1; color: #d8c8df; background: #2a2237; border-color: #9582a064;
}
#app .growth-action small,#modal .growth-action small { color: #e9ccb3; }
#app .explorer-stats-panel,#modal .explorer-stats-panel {
  padding: 10px; margin-block: 8px 12px; font-size: 13px;
}
.explorer-stats-panel > p { margin: 0 0 6px; }
#app .explorer-stats-panel :is(.stat-pt-badge,.stat-desc,.stat-name),
#modal .explorer-stats-panel :is(.stat-pt-badge,.stat-desc,.stat-name) { font-size: 13px; }
.explorer-stats-panel .stat-grid-rows { margin-top: 8px; }
#app .explorer-stats-panel .stat-alloc-row,#modal .explorer-stats-panel .stat-alloc-row {
  grid-template-columns: minmax(0,1fr) auto; gap: 3px 10px; padding: 8px 10px;
}
.explorer-stats-panel .stat-desc { grid-column: 1; line-height: 1.4; }
#app .explorer-stats-panel .stat-alloc-btn,#modal .explorer-stats-panel .stat-alloc-btn {
  grid-row: 1 / span 2; grid-column: 2; min-width: 44px; min-height: 44px; padding: 8px;
}
.map-world[data-simple-map] .objective-edge::before { content: var(--edge-arrow,"▲"); }
.map-world[data-simple-map] .objective-edge[data-edge-direction="left"] { --edge-arrow: "◀"; }
.map-world[data-simple-map] .objective-edge[data-edge-direction="right"] { --edge-arrow: "▶"; }
.map-world[data-simple-map] .objective-edge[data-edge-direction="down"] { --edge-arrow: "▼"; }
