.codex-ad-screen {
  position: absolute;
  z-index: 1;
  overflow: hidden;
  background: #000;
  border-radius: 3px;
  pointer-events: none;
  visibility: hidden;
}

.codex-ad-screen[data-positioned] { visibility: visible; }
.codex-ad-screen video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: brightness(.95) contrast(.98) saturate(.96) sepia(.06);
}
.codex-ad-screen::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .5), inset 0 0 12px rgba(0, 0, 0, .32);
  background:
    linear-gradient(225deg, rgba(255, 241, 218, .065), transparent 31%),
    radial-gradient(ellipse at 92% 4%, rgba(255, 214, 158, .075), transparent 36%);
}
.codex-ad-screen::after {
  content: "";
  position: absolute;
  top: 0;
  left: 44.7%;
  width: 10.6%;
  height: 3.3%;
  border-radius: 0 0 5px 5px;
  background: #080a09;
  z-index: 2;
}

.codex-ad-sound {
  position: absolute;
  z-index: 3;
  right: clamp(6px, 1.4%, 14px);
  bottom: clamp(6px, 2.2%, 14px);
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 9px;
  border: 1px solid rgba(255, 255, 255, .48);
  border-radius: 50%;
  color: #fff;
  background: rgba(10, 14, 16, .27);
  backdrop-filter: blur(9px);
  -webkit-backdrop-filter: blur(9px);
  box-shadow: inset 0 1px rgba(255, 255, 255, .18), 0 2px 8px rgba(0, 0, 0, .2);
  cursor: pointer;
  pointer-events: auto;
  transition: background .2s, border-color .2s;
}
.codex-ad-sound:hover { background: rgba(25, 30, 32, .52); border-color: rgba(255, 255, 255, .8); }
.codex-ad-sound:focus-visible { outline: 2px solid white; outline-offset: 2px; }
.codex-ad-sound svg { display: block; width: 100%; height: 100%; }
.codex-ad-sound[aria-pressed="false"] .sound-waves,
.codex-ad-sound[aria-pressed="true"] .sound-muted { display: none; }

