/* In-theme "loading ad" curtain shown before the midgame Y8 ad break. */

.y8-ad-curtain {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background:
    radial-gradient(circle at 50% 35%, rgba(62, 43, 28, 0.82), rgba(24, 17, 11, 0.94)),
    url('./walnut-wood-texture.png') center / cover no-repeat;
  animation: y8-ad-fade-in 220ms ease-out both;
}

.y8-ad-curtain.is-leaving {
  animation: y8-ad-fade-out 200ms ease-in both;
}

.y8-ad-panel {
  max-width: 22rem;
  padding: 28px 32px;
  text-align: center;
  border: 1px solid rgba(214, 187, 142, 0.35);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(48, 33, 22, 0.92), rgba(30, 21, 14, 0.94));
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 238, 205, 0.08);
}

.y8-ad-title {
  margin: 18px 0 6px;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.35rem;
  letter-spacing: 0.01em;
  color: #f2e4c9;
}

.y8-ad-note {
  margin: 0;
  font-family: 'DM Mono', 'DM Sans', system-ui, sans-serif;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: rgba(226, 208, 175, 0.6);
}

.y8-ad-discs {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.y8-ad-discs span {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: url('./marble-disc-light.png') center / cover no-repeat, #efe6d4;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.45);
  animation: y8-ad-flip 1.1s ease-in-out infinite;
}

.y8-ad-discs span:nth-child(2) {
  animation-delay: 0.14s;
}

.y8-ad-discs span:nth-child(3) {
  animation-delay: 0.28s;
}

@keyframes y8-ad-flip {
  0%, 100% { transform: rotateY(0deg) translateY(0); opacity: 1; }
  50% { transform: rotateY(180deg) translateY(-6px); opacity: 0.75; }
}

@keyframes y8-ad-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes y8-ad-fade-out {
  from { opacity: 1; }
  to { opacity: 0; }
}
