.notice {
  position: fixed;
  z-index: 70;
  top: 20px;
  right: 20px;
  width: min(480px, calc(100vw - 40px));
  aspect-ratio: 407 / 124;
  background: url("../assets/notification.png") no-repeat center / 100% 100%;
  container-type: inline-size;
  font-family: var(--font);
  animation: notice-in .28s cubic-bezier(.2, .9, .3, 1);
}

.notice.is-going {
  animation: notice-out .18s ease-in forwards;
  pointer-events: none;
}

.notice__text {
  all: unset;
  position: absolute;
  box-sizing: border-box;
  left: 20.9%;
  top: 1.61%;
  width: 47.9%;
  height: 80.65%;
  display: flex;
  align-items: center;
  text-align: left;
  font-size: 3.75cqw;
  font-weight: 600;
  line-height: 1.3;
  color: var(--notice-ink);
  text-shadow: none;

}

.notice__text:focus-visible {
  outline: 2px solid var(--notice-edge);
  outline-offset: 2px;
}

.notice__pfp {
  position: absolute;
  right: 12.3%;
  top: 11.6%;
  height: 48%;
  aspect-ratio: 1;
  box-sizing: border-box;
  border: 2px solid #0A1752;
  border-radius: 12px;
  background-image: linear-gradient(180deg, #97bbdf 0%, #689aca 87%);
  overflow: hidden;
}

.notice__sim {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 12%;
}

.notice__close {
  all: unset;
  position: absolute;
  left: 90%;
  top: 39%;
  width: 8.5%;
  height: 30%;
  border-radius: 4px;
  transition: filter .12s;
}

.notice__close::after {
  content: "";
  position: absolute;
  inset: min(0px, calc((100% - 44px) / 2));
}

.notice__close:hover {
  filter: brightness(1.25);
}

.notice__close:focus-visible {
  outline: 2px solid var(--plumbob);
  outline-offset: 2px;
}

@keyframes notice-in {
  from {
    opacity: 0;
    translate: 22px 0;
  }
}

@keyframes notice-out {
  to {
    opacity: 0;
    translate: 14px 0;
  }
}

@media (max-width: 560px) {
  .notice {
    top: 10px;
    right: 8px;
    width: calc(100% - 16px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .notice {
    animation: none;
  }

  .notice__close {
    transition: none;
  }
}