.entry-notice-layer[hidden] { display: none !important; }

.entry-notice-layer {
  position: fixed;
  z-index: 2147483000;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  color: var(--text, var(--copy, #f5f8fb));
  background: color-mix(in srgb, var(--page-bg, #06131f) 18%, transparent);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  overscroll-behavior: contain;
  touch-action: none;
  opacity: 0;
  transition: opacity 260ms cubic-bezier(.22, 1, .36, 1);
}

.entry-notice-layer.is-visible { opacity: 1; }
.entry-notice-layer.is-closing { opacity: 0; pointer-events: none; }

.entry-notice-viewport {
  position: relative;
  overflow: visible;
}

.entry-notice-card {
  position: relative;
  isolation: isolate;
  box-sizing: border-box;
  width: var(--entry-notice-dialog-width, 680px);
  height: var(--entry-notice-dialog-height, 640px);
  overflow: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: clamp(22px, 4vw, 38px);
  border: 1px solid color-mix(in srgb, var(--accent, #3da8ff) 32%, transparent);
  border-radius: clamp(18px, 2.5vw, 28px);
  background: transparent;
  box-shadow: 0 28px 90px rgba(0, 0, 0, .36), inset 0 1px rgba(255,255,255,.12);
  animation: entry-notice-in var(--motion-duration, 280ms) var(--motion-easing, cubic-bezier(.2,.8,.2,1)) both;
  overscroll-behavior: contain;
  touch-action: pan-y;
  -webkit-overflow-scrolling: touch;
  transform-origin: top left;
}

.entry-notice-card::-webkit-scrollbar { display: none; width: 0; height: 0; }

.entry-notice-card::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  border-radius: inherit;
  background-color: #10243a;
  background-image: linear-gradient(145deg, color-mix(in srgb, var(--panel, #10243a) 98%, white 2%), color-mix(in srgb, var(--panel, #10243a) 96%, #10243a 4%));
  opacity: var(--entry-notice-dialog-opacity, .98);
  content: '';
}

.entry-notice-progress {
  min-height: 20px;
  margin-bottom: 8px;
  color: var(--muted, rgba(225,235,246,.68));
  font-size: 13px;
  letter-spacing: .04em;
}

.entry-notice-title {
  margin: 0;
  color: var(--heading, var(--text, #fff));
  font-size: clamp(23px, 4vw, 34px);
  line-height: 1.18;
}

.entry-notice-body {
  margin-top: 18px;
  color: var(--text, var(--copy, #eef4fa));
  font-size: clamp(15px, 2vw, 18px);
  line-height: 1.85;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.entry-notice-image {
  display: block;
  width: var(--entry-notice-image-width, 72%);
  max-width: 100%;
  max-height: min(420px, 48vh);
  margin: 20px auto 0;
  border-radius: 16px;
  object-fit: contain;
  background: color-mix(in srgb, var(--panel, #10243a) 82%, white 4%);
  box-shadow: 0 14px 38px rgba(0,0,0,.24);
}

.entry-notice-image[hidden] { display: none !important; }

.entry-notice-message {
  min-height: 20px;
  margin: 14px 0 0;
  color: var(--danger, #ff7474);
  font-size: 14px;
}

.entry-notice-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 22px;
}

.entry-notice-confirm {
  min-width: 126px;
  min-height: 46px;
  padding: 10px 24px;
  border: 0;
  border-radius: 13px;
  color: var(--button-text, #fff);
  background: linear-gradient(135deg, var(--accent, #1f8cff), var(--accent-strong, #176ee8));
  box-shadow: 0 10px 28px color-mix(in srgb, var(--accent, #1f8cff) 34%, transparent);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: transform 160ms ease, filter 160ms ease, opacity 160ms ease;
}

.entry-notice-confirm:hover:not(:disabled) { transform: translateY(-1px); filter: brightness(1.06); }
.entry-notice-confirm:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent, #1f8cff) 52%, white); outline-offset: 3px; }
.entry-notice-confirm:disabled { cursor: wait; opacity: .68; }
html.entry-notice-open, html.entry-notice-open body { overflow: hidden !important; overscroll-behavior: none !important; }

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

@media (min-width: 901px) {
  .entry-notice-card { animation: none; }
  .entry-notice-layer.is-opening .entry-notice-viewport {
    animation: entry-notice-window-subtle 620ms cubic-bezier(.16, 1, .3, 1) both;
  }
  .entry-notice-layer.is-closing .entry-notice-viewport {
    animation: entry-notice-window-subtle-out 500ms cubic-bezier(.7, 0, .84, 0) both;
  }
  html[data-motion-profile="genie"] .entry-notice-layer.is-opening .entry-notice-viewport {
    transform-origin: 88% 92%;
    animation-name: entry-notice-window-genie;
    animation-duration: 760ms;
  }
  html[data-motion-profile="genie"] .entry-notice-layer.is-closing .entry-notice-viewport {
    transform-origin: 88% 92%;
    animation-name: entry-notice-window-genie-out;
    animation-duration: 500ms;
  }
  html[data-motion-profile="none"] .entry-notice-layer,
  html[data-motion-profile="none"] .entry-notice-viewport { animation: none !important; transition: none !important; }
}

@keyframes entry-notice-window-subtle {
  0% { opacity: 0; transform: translate3d(0, 28px, 0) scale(.94); filter: blur(10px); }
  62% { opacity: 1; transform: translate3d(0, -3px, 0) scale(1.008); filter: blur(0); }
  100% { opacity: 1; transform: none; filter: none; }
}
@keyframes entry-notice-window-subtle-out {
  from { opacity: 1; transform: none; filter: none; }
  to { opacity: 0; transform: translate3d(0, 20px, 0) scale(.965); filter: blur(7px); }
}
@keyframes entry-notice-window-genie {
  0% { opacity: 0; transform: translate3d(38vw, 36vh, 0) scale(.06, .025) skewX(8deg); filter: blur(14px); }
  38% { opacity: .82; transform: translate3d(10vw, 8vh, 0) scale(.58, .22) skewX(4deg); filter: blur(5px); }
  72% { opacity: 1; transform: translate3d(-7px, -4px, 0) scale(1.018, 1.03); filter: blur(0); }
  100% { opacity: 1; transform: none; filter: none; }
}
@keyframes entry-notice-window-genie-out {
  0% { opacity: 1; transform: none; filter: none; }
  30% { opacity: 1; transform: translate3d(5px, 2px, 0) scale(.98, .92); }
  100% { opacity: 0; transform: translate3d(38vw, 36vh, 0) scale(.06, .025) skewX(8deg); filter: blur(12px); }
}

@media (max-width: 560px) {
  .entry-notice-layer { place-items: center; padding: 14px; }
  .entry-notice-card { padding: 22px 18px; border-radius: 20px; }
  .entry-notice-confirm { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .entry-notice-card, .entry-notice-viewport { animation: none !important; }
  .entry-notice-layer { transition: none !important; }
  .entry-notice-confirm { transition: none !important; }
}
