/* Viewport-anchored notifications live outside the scaled page composition. */
.notification-region { position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); z-index: 1100; width: min(360px, calc(100vw - 32px)); pointer-events: none; }
.notification-stack { display: grid; gap: 12px; max-height: calc(100dvh - 32px); overflow-y: auto; overscroll-behavior: contain; margin: 0; padding: 0; list-style: none; }
.notification-toast { position: relative; display: grid; grid-template-columns: 24px minmax(0, 1fr) 24px; align-items: start; gap: 12px; padding: 20px; background: var(--menu-face); color: var(--text); border-bottom: 4px solid var(--depth); clip-path: polygon(4px 0, calc(100% - 4px) 0, calc(100% - 4px) 4px, 100% 4px, 100% calc(100% - 4px), calc(100% - 4px) calc(100% - 4px), calc(100% - 4px) 100%, 4px 100%, 4px calc(100% - 4px), 0 calc(100% - 4px), 0 4px, 4px 4px); font: 500 14px/1.5 var(--font-ui); pointer-events: auto; animation: notification-enter 220ms ease-out; }
.notification-toast-win { border-bottom-color: var(--bet-live-color); }
.notification-copy { display: grid; gap: 4px; min-width: 0; overflow-wrap: anywhere; }
.notification-title { font-size: 15px; }
.notification-amount { font-size: 20px; font-weight: 600; font-variant-numeric: tabular-nums; }
.notification-reason, .notification-history { font-size: 12px; color: var(--muted); }
.notification-history { justify-self: start; text-decoration: underline; text-underline-offset: 3px; }
.notification-close { display: grid; place-items: center; width: 24px; height: 28px; border: 0; padding: 0; background: transparent; color: var(--text); font: 500 24px/1 var(--font-ui); cursor: pointer; }
.notification-close:hover, .notification-history:hover { color: var(--accent); }
.notification-close:focus-visible, .notification-history:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }
.notification-coin { width: 24px; height: 24px; }
.notification-trophy { width: 24px; height: 24px; background-color: var(--bet-live-color); mask: url('/static/images/bet-trophy.svg') center / contain no-repeat; -webkit-mask: url('/static/images/bet-trophy.svg') center / contain no-repeat; transform-origin: center bottom; animation: notification-trophy-cheer 800ms ease-in-out 2; }
.notification-toast.is-closing { animation: notification-exit 180ms ease-in forwards; pointer-events: none; }
@keyframes notification-enter { from { opacity: 0; transform: translateX(16px); } to { opacity: 1; transform: translateX(0); } }
@keyframes notification-exit { to { opacity: 0; transform: translateX(16px); } }
@keyframes notification-trophy-cheer { 25% { transform: rotate(-10deg); } 75% { transform: rotate(10deg); } }
@media (prefers-reduced-motion: reduce) { .notification-toast, .notification-toast.is-closing, .notification-trophy { animation: none; } }
