.play-alert-sr { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.play-alert-toast {
  --alert-accent: 159 229 248;
  --alert-avatar: 52px;
  --alert-duration: 155ms;
  position: fixed;
  z-index: 62;
  right: max(20px, env(safe-area-inset-right));
  bottom: max(20px, env(safe-area-inset-bottom));
  display: grid;
  grid-template-columns: var(--alert-avatar) minmax(0, 1fr) 40px;
  align-items: center;
  gap: 11px;
  box-sizing: border-box;
  width: min(405px, calc(100% - 30px));
  min-height: 86px;
  padding: 13px 10px 14px 13px;
  border: 1px solid rgb(var(--alert-accent) / .46);
  border-radius: 14px;
  overflow: hidden;
  background: radial-gradient(ellipse at 12% 0, rgb(var(--alert-accent) / .13), transparent 72%), #0c202e;
  box-shadow: 0 14px 36px #030a12b8;
  color: #f4f9fd;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px) scale(.985);
  transform-origin: bottom right;
  transition: opacity var(--alert-duration) cubic-bezier(.23, 1, .32, 1), transform var(--alert-duration) cubic-bezier(.23, 1, .32, 1), visibility 0s linear var(--alert-duration);
}

.play-alert-toast[data-kind="live_start"] { --alert-accent: 255 193 187; }
.play-alert-toast[data-kind="live_end"] { --alert-accent: 193 215 238; }
.play-alert-toast[data-kind="ultra"] { --alert-accent: 217 199 255; }
.play-alert-toast[data-kind="ban"] { --alert-accent: 255 206 160; }
.play-alert-toast[data-visible] { --alert-duration: 205ms; opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.play-alert-toast [hidden] { display: none !important; }
.play-alert-toast p { margin: 0; }
.play-alert-toast svg { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.play-alert-person { position: relative; width: var(--alert-avatar); height: var(--alert-avatar); }
.play-alert-avatar { position: absolute; inset: 0; display: grid; place-items: center; overflow: hidden; border: 1px solid rgb(var(--alert-accent) / .57); border-radius: 50%; background: #213c50; color: rgb(var(--alert-accent)); font-size: 16px; font-weight: 750; }
.play-alert-avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.play-alert-toast[data-kind="ban"] .play-alert-avatar { background: #213c50 url('/play-alert-avatars.webp') 100% 44% / 300% auto no-repeat; }
.play-alert-toast[data-kind="ban"] .play-alert-avatar > span { visibility: hidden; }
.play-alert-badge { position: absolute; right: -2px; bottom: -1px; display: grid; box-sizing: border-box; width: 22px; height: 22px; place-items: center; border: 2px solid #102533; border-radius: 50%; background: rgb(var(--alert-accent)); color: #182539; }
.play-alert-badge svg { width: 13px; height: 13px; }
.play-alert-toast .play-alert-meta { display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 8px; margin-bottom: 4px; }
.play-alert-meta strong { color: rgb(var(--alert-accent)); font-size: 10px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.play-alert-meta span { color: #c2d6e3; font-size: 10px; }
.play-alert-message { overflow-wrap: anywhere; font-size: 15px; font-weight: 680; line-height: 1.28; }
.play-alert-action { display: inline-flex; align-items: center; gap: 6px; min-height: 33px; color: rgb(var(--alert-accent)); font-size: 12px; font-weight: 700; text-decoration: none; }
.play-alert-action svg { width: 14px; height: 14px; }
.play-alert-close { display: grid; width: 40px; height: 40px; place-items: center; padding: 0; border: 1px solid transparent; border-radius: 8px; background: transparent; color: #d3e3ec; cursor: pointer; }
.play-alert-toast :focus-visible { outline: 2px solid rgb(var(--alert-accent)); outline-offset: 3px; }
.play-alert-duration { position: absolute; inset: auto 0 0; height: 3px; background: rgb(var(--alert-accent) / .1); }
.play-alert-duration > span { display: block; height: 100%; background: rgb(var(--alert-accent) / .85); transform-origin: left; }

.play-notification-mail { min-width: 0; margin: 12px 0; padding: 12px; border: 1px solid #577b94; border-radius: 12px; }
.play-notification-mail legend { max-width: 100%; padding-inline: 5px; font-size: .95rem; font-weight: 700; }
.play-notification-mail > p { margin: 0 0 7px; font-size: .85rem; }

@media (max-width: 860px) {
  .play-alert-toast { right: max(12px, env(safe-area-inset-right)); bottom: calc(74px + env(safe-area-inset-bottom)); width: min(405px, calc(100% - 24px)); }
}

@media (max-width: 560px) {
  .play-alert-toast { --alert-avatar: 44px; grid-template-columns: var(--alert-avatar) minmax(0, 1fr) 40px; gap: 8px; min-height: 76px; padding: 10px 7px 11px 10px; }
  .play-alert-message { font-size: 13px; }
  .play-alert-badge { width: 19px; height: 19px; }
  .play-alert-badge svg { width: 11px; height: 11px; }
}

@media (hover: hover) and (pointer: fine) {
  .play-alert-close:hover { border-color: rgb(var(--alert-accent) / .3); background: rgb(var(--alert-accent) / .10); }
  .play-alert-action:hover { text-decoration: underline; }
}

@media (prefers-reduced-motion: reduce) {
  .play-alert-toast { transform: none; }
  .play-alert-duration { visibility: hidden; }
}
