.game-page .content-shell {
  width: min(1920px, calc(100% - 12px));
  margin-top: 6px;
  grid-template-columns: minmax(0, 1fr);
}

.game-page .main-content {
  width: min(1880px, 100%);
  justify-self: center;
}

.game-page .breadcrumb {
  margin-bottom: 4px;
}

.game-page .game-top-ad {
  padding-block: 10px 4px;
}

.game-play-layout {
  width: 100%;
  max-width: 100%;
}

.game-play-layout .player-stage {
  width: min(1280px, 100%, calc((100dvh - 120px) * var(--game-ratio, 1.3333)));
  max-width: 1280px;
  margin-inline: auto;
  padding: 6px;
  isolation: isolate;
  overflow: visible;
}

.player-toolbar {
  position: relative;
  z-index: 2;
  min-height: 26px;
  padding: 0 4px 6px;
}

.player-frame {
  position: relative;
  z-index: 2;
  box-shadow: 0 14px 44px rgba(0,0,0,.35);
}

.player-ambient {
  position: absolute;
  z-index: 1;
  inset: 34px -18px -18px;
  border-radius: 28px;
  background-position: center;
  background-size: cover;
  filter: blur(42px) saturate(1.55) contrast(1.05);
  opacity: .42;
  transform: scale(1.025);
  pointer-events: none;
}

.game-player-rail {
  display: none;
}

@media (min-width: 1260px) {
  .game-play-layout {
    --game-rail-width: 160px;
    --game-gap: clamp(6px, .5vw, 10px);

    display: grid;
    grid-template-columns: var(--game-rail-width) minmax(0, 1fr) var(--game-rail-width);
    gap: var(--game-gap);
    align-items: start;
    width: 100%;
    max-width: 100%;
    margin-inline: auto;
  }

  .game-play-layout .player-stage {
    width: min(1280px, 100%, calc((100dvh - 120px) * var(--game-ratio, 1.3333)));
    max-width: 1280px;
    margin-inline: 0;
    justify-self: center;
  }

  .game-player-rail {
    display: flex;
    width: var(--game-rail-width);
    min-height: 600px;
    align-self: start;
  }

  .game-player-rail-left { justify-self: start; }
  .game-player-rail-right { justify-self: end; }
}

@media (max-width: 1259px) {
  .game-play-layout .player-stage {
    width: min(100%, calc((100dvh - 140px) * var(--game-ratio, 1.3333)));
  }
}

@media (max-width: 760px) {
  .game-page .content-shell {
    width: min(100% - 12px, 1760px);
    margin-top: 8px;
  }

  .game-page .game-top-ad {
    padding-block: 2px 6px;
  }

  .game-play-layout .player-stage {
    width: 100%;
    padding: 5px;
  }

  .player-toolbar {
    min-height: 22px;
    padding-bottom: 4px;
  }

  .player-ambient {
    inset: 28px -6px -8px;
    filter: blur(28px) saturate(1.45);
    opacity: .34;
  }
}

@media (prefers-reduced-motion: reduce) {
  .player-ambient {
    transform: none;
  }
}
