/* Richie Gold & Diamonds — browser-local notification surface, 2026-09-19. */
.richie-notification-region {
  position: fixed;
  z-index: 214;
  top: max(88px, env(safe-area-inset-top, 0px));
  right: max(20px, env(safe-area-inset-right, 0px));
  width: min(410px, calc(100vw - 40px));
  pointer-events: none;
}
.richie-notification {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  overflow: hidden;
  padding: 18px 16px 18px 20px;
  border: 1px solid rgba(242, 210, 124, 0.52);
  border-radius: 18px;
  color: #f7f1e4;
  background:
    linear-gradient(128deg, rgba(212, 175, 55, 0.13), transparent 48%),
    rgba(10, 13, 20, 0.98);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.52), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  opacity: 0;
  transform: translate3d(0, -12px, 0) scale(0.98);
  transition: opacity 180ms cubic-bezier(0.23, 1, 0.32, 1), transform 180ms cubic-bezier(0.23, 1, 0.32, 1);
  pointer-events: auto;
}
.richie-notification::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(#f2d27c, #9a7b1e);
}
.richie-notification.is-visible { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
.richie-notification.is-closing { opacity: 0; transform: translate3d(0, -9px, 0) scale(0.98); }
.richie-notification__copy { min-width: 0; }
.richie-notification__eyebrow {
  display: block;
  margin: 0 0 4px;
  color: #f2d27c;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.richie-notification__title {
  margin: 0;
  color: #fffaf0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 23px;
  font-weight: 600;
  line-height: 1;
}
.richie-notification__message {
  margin: 7px 0 0;
  color: rgba(244, 241, 232, 0.78);
  font-size: 12px;
  line-height: 1.48;
  text-wrap: pretty;
}
.richie-notification__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
}
.richie-notification__action,
.richie-notification__dismiss {
  min-width: 44px;
  min-height: 44px;
  border: 1px solid rgba(242, 210, 124, 0.46);
  border-radius: 12px;
  font: inherit;
  transition: transform 160ms cubic-bezier(0.23, 1, 0.32, 1), background 160ms cubic-bezier(0.23, 1, 0.32, 1), border-color 160ms cubic-bezier(0.23, 1, 0.32, 1);
}
.richie-notification__action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 13px;
  color: #151009;
  background: linear-gradient(135deg, #f2d27c, #d4af37);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
}
.richie-notification__dismiss {
  display: inline-grid;
  place-items: center;
  width: 44px;
  padding: 0;
  color: #f4f1e8;
  background: rgba(255, 255, 255, 0.05);
  cursor: pointer;
  font-size: 25px;
  line-height: 1;
}
.richie-notification__dismiss:hover,
.richie-notification__action:hover {
  border-color: #f2d27c;
  transform: translateY(-1px);
}
.richie-notification__dismiss:hover { background: rgba(242, 210, 124, 0.12); }
.richie-notification__dismiss:focus-visible,
.richie-notification__action:focus-visible {
  outline: 3px solid #f2d27c;
  outline-offset: 3px;
}
@media (max-width: 640px) {
  .richie-notification-region {
    top: max(74px, env(safe-area-inset-top, 0px));
    right: 12px;
    width: calc(100vw - 24px);
  }
  .richie-notification { gap: 12px; padding: 15px 12px 15px 16px; }
  .richie-notification__title { font-size: 21px; }
  .richie-notification__message { font-size: 11.5px; }
  .richie-notification__actions { grid-column: 1 / -1; justify-content: flex-start; }
  .richie-notification__action { min-height: 44px; }
  .richie-notification__dismiss { position: absolute; top: 10px; right: 10px; }
  .richie-notification__copy { padding-right: 38px; }
}
@media (prefers-reduced-motion: reduce) {
  .richie-notification,
  .richie-notification__action,
  .richie-notification__dismiss { transition: none; }
}
