/* One-time note after a visitor's first favorite. The region stays rendered and
   empty (never display:none) so the note is announced when it is inserted.
   It sits above the phone navigation (45) and below the asset tooltip (50):
   a tooltip opened beside the note is read whole. */
.guest-hint-region { position: fixed; left: 20px; bottom: 20px; z-index: 46; width: min(500px, calc(100vw - 40px)); pointer-events: none; }
.guest-hint {
  display: flex; align-items: center; gap: 10px; padding: 12px 10px 12px 16px; pointer-events: auto;
  border: 1px solid #2b3648; border-radius: var(--v2-radius, 12px); background: var(--panel-2, #151a23); color: var(--text, #eef2f7);
  box-shadow: 0 14px 40px #0009, 0 2px 8px #0005; font-family: var(--v2-font, system-ui, sans-serif); font-size: 13px; line-height: 1.45;
}
.guest-hint p { flex: 1 1 auto; min-width: 0; margin: 0; color: var(--muted, #9aa6b7); }
.guest-hint strong { color: var(--text, #eef2f7); font-weight: 600; }
.guest-hint-action { flex: none; height: 34px; padding: 0 13px; border: 1px solid #33425a; border-radius: 9px; background: var(--panel-3, #1a2130); color: var(--text, #eef2f7); font-size: 13px; font-weight: 600; white-space: nowrap; cursor: pointer; }
.guest-hint-action:hover { background: #222c3f; border-color: #46597a; }
.guest-hint-close { flex: none; display: grid; place-items: center; width: 30px; height: 30px; padding: 0; border: 0; border-radius: 8px; background: transparent; color: var(--subtle, #6f7b8c); cursor: pointer; }
.guest-hint-close:hover { background: var(--panel-3, #1a2130); color: var(--text, #eef2f7); }
.guest-hint-close svg { width: 16px; height: 16px; }
@media (prefers-reduced-motion: no-preference) {
  .guest-hint { animation: guest-hint-in .2s ease-out; }
  @keyframes guest-hint-in { from { opacity: 0; transform: translateY(8px); } }
}
/* Alert toasts stack in the bottom right corner. Where the two would meet, the
   note moves for as long as a toast is showing: below the sticky masthead
   (58px, 50px on phones), which would otherwise cover it. */
@media (max-width: 840px), (pointer: coarse) and (max-width: 1000px) and (max-height: 600px) {
  body:has(#movement-toasts > .movement-toast) .guest-hint-region { top: 70px; bottom: auto; }
}
/* Phones: full width above the bottom navigation, with touch-sized controls. */
@media (max-width: 700px), (pointer: coarse) and (max-width: 1000px) and (max-height: 600px) {
  .guest-hint-region { left: max(10px, env(safe-area-inset-left)); right: max(10px, env(safe-area-inset-right)); bottom: calc(72px + env(safe-area-inset-bottom)); width: auto; }
  .guest-hint { flex-wrap: wrap; gap: 8px 10px; padding: 12px 8px 8px 14px; }
  .guest-hint p { flex-basis: 100%; padding-right: 6px; }
  .guest-hint-action { height: 44px; padding: 0 16px; }
  .guest-hint-close { width: 44px; height: 44px; margin-left: auto; }
}
