body:has(.capacity-dialog[open]) {
  overflow: hidden;
}

.capacity-dialog {
  position: fixed;
  inset: 0;
  width: min(580px, calc(100% - 30px));
  max-width: none;
  max-height: calc(100dvh - 30px);
  margin: auto;
  padding: 0;
  overflow: auto;
  border: 0;
  border-radius: 28px;
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 35px 110px rgba(0, 0, 0, 0.46);
}

.capacity-dialog[open] {
  animation: notice-in 260ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.capacity-dialog::backdrop {
  background: rgba(5, 7, 8, 0.76);
  backdrop-filter: blur(7px);
  animation: notice-backdrop 220ms ease both;
}

@keyframes notice-in {
  from {
    opacity: 0;
    transform: scale(0.94) translateY(12px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

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

.notice-checker {
  height: 19px;
  background-color: var(--taxi);
  background-image:
    linear-gradient(45deg, var(--ink) 25%, transparent 25%),
    linear-gradient(-45deg, var(--ink) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, var(--ink) 75%),
    linear-gradient(-45deg, transparent 75%, var(--ink) 75%);
  background-position: 0 0, 0 9.5px, 9.5px -9.5px, -9.5px 0;
  background-size: 19px 19px;
}

.notice-close {
  position: absolute;
  z-index: 2;
  top: 35px;
  right: 22px;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--ink);
  color: var(--white);
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease;
}

.notice-close:hover {
  background: #2a2e33;
  transform: rotate(5deg) scale(1.04);
}

.notice-close span {
  position: absolute;
  width: 19px;
  height: 2px;
  border-radius: 4px;
  background: currentColor;
}

.notice-close span:first-child {
  transform: rotate(45deg);
}

.notice-close span:last-child {
  transform: rotate(-45deg);
}

.notice-content {
  padding: 34px 36px 25px;
}

.notice-heading-row {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  padding-right: 54px;
}

.notice-icon {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: var(--taxi);
  font-size: 31px;
  box-shadow: 0 12px 28px rgba(248, 200, 0, 0.22);
}

.notice-kicker {
  margin: 0 0 6px;
  color: #927600;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.capacity-dialog h2 {
  margin: 0;
  font-size: clamp(27px, 5vw, 35px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.045em;
}

.capacity-alert {
  position: relative;
  display: grid;
  gap: 5px;
  margin-top: 27px;
  padding: 18px 20px 18px 24px;
  overflow: hidden;
  border: 1px solid rgba(154, 124, 0, 0.22);
  border-radius: 17px;
  background: #fff7cf;
}

.capacity-alert::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 6px;
  background: var(--taxi);
}

.capacity-alert strong {
  font-size: 17px;
  font-weight: 900;
}

.capacity-alert span {
  color: #5f5429;
  font-size: 13px;
  line-height: 1.45;
}

.notice-description {
  margin: 20px 0 0;
  color: #555d64;
  font-size: 14px;
  line-height: 1.7;
}

.notice-social {
  margin-top: 22px;
  padding: 18px;
  border-radius: 19px;
  background: #f1f1ed;
}

.notice-social > p {
  margin: 0 0 12px;
  color: #596168;
  font-size: 12px;
  font-weight: 700;
}

.notice-instagram {
  min-height: 58px;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 10px 15px;
  border-radius: 14px;
  background: var(--ink);
  color: var(--white);
  transition: transform 180ms ease, background 180ms ease;
}

.notice-instagram:hover {
  background: #c92c75;
  transform: translateY(-2px);
}

.notice-instagram > svg {
  flex: 0 0 auto;
  color: var(--taxi);
  font-size: 25px;
}

.notice-instagram span,
.notice-instagram strong,
.notice-instagram small {
  display: block;
}

.notice-instagram strong {
  font-size: 13px;
}

.notice-instagram small {
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 11px;
}

.notice-credit {
  margin: 17px 2px 0;
  color: #91979c;
  font-size: 9px;
  line-height: 1.4;
  text-align: right;
}

.notice-credit strong {
  color: #666d72;
}

@media (max-width: 620px) {
  .capacity-dialog {
    width: calc(100% - 20px);
    max-height: calc(100dvh - 20px);
    border-radius: 22px;
  }

  .notice-close {
    top: 30px;
    right: 16px;
    width: 43px;
    height: 43px;
  }

  .notice-content {
    padding: 27px 20px 20px;
  }

  .notice-heading-row {
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 12px;
    padding-right: 42px;
  }

  .notice-icon {
    width: 52px;
    height: 52px;
    border-radius: 15px;
    font-size: 27px;
  }

  .notice-kicker {
    font-size: 8px;
    letter-spacing: 0.1em;
  }

  .capacity-dialog h2 {
    font-size: 27px;
  }

  .capacity-alert {
    margin-top: 22px;
    padding: 15px 16px 15px 20px;
  }

  .capacity-alert strong {
    font-size: 15px;
  }

  .notice-description {
    margin-top: 16px;
    font-size: 13px;
  }

  .notice-social {
    margin-top: 17px;
    padding: 14px;
  }
}

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

