.site-sponsor { display: none; }

@media (min-width: 1680px) and (min-height: 640px) {
  #main:has(> .site-sponsor) {
    --sponsor-gap: 16px;
    position: relative;
    isolation: isolate;
  }

  #main:has(> .site-sponsor) .game > .sections {
    box-shadow: 0 0 0 var(--sponsor-gap) var(--bg);
    clip-path: inset(0 calc(-1 * var(--sponsor-gap)));
  }

  .site-sponsor {
    --sponsor-top: calc(var(--top) + var(--bar, 0px));
    --sponsor-half-center: calc(var(--shell) / 2 - var(--gut) + var(--sponsor-gap));
    --sponsor-left: calc(50% - var(--sponsor-half-center));
    --sponsor-right: calc(50% + var(--sponsor-half-center));
    display: block;
    position: absolute;
    inset: 0;
    z-index: 1;
    overflow: clip;
    pointer-events: none;
  }

  .site-sponsor-link {
    display: block;
    position: sticky;
    top: var(--sponsor-top);
    height: calc(100dvh - var(--sponsor-top));
    pointer-events: auto;
    /* A single link and image, with both the artwork and hit area cut around the content. */
    clip-path: polygon(
      0 0, var(--sponsor-left) 0, var(--sponsor-left) 100%, 0 100%, 0 0,
      var(--sponsor-right) 0, 100% 0, 100% 100%, var(--sponsor-right) 100%, var(--sponsor-right) 0
    );
  }

  .site-sponsor-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
  }

  .site-sponsor-link:focus-visible {
    outline-offset: -4px;
  }
}
