/* Objective line, toasts and the lore note dialog. Lives inside #ui (pointer-events: none). */

.hud-objective {
  position: fixed;
  top: calc(14px + env(safe-area-inset-top, 0px));
  left: 50%;
  transform: translateX(-50%);
  max-width: min(80vw, 560px);
  text-align: center;
  font: 600 17px/1.3 system-ui, sans-serif;
  letter-spacing: 0.02em;
  color: rgba(240, 236, 225, 0.85);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9), 0 0 12px rgba(0, 0, 0, 0.7);
  opacity: 0;
  transition: opacity 350ms ease;
  pointer-events: none;
}
.hud-objective.is-visible { opacity: 1; }

.hud-toast {
  position: fixed;
  left: 50%;
  bottom: calc(22% + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  padding: 10px 22px;
  border-radius: 999px;
  background: var(--panel, rgba(10, 8, 14, 0.86));
  border: 1px solid rgba(240, 236, 225, 0.35);
  color: var(--text, #e9e4d8);
  font: 600 18px/1.2 system-ui, sans-serif;
  opacity: 0;
  transition: opacity 300ms ease;
  pointer-events: none;
  white-space: nowrap;
}
.hud-toast.is-visible { opacity: 1; }

.lore-dialog {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  box-sizing: border-box;
  background: rgba(0, 0, 0, 0.6);
  pointer-events: auto;
  touch-action: none;
}

.lore-card {
  box-sizing: border-box;
  max-width: min(90vw, 520px);
  max-height: 86vh;
  overflow-y: auto;
  padding: 28px 28px 22px;
  background: #d9c79b;
  background-image: radial-gradient(ellipse at center, rgba(255, 245, 210, 0.35) 30%, rgba(120, 85, 40, 0.35) 100%);
  border-radius: 3px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
  transform: rotate(-1.5deg);
  color: #2e2112;
  touch-action: pan-y;
}

.lore-text {
  margin: 0 0 22px;
  font: italic 21px/1.45 "Segoe Print", "Bradley Hand", "Snell Roundhand", Georgia, "Times New Roman", serif;
}

.lore-close {
  display: block;
  width: 100%;
  min-height: 56px;
  border: 2px solid #2e2112;
  border-radius: 8px;
  background: rgba(46, 33, 18, 0.12);
  color: #2e2112;
  font: 700 20px/1 Georgia, serif;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.lore-close:active { background: rgba(46, 33, 18, 0.3); }
