.comic-splash-ad {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(16px, env(safe-area-inset-top)) 16px max(16px, env(safe-area-inset-bottom));
  box-sizing: border-box;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}
.comic-splash-ad.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.comic-splash-ad__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(18, 12, 8, 0.72);
  backdrop-filter: blur(4px);
}
.comic-splash-ad__panel {
  position: relative;
  z-index: 1;
  width: min(92vw, 380px);
  max-height: min(88vh, 720px);
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
.comic-splash-ad__close {
  position: absolute;
  top: -12px;
  right: -8px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  min-width: 36px;
  padding: 0;
  border: 1px solid rgba(90, 70, 50, 0.18);
  border-radius: 50%;
  background: rgba(255, 252, 247, 0.96);
  color: #5d4037;
  cursor: pointer;
  box-shadow: 0 2px 12px rgba(70, 50, 30, 0.22);
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
  -webkit-tap-highlight-color: transparent;
}
.comic-splash-ad__close-icon {
  display: block;
  font-size: 22px;
  font-weight: 400;
  line-height: 1;
  font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  transform: translateY(-1px);
}
.comic-splash-ad__close:hover {
  background: #fff;
  border-color: rgba(90, 70, 50, 0.28);
  box-shadow: 0 4px 16px rgba(70, 50, 30, 0.26);
}
.comic-splash-ad__close:active {
  transform: scale(0.96);
}
.comic-splash-ad__close:focus-visible {
  outline: 2px solid rgba(200, 167, 107, 0.85);
  outline-offset: 2px;
}
.comic-splash-ad__link {
  display: block;
  color: inherit;
  text-decoration: none;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.38);
}
.comic-splash-ad__cover-shell {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 2 / 3;
  background: linear-gradient(110deg, #ece6dc 8%, #f7f3ec 18%, #ece6dc 33%);
  background-size: 200% 100%;
  overflow: hidden;
}
.comic-splash-ad__cover-shell::before {
  content: '';
  position: absolute;
  inset: 0;
  background: inherit;
  background-size: inherit;
  animation: comic-splash-ad-shimmer 1.2s ease-in-out infinite;
  z-index: 0;
}
.comic-splash-ad__cover-shell.is-loaded::before {
  display: none;
}
@keyframes comic-splash-ad-shimmer {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}
.comic-splash-ad__cover-img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  opacity: 0;
  filter: blur(12px);
  transform: scale(1.02);
  transition: opacity 0.45s ease, filter 0.45s ease, transform 0.45s ease;
}
.comic-splash-ad__cover-img.is-preview {
  opacity: 0.88;
  filter: blur(8px);
  transform: none;
}
.comic-splash-ad__cover-img.is-loaded {
  opacity: 1;
  filter: none;
  transform: none;
}
.comic-splash-ad__caption {
  margin: 10px 0 0;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  line-height: 1.35;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.45);
}
.comic-splash-ad__hint {
  margin: 8px 0 0;
  text-align: center;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.82);
}
