* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  background: #080b12;
  font-family: Arial, Helvetica, sans-serif;
}

.ad-page {
  background: #080b12;
  display: flex;
  flex-direction: column;
  gap: 0;
  min-height: 100vh;
  overflow-x: hidden;
  padding: 0;
  width: 100%;
}

.ad-stage {
  display: grid;
  gap: 0;
  grid-template-columns: 160px minmax(0, 1fr) 160px;
  width: 100%;
}

.ad-rail,
.center-column {
  align-content: start;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.ad-wall {
  align-items: start;
  display: grid;
  gap: 0;
  grid-auto-flow: dense;
  grid-auto-rows: 10px;
  grid-template-columns: repeat(auto-fill, 160px);
  justify-content: center;
  width: 100%;
}

.ad-cell,
.native-ad {
  background: #080b12;
  line-height: 0;
  max-width: 100%;
  overflow: auto hidden;
}

.wide-ad {
  text-align: center;
}

.ad-wall > .ad-cell {
  justify-self: stretch;
  text-align: center;
}

.ad-frame {
  border: 0;
  display: inline-block;
  max-width: none;
}

.native-ad {
  min-height: 180px;
  width: 100%;
}

.native-frame {
  border: 0;
  display: block;
  height: 260px;
  width: 100%;
}

.smartlink-ad {
  align-items: center;
  background: #172554;
  border: 0;
  color: #fff;
  display: flex;
  font-size: 14px;
  font-weight: 700;
  justify-content: center;
  min-height: 38px;
  padding: 6px 12px;
  text-align: center;
  text-decoration: none;
  width: 100%;
}

.smartlink-tile {
  align-items: center;
  align-self: stretch;
  background: linear-gradient(135deg, #1d4ed8, #7c3aed);
  color: #fff;
  display: flex;
  font-size: 12px;
  font-weight: 800;
  grid-column: span 1;
  grid-row: span 6;
  justify-content: center;
  line-height: 1.2;
  min-height: 60px;
  padding: 6px;
  text-align: center;
  text-decoration: none;
  width: 100%;
}

.converter-shell {
  align-self: center;
  background: #fff;
  display: flex;
  justify-content: center;
  line-height: 0;
  max-width: 728px;
  width: 100%;
}

.converter-frame {
  background: #fff;
  border: 0;
  display: block;
  height: 300px;
  max-width: 728px;
  width: 100%;
}

@media (max-width: 760px) {
  .ad-page {
    gap: 0;
    padding: 0;
  }

  .ad-stage {
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  .center-column {
    order: 1;
  }

  .ad-rail {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-evenly;
    order: 2;
  }

  .ad-wall,
  .center-column,
  .ad-rail {
    gap: 0;
  }

  .ad-wall {
    grid-template-columns: repeat(2, minmax(0, 160px));
  }

  .ad-wall > .oversize-ad {
    grid-column: 1 / -1 !important;
  }
}
