/* Update notice (native dialog). One accent (site red), one radius system: 16px panels, pills for controls. */
.update-notice {
  width: min(560px, calc(100% - 24px));
  max-height: calc(100dvh - 24px);
  margin: auto;
  padding: 0;
  overflow: auto;
  text-align: left;
  border: 0;
  border-radius: 16px;
  color: #1b1f24;
  background: #fbfbfa;
  box-shadow: 0 40px 80px -30px rgba(20, 8, 8, .65);
  font-family: 'Poppins', sans-serif;
}

.update-notice::backdrop {
  background: rgba(17, 20, 24, .72);
}

.update-notice[open] {
  animation: update-notice-in .45s cubic-bezier(.16, 1, .3, 1);
}

.update-notice[open]::backdrop {
  animation: update-notice-fade .3s ease-out;
}

@keyframes update-notice-in {
  from { opacity: 0; transform: translateY(18px) scale(.97); }
  to { opacity: 1; transform: none; }
}

@keyframes update-notice-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

.update-notice__stage {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: #1f1f1f;
  cursor: pointer;
}

.update-notice__stage img,
.update-notice__stage iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
}

.update-notice__stage img {
  transition: transform .6s cubic-bezier(.16, 1, .3, 1), filter .3s ease;
  filter: brightness(.72) saturate(1.05);
}

.update-notice__stage:hover img,
.update-notice__stage:focus-visible img {
  transform: scale(1.04);
  filter: brightness(.85) saturate(1.1);
}

.update-notice__stage:focus-visible {
  outline: 3px solid #d8302f;
  outline-offset: -3px;
}

.update-notice__play {
  position: absolute;
  top: 50%;
  left: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 76px;
  height: 76px;
  margin: -38px 0 0 -38px;
  padding-left: 5px;
  border-radius: 50%;
  color: #d8302f;
  background: #fff;
  font-size: 26px;
  box-shadow: 0 12px 30px -8px rgba(0, 0, 0, .6);
  transition: transform .25s cubic-bezier(.16, 1, .3, 1);
}

.update-notice__stage:hover .update-notice__play,
.update-notice__stage:focus-visible .update-notice__play {
  transform: scale(1.1);
}

.update-notice__play::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .85);
  pointer-events: none;
}

@media (prefers-reduced-motion: no-preference) {
  .update-notice__play::after {
    animation: update-notice-ring 2.4s ease-out infinite;
  }
}

@keyframes update-notice-ring {
  from { transform: scale(1); opacity: .9; }
  to { transform: scale(1.7); opacity: 0; }
}

.update-notice__close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: rgba(17, 20, 24, .72);
  font-size: 16px;
  cursor: pointer;
  transition: background-color .2s ease, transform .2s ease;
}

.update-notice__close:hover,
.update-notice__close:focus-visible {
  background: #d8302f;
}

.update-notice__close:active,
.update-notice__action:active {
  transform: scale(.97);
}

.update-notice__body {
  padding: 26px 28px 8px;
}

.update-notice__title {
  margin: 0 0 8px;
  font-family: 'Anton', sans-serif;
  font-size: 34px;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: .01em;
  color: #15181d;
}

.update-notice__text {
  text-align: left;
  max-width: 46ch;
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  color: #454c55;
}

.update-notice__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 18px;
  margin: 22px 28px 28px;
  padding-top: 18px;
  border-top: 1px solid #e3e5e8;
}

.update-notice__help {
  display: flex;
  text-align: left;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
  color: #454c55;
}

.update-notice__help i {
  color: #d8302f;
  font-size: 18px;
}

.update-notice__help a {
  font-weight: 600;
  color: #b90d21;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.update-notice__help a:hover,
.update-notice__help a:focus-visible {
  color: #8c0a19;
}

.update-notice__action {
  padding: 10px 24px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: #b90d21;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color .2s ease, transform .2s ease;
}

.update-notice__action:hover,
.update-notice__action:focus-visible {
  background: #8c0a19;
}

@media (max-width: 575.98px) {
  .update-notice__body {
    padding: 20px 18px 4px;
  }

  .update-notice__title {
    font-size: 28px;
  }

  .update-notice__footer {
    margin: 18px 18px 20px;
  }

  .update-notice__action {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .update-notice[open],
  .update-notice[open]::backdrop {
    animation: none;
  }

  .update-notice__stage img,
  .update-notice__play {
    transition: none;
  }
}
