/* Quiet world notices. Lifetimes, placement and actions stay with their owners. */
#toast,
#faunaraDownloadStatus {
  width: max-content;
  box-sizing: border-box;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: linear-gradient(90deg, rgba(12, 16, 14, .64) 0%, rgba(12, 16, 14, .52) 76%, rgba(12, 16, 14, .32) 92%, transparent 100%);
  box-shadow: none;
  color: #f5f1e5;
  font: italic 500 16px/1.4 system-ui, sans-serif;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .65);
  overflow-wrap: anywhere;
  pointer-events: none;
}
#toast {
  max-width: min(480px, calc(100vw - 32px));
  padding: 8px 18px;
  text-align: center;
}
#faunaraDownloadStatus {
  max-width: min(390px, calc(100vw - 24px));
  padding: 4px 12px;
  gap: 6px;
  text-align: left;
}
#faunaraDownloadText { min-width: 0; }
#faunaraDownloadStatus button {
  flex: none;
  min-width: 40px;
  min-height: 40px;
  padding: 4px 7px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: inherit;
  font: inherit;
  font-style: normal;
  text-shadow: inherit;
  pointer-events: auto;
}
#faunaraDownloadStatus button:hover { background: rgba(255, 255, 255, .09); }
#faunaraDownloadStatus button:focus-visible {
  outline: 2px solid #f5f1e5;
  outline-offset: -2px;
}
#faunaraDownloadStatus button:active { transform: scale(.96); }
#toast:not(.hidden),
#faunaraDownloadStatus:not([hidden]) { animation: faNoticeAppear .18s ease-out; }
@keyframes faNoticeAppear { from { opacity: 0; } to { opacity: 1; } }
body.faunara-game[data-input-device="touch"] #faunaraHud > #toast {
  bottom: max(var(--fa-toast-bottom, 17px), var(--fa-notice-stick-reserve, 0px)) !important;
}
/* On short wide screens, a narrower strip fits beside the stick and leaves
   the existing action diamond's vertical corridor available. */
@media (orientation: landscape) and (max-height: 500px) {
  body.faunara-game[data-input-device="touch"] #faunaraHud > #toast {
    bottom: var(--fa-toast-bottom, 17px) !important;
    max-width: min(480px, calc(100vw - 2 * var(--fa-notice-stick-side, 0px) - 24px));
  }
}
@media (max-width: 600px), (max-height: 500px) {
  #toast, #faunaraDownloadStatus { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  #toast:not(.hidden), #faunaraDownloadStatus:not([hidden]) { animation: none; }
  #faunaraDownloadStatus button:active { transform: none; }
}
