/* CYNNX motion study — presentation only. */
:root{--bg:#090b14;--glass:#151829df;--line:#8791bd30;--muted:#a9aec5;--violet:#b6a2ff;--lime:#ceff78}
body{background:var(--bg)}
.topbar{max-width:1840px;margin:auto}
.launcher-page .hero{display:block;padding:0;margin:8px 0 24px;overflow:hidden;border-radius:22px;background:#101423;box-shadow:0 24px 70px #0003}
.showcase-stage{position:relative;isolation:isolate;min-height:410px;display:flex;align-items:center;overflow:hidden;background:radial-gradient(ellipse at 15% 80%,#7260c62b,transparent 60%),#10131e}
.showcase-stage:before{content:'';position:absolute;inset:0;z-index:-1;background-image:linear-gradient(90deg,#10131ef5,#10131e88 40%,#10131e12),var(--showcase-image);background-size:cover;background-position:center;filter:blur(24px);opacity:.42;transform:scale(1.08);transition:background-image .5s}
.launcher-page .hero-copy{position:relative;z-index:3;width:35%;padding:32px 0 42px 32px;pointer-events:none}
.hero-copy>*{pointer-events:auto}
.launcher-page .hero h1{font-size:clamp(28px,3vw,48px);line-height:1.05;letter-spacing:-1.8px}
.launcher-page .hero .summary{font-size:15px;line-height:1.5;margin:14px 0;max-width:32ch;color:#d3d7e7;text-wrap:balance}
.launcher-page .hero .kicker{font-size:10px;letter-spacing:2.4px;color:var(--lime)}
.launcher-page .hero-art{position:absolute;z-index:1;inset:0 0 0 35%;width:65%;max-width:none;border:0;border-radius:0;box-shadow:none;background:transparent;display:flex;align-items:center;justify-content:center;overflow:visible;aspect-ratio:auto;padding:24px 24px 24px 30px}
.launcher-page .hero-art img{display:block;width:100%;height:100%;max-height:390px;object-fit:contain;object-position:center;padding:0;border-radius:12px;filter:drop-shadow(0 18px 30px #0007);animation:showcase-drift 12s ease-in-out infinite alternate}
.hero-tags{margin-bottom:18px}.hero-tags .pill{background:#101422af;border-color:#ffffff30}
.launcher-page .hero .btn{min-height:42px;border-radius:9px}.hero .btn.primary{box-shadow:0 4px 22px #ceff7826}
.browse-all{display:none}
.showcase-controls{position:absolute;bottom:16px;left:32px;z-index:5;display:flex;gap:6px}
.showcase-controls button{display:grid;place-items:center;width:30px;height:30px;border:1px solid #ffffff24;border-radius:50%;background:#111727b3;font-size:14px;backdrop-filter:blur(8px)}
.showcase-controls button:hover{background:#ceff78;color:#10131e}.showcase-controls button[aria-pressed=true]{color:var(--lime)}
.hero #popular{margin:0;padding:14px 20px 10px;background:#0e1220d9;border-top:1px solid #ffffff13}
.hero .discovery-heading{margin:0 0 5px}.hero .discovery-heading h2{font-size:10px;text-transform:uppercase;letter-spacing:1.8px;color:#9fa8c3}
.hero .row-controls{display:none}
.hero .discovery-row{display:grid;grid-auto-columns:calc((100% - 48px)/5);grid-auto-flow:column;gap:12px;padding:5px 0 10px;overflow:auto;scroll-snap-type:x mandatory}
.hero .discovery-select{display:grid;grid-template-columns:72px minmax(0,1fr);align-items:center;gap:10px;padding:6px;border:1px solid transparent;border-radius:9px;background:#ffffff04;text-align:left;position:relative}
.hero .discovery-art{grid-row:1/3;width:72px;aspect-ratio:16/9;border-radius:5px;outline:none;box-shadow:none}
.hero .discovery-art img{padding:0;object-fit:contain}.hero .discovery-name{font-size:11px;margin:0;align-self:end;line-height:1.3}.hero .discovery-genre{display:block;font-size:9px;margin:0;color:#929bb7;align-self:start}.hero .cynnx-achievement-tag{display:none!important}
.hero .discovery-select[aria-pressed=true]{background:#ceff780a;border-color:#ceff7866}.hero .discovery-select[aria-pressed=true]:after{content:'';position:absolute;bottom:0;left:0;right:0;height:2px;background:var(--lime);border-radius:9px}
.showcase-atmosphere{position:absolute;inset:0;z-index:2;pointer-events:none;overflow:hidden;--spark:#ffce78}
.hero[data-genre=racing] .showcase-atmosphere{--spark:#77dfff}.hero[data-genre=simulation] .showcase-atmosphere{--spark:#ceff78}.hero[data-genre=survival] .showcase-atmosphere{--spark:#bd9cff}
.showcase-atmosphere i{position:absolute;width:3px;height:3px;border-radius:50%;background:var(--spark);box-shadow:0 0 9px var(--spark);left:calc(38% + var(--i)*7%);bottom:-10px;opacity:0;animation:spark-rise calc(7s + var(--i)*.6s) linear infinite;animation-delay:calc(var(--i)*-1.3s)}
.hero:hover .hero-art img,.hero:focus-within .hero-art img{animation-play-state:paused}
@keyframes showcase-drift{from{transform:translateY(-3px)}to{transform:translateY(3px)}}
@keyframes spark-rise{0%{transform:translate(0,0);opacity:0}15%,60%{opacity:.5}100%{transform:translate(24px,-340px);opacity:0}}
.discover-animation{animation:soft-arrive .38s ease both}@keyframes soft-arrive{from{opacity:.65;transform:translateY(5px)}to{opacity:1;transform:none}}
.hero[data-transition="1"] #hero-title,.hero[data-transition="1"] #hero-summary{animation:soft-arrive .4s ease}.hero[data-transition="0"] #hero-title,.hero[data-transition="0"] #hero-summary{animation:soft-arrive-alt .4s ease}@keyframes soft-arrive-alt{from{opacity:.6;transform:translateY(5px)}to{opacity:1;transform:none}}
.discovery-shelves{grid-template-columns:1fr}.discovery-shelves .discovery-row{grid-auto-columns:calc((100% - 48px)/5)}
.discovery-shelves h2{font-size:22px;letter-spacing:-.6px}.discovery-shelves .discovery-genre{display:block;font-size:10px}
.tile-art,.discovery-art{transition:transform .22s ease,box-shadow .22s ease,outline-color .22s ease}
@media(hover:hover) and (pointer:fine){.tile-select:hover .tile-art,.discovery-select:hover .discovery-art{transform:translateY(-4px);box-shadow:0 12px 25px #0006,0 0 0 1px #b6a2ff66}.tile-select:hover .tile-name,.discovery-select:hover .discovery-name{color:var(--lime)}}
/* Player profile */
#cynnx-account-dialog{width:min(430px,calc(100% - 24px));border-color:#9a8add42;border-radius:20px;background:radial-gradient(ellipse at 100% 0,#7055b82b,transparent 60%),#111521}
.cynnx-account-panel{padding:22px}.cynnx-account-panel-head{margin-bottom:16px}.cynnx-account-panel-head h2{font-size:13px;color:#a7adc3;letter-spacing:1.2px;text-transform:uppercase}.cynnx-account-close{width:30px;height:30px;flex-basis:30px;font-size:23px}
.profile-identity{display:flex;align-items:center;gap:13px;margin-bottom:18px}.profile-avatar{display:grid;place-items:center;width:58px;height:58px;flex:0 0 58px;background:linear-gradient(145deg,#8b63d6,#353d8b);border:1px solid #c0a8ff80;border-radius:17px;box-shadow:0 8px 25px #8a65d326;color:#fff;font-size:30px;font-weight:900}.profile-identity-copy{display:grid;min-width:0}.profile-identity-copy strong{font-size:25px;letter-spacing:-.8px;overflow-wrap:anywhere}.profile-identity-copy>span{font-size:11px;color:#9da6c1}
.cynnx-level-summary{padding:15px;border:1px solid #a98bff35;border-radius:13px;background:#a98bff09;margin-bottom:16px}.cynnx-level-summary>strong{font-size:16px}.cynnx-level-progress{display:block;width:100%;height:7px;margin-top:9px;appearance:none;border:0;border-radius:99px;overflow:hidden;background:#ffffff10}.cynnx-level-progress::-webkit-progress-bar{background:#ffffff10}.cynnx-level-progress::-webkit-progress-value{background:linear-gradient(90deg,#9475e5,#c4afff);border-radius:99px}.cynnx-level-progress::-moz-progress-bar{background:#b6a2ff}.cynnx-level-summary .cynnx-username-help{font-size:11px}
.profile-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;border-top:1px solid #ffffff13;padding-top:12px;margin-top:12px}.profile-stats>div{display:grid;gap:2px}.profile-stats strong{font-size:20px;color:#e2d7ff}.profile-stats span{font-size:9px;color:#a4acc3}
.profile-rules{margin:10px 0;color:#a7b0ca;font-size:11px}.profile-rules summary{cursor:pointer;color:#b9abd9;min-height:24px}.profile-rules p{line-height:1.6;margin:7px 0;font-size:11px}.cynnx-username-form{margin-bottom:12px}.cynnx-username-label{font-size:11px;margin-bottom:6px}.cynnx-username-input{font-size:14px}.cynnx-username-help{font-size:10px}.cynnx-account-panel .cynnx-account-button{min-height:36px;padding:8px 12px;font-size:12px}.cynnx-account-button:disabled{cursor:default}
.profile-invite-perks{display:flex;gap:7px;margin-top:9px}.profile-invite-perks span{font-size:11px;color:var(--lime);background:#ceff780d;border:1px solid #ceff7829;border-radius:6px;padding:4px 7px}
.cynnx-account-identities{grid-template-columns:auto 1fr auto 1fr;gap:8px;align-items:center;margin:16px 0;padding:12px 0;border-block:1px solid #ffffff14;font-size:11px}.cynnx-account-identities dd{color:#bce9b8}.cynnx-account-panel-status:empty{display:none}
/* Rankings: winners get colour, the table stays compact. */
.rank-page{max-width:1728px;padding-top:12px}.rank-intro{margin:8px 0 20px}.rank-intro h1{font-size:clamp(32px,3.4vw,50px)}.rank-eyebrow{margin-bottom:8px}.rank-personal{min-height:0;padding:16px 20px;margin-bottom:18px;background:radial-gradient(ellipse at 5% 0,#9970ff1b,transparent 65%),#121725}.rank-personal-heading{margin-bottom:9px}.rank-personal-content{gap:26px}.rank-level{max-width:630px}.rank-personal-stats{gap:34px}
.rank-podium{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-bottom:18px}.rank-podium[hidden]{display:none}
.podium-player{--medal:#f4cf79;position:relative;display:grid;grid-template-columns:42px minmax(0,1fr) auto;gap:4px 13px;align-items:center;min-width:0;padding:18px;border:1px solid color-mix(in srgb,var(--medal) 36%,transparent);border-radius:13px;background:radial-gradient(ellipse at 10% 0,color-mix(in srgb,var(--medal) 13%,transparent),transparent 75%),#121724;overflow:hidden}
.podium-player[data-place="2"]{--medal:#c5d7f1}.podium-player[data-place="3"]{--medal:#e5a483}.podium-medal{grid-row:1/3;display:grid;place-items:center;width:42px;height:48px;border:1px solid var(--medal);color:var(--medal);background:color-mix(in srgb,var(--medal) 10%,transparent);clip-path:polygon(0 0,100% 0,100% 80%,50% 100%,0 80%);font-size:24px;font-weight:900}.podium-player h2{margin:0;font-size:15px;overflow-wrap:anywhere;line-height:1.25;display:flex;align-items:center;gap:6px;flex-wrap:wrap}.podium-points{font-size:26px;line-height:1;color:var(--medal);font-variant-numeric:tabular-nums;grid-column:3;grid-row:1/3}.podium-detail{font-size:10px;color:#a6afc6}.podium-player .rank-you{font-size:9px}
.rank-panel{background:#101520;border-color:#8791bd25}.rank-heading{padding:15px 20px}#rank-table td{padding-top:15px;padding-bottom:15px}.rank-own{background:#ceff7808!important}.rank-own td:first-child{box-shadow:inset 3px 0 var(--lime)}
.rank-level-progress::-webkit-progress-value{transition:width .5s ease}
@media(min-width:1800px){.showcase-stage{min-height:470px}.launcher-page .hero-art img{max-height:440px}}
@media(max-width:1000px){.launcher-page .hero-copy{width:42%;padding-left:24px}.launcher-page .hero-art{inset-inline-start:42%;width:58%;padding:18px}.hero .discovery-row{grid-auto-columns:calc((100% - 24px)/3)}.hero .discovery-select{grid-template-columns:60px minmax(0,1fr)}.hero .discovery-art{width:60px}.discovery-shelves .discovery-row{grid-auto-columns:calc((100% - 36px)/4)}.podium-player{padding:12px;gap:4px 8px;grid-template-columns:32px minmax(0,1fr)}.podium-medal{width:32px;height:40px}.podium-points{grid-column:2;grid-row:3;font-size:22px}.podium-detail{grid-column:2}.podium-player h2{font-size:13px}}
@media(max-width:650px){.showcase-stage{min-height:0;display:flex;flex-direction:column-reverse;align-items:stretch;padding:0}.launcher-page .hero-art{position:relative;inset:auto;width:100%;padding:12px 12px 0;height:auto;aspect-ratio:16/9}.launcher-page .hero-art img{width:100%;height:100%;max-height:none;animation:none;border-radius:8px}.launcher-page .hero-copy{width:100%;padding:18px 18px 48px}.launcher-page .hero h1{font-size:30px}.launcher-page .hero .summary{font-size:13px;margin:9px 0 12px;max-width:42ch}.hero-tags{margin-bottom:12px}.showcase-controls{left:auto;right:18px;bottom:16px}.hero #popular{padding:10px 12px 7px}.hero .discovery-row{grid-auto-columns:calc((100% - 10px)/2);gap:10px}.hero .discovery-select{grid-template-columns:1fr;gap:5px;padding:5px}.hero .discovery-art{width:100%;grid-row:auto}.hero .discovery-name{font-size:10px}.hero .discovery-genre{display:none}.discovery-shelves .discovery-row{grid-auto-columns:calc((100% - 12px)/2);gap:12px}.rank-podium{gap:7px}.podium-player{display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start;padding:10px;gap:7px}.podium-player h2{font-size:11px;min-height:28px}.podium-points{font-size:23px}.podium-detail{font-size:9px}.rank-personal-stats{gap:20px}.rank-personal{padding:14px}.rank-intro h1{font-size:36px}#rank-intro-copy{font-size:12px;max-width:32ch}.rank-browse{font-size:10px}.rank-page{padding-top:4px}.cynnx-account-panel{padding:18px}.cynnx-account-identities{grid-template-columns:auto 1fr auto 1fr}}
@media(pointer:coarse){.showcase-controls button{width:40px;height:40px}.hero .discovery-select{min-height:44px}.profile-rules summary{min-height:32px}.cynnx-account-panel .cynnx-account-button{min-height:44px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}.showcase-atmosphere{display:none}}

.launcher-page .hero-art{display:grid;place-items:center}.hero-art img{grid-area:1/1}.launcher-page .hero-art .showcase-previous{z-index:2;animation:none;pointer-events:none}

.launcher-page .hero-art{height:100%;aspect-ratio:auto;min-height:0}
.launcher-page .hero-art img{max-height:100%}
.profile-avatar{position:relative;border:3px solid transparent;background:linear-gradient(145deg,#292241,#171d33) padding-box,conic-gradient(#b9a0ff var(--xp,0%),#ffffff17 0) border-box;border-radius:50%;box-shadow:0 0 28px #b292ff22}
.profile-edit{padding:8px 0;border-bottom:1px solid #ffffff14;margin-bottom:13px}.profile-edit summary{font-size:12px}.profile-edit .cynnx-username-form{margin-top:12px}
.profile-stats span{font-size:10px}.cynnx-level-summary .cynnx-username-help{font-size:12px}.profile-rules{font-size:12px}.profile-rules p{font-size:12px}.profile-invite-perks span{font-size:12px}.cynnx-account-identities{font-size:12px}
@media(max-width:650px){.launcher-page .hero-art{height:auto;aspect-ratio:16/9}.launcher-page .hero-art img{max-height:none}}

.motion-paused .showcase-atmosphere i,.hero.motion-paused .hero-art img,body:has(dialog[open]) .showcase-atmosphere i,body:has(dialog[open]) .hero .hero-art img,.hero:hover .showcase-atmosphere i,.hero:focus-within .showcase-atmosphere i{animation-play-state:paused}
.launcher-page .hero-art{grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr)}
.launcher-page .hero-art img{min-width:0;min-height:0}
.showcase-controls button[aria-pressed=true]{background:#202a43;color:var(--lime);border-color:#ceff7866}
.cynnx-level-summary{display:block;margin:0 0 14px}.cynnx-level-summary>.profile-rules{margin-bottom:0}
.podium-player{animation:soft-arrive .45s ease both}.podium-player:nth-child(2){animation-delay:.06s}.podium-player:nth-child(3){animation-delay:.12s}
.podium-player:after{content:'';position:absolute;inset:0;background:linear-gradient(110deg,transparent 25%,#ffffff09 45%,transparent 65%);transform:translateX(-100%);transition:transform .65s ease;pointer-events:none}.podium-player:hover:after{transform:translateX(100%)}
#rank-rows tr{transition:background-color .15s}#rank-rows tr:hover{background:#a98bff09}
@media(max-width:600px){.leaderboard-page .topbar{min-height:118px}.rank-personal-content{gap:16px}.rank-personal-stats{padding-top:12px}}
@media(pointer:coarse){.cynnx-account-close{width:44px;height:44px;flex-basis:44px}.showcase-controls button{width:44px;height:44px}}
.tile-select[aria-pressed=true] .tile-art{outline:1px solid #bba5ff9a;box-shadow:0 0 24px #9f7aff16}

/* Shared shell: page identity comes from content, not a different canvas. */
body.launcher-page,body.leaderboard-page,body.updates-page{background-color:#090b14;background-image:radial-gradient(ellipse 1100px 460px at 30% -100px,#68509922,transparent 75%),radial-gradient(ellipse 850px 500px at 100% 0,#31447716,transparent 75%);background-attachment:fixed}
.launcher-page>.backdrop,.launcher-page>.scrim{display:none}
.profile-name-row{display:flex;align-items:center;gap:7px;min-width:0}.profile-name-row>strong{min-width:0;overflow-wrap:anywhere}
.profile-edit-icon{display:grid;place-items:center;flex:0 0 32px;width:32px;height:32px;border:1px solid transparent;border-radius:7px;color:#b6a2ff;background:transparent;padding:0;cursor:pointer}.profile-edit-icon:hover,.profile-edit-icon[aria-expanded=true]{background:#b6a2ff14;border-color:#b6a2ff40}.profile-edit[hidden]{display:none}.profile-edit{margin:-6px 0 16px;padding:0;border:0}.profile-edit .cynnx-username-form{margin:0}
@media(pointer:coarse){.profile-edit-icon{width:44px;height:44px;flex-basis:44px}}
