/* ========================================================
   CHEETOS 3D CUBOID INTERSTITIAL AD - STYLESHEET
   Desktop (400x850px) & Mobile Full-Width Responsive
   ======================================================== */

:root {
  --primary-color: #ff5e00;
  --primary-glow: rgba(255, 94, 0, 0.45);
  --accent-color: #ffb703;
  --flamin-red: #e61919;
  --bg-dark: #0a0401;
  
  /* Desktop Mode Dimensions: 400px width, Full View Height */
  --desktop-width: 400px;
  --desktop-height: 100dvh;
  --cuboid-width: var(--desktop-width);
  --cuboid-height: 100dvh;
  --cuboid-half-width: calc(var(--cuboid-width) / 2);
  --perspective: 1200px;
  --transition-speed: 0.65s;
  
  --font-display: 'Montserrat', sans-serif;
  --font-body: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  --safe-top: 12px;
  --safe-bottom: 12px;
}

/* Mobile Screen overrides (100% full viewport) */
@media (max-width: 480px) {
  :root {
    --cuboid-width: 100vw;
    --cuboid-height: 100dvh;
    --safe-top: env(safe-area-inset-top, 12px);
    --safe-bottom: env(safe-area-inset-bottom, 12px);
  }
}

/* Universal Reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: #060201;
  font-family: var(--font-body);
  color: #ffffff;
}

/* Desktop Host Wrapper (Centers 400px wide ad cleanly on desktop) */
.ad-host-wrapper {
  position: relative;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 50% 50%, #200a02 0%, #0c0401 55%, #020100 100%);
  padding: 0;
  overflow: hidden;
}

/* Interstitial Ad Screen (400px on Desktop, 100vw on Mobile, Full View Height) */
.interstitial-container {
  position: relative;
  width: var(--desktop-width);
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  background-color: var(--bg-dark);
  border-left: 1px solid rgba(255, 120, 20, 0.2);
  border-right: 1px solid rgba(255, 120, 20, 0.2);
  box-shadow: 0 0 60px rgba(0, 0, 0, 0.9), 0 0 35px rgba(255, 94, 0, 0.22);
  overflow: hidden;
  opacity: 1;
  transition: opacity 0.35s ease, transform 0.35s ease;
  flex-shrink: 0;
}

@media (max-width: 480px) {
  .interstitial-container {
    width: 100vw;
    border-left: none;
    border-right: none;
    box-shadow: none;
  }
}

.interstitial-container.closing {
  opacity: 0;
  transform: scale(0.96);
  pointer-events: none;
}

/* Background Atmosphere Glow */
.ad-background {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
}

.bg-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
  animation: glowPulse 6s ease-in-out infinite alternate;
}

.bg-glow-1 {
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(255, 94, 0, 0.35) 0%, transparent 70%);
  top: 15%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.bg-glow-2 {
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(255, 183, 3, 0.22) 0%, transparent 70%);
  bottom: 12%;
  left: 50%;
  transform: translate(-50%, 0);
  animation-delay: -3s;
}

@keyframes glowPulse {
  0% { transform: translate(-50%, -50%) scale(0.9); opacity: 0.3; }
  100% { transform: translate(-50%, -50%) scale(1.15); opacity: 0.5; }
}

/* Floating Cheese Dust Particles */
.cheese-particles {
  position: absolute;
  inset: 0;
}

.particle {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, #ffb703 20%, #ff5e00 80%);
  box-shadow: 0 0 8px rgba(255, 150, 0, 0.7);
  opacity: 0.65;
  animation: floatUp linear infinite;
  pointer-events: none;
}

@keyframes floatUp {
  0% {
    transform: translateY(105vh) rotate(0deg) scale(0.6);
    opacity: 0;
  }
  20% { opacity: 0.75; }
  80% { opacity: 0.75; }
  100% {
    transform: translateY(-10vh) rotate(360deg) scale(1.1);
    opacity: 0;
  }
}

/* Floating Header Bar (Top Left Countdown / Cross Button Only) */
.ad-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 45;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: calc(var(--safe-top) + 6px) 14px 8px 14px;
  pointer-events: none;
}

.header-left {
  display: flex;
  align-items: center;
  pointer-events: auto;
}

/* Circular Countdown Button (Only time digits, then cross icon) */
.close-countdown-btn {
  position: relative;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(14, 6, 2, 0.85);
  border: 1.5px solid rgba(255, 120, 20, 0.5);
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  outline: none;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.6);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  padding: 0;
}

.close-countdown-btn:active {
  transform: scale(0.92);
}

.countdown-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.countdown-circle-bg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.15);
  stroke-width: 3.5;
}

.countdown-circle-progress {
  fill: none;
  stroke: var(--accent-color);
  stroke-width: 3.5;
  stroke-linecap: round;
  stroke-dasharray: 113.1;
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 0.25s linear;
}

.countdown-number {
  position: relative;
  z-index: 2;
  font-family: var(--font-display);
  font-size: 13.5px;
  font-weight: 800;
  color: #ffffff;
}

.cross-icon {
  display: none;
  width: 20px;
  height: 20px;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  position: relative;
  z-index: 2;
}

.cross-icon svg {
  width: 18px;
  height: 18px;
}

.close-countdown-btn.can-close {
  background: #e61919;
  border-color: rgba(255, 120, 120, 0.9);
  box-shadow: 0 0 16px rgba(230, 25, 25, 0.7);
  animation: closeBtnPop 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.close-countdown-btn.can-close:hover {
  background: #ff2222;
  transform: scale(1.08);
}

.close-countdown-btn.can-close .countdown-svg,
.close-countdown-btn.can-close .countdown-number {
  display: none;
}

.close-countdown-btn.can-close .cross-icon {
  display: flex;
}

@keyframes closeBtnPop {
  0% { transform: scale(0.7); }
  60% { transform: scale(1.15); }
  100% { transform: scale(1); }
}

}

/* Main 3D Stage */
.ad-stage {
  position: relative;
  z-index: 5;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* 3D Viewport */
.cuboid-viewport {
  width: var(--cuboid-width);
  height: var(--cuboid-height);
  perspective: var(--perspective);
  perspective-origin: 50% 50%;
  position: relative;
  touch-action: pan-y pinch-zoom;
  cursor: grab;
  overflow: hidden;
}

.cuboid-viewport:active {
  cursor: grabbing;
}

/* 3D Cuboid Object (4 Faces) */
.cuboid {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transform: translateZ(calc(var(--cuboid-half-width) * -1)) rotateY(0deg);
  transition: transform var(--transition-speed) cubic-bezier(0.2, 0.9, 0.3, 1);
  will-change: transform;
}

.cuboid.is-dragging {
  transition: none !important;
}

/* Cuboid Faces */
.cuboid-face {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  overflow: hidden;
  background-color: #120501;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

/* 3D Positioning of the 4 Faces */
.face-front {
  transform: rotateY(0deg) translateZ(var(--cuboid-half-width));
}

.face-right {
  transform: rotateY(90deg) translateZ(var(--cuboid-half-width));
}

.face-back {
  transform: rotateY(180deg) translateZ(var(--cuboid-half-width));
}

.face-left {
  transform: rotateY(270deg) translateZ(var(--cuboid-half-width));
}

/* Face Inner Layout */
.face-inner {
  width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* ========================================================
   Brand Pattern Backgrounds (Chester Cheetah Spots Texture)
   Used for Image Faces AND as the background behind Face 0
   ======================================================== */
.face-brand-pattern {
  background-color: #120501;
  background-image: 
    radial-gradient(circle at 50% 25%, rgba(255, 94, 0, 0.32) 0%, transparent 60%),
    radial-gradient(circle at 50% 75%, rgba(255, 183, 3, 0.22) 0%, transparent 60%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140' viewBox='0 0 140 140' opacity='0.22'%3E%3Cpath fill='%23FF8C00' d='M25,20 C18,14 12,24 16,30 C20,36 30,34 29,26 Z'/%3E%3Cpath fill='%23FFA500' d='M95,28 C88,22 82,32 86,39 C90,46 102,42 99,32 Z'/%3E%3Cpath fill='%23FF6B00' d='M58,70 C50,64 42,76 48,84 C54,92 68,86 64,76 Z'/%3E%3Cpath fill='%23FF9E00' d='M110,88 C105,82 98,90 100,96 C102,102 112,100 112,92 Z'/%3E%3Cpath fill='%23FF7700' d='M18,100 C12,95 8,104 12,110 C16,116 26,112 24,104 Z'/%3E%3Cpath fill='%23FFA000' d='M54,16 C50,13 44,19 47,23 C50,27 58,25 56,19 Z'/%3E%3C/svg%3E");
  background-size: cover, cover, 140px 140px;
}

/* Flamin' Hot Face: Fiery Red Cheetah Spots */
.pattern-flamin {
  background-color: #160202;
  background-image: 
    radial-gradient(circle at 50% 25%, rgba(230, 25, 25, 0.38) 0%, transparent 60%),
    radial-gradient(circle at 50% 75%, rgba(255, 75, 31, 0.22) 0%, transparent 60%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140' viewBox='0 0 140 140' opacity='0.22'%3E%3Cpath fill='%23FF2200' d='M25,20 C18,14 12,24 16,30 C20,36 30,34 29,26 Z'/%3E%3Cpath fill='%23FF5500' d='M95,28 C88,22 82,32 86,39 C90,46 102,42 99,32 Z'/%3E%3Cpath fill='%23E61919' d='M58,70 C50,64 42,76 48,84 C54,92 68,86 64,76 Z'/%3E%3Cpath fill='%23FF4400' d='M110,88 C105,82 98,90 100,96 C102,102 112,100 112,92 Z'/%3E%3Cpath fill='%23D31010' d='M18,100 C12,95 8,104 12,110 C16,116 26,112 24,104 Z'/%3E%3C/svg%3E");
  background-size: cover, cover, 140px 140px;
}

/* ========================================================
   Face 0: Video Face (Complete Width, Starts from Top, Brand Pattern Below)
   ======================================================== */
.face-video-theme {
  position: relative;
  /* Uses .face-brand-pattern so any space below video shows brand texture */
}

/* Video Wrapper: Starts from Top (top: 0), Takes Complete Width (width: 100%) */
.video-media-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  aspect-ratio: 9 / 16;
  max-height: calc(100% - 130px);
  background: #000;
  overflow: hidden;
  z-index: 10;
}

/* Video takes complete width and starts from top */
.ad-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: #000;
  user-drag: none;
  -webkit-user-drag: none;
}

/* Single Mute / Volume Button on Video Side (Top Right of Video) */
.video-volume-btn {
  position: absolute;
  top: calc(var(--safe-top) + 6px);
  right: 14px;
  z-index: 35;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(14, 6, 2, 0.85);
  border: 1.5px solid rgba(255, 120, 20, 0.6);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  outline: none;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.65);
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: auto;
}

.video-volume-btn:hover {
  background: rgba(255, 94, 0, 0.85);
  transform: scale(1.08);
  box-shadow: 0 0 16px rgba(255, 94, 0, 0.8);
}

.video-volume-btn:active {
  transform: scale(0.92);
}

.video-volume-btn .vol-icon {
  width: 20px;
  height: 20px;
}

.video-volume-btn.is-muted .icon-sound { display: none; }
.video-volume-btn.is-muted .icon-muted { display: block; }
.video-volume-btn.is-unmuted .icon-sound { display: block; }
.video-volume-btn.is-unmuted .icon-muted { display: none; }

.vol-tooltip {
  position: absolute;
  right: 46px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 94, 0, 0.95);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: 12px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.5);
  transition: opacity 0.3s ease;
}

.vol-tooltip.visible {
  opacity: 1;
}

/* Video Center Play/Pause Overlay indicator */
.video-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 15;
}

.video-play-hint {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(255, 94, 0, 0.88);
  box-shadow: 0 0 20px rgba(255, 94, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  opacity: 0;
  transform: scale(0.7);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.video-play-hint svg {
  width: 24px;
  height: 24px;
  margin-left: 3px;
}

.video-play-hint.show-flash {
  opacity: 1;
  transform: scale(1);
}

/* Video Progress Bar (Placed at bottom edge of video) */
.video-progress-container {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: rgba(0, 0, 0, 0.45);
  z-index: 16;
}

.video-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent-color), var(--primary-color));
  box-shadow: 0 0 8px var(--primary-glow);
  transition: width 0.1s linear;
}

/* Video Face Content: Pinned firmly to bottom in the space below video */
#face-0 .face-content,
.face-video-theme .face-content {
  position: absolute !important;
  bottom: 0 !important;
  left: 0 !important;
  right: 0 !important;
  top: auto !important;
  z-index: 25;
  padding: 16px 18px calc(var(--safe-bottom) + 85px) 18px;
  background: linear-gradient(180deg, rgba(18, 5, 1, 0) 0%, rgba(18, 5, 1, 0.75) 30%, rgba(18, 5, 1, 0.98) 100%);
  display: flex;
  flex-direction: column;
  gap: 5px;
  pointer-events: none;
}

/* ========================================================
   Image Faces (Full Width Images, 50% Logo, Brand Texture)
   ======================================================== */
.face-top-logo-container {
  width: 100%;
  padding-top: calc(var(--safe-top) + 10px);
  padding-bottom: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 10;
}

/* Brand logo: exactly 50% width in center */
.face-top-logo {
  width: 50%;
  max-width: 200px;
  height: auto;
  object-fit: contain;
  display: block;
  margin: 0 auto;
  filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.75));
  transition: transform 0.25s ease;
}

/* Full Width Image Container */
.image-media-wrapper {
  width: 100%;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 0;
  margin: 0;
}

/* Images take full width */
.face-image-full {
  width: 100%;
  height: auto;
  max-height: 540px;
  object-fit: cover;
  display: block;
  margin: 0 auto;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.7));
  transition: transform 0.6s ease;
  user-drag: none;
  -webkit-user-drag: none;
}

.cuboid-face:hover .face-image-full {
  transform: scale(1.02);
}

/* Image Faces (1, 2, 3) Content Overlay at Bottom */
#face-1 .face-content,
#face-2 .face-content,
#face-3 .face-content,
.face-brand-pattern:not(.face-video-theme) .face-content {
  position: relative;
  z-index: 15;
  padding: 14px 18px calc(var(--safe-bottom) + 85px) 18px;
  background: linear-gradient(180deg, rgba(18, 5, 1, 0) 0%, rgba(18, 5, 1, 0.8) 25%, rgba(18, 5, 1, 0.98) 100%);
  display: flex;
  flex-direction: column;
  gap: 5px;
  pointer-events: none;
}

.face-badge {
  align-self: flex-start;
  font-family: var(--font-display);
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 3px 9px;
  border-radius: 12px;
  background: rgba(255, 94, 0, 0.28);
  color: var(--accent-color);
  border: 1px solid rgba(255, 120, 20, 0.45);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.badge-flamin {
  background: rgba(230, 25, 25, 0.32);
  color: #ff7676;
  border-color: rgba(255, 60, 60, 0.55);
}

.face-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 900;
  line-height: 1.15;
  color: #ffffff;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.85);
}

.face-subtitle {
  font-size: 11.5px;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.85);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

/* Floating Bottom Controls (Pagination + Swipe Hint + Main CTA) */
.ad-footer {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 40;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  padding: 6px 16px calc(var(--safe-bottom) + 8px) 16px;
  pointer-events: none;
}

.swipe-hint {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.8);
  letter-spacing: 0.5px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9);
  animation: swipeFloat 2.5s ease-in-out infinite;
  pointer-events: none;
}

.swipe-hand-icon {
  font-size: 13px;
  animation: swipeWiggle 1.8s ease-in-out infinite;
}

.swipe-arrow-left, .swipe-arrow-right {
  color: var(--accent-color);
  font-size: 16px;
  font-weight: 800;
}

@keyframes swipeWiggle {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  75% { transform: translateX(6px); }
}

@keyframes swipeFloat {
  0%, 100% { opacity: 0.75; }
  50% { opacity: 1; }
}

/* Pagination Dots */
.cuboid-pagination {
  display: flex;
  align-items: center;
  gap: 8px;
  pointer-events: auto;
}

.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.28);
  border: none;
  cursor: pointer;
  outline: none;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  padding: 0;
}

.dot:hover {
  background: rgba(255, 183, 3, 0.6);
}

.dot.dot-active {
  width: 26px;
  border-radius: 10px;
  background: linear-gradient(90deg, var(--accent-color), var(--primary-color));
  box-shadow: 0 0 10px var(--primary-glow);
}

/* Main Bottom CTA Button */
.footer-cta-container {
  width: 100%;
  max-width: 360px;
  pointer-events: auto;
}

.main-bottom-cta {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 12px 22px;
  background: linear-gradient(90deg, #ff5e00 0%, #ff8c00 50%, #ff5e00 100%);
  background-size: 200% 100%;
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 14.5px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-decoration: none;
  border-radius: 28px;
  box-shadow: 0 6px 20px rgba(255, 94, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  transition: all 0.25s ease;
  animation: ctaShimmer 3s infinite linear;
}

.main-bottom-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 94, 0, 0.75);
}

.main-bottom-cta:active {
  transform: translateY(1px) scale(0.98);
}

.cta-arrow {
  width: 18px;
  height: 18px;
  transition: transform 0.25s ease;
}

.main-bottom-cta:hover .cta-arrow {
  transform: translateX(4px);
}

@keyframes ctaShimmer {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

/* Audio Toast Notification */
.audio-toast {
  position: absolute;
  top: calc(var(--safe-top) + 60px);
  background: rgba(20, 8, 3, 0.94);
  border: 1px solid rgba(255, 120, 20, 0.55);
  color: #fff;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.7);
  pointer-events: none;
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 50;
}

.audio-toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* Ad Closed Modal / Replay Screen */
.ad-closed-modal {
  position: fixed;
  inset: 0;
  background: rgba(6, 2, 1, 0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.ad-closed-modal.active {
  display: flex;
  animation: fadeIn 0.3s ease forwards;
}

.ad-closed-card {
  max-width: 360px;
  width: 100%;
  background: linear-gradient(145deg, #220f06 0%, #120703 100%);
  border: 1.5px solid rgba(255, 120, 20, 0.4);
  border-radius: 24px;
  padding: 32px 24px;
  text-align: center;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.8), 0 0 30px rgba(255, 94, 0, 0.2);
}

.modal-cheetos-logo {
  height: 48px;
  max-width: 160px;
  object-fit: contain;
  margin-bottom: 14px;
  filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.6));
}

.ad-closed-card h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 900;
  color: #fff;
  margin-bottom: 8px;
}

.ad-closed-card p {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.4;
  margin-bottom: 24px;
}

.btn-replay {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 13px 20px;
  border-radius: 24px;
  background: linear-gradient(90deg, var(--primary-color) 0%, #ff8c00 100%);
  color: #fff;
  border: none;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 800;
  box-shadow: 0 4px 16px rgba(255, 94, 0, 0.55);
  transition: all 0.25s ease;
}

.btn-replay:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 22px rgba(255, 94, 0, 0.7);
}

.btn-replay:active {
  transform: scale(0.97);
}

.btn-replay svg {
  width: 18px;
  height: 18px;
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}
