/* 进场公告 */

.announce {
  position: fixed;
  inset: 0;
  z-index: 2400;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--safe-top) + 24px) 28px calc(var(--safe-bottom) + 24px);
}

.announce[hidden] { display: none; }

.announce-mask {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(80% 50% at 50% 42%, rgba(0, 122, 255, .08), transparent 62%),
    rgba(10, 12, 18, .52);
  opacity: 0;
  transition: opacity 280ms ease;
}

.announce-wrap {
  position: relative;
  z-index: 1;
  width: min(100%, 328px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  transform: translate3d(0, 14px, 0) scale(.96);
  opacity: 0;
  transition:
    transform 420ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 280ms ease;
}

.announce.show .announce-mask { opacity: 1; }
.announce.show .announce-wrap {
  transform: translate3d(0, 0, 0) scale(1);
  opacity: 1;
}

.announce-sheet {
  position: relative;
  width: 100%;
}

/*
.announce-shape {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}
*/

.announce-title,
.announce-body,
.announce-foot {
  position: relative;
  z-index: 1;
}

.announce-card {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 22px 22px 28px;
  border-radius: 26px;
  overflow: hidden;
  background:
    radial-gradient(80% 60% at 100% 0%, rgba(0, 122, 255, .1), transparent 58%),
    #fff;
  border: 0.5px solid rgba(60, 60, 67, .16);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.announce-wave {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -3px;
  z-index: 0;
  display: block;
  width: 100%;
  height: auto;
  pointer-events: none;
}

.announce-card:active { transform: scale(.985); }

.announce-title {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.2;
  color: var(--ios-label);
}

.announce-body {
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.65;
  letter-spacing: -0.018em;
  color: var(--ios-label-2);
}

.announce-foot {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  text-align: right;
}

.announce-time,
.announce-org {
  font-size: 12px;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--ios-label-3);
}

.announce-org {
  font-weight: 600;
  color: var(--ios-label-2);
}

.announce-close {
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.announce-close img {
  display: block;
  width: 44px;
  height: 44px;
}

.announce-close:active { transform: scale(.92); }

body.is-announce {
  overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
  .announce-mask,
  .announce-wrap { transition: none; }
  .announce-close:active { transform: none; }
}
