/* PIXL alpha82 runtime UI */
.player .canvas-wrap{position:relative;overflow:hidden}.pixl-runtime-status{position:absolute;inset:0;z-index:11;display:flex;align-items:center;justify-content:center;gap:16px;padding:26px;background:radial-gradient(circle at 50% 48%,color-mix(in srgb,var(--pixl-theme,#5ce5b0) 13%,#071011),#020708 68%);color:#f8fbff;transition:opacity .16s ease,visibility .16s ease}.pixl-runtime-status.is-hidden{opacity:0;visibility:hidden;pointer-events:none}.pixl-runtime-status-mark{width:30px;height:30px;display:grid;grid-template-columns:1fr 1fr;gap:4px;flex:0 0 auto;animation:pixlStatusPulse 1.15s steps(2,end) infinite}.pixl-runtime-status-mark span{background:var(--pixl-theme,#59e4ae);border-radius:2px;box-shadow:0 0 13px color-mix(in srgb,var(--pixl-theme,#59e4ae) 40%,transparent)}.pixl-runtime-status-mark span:nth-child(1),.pixl-runtime-status-mark span:nth-child(4){opacity:.52}.pixl-runtime-status-copy{display:grid;gap:6px;min-width:0;width:min(280px,70%)}.pixl-runtime-status-title{font-size:17px;line-height:1.1;letter-spacing:-.02em}.pixl-runtime-status-detail{font-size:11px;line-height:1.35;color:#a6b2c3;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.pixl-runtime-status-progress{height:3px;border-radius:99px;background:rgba(255,255,255,.10);overflow:hidden;margin-top:4px}.pixl-runtime-status-progress i{display:block;height:100%;width:34%;border-radius:99px;background:var(--pixl-theme,#59e4ae);transition:width .22s ease}.pixl-runtime-status.is-indeterminate .pixl-runtime-status-progress i{animation:pixlStatusBar 1.1s ease-in-out infinite}
.pixl-game-boot{position:absolute;inset:0;z-index:14;display:grid;place-items:center;background:#020607;color:#fff;pointer-events:none;transition:opacity .22s ease,filter .22s ease}.pixl-game-boot::before{content:"";position:absolute;inset:0;background-image:linear-gradient(rgba(255,255,255,.025) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.025) 1px,transparent 1px);background-size:16px 16px;opacity:.55}.pixl-game-boot-lock{position:relative;display:grid;justify-items:center;gap:8px;transform:translateY(5px) scale(.94);opacity:0;animation:pixlGameBootIn .25s .05s cubic-bezier(.2,.9,.2,1) forwards}.pixl-game-boot-p{width:46px;height:46px;border:2px solid var(--pixl-theme,#59e4ae);border-radius:12px;display:grid;place-items:center;box-shadow:0 0 30px color-mix(in srgb,var(--pixl-theme,#59e4ae) 28%,transparent)}.pixl-game-boot-p svg{width:23px;height:23px;fill:var(--pixl-theme,#59e4ae)}.pixl-game-boot-lock strong{font:950 24px/1 Inter,-apple-system,sans-serif;letter-spacing:.22em;margin-left:.22em}.pixl-game-boot-lock i{width:0;height:3px;border-radius:99px;background:linear-gradient(90deg,var(--pixl-theme,#59e4ae),#7cb9ff);transition:width .28s ease}.pixl-game-boot.phase-2 .pixl-game-boot-lock i{width:86px}.pixl-game-boot-lock small{font:900 6px/1 ui-monospace,SFMono-Regular,Menlo,monospace;letter-spacing:.27em;color:#78909a}.pixl-game-boot.is-out{opacity:0;filter:blur(4px)}
.player-top{display:grid!important;grid-template-columns:52px minmax(0,1fr) auto!important;align-items:center!important;gap:10px!important}.player-top>div:not(.pixl-player-actions){min-width:0!important;text-align:center!important}.player-top>div:not(.pixl-player-actions)>strong{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.pixl-player-actions{display:flex;gap:8px;align-items:center;justify-content:flex-end}.pixl-advanced-button{width:48px;height:48px;border-radius:15px;border:1px solid color-mix(in srgb,var(--pixl-theme,#59e4ae) 30%,rgba(255,255,255,.08));background:color-mix(in srgb,var(--pixl-theme,#59e4ae) 7%,rgba(14,20,30,.88));display:grid;place-items:center;color:var(--pixl-theme,#59e4ae);box-shadow:0 8px 20px rgba(0,0,0,.12);touch-action:manipulation}.pixl-advanced-button svg{width:20px;height:20px;fill:currentColor}.pixl-advanced-button:active{transform:scale(.93)}
.pixl-advanced-panel{position:fixed;inset:0;z-index:5000;display:flex;align-items:flex-end;justify-content:center;padding-top:max(10px,env(safe-area-inset-top));background:rgba(2,6,12,.62);backdrop-filter:blur(10px);opacity:0;visibility:hidden;transition:opacity .18s ease}.pixl-advanced-panel.is-open{opacity:1;visibility:visible}.pixl-advanced-sheet{width:min(100%,620px);max-height:calc(100dvh - max(10px,env(safe-area-inset-top)));overflow-y:auto;scrollbar-width:none;-webkit-overflow-scrolling:touch;padding:18px 18px max(24px,env(safe-area-inset-bottom));border-radius:28px 28px 0 0;background:linear-gradient(150deg,#111927,#080d15);border:1px solid rgba(255,255,255,.09);box-shadow:0 -24px 70px rgba(0,0,0,.42);color:#f8fbff}.pixl-advanced-sheet::-webkit-scrollbar{display:none}.pixl-advanced-head{display:flex;justify-content:space-between;align-items:center;gap:15px}.pixl-kicker,.pixl-graphics-title span{font:900 9px/1 ui-monospace,SFMono-Regular,Menlo,monospace;letter-spacing:.18em;color:var(--pixl-theme,#59e4ae)}.pixl-advanced-head h2{margin:7px 0 0;font-size:29px;line-height:1;letter-spacing:-.045em}.pixl-advanced-close{width:48px;height:48px;border-radius:15px;border:1px solid rgba(255,255,255,.12);background:rgba(255,255,255,.05);color:inherit;font-size:31px;line-height:1}.pixl-runtime-chip{margin:16px 0;display:flex;align-items:center;gap:9px;padding:11px 13px;border-radius:15px;background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.08);font-size:12px}.pixl-runtime-chip i{width:8px;height:8px;border-radius:50%;background:var(--pixl-theme,#59e4ae);box-shadow:0 0 12px currentColor}.pixl-advanced-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.pixl-advanced-grid button{min-height:88px;padding:11px 7px;border-radius:18px;border:1px solid rgba(255,255,255,.09);background:rgba(255,255,255,.045);color:inherit;display:grid;place-items:center;align-content:center;gap:8px;touch-action:none}.pixl-control-icon{display:grid;place-items:center;width:28px;height:28px;color:var(--pixl-theme,#59e4ae)}.pixl-control-icon svg{width:26px;height:26px;fill:currentColor}.pixl-control-icon svg .cut{fill:var(--pixl-panel-cut,#101722)}.pixl-advanced-grid button span{font-size:11px;font-weight:850}.pixl-advanced-grid button.is-active{transform:scale(.96);background:color-mix(in srgb,var(--pixl-theme,#59e4ae) 16%,rgba(255,255,255,.05));border-color:color-mix(in srgb,var(--pixl-theme,#59e4ae) 50%,transparent)}.pixl-graphics-card{margin-top:14px;padding:16px;border-radius:22px;background:rgba(0,0,0,.16);border:1px solid rgba(255,255,255,.08)}.pixl-graphics-title{display:flex;justify-content:space-between;align-items:end;margin-bottom:6px}.pixl-toggle-row,.pixl-slider-row{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:14px 0;border-top:1px solid rgba(255,255,255,.07)}.pixl-toggle-row>span,.pixl-slider-row>span{display:grid;gap:3px}.pixl-toggle-row strong,.pixl-slider-row strong{font-size:13px}.pixl-toggle-row small,.pixl-slider-row small{font-size:10px;line-height:1.3;color:#95a2b7}.pixl-toggle-row input{width:46px;height:28px;accent-color:var(--pixl-theme,#59e4ae)}.pixl-slider-row{display:grid;grid-template-columns:1fr 145px}.pixl-slider-row input{width:100%;accent-color:var(--pixl-theme,#59e4ae)}.pixl-fps-counter{position:absolute;right:12px;top:76px;z-index:12;padding:5px 7px;border-radius:7px;background:rgba(0,0,0,.66);color:#fff;font:800 9px/1 ui-monospace,SFMono-Regular,Menlo,monospace;pointer-events:none}.pixl-gfx-smooth canvas{image-rendering:auto!important}.pixl-gfx-fill .game-canvas{object-fit:cover!important}.player .game-canvas{filter:brightness(var(--pixl-gfx-brightness,1))}
html[data-pixl-theme="sinnoh"] .pixl-runtime-status{background:radial-gradient(circle at 50% 45%,rgba(76,188,159,.12),#f1f9fc 70%);color:#143b50}html[data-pixl-theme="sinnoh"] .pixl-runtime-status-detail{color:#6d8796}html[data-pixl-theme="sinnoh"] .pixl-game-boot{background:#eaf6fc;color:#15394d}html[data-pixl-theme="sinnoh"] .pixl-game-boot::before{background-image:linear-gradient(rgba(48,120,150,.055) 1px,transparent 1px),linear-gradient(90deg,rgba(48,120,150,.055) 1px,transparent 1px)}html[data-pixl-theme="sinnoh"] .pixl-advanced-button{background:rgba(255,255,255,.82);border-color:#a8cbd7}html[data-pixl-theme="sinnoh"] .pixl-advanced-panel{background:rgba(155,196,210,.42)}html[data-pixl-theme="sinnoh"] .pixl-advanced-sheet{--pixl-panel-cut:#f3fbfe;background:linear-gradient(155deg,#f8fcff,#e9f6fb);color:#12354a;border-color:#9ecbd7;box-shadow:0 -20px 60px rgba(38,79,97,.2)}html[data-pixl-theme="sinnoh"] .pixl-advanced-close,html[data-pixl-theme="sinnoh"] .pixl-runtime-chip,html[data-pixl-theme="sinnoh"] .pixl-graphics-card,html[data-pixl-theme="sinnoh"] .pixl-advanced-grid button{background:rgba(255,255,255,.65);border-color:#bfd9e2;color:#163b50}html[data-pixl-theme="sinnoh"] .pixl-toggle-row,html[data-pixl-theme="sinnoh"] .pixl-slider-row{border-color:#c8dfe7}html[data-pixl-theme="sinnoh"] .pixl-toggle-row small,html[data-pixl-theme="sinnoh"] .pixl-slider-row small{color:#6e8797}
@keyframes pixlStatusPulse{50%{transform:rotate(90deg) scale(.92)}}@keyframes pixlStatusBar{0%{transform:translateX(-120%);width:34%}55%{width:58%}100%{transform:translateX(300%);width:34%}}@keyframes pixlGameBootIn{to{opacity:1;transform:translateY(0) scale(1)}}
@media(max-width:420px){.player-top{grid-template-columns:46px minmax(0,1fr) auto!important;gap:7px!important}.pixl-player-actions{gap:6px}.pixl-advanced-button,.player-top .player-button{width:43px!important;height:43px!important}.pixl-advanced-sheet{padding:17px 14px max(22px,env(safe-area-inset-bottom))}.pixl-advanced-grid{gap:8px}.pixl-advanced-grid button{min-height:80px}.pixl-slider-row{grid-template-columns:1fr 118px}.pixl-runtime-status{padding:20px;gap:13px}.pixl-runtime-status-copy{width:min(275px,72%)}.pixl-runtime-status-detail{font-size:10px}}
@media(prefers-reduced-motion:reduce){.pixl-game-boot,.pixl-game-boot *,.pixl-runtime-status-mark,.pixl-runtime-status-progress i,.pixl-advanced-panel{animation:none!important;transition:none!important}}

/* PIXL alpha82 signature boot + dark console loading surface */
.player .canvas-wrap{isolation:isolate;background:#020509!important}
.pixl-runtime-status,
html[data-pixl-theme="sinnoh"] .pixl-runtime-status{background:radial-gradient(ellipse at 50% 45%,color-mix(in srgb,var(--pixl-theme,#5ce5b0) 16%,#10192a),#03060b 62%,#010204 100%)!important;color:#f8fbff!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important}
.pixl-runtime-status::before{content:"";position:absolute;inset:0;pointer-events:none;background-image:linear-gradient(rgba(255,255,255,.018) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.018) 1px,transparent 1px);background-size:18px 18px;mask-image:radial-gradient(circle at 50% 50%,#000 12%,transparent 78%);-webkit-mask-image:radial-gradient(circle at 50% 50%,#000 12%,transparent 78%)}
.pixl-runtime-status>*{position:relative;z-index:1}
.pixl-runtime-status-mark{width:38px!important;height:38px!important;display:block!important;animation:pixlLogoBreath 1.4s ease-in-out infinite!important;filter:drop-shadow(0 0 12px color-mix(in srgb,var(--pixl-theme,#59e4ae) 24%,transparent))}
.pixl-runtime-status-mark img{display:block;width:100%;height:100%;border-radius:10px;object-fit:cover}
.pixl-runtime-status-detail,html[data-pixl-theme="sinnoh"] .pixl-runtime-status-detail{color:#aeb9c9!important}
.pixl-runtime-status-progress{height:4px!important;background:rgba(255,255,255,.09)!important}
.pixl-runtime-status-progress i{box-shadow:0 0 12px color-mix(in srgb,var(--pixl-theme,#59e4ae) 48%,transparent)}

.pixl-game-boot,
html[data-pixl-theme="sinnoh"] .pixl-game-boot{background:radial-gradient(circle at 50% 47%,#10101c 0,#05060d 44%,#010205 100%)!important;color:#fff!important;overflow:hidden}
.pixl-game-boot::before{content:"";position:absolute;inset:-30%;background:conic-gradient(from 180deg at 50% 50%,transparent 0 38%,color-mix(in srgb,var(--pixl-theme,#8a58ff) 13%,transparent) 44%,transparent 51% 100%);animation:pixlBootAura 5s linear infinite;opacity:.7}
.pixl-game-boot::after{content:"";position:absolute;inset:0;background-image:linear-gradient(rgba(255,255,255,.018) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.018) 1px,transparent 1px);background-size:16px 16px;opacity:.5;mask-image:radial-gradient(circle,#000 5%,transparent 67%);-webkit-mask-image:radial-gradient(circle,#000 5%,transparent 67%)}
.pixl-boot-scan{position:absolute;z-index:2;left:12%;right:12%;top:50%;height:1px;background:linear-gradient(90deg,transparent,color-mix(in srgb,var(--pixl-theme,#8a58ff) 85%,#fff),transparent);box-shadow:0 0 20px color-mix(in srgb,var(--pixl-theme,#8a58ff) 50%,transparent);transform:scaleX(0);opacity:0}
.pixl-game-boot.phase-2 .pixl-boot-scan{animation:pixlBootScan .9s cubic-bezier(.22,.8,.22,1) both}
.pixl-game-boot-lock{z-index:4;display:grid;justify-items:center;gap:7px;transform:translateY(2px) scale(.78)!important;opacity:0!important;animation:none!important;transition:transform .62s cubic-bezier(.16,1,.3,1),opacity .38s ease,filter .5s ease;filter:blur(9px)}
.pixl-game-boot.phase-1 .pixl-game-boot-lock{opacity:1!important;transform:translateY(0) scale(1)!important;filter:blur(0)}
.pixl-game-boot-logo{position:relative;width:82px;height:82px;display:block;filter:drop-shadow(0 0 24px rgba(124,70,255,.22));transform:scale(.88);transition:transform .65s cubic-bezier(.16,1,.3,1)}
.pixl-game-boot.phase-2 .pixl-game-boot-logo{transform:scale(1)}
.pixl-game-boot-logo::after{content:"";position:absolute;inset:-10px;border:1px solid color-mix(in srgb,var(--pixl-theme,#8a58ff) 35%,transparent);border-radius:25px;opacity:0;transform:scale(.82)}
.pixl-game-boot.phase-2 .pixl-game-boot-logo::after{animation:pixlBootRing .82s ease-out both}
.pixl-game-boot-logo img{display:block;width:100%;height:100%;border-radius:22px;object-fit:cover}
.pixl-game-boot-lock strong{margin:4px 0 0!important;font:950 26px/1 Inter,-apple-system,BlinkMacSystemFont,sans-serif!important;letter-spacing:.25em!important;padding-left:.25em;text-shadow:0 0 24px rgba(139,91,255,.18)}
.pixl-game-boot-lock em{font:800 7px/1.2 ui-monospace,SFMono-Regular,Menlo,monospace;letter-spacing:.24em;color:#8f9aae;font-style:normal;padding-left:.24em;opacity:0;transform:translateY(5px);transition:opacity .35s ease .25s,transform .35s ease .25s}
.pixl-game-boot.phase-2 .pixl-game-boot-lock em{opacity:1;transform:none}
.pixl-boot-line{display:block;width:0;height:2px;border-radius:10px;background:linear-gradient(90deg,#6b4dff,var(--pixl-theme,#b55cff),#5de2c2);box-shadow:0 0 14px rgba(128,83,255,.34);transition:width .65s cubic-bezier(.16,1,.3,1)}
.pixl-game-boot.phase-3 .pixl-boot-line{width:112px}
.pixl-boot-particles{position:absolute;z-index:3;left:50%;top:50%;width:140px;height:140px;transform:translate(-50%,-50%);pointer-events:none}
.pixl-boot-particles i{position:absolute;width:5px;height:5px;border-radius:1px;background:var(--pixl-theme,#9e62ff);opacity:0;box-shadow:0 0 9px currentColor}
.pixl-boot-particles i:nth-child(1){left:7%;top:65%}.pixl-boot-particles i:nth-child(2){left:18%;top:79%;width:3px;height:3px}.pixl-boot-particles i:nth-child(3){right:10%;top:24%;width:4px;height:4px}.pixl-boot-particles i:nth-child(4){right:2%;top:47%;width:3px;height:3px}.pixl-boot-particles i:nth-child(5){left:27%;top:8%;width:3px;height:3px}
.pixl-game-boot.phase-2 .pixl-boot-particles i{animation:pixlBootPixel 1.15s ease-out both}.pixl-game-boot.phase-2 .pixl-boot-particles i:nth-child(2){animation-delay:.08s}.pixl-game-boot.phase-2 .pixl-boot-particles i:nth-child(3){animation-delay:.14s}.pixl-game-boot.phase-2 .pixl-boot-particles i:nth-child(4){animation-delay:.2s}.pixl-game-boot.phase-2 .pixl-boot-particles i:nth-child(5){animation-delay:.26s}
.pixl-game-boot.is-out{opacity:0!important;filter:blur(6px) saturate(.7)!important;transition:opacity .28s ease,filter .28s ease!important}


/* alpha83 header: four direct columns, no wrapper width can push More off-screen */
body.pixl-runtime-shell .player-top,.player .player-top{display:grid!important;grid-template-columns:44px minmax(0,1fr) 40px 40px!important;gap:7px!important;align-items:center!important;width:100%!important;box-sizing:border-box!important;padding-left:max(13px,env(safe-area-inset-left))!important;padding-right:max(13px,env(safe-area-inset-right))!important;overflow:visible!important}
.player-top>div{min-width:0!important;text-align:center!important;overflow:hidden!important}.player-top>div strong{display:block!important;max-width:100%!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important}.player-top>div span{display:block!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important}
.pixl-player-actions{display:contents!important}.pixl-advanced-button,.player-top #gameMenu,.player-top #exitGame{box-sizing:border-box!important;margin:0!important;justify-self:center!important;align-self:center!important}
.pixl-advanced-button{grid-column:3!important;width:40px!important;height:40px!important;min-width:40px!important;border-radius:13px!important;padding:0!important;display:grid!important;place-items:center!important;background:linear-gradient(160deg,#151b28,#090e18)!important;border:1px solid color-mix(in srgb,var(--pixl-theme,#59e4ae) 38%,#2a3242)!important;color:var(--pixl-theme,#59e4ae)!important;box-shadow:0 8px 20px rgba(0,0,0,.16),inset 0 1px rgba(255,255,255,.045)!important}
.player-top #gameMenu{grid-column:4!important;width:40px!important;height:40px!important;min-width:40px!important}.player-top #exitGame{grid-column:1!important;width:44px!important;height:44px!important;min-width:44px!important}.pixl-advanced-button svg{width:17px!important;height:17px!important;fill:currentColor}.pixl-advanced-button svg .cut{fill:#111722!important}
html[data-pixl-theme="sinnoh"] .pixl-advanced-button{background:linear-gradient(160deg,#173141,#0d202b)!important;border-color:#4e93a4!important;color:#64e2b1!important}
/* Runtime cards communicate persistent/toggle state clearly. */
.pixl-advanced-grid button[aria-pressed="true"],.pixl-advanced-grid button.is-active{box-shadow:inset 0 0 0 2px color-mix(in srgb,var(--pixl-theme,#7f5cff) 55%,transparent),0 8px 18px rgba(0,0,0,.08)!important;background:color-mix(in srgb,var(--pixl-theme,#7f5cff) 10%,var(--pixl-panel,#fff))!important}.pixl-advanced-grid button[aria-pressed="true"] .pixl-control-icon{transform:scale(1.05)}
/* Keep all launch/boot status surfaces console-dark across theme overrides. */
.player .canvas-wrap .pixl-runtime-status,.player .canvas-wrap .pixl-game-boot,.player .pixl-launch-progress{background:radial-gradient(circle at 50% 42%,color-mix(in srgb,var(--pixl-theme,#7257ff) 10%,#090914),#05050a 58%,#020205)!important;color:#fff!important}
@media(max-width:420px){body.pixl-runtime-shell .player-top,.player .player-top{grid-template-columns:42px minmax(0,1fr) 38px 38px!important;gap:5px!important;padding-left:11px!important;padding-right:11px!important}.pixl-advanced-button,.player-top #gameMenu{width:38px!important;height:38px!important;min-width:38px!important}.player-top #exitGame{width:42px!important;height:42px!important;min-width:42px!important}.player-top>div strong{font-size:clamp(15px,4.7vw,20px)!important}}
@media(prefers-reduced-motion:reduce){.pixl-game-boot-lock{opacity:1!important;transform:none!important;filter:none!important}.pixl-game-boot{transition:opacity .15s ease!important}.pixl-boot-particles,.pixl-boot-scan{display:none!important}}
