/* Keep the original hero framing, copy, products and stored scene positioning. */
.portal-tv-media{pointer-events:auto!important}
.portal-tv-media portal-television{display:block;position:absolute;inset:0;width:100%;height:100%}
.portal-tv-media portal-television:not(:defined)>img{width:100%;height:100%;object-fit:cover;object-position:var(--desktop-x,38%) var(--desktop-y,40%);transform:scale(var(--desktop-zoom,1));transform-origin:var(--desktop-x,38%) var(--desktop-y,40%)}
.portal-tv-media .portal-scene-dim{pointer-events:none}
@media(max-width:800px){.portal-tv-media portal-television:not(:defined)>img{object-position:var(--mobile-x,38%) var(--mobile-y,38%);transform:scale(var(--mobile-zoom,1))}}

.portal-gamer-scene:has(portal-television) .portal-reference-shade{pointer-events:none;background:linear-gradient(90deg,transparent 42%,rgba(17,47,49,.25) 53%,rgba(17,47,49,.94) 66%),linear-gradient(0deg,#163438,transparent 5%)}
.portal-gamer-scene:has(portal-television) .portal-reference-copy{pointer-events:none}
.portal-gamer-scene:has(portal-television) .portal-reference-copy a,.portal-gamer-scene:has(portal-television) .portal-reference-copy button{pointer-events:auto}
@media(max-width:800px){.portal-gamer-scene:has(portal-television) .portal-reference-shade{background:linear-gradient(0deg,#163438,transparent 6%)}}

@media(max-width:800px){.portal-gamer-scene:has(portal-television) .portal-reference-copy{padding-top:calc(clamp(380px,100vw,570px) + 20px)}}

/* Give the television the space released by the half-width copy column. */
@media(min-width:801px){
 .portal-gamer-scene:has(portal-television){height:clamp(520px,calc(100svh - 94px),900px);min-height:520px;max-height:none}
 .portal-gamer-scene:has(portal-television) .portal-scene-media{right:23.5%}
 .portal-gamer-scene:has(portal-television) .portal-reference-copy{width:23.5%;max-width:none;padding:32px 1.5vw 110px 1vw}
 .portal-gamer-scene:has(portal-television) .portal-reference-copy h1{font-size:clamp(20px,2.5vw,44px);line-height:1.1;margin:22px auto 18px;overflow-wrap:normal}
 .portal-gamer-scene:has(portal-television) .portal-reference-description{font-size:clamp(14px,1.1vw,18px);line-height:1.5}
 .portal-gamer-scene:has(portal-television) .portal-hero-badge{font-size:10px;white-space:normal;line-height:1.5;padding:8px 10px}
 .portal-gamer-scene:has(portal-television) .portal-hero-actions{flex-direction:column;gap:10px}
 .portal-gamer-scene:has(portal-television) .portal-hero-actions .button{width:100%;font-size:13px;padding:14px 10px}
 .portal-gamer-scene:has(portal-television) .portal-hero-tabs{left:78%;right:1.5%;bottom:24px;gap:8px}
 .portal-gamer-scene:has(portal-television) .portal-hero-tabs a{font-size:11px}
 .portal-gamer-scene:has(portal-television) .portal-reference-shade{background:linear-gradient(90deg,transparent 76%,rgba(17,47,49,.96) 77%),linear-gradient(0deg,#163438,transparent 4%)}
}

/* Full scene fallback, with no crop or zoom. */
.portal-tv-media portal-television:not(:defined)>img{object-fit:contain;object-position:center;transform:none}

/* The former side panel now sits directly beneath the main navigation. */
.portal-gamer-top{position:relative;z-index:2;padding:18px 4% 16px;background:linear-gradient(110deg,#0a1719,#142f2b);border-bottom:1px solid #68864466;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:12px 28px}
.portal-gamer-top .portal-reference-copy{display:grid;grid-template-columns:minmax(250px,1fr) auto;align-items:center;gap:8px 30px;width:auto;max-width:none;padding:0}
.portal-gamer-top .portal-hero-badge{grid-column:1/-1;width:fit-content;font-size:9px;padding:4px 10px;letter-spacing:.1em}
.portal-gamer-top .portal-reference-copy h1{font-size:clamp(22px,2.3vw,36px);line-height:1.08;margin:0;max-width:none}
.portal-gamer-top .portal-reference-copy h1 br{display:none}
.portal-gamer-top .portal-reference-copy h1 em{display:block;font-size:.72em;margin-top:5px}
.portal-gamer-top .portal-reference-description{grid-column:1;font-size:12px;line-height:1.4;margin:0;padding:0;border:0;max-width:550px}
.portal-gamer-top .portal-hero-actions{grid-column:2;grid-row:2/4;display:flex;flex-wrap:wrap;justify-content:center;gap:8px;margin:0;max-width:340px}
.portal-gamer-top .portal-hero-actions .button{padding:10px 15px;font-size:12px;border-radius:10px}
.portal-gamer-top .portal-hero-note{display:none}
.portal-gamer-top .portal-hero-tabs{position:static;display:flex;flex-wrap:wrap;gap:8px;margin:0;max-width:195px}
.portal-gamer-top .portal-hero-tabs a{font-size:11px;width:100%;padding:5px 9px 5px 5px;gap:8px}
.portal-gamer-top .portal-hero-tabs img{width:42px;height:30px}
@media(min-width:801px){
 .portal-gamer-scene:has(portal-television) .portal-scene-media{right:0}
 .portal-gamer-scene:has(portal-television) .portal-reference-shade{background:linear-gradient(0deg,#163438,transparent 4%)}
}
@media(max-width:1000px){
 .portal-gamer-top{grid-template-columns:1fr;gap:12px;padding:16px 4%}
 .portal-gamer-top .portal-hero-tabs{max-width:none;justify-content:center}
 .portal-gamer-top .portal-hero-tabs a{width:auto}
}
@media(max-width:800px){
 .portal-gamer-top .portal-reference-copy{grid-template-columns:1fr;text-align:center;gap:10px}
 .portal-gamer-top .portal-hero-badge{margin:auto}
 .portal-gamer-top .portal-reference-copy h1{font-size:25px}
 .portal-gamer-top .portal-reference-description{margin:auto}
 .portal-gamer-top .portal-hero-actions{grid-column:1;grid-row:auto;max-width:none}
 .portal-gamer-scene:has(portal-television){height:clamp(380px,100vw,570px);min-height:0;padding:0}
}

/* Compact, centered navigation band returns vertical space to the cinema. */
@media(min-width:801px){
 .portal-gamer-top{display:flex;flex-wrap:wrap;justify-content:center;gap:8px 24px;padding:10px 3%}
 .portal-gamer-top .portal-reference-copy{display:contents}
 .portal-gamer-top .portal-hero-badge,.portal-gamer-top .portal-reference-description{display:none}
 .portal-gamer-top .portal-reference-copy h1{font-size:clamp(22px,2.1vw,30px);text-align:center;flex:0 1 auto}
 .portal-gamer-top .portal-reference-copy h1 em{font-size:.66em;margin-top:3px}
 .portal-gamer-top .portal-hero-actions{flex-wrap:nowrap;max-width:none;align-items:center;gap:8px}
 .portal-gamer-top .portal-hero-actions .button{white-space:nowrap;padding:10px 13px}
 .portal-gamer-top .portal-hero-tabs{display:flex;flex-wrap:nowrap;max-width:none;align-items:center;gap:8px}
 .portal-gamer-top .portal-hero-tabs a{width:auto;white-space:nowrap}
 .portal-gamer-top .portal-hero-tabs img{width:32px;height:30px}
 .portal-gamer-scene:has(portal-television){height:clamp(620px,calc(100svh + 6px),1000px);min-height:620px}
}
@media(max-width:800px){
 .portal-gamer-top{padding:10px 4%;gap:8px}
 .portal-gamer-top .portal-hero-badge,.portal-gamer-top .portal-reference-description{display:none}
 .portal-gamer-top .portal-hero-tabs{flex-wrap:nowrap;justify-content:center}
}

/* Portrait phones show the complete cinema at its natural aspect ratio. */
@media(max-width:800px){
 .portal-gamer-scene:has(portal-television){height:auto!important;aspect-ratio:2048/1776;min-height:0!important;max-height:none;padding:0;overflow:hidden}
 .portal-gamer-scene:has(portal-television) .portal-scene-media{inset:0!important;width:100%;height:100%!important}
 .portal-gamer-scene:has(portal-television) .portal-reference-shade{inset:0;height:100%;background:linear-gradient(0deg,#163438,transparent 3%)}
 .portal-gamer-top{padding:8px 12px;gap:8px}
 .portal-gamer-top .portal-reference-copy{gap:8px;min-width:0}
 .portal-gamer-top .portal-reference-copy h1{font-size:clamp(19px,5.4vw,27px);line-height:1.1}
 .portal-gamer-top .portal-reference-copy h1 em{font-size:.72em;margin-top:3px}
 .portal-gamer-top .portal-hero-actions{display:grid;grid-template-columns:1fr 1fr;gap:6px;width:100%;min-width:0}
 .portal-gamer-top .portal-hero-actions .button{display:flex;align-items:center;justify-content:center;padding:8px;min-height:44px;font-size:12px;white-space:normal}
 .portal-gamer-top .portal-hero-tabs{display:grid;grid-template-columns:1fr 1fr;gap:6px;width:100%;min-width:0}
 .portal-gamer-top .portal-hero-tabs a{width:100%;min-width:0;min-height:44px;font-size:11px;gap:6px;padding:5px;justify-content:center}
 .portal-gamer-top .portal-hero-tabs img{width:30px;height:28px;flex-shrink:0}
}

.portal-tv-media portal-television:not(:defined)>img{object-fit:cover;object-position:center;transform:none}

@media(max-width:800px) and (orientation:portrait),(pointer:coarse) and (max-device-width:600px) and (orientation:portrait){
 .portal-gamer-scene:has(portal-television){height:auto!important;aspect-ratio:1536/2250;min-height:0!important;max-height:none;padding:0}
 .portal-gamer-scene:has(portal-television) .portal-scene-media{inset:0!important;width:100%;height:100%!important}
 .portal-gamer-top{display:grid;grid-template-columns:1fr;padding:10px 3%;gap:8px}
 .portal-gamer-top .portal-reference-copy{display:grid;grid-template-columns:1fr;text-align:center;gap:8px}
 .portal-gamer-top .portal-hero-actions,.portal-gamer-top .portal-hero-tabs{display:grid;grid-template-columns:1fr 1fr;grid-column:1;grid-row:auto;max-width:none;width:100%;gap:8px}
 .portal-gamer-top .portal-hero-actions .button,.portal-gamer-top .portal-hero-tabs a{width:100%;justify-content:center;min-height:44px}
}

/* Landscape phones return to the wide room, with no portrait positions retained. */
@media(orientation:landscape) and (pointer:coarse) and (max-height:600px){
 .portal-gamer-scene:has(portal-television){height:calc(100svh - env(safe-area-inset-top) - env(safe-area-inset-bottom))!important;min-height:0!important;aspect-ratio:auto;max-height:none;padding:0}
 .portal-gamer-scene:has(portal-television) .portal-scene-media{inset:0!important;width:100%;height:100%!important}
 .portal-gamer-top{padding:6px 3%;gap:6px;display:flex;flex-wrap:wrap;justify-content:center}
 .portal-gamer-top .portal-reference-copy{display:contents}
 .portal-gamer-top .portal-reference-copy h1{font-size:20px}
 .portal-gamer-top .portal-hero-actions,.portal-gamer-top .portal-hero-tabs{display:flex;width:auto;max-width:none;gap:6px;flex-wrap:nowrap}
}

/* Native device orientation restores the approved phone layout even when Android retains a stale layout viewport. */
html[data-portal-phone="portrait"] .portal-gamer-scene:has(portal-television){height:auto!important;aspect-ratio:1536/2250;min-height:0!important;max-height:none;padding:0}
html[data-portal-phone="portrait"] .portal-gamer-scene:has(portal-television) .portal-scene-media{inset:0!important;width:100%;height:100%!important}
html[data-portal-phone="portrait"] .portal-gamer-top{display:grid;grid-template-columns:1fr;padding:10px 3%;gap:8px}
html[data-portal-phone="portrait"] .portal-gamer-top .portal-reference-copy{display:grid;grid-template-columns:1fr;text-align:center;gap:8px}
html[data-portal-phone="portrait"] .portal-gamer-top .portal-hero-actions,html[data-portal-phone="portrait"] .portal-gamer-top .portal-hero-tabs{display:grid;grid-template-columns:1fr 1fr;grid-column:1;grid-row:auto;max-width:none;width:100%;gap:8px}
html[data-portal-phone="portrait"] .portal-gamer-top .portal-hero-actions .button,html[data-portal-phone="portrait"] .portal-gamer-top .portal-hero-tabs a{width:100%;justify-content:center;min-height:44px}
html[data-portal-phone="landscape"] .portal-gamer-scene:has(portal-television){height:calc(100svh - env(safe-area-inset-top) - env(safe-area-inset-bottom))!important;min-height:0!important;aspect-ratio:auto;max-height:none;padding:0}
