/* The Stage replaces the desktop sidebar; destination views remain unchanged. */
.gpf-stage-enabled #sidebar{display:none!important}.gpf-stage-enabled .app-wrapper{display:block}.gpf-stage-enabled .app-main{margin-left:0;width:100%;padding:18px clamp(18px,3vw,52px) 110px}.stage-toolbar{display:flex;align-items:center;gap:18px;width:100%;max-width:1400px;min-height:50px;margin:0 auto 22px;flex-shrink:0;border-bottom:1px solid var(--border);padding-bottom:14px}.stage-home{display:flex;align-items:center;gap:10px;background:none;border:0;color:var(--text);font-size:1rem;font-weight:750;cursor:pointer;padding:8px 0;white-space:nowrap}.stage-home svg{width:25px;height:25px;fill:none;stroke:var(--accent);stroke-width:1.4}.stage-home[aria-current=page]{color:var(--accent)}.stage-utilities{margin-left:auto;display:flex;gap:18px;align-items:center}.stage-utilities>button,.stage-friends>summary{padding:10px 0;background:none;border:0;color:var(--text2);font:inherit;font-size:.75rem;cursor:pointer;min-height:44px}.stage-utilities>button:hover,.stage-friends>summary:hover{color:var(--accent)}.stage-friends{position:relative}.stage-friends-popover{position:absolute;right:0;top:48px;width:300px;max-width:85vw;max-height:60vh;overflow:auto;background:var(--surface);border:1px solid var(--border);border-radius:14px;padding:14px;z-index:45;box-shadow:0 20px 60px #0006}.stage-friends-popover>button{padding:12px;background:none;border:0;color:var(--accent);cursor:pointer;width:100%}.stage-toolbar [hidden]{display:none!important}
#view-stage-content{width:100%;max-width:1440px!important;flex-shrink:0;margin-inline:auto;align-self:center}.stage-heading{text-align:center;padding:12px 0 0}.stage-eyebrow{font-size:.64rem;letter-spacing:.28em;color:var(--text3);margin:0 0 14px}.stage-heading h1{font-size:clamp(1.6rem,3.5vw,2.8rem);font-weight:650;letter-spacing:-.045em;margin:0 0 12px}.stage-heading>p:last-child{font-size:.85rem;color:var(--text2);margin:0}.stage-scene{position:relative;margin:8px auto 0;isolation:isolate;--card-w:clamp(170px,24vw,285px);--card-h:clamp(280px,34vw,400px);--step:clamp(125px,17.5vw,225px);height:calc(var(--card-h) + 86px);max-width:1320px}.stage-deck{position:absolute;inset:0;perspective:1400px;transform-style:preserve-3d;touch-action:pan-y;user-select:none}.stage-card{position:absolute;left:50%;top:34px;width:var(--card-w);height:var(--card-h);padding:0;border:1px solid #b8cfdf4d;border-radius:13px;overflow:hidden;background:#18212c;color:white;text-align:left;cursor:pointer;transform:translateX(calc(-50% + var(--offset)*var(--step))) translateZ(calc(var(--distance)*-110px)) rotateY(calc(var(--offset)*-11deg)) scale(calc(1 - var(--distance)*.055));transform-origin:center center;transition:transform .55s cubic-bezier(.2,.75,.2,1),border-color .4s,box-shadow .4s,filter .4s;box-shadow:0 20px 28px #0007;filter:brightness(.75);isolation:isolate;will-change:transform}.stage-card.is-selected{border-color:var(--stage-accent);box-shadow:0 0 0 1px color-mix(in srgb,var(--stage-accent) 30%,transparent),0 0 28px color-mix(in srgb,var(--stage-accent) 18%,transparent),0 25px 35px #0008;filter:brightness(1)}.stage-card img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;pointer-events:none}.stage-card:after{content:'';position:absolute;inset:0;background:linear-gradient(180deg,#060b1308 20%,#070d1655 50%,#080d18f2 87%);pointer-events:none;z-index:1}.stage-card-shine{position:absolute;inset:0;background:linear-gradient(120deg,#ffffff25,transparent 37%);z-index:2;pointer-events:none}.stage-card-copy{position:absolute;bottom:28px;left:23px;right:20px;z-index:3;display:flex;flex-direction:column;gap:11px}.stage-card-title{font-size:clamp(1rem,2vw,1.7rem);font-weight:750;line-height:1.12;letter-spacing:-.03em;text-shadow:0 2px 12px #000}.stage-card-description{font-size:.76rem;line-height:1.5;color:#dae4ef}.stage-beta{font-size:.6rem;text-transform:uppercase;letter-spacing:.15em;color:var(--stage-accent)}.stage-floor{position:absolute;left:3%;right:3%;bottom:8px;height:155px;z-index:-1;background:radial-gradient(ellipse at 50% 40%,#a6a0ea22,transparent 67%);transform:perspective(450px) rotateX(58deg);border-top:1px solid #bac7e21c;border-radius:50%;box-shadow:0 -20px 70px #969bd008}.stage-arrow{position:absolute;top:45%;z-index:20;width:46px;height:46px;border-radius:50%;border:1px solid var(--border2);background:var(--surface);color:var(--text);font-size:1.3rem;cursor:pointer;box-shadow:0 5px 20px #0004}.stage-arrow-prev{left:0}.stage-arrow-next{right:0}.stage-arrow:disabled{opacity:.3;cursor:default}.stage-selection{text-align:center;position:relative;z-index:21;margin-top:-5px}.stage-enter{min-height:48px;min-width:190px;max-width:90%;border:1px solid #b7ece8;background:linear-gradient(120deg,#b4eee6,#b9cef6);color:#15232e;border-radius:30px;padding:13px 28px;font:inherit;font-weight:750;font-size:.86rem;cursor:pointer;box-shadow:0 5px 28px #88d5da24}.stage-selection p{font-size:.7rem;color:var(--text3);margin:18px 0 0;line-height:1.6}.stage-footer{display:flex;justify-content:space-between;gap:20px;align-items:center;margin:28px auto 0;padding:18px 0;border-top:1px solid var(--border);max-width:1060px;font-size:.72rem;color:var(--text3)}.stage-footer button{border:0;background:none;padding:10px 0;color:var(--text2);font:inherit;cursor:pointer}.gpf-stage-enabled .app-main.is-stage #app-stats-bar{order:3;width:min(100%,560px);align-self:center;margin:18px auto 0}.gpf-stage-enabled .app-main.is-stage #view-stage-content{order:1}.gpf-stage-enabled .app-main.is-stage{overflow-x:hidden}.stage-toolbar :focus-visible,.stage-card:focus-visible,.stage-arrow:focus-visible,.stage-enter:focus-visible,.stage-footer button:focus-visible{outline:3px solid var(--accent);outline-offset:4px}
html[data-theme=light] .stage-card{box-shadow:0 16px 30px #16364838}html[data-theme=light] .stage-card.is-selected{border-color:#538d93;box-shadow:0 0 0 2px #93b7c166,0 22px 38px #16364850}html[data-theme=light] .stage-floor{background:radial-gradient(ellipse,#5b6f8730,transparent 68%);border-top-color:#61768633}html[data-theme=light] .stage-enter{background:#246c72;color:white;border-color:#246c72}html[data-theme=light] .stage-friends-popover{background:#e7ebef}
@media(min-width:901px){.gpf-stage-enabled .navbar.app-mode .nav-logo{cursor:pointer}}
@media(max-width:1100px){.stage-utilities{gap:12px}.stage-scene{--step:16vw}.stage-toolbar{gap:12px}}
@media(max-width:900px){.gpf-stage-enabled .app-main{padding:12px 18px calc(90px + var(--safe-bottom))}.stage-utilities{display:flex;flex-wrap:wrap;width:100%;justify-content:center;gap:8px 20px}.stage-toolbar{justify-content:space-between;margin-bottom:18px}.stage-scene{--card-w:220px;--card-h:325px;--step:155px;height:403px;margin-left:-18px;margin-right:-18px}.stage-card-copy{left:20px;bottom:24px}.stage-card-title{font-size:1.45rem}.stage-card-description{font-size:.76rem}.stage-arrow-prev{left:14px}.stage-arrow-next{right:14px}.stage-heading{padding-top:5px}.stage-footer{margin-top:24px}.stage-friends-popover{right:auto;left:0}}
@media(max-width:480px){.stage-scene{--card-w:200px;--card-h:298px;--step:155px;height:378px}.stage-heading h1{font-size:1.6rem}.stage-heading>p:last-child{font-size:.76rem}.stage-home{font-size:.87rem}.stage-toolbar{gap:8px}.stage-card{top:30px}.stage-arrow{width:40px;height:40px;top:43%}.stage-arrow-prev{left:9px}.stage-arrow-next{right:9px}.stage-footer{align-items:flex-start;flex-direction:column;gap:5px}.stage-selection p{max-width:270px;margin:15px auto 0}.stage-enter{font-size:.82rem}.gpf-stage-enabled .app-main.is-stage #app-stats-bar{margin-top:5px}}
@media(prefers-reduced-motion:reduce){.stage-card{transition:none;will-change:auto;transform:translateX(calc(-50% + var(--offset)*var(--step))) scale(calc(1 - var(--distance)*.1))}.stage-deck{perspective:none;transform-style:flat}}
/* Keep all desktop destination titles outside the overlap and the stage above metrics. */
.gpf-stage-enabled .app-main.is-stage #app-stats-bar{order:3!important}
@media(min-width:901px){.stage-card:not(.is-selected) .stage-card-copy{max-width:150px}.stage-card[data-offset="1"] .stage-card-copy,.stage-card[data-offset="2"] .stage-card-copy,.stage-card[data-offset="3"] .stage-card-copy,.stage-card[data-offset="4"] .stage-card-copy{left:auto;right:17px;text-align:right}.stage-card:not(.is-selected) .stage-card-title{font-size:1.2rem}.stage-card:not(.is-selected) .stage-card-description{font-size:.69rem}.stage-card[data-offset="-1"] .stage-card-copy,.stage-card[data-offset="-2"] .stage-card-copy,.stage-card[data-offset="-3"] .stage-card-copy,.stage-card[data-offset="-4"] .stage-card-copy{right:auto;left:17px}}

/* Stage is the single navigation hub on every viewport. */
.gpf-stage-enabled #gpf-mobile-nav{display:none!important}
.gpf-stage-enabled{--mobile-nav-h:var(--safe-bottom,0px)}
.gpf-stage-enabled .stage-toolbar .stage-home[hidden],.gpf-stage-enabled .stage-toolbar .stage-utilities[hidden]{display:none!important}
.gpf-stage-enabled .app-main.is-stage .stage-toolbar{justify-content:center}
.gpf-stage-enabled .app-main.is-stage .stage-utilities{margin-left:0}
.gpf-stage-enabled .app-main:not(.is-stage) .stage-toolbar{justify-content:flex-start}
.stage-home svg{display:none}
.stage-home:before{content:'←';color:var(--accent);font-size:1.3em}
@media(max-width:900px){.stage-friends-popover{left:0;right:auto}.stage-toolbar{min-height:44px}.stage-utilities>button,.stage-friends>summary{font-size:.8rem}}

/* High-contrast utility controls shared by Stage and all destination views. */
.gpf-stage-enabled .stage-toolbar{padding:12px 14px;gap:18px;border:1px solid var(--border2);border-radius:16px;background:rgba(16,24,37,.96);box-shadow:0 6px 22px #0002;min-height:74px}
.gpf-stage-enabled .stage-toolbar .stage-utilities{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:10px;margin-left:auto}
.gpf-stage-enabled .app-main.is-stage .stage-utilities{margin-inline:auto}
.stage-utilities>button,.stage-friends>summary{display:flex;align-items:center;justify-content:center;gap:10px;padding:11px 16px;min-height:46px;border:1px solid #60718a66;border-radius:9px;background:#202c3e;color:#eef3fa;font-size:.88rem;font-weight:600;line-height:1.3;list-style:none;transition:background .15s,border-color .15s}
.stage-friends>summary::-webkit-details-marker{display:none}
.stage-utilities>button>svg,.stage-friends>summary>svg{width:21px;height:21px;flex-shrink:0;fill:none;stroke:#9edbd7;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.stage-utilities>button:hover,.stage-friends>summary:hover,.stage-friends[open]>summary{color:white;background:#2e4055;border-color:#9edbd7}
.stage-utilities>button[aria-current=page]{background:#28474e;border-color:#91d8cf;color:white}
.stage-toolbar .stage-home{padding:10px 12px;border-radius:9px;min-height:46px;font-size:.9rem}
.stage-toolbar .stage-home:hover{background:#ffffff0c}
.stage-friends-popover{top:55px}
html[data-theme=light] .stage-toolbar{background:#e3e8ed;border-color:#bdc8d2;box-shadow:0 4px 18px #253c5012}
html[data-theme=light] .stage-utilities>button,html[data-theme=light] .stage-friends>summary{background:#f6f8fa;border-color:#bcc8d2;color:#243549}
html[data-theme=light] .stage-utilities>button>svg,html[data-theme=light] .stage-friends>summary>svg{stroke:#276b72}
html[data-theme=light] .stage-utilities>button:hover,html[data-theme=light] .stage-friends>summary:hover,html[data-theme=light] .stage-utilities>button[aria-current=page]{background:#d1e3e5;border-color:#598b90;color:#163f45}
.stage-card{background:#121a24}.stage-card-shine{display:none}.stage-card:after{background:linear-gradient(180deg,transparent 50%,#101721 83%)}
.stage-card.is-selected{box-shadow:0 0 0 1px var(--stage-accent),0 20px 35px #0006}.stage-card-title{text-shadow:none}
@media(max-width:900px){.gpf-stage-enabled .stage-toolbar{flex-wrap:wrap;gap:10px;padding:10px}.gpf-stage-enabled .stage-toolbar .stage-utilities{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%;gap:8px}.stage-utilities>button,.stage-friends>summary{width:100%;padding:10px 8px;font-size:.79rem;min-height:46px}.stage-friends-popover{width:min(300px,calc(100vw - 70px))}.stage-toolbar .stage-home{min-height:40px;padding:4px 8px}}
@media(prefers-reduced-motion:reduce){.stage-utilities>button,.stage-friends>summary{transition:none}}

/* Utility buttons float independently over the app background. */
.gpf-stage-enabled .stage-toolbar,html[data-theme=light] .gpf-stage-enabled .stage-toolbar{background:transparent;border:0;box-shadow:none;border-radius:0;padding:4px 0 12px;backdrop-filter:none}

/* Balance equal side columns so Back never pushes utilities off centre. */
@media(min-width:1200px){
.gpf-stage-enabled .stage-toolbar{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);column-gap:12px}
.gpf-stage-enabled .stage-toolbar .stage-home{grid-column:1;grid-row:1;justify-self:start;white-space:normal;text-align:left}
.gpf-stage-enabled .stage-toolbar .stage-utilities{grid-column:2;grid-row:1;margin:0;justify-self:center}
}
@media(min-width:901px) and (max-width:1199px){
.gpf-stage-enabled .stage-toolbar{display:grid;grid-template-columns:1fr;gap:8px}
.gpf-stage-enabled .stage-toolbar .stage-home{justify-self:start}
.gpf-stage-enabled .stage-toolbar .stage-utilities{margin:0;justify-self:center}
}

/* Liquid glass: the existing artwork remains visible through each surface.
   Keep the toolbar itself transparent; avoid a parent backdrop/opacity that
   would prevent the Friends panel from sampling the app behind it. */
.gpf-stage-enabled .stage-toolbar{position:relative;z-index:46}
.gpf-stage-enabled .stage-utilities>button,
.gpf-stage-enabled .stage-friends>summary{
 border-radius:17px;border:1px solid #ddf7ff63;
 background:linear-gradient(125deg,#ffffff16,transparent 40%,#d3eaff09),rgba(17,28,44,.16);
 color:#f1f8ff;text-shadow:0 1px 5px #06122490;
 -webkit-backdrop-filter:blur(5px) saturate(135%);backdrop-filter:blur(5px) saturate(135%);
 box-shadow:inset 0 1px 0 #ffffff91,inset 1px 0 0 #ffffff20,inset 0 -1px 0 #e4f8ff28,0 8px 24px #0002;
 transition:background-color .18s,border-color .18s,box-shadow .18s;
}
.gpf-stage-enabled .stage-utilities>button>svg,.gpf-stage-enabled .stage-friends>summary>svg{stroke:#b3f4e9}
.gpf-stage-enabled .stage-utilities>button:hover,.gpf-stage-enabled .stage-friends>summary:hover,
.gpf-stage-enabled .stage-friends>summary[aria-expanded=true],
.gpf-stage-enabled .stage-utilities>button[aria-current=page]{
 background-color:#416a7040;border-color:#b6fff0ac;color:#fff;
 box-shadow:inset 0 1px 0 #ffffffb3,0 8px 26px #3ed5d419;
}
.gpf-stage-enabled .stage-friends-popover{
 top:calc(100% + 10px);left:0;right:auto;width:330px;max-width:calc(100vw - 36px);
 max-height:min(60vh,480px);max-height:min(60dvh,480px);padding:18px;border-radius:23px;
 border:1px solid #ddf7ff63;
 background:linear-gradient(125deg,#ffffff19,transparent 30%,transparent 70%,#dcfaff0b),rgba(10,22,36,.23);
 -webkit-backdrop-filter:blur(5px) saturate(135%);backdrop-filter:blur(5px) saturate(135%);
 box-shadow:inset 0 1px 0 #ffffff99,inset 1px 0 0 #ffffff20,inset 0 -1px 0 #e4f8ff28,0 22px 54px #0004;
 color:#f1f8ff;text-shadow:0 1px 5px #051224a0;transform-origin:28px top;
 --text:#f1f8ff;--text2:#e1edf7;--text3:#c8d9e9;--surface2:#d3f5ff18;
 overscroll-behavior:contain;
}
.gpf-stage-enabled #stage-friends-slot{position:relative}
.gpf-stage-enabled .stage-friends-popover>button{margin-top:8px;border-top:1px solid #d9f5ff26;color:#c6fff0;min-height:44px;border-radius:0 0 10px 10px}
.gpf-stage-enabled .stage-friends-popover>button:hover{background:#d3f5ff0c}
.gpf-stage-enabled .stage-friends-popover [data-online-uid]{padding-block:9px!important}
.gpf-stage-enabled .stage-utilities>button:focus-visible,.gpf-stage-enabled .stage-friends>summary:focus-visible,
.gpf-stage-enabled .stage-friends-popover button:focus-visible{outline:2px solid #9deadd;outline-offset:4px}
html[data-theme=light] .gpf-stage-enabled .stage-utilities>button,
html[data-theme=light] .gpf-stage-enabled .stage-friends>summary{
 background:linear-gradient(125deg,#ffffff80,transparent 45%,#ffffff20),rgba(222,233,242,.38);
 border-color:#66869c66;color:#173247;text-shadow:0 1px 2px #ffffff80;
 box-shadow:inset 0 1px 0 #ffffffe0,inset 1px 0 0 #ffffff70,0 6px 20px #183e5012;
}
html[data-theme=light] .gpf-stage-enabled .stage-utilities>button>svg,html[data-theme=light] .gpf-stage-enabled .stage-friends>summary>svg{stroke:#146b6a}
html[data-theme=light] .gpf-stage-enabled .stage-utilities>button:hover,
html[data-theme=light] .gpf-stage-enabled .stage-friends>summary:hover,
html[data-theme=light] .gpf-stage-enabled .stage-friends>summary[aria-expanded=true],
html[data-theme=light] .gpf-stage-enabled .stage-utilities>button[aria-current=page]{background-color:#a7dcd15e;border-color:#377d8299;color:#123d43}
html[data-theme=light] .gpf-stage-enabled .stage-friends-popover{
 background:linear-gradient(125deg,#ffffff70,transparent 35%,#ffffff18),rgba(232,240,247,.52);
 border-color:#6f8d9d70;color:#173247;text-shadow:0 1px 2px #ffffff80;
 box-shadow:inset 0 1px 0 #ffffffe0,inset 1px 0 0 #ffffff70,0 20px 45px #183e5026;
 --text:#173247;--text2:#29475c;--text3:#38556a;--surface2:#285f7212;
}
html[data-theme=light] .gpf-stage-enabled .stage-friends-popover>button{color:#096866;border-top-color:#295f7226}
@media(prefers-reduced-motion:reduce){.gpf-stage-enabled .stage-utilities>button,.gpf-stage-enabled .stage-friends>summary{transition:none}}
@supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){
 .gpf-stage-enabled .stage-utilities>button,.gpf-stage-enabled .stage-friends>summary,.gpf-stage-enabled .stage-friends-popover{background:#203247}
 html[data-theme=light] .gpf-stage-enabled .stage-utilities>button,html[data-theme=light] .gpf-stage-enabled .stage-friends>summary,html[data-theme=light] .gpf-stage-enabled .stage-friends-popover{background:#e0e9ef}
}
@media(prefers-reduced-transparency:reduce){
 .gpf-stage-enabled .stage-utilities>button,.gpf-stage-enabled .stage-friends>summary,.gpf-stage-enabled .stage-friends-popover{background:#203247;backdrop-filter:none;-webkit-backdrop-filter:none}
 html[data-theme=light] .gpf-stage-enabled .stage-utilities>button,html[data-theme=light] .gpf-stage-enabled .stage-friends>summary,html[data-theme=light] .gpf-stage-enabled .stage-friends-popover{background:#e0e9ef}
}
