:root{color-scheme:dark;--gold:#e5c483;--muted:#a3a4ab;--line:rgba(255,255,255,.13)}
*{box-sizing:border-box}body{margin:0;background:#090a0e;color:#f6f5f1;font-family:Segoe UI,Arial,sans-serif;min-height:100svh;overflow-x:hidden}button,a{-webkit-tap-highlight-color:transparent}button{font:inherit;color:inherit;cursor:pointer}button,a{touch-action:manipulation}button:focus-visible,a:focus-visible,.pad-focus{outline:2px solid var(--gold)!important;outline-offset:5px;box-shadow:0 0 25px #e5c48330!important}button{transition:background .14s,border-color .14s,transform .14s}button:hover{background-color:#ffffff18}button:active{transform:scale(.97)}button:disabled{opacity:.45;cursor:default}button[hidden],[hidden]{display:none!important}.backdrops{position:fixed;inset:0;z-index:-3;background:#090a0e}.backdrop{position:absolute;inset:0;background-size:cover;background-position:center right;opacity:0;transition:opacity .28s ease;filter:saturate(.65)}.backdrop.active{opacity:.52}.backdrop[data-bg=boxes]{background-image:url('assets/boxes.png')}.backdrop[data-bg=drone]{background-image:url('assets/drone.png')}.backdrops:after{content:'';position:absolute;inset:0;background:linear-gradient(90deg,#090a0efc 0%,#090a0eeb 30%,#090a0e50 75%),linear-gradient(0deg,#090a0e 0%,transparent 75%,#090a0e99 100%)}#particles{position:fixed;inset:0;z-index:-1;pointer-events:none}.ambient{position:fixed;inset:0;pointer-events:none;z-index:-2;background:radial-gradient(ellipse at 0% 95%,#ae7f1918,transparent 65%)}.header{height:116px;display:flex;align-items:center;gap:65px;padding:0 5%;border-bottom:1px solid #ffffff07}.brand{display:flex;align-items:center;gap:17px;text-decoration:none;color:#ead3a2;letter-spacing:5px;font-size:15px}.brand-mark{font-size:52px;line-height:1;color:var(--gold);text-shadow:0 0 22px #d7ad6050}.header nav{display:flex;gap:34px;height:100%;align-items:center}.nav-button{border:0;background:transparent;color:#aaaab2;font-size:17px;padding:16px 0;position:relative}.nav-button.active{color:#fff1d3}.nav-button.active:after{content:'';position:absolute;bottom:0;left:10%;right:10%;height:2px;background:var(--gold);box-shadow:0 0 15px #ffce72}.header-actions{margin-left:auto;display:flex;gap:25px;align-items:center}.controller{font-size:28px;color:#8b8b94}.controller.connected{color:var(--gold)}.profile{display:flex;align-items:center;gap:12px;border:1px solid var(--line);border-radius:30px;background:#ffffff06;padding:7px 17px 7px 7px;font-size:14px}.avatar{display:grid;place-items:center;border-radius:50%;background:#ffffff17;width:32px;height:32px;color:#d5cfbf}main{padding:30px 5% 0;max-width:1900px;margin:auto}.catalog{max-width:740px}.section-label{display:flex;justify-content:space-between;margin-bottom:20px;font-size:10px;letter-spacing:2.2px;color:#b6b3aa}.section-label span:last-child{color:#777981;letter-spacing:1px}.game-list{display:flex;gap:20px;min-height:164px}.game-card{position:relative;width:264px;aspect-ratio:800/470;border-radius:15px;border:1px solid #ffffff25;padding:0;background:#16171b;overflow:visible;transition:transform .16s,border-color .16s,box-shadow .16s;text-align:left}.game-card img{width:100%;height:100%;object-fit:cover;border-radius:14px;display:block;opacity:.58;transition:opacity .16s}.game-card.selected{border-color:#edcc8d;box-shadow:0 0 0 3px #e5c48320,0 8px 30px #0006;transform:none}.game-card.selected img,.game-card:hover img{opacity:1}.game-card.selected:after{content:'';position:absolute;width:24px;height:3px;background:var(--gold);border-radius:5px;bottom:-13px;left:calc(50% - 12px);box-shadow:0 0 12px #e5c48366}.card-index{position:absolute;right:9px;bottom:9px;padding:4px 7px;border-radius:5px;background:#0009;color:#fff;font-size:10px}.hero{padding-top:52px;max-width:780px;min-height:340px}.eyebrow{display:flex;align-items:center;gap:12px;color:#b6ab94;font-size:10px;font-weight:600;letter-spacing:2px}.gold-line{width:27px;height:1px;background:var(--gold)}.dot{color:var(--gold)}h1{font-size:clamp(38px,4.4vw,70px);font-weight:500;line-height:1.06;letter-spacing:-2px;margin:22px 0 18px;white-space:pre-line;text-shadow:0 3px 35px #0005}.description{font-size:16px;line-height:1.8;color:#b4b4bc;max-width:500px;margin:0 0 20px}.game-meta{display:flex;gap:10px;align-items:center;flex-wrap:wrap;color:#aaaab0;font-size:11px}.game-meta>span{padding:6px 10px;border:1px solid #ffffff12;border-radius:5px;background:#ffffff04}.status{display:flex;align-items:center;gap:7px}i{display:inline-block;width:5px;height:5px;border-radius:50%;background:var(--gold)}.hero-actions{display:flex;gap:12px;margin-top:30px;align-items:center}.primary,.secondary,.favorite{height:54px;border-radius:10px;border:1px solid var(--line);background:#ffffff08;backdrop-filter:blur(16px)}.primary{width:200px;color:#ffedc8;border-color:#dfbb76;background:linear-gradient(120deg,#d8b57533,#e2c58a0b);box-shadow:inset 0 0 15px #e8c77f0b,0 0 25px #d7b3660b;font-size:18px;font-weight:600}.primary:hover{background:#d8b57544}.play-icon{font-size:17px;margin-right:15px}.secondary{padding:0 24px;font-size:14px}.secondary span{padding-left:22px;color:#a2a2a6}.favorite{width:54px;font-size:27px;color:#c4c2bc}.favorite[aria-pressed=true]{color:var(--gold);border-color:#e5c48366}.collection-bottom{display:flex;align-items:center;justify-content:space-between;margin-top:40px;border-top:1px solid #ffffff10;padding:24px 0}.small-label{font-size:9px;letter-spacing:2px;color:#bdab86}.collection-bottom p{color:#7f818b;font-size:12px;margin:8px 0}.collection-number{display:flex;gap:12px;align-items:baseline}.collection-number b{font-size:30px;font-weight:300;color:#e1c796}.collection-number>span{color:#62646d;font-size:12px}footer{display:flex;justify-content:space-between;align-items:center;margin:0 5%;padding:17px 0 24px;color:#93949c;font-size:11px;gap:15px}.input-hints{display:flex;gap:22px;align-items:center}.input-hints>span{display:flex;gap:7px;align-items:center}kbd{display:inline-grid;place-items:center;min-width:21px;height:21px;border:1px solid #777984;border-radius:5px;font:11px Segoe UI;padding:0 4px}#input-status{display:flex;gap:9px;align-items:center;white-space:nowrap}dialog{background:#14151bf5;color:#eee;border:1px solid #e5c48344;border-radius:20px;padding:42px;max-width:490px;width:calc(100% - 32px);box-shadow:0 30px 120px #000b}dialog::backdrop{background:#030408b8;backdrop-filter:blur(12px)}dialog h2{font-size:27px;font-weight:500;margin:18px 0}dialog p{font-size:15px;line-height:1.8;color:#b5b5be;white-space:pre-line}.close-modal{position:absolute;right:14px;top:10px;border:0;background:transparent;font-size:27px;color:#999}.close-action{margin-top:10px}.empty{padding:35px 0;line-height:2;color:#eee}.empty span{font-size:13px;color:#999}.toast{position:fixed;bottom:75px;left:50%;transform:translate(-50%,10px);background:#24232aee;border:1px solid #e5c48355;border-radius:10px;padding:14px 24px;font-size:13px;opacity:0;transition:.18s;pointer-events:none;z-index:10}.toast.visible{opacity:1;transform:translate(-50%,0)}.splash{position:fixed;inset:0;z-index:100;background:#090a0e;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:23px;transition:opacity .25s;pointer-events:none}.splash strong{font-size:18px;letter-spacing:7px;font-weight:400;color:var(--gold)}.loading-line{width:110px;height:1px;background:linear-gradient(90deg,transparent,var(--gold),transparent);animation:pulse .8s infinite alternate}.splash.done{opacity:0;visibility:hidden;transition:opacity .25s,visibility 0s .25s}@keyframes pulse{to{opacity:.2;transform:scaleX(.5)}}@media(min-width:1600px){main{padding-top:45px}.game-card{width:300px}.hero{padding-top:65px;min-height:400px}.collection-bottom{margin-top:60px}}@media(max-width:850px){.header{height:90px;gap:28px}.brand{font-size:12px;letter-spacing:3px}.header nav{gap:20px}.nav-button{font-size:14px}.header-actions{gap:10px}.profile>span:last-child{display:none}.profile{padding:5px}.catalog{max-width:600px}.game-card{width:min(43vw,264px)}.hero{padding-top:36px}.backdrop{background-position:65% center}.backdrops:after{background:linear-gradient(90deg,#090a0ef0,#090a0e75),linear-gradient(0deg,#090a0e,transparent)}.input-hints{gap:12px}.collection-bottom{margin-top:30px}}@media(max-width:540px){.header{flex-wrap:wrap;height:auto;padding-top:18px;gap:12px}.brand-mark{font-size:36px}.header nav{order:3;width:100%;justify-content:center;gap:32px;height:54px}.header-actions{margin-left:auto}.controller{font-size:22px}main{padding-top:23px}.section-label{font-size:8px;letter-spacing:1.3px}.game-list{gap:13px;min-height:110px}.game-card{border-radius:10px}.game-card img{border-radius:9px}.eyebrow{font-size:8px;letter-spacing:1px;gap:7px}h1{font-size:43px}.description{font-size:14px}.hero-actions{gap:9px}.primary{width:155px}.secondary{padding:0 17px}.secondary span{padding-left:10px}.favorite{width:48px}.hero{min-height:360px}.collection-bottom p{max-width:220px;line-height:1.6}footer{flex-wrap:wrap}.input-hints{flex-wrap:wrap;gap:10px}#gamepad-hints{flex-wrap:wrap}.small-label{letter-spacing:1px;font-size:8px}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{transition:none!important;animation:none!important}#particles{display:none}}
/* Rounded glass controls share the guest profile's visual language. */
.nav-button,.primary,.secondary,.favorite,.close-modal{border:1px solid var(--line);border-radius:30px;background:#ffffff06;backdrop-filter:blur(16px);box-shadow:none;color:#e7e5df}
.nav-button{padding:12px 22px;font-size:14px}
.nav-button.active{background:#ffffff06;border-color:var(--line);color:#e7e5df}
.nav-button.active:after{display:none}
.primary{font-weight:500}.primary:hover,.secondary:hover,.favorite:hover,.nav-button:hover{background:#ffffff15;border-color:#ffffff35}
.close-modal{width:34px;height:34px;display:grid;place-items:center;font-size:23px;line-height:1}
.game-card{border-radius:25px;background:#ffffff06;backdrop-filter:blur(16px)}.game-card img{border-radius:24px}.game-card.selected{border-color:#e5c48399;box-shadow:0 0 0 3px #ffffff08,0 8px 30px #0005}
.brand-mark{width:46px;height:46px;object-fit:contain;filter:drop-shadow(0 0 15px #d7ad6033)}
main{min-height:calc(100svh - 190px);display:flex;flex-direction:column}
.hero{opacity:0;visibility:hidden;transform:translateX(60px);filter:brightness(0);pointer-events:none;min-height:380px;transition:opacity .25s,transform .35s,filter .35s,visibility 0s .35s}
.game-open .hero{opacity:1;visibility:visible;transform:translateX(0);filter:brightness(1);pointer-events:auto;transition:opacity .48s,transform .48s,filter .48s,visibility 0s}
.back-to-menu{height:36px;font-size:12px;margin-bottom:22px;padding:0 16px}.hero .eyebrow{margin-top:0}
.collection-bottom{margin-top:auto;padding-top:24px}.header nav{gap:12px}
.splash{pointer-events:auto;overflow:hidden;background:radial-gradient(ellipse at center,#242017 0%,#0c0d11 42%,#07080b 75%);transition:opacity .85s}
.splash:before,.splash:after{content:'';position:absolute;width:360px;height:360px;border:1px solid #e5c48312;border-radius:50%;pointer-events:none;animation:orbit 12s linear infinite}
.splash:after{width:490px;height:490px;border-style:dashed;border-color:#e5c4830c;animation-direction:reverse}
.splash .brand-mark{width:118px;height:118px;animation:emblem-arrive 1.5s cubic-bezier(.2,.7,.2,1) both,emblem-breathe 2.5s 1.5s ease-in-out infinite;z-index:1}
.splash strong{animation:wordmark-arrive 1.4s .45s both;z-index:1}
.splash .loading-line{width:135px;margin-top:10px;animation:loading-reveal 4.6s ease-out both}
.splash.done{opacity:0;visibility:hidden;pointer-events:none;transition:opacity .85s,visibility 0s .85s}
.header,main,footer{transition:opacity .7s,transform .7s}.booting .header,.booting main,.booting footer{opacity:0;transform:translateY(10px)}.booting{overflow:hidden}
@keyframes emblem-arrive{from{opacity:0;transform:scale(.65) rotate(-24deg);filter:blur(12px) brightness(2)}to{opacity:1;transform:scale(1) rotate(0);filter:blur(0) drop-shadow(0 0 20px #e5c48340)}}
@keyframes emblem-breathe{50%{filter:drop-shadow(0 0 28px #e5c48370);transform:translateY(-3px)}}
@keyframes wordmark-arrive{from{opacity:0;letter-spacing:14px;transform:translateY(10px)}to{opacity:1;letter-spacing:7px;transform:translateY(0)}}
@keyframes loading-reveal{from{opacity:0;transform:scaleX(0)}20%{opacity:1}to{opacity:1;transform:scaleX(1)}}
@keyframes orbit{to{transform:rotate(360deg)}}
@media(max-width:540px){.header nav{gap:8px}.nav-button{padding:10px 17px}.game-card,.game-card img{border-radius:17px}.brand-mark{width:36px;height:36px}.hero{min-height:390px}.hero-actions{flex-wrap:wrap}.splash:after{width:340px;height:340px}.splash:before{width:260px;height:260px}}
@media(prefers-reduced-motion:reduce){.hero{transform:none;filter:none}.splash.done{transition:none}.booting .header,.booting main,.booting footer{transform:none}}
.game-open .hero{padding-bottom:28px}
/* Catalog and details occupy one stage, so the artwork is revealed on opening. */
main{display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:1fr auto;align-items:start}
.catalog,.hero{grid-column:1;grid-row:1;width:100%}
.catalog{opacity:1;visibility:visible;transform:translateX(0);transition:opacity .3s ease,transform .45s cubic-bezier(.2,.7,.2,1),visibility 0s}
.game-open .catalog{opacity:0;visibility:hidden;transform:translateX(-100px);pointer-events:none;transition:opacity .3s ease,transform .45s cubic-bezier(.2,.7,.2,1),visibility 0s .45s}
.hero,.game-open .hero{padding-top:20px;transform:none;filter:none;transition:opacity .24s,visibility 0s .3s;min-height:520px}
.game-open .hero{transition:opacity .2s .18s,visibility 0s}
.hero>:not(.hero-actions){opacity:0;transform:translateX(55px);filter:brightness(0);transition:opacity .18s,transform .25s,filter .25s}
.game-open .hero>:not(.hero-actions){opacity:1;transform:translateX(0);filter:brightness(1);transition:opacity .45s var(--reveal-delay),transform .5s cubic-bezier(.2,.7,.2,1) var(--reveal-delay),filter .5s var(--reveal-delay)}
.back-to-menu{--reveal-delay:.2s}.hero .eyebrow{--reveal-delay:.29s}.hero h1{--reveal-delay:.38s}.hero .description{--reveal-delay:.47s}.hero .game-meta{--reveal-delay:.56s}
.hero-actions>button{opacity:0;transform:translateY(30px);transition:opacity .18s,transform .25s,background .14s,border-color .14s}
.game-open .hero-actions>button{opacity:1;transform:translateY(0);transition:opacity .38s var(--reveal-delay),transform .45s cubic-bezier(.2,.7,.2,1) var(--reveal-delay),background .14s,border-color .14s}
#play{--reveal-delay:.66s}#details{--reveal-delay:.78s}#favorite{--reveal-delay:.9s}
.game-open .hero-actions>button:active{transform:scale(.97)}
.collection-bottom{grid-column:1;grid-row:2;width:100%;margin-top:28px}
.backdrop{transition:opacity .45s ease,filter .65s ease}.game-open .backdrop.active{opacity:.72;filter:saturate(.85)}
@media(max-width:540px){.hero,.game-open .hero{padding-top:12px;min-height:520px}.game-open .catalog{transform:translateX(-45px)}}
@media(prefers-reduced-motion:reduce){.catalog,.game-open .catalog,.hero>:not(.hero-actions),.hero-actions>button{transform:none!important;filter:none!important}}
.catalog,.hero{transform-origin:40% 35%}
/* Full artwork above a lower information deck. */
.header{position:absolute;top:0;left:0;width:100%;z-index:3;transition:transform .45s cubic-bezier(.2,.7,.2,1),opacity .3s,visibility 0s}
.game-open .header{transform:translateY(-110%);opacity:0;visibility:hidden;pointer-events:none;transition:transform .45s cubic-bezier(.2,.7,.2,1),opacity .3s,visibility 0s .45s}
main{min-height:100svh;padding-top:146px;padding-bottom:32px;grid-template-rows:1fr}
.hero,.game-open .hero{align-self:end;max-width:none;min-height:0;padding:26px 0 0;display:grid;grid-template-columns:minmax(240px,1fr) minmax(250px,1.15fr) auto;column-gap:38px;row-gap:16px;isolation:isolate}
.hero:before{content:'';position:absolute;inset:-70px -6vw -32px;z-index:-1;background:linear-gradient(0deg,#090a0efa 0%,#090a0eea 70%,#090a0e00 100%);pointer-events:none}
.back-to-menu{grid-column:1;grid-row:1;justify-self:start;margin:0}
.hero .eyebrow{grid-column:2/4;grid-row:1;align-self:center}
.hero h1{grid-column:1;grid-row:2/4;font-size:clamp(30px,3vw,48px);white-space:normal;line-height:1.12;letter-spacing:-1px;margin:0;align-self:center}
.hero .description{grid-column:2;grid-row:2;font-size:14px;line-height:1.7;max-width:560px;margin:0;align-self:center}
.hero .game-meta{grid-column:2;grid-row:3;font-size:10px;gap:6px;align-self:start}
.hero .hero-actions{grid-column:3;grid-row:2/4;margin:0;align-self:center;display:grid;grid-template-columns:1fr 54px;gap:10px}
.hero-actions .primary{grid-column:1/3;width:100%;min-width:220px}.hero-actions .secondary{padding:0 20px}.hero-actions .favorite{width:54px}
.backdrops:after{transition:opacity .65s}.game-open .backdrops:after{opacity:0}.game-open .backdrop.active{opacity:1;filter:none}.game-open .ambient{opacity:0}.game-open #particles{opacity:0}.ambient,#particles{transition:opacity .5s}
@media(min-width:1600px){main{padding-top:161px}}
@media(max-width:1100px){.hero,.game-open .hero{grid-template-columns:minmax(210px,.85fr) minmax(260px,1.15fr);column-gap:26px}.hero .eyebrow{grid-column:2}.hero h1{grid-row:2/4}.hero .description{grid-column:2;grid-row:2}.hero .game-meta{grid-column:2;grid-row:3}.hero .hero-actions{grid-column:1/3;grid-row:4;display:flex;justify-content:flex-start;gap:12px}.hero-actions .primary{width:190px;min-width:0}}
@media(max-width:600px){main{padding-top:160px;padding-bottom:24px}.hero,.game-open .hero{grid-template-columns:minmax(0,1fr);gap:13px;padding-top:18px;margin-top:210px}.hero:before{inset:-50px -6vw -24px}.hero .back-to-menu,.hero .eyebrow,.hero h1,.hero .description,.hero .game-meta,.hero .hero-actions{grid-column:1;grid-row:auto}.hero h1{font-size:34px;max-width:360px}.hero .description{font-size:13px}.hero .hero-actions{gap:9px;flex-wrap:wrap}.hero-actions .primary{width:145px}.hero-actions .secondary{padding:0 16px}.hero-actions .secondary span{padding-left:8px}.game-open .backdrop{background-size:100% auto;background-repeat:no-repeat;background-position:top center;background-color:#090a0e}.hero .eyebrow{font-size:8px;letter-spacing:1px}}
@media(prefers-reduced-motion:reduce){.game-open .header{transform:none}}
.hero{position:relative}.hero:before{left:calc((100% - 100vw)/2);right:calc((100% - 100vw)/2)}
.music-toggle{position:fixed;right:24px;top:24px;z-index:4;width:42px;height:42px;padding:0;display:grid;place-items:center;font-size:22px;color:#aaa;opacity:.8;transition:opacity .2s,background .2s}.music-toggle.playing{color:var(--gold)}.music-toggle:not(.playing):after{content:'';position:absolute;width:22px;height:1px;background:currentColor;transform:rotate(-45deg)}.music-toggle:hover{opacity:1}.header-actions{padding-right:44px}.booting .music-toggle{visibility:hidden}@media(max-width:600px){.music-toggle{right:14px;top:19px;width:34px;height:34px;font-size:19px}.header-actions{padding-right:40px}}
/* Independent flowing shade, outside all content and depth animations. */
@property --shade-edge{syntax:'<percentage>';inherits:false;initial-value:55%}
@property --shade-side{syntax:'<number>';inherits:false;initial-value:.96}
.scene-shade{position:fixed;inset:0;z-index:-2;pointer-events:none;--shade-edge:55%;--shade-side:.96;background:radial-gradient(ellipse 95vw 145vh at -8% 88%,rgba(9,10,14,var(--shade-side)) 0%,rgba(9,10,14,calc(var(--shade-side)*.96)) 25%,rgba(9,10,14,calc(var(--shade-side)*.78)) 45%,rgba(9,10,14,calc(var(--shade-side)*.42)) 65%,rgba(9,10,14,calc(var(--shade-side)*.09)) 85%,rgba(9,10,14,0) 100%),linear-gradient(0deg,rgba(9,10,14,.99) 0%,rgba(9,10,14,.96) calc(var(--shade-edge)*.25),rgba(9,10,14,.8) calc(var(--shade-edge)*.48),rgba(9,10,14,.43) calc(var(--shade-edge)*.7),rgba(9,10,14,.13) calc(var(--shade-edge)*.88),rgba(9,10,14,0) var(--shade-edge));transition:--shade-edge .36s cubic-bezier(.2,.7,.2,1),--shade-side .36s cubic-bezier(.2,.7,.2,1)}
.game-open .scene-shade{--shade-edge:44%;--shade-side:0}
.backdrops:after,.hero:before{display:none}.backdrop{filter:none;transition:opacity .2s}.backdrop.active{opacity:.8}.game-open .backdrop.active{opacity:1;filter:none}
.backdrop[data-bg=boxes]{background-image:url('assets/boxes-hd.png')}.backdrop[data-bg=drone]{background-image:url('assets/drone-hd.png')}
.header{transition:transform .24s cubic-bezier(.2,.7,.2,1),opacity .18s,visibility 0s}.game-open .header{transition:transform .24s cubic-bezier(.2,.7,.2,1),opacity .18s,visibility 0s .24s}
.catalog{transition:opacity .18s,transform .24s cubic-bezier(.2,.7,.2,1),visibility 0s}.game-open .catalog{transition:opacity .16s,transform .24s cubic-bezier(.2,.7,.2,1),visibility 0s .24s}
.hero,.game-open .hero{min-height:300px;height:32svh;max-height:370px;padding:22px 0 0;grid-template-columns:minmax(250px,1fr) minmax(280px,1.2fr);grid-template-rows:36px 1fr auto auto;column-gap:50px;row-gap:14px}
.hero{transition:opacity .16s,visibility 0s .2s}.game-open .hero{transition:opacity .12s .05s,visibility 0s}
.hero .back-to-menu{grid-column:1;grid-row:1}.hero .eyebrow{grid-column:2;grid-row:1}.hero h1{grid-column:1;grid-row:2/4;align-self:center;font-size:clamp(34px,3vw,52px)}.hero .description{grid-column:2;grid-row:2;max-width:650px;font-size:15px}.hero .game-meta{grid-column:2;grid-row:3;align-self:start}
.hero .hero-actions{grid-column:1/3;grid-row:4;display:flex;justify-content:flex-start;align-self:end;margin-top:12px;gap:12px}.hero-actions .primary{width:200px;min-width:0}.hero-actions .secondary{padding:0 24px}
.game-open .hero>:not(.hero-actions){transition:opacity .23s var(--reveal-delay),transform .28s cubic-bezier(.2,.7,.2,1) var(--reveal-delay),filter .25s var(--reveal-delay)}
.game-open .hero-actions>button{transition:opacity .21s var(--reveal-delay),transform .25s cubic-bezier(.2,.7,.2,1) var(--reveal-delay),background .14s,border-color .14s}
.back-to-menu{--reveal-delay:.04s}.hero .eyebrow{--reveal-delay:.07s}.hero h1{--reveal-delay:.1s}.hero .description{--reveal-delay:.13s}.hero .game-meta{--reveal-delay:.16s}#play{--reveal-delay:.19s}#details{--reveal-delay:.23s}#favorite{--reveal-delay:.27s}
@media(max-width:850px){.hero,.game-open .hero{column-gap:24px;grid-template-columns:minmax(180px,.9fr) minmax(240px,1.1fr);height:auto;min-height:330px}.hero .description{font-size:13px}.hero h1{font-size:36px}.game-open .scene-shade{--shade-edge:55%}}
@media(max-width:600px){.hero,.game-open .hero{height:auto;max-height:none;min-height:0;grid-template-columns:minmax(0,1fr);grid-template-rows:none;gap:12px;margin-top:180px;padding-top:20px}.hero .back-to-menu,.hero .eyebrow,.hero h1,.hero .description,.hero .game-meta,.hero .hero-actions{grid-column:1;grid-row:auto}.hero h1{font-size:32px}.hero .hero-actions{gap:9px;flex-wrap:wrap;margin-top:10px}.hero-actions .primary{width:145px}.hero-actions .secondary{padding:0 15px}.game-open .scene-shade{--shade-edge:68%}.game-open .backdrop{background-size:100% auto;background-position:top center}}
@media(prefers-reduced-motion:reduce){.scene-shade{transition:none}}
/* Full-strength cover artwork, restrained golden focus and sparks. */
.game-card,.game-card img,.game-card.selected img,.game-card:hover img{opacity:1;background-color:#14151a;filter:none}.game-card{backdrop-filter:none}
.game-card:is(:hover,:focus-visible,.pad-focus){border-color:#f5d58e;box-shadow:0 0 0 2px #e8bd6e99,0 0 22px #e4b45b66,0 5px 42px #d29a3433;transform:none}
.card-spark{position:absolute;width:3px;height:3px;pointer-events:none;border-radius:50%;opacity:0;background:#ffe4a0;box-shadow:0 0 6px #f2b949;z-index:2}
.game-card:is(:hover,:focus-visible,.pad-focus) .card-spark{animation:card-ember .9s var(--spark-delay) infinite ease-out}
@keyframes card-ember{0%{opacity:0;transform:translate(0,0) scale(.6)}15%{opacity:.8}70%{opacity:.25}100%{opacity:0;transform:translate(var(--spark-x),var(--spark-y)) scale(.2)}}
button:not(.game-card):is(:hover,:focus-visible,.pad-focus){background:linear-gradient(125deg,#e9c67c66,#b882333d);border-color:#edc778aa;color:#fff0ca;box-shadow:inset 0 0 16px #efce8712,0 0 18px #d6a34b20}
.header{isolation:isolate;border-bottom-color:transparent}.header:before{content:'';position:absolute;inset:0 0 -85px;z-index:-1;pointer-events:none;background:linear-gradient(180deg,#090a0ed9 0%,#090a0e99 32%,#090a0e42 65%,#090a0e00 100%)}
.header .nav-button,.header .profile{background:#ffffff06;border-color:#ffffff21;backdrop-filter:blur(10px);text-shadow:0 1px 5px #0008}.header .nav-button.active{background:#ffffff06}
.header button:is(:hover,:focus-visible,.pad-focus){background:linear-gradient(125deg,#e9c67c77,#b8823355)}
.game-open .scene-shade{--shade-edge:var(--detail-shade-edge,52%)}
@media(prefers-reduced-motion:reduce){.card-spark{display:none}.game-card:is(:hover,:focus-visible,.pad-focus){transform:none}}

.game-card,.game-card.selected,.game-card:is(:hover,:focus-visible,.pad-focus),.game-card:active{transform:none}
body:not(.game-open) .scene-shade{transition-duration:.22s}

/* Genre belongs to the quiet lower edge of the detail deck. */
.hero .eyebrow{grid-column:2;grid-row:4;align-self:end;justify-self:start;padding-bottom:10px;color:#ddcfb2;--reveal-delay:.17s}
.hero .hero-actions{grid-column:1;grid-row:4}
@media(max-width:600px){.hero .eyebrow{grid-column:1;grid-row:5;padding-bottom:0}.hero .hero-actions{grid-column:1;grid-row:6}}
:root{--interface-scale:1.1}
html{zoom:var(--interface-scale);touch-action:pan-x pan-y}
main{min-height:calc(100svh / var(--interface-scale))}
.hero,.game-open .hero{height:calc(32svh / var(--interface-scale));min-height:260px}
@media(max-width:850px){.hero,.game-open .hero{height:auto;min-height:300px}}
@media(max-width:600px){.hero,.game-open .hero{min-height:0;height:auto;margin-top:110px}}
body{min-height:calc(100svh / var(--interface-scale))}#particles{width:100%;height:100%}
main{overflow-x:clip}

/* The document is a fixed console shell; future lists can scroll internally. */
html,body{width:100%;height:100%;min-height:0;overflow:clip;overscroll-behavior:none}
body{position:fixed;inset:0}
main{height:calc(100dvh / var(--interface-scale));min-height:0;overflow:clip}
@media(max-height:700px){main{padding-top:110px;padding-bottom:18px}.hero,.game-open .hero{height:auto;min-height:0;max-height:none;margin-top:0;padding-top:8px;row-gap:8px;grid-template-rows:32px 1fr auto auto}.hero h1{font-size:30px}.hero .description{font-size:12px}.hero .hero-actions{margin-top:4px}.hero-actions button{height:44px}.back-to-menu{height:32px}}
@media(max-width:600px) and (max-height:700px){main{padding-top:150px}.hero,.game-open .hero{grid-template-rows:none;gap:8px}.hero h1{font-size:27px}.hero .description{line-height:1.5}.hero .eyebrow{font-size:7px;letter-spacing:.7px}.hero .game-meta{font-size:9px}.hero-actions .primary{width:130px}.hero-actions .secondary{padding:0 12px}.hero-actions .favorite{width:44px}}

body{-webkit-user-select:none;user-select:none}input,textarea,[contenteditable="true"]{-webkit-user-select:text;user-select:text}
.game-player{position:fixed;inset:0;z-index:50;background:#01050c;display:flex;flex-direction:column}.player-toolbar{height:48px;flex-shrink:0;display:flex;align-items:center;gap:22px;padding:6px 14px;background:#101116;border-bottom:1px solid #ffffff15;font-size:13px;color:#b9b5ad}.player-toolbar .secondary{height:34px;padding:0 16px;font-size:12px}#game-frame-host{flex:1;min-height:0}#game-frame{display:block;width:100%;height:100%;border:0;background:#01050c}.player-loading{position:absolute;inset:48px 0 0;display:flex;align-items:center;justify-content:center;flex-direction:column;background:#01050c;color:#d9c290;font-size:15px}.player-loading .loading-line{display:block}.game-player{zoom:calc(1 / var(--interface-scale))}@media(max-width:540px){.player-toolbar{gap:12px}.player-toolbar>span{font-size:11px}.player-toolbar .secondary{font-size:11px;padding:0 10px}}
#account-dialog{width:min(460px,calc((100vw - 28px) / var(--interface-scale)));max-height:calc(88dvh / var(--interface-scale));overflow-y:auto;padding:34px;border-color:#e5c48344}#account-dialog form{display:grid;gap:14px;margin:18px 0}#account-dialog .primary{width:100%;height:46px;font-size:16px}#account-dialog .secondary{min-height:40px;height:auto;padding:10px 16px;font-size:12px}#account-dialog h2{margin:14px 0;font-size:26px}#account-dialog p{font-size:13px;line-height:1.6}.account-field{display:grid;gap:7px;font-size:12px;color:#c1b9a7}.account-field input,.recovery-code{display:block;width:100%;padding:12px 14px;border:1px solid #ffffff24;background:#ffffff06;color:#f5f2ea;border-radius:12px;font:14px 'Segoe UI',sans-serif;min-width:0}.account-field input:focus,.recovery-code:focus{outline:1px solid #e5c483;outline-offset:2px}.account-status{font-size:12px;color:#d4bf96;line-height:1.5}.account-status:empty{display:none}.account-status.error{color:#ffbaa6}.account-actions,.account-links{display:flex;flex-wrap:wrap;gap:9px;margin-top:16px}.recovery-code{font-family:monospace;font-size:13px;letter-spacing:.6px}.backup-row{padding:12px 0;border-bottom:1px solid #ffffff18;display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:11px}#profile{max-width:210px}#profile>span:last-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}@media(max-width:540px){#account-dialog{padding:25px 22px}.account-field input{padding:10px 12px}.account-links{gap:7px}#account-dialog h2{font-size:23px}#account-dialog .secondary{font-size:11px}}

.account-links a{color:#cdb782;font-size:11px;text-decoration:none}.account-links a:hover{color:#ffe3a5}
.game-list.has-many-games{max-width:100%;overflow-x:auto;overflow-y:hidden;gap:20px;padding:30px 8px;margin:-30px -8px;scrollbar-width:thin;scrollbar-color:#8c734333 transparent;overscroll-behavior-x:contain;scroll-snap-type:x proximity}
.game-list.has-many-games .game-card{flex-shrink:0;scroll-snap-align:start}
@media(max-width:600px){.game-list.has-many-games .game-card{min-width:230px}}
#studio-shell{position:fixed;inset:0;z-index:70;background:#0c0d11;zoom:calc(1 / var(--interface-scale))}
#studio-shell>iframe{display:block;width:100%;height:100%;border:0;background:#0c0d11}
#account-dialog>.close-account,#portal-dialog>.close-modal,#modal>.close-modal{position:sticky;top:0;right:auto;left:auto;float:right;z-index:8;display:grid;place-items:center;width:34px;height:34px;min-height:34px;margin:-10px -10px 3px 12px;padding:0;border-radius:50%;background:#121319f5;border:1px solid #ffffff20!important;color:#c3c4ca;line-height:1;backdrop-filter:blur(12px)}
#account-dialog>.close-account:hover,#portal-dialog>.close-modal:hover,#modal>.close-modal:hover{background:#5b492df5;color:#f3d6a0}
#modal{max-block-size:calc((100dvh - 28px) / var(--interface-scale));overflow:auto;overscroll-behavior:contain}
dialog :is(h2,p){overflow-wrap:anywhere}
body.game-open .hero{max-height:calc((100dvh - 90px) / var(--interface-scale));overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#ac8b4a55 transparent;scroll-padding-block:16px}
#game-title,#game-description{overflow-wrap:anywhere;min-width:0}
#studio-close{position:absolute;top:26px;right:14px;z-index:2;display:grid;place-items:center;width:34px;height:34px;padding:0;border-radius:50%;font-size:23px;line-height:1;background:#14151bea}
@media(max-height:650px),(max-width:600px){#studio-close{top:15px}}
@media(max-height:500px){#studio-close{top:10px}}

/* Expanded account overview, shared by portal and developer cabinet. */
#account-dialog.account-profile{width:min(820px,calc((100vw - 28px) / var(--interface-scale,1)));box-sizing:border-box;max-height:calc(90dvh / var(--interface-scale,1))}
.account-overview{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:22px 0}
.account-feature{min-width:0;padding:20px;border:1px solid #e5c48330;border-radius:18px;background:linear-gradient(135deg,#e5c4830b,#ffffff03)}
#account-dialog .account-feature h3{font-size:19px;line-height:1.3;margin:12px 0}
#account-dialog .account-feature p{margin:0;color:#c5c5cd}
#account-dialog.account-profile h2{overflow-wrap:anywhere;padding-right:30px}
#account-dialog.account-profile .account-actions button{min-height:44px}
#account-dialog.account-profile[open] #account-content>*{animation:account-reveal .3s ease-out both}
#account-dialog.account-profile[open] .account-overview{animation-delay:50ms}
#account-dialog.account-profile[open] form{animation-delay:100ms}
#account-dialog.account-profile[open] .account-actions{animation-delay:150ms}
@keyframes account-reveal{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}
@media(max-width:600px){.account-overview{grid-template-columns:1fr;gap:12px;margin:16px 0}.account-feature{padding:16px}#account-dialog.account-profile{padding:22px 18px}#account-dialog.account-profile .account-actions{display:grid;grid-template-columns:1fr}#account-dialog .account-feature h3{font-size:17px}}
@media(prefers-reduced-motion:reduce){#account-dialog.account-profile[open] #account-content>*{animation:none}}

/* Profile desktop layout: override the generic dialog's 490px cap. */
#account-dialog.account-profile{max-width:none}
@media(min-width:900px){
 #account-dialog.account-profile{width:min(1180px,calc((100vw - 80px) / var(--interface-scale,1)));padding:36px 40px}
 #account-dialog.account-profile #account-content{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(280px,1fr);column-gap:32px;align-items:start}
 #account-dialog.account-profile #account-content>.small-label,
 #account-dialog.account-profile #account-content>h2,
 #account-dialog.account-profile #account-content>p,
 #account-dialog.account-profile #account-content>.account-status{grid-column:1/-1}
 #account-dialog.account-profile .account-overview{grid-column:1;grid-row:5/8;margin:18px 0 0;gap:18px}
 #account-dialog.account-profile #account-content>form{grid-column:2;grid-row:5;margin:18px 0 0}
 #account-dialog.account-profile #account-content>.account-actions{grid-column:2;grid-row:6;display:grid;grid-template-columns:1fr;gap:10px;margin-top:18px}
 #account-dialog.account-profile .account-feature{padding:24px;min-height:290px}
 #account-dialog.account-profile .account-feature p{font-size:14px;line-height:1.75}
 #account-dialog.account-profile>.account-links{margin-top:24px;padding-top:18px;border-top:1px solid #ffffff16}
}

@media(min-width:900px) and (pointer:fine) and (prefers-reduced-motion:no-preference){
 #account-dialog.account-profile[open] #account-content>*{animation:none}
 .account-profile .account-overview{perspective:1000px}
 .account-profile .account-feature{animation:account-depth .34s cubic-bezier(.16,1,.3,1) var(--card-delay,0ms) both;transform-origin:center}
 .account-profile .account-rise{animation:account-control-rise .26s cubic-bezier(.16,1,.3,1) var(--rise-delay,0ms) both}
 .account-profile .account-rise:focus-within{animation:none}
}
.account-type{position:relative}.account-type-reserve{visibility:hidden}.account-type-ink{position:absolute;inset:0}
@keyframes account-depth{from{opacity:0;transform:translateZ(-170px) scale(.92)}to{opacity:1;transform:translateZ(0) scale(1)}}
@keyframes account-control-rise{from{opacity:0;transform:translateY(22px)}to{opacity:1;transform:translateY(0)}}
@media(prefers-reduced-motion:reduce){.account-type-reserve{visibility:visible}.account-type-ink{display:none}}

#account-dialog.account-info{width:min(980px,calc((100vw - 28px) / var(--interface-scale,1)));max-width:none}
#account-dialog .account-info-article{line-height:1.75;overflow-wrap:anywhere}
#account-dialog .account-info-article h1{font-size:30px;letter-spacing:0;margin:24px 0}
#account-dialog .account-info-article h2{font-size:21px;color:#e5c483;margin-top:26px}
#account-dialog .account-info-article p{font-size:15px}
#account-dialog .account-info-article a{color:#e5c483}

#share-game{display:grid;place-items:center;flex:0 0 52px;width:52px;min-width:52px;height:52px;padding:0;border-radius:50%}#share-game svg{width:23px;height:23px;display:block}.share-dialog{box-sizing:border-box;width:min(540px,calc(100vw - 28px));max-height:calc(100dvh - 30px);overflow:auto;padding:32px;border:1px solid #e7c48166;border-radius:24px;background:#11131b;color:#eee}.share-dialog h2{padding-right:28px}.share-dialog p{line-height:1.6;color:#bfc0c8}.share-dialog label{display:grid;gap:10px;margin:20px 0}.share-dialog input{width:100%;box-sizing:border-box;padding:12px;border:1px solid #e7c48155;border-radius:12px;background:#ffffff08;color:inherit;font:inherit;user-select:text}.share-networks{display:flex;flex-wrap:wrap;gap:12px}.share-networks a{padding:12px 16px;border:1px solid #e7c48155;border-radius:24px;color:#e7c481;text-decoration:none}.share-networks a:hover{border-color:#edc778;box-shadow:0 0 18px #d6a34b20}@media(max-width:900px){.game-open .hero .hero-actions #share-game{flex:0 0 46px;width:46px;min-width:46px;height:46px;padding:0}.share-dialog{padding:24px}}


/* Account lounge: identity and controls on the left, two editorial panels on the right. */
.account-identity,.account-heading,.account-settings{display:contents}
.account-monogram{display:none}
@media(min-width:900px){
 #account-dialog.account-profile{width:min(1120px,calc((100vw - 64px) / var(--interface-scale,1)));padding:0;overflow:auto;background:radial-gradient(ellipse at 0 0,#b9954614,transparent 55%),#111219}
 #account-dialog.account-profile #account-content{display:grid;grid-template-columns:minmax(300px,.85fr) minmax(0,1.65fr);gap:0;align-items:stretch}
 #account-dialog.account-profile .account-settings{display:flex;flex-direction:column;gap:24px;padding:34px 28px;background:#080b1040;border-right:1px solid #e5c48324;min-width:0}
 #account-dialog.account-profile .account-identity{display:flex;gap:15px;align-items:center;min-width:0}
 #account-dialog.account-profile .account-heading{display:block;min-width:0}
 #account-dialog.account-profile .account-monogram{display:grid;place-items:center;flex:0 0 56px;height:64px;color:#e5c483;font-size:26px;background:linear-gradient(145deg,#e5c48324,#e5c48306);border:1px solid #e5c48366;border-radius:17px 5px 17px 5px}
 #account-dialog.account-profile .account-heading .small-label{font-size:8px;letter-spacing:2px}
 #account-dialog.account-profile .account-heading h2{font-size:25px;line-height:1.2;padding:0;margin:9px 0}
 #account-dialog.account-profile .account-heading p{font-size:11px;line-height:1.6;margin:0;overflow-wrap:anywhere}
 #account-dialog.account-profile .account-settings>form{margin:0;display:grid;gap:12px}
 #account-dialog.account-profile .account-settings .account-actions{display:grid;grid-template-columns:1fr;gap:10px;margin:0}
 #account-dialog.account-profile .account-settings .account-actions button{width:100%;margin:0;text-align:left;padding:12px 16px}
 #account-dialog.account-profile .account-settings .account-actions button:last-child{margin-top:8px;color:#c0b8ac}
 #account-dialog.account-profile .account-overview{grid-column:2;grid-row:1;display:grid;grid-template-columns:1fr;grid-template-rows:auto auto;gap:20px;padding:38px;margin:0;counter-reset:profile-card}
 #account-dialog.account-profile .account-feature{position:relative;isolation:isolate;padding:26px 28px;min-height:0;overflow:hidden;border-radius:20px 6px 20px 6px;background:linear-gradient(115deg,#e5c4830e,transparent);border-color:#e5c48328}
 #account-dialog.account-profile .account-feature:before{counter-increment:profile-card;content:"0" counter(profile-card);position:absolute;right:20px;top:16px;font-size:96px;line-height:1;font-weight:700;color:#e5c48309;z-index:-1;pointer-events:none}
 #account-dialog.account-profile .account-feature .small-label{display:block;color:#e5c483;font-size:9px;letter-spacing:2px;margin-bottom:17px}
 #account-dialog.account-profile .account-feature h3{font-size:24px;line-height:1.2;margin:0 0 14px;max-width:90%}
 #account-dialog.account-profile .account-feature p{font-size:13px;line-height:1.8;max-width:48ch}
 #account-dialog.account-profile #account-content>.account-status{grid-column:1/-1;padding:0 28px}
 #account-dialog.account-profile #account-content>.account-status:empty{display:none}
 #account-dialog.account-profile>.account-links{margin:0;padding:16px 28px;border-top:1px solid #e5c48324;background:#080b1033}
}
@media(max-width:899px){
 #account-dialog.account-profile .account-settings>form{margin-top:18px}
}

@media(min-width:900px){#account-dialog.account-profile>.close-account{position:absolute;top:12px;right:12px;left:auto;float:none;margin:0;width:30px;height:30px;min-height:30px}#account-dialog.account-profile .account-overview{padding-top:48px}}

/* Profile: desktop account rail and numbered game / studio panels. */
.account-feature>svg{display:none}
@media(min-width:900px){
 #account-dialog.account-profile{box-shadow:0 32px 100px #0009;border-color:#e5c48350;border-radius:26px}
 #account-dialog.account-profile .account-settings{padding:38px 30px;gap:28px}
 #account-dialog.account-profile .account-identity{align-items:flex-start;padding-bottom:24px;border-bottom:1px solid #e5c48324}
 #account-dialog.account-profile .account-monogram{height:60px;flex-basis:60px;border-radius:18px;font-size:28px;box-shadow:inset 0 0 24px #e5c48308}
 #account-dialog.account-profile .account-feature{padding:26px 28px 26px 88px;border-radius:18px;display:flex;flex-direction:column;justify-content:center}
 #account-dialog.account-profile .account-feature>svg{position:absolute;display:block;left:26px;top:28px;width:36px;height:36px;fill:none;stroke:#e5c483;stroke-width:1.4;stroke-linecap:round;stroke-linejoin:round}
 #account-dialog.account-profile .account-feature h3{font-size:25px;max-width:100%;padding-right:40px}
 #account-dialog.account-profile .account-feature .small-label{margin-bottom:12px}
 #account-dialog.account-profile .account-feature p{max-width:56ch;line-height:1.75}
 #account-dialog.account-profile .account-settings .account-actions{gap:10px;padding-top:22px;border-top:1px solid #e5c48324}
 #account-dialog.account-profile .account-settings .account-actions button{border-radius:13px;position:relative;padding-right:34px}
 #account-dialog.account-profile .account-settings .account-actions button:after{content:"›";position:absolute;right:15px;top:50%;transform:translateY(-50%);font-size:20px;color:#e5c483}
 #account-dialog.account-profile .account-settings .account-actions button:last-child{margin-top:8px;background:transparent}
}
