.ownedHero{min-height:clamp(430px,72vh,850px)}
.ownedHero .heroArt{inset:0}
.ownedHero .heroArt img{width:100%;height:100%;object-fit:cover;object-position:center}
.ownedHero:after{background:linear-gradient(90deg,#170f32 1%,#21153de8 28%,#20153785 59%,#1a102b25 96%)}
.ownedHero .heroCopy{padding-bottom:76px}
.ownedHero .dots{bottom:22px}
.ownedHero .controls button:focus-visible,.ownedHero .dot:focus-visible{outline:3px solid #d4ff42;outline-offset:4px}
.ownedGallery{margin-top:12px}
.ownedGallery .strip{display:flex;gap:10px;overflow-x:auto}
.ownedGallery button{padding:0;display:block;border-radius:9px;border:2px solid transparent;overflow:hidden;flex:0 0 auto}
.ownedGallery button[aria-current=true],.ownedGallery button:focus-visible{border-color:#90b82f}
.ownedGallery button img{display:block;width:clamp(100px,20vw,170px);height:auto}
@media (max-width:620px){.ownedHero{min-height:clamp(420px,68svh,680px)}.ownedHero .heroCopy{padding-inline:46px}.ownedHero:after{background:linear-gradient(90deg,#170f32eb 0%,#21153dc2 55%,#1a102b65 100%)}}

/* Give owned games a tall play surface on portrait phones without requesting fullscreen. */
@media (max-width:760px) and (orientation:portrait) {
  .player[open]:has(.player-screen > iframe[referrerpolicy="no-referrer"]) {
    position: fixed;
    inset: max(6px, env(safe-area-inset-top, 0px)) max(6px, env(safe-area-inset-right, 0px))
      max(6px, env(safe-area-inset-bottom, 0px)) max(6px, env(safe-area-inset-left, 0px));
    display: grid;
    grid-template-rows: auto minmax(0,1fr) auto;
    align-content: stretch;
    gap: 4px;
    box-sizing: border-box;
    width: auto;
    height: auto;
    max-height: none;
    margin: 0;
    padding: 4px;
    border-radius: 12px;
    overflow: hidden;
  }
  .player[open]:has(.player-screen > iframe[referrerpolicy="no-referrer"]) .player-header {
    min-width: 0;
    margin: 0;
    padding-inline: 6px 1px;
  }
  .player[open]:has(.player-screen > iframe[referrerpolicy="no-referrer"]) .player-header h2 {
    overflow: hidden;
    font-size: 17px;
    line-height: 1.2;
    white-space: nowrap;
    text-overflow: ellipsis;
  }
  .player[open]:has(.player-screen > iframe[referrerpolicy="no-referrer"]) .player-header .icon {
    width: 44px;
    height: 44px;
    padding: 0;
  }
  .player[open]:has(.player-screen > iframe[referrerpolicy="no-referrer"]) .player-screen:not(:fullscreen) {
    min-width: 0;
    min-height: 0;
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
    margin: 0;
    border-radius: 6px;
    overflow: hidden;
  }
  .player[open]:has(.player-screen > iframe[referrerpolicy="no-referrer"]) .player-tools {
    min-width: 0;
    margin: 0;
    gap: 4px;
  }
  .player[open]:has(.player-screen > iframe[referrerpolicy="no-referrer"]) .player-tools > * {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    padding: 4px 6px;
    font-size: 13px;
    text-align: center;
  }
  .player[open]:has(.player-screen > iframe[referrerpolicy="no-referrer"]) .player-help {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    clip-path: inset(50%);
    overflow: hidden;
    white-space: nowrap;
  }
}
