#battle-overlay {
  position: fixed;
  inset: 0;
  z-index: 40;
  pointer-events: none;
}

#battle-overlay[hidden] {
  display: none;
}

#battle-commands {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 45;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
  pointer-events: auto;
}

#battle-commands[hidden] {
  display: none;
}

.battle-skill-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  width: 100%;
  margin-bottom: 6px;
}

.battle-skill-menu[hidden] {
  display: none;
}

#battle-status {
  width: 100%;
  text-align: center;
  font-size: 12px;
  color: #ccc;
  margin-bottom: 4px;
}

#discovery-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.65);
}

#discovery-modal[hidden] {
  display: none;
}

.discovery-card {
  border-image: url('/assets/ui/ui_discovery_frame.png') 12 fill / 12px / 0 stretch;
  background: rgba(36, 32, 44, 0.96);
  border-radius: 4px;
  padding: 20px;
  max-width: 360px;
  width: 90%;
}

.discovery-card h2 {
  margin: 0 0 8px;
  font-size: 1.1rem;
}

.discovery-choices {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 16px;
}

.clue-marker {
  pointer-events: none;
}
