/* Achievement toast — slides in from the top, queued one at a time. */

/* The author display would defeat the hidden attribute — restore the gate. */
.ach-toast[hidden] { display: none; }

.ach-toast {
  position: fixed;
  top: calc(12px + env(safe-area-inset-top, 0px));
  left: 50%;
  z-index: 250;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: min(92vw, 380px);
  padding: 10px 16px 10px 12px;
  background: linear-gradient(160deg, var(--c-surface-light), var(--c-surface));
  border: 1px solid var(--c-gold-dim);
  border-radius: 10px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.55), 0 0 18px var(--c-gold-dim);
  opacity: 0;
  transform: translate(-50%, -16px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
}

.ach-toast--in {
  opacity: 1;
  transform: translate(-50%, 0);
}

.ach-toast__icon {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  filter: drop-shadow(0 0 6px var(--c-gold-glow));
}

.ach-toast__icon svg {
  width: 100%;
  height: 100%;
}

.ach-toast__body {
  min-width: 0;
}

.ach-toast__name {
  font-family: var(--font-display, 'Cinzel', serif);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--c-gold);
  letter-spacing: 0.03em;
}

.ach-toast__desc {
  font-size: 0.78rem;
  color: var(--c-text-dim);
  margin-top: 2px;
}

.ach-toast__unlock {
  font-size: 0.78rem;
  color: var(--c-heal);
  margin-top: 3px;
}

@media (prefers-reduced-motion: reduce) {
  .ach-toast {
    transition: opacity 0.2s ease;
    transform: translate(-50%, 0);
  }
}

/* ─── Onboarding tips (P4.5) — one quiet line at the bottom, once each. ─── */
.onboard-tip {
  position: fixed;
  bottom: calc(84px + env(safe-area-inset-bottom, 0px));
  left: 50%;
  transform: translate(-50%, 8px);
  z-index: 240;
  max-width: min(92vw, 460px);
  padding: 10px 18px;
  border-radius: 10px;
  border: 1px solid var(--c-border);
  background: linear-gradient(160deg, var(--c-surface-light), var(--c-surface));
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
  color: var(--c-text);
  font-size: 0.85rem;
  line-height: 1.45;
  text-align: center;
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
}

.onboard-tip[hidden] { display: none; }

.onboard-tip--in {
  opacity: 1;
  transform: translate(-50%, 0);
}
