:root {
  --content-height: 100%;
}

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  overflow: hidden;
}

.column {
  display: flex;
  flex-direction: column;
  text-align: center;
}

.row {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  text-align: center;
  height: var(--content-height);
}

.row .col {
  flex: 10000 1 0%;
  width: auto;
  max-width: 100%;
  text-align: center;
}

.row .col-auto {
  flex: 0 0 auto;
  width: auto;
  max-width: 100%;
  text-align: center;
}

.content {
  height: 100% !important;
  width: 100% !important;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.desktop-ad-layout {
  display: grid;
  grid-template-areas: "game";
  grid-template-columns: minmax(0, 1fr);
  width: 100%;
  height: 100%;
  background: #f3f5f2;
}

.game-stage {
  grid-area: game;
  min-width: 0;
  height: 100%;
}

.game-stage > .row {
  width: 100%;
}

.ad-rail {
  display: none;
  height: 100%;
  align-items: center;
}

.ad-rail-left {
  grid-area: left-ad;
  justify-content: flex-end;
  padding-right: 150px;
}

.ad-rail-right {
  grid-area: right-ad;
  justify-content: flex-start;
  padding-left: 150px;
}

.ad-frame {
  width: 300px;
  height: 624px;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(32, 56, 39, 0.12);
  border-radius: 8px;
  box-shadow: 0 8px 28px rgba(32, 56, 39, 0.08);
}

.ad-label {
  height: 23px;
  color: #68736b;
  font: 10px/23px Arial, sans-serif;
  letter-spacing: 0.04em;
  text-align: center;
  text-transform: uppercase;
}

@media (min-width: 1200px) and (min-height: 680px) and (hover: hover) and (pointer: fine) {
  .desktop-ad-layout {
    grid-template-areas: "game right-ad";
    grid-template-columns: minmax(750px, 900px) 450px;
    justify-content: center;
  }

  .ad-rail-right {
    display: flex;
  }
}

@media (min-width: 1700px) and (min-height: 680px) and (hover: hover) and (pointer: fine) {
  .desktop-ad-layout {
    grid-template-areas: "left-ad game right-ad";
    grid-template-columns: 450px minmax(800px, 900px) 450px;
  }

  .ad-rail-left {
    display: flex;
  }
}

/* hide stray game list items from removed overlay */
li.relative.group { display: none !important; }
