.games-ad-slot,
.game-article-ad-slot {
  --game-ad-width: 728px;
  --game-ad-height: 90px;
  position: relative;
  display: grid;
  place-items: center;
  width: min(100%, var(--game-ad-width));
  height: var(--game-ad-height);
  min-height: var(--game-ad-height);
  margin: 18px auto;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 9px;
  background: #101114;
}

.games-ad-slot iframe,
.game-article-ad-slot iframe {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: transparent;
}

.games-ad-label,
.game-article-ad-label {
  position: absolute;
  z-index: 2;
  top: 5px;
  right: 6px;
  padding: 2px 5px;
  border-radius: 3px;
  background: #0009;
  color: #b9bdc6;
  font: 700 9px/1.3 Arial, sans-serif;
  letter-spacing: .04em;
  text-transform: uppercase;
  pointer-events: none;
}

.game-ad-format-320x50 { --game-ad-width: 320px; --game-ad-height: 50px; }
.game-ad-format-160x600 { --game-ad-width: 160px; --game-ad-height: 600px; }
.game-ad-format-160x300 { --game-ad-width: 160px; --game-ad-height: 300px; }
.game-ad-format-728x90 { --game-ad-width: 728px; --game-ad-height: 90px; }
.game-ad-format-468x60 { --game-ad-width: 468px; --game-ad-height: 60px; }
.game-ad-format-300x250 { --game-ad-width: 300px; --game-ad-height: 250px; }

.games-ad-slot.game-ad-format-300x250 {
  width: min(100%, 300px);
  height: 250px;
  min-height: 250px;
  align-self: center;
}

body.games-page-body .games-ad-slot.game-ad-format-300x250 {
  width: min(100%, 300px);
  height: 250px;
  min-height: 250px;
  aspect-ratio: auto;
}

.games-day-content-layout,
.games-day-content-main {
  min-width: 0;
}

.games-ad-side {
  display: none;
}

body.admin-dashboard-v2885 .games-ad-format-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  min-width: 0;
}

body.admin-dashboard-v2885 .games-ad-format-card {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  min-width: 0;
  margin: 0;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 12px;
  background: rgba(255, 255, 255, .025);
}

body.admin-dashboard-v2885 .games-ad-format-card legend {
  grid-column: 1 / -1;
  padding: 0 5px;
  color: #f4f5f7;
  font-weight: 800;
}

body.admin-dashboard-v2885 .games-ad-format-card label,
body.admin-dashboard-v2885 .games-ad-format-card textarea {
  min-width: 0;
  width: 100%;
}

.game-sponsored-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 10px;
  width: 100%;
  height: 100%;
  min-height: 250px;
  padding: 22px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 12px;
  background: radial-gradient(circle at 88% 12%, rgba(255,23,68,.26), transparent 38%), linear-gradient(145deg,#22242b,#101114 70%);
  color: #f7f7f8;
  text-decoration: none;
}

.game-sponsored-card:hover { border-color: rgba(255,23,68,.55); color: #fff; }
.game-sponsored-card-tag { position: absolute; top: 12px; right: 12px; padding: 4px 7px; border-radius: 4px; background: #0009; color: #d4d7dc; font-size: 9px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.game-sponsored-card strong { font-size: 1.15rem; line-height: 1.25; }
.game-sponsored-card small { color: #b9bdc6; font-size: .9rem; line-height: 1.45; }
.game-sponsored-card b { display: inline-flex; padding: 9px 14px; border-radius: 7px; background: #ff1744; color: #fff; font-size: .85rem; }
.game-sponsored-card-fallback { position: absolute; inset: 0; z-index: 3; }
.game-sponsored-card-fallback[hidden] { display: none; }
.game-sponsored-card-fallback .game-sponsored-card { border: 0; border-radius: 0; }

.games-sticky-ad {
  position: fixed;
  z-index: 1300;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 110px;
  padding: 10px 48px;
  border-top: 1px solid rgba(255,255,255,.16);
  background: rgba(17,17,19,.97);
  box-shadow: 0 -10px 36px rgba(0,0,0,.42);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.games-sticky-ad[hidden] { display: none !important; }
.games-sticky-ad-label { position: absolute; top: 5px; left: 10px; z-index: 4; color: #a8abb3; font: 700 9px/1.2 Arial,sans-serif; letter-spacing: .04em; text-transform: uppercase; pointer-events: none; }
.games-sticky-ad-close { position: absolute; z-index: 6; top: 8px; right: 9px; display: grid; place-items: center; width: 29px; height: 29px; padding: 0; border: 1px solid rgba(255,255,255,.2); border-radius: 50%; background: rgba(0,0,0,.72); color: #fff; font-size: 21px; line-height: 1; cursor: pointer; }
.games-sticky-ad-close:hover { background: #ff1744; }
.games-sticky-banner-slots { width: 100%; display: grid; place-items: center; }
.games-sticky-ad-banner .games-ad-slot { display: none; width: var(--game-ad-width); height: var(--game-ad-height); min-height: var(--game-ad-height); margin: 0 auto; border: 0; border-radius: 0; background: transparent; }
.games-sticky-ad-banner .games-ad-slot[hidden] { display: none !important; }
.games-sticky-ad-banner .games-ad-slot.is-selected { display: block; }
.games-sticky-ad-banner .games-ad-label { display: none; }
.games-sticky-ad-vast { min-height: 190px; padding: 12px 48px; }
.games-sticky-vast-player { position: relative; display: grid; place-items: center; width: min(100%, 760px); height: 166px; overflow: hidden; border-radius: 8px; background: #050506; }
.games-sticky-ad-vast .games-sticky-vast-player { align-self: center; justify-self: center; margin-inline: auto; }
.games-sticky-ad-vast .games-sticky-vast-player video { object-position: center center; }
.games-sticky-vast-player video { display: block; width: 100%; height: 100%; object-fit: contain; }
.games-sticky-vast-status { position: absolute; inset: 0; display: grid; place-items: center; padding: 20px; background: #0008; color: #fff; font-size: .9rem; font-weight: 700; text-align: center; }
.games-sticky-vast-status[hidden],.games-sticky-vast-play[hidden],.games-sticky-vast-skip[hidden],.games-sticky-vast-click[hidden] { display: none !important; }
.games-sticky-vast-play,.games-sticky-vast-skip,.games-sticky-vast-click,.games-sticky-vast-sound { position: absolute; z-index: 3; border: 1px solid rgba(255,255,255,.24); border-radius: 7px; background: rgba(0,0,0,.78); color: #fff; font-size: .78rem; font-weight: 800; text-decoration: none; cursor: pointer; }
.games-sticky-vast-play { left: 50%; top: 50%; padding: 10px 14px; transform: translate(-50%,-50%); }
.games-sticky-vast-skip { left: 10px; bottom: 9px; padding: 7px 10px; }
.games-sticky-vast-skip:disabled { opacity: .55; cursor: wait; }
.games-sticky-vast-click { right: 49px; bottom: 9px; padding: 7px 10px; }
.games-sticky-vast-sound { right: 9px; bottom: 9px; width: 32px; height: 32px; font-size: 15px; }
.game-vast-inline-ad {
  position: relative;
  width: min(100%, 760px);
  margin: 30px auto;
  padding: 28px 38px 16px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 12px;
  background: linear-gradient(145deg,#191a1e,#0d0e10);
  box-shadow: 0 8px 28px rgba(0,0,0,.3);
}
.game-vast-inline-label { position: absolute; top: 9px; left: 12px; z-index: 4; color: #a8abb3; font: 700 9px/1.2 Arial,sans-serif; letter-spacing: .04em; text-transform: uppercase; pointer-events: none; }
.game-vast-inline-ad .games-sticky-vast-player { width: 100%; max-width: none; height: auto; aspect-ratio: 16/9; }
.game-vast-inline-ad .games-sticky-vast-player video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.game-vast-inline-ad .game-vast-inline-close { top: 7px; right: 8px; }
.game-vast-inline-games { margin-block: 26px 34px; }
.game-vast-inline-article { margin-block: 32px; }
.game-sponsored-card-slot { overflow: hidden; }
body.games-page-body.has-games-sticky-ad,
body.game-article-page.has-games-sticky-ad { padding-bottom: 122px; }
body.games-page-body.has-games-sticky-vast,
body.game-article-page.has-games-sticky-vast { padding-bottom: 202px; }

@media (min-width: 1081px) {
  .game-ad-context-games-tablet-banner,
  .game-ad-context-games-mobile-banner,
  .game-ad-context-event-tablet-banner,
  .game-ad-context-event-mobile-banner { display: none !important; }
}

@media (min-width: 1380px) {
  .games-day-content-layout {
    display: grid;
    grid-template-columns: 160px minmax(0, 1fr) 160px;
    align-items: start;
    gap: 16px;
  }

  .games-ad-side {
    display: block;
    min-width: 0;
    align-self: stretch;
  }

  .games-ad-side .game-article-ad-slot {
    position: sticky;
    top: calc(var(--sh-header-height, 64px) + 18px);
    width: 160px;
    margin: 0 auto;
  }

  .games-sticky-ad-banner .game-ad-context-games-sticky-desktop { display: block; }
}

@media (min-width: 721px) and (max-width: 1080px) {
  .game-ad-context-games-desktop-banner,
  .game-ad-context-games-mobile-banner,
  .game-ad-context-event-desktop-banner,
  .game-ad-context-event-mobile-banner,
  .game-ad-format-160x600 { display: none !important; }
  .games-sticky-ad { min-height: 82px; padding: 10px 44px; }
  .games-sticky-ad-banner .game-ad-context-games-sticky-tablet { display: block; }
  .games-sticky-ad-vast { min-height: 150px; }
  .games-sticky-vast-player { height: 126px; }
  body.games-page-body.has-games-sticky-ad,
  body.game-article-page.has-games-sticky-ad { padding-bottom: 164px; }
  body.games-page-body.has-games-sticky-vast,
  body.game-article-page.has-games-sticky-vast { padding-bottom: 164px; }
}

@media (max-width: 720px) {
  .game-ad-context-games-desktop-banner,
  .game-ad-context-games-tablet-banner,
  .game-ad-context-event-desktop-banner,
  .game-ad-context-event-tablet-banner,
  .game-ad-format-160x600 { display: none !important; }

  .games-ad-slot,
  .game-article-ad-slot { margin-block: 14px; }

  .games-sticky-ad { min-height: 70px; padding: 9px 42px 8px; }
  .games-sticky-ad-banner .game-ad-context-games-sticky-mobile { display: block; }
  .games-sticky-ad-vast { min-height: 102px; }
  .games-sticky-vast-player { height: 78px; border-radius: 5px; }
  .games-sticky-vast-status { font-size: .72rem; }
  .games-sticky-vast-play { padding: 7px 10px; font-size: .7rem; }
  .games-sticky-vast-skip { left: 5px; bottom: 4px; padding: 5px 7px; font-size: .66rem; }
  .games-sticky-vast-click { right: 39px; bottom: 4px; padding: 5px 7px; font-size: .66rem; }
  .games-sticky-vast-sound { right: 4px; bottom: 4px; width: 29px; height: 29px; }
  .games-sticky-ad-close { top: 5px; right: 5px; width: 25px; height: 25px; font-size: 18px; }
  .game-vast-inline-ad { width: 100%; margin-block: 20px; padding: 28px 12px 12px; border-radius: 9px; }
  .game-vast-inline-ad .games-sticky-vast-player { height: auto; aspect-ratio: 16/9; border-radius: 5px; }
  .game-vast-inline-ad .games-sticky-vast-status { font-size: .72rem; }
  .game-vast-inline-ad .games-sticky-vast-play { padding: 7px 10px; font-size: .7rem; }
  .game-vast-inline-ad .games-sticky-vast-skip { left: 5px; bottom: 4px; padding: 5px 7px; font-size: .66rem; }
  .game-vast-inline-ad .games-sticky-vast-click { right: 39px; bottom: 4px; padding: 5px 7px; font-size: .66rem; }
  .game-vast-inline-ad .games-sticky-vast-sound { right: 4px; bottom: 4px; width: 29px; height: 29px; }
  body.games-page-body.has-games-sticky-ad,
  body.game-article-page.has-games-sticky-ad { padding-bottom: 114px; }
  body.games-page-body.has-games-sticky-vast,
  body.game-article-page.has-games-sticky-vast { padding-bottom: 114px; }

  body.admin-dashboard-v2885 .games-ad-format-grid,
  body.admin-dashboard-v2885 .games-ad-format-card { grid-template-columns: minmax(0, 1fr); }
}

@media print {
  .games-sticky-ad { display: none !important; }
}
