/* ==========================================================================
   2000sGaming dashboard themes: Windows XP (default), Xbox 360, PlayStation, Nintendo Wii.
   Active theme: html[data-sg-theme]. Colours are variables; glossy parts are a fixed white
   gloss over a theme colour, so colour changes fade smoothly.
   ========================================================================== */

/* ---------- Theme variables ---------- */
html[data-sg-theme] { --t-ease: cubic-bezier(.4,0,.2,1); --t-time: 1.1s; }
html[data-sg-theme="xp"]          { --t-nav: #2350e6; --t-nav-edge: #0c2a9e; --t-nav-glow: rgba(80,160,255,.6); --t-cur: #16b0f2; --t-cur-text: #fff; --t-navtext: #fff;
	--t-bar: #2e4fe6; --t-ring: rgba(70,110,240,.55); --t-primary: #6ccc12; --t-primary-text: #102000; --t-card-ring: #3b7bff; --t-card-glow: rgba(70,150,255,.55); --t-name: #fff; --t-sub: #eaf3ff; --t-page: #1f5ff0; --t-head: #14245e; }
html[data-sg-theme="xbox"]        { --t-nav: #56b400; --t-nav-edge: #2d6a00; --t-nav-glow: rgba(160,255,40,.55); --t-cur: #c3ff3c; --t-cur-text: #1a3a00; --t-navtext: #fff;
	--t-bar: #5bb800; --t-ring: rgba(120,210,20,.6); --t-primary: #8fe000; --t-primary-text: #102000; --t-card-ring: #96e81e; --t-card-glow: rgba(160,255,40,.6); --t-name: #1c1f26; --t-sub: #262a33; --t-page: #c9cdd2; --t-head: #1f3a06; }
html[data-sg-theme="playstation"] { --t-nav: #0a2a8e; --t-nav-edge: #031243; --t-nav-glow: rgba(60,140,255,.6); --t-cur: #2f7dff; --t-cur-text: #fff; --t-navtext: #e8f1ff;
	--t-bar: #0d2f9a; --t-ring: rgba(60,130,255,.65); --t-primary: #2f7dff; --t-primary-text: #fff; --t-card-ring: #2f7dff; --t-card-glow: rgba(60,140,255,.6); --t-name: #fff; --t-sub: #cfe0ff; --t-page: #030a2a; --t-head: #0b1f5c; }
html[data-sg-theme="xbox-og"]     { --t-nav: #0e4d05; --t-nav-edge: #052603; --t-nav-glow: rgba(120,255,40,.55); --t-cur: #6ff01f; --t-cur-text: #0b2a02; --t-navtext: #d6ffbe;
	--t-bar: #137f02; --t-ring: rgba(110,240,30,.6); --t-primary: #6ff01f; --t-primary-text: #0b2a02; --t-card-ring: #5ee014; --t-card-glow: rgba(130,255,40,.6); --t-name: #eaffd8; --t-sub: #b9f59a; --t-page: #0a3a05; --t-head: #0d3d05; }
html[data-sg-theme="wii"]         { --t-nav: #eef8ff; --t-nav-edge: #9fd4f0; --t-nav-glow: rgba(120,210,255,.55); --t-cur: #34bef0; --t-cur-text: #fff; --t-navtext: #2479b0;
	--t-bar: #39b4ec; --t-ring: rgba(80,190,240,.55); --t-primary: #34bef0; --t-primary-text: #fff; --t-card-ring: #6fd0f7; --t-card-glow: rgba(110,205,250,.55); --t-name: #1d4f7a; --t-sub: #3a6a90; --t-page: #dff1fc; --t-head: #1d4f7a; }

html[data-sg-theme] { background-color: var(--t-page); transition: background-color var(--t-time) var(--t-ease); }
html[data-sg-theme] body { background: transparent !important; }
.xp-sky { display: none !important; } /* replaced by #sg-bg */

/* ---------- Background layers ---------- */
#sg-bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; contain: strict; }
.sg-bg__layer { position: absolute; inset: 0; overflow: hidden; opacity: 0; visibility: hidden; background: center / cover no-repeat;
	transition: opacity 1.4s var(--t-ease, ease), visibility 0s linear 1.4s; }
html[data-sg-theme="xp"] .sg-bg__layer--xp, html[data-sg-theme="xbox"] .sg-bg__layer--xbox,
html[data-sg-theme="playstation"] .sg-bg__layer--playstation, html[data-sg-theme="wii"] .sg-bg__layer--wii, html[data-sg-theme="xbox-og"] .sg-bg__layer--xbox-og { opacity: 1; visibility: visible; z-index: 1; transition: opacity 1.4s var(--t-ease, ease), visibility 0s; }
/* Images load only for the active theme (and stay once loaded, so the crossfade has both). */
.sg-bg__layer.is-loaded, html[data-sg-theme="xp"] .sg-bg__layer--xp, html[data-sg-theme="xbox"] .sg-bg__layer--xbox,
html[data-sg-theme="playstation"] .sg-bg__layer--playstation, html[data-sg-theme="wii"] .sg-bg__layer--wii, html[data-sg-theme="xbox-og"] .sg-bg__layer--xbox-og { background-image: var(--bg); }
@media (max-width: 899px) {
	.sg-bg__layer.is-loaded, html[data-sg-theme="xp"] .sg-bg__layer--xp, html[data-sg-theme="xbox"] .sg-bg__layer--xbox,
	html[data-sg-theme="playstation"] .sg-bg__layer--playstation, html[data-sg-theme="wii"] .sg-bg__layer--wii, html[data-sg-theme="xbox-og"] .sg-bg__layer--xbox-og { background-image: var(--bg-sm); }
	.sg-bg__layer--xp { background-position: 30% 40%; }
}
.sg-bg__layer--xp { background-position: center 40%; }
/* Inner pages: a soft veil keeps text readable on any background */
body:not(.xp-page):not(.gh-page) #sg-bg::after { content: ""; position: absolute; inset: 0; z-index: 2; background: rgba(244,247,252,.72); }
.gh-page #sg-bg::after { content: none; }


/* ---------- Ambient animations ----------
   Images never move; only these overlays do. Ribbons change shape through SVG (eased keyframes,
   synced to the clock by themes.js). Everything else uses slow sine-like easing, several
   properties at once and different periods (19–97 s), so the motion never looks like it repeats.
   Delays use --sgp (seconds since a fixed point) so motion continues across pages. */
.sg-bg__layer > * { position: absolute; pointer-events: none; }
#sg-bg .sg-bg__layer *, #sg-bg .sg-bg__layer *::before { animation-play-state: paused; }
html[data-sg-theme="xp"] #sg-bg .sg-bg__layer--xp *, html[data-sg-theme="xbox"] #sg-bg .sg-bg__layer--xbox *,
html[data-sg-theme="playstation"] #sg-bg .sg-bg__layer--playstation *, html[data-sg-theme="wii"] #sg-bg .sg-bg__layer--wii *, html[data-sg-theme="xbox-og"] #sg-bg .sg-bg__layer--xbox-og * { animation-play-state: running; }
.sg-bg__layer i { position: absolute; inset: 0; border-radius: inherit; }
.ov-ribbons { inset: 0; width: 100%; height: 100%; max-width: none; overflow: visible; }
.sg-bg__layer--xbox .ov-ribbons, .sg-bg__layer--playstation .ov-ribbons, .sg-bg__layer--wii .ov-ribbons {
	animation: ov-sway 71s cubic-bezier(.45,0,.55,1) infinite alternate; animation-delay: calc(var(--sgp, 0s) * 1); }
@keyframes ov-sway { 0% { transform: translate3d(-1.5%, 0, 0) scaleY(1); } 50% { transform: translate3d(.5%, -1%, 0) scaleY(1.04); } 100% { transform: translate3d(1.5%, .6%, 0) scaleY(.97); } }
@keyframes ov-breathe { 0%, 100% { opacity: var(--o1, .3); } 50% { opacity: var(--o2, .7); } }
@keyframes ov-drift-a { 0% { translate: 0 0; } 33% { translate: 1.6vw -1.2vh; } 66% { translate: -1vw .8vh; } 100% { translate: 0 0; } }
@keyframes ov-drift-b { 0% { translate: 0 0; } 25% { translate: -1.2vw -.6vh; } 60% { translate: .9vw -1.6vh; } 100% { translate: 0 0; } }
@keyframes ov-turn { 0%, 100% { rotate: -5deg; scale: 1; } 50% { rotate: 5deg; scale: 1.06; } }
.ov-ease { animation-timing-function: cubic-bezier(.45,0,.55,1); }

/* Windows XP: wisps drift and fade very slowly; a faint sun glow breathes. */
.ov-sun { top: -30%; left: -15%; width: 70vw; height: 70vw; border-radius: 50%; background: radial-gradient(closest-side, rgba(255,250,225,.5), rgba(255,250,225,0)); --o1: .35; --o2: .8;
	animation: ov-breathe 37s cubic-bezier(.45,0,.55,1) infinite; animation-delay: var(--sgp, 0s); }
.ov-cloud { border-radius: 50%; background: radial-gradient(closest-side, rgba(255,255,255,.5), rgba(255,255,255,.18) 55%, rgba(255,255,255,0)); filter: blur(8px); --o1: .25; --o2: .85;
	animation: ov-cloud 97s cubic-bezier(.45,0,.55,1) infinite alternate, ov-breathe 41s cubic-bezier(.45,0,.55,1) infinite; animation-delay: var(--sgp, 0s), calc(var(--sgp, 0s) - 9s); }
@keyframes ov-cloud { from { translate: -4vw 0; } to { translate: 5vw -.6vh; } }
.ov-cloud--1 { top: 10%; left: 6%; width: 30vw; height: 6.5vw; }
.ov-cloud--2 { top: 27%; left: 55%; width: 24vw; height: 5vw; animation-duration: 83s, 47s; animation-delay: calc(var(--sgp, 0s) - 30s), calc(var(--sgp, 0s) - 21s); }
.ov-cloud--3 { top: 5%; left: 72%; width: 20vw; height: 4.4vw; animation-duration: 109s, 36s; animation-delay: calc(var(--sgp, 0s) - 55s), calc(var(--sgp, 0s) - 4s); }
.ov-cloud--4 { top: 18%; left: 30%; width: 16vw; height: 3.6vw; --o2: .55; animation-duration: 89s, 53s; animation-delay: calc(var(--sgp, 0s) - 70s), calc(var(--sgp, 0s) - 33s); }

/* Soft light bloom (Xbox / PlayStation): drifts and fades, never a hard sweep. */
.ov-bloom { width: 55vw; height: 40vh; border-radius: 50%; --o1: 0; --o2: .55;
	animation: ov-bloom 53s cubic-bezier(.45,0,.55,1) infinite alternate, ov-breathe 29s cubic-bezier(.45,0,.55,1) infinite; animation-delay: var(--sgp, 0s), calc(var(--sgp, 0s) - 7s); }
@keyframes ov-bloom { from { translate: -10vw 0; } to { translate: 40vw -4vh; } }
.ov-bloom--xbox { top: 52%; left: 0; background: radial-gradient(closest-side, rgba(225,255,170,.55), rgba(225,255,170,0)); }
.ov-bloom--ps { top: 38%; left: 5%; background: radial-gradient(closest-side, rgba(150,200,255,.4), rgba(150,200,255,0)); }

/* Xbox 360 rings: glide on two axes and gently breathe. */
.ov-ring { border-radius: 50%; animation: ov-drift-a 47s cubic-bezier(.45,0,.55,1) infinite; animation-delay: var(--sgp, 0s); }
.ov-ring i { border: 2px solid rgba(255,255,255,.6); box-shadow: inset 0 0 22px rgba(190,255,90,.2), 0 0 14px rgba(190,255,90,.2); --o1: .45; --o2: 1;
	animation: ov-breathe 23s cubic-bezier(.45,0,.55,1) infinite, ov-turn 31s cubic-bezier(.45,0,.55,1) infinite; animation-delay: calc(var(--sgp, 0s) - 5s), var(--sgp, 0s); }
.ov-ring--1 { top: 22%; left: 38%; width: 9vw; height: 9vw; }
.ov-ring--2 { top: 58%; left: 64%; width: 6vw; height: 6vw; animation-name: ov-drift-b; animation-duration: 59s; animation-delay: calc(var(--sgp, 0s) - 20s); }
.ov-ring--2 i { animation-duration: 27s, 37s; }
.ov-ring--3 { top: 9%; left: 71%; width: 4vw; height: 4vw; animation-duration: 41s; animation-delay: calc(var(--sgp, 0s) - 12s); }
.ov-ring--3 i { animation-duration: 19s, 43s; }

/* PlayStation particles: rise slowly with a gentle sideways sway, fading in and out. */
.ov-dot { bottom: -3vh; width: 3px; height: 3px; animation: ov-rise 46s linear infinite; }
.ov-dot i { border-radius: 50%; background: #d8e8ff; box-shadow: 0 0 6px 1px rgba(140,185,255,.8); animation: ov-sway-x 9s cubic-bezier(.45,0,.55,1) infinite alternate; }
@keyframes ov-rise { 0% { transform: translateY(0); opacity: 0; } 12% { opacity: .5; } 80% { opacity: .35; } 100% { transform: translateY(-80vh); opacity: 0; } }
@keyframes ov-sway-x { from { translate: -14px 0; } to { translate: 14px 0; } }
.ov-dot--1 { left: 4%; animation-duration: 44s; animation-delay: calc(var(--sgp, 0s) - 25s); } .ov-dot--1 i { animation-duration: 13s; }
.ov-dot--2 { left: 10%; animation-duration: 41s; animation-delay: calc(var(--sgp, 0s) - 52s); } .ov-dot--2 i { animation-duration: 11s; }
.ov-dot--3 { left: 18%; animation-duration: 47s; animation-delay: calc(var(--sgp, 0s) - 37s); } .ov-dot--3 i { animation-duration: 7s; }
.ov-dot--4 { left: 30%; animation-duration: 44s; animation-delay: calc(var(--sgp, 0s) - 2s); } .ov-dot--4 i { animation-duration: 7s; }
.ov-dot--5 { left: 37%; animation-duration: 50s; animation-delay: calc(var(--sgp, 0s) - 4s); } .ov-dot--5 i { animation-duration: 8s; }
.ov-dot--6 { left: 42%; animation-duration: 53s; animation-delay: calc(var(--sgp, 0s) - 27s); } .ov-dot--6 i { animation-duration: 7s; }
.ov-dot--7 { left: 54%; animation-duration: 41s; animation-delay: calc(var(--sgp, 0s) - 14s); } .ov-dot--7 i { animation-duration: 13s; }
.ov-dot--8 { left: 62%; animation-duration: 41s; animation-delay: calc(var(--sgp, 0s) - 36s); } .ov-dot--8 i { animation-duration: 11s; }
.ov-dot--9 { left: 69%; animation-duration: 41s; animation-delay: calc(var(--sgp, 0s) - 14s); } .ov-dot--9 i { animation-duration: 7s; }
.ov-dot--10 { left: 78%; animation-duration: 44s; animation-delay: calc(var(--sgp, 0s) - 18s); } .ov-dot--10 i { animation-duration: 10s; }
.ov-dot--11 { left: 83%; animation-duration: 53s; animation-delay: calc(var(--sgp, 0s) - 7s); } .ov-dot--11 i { animation-duration: 11s; }
.ov-dot--12 { left: 92%; animation-duration: 53s; animation-delay: calc(var(--sgp, 0s) - 52s); } .ov-dot--12 i { animation-duration: 13s; }

/* Nintendo Wii: breathing light; squares float, tilt and fade at their own pace. */
.ov-light { inset: 0; background: radial-gradient(60% 50% at 45% 40%, rgba(255,255,255,.8), rgba(255,255,255,0) 70%); --o1: .25; --o2: .75;
	animation: ov-breathe 34s cubic-bezier(.45,0,.55,1) infinite; animation-delay: var(--sgp, 0s); }
.ov-sq { border-radius: 26%; animation: ov-drift-a 43s cubic-bezier(.45,0,.55,1) infinite; animation-delay: var(--sgp, 0s); }
.ov-sq i { border: 2px solid rgba(255,255,255,.9); background: linear-gradient(160deg, rgba(255,255,255,.45), rgba(200,235,255,.12)); box-shadow: 0 0 16px rgba(255,255,255,.55), inset 0 0 12px rgba(255,255,255,.4); --o1: .35; --o2: .95;
	animation: ov-turn 29s cubic-bezier(.45,0,.55,1) infinite, ov-breathe 21s cubic-bezier(.45,0,.55,1) infinite; animation-delay: var(--sgp, 0s), calc(var(--sgp, 0s) - 6s); }
.ov-sq--1 { top: 34%; left: 30%; width: 3.4vw; height: 3.4vw; }
.ov-sq--2 { top: 16%; left: 48%; width: 2.2vw; height: 2.2vw; animation-name: ov-drift-b; animation-duration: 53s; animation-delay: calc(var(--sgp, 0s) - 17s); } .ov-sq--2 i { animation-duration: 37s, 25s; }
.ov-sq--3 { top: 46%; left: 64%; width: 4.2vw; height: 4.2vw; animation-duration: 61s; animation-delay: calc(var(--sgp, 0s) - 33s); } .ov-sq--3 i { animation-duration: 33s, 19s; }
.ov-sq--4 { top: 70%; left: 12%; width: 2.6vw; height: 2.6vw; animation-name: ov-drift-b; animation-duration: 47s; animation-delay: calc(var(--sgp, 0s) - 8s); } .ov-sq--4 i { animation-duration: 41s, 23s; }
.ov-sq--5 { top: 8%; left: 86%; width: 2vw; height: 2vw; animation-duration: 57s; animation-delay: calc(var(--sgp, 0s) - 25s); } .ov-sq--5 i { animation-duration: 27s, 31s; }

/* Xbox OG: the stage is sized exactly like the cover background, so percentages land on the orb. */
.sg-bg__layer--xbox-og { background-image: none !important; background-color: #0a3a05; }
.og-stage { left: 50%; top: 50%; width: max(100%, 176.47vh); height: max(100%, 56.67vw); transform: translate(-50%, -50%); background: center / 100% 100% no-repeat; }
.sg-bg__layer--xbox-og.is-loaded .og-stage, html[data-sg-theme="xbox-og"] .og-stage { background-image: var(--bg); }
@media (max-width: 899px) { .sg-bg__layer--xbox-og.is-loaded .og-stage, html[data-sg-theme="xbox-og"] .og-stage { background-image: var(--bg-sm); } }
.og-stage > * { position: absolute; left: 50.1%; top: 34.3%; translate: -50% -50%; border-radius: 50%; pointer-events: none; }
.og-core { width: 30%; aspect-ratio: 1; background: radial-gradient(closest-side, rgba(250,255,170,.85), rgba(200,255,70,.45) 45%, rgba(120,255,30,0) 75%); mix-blend-mode: screen;
	animation: og-pulse 4.8s cubic-bezier(.45,0,.55,1) infinite; animation-delay: var(--sgp, 0s); }
@keyframes og-pulse { 0%, 100% { opacity: .25; scale: .9; } 45% { opacity: .95; scale: 1.06; } }
.og-halo { width: 35.6%; aspect-ratio: 1; box-shadow: 0 0 0 3px rgba(160,255,80,.75), 0 0 30px 6px rgba(120,255,40,.55), inset 0 0 30px 4px rgba(120,255,40,.4); opacity: 0;
	animation: og-ripple 4.8s cubic-bezier(.2,.6,.3,1) infinite; animation-delay: calc(var(--sgp, 0s) + 2.1s); }
.og-halo--2 { animation-delay: calc(var(--sgp, 0s) - .3s); animation-duration: 9.6s; }
@keyframes og-ripple { 0% { opacity: 0; scale: .98; } 12% { opacity: .75; } 100% { opacity: 0; scale: 1.5; } }
.og-sparks { width: 44%; aspect-ratio: 1; animation: og-spin 90s linear infinite; animation-delay: var(--sgp, 0s); }
@keyframes og-spin { to { rotate: 360deg; } }
.og-spark { position: absolute; width: 4px; height: 4px; border-radius: 50%; background: #eaffb0; box-shadow: 0 0 8px 2px rgba(170,255,60,.8); --o1: .1; --o2: .9;
	animation: ov-breathe 3.4s cubic-bezier(.45,0,.55,1) infinite; }
.og-spark--1 { left: 8%; top: 30%; animation-delay: calc(var(--sgp,0s) - .4s); } .og-spark--2 { left: 22%; top: 6%; animation-duration: 4.1s; } .og-spark--3 { left: 78%; top: 9%; animation-delay: calc(var(--sgp,0s) - 1.7s); }
.og-spark--4 { left: 95%; top: 42%; animation-duration: 5.2s; } .og-spark--5 { left: 84%; top: 82%; animation-delay: calc(var(--sgp,0s) - 2.2s); } .og-spark--6 { left: 50%; top: 99%; animation-duration: 4.6s; }
.og-spark--7 { left: 14%; top: 80%; animation-delay: calc(var(--sgp,0s) - 3s); } .og-spark--8 { left: 2%; top: 58%; animation-duration: 3.9s; width: 3px; height: 3px; } .og-spark--9 { left: 62%; top: 1%; animation-duration: 6s; width: 3px; height: 3px; }
.og-spark--10 { left: 98%; top: 64%; animation-delay: calc(var(--sgp,0s) - 1s); width: 3px; height: 3px; }
.og-vignette { inset: 0; background: radial-gradient(75% 70% at 50% 35%, rgba(0,0,0,0) 55%, rgba(0,25,0,.45)); --o1: .6; --o2: 1; animation: ov-breathe 9.6s cubic-bezier(.45,0,.55,1) infinite; animation-delay: var(--sgp, 0s); }
/* Profile card skin: dark green glass with a pulsing orb glow. */
.hp-skin--xbox-og { background: radial-gradient(90% 120% at 80% 0%, #2a8a12 0%, #0e4a06 45%, #052602 100%); overflow: hidden; }
.hp-skin__orb { position: absolute; right: -6%; top: -40%; width: 46%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, rgba(230,255,140,.7), rgba(120,255,40,.25) 55%, rgba(120,255,40,0)); box-shadow: 0 0 0 3px rgba(140,255,60,.35);
	animation: og-pulse 4.8s cubic-bezier(.45,0,.55,1) infinite; animation-delay: var(--sgp, 0s); }
@media (prefers-reduced-motion: reduce) { .hp-skin__orb { animation: none; } }
html.sg-calm .hp-skin__orb { animation: none; }

@media (max-width: 699.98px) { .og-spark:nth-child(n+7) { display: none; } .ov-dot:nth-child(n+9), .ov-ring--3, .ov-sq--5, .ov-cloud--3, .ov-cloud--4 { display: none; } .ov-sq { scale: 1.6; } .ov-ring { scale: 1.5; } }
@media (prefers-reduced-motion: reduce) { .sg-bg__layer *, .sg-bg__layer *::before { animation: none !important; } .sg-bg__layer { transition-duration: .01ms; } }
html.sg-calm .sg-bg__layer * { animation: none !important; }

/* ---------- Themed interface (homepage, shop, games page) ---------- */
html[data-sg-theme] .hp-nav ul { background: linear-gradient(180deg, rgba(255,255,255,.55) 0%, rgba(255,255,255,.08) 48%, rgba(0,0,0,.1) 52%, rgba(255,255,255,.12) 100%) var(--t-nav);
	box-shadow: inset 0 2px 0 rgba(255,255,255,.55), 0 0 0 2px var(--t-nav-edge), 0 0 0 4px rgba(255,255,255,.55), 0 0 18px var(--t-nav-glow), 0 6px 14px rgba(0,20,90,.3);
	transition: background-color var(--t-time) var(--t-ease), box-shadow var(--t-time) var(--t-ease); }
html[data-sg-theme] .hp-nav__btn { color: var(--t-navtext); transition: color var(--t-time) var(--t-ease), background-color 180ms ease, transform 180ms ease, box-shadow 180ms ease; }
html[data-sg-theme="wii"] .hp-nav__btn:not(.is-current) { text-shadow: none; }
html[data-sg-theme] .hp-nav__btn.is-current { color: var(--t-cur-text); background: linear-gradient(180deg, rgba(255,255,255,.75) 0%, rgba(255,255,255,.15) 45%, rgba(0,0,0,.06) 58%, rgba(255,255,255,.2) 100%) var(--t-cur);
	box-shadow: inset 0 2px 0 rgba(255,255,255,.9), 0 0 0 2px rgba(255,255,255,.85), 0 0 16px 3px var(--t-nav-glow); transition: background-color var(--t-time) var(--t-ease), color var(--t-time) var(--t-ease); }
html[data-sg-theme="xbox"] .hp-nav__btn.is-current, html[data-sg-theme="xbox-og"] .hp-nav__btn.is-current { text-shadow: none; }
html[data-sg-theme] .xp-win__bar { --bar: linear-gradient(180deg, rgba(255,255,255,.5) 0%, rgba(255,255,255,.08) 46%, rgba(0,0,0,.12) 54%, rgba(255,255,255,.1) 100%) var(--t-bar); transition: background-color var(--t-time) var(--t-ease); }
html[data-sg-theme] .hp-sec, html[data-sg-theme] .shop-browse, html[data-sg-theme] .shop-desc, html[data-sg-theme] .shop-related { box-shadow: 0 0 0 3px #fff, 0 0 0 6px var(--t-ring), 0 16px 34px rgba(0,20,80,.25); transition: box-shadow var(--t-time) var(--t-ease); }
html[data-sg-theme] .hp-sec__title .xp-i { color: var(--t-bar); transition: color var(--t-time) var(--t-ease); }
html[data-sg-theme] .hp-more { background: linear-gradient(180deg, rgba(255,255,255,.55) 0%, rgba(255,255,255,.08) 48%, rgba(0,0,0,.1) 52%, rgba(255,255,255,.1) 100%) var(--t-bar); transition: background-color var(--t-time) var(--t-ease); }
html[data-sg-theme] .hp-video { box-shadow: inset 0 0 0 1px rgba(255,255,255,.5), 0 0 0 3px var(--t-nav-edge), 0 0 0 5px rgba(255,255,255,.8), 0 0 0 7px var(--t-bar), 0 0 30px var(--t-nav-glow), 0 18px 34px rgba(0,20,80,.45); transition: box-shadow var(--t-time) var(--t-ease); }
html[data-sg-theme] .shop-tab.is-current, html[data-sg-theme] .gh-nav__link.is-current, html[data-sg-theme] .gh-genre.is-current, html[data-sg-theme] .gh-pg.is-current {
	background: linear-gradient(180deg, rgba(255,255,255,.65) 0%, rgba(255,255,255,.12) 45%, rgba(0,0,0,.06) 58%, rgba(255,255,255,.18) 100%) var(--t-cur); color: var(--t-cur-text); transition: background-color var(--t-time) var(--t-ease); }
html[data-sg-theme="xbox"] .shop-tab.is-current, html[data-sg-theme="xbox"] .gh-nav__link.is-current, html[data-sg-theme="xbox"] .gh-genre.is-current, html[data-sg-theme="xbox"] .gh-pg.is-current { text-shadow: none; }
html[data-sg-theme="xbox"] .gh-nav__link.is-current .xp-i, html[data-sg-theme="xbox"] .gh-genre.is-current .gh-genre__icon, html[data-sg-theme="xbox"] .gh-genre.is-current .gh-genre__count { color: var(--t-cur-text); }
html[data-sg-theme] .gh-title { padding: 4px 16px 4px 8px; border-radius: 999px; background: rgba(255,255,255,.88); box-shadow: 0 2px 10px rgba(0,20,80,.15); }
.sg-header { transition: box-shadow var(--t-time, 1s); }
html[data-sg-theme] .sg-header::after { background: var(--t-card-ring); transition: background-color var(--t-time) var(--t-ease); }

/* ---------- Gamer profile card: one skin per theme (layout unchanged) ---------- */
html[data-sg-theme] .hp-card { background: transparent;
	box-shadow: inset 0 2px 0 rgba(255,255,255,.6), 0 0 0 clamp(5px, .5vw, 8px) var(--t-card-ring), 0 0 0 clamp(7px, .7vw, 11px) rgba(255,255,255,.75), 0 0 40px var(--t-card-glow), 0 18px 40px rgba(30,40,60,.3);
	transition: box-shadow var(--t-time) var(--t-ease); }
.hp-skin { position: absolute; inset: 0; opacity: 0; transition: opacity var(--t-time, 1.1s) var(--t-ease, ease); }
html[data-sg-theme="xp"] .hp-skin--xp, html[data-sg-theme="xbox"] .hp-skin--xbox, html[data-sg-theme="playstation"] .hp-skin--playstation, html[data-sg-theme="wii"] .hp-skin--wii, html[data-sg-theme="xbox-og"] .hp-skin--xbox-og { opacity: 1; }
.hp-skin--xp { background: linear-gradient(180deg, #7fb2ff 0%, #3f78f0 40%, #2558dc 52%, #3d72ec 100%); }
.hp-skin__shine { position: absolute; left: 2%; right: 2%; top: 2%; height: 42%; border-radius: 40px 40px 50% 50% / 40px 40px 30% 30%; background: linear-gradient(180deg, rgba(255,255,255,.55), rgba(255,255,255,.05)); }
.hp-skin--xbox { background: linear-gradient(165deg, #ffffff 0%, #f1f3f6 38%, #dde2e8 100%); }
.hp-skin--playstation { background: radial-gradient(80% 90% at 70% 20%, #1c4fd8 0%, #0b2a7a 45%, #041238 100%); }
.hp-skin--playstation .hp-card__wave--mid { position: absolute; left: 0; bottom: 0; width: 100%; height: 70%; max-width: none; filter: drop-shadow(0 0 6px rgba(90,160,255,.7)); }
.hp-skin--wii { background: linear-gradient(180deg, #ffffff 0%, #f3faff 55%, #dcf1fc 100%); }
.hp-skin__sq { position: absolute; border-radius: 28%; border: 2px solid rgba(120,200,240,.45); background: rgba(190,230,252,.25); }
.hp-skin__sq--1 { right: 6%; top: 10%; width: 90px; height: 90px; } .hp-skin__sq--2 { right: 20%; bottom: 8%; width: 54px; height: 54px; } .hp-skin__sq--3 { left: 4%; bottom: 14%; width: 70px; height: 70px; }
html[data-sg-theme] .hp-card__name { color: var(--t-name); transition: color var(--t-time) var(--t-ease); }
html[data-sg-theme] .hp-card__status { color: var(--t-sub); transition: color var(--t-time) var(--t-ease); }
html[data-sg-theme="xp"] .hp-card__name, html[data-sg-theme="playstation"] .hp-card__name, html[data-sg-theme="xbox-og"] .hp-card__name { text-shadow: 0 2px 6px rgba(0,10,50,.45); }
html[data-sg-theme] .hp-card::after { background: linear-gradient(180deg, transparent, rgba(150,160,180,.6) 20%, rgba(150,160,180,.6) 80%, transparent); }
html[data-sg-theme] .hp-act.is-primary { color: var(--t-primary-text); background: linear-gradient(180deg, rgba(255,255,255,.75) 0%, rgba(255,255,255,.12) 48%, rgba(0,0,0,.06) 52%, rgba(255,255,255,.25) 100%) var(--t-primary);
	box-shadow: inset 0 2px 0 rgba(255,255,255,.85), 0 0 0 2px var(--t-card-ring), 0 0 18px var(--t-card-glow); transition: background-color var(--t-time) var(--t-ease), color var(--t-time) var(--t-ease), box-shadow var(--t-time) var(--t-ease); }
html[data-sg-theme] .hp-act.is-primary .xp-i { color: inherit; }
html[data-sg-theme] .hp-act:not(:disabled):hover, html[data-sg-theme] .hp-act:not(:disabled):focus-visible { box-shadow: inset 0 2px 0 #fff, 0 0 0 2.5px var(--t-card-ring), 0 0 16px var(--t-card-glow); }
html[data-sg-theme] .hp-card__avatar .sg-gamerpic { box-shadow: inset 0 0 0 2px rgba(255,255,255,.85), 0 0 0 4px #fff, 0 0 0 7px var(--t-card-ring), 0 0 20px var(--t-card-glow), 0 10px 22px rgba(20,30,60,.3); transition: box-shadow var(--t-time) var(--t-ease); }

/* ---------- Settings → Dashboard Appearance ---------- */
#dlg-themes { width: min(640px, calc(100vw - 20px)); }
#dlg-themes .xp-win__body { max-height: min(78vh, 760px); overflow-y: auto; }
.sg-appear { margin-bottom: 16px; }
.sg-appear__title { margin: 4px 0 10px; font-size: 18px; font-weight: 900; color: #14245e; }
.sg-appear__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.sg-tcard { position: relative; display: grid; gap: 6px; padding: 6px 6px 8px; border-radius: 16px; text-align: left; background: #fff; box-shadow: inset 0 0 0 2px #d6defa, 0 3px 8px rgba(20,40,110,.12); transition: transform 160ms ease, box-shadow 160ms ease; cursor: pointer; }
.sg-tcard:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 2px #8fb6ff, 0 6px 12px rgba(20,40,110,.18); }
.sg-tcard__img { display: block; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 11px; background: #e6ebf3; }
.sg-tcard__img img { width: 100%; height: 100%; object-fit: cover; }
.sg-tcard__name { font-weight: 900; font-size: 15px; color: #14245e; padding: 0 4px; }
.sg-tcard__name small { font-weight: 700; color: #5a6a99; }
.sg-tcard__check { position: absolute; top: 12px; right: 12px; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; font-weight: 900; color: #fff; background: #3dbb18; box-shadow: 0 0 0 3px #fff, 0 2px 6px rgba(0,0,0,.3); opacity: 0; transform: scale(.6); transition: opacity 160ms, transform 160ms; }
.sg-tcard.is-selected { box-shadow: inset 0 0 0 3px #3dbb18, 0 0 14px rgba(80,200,40,.45); }
.sg-tcard.is-selected .sg-tcard__check { opacity: 1; transform: none; }
.sg-tcard:focus-visible { outline: 3px solid #2b55e0; outline-offset: 3px; }
.sg-appear__actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.sg-appear__hint { display: block; font-size: 12.5px; font-weight: 700; color: #5a6a99; }
.sg-appear__msg { margin: 6px 0 0; min-height: 1.2em; font-weight: 800; color: #2e8a0c; }

/* ---------- Change Gamer Picture ---------- */
.sg-picdlg { width: min(760px, calc(100vw - 20px)); }
.sg-picdlg .xp-win__body { max-height: min(82vh, 780px); overflow-y: auto; }
.sg-picdlg__top { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 16px; align-items: center; margin-bottom: 12px; }
.sg-picdlg__preview { display: grid; gap: 6px; justify-items: center; }
.sg-picdlg__preview .sg-gamerpic { width: 128px; }
.sg-picdlg__label { margin: 0; font-weight: 900; color: #14245e; text-align: center; }
.sg-picdlg__tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.sg-picdlg__tab, .sg-picdlg__random { min-height: 42px; padding: 0 16px; border-radius: 999px; font-weight: 900; color: #1d2c66; background: #eef2fb; box-shadow: inset 0 0 0 1.5px #c3d0ee; cursor: pointer; }
.sg-picdlg__tab[aria-selected="true"] { color: #fff; background: #2b55e0; box-shadow: inset 0 2px 0 rgba(255,255,255,.5), 0 0 10px rgba(60,120,255,.5); }
.sg-picdlg__random[aria-pressed="true"] { color: #fff; background: #3dbb18; }
.sg-picdlg__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 8px; }
.sg-picdlg__grid[hidden] { display: none; }
.sg-picdlg__pic { aspect-ratio: 1; padding: 0; overflow: hidden; border-radius: 18%; background: #e6ebf3; box-shadow: 0 0 0 2px #c9d3e6; cursor: pointer; transition: transform 140ms ease, box-shadow 140ms ease; }
.sg-picdlg__pic img { width: 100%; height: 100%; object-fit: cover; }
.sg-picdlg__pic:hover { transform: translateY(-2px); box-shadow: 0 0 0 2px #8fb6ff; }
.sg-picdlg__pic[aria-pressed="true"] { box-shadow: 0 0 0 3px #fff, 0 0 0 6px #3dbb18, 0 0 12px rgba(80,200,40,.5); }
.sg-picdlg__pic:focus-visible { outline: 3px solid #2b55e0; outline-offset: 3px; }
@media (max-width: 520px) {
	.sg-appear__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.sg-picdlg__top { grid-template-columns: 1fr; }
	.sg-picdlg__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.sg-appear__grid { gap: 8px; }
	.sg-tcard__name { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) { html[data-sg-theme], html[data-sg-theme] * { transition-duration: .01ms !important; } }

/* Five profile buttons: on tablets the odd one out spans the row. */
@media (max-width: 1100px) and (min-width: 700px) { .hp-card__actions > :last-child:nth-child(odd) { grid-column: 1 / -1; } }
.hp-skin__orb { animation-play-state: paused; }
html[data-sg-theme="xbox-og"] .hp-skin__orb { animation-play-state: running; }

/* ==========================================================================
   Menu bar + channel buttons (All Games / Shop / Videos / Community), per theme.
   Windows XP keeps the original colourful buttons.
   ========================================================================== */
html[data-sg-theme]:not([data-sg-theme="xp"]) .hp-ch { transition: transform 200ms ease, box-shadow 300ms ease, filter 200ms ease, color 400ms ease; }
html[data-sg-theme]:not([data-sg-theme="xp"]) .hp-nav__btn::after { opacity: .5; }
html[data-sg-theme="xbox"] .hp-nav li + li, html[data-sg-theme="wii"] .hp-nav li + li { position: relative; }
html[data-sg-theme="xbox"] .hp-nav li + li::before, html[data-sg-theme="wii"] .hp-nav li + li::before { content: ""; position: absolute; left: -2px; top: 22%; bottom: 22%; width: 1px; background: rgba(60,70,80,.2); }

/* --- Xbox 360 --- */
html[data-sg-theme="xbox"] .hp-nav ul { background: linear-gradient(180deg, #ffffff 0%, #eef0f2 50%, #d9dce0 100%);
	box-shadow: inset 0 2px 0 #fff, inset 0 -2px 0 #9ee620, 0 0 0 2px rgba(255,255,255,.95), 0 0 0 3.5px rgba(150,220,40,.75), 0 0 16px rgba(160,240,40,.45), 0 8px 16px rgba(30,40,20,.25); }
html[data-sg-theme="xbox"] .hp-nav__btn { color: #3a3e45; text-shadow: 0 1px 0 #fff; }
html[data-sg-theme="xbox"] .hp-nav__btn .xp-i { filter: none; }
html[data-sg-theme="xbox"] .hp-nav__btn.is-current { color: #fff; text-shadow: 0 1px 2px rgba(20,60,0,.6); background: linear-gradient(180deg, #a8f04a 0%, #5fc010 48%, #3f9a00 54%, #62c018 100%);
	box-shadow: inset 0 2px 0 rgba(255,255,255,.6), 0 0 0 1.5px #3a8a00, 0 0 12px rgba(140,230,30,.7); }
html[data-sg-theme="xbox"] .hp-nav__btn:not(.is-current):hover { background: rgba(140,220,40,.15); box-shadow: none; }
html[data-sg-theme="xbox"] .hp-ch { color: #3a3e45; text-shadow: 0 1px 0 #fff, 0 2px 3px rgba(0,0,0,.15);
	background: linear-gradient(180deg, #ffffff 0%, #f2f3f5 45%, #e0e3e7 100%);
	box-shadow: inset 0 2px 0 #fff, inset 0 0 0 2px rgba(255,255,255,.9), 0 0 0 3px #8edc1a, 0 0 0 4.5px #4f9e00, 0 0 18px rgba(160,240,40,.5), 0 10px 18px rgba(30,50,10,.28); }
html[data-sg-theme="xbox"] .hp-ch::before { top: 3%; height: 40%; background: linear-gradient(180deg, rgba(255,255,255,.95), rgba(255,255,255,.1)); }
html[data-sg-theme="xbox"] .hp-ch::after { left: -2%; right: -2%; bottom: -2%; height: 38%; border-radius: 0;
	background: radial-gradient(140% 120% at 0% 0%, rgba(0,0,0,0) 64%, rgba(255,255,255,.95) 64.6%, #c4f553 66%, #7cd114 74%, #3f9a00 100%); }
html[data-sg-theme="xbox"] .hp-ch__icon { color: #45494f; filter: drop-shadow(0 1px 0 #fff) drop-shadow(0 2px 2px rgba(0,0,0,.2)); }
html[data-sg-theme="xbox"] .hp-ch:hover, html[data-sg-theme="xbox"] .hp-ch:focus-visible { filter: none; box-shadow: inset 0 2px 0 #fff, 0 0 0 3px #b4ff3a, 0 0 0 5px #5fbf00, 0 0 26px 4px rgba(170,255,40,.7), 0 13px 20px rgba(30,50,10,.3); }

/* --- PlayStation --- */
html[data-sg-theme="playstation"] .hp-nav ul { background: linear-gradient(180deg, rgba(20,45,140,.9), rgba(4,14,60,.92));
	box-shadow: inset 0 1px 0 rgba(170,205,255,.4), 0 0 0 2px #3d8bff, 0 0 18px 3px rgba(50,130,255,.6), 0 8px 18px rgba(0,5,30,.5); }
html[data-sg-theme="playstation"] .hp-nav__btn { color: #f2f6ff; }
html[data-sg-theme="playstation"] .hp-nav__btn.is-current { color: #fff; background: linear-gradient(180deg, #5fa2ff 0%, #2a6ef0 48%, #1550d8 54%, #2f75f0 100%);
	box-shadow: inset 0 1px 0 rgba(255,255,255,.55), 0 0 0 1.5px #7fb6ff, 0 0 16px 3px rgba(60,140,255,.8); }
html[data-sg-theme="playstation"] .hp-nav__btn:not(.is-current):hover { background: rgba(80,150,255,.2); box-shadow: none; }
html[data-sg-theme="playstation"] .hp-ch { color: #fff; text-shadow: 0 0 10px rgba(120,180,255,.6), 0 2px 3px rgba(0,0,40,.6);
	background: linear-gradient(165deg, rgba(0,0,0,0) 55%, rgba(110,170,255,.28) 62%, rgba(0,0,0,0) 64%, rgba(0,0,0,0) 72%, rgba(110,170,255,.18) 76%, rgba(0,0,0,0) 79%), linear-gradient(180deg, #102f8c 0%, #081d62 55%, #051340 100%);
	box-shadow: inset 0 1px 0 rgba(200,225,255,.45), inset 0 0 22px rgba(60,130,255,.3), 0 0 0 2px #4a95ff, 0 0 18px 3px rgba(50,130,255,.65), 0 12px 22px rgba(0,5,30,.55); }
html[data-sg-theme="playstation"] .hp-ch::before { top: 2%; height: 40%; background: linear-gradient(180deg, rgba(180,210,255,.25), rgba(180,210,255,0)); }
html[data-sg-theme="playstation"] .hp-ch::after { display: none; }
html[data-sg-theme="playstation"] .hp-ch__icon { color: #eef4ff; filter: drop-shadow(0 0 6px rgba(120,180,255,.7)); }
html[data-sg-theme="playstation"] .hp-ch:hover, html[data-sg-theme="playstation"] .hp-ch:focus-visible { filter: brightness(1.12); box-shadow: inset 0 1px 0 rgba(200,225,255,.5), inset 0 0 26px rgba(80,150,255,.4), 0 0 0 2px #8fc0ff, 0 0 28px 6px rgba(70,150,255,.85), 0 14px 22px rgba(0,5,30,.55); }

/* --- Nintendo Wii --- */
html[data-sg-theme="wii"] .hp-nav ul { background: linear-gradient(180deg, #ffffff, #f2f6f9);
	box-shadow: inset 0 2px 0 #fff, 0 0 0 2px #74c9f2, 0 0 0 4px rgba(255,255,255,.8), 0 0 14px rgba(110,200,245,.4), 0 8px 16px rgba(40,90,130,.15); }
html[data-sg-theme="wii"] .hp-nav__btn { color: #575b61; text-shadow: none; }
html[data-sg-theme="wii"] .hp-nav__btn .xp-i { filter: none; }
html[data-sg-theme="wii"] .hp-nav__btn.is-current { color: #1f7cc8; background: linear-gradient(180deg, #f0faff 0%, #c4e8fb 50%, #a6dbf7 100%);
	box-shadow: inset 0 2px 0 #fff, 0 0 0 1.5px #5fc0f0, 0 0 10px rgba(90,190,240,.45); }
html[data-sg-theme="wii"] .hp-nav__btn:not(.is-current):hover { background: rgba(110,200,245,.14); box-shadow: none; }
html[data-sg-theme="wii"] .hp-ch { color: #575b61; text-shadow: 0 1px 0 #fff, 0 2px 3px rgba(0,0,0,.12);
	background: linear-gradient(180deg, #ffffff 0%, #f7f9fb 55%, #eef2f5 100%);
	box-shadow: inset 0 2px 0 #fff, inset 0 0 0 2px rgba(255,255,255,.95), 0 0 0 2.5px #74c9f2, 0 0 14px rgba(110,200,245,.4), 0 10px 18px rgba(40,90,130,.16); }
html[data-sg-theme="wii"] .hp-ch::before { left: 0; right: 0; top: 0; height: 52%; border-radius: 0 0 50% 50% / 0 0 22% 22%; background: linear-gradient(180deg, rgba(255,255,255,1), rgba(255,255,255,.6)); }
html[data-sg-theme="wii"] .hp-ch::after { display: none; }
html[data-sg-theme="wii"] .hp-ch__icon { color: #5a5e64; filter: drop-shadow(0 1px 0 #fff); }
html[data-sg-theme="wii"] .hp-ch:hover, html[data-sg-theme="wii"] .hp-ch:focus-visible { filter: none; box-shadow: inset 0 2px 0 #fff, 0 0 0 3px #4fc2f2, 0 0 22px 4px rgba(90,195,245,.6), 0 13px 20px rgba(40,90,130,.2); }

/* --- Xbox OG: slanted glass tiles with a glowing lime frame --- */
html[data-sg-theme="xbox-og"] .hp-nav ul { background: linear-gradient(180deg, rgba(14,40,10,.95), rgba(3,12,2,.95));
	box-shadow: inset 0 1px 0 rgba(160,255,80,.25), 0 0 0 1.5px rgba(120,230,40,.7), 0 0 16px rgba(100,255,30,.4), 0 8px 18px rgba(0,0,0,.5); }
html[data-sg-theme="xbox-og"] .hp-nav__btn { color: #ecffe2; }
html[data-sg-theme="xbox-og"] .hp-nav__btn.is-current { color: #fff; text-shadow: 0 1px 2px rgba(0,40,0,.7); background: linear-gradient(180deg, #a6ff5a 0%, #55d40f 48%, #2f9800 54%, #4fc80e 100%);
	box-shadow: inset 0 1px 0 rgba(255,255,255,.5), 0 0 0 1.5px #8cff2a, 0 0 16px 3px rgba(110,255,30,.7); }
html[data-sg-theme="xbox-og"] .hp-nav__btn:not(.is-current):hover { background: rgba(110,255,30,.14); box-shadow: none; }
html[data-sg-theme="xbox-og"] .hp-ch { --skew: -11deg; transform: skewX(var(--skew)); border-radius: clamp(10px, 1vw, 16px); color: #fff; text-shadow: 0 2px 4px rgba(0,0,0,.7);
	background: linear-gradient(160deg, rgba(120,230,60,.35) 0%, rgba(40,110,20,.25) 30%, rgba(0,0,0,0) 55%), linear-gradient(180deg, #0f2e0b 0%, #061a05 60%, #030d02 100%);
	box-shadow: inset 0 1px 0 rgba(200,255,140,.45), inset 0 0 16px rgba(110,255,30,.18), 0 0 0 2.5px #7af02a, 0 0 18px 3px rgba(110,255,30,.55), 0 12px 22px rgba(0,0,0,.55); }
html[data-sg-theme="xbox-og"] .hp-ch > * { transform: skewX(calc(var(--skew) * -1)); }
html[data-sg-theme="xbox-og"] .hp-ch::before { top: 3%; height: 38%; background: linear-gradient(180deg, rgba(200,255,150,.22), rgba(200,255,150,0)); }
html[data-sg-theme="xbox-og"] .hp-ch::after { display: none; }
html[data-sg-theme="xbox-og"] .hp-ch__icon { color: #a4ff4a; filter: drop-shadow(0 0 6px rgba(130,255,40,.6)) drop-shadow(0 2px 2px rgba(0,0,0,.5)); }
html[data-sg-theme="xbox-og"] .hp-ch:hover, html[data-sg-theme="xbox-og"] .hp-ch:focus-visible { transform: skewX(var(--skew)) translateY(-3px); filter: brightness(1.12);
	box-shadow: inset 0 1px 0 rgba(200,255,140,.55), inset 0 0 22px rgba(110,255,30,.28), 0 0 0 2.5px #b0ff6a, 0 0 30px 6px rgba(120,255,40,.75), 0 14px 22px rgba(0,0,0,.55); }
@media (max-width: 699.98px) { html[data-sg-theme="xbox-og"] .hp-ch { --skew: -7deg; } }
@media (prefers-reduced-motion: reduce) { html[data-sg-theme="xbox-og"] .hp-ch:hover { transform: skewX(var(--skew)); } }

/* Profile buttons on the dark themes: glass instead of white pills */
html[data-sg-theme="playstation"] .hp-act:not(.is-primary), html[data-sg-theme="xbox-og"] .hp-act:not(.is-primary) { color: #fff; background: rgba(255,255,255,.1); box-shadow: inset 0 1px 0 rgba(255,255,255,.3), 0 0 0 1.5px var(--t-card-ring); }
html[data-sg-theme="playstation"] .hp-act:not(.is-primary) .xp-i, html[data-sg-theme="xbox-og"] .hp-act:not(.is-primary) .xp-i { color: var(--t-cur); }
html[data-sg-theme="playstation"] .hp-act small, html[data-sg-theme="xbox-og"] .hp-act small { color: rgba(255,255,255,.65); }

/* Video backgrounds: the still image underneath shows until the video is playing. */
.sg-bg__video { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; opacity: 0; transition: opacity .9s ease; pointer-events: none; }
.sg-bg__layer.has-video .sg-bg__video { opacity: 1; }
.sg-bg__layer.has-video > :not(.sg-bg__video) { visibility: hidden; transition: visibility 0s linear 1s; } /* the video already moves; no extra overlay */

/* iPhone Safari: a `flex: 1` (0% basis) body inside a dialog without a fixed height collapses.
   Size dialog bodies from their content instead, capped to the screen and scrollable. */
.xp-dlg[open] { flex-direction: column; height: auto; }
.xp-dlg[open] > .xp-win__bar, .xp-dlg[open] > header { flex: none; }
.xp-dlg .xp-win__body { flex: 1 1 auto; min-height: 0; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
#dlg-themes .xp-win__body, .sg-picdlg .xp-win__body { max-height: calc(100svh - 110px); }
@supports not (height: 100svh) { #dlg-themes .xp-win__body, .sg-picdlg .xp-win__body { max-height: calc(100vh - 140px); } }
@media (max-width: 520px) {
	#dlg-themes, .sg-picdlg { width: calc(100vw - 16px); max-height: calc(100svh - 24px); }
	#dlg-themes .xp-win__body, .sg-picdlg .xp-win__body { padding: 14px; max-height: none; }
	.sg-tcard { padding: 5px 5px 7px; }
}

/* ---------- Sticky top bar (appears when scrolling) matches the theme ---------- */
html[data-sg-theme] .hp-top { transition: background-color var(--t-time) var(--t-ease), box-shadow var(--t-time) var(--t-ease); }
html[data-sg-theme="xbox"] .hp-top.is-stuck { background: linear-gradient(180deg, rgba(250,251,252,.94) 0%, rgba(222,226,231,.92) 100%);
	box-shadow: inset 0 -3px 0 #8edc1a, 0 0 18px rgba(150,230,40,.35), 0 6px 18px rgba(30,40,20,.25); }
html[data-sg-theme="xbox"] .hp-top.is-stuck .hp-radio-btn__label { color: #3a3e45; text-shadow: none; }
html[data-sg-theme="xbox-og"] .hp-top.is-stuck { background: linear-gradient(180deg, rgba(10,32,8,.94) 0%, rgba(3,14,2,.94) 100%);
	box-shadow: inset 0 -2px 0 #6ff01f, 0 0 20px rgba(100,255,30,.35), 0 6px 18px rgba(0,0,0,.5); }
html[data-sg-theme="playstation"] .hp-top.is-stuck { background: linear-gradient(180deg, rgba(14,40,130,.94) 0%, rgba(3,12,52,.94) 100%);
	box-shadow: inset 0 -2px 0 #3d8bff, 0 0 20px rgba(50,130,255,.4), 0 6px 18px rgba(0,5,30,.5); }
html[data-sg-theme="wii"] .hp-top.is-stuck { background: linear-gradient(180deg, rgba(255,255,255,.95) 0%, rgba(232,244,251,.94) 100%);
	box-shadow: inset 0 -2.5px 0 #74c9f2, 0 0 16px rgba(110,200,245,.35), 0 6px 18px rgba(40,90,130,.18); }
html[data-sg-theme="wii"] .hp-top.is-stuck .hp-radio-btn__label { color: #3a6a90; text-shadow: none; }
html[data-sg-theme]:not([data-sg-theme="xp"]) .hp-top.is-stuck .hp-logo__badge { box-shadow: 0 0 0 2px rgba(255,255,255,.85), 0 0 14px var(--t-nav-glow); }

/* ==========================================================================
   Phones: let the console background breathe. Glass panels, a compact
   channel row, a slimmer profile card, and open space between blocks.
   ========================================================================== */
@media (max-width: 699.98px) {
	/* a window of pure background under the top bar */
	html[data-sg-theme] .hp-hero { margin-top: 16vh; }
	/* compact single row of channel buttons */
	html[data-sg-theme] .hp-channels { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 18px; }
	html[data-sg-theme] .hp-ch { aspect-ratio: 1; min-height: 0; padding: 6px 2px; gap: 3px; font-size: 11.5px; border-radius: 16px; }
	html[data-sg-theme] .hp-ch__icon { font-size: 26px; }
	html[data-sg-theme="xbox-og"] .hp-ch { --skew: -5deg; }
	/* glass panels instead of solid white */
	html[data-sg-theme] .hp-sec { margin: 9vh 14px 0; background: rgba(255,255,255,.58); -webkit-backdrop-filter: blur(14px) saturate(1.3); backdrop-filter: blur(14px) saturate(1.3);
		box-shadow: inset 0 1px 0 rgba(255,255,255,.8), 0 0 0 1.5px rgba(255,255,255,.7), 0 0 0 3px var(--t-ring), 0 10px 24px rgba(0,20,60,.22); }
	html[data-sg-theme] .hp-sec + .hp-sec { margin-top: 7vh; }
	html[data-sg-theme="playstation"] .hp-sec, html[data-sg-theme="xbox-og"] .hp-sec { background: rgba(255,255,255,.5); }
	/* slimmer profile card: picture beside the name, two-column buttons */
	html[data-sg-theme] .hp-profile { margin-top: 9vh; }
	html[data-sg-theme] .hp-card { grid-template-columns: 104px minmax(0, 1fr); justify-items: start; text-align: left; column-gap: 14px; row-gap: 12px; padding: 16px 14px; }
	html[data-sg-theme] .hp-card__avatar { grid-column: 1; grid-row: 1; width: 104px; height: auto; }
	html[data-sg-theme] .hp-card__who { grid-column: 2; grid-row: 1; align-self: center; }
	html[data-sg-theme] .hp-card__name { font-size: 26px; }
	html[data-sg-theme] .hp-card__status { justify-content: flex-start; }
	html[data-sg-theme] .hp-card::after { display: none; }
	html[data-sg-theme] .hp-card__actions { grid-column: 1 / -1; grid-row: 2; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
	html[data-sg-theme] .hp-act { min-height: 42px; padding: 0 12px; column-gap: 8px; font-size: 13px; }
	html[data-sg-theme] .hp-act small { display: none; }
	html[data-sg-theme] .hp-act.is-primary { grid-column: 1 / -1; }
	html[data-sg-theme] .hp-skin { opacity: 0; }
	html[data-sg-theme="xp"] .hp-skin--xp, html[data-sg-theme="xbox"] .hp-skin--xbox, html[data-sg-theme="xbox-og"] .hp-skin--xbox-og,
	html[data-sg-theme="playstation"] .hp-skin--playstation, html[data-sg-theme="wii"] .hp-skin--wii { opacity: .8; }
	html[data-sg-theme] .hp-card { -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
	/* the video window: a little smaller so the background frames it */
	html[data-sg-theme] .hp-video { margin-left: 10px; margin-right: 10px; }
}

/* ==========================================================================
   v2.10 — calmer sizing: slimmer menu bars and smaller buttons everywhere.
   ========================================================================== */
html[data-sg-theme] .hp-logo { width: clamp(150px, 14vw, 250px); }
html[data-sg-theme] .hp-idog { width: clamp(70px, 5.4vw, 100px); }
html[data-sg-theme] .hp-nav { max-width: 860px; justify-self: center; width: 100%; }
html[data-sg-theme] .hp-nav ul { padding: 4px; }
html[data-sg-theme] .hp-nav__btn { min-height: 36px; font-size: clamp(13px, .95vw, 15px); padding: 0 .8em; }
html[data-sg-theme] .hp-nav__btn .xp-i { font-size: 1.15em; }
/* homepage channel buttons: a neat row, not giant tiles */
html[data-sg-theme] .hp-channels { width: min(100%, 860px); gap: clamp(8px, 1vw, 14px); }
html[data-sg-theme] .hp-ch { aspect-ratio: 2.15; font-size: clamp(14px, 1.05vw, 17px); gap: 4px; border-radius: clamp(12px, 1vw, 16px); }
html[data-sg-theme] .hp-ch__icon { font-size: clamp(24px, 2vw, 34px); }
/* profile card buttons */
html[data-sg-theme] .hp-card__actions { gap: 8px; }
html[data-sg-theme] .hp-act { min-height: 42px; font-size: 15px; padding: 0 16px; column-gap: 10px; }
html[data-sg-theme] .hp-act small { font-size: 11px; }
html[data-sg-theme] .hp-card__name { font-size: clamp(30px, 3vw, 48px); }
/* "View all" style buttons */
html[data-sg-theme] .hp-more { padding: 5px 14px; font-size: 13.5px; }
/* Games / shop pages */
html[data-sg-theme] .gh-nav__link { min-height: 44px; flex-direction: row; gap: 7px; padding: 4px 12px; font-size: 15px; }
html[data-sg-theme] .gh-nav__link .xp-i { font-size: 1.15em; }
html[data-sg-theme] .gh-genre { min-height: 42px; padding: 6px 14px; font-size: 16px; gap: 10px; border-radius: 12px; }
html[data-sg-theme] .gh-search { min-height: 46px; }
html[data-sg-theme] .shop-tab { min-height: 36px; font-size: 14px; padding: 0 14px; }
@media (max-width: 699.98px) {
	html[data-sg-theme] .hp-nav__btn { min-height: 32px; font-size: 12.5px; }
	html[data-sg-theme] .hp-act { min-height: 38px; font-size: 13px; }
	html[data-sg-theme] .gh-nav__link { min-height: 38px; font-size: 13px; padding: 4px 8px; }
	html[data-sg-theme] .gh-genre { min-height: 36px; font-size: 14px; }
}

/* controller-style button badges */
.gh-btn { display: inline-grid; place-items: center; width: 26px; height: 26px; flex: none; border-radius: 50%; font-size: 13px; font-weight: 900; line-height: 1; color: #fff;
	box-shadow: inset 0 1px 0 rgba(255,255,255,.55), 0 1px 3px rgba(0,0,0,.35); text-shadow: 0 1px 1px rgba(0,0,0,.4); }
.gh-btn--a { background: radial-gradient(circle at 35% 30%, #8df25a, #2f9d0a); }
.gh-btn--b { background: radial-gradient(circle at 35% 30%, #ff7a6a, #c9140c); }
.gh-btn--x { background: radial-gradient(circle at 35% 30%, #6aa8ff, #1450c8); }
.gh-btn--y { background: radial-gradient(circle at 35% 30%, #ffe56a, #d49a00); color: #3a2a00; text-shadow: none; }
.gh-btn--menu { background: rgba(255,255,255,.2); box-shadow: inset 0 0 0 1.5px currentColor; }
.gh-btn--menu svg { width: 16px; height: 16px; }

/* Dashboard button in the menu bars: glowing outlined pill */
.hp-nav__btn--dashboard:not(.is-current), .gh-nav__link--grid:not(.is-current) { box-shadow: inset 0 0 0 2px var(--t-card-ring, #8cff2a), 0 0 12px var(--t-card-glow, rgba(150,255,40,.5)); font-weight: 900; }
@media (max-width: 699.98px) {
	html[data-sg-theme] .hp-ch { aspect-ratio: 1.15; font-size: 11.5px; padding: 6px 2px; gap: 4px; }
	html[data-sg-theme] .hp-ch__icon { font-size: 24px; }
}
/* three homepage channel buttons (Community hidden for now) */
html[data-sg-theme] .hp-channels { grid-template-columns: repeat(3, minmax(0, 1fr)); width: min(100%, 660px); }
@media (max-width: 699.98px) { html[data-sg-theme] .hp-channels { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Dashboard: dark slim menu bar like the mockups */
.sg-dashview .hp-top { background: linear-gradient(180deg, rgba(0,0,0,.82), rgba(0,0,0,.6)); box-shadow: inset 0 -1px 0 color-mix(in srgb, var(--stg-c) 45%, transparent); padding-bottom: 8px; }
.sg-dashview .hp-nav ul { background: transparent !important; box-shadow: none !important; }
.sg-dashview .hp-nav__btn { color: #fff !important; text-shadow: none; }
.sg-dashview .hp-nav__btn::after { display: none; }
.sg-dashview .hp-nav__btn.is-current { background: transparent !important; box-shadow: inset 0 0 0 2px var(--stg-c), 0 0 14px color-mix(in srgb, var(--stg-c) 60%, transparent) !important; }
.sg-dashview .hp-nav li + li::before { display: none; }
.sg-dashview .hp-radio-btn__label { color: #fff !important; }
/* tighter gap between the channel buttons and the profile card */
html[data-sg-theme] .hp-hero { padding-bottom: 0; margin-bottom: 0; min-height: 0; height: auto; }
html[data-sg-theme] .hp-profile { padding-top: clamp(18px, 2.2vw, 34px); margin-top: 0; }
@media (max-width: 699.98px) { html[data-sg-theme] .hp-profile { margin-top: 5vh; padding-top: 10px; } }
html[data-sg-theme] { --stg-c: #7dff2a; }
html[data-sg-theme="playstation"] { --stg-c: #3d8bff; }
html[data-sg-theme="wii"] { --stg-c: #4fc8ff; }
html[data-sg-theme="xp"] { --stg-c: #6fe23a; }
.gh-page .gh-bg { display: none; }

/* ==========================================================================
   v2.12 PERFORMANCE: everything that moves uses transform/opacity only
   (GPU-composited), no per-frame SVG reshaping, no layout animation.
   ========================================================================== */
/* --- background ribbons: each is its own layer, drifting + breathing --- */
.ov-rb { position: absolute; left: -6%; top: 0; width: 112%; height: 100%; max-width: none; overflow: visible; will-change: transform; transform: translate3d(0,0,0);
	animation: ov-rb 34s cubic-bezier(.45,0,.55,1) infinite alternate; animation-delay: var(--sgp, 0s); backface-visibility: hidden; }
.ov-rb--1 { animation-duration: 43s; animation-delay: calc(var(--sgp, 0s) - 11s); }
.ov-rb--2 { animation-duration: 52s; animation-delay: calc(var(--sgp, 0s) - 23s); animation-name: ov-rb-b; }
.ov-rb--3 { animation-duration: 38s; animation-delay: calc(var(--sgp, 0s) - 7s); animation-name: ov-rb-b; }
@keyframes ov-rb { 0% { transform: translate3d(-2.5%, 0, 0) scale(1, .94); } 50% { transform: translate3d(.5%, -1.2%, 0) scale(1, 1.05); } 100% { transform: translate3d(2.5%, .8%, 0) scale(1, .97); } }
@keyframes ov-rb-b { 0% { transform: translate3d(2%, .6%, 0) scale(1, 1.04); } 50% { transform: translate3d(-.6%, -1%, 0) scale(1, .95); } 100% { transform: translate3d(-2.4%, .4%, 0) scale(1, 1.02); } }
/* --- the rest of the ambient layers: transform/opacity keyframes, promoted to their own layer --- */
.sg-bg__layer > *, .sg-bg__layer i, .og-stage > * { will-change: transform, opacity; backface-visibility: hidden; }
@keyframes ov-drift-a { 0% { transform: translate3d(0,0,0); } 33% { transform: translate3d(1.6vw,-1.2vh,0); } 66% { transform: translate3d(-1vw,.8vh,0); } 100% { transform: translate3d(0,0,0); } }
@keyframes ov-drift-b { 0% { transform: translate3d(0,0,0); } 25% { transform: translate3d(-1.2vw,-.6vh,0); } 60% { transform: translate3d(.9vw,-1.6vh,0); } 100% { transform: translate3d(0,0,0); } }
@keyframes ov-turn { 0%, 100% { transform: rotate(-5deg) scale(1); } 50% { transform: rotate(5deg) scale(1.06); } }
@keyframes ov-cloud { from { transform: translate3d(-4vw,0,0); } to { transform: translate3d(5vw,-.6vh,0); } }
@keyframes ov-bloom { from { transform: translate3d(-10vw,0,0); } to { transform: translate3d(40vw,-4vh,0); } }
@keyframes ov-sway-x { from { transform: translate3d(-14px,0,0); } to { transform: translate3d(14px,0,0); } }
@keyframes og-pulse { 0%, 100% { opacity: .25; transform: translate(-50%,-50%) scale(.9); } 45% { opacity: .95; transform: translate(-50%,-50%) scale(1.06); } }
@keyframes og-ripple { 0% { opacity: 0; transform: translate(-50%,-50%) scale(.98); } 12% { opacity: .75; } 100% { opacity: 0; transform: translate(-50%,-50%) scale(1.5); } }
@keyframes og-spin { to { transform: translate(-50%,-50%) rotate(360deg); } }
.og-stage > * { translate: none; transform: translate(-50%,-50%); }
.og-core { mix-blend-mode: normal; }
.hp-skin__orb { animation-name: dsh-orb-pulse; }
@keyframes dsh-orb-pulse { 0%, 100% { opacity: .35; transform: scale(.92); } 45% { opacity: .95; transform: scale(1.05); } }
/* blurred clouds: blur is painted once, only the layer moves */
.ov-cloud { filter: blur(8px); }
/* nothing animates while the tab is hidden or the user prefers less motion */
@media (prefers-reduced-motion: reduce) { .ov-rb { animation: none !important; } }
html.sg-calm .ov-rb { animation: none !important; }

/* --- sticky top bar: constant size; only the backdrop fades and the logo crossfades --- */
html[data-sg-theme] .hp-top, html[data-sg-theme] .hp-top.is-stuck { padding-top: 8px; padding-bottom: 8px; background: transparent !important; box-shadow: none !important; -webkit-backdrop-filter: none; backdrop-filter: none; transition: transform 260ms cubic-bezier(.2,.8,.2,1); }
html[data-sg-theme] .hp-top::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0; transition: opacity 240ms ease; will-change: opacity;
	background: linear-gradient(180deg, rgba(14,60,200,.95), rgba(10,40,160,.92)); box-shadow: inset 0 -1px 0 rgba(255,255,255,.35), 0 6px 18px rgba(0,20,80,.3); }
html[data-sg-theme="xbox"] .hp-top::before { background: linear-gradient(180deg, rgba(250,251,252,.97), rgba(222,226,231,.96)); box-shadow: inset 0 -3px 0 #8edc1a, 0 6px 18px rgba(30,40,20,.25); }
html[data-sg-theme="xbox-og"] .hp-top::before { background: linear-gradient(180deg, rgba(10,32,8,.96), rgba(3,14,2,.96)); box-shadow: inset 0 -2px 0 #6ff01f, 0 6px 18px rgba(0,0,0,.5); }
html[data-sg-theme="playstation"] .hp-top::before { background: linear-gradient(180deg, rgba(14,40,130,.96), rgba(3,12,52,.96)); box-shadow: inset 0 -2px 0 #3d8bff, 0 6px 18px rgba(0,5,30,.5); }
html[data-sg-theme="wii"] .hp-top::before { background: linear-gradient(180deg, rgba(255,255,255,.97), rgba(232,244,251,.96)); box-shadow: inset 0 -2.5px 0 #74c9f2, 0 6px 18px rgba(40,90,130,.18); }
html[data-sg-theme] .hp-top.is-stuck::before { opacity: 1; }
/* logo: same box, crossfade full wordmark → 2G badge (no width animation) */
html[data-sg-theme] .hp-top .hp-logo, html[data-sg-theme] .hp-top.is-stuck .hp-logo { width: clamp(150px, 14vw, 250px); aspect-ratio: 900 / 299; transition: none; }
html[data-sg-theme] .hp-top .hp-logo__full { position: static; opacity: 1; transform: none; transition: opacity 220ms ease, transform 260ms cubic-bezier(.2,.8,.2,1); will-change: opacity, transform; }
html[data-sg-theme] .hp-top .hp-logo__badge { position: absolute; left: 0; top: 50%; width: 52px; height: 52px; opacity: 0; transform: translateY(-50%) scale(.7); transition: opacity 220ms ease, transform 260ms cubic-bezier(.2,.8,.2,1); will-change: opacity, transform; }
html[data-sg-theme] .hp-top.is-stuck .hp-logo__full { opacity: 0; transform: scale(.9); position: static; width: 100%; }
html[data-sg-theme] .hp-top.is-stuck .hp-logo__badge { opacity: 1; transform: translateY(-50%) scale(1); }
html[data-sg-theme] .hp-top.is-stuck .hp-nav__btn { min-height: 36px; }
html[data-sg-theme] .hp-top.is-stuck .hp-idog, html[data-sg-theme] .hp-idog { width: clamp(70px, 5.4vw, 100px); transition: none; }
/* phones: keep one layout; the bar slides away while scrolling down and back when scrolling up */
@media (max-width: 699.98px) {
	html[data-sg-theme] .hp-top.is-stuck { grid-template-areas: none; grid-template-columns: auto minmax(0, 1fr) auto; }
	html[data-sg-theme] .hp-top .hp-logo, html[data-sg-theme] .hp-top.is-stuck .hp-logo { width: 150px; }
	html[data-sg-theme] .hp-top.is-stuck .hp-logo__badge { width: 44px; height: 44px; }
	html[data-sg-theme] .hp-top.is-stuck .hp-nav ul { grid-template-columns: repeat(6, minmax(0, 1fr)); }
	html[data-sg-theme] .hp-top.is-stuck .hp-nav__btn { min-height: 32px; font-size: 12.5px; }
	html[data-sg-theme] .hp-top.is-stuck .hp-nav__btn .xp-i { display: inline-block; }
	html[data-sg-theme] .hp-top.is-hidden { transform: translate3d(0, -100%, 0); }
	/* frosted panels are expensive while scrolling on phones: solid glass instead */
	html[data-sg-theme] .hp-sec, html[data-sg-theme] .hp-card { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
	html[data-sg-theme] .hp-sec { background: rgba(255,255,255,.8); }
	html[data-sg-theme] .hp-hero { margin-top: 12px; }
}
/* dialogs: no blur behind (it re-blurs the moving video every frame) */
.xp-dlg::backdrop { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; background: rgba(5,12,40,.6) !important; }
/* glass bits that sit over moving video: lighter blur */
.dsh-title, .dsh-user__text, .gh-page .gh-search { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
.dsh-title, .dsh-user__text { background: rgba(0,0,0,.5); }

/* ---------- Videos page ---------- */
.vid-page { max-width: 1320px; margin: 0 auto; padding: 0 0 40px; }
.vid-page__sec { margin-top: clamp(16px, 2.5vw, 34px) !important; }
.vid-page__count { font-weight: 700; opacity: .6; }
.vid-page__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.vid-page__search input { min-height: 40px; width: min(300px, 60vw); padding: 0 16px; border: 0; border-radius: 999px; font: inherit; font-weight: 700; background: #fff; box-shadow: inset 0 0 0 1.5px rgba(60,90,180,.35); }
@media (max-width: 899px) { .vid-page__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 599px) { .vid-page__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .vid-page__search input { width: 100%; } }
.vid-page { min-height: calc(100vh - 220px); }

/* ==========================================================================
   v2.14 stability: no pinned layers (the browser promotes running animations
   itself and frees them after), poster stays under a playing video, no
   full-screen pulsing layer.
   ========================================================================== */
.sg-bg__layer > *, .sg-bg__layer i, .og-stage > *, .ov-rb,
html[data-sg-theme] .hp-top .hp-logo__full, html[data-sg-theme] .hp-top .hp-logo__badge, html[data-sg-theme] .hp-top::before { will-change: auto; }
.sg-bg__layer:not(.is-active-layer) * { animation-play-state: paused !important; }
.og-vignette { animation: none !important; opacity: .85; }
/* while a video plays, hide the decorative overlays but keep the still image underneath it */
.sg-bg__layer.has-video > :not(.sg-bg__video) { visibility: hidden; transition: none; }
.sg-bg__layer--xbox-og.has-video > .og-stage { visibility: visible; }
.sg-bg__layer--xbox-og.has-video .og-stage > * { visibility: hidden; }
.sg-bg__video { transition: opacity .6s ease; background: transparent; }

/* ---------- Featured Video window: minimize / close / reopen ---------- */
.hp-video .xp-wb { border: 0; cursor: pointer; padding: 0; font: inherit; display: inline-grid; place-items: center; }
.hp-video .xp-wb:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.hp-video__body { display: grid; grid-template-rows: 1fr; transition: grid-template-rows 320ms cubic-bezier(.2,.8,.2,1); }
.hp-video__body-in { min-height: 0; overflow: hidden; }
.hp-video.is-min .hp-video__body { grid-template-rows: 0fr; }
.hp-video.is-min .xp-win__bar { cursor: pointer; }
.hp-video.is-min .xp-wb--min svg { transform: rotate(180deg) translateY(4px); }
.hp-video .xp-wb--min svg { transition: transform 200ms ease; }
.hp-video { transition: opacity 220ms ease, transform 220ms ease; }
.hp-video.is-closing, .hp-video.is-opening { opacity: 0; transform: scale(.96); }
.hp-video[hidden] { display: none !important; }
.hp-video-reopen { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 18px; border: 0; border-radius: 999px; font: inherit; font-weight: 900; font-size: 14px; color: #fff; cursor: pointer;
	background: rgba(0,0,0,.5); box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.45), 0 0 14px var(--t-nav-glow, rgba(120,200,255,.5)); transition: background 160ms; }
.hp-video-reopen:hover { background: rgba(0,0,0,.7); }
.hp-video-reopen[hidden] { display: none; }
@media (prefers-reduced-motion: reduce) { .hp-video__body, .hp-video { transition: none; } }

/* ---------- Xbox OG: video underneath, pulsing glow on top (v2.15) ---------- */
/* the stage is sized like the 16:9 video so the glow sits on the video's orb */
.og-stage { width: max(100%, 177.78vh); height: max(100%, 56.25vw); }
.og-stage > * { left: 49.7%; top: 33%; }
/* while the video plays, the still image must not cover it: drop the stage's picture, keep the effects */
.sg-bg__layer--xbox-og.has-video .og-stage { background-image: none !important; visibility: visible; }
.sg-bg__layer--xbox-og.has-video .og-stage > * { visibility: visible; }
.sg-bg__layer--xbox-og .sg-bg__video { z-index: 0; }
.sg-bg__layer--xbox-og .og-stage { z-index: 1; }
.og-core { mix-blend-mode: screen; }
.sg-bg__layer--xbox-og.has-video .og-core { opacity: .8; }
/* a stronger, clearly visible breathing pulse over the orb */
.og-core { width: 44%; background: radial-gradient(closest-side, rgba(245,255,160,.9), rgba(170,255,60,.5) 40%, rgba(110,255,30,.18) 65%, rgba(110,255,30,0) 80%); animation-duration: 3.6s; }
@keyframes og-pulse { 0%, 100% { opacity: .15; transform: translate(-50%,-50%) scale(.82); } 45% { opacity: 1; transform: translate(-50%,-50%) scale(1.08); } }
.og-halo { animation-duration: 3.6s; }
.og-halo--2 { animation-duration: 7.2s; }
/* phones: the top bar keeps one layout (logo + radio on top, menu below) and always stays on screen */
@media (max-width: 699.98px) {
	html[data-sg-theme] .hp-top, html[data-sg-theme] .hp-top.is-stuck { grid-template-areas: "logo . radio" "nav nav nav"; grid-template-columns: auto minmax(0, 1fr) auto; row-gap: 6px; }
	html[data-sg-theme] .hp-top .hp-logo, html[data-sg-theme] .hp-top.is-stuck .hp-logo { grid-area: logo; width: 150px; }
	html[data-sg-theme] .hp-top .hp-nav, html[data-sg-theme] .hp-top.is-stuck .hp-nav { grid-area: nav; }
	html[data-sg-theme] .hp-top .hp-radio-btn, html[data-sg-theme] .hp-top.is-stuck .hp-radio-btn { grid-area: radio; }
	html[data-sg-theme] .hp-top.is-stuck .hp-nav ul { grid-template-columns: repeat(6, minmax(0, 1fr)); }
	html[data-sg-theme] .hp-top.is-hidden { transform: none; }
	html[data-sg-theme] .hp-top.is-stuck .hp-idog { width: 54px; }
}

/* ---------- "Under construction" labels (games catalog) ---------- */
.sg-wip { display: flex; align-items: center; justify-content: center; gap: 10px; width: fit-content; max-width: min(760px, 100%); margin: 10px auto 0; padding: 8px 16px; border-radius: 12px;
	font-size: 14.5px; font-weight: 700; color: #1a1400; text-align: left;
	background: repeating-linear-gradient(-45deg, #ffd23a 0 14px, #ffc400 14px 28px); box-shadow: 0 0 0 2px #1a1400, 0 0 0 4px #ffd23a, 0 8px 18px rgba(0,0,0,.35); }
.sg-wip strong { font-weight: 900; text-transform: uppercase; letter-spacing: .03em; margin-right: 4px; }
.sg-wip__icon { font-size: 20px; }
.sg-wip-tag { display: inline-flex; align-items: center; gap: 4px; margin-left: 10px; padding: 3px 10px; border-radius: 999px; vertical-align: middle; font-size: 12px; font-weight: 900; letter-spacing: .03em; text-transform: uppercase; color: #1a1400;
	background: repeating-linear-gradient(-45deg, #ffd23a 0 8px, #ffc400 8px 16px); box-shadow: 0 0 0 1.5px #1a1400; text-shadow: none; }
.dsh-tile__wip { position: absolute; top: 14px; right: 14px; margin: 0; z-index: 2; }
@media (max-width: 599px) { .sg-wip { font-size: 12.5px; padding: 6px 12px; margin-top: 8px; } .sg-wip-tag { font-size: 10.5px; margin-left: 6px; } }

/* ---------- Xbox OG: orb centred on screen (v2.17) ----------
   The orb sits at ~50% / 33% of the 16:9 video. Video, still image and glow share one box,
   zoomed just enough that the orb can sit at 50% / 46% of the screen with no gaps. */
.sg-bg__layer--xbox-og { --ogH: max(140vh, 56.25vw, calc(100vw * 9 / 16 * 1.0)); }
.sg-bg__layer--xbox-og .sg-bg__video, .sg-bg__layer--xbox-og .og-stage {
	position: absolute; inset: auto; width: calc(var(--ogH) * 16 / 9); height: var(--ogH);
	left: calc(50% - var(--ogH) * 16 / 9 * .5); top: calc(46% - var(--ogH) * .33); transform: none; object-fit: fill; object-position: 50% 50%; }
@media (max-width: 899px) { .sg-bg__layer--xbox-og { --ogH: max(130vh, 56.25vw); } .sg-bg__layer--xbox-og .sg-bg__video, .sg-bg__layer--xbox-og .og-stage { top: calc(42% - var(--ogH) * .33); } }
.hp-video .hp-slide__media::after { display: none; }

/* Featured Video: the frame is exactly 16:9 so the video fills it (no black side bars) */
.hp-video .hp-slide__media, .hp-video .hp-slide { aspect-ratio: 16 / 9; height: auto; min-height: 0; }
.hp-video .hp-slide__video { object-fit: cover; background: #000; }
.hp-video .hp-slide__video:fullscreen { object-fit: contain; }
/* the play button must disappear once the video starts (its display rule was overriding [hidden]) */
.hp-play[hidden], .hp-slide__media.is-playing ~ .hp-play { display: none !important; }
