/* A steady red sign with a dedicated dismiss target. */
.leak-prompt {
  position: absolute;
  z-index: 4;
  top: clamp(10px, 1.4vw, 20px);
  right: max(18px, env(safe-area-inset-right));
  display: flex;
  align-items: center;
  width: 200px;
  max-width: calc(100% - 24px);
  box-sizing: border-box;
  border: 1px solid #ffaaa5;
  border-radius: 6px;
  color: #fff;
  background: linear-gradient(165deg, #c61c25, #870a14);
  box-shadow: inset 0 0 0 2px #640711, 0 3px 12px #21010650, 0 0 9px #ff434533;
  animation: leak-prompt-arrive .2s ease-out both;
  transition: opacity .28s ease;
}
.leak-prompt[hidden] { display: none; }
.leak-prompt .leak-prompt-link {
  flex: 1;
  min-width: 0;
  min-height: 44px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 2px;
  padding: 6px 10px;
  color: #fff;
  text-decoration: none;
  line-height: 1;
}
.leak-prompt-link strong {
  color: #fff;
  font-size: .875rem;
  font-weight: 800;
  letter-spacing: .075em;
  text-transform: uppercase;
}
.leak-prompt-link span { color: #fff; font-size: .75rem; line-height: 1.2; font-weight: 600; }
.leak-prompt-link:is(:hover, :focus-visible) span { text-decoration: underline; }
.leak-prompt-close {
  flex: none;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  color: #fff;
  background: transparent;
  border: 0;
  border-radius: 4px;
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
}
.leak-prompt-close:hover { background: #50030c75; }
.leak-prompt :focus-visible { outline: 2px solid #fff; outline-offset: -3px; }
.leak-prompt.is-fading { animation: none; opacity: 0; pointer-events: none; }
@keyframes leak-prompt-arrive { from { opacity: 0; } to { opacity: 1; } }
@media (max-width: 760px) {
  .header-mast > .leak-prompt {
    top: 2px;
    left: max(6px, env(safe-area-inset-left));
    right: auto;
    width: clamp(139px, 44vw, 196px);
  }
}
@media (max-width: 370px) {
  .leak-prompt .leak-prompt-link { padding: 5px; }
  .leak-prompt-link strong { font-size: .719rem; letter-spacing: .045em; }
  .leak-prompt-link span { font-size: .719rem; }
}
@media (prefers-reduced-motion: reduce) {
  .leak-prompt { animation: none; transition: none; }
}
@media (forced-colors: active) {
  .leak-prompt { background: Canvas; border-color: CanvasText; box-shadow: none; }
  .leak-prompt :is(strong, span, button) { color: LinkText; }
}
