/* The ad overlay. Positioned over whatever box the content would have used,
   never re-parented, always above every video window. */
.exp-ad {
  position: fixed;
  left: 0; top: 0;
  width: 480px; height: 270px;
  z-index: 80;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 18px 48px rgba(0, 0, 0, .6);
}

.exp-ad__video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
  display: block;
}

/* Covers the frame so the whole ad is clickable. The skip button sits above it. */
.exp-ad__click {
  position: absolute;
  inset: 0;
  cursor: pointer;
}
.exp-ad__click[hidden] { display: none; }

.exp-ad__badge {
  position: absolute;
  left: 10px; top: 10px;
  padding: 3px 8px;
  border-radius: 4px;
  background: rgba(0, 0, 0, .72);
  color: #fff;
  font: 600 11px/1.4 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  letter-spacing: .06em;
  text-transform: uppercase;
  pointer-events: none;
}

/* The foot holds the XP bar and the skip button on one row. It spans the frame,
   so it stays transparent to clicks and only the button takes them back — the
   rest of that strip is still click-through to the advertiser. */
.exp-ad__foot {
  position: absolute;
  left: 12px; right: 12px; bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  pointer-events: none;
}

/* The EXP bar from the logo: black track, blue ring, chunky segmented green
   fill. It sweeps to full over the eight seconds, and full means skippable. */
.exp-ad__xp {
  flex: 1;
  height: 16px;
  border: 3px solid #000;
  border-radius: 999px;
  background: #000;
  box-shadow: 0 0 0 2px #1b6fd4;
  overflow: hidden;
  transition: opacity .4s ease;
}
/* Its job is done at eight seconds; get it off the creative. */
.exp-ad__xp[data-done="1"] { opacity: 0; }

.exp-ad__xp-fill {
  height: 100%;
  width: 0;
  border-radius: 999px;
  background:
    repeating-linear-gradient(100deg, rgba(0, 0, 0, .28) 0 2px, transparent 2px 13px),
    linear-gradient(180deg, #8cf58c 0%, #3ad63a 46%, #17a017 100%);
}

.exp-ad__skip {
  pointer-events: auto;
  flex: none;
  min-width: 96px;
  padding: 9px 14px;
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 3px;
  background: rgba(0, 0, 0, .68);
  color: #fff;
  font: 600 13px/1 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  cursor: pointer;
}
.exp-ad__skip:disabled {
  cursor: default;
  opacity: .82;
  border-color: rgba(255, 255, 255, .18);
}
.exp-ad__skip:not(:disabled):hover { background: rgba(0, 0, 0, .88); }

/* On a phone the countdown must not eat the frame. */
@media (max-width: 640px) {
  .exp-ad__foot { left: 8px; right: 8px; bottom: 8px; gap: 8px; }
  .exp-ad__skip { min-width: 82px; padding: 8px 11px; font-size: 12px; }
  .exp-ad__xp { height: 12px; border-width: 2px; }
  .exp-ad__badge { left: 8px; top: 8px; }
}
