/* About-first layout; the brand motion hands directly to the opening section. */
.download-badges{display:flex;align-items:flex-start;flex-wrap:wrap;gap:12px;margin-top:28px}
.store-badge{display:inline-flex;flex-direction:column;width:174px;max-width:100%;border-radius:8px;transition:transform .25s ease;flex-shrink:0}
.store-badge img{display:block;width:100%;height:auto;aspect-ratio:3;object-fit:contain}
a.store-badge:hover{transform:translateY(-4px) scale(1.03)}
.store-badge-unavailable{opacity:.35;cursor:default}.store-badge small{font-size:11px;text-align:center;margin-top:5px}
@media(min-width:1051px){.talents{grid-template-columns:repeat(3,minmax(0,300px));gap:40px}.talents>.talent-nghe{order:0}.talents>.talent-minh{order:1}.talents>.talent-truc{order:2}}
@media(min-width:701px) and (max-width:1050px){.talents>.talent-nghe{grid-column:1/-1;width:min(100%,290px)}}
@media(max-width:700px){.store-badge{width:150px}.download-badges{gap:10px}}
@media(prefers-reduced-motion:reduce){.store-badge{transition:none}}
/* A decorative background at one percent opacity, below all content. */
body,.about.section{isolation:isolate}
body::before,.about.section::before{content:'';position:fixed;inset:0;z-index:-1;background:url('assets/decorations/subtle-lucky-background.jpg') center/auto 80svh no-repeat;opacity:.01;pointer-events:none}
.about.section::before{position:absolute}
.header{position:sticky;inset:0 0 auto}
.about.section{position:relative;min-height:calc(100svh - 88px);display:flex;flex-direction:column;justify-content:center;padding-block:62px 72px;transform:none;clip-path:none}
.about .section-kicker{margin-bottom:38px}.about .stats{margin-top:46px}
.game-deco img{filter:brightness(.34) saturate(.65);transition:filter .4s ease}
.game-deco:hover img{filter:brightness(.48) saturate(.8)}
.feature-copy{z-index:3}.game-deco{z-index:0}
/* One hover transform moves the complete phone, preserving the front/back fit. */
.phone-hover{position:relative;width:78%;max-width:350px;z-index:1;transform-style:preserve-3d;transform:translateY(0) rotateX(0) rotateY(0);transition:transform .7s cubic-bezier(.22,.61,.36,1)}
.phone-hover .phone-orbit{width:100%;max-width:none;animation-delay:var(--phone-delay,0s)}
.phone-orbit .feature-screen,.phone-orbit .feature-screen:hover,.feature-reverse .phone-orbit .feature-screen:hover{transform:translateZ(8px);background:#080908;box-shadow:0 22px 32px #0006;transition:opacity .7s ease}
.phone-depth{position:absolute;inset:0;border-radius:40px;background:linear-gradient(90deg,#171917,#747773 6%,#222522 12%,#141614 85%,#6c7069 96%,#20231f);transform:translateZ(var(--depth));pointer-events:none}
.phone-back{border-color:#757971}
@media(hover:hover) and (pointer:fine){
 .phone-hover:hover{transform:translateY(-16px) rotateX(8deg) rotateY(-16deg) rotateZ(-2deg)}
 .feature-reverse .phone-hover:hover{transform:translateY(-16px) rotateX(8deg) rotateY(16deg) rotateZ(2deg)}
 .phone-hover:hover .phone-orbit{animation-play-state:paused}
}
.phone-effects{position:absolute;inset:0;pointer-events:none;z-index:2}
.phone-speed i{position:absolute;top:calc(32% + var(--n)*9%);left:4%;width:var(--length,65px);height:2px;background:white;opacity:0;transform-origin:right;animation:phone-speed 20s linear infinite paused;animation-delay:var(--phone-delay,0s)}
.phone-speed i:nth-child(1){--n:0;--length:58px}.phone-speed i:nth-child(2){--n:1;--length:92px;left:auto;right:0}.phone-speed i:nth-child(3){--n:2;--length:44px;left:-3%}.phone-speed i:nth-child(4){--n:3;--length:74px;left:auto;right:4%}.phone-speed i:nth-child(5){--n:4;--length:40px;left:2%}
.phone-landing i{position:absolute;bottom:46px;left:calc(50% + var(--dx));width:var(--size);height:var(--size);background:#fff;border-radius:50%;opacity:0;animation:phone-spheres 20s ease-out infinite paused;animation-delay:var(--phone-delay,0s)}
.phone-landing i:nth-child(1){--dx:-74px;--size:13px;--fly-x:-28px;--fly-y:-34px}.phone-landing i:nth-child(2){--dx:-34px;--size:8px;--fly-x:-12px;--fly-y:-58px}.phone-landing i:nth-child(3){--dx:0px;--size:18px;--fly-x:6px;--fly-y:-30px}.phone-landing i:nth-child(4){--dx:35px;--size:10px;--fly-x:23px;--fly-y:-50px}.phone-landing i:nth-child(5){--dx:69px;--size:6px;--fly-x:35px;--fly-y:-25px}
.phone-visible .phone-speed i,.phone-visible .phone-landing i{animation-play-state:running}
.feature-visual:has(.phone-hover:hover) .phone-effects i{animation-play-state:paused}
@keyframes phone-speed{0%,69%,87%,100%{opacity:0;transform:translateX(0) scaleX(.2)}72%,79%,84%{opacity:.9;transform:translateX(-12px) scaleX(1)}75%,82%,86%{opacity:0;transform:translateX(25px) scaleX(.4)}}
@keyframes phone-spheres{0%,86%,96%,100%{opacity:0;transform:translate(0,0) scale(0)}88%{opacity:.9;transform:translate(var(--fly-x),-8px) scale(1.25)}93%{opacity:0;transform:translate(var(--fly-x),var(--fly-y)) scale(.15)}}
/* Gentle idle motion; full turns only on explicit phone interaction. */
.phone-hover,.phone-hover:hover,.feature-reverse .phone-hover:hover{transform:none;cursor:pointer}
.phone-hover:focus-visible{outline:2px solid var(--yellow);outline-offset:12px;border-radius:40px}
.phone-hover .phone-orbit{animation:phone-float 4.8s ease-in-out infinite paused}
.phone-hover .phone-orbit.motion-visible{animation-play-state:running}
.phone-hover:hover .phone-orbit{animation-play-state:running}
.phone-hover.is-spinning{animation:phone-interaction 2.2s cubic-bezier(.45,0,.25,1) both}
.phone-hover.is-spinning .phone-orbit{animation-play-state:paused}
.phone-effects i,.phone-visible .phone-effects i,.feature-visual:has(.phone-hover:hover) .phone-effects i{animation:none;opacity:0}
.feature-visual.is-spinning .phone-speed i{animation:phone-speed 2.2s linear both}
.feature-visual.is-spinning .phone-landing i{animation:phone-spheres 2.2s ease-out both}
@keyframes phone-float{0%,100%{transform:translateY(0) rotateX(3deg) rotateZ(-2deg)}50%{transform:translateY(-12px) rotateX(-2deg) rotateZ(0)}}
@keyframes phone-interaction{0%{transform:translateY(0) rotateY(0)}18%{transform:translateY(-20px) rotateX(5deg) rotateY(-12deg)}75%{transform:translateY(-20px) rotateX(5deg) rotateY(345deg)}100%{transform:translateY(0) rotateX(0) rotateY(360deg)}}
@keyframes phone-speed{0%,16%,80%,100%{opacity:0;transform:translateX(0) scaleX(.2)}24%,46%,68%{opacity:.9;transform:translateX(-12px) scaleX(1)}35%,57%,78%{opacity:0;transform:translateX(25px) scaleX(.4)}}
@keyframes phone-spheres{0%,78%,100%{opacity:0;transform:translate(0,0) scale(0)}86%{opacity:.9;transform:translate(var(--fly-x),-8px) scale(1.25)}99%{opacity:0;transform:translate(var(--fly-x),var(--fly-y)) scale(.15)}}
#dialog-close{border-radius:8px;display:grid;place-items:center;transition:transform .2s,background .2s}
#dialog-close:hover{transform:scale(1.08);background:#ffe567}
#dialog-image{border-radius:12px;width:min(100%,260px);height:auto;max-height:none;aspect-ratio:324/574;object-fit:cover;justify-self:center}
.store-buttons{display:flex;flex-wrap:wrap;gap:12px;margin-top:26px}
.store-button{display:flex;align-items:center;justify-content:center;gap:12px;min-height:48px;padding:12px 18px;border:1px solid var(--yellow);border-radius:9px;background:var(--yellow);color:#111;font-size:14px;font-weight:700;transition:transform .25s,background .25s}
.store-button:hover{transform:translateY(-3px);background:#ffe567}.store-button small{font-size:10px;font-weight:400}
.store-button:disabled{flex-direction:column;gap:2px;background:transparent;color:#a6aaa0;border-color:#62665d;cursor:default;transform:none}
.store-buttons [hidden]{display:none!important}
#dialog-store{margin:0}
@media(prefers-reduced-motion:reduce){.phone-hover .phone-orbit,.phone-hover.is-spinning,.feature-visual.is-spinning .phone-effects i{animation:none!important}.store-button{transition:none}}
/* Equal caption slots keep every gallery frame at the same height. */
.gallery-track .gallery-card figcaption{height:86px;min-height:86px;display:flex;align-items:center;justify-content:flex-start;font-size:16px;line-height:1.25;padding:16px 18px}
.gallery-track .gallery-card{cursor:pointer}
.gallery-track{touch-action:pan-y;user-select:none;cursor:grab}
.gallery-track.is-dragging,.gallery-track.is-dragging .gallery-card{cursor:grabbing}
.gallery-track .marquee-belt{animation:none!important;width:max-content}
.gallery-track .marquee-group[aria-hidden]{display:flex}
#dialog-icon{width:88px;height:88px;border:2px solid var(--yellow);border-radius:25%;object-fit:cover;object-position:center;margin-bottom:22px}
.feature-title img{height:auto;object-position:center;overflow:hidden}
#dialog-store{margin:0}#project-dialog{border-radius:16px}body:has(dialog[open]){overflow:hidden}
/* Uneven silhouettes overlap the transparent top edge of the full-width photo. */
.member-shape{top:calc(clamp(210px,25vw,420px) - 40px);scale:1;bottom:auto}
.shape-circle{left:3%;right:auto;width:clamp(92px,13vw,220px);height:clamp(92px,13vw,220px);--fan-y:-58px;--fan-x:-12px}
.shape-arc{left:14%;right:auto;width:clamp(60px,8vw,135px);height:clamp(60px,8vw,135px);border-width:12px;--fan-y:-12px;--fan-x:-15px}
.shape-square{left:24%;right:auto;width:clamp(24px,3vw,50px);height:clamp(24px,3vw,50px);--fan-y:45px;--fan-x:10px}
.shape-pill{left:33%;right:auto;width:clamp(20px,2.6vw,42px);height:clamp(65px,7vw,120px);--fan-y:18px;--fan-x:-12px}
.shape-triangle{left:42%;right:auto;width:clamp(85px,11vw,185px);height:clamp(85px,11vw,185px);--fan-y:-38px;--fan-x:12px}
.shape-diamond{left:auto;right:29%;width:clamp(35px,4.5vw,75px);height:clamp(35px,4.5vw,75px);--fan-y:62px;--fan-x:18px}
.shape-kite{left:auto;right:22%;width:clamp(60px,7vw,115px);height:clamp(60px,7vw,115px);--fan-y:24px;--fan-x:20px}
.shape-ring{left:auto;right:11%;width:clamp(100px,13vw,220px);height:clamp(100px,13vw,220px);border-width:12px;--fan-y:-86px;--fan-x:15px}
.shape-dot{left:auto;right:6%;width:clamp(24px,2.8vw,48px);height:clamp(24px,2.8vw,48px);--fan-y:8px;--fan-x:5px}
.shape-slash{left:auto;right:1%;width:clamp(25px,3vw,50px);height:clamp(90px,11vw,185px);--fan-y:46px;--fan-x:8px}
/* Monochrome inverted partners resolve to their original brand colors on hover. */
.partners .partner-logos{background:#090a09}
.partner-logos .marquee-belt{animation-duration:133s}
.partner-logos img,.partner-logos img.appear{background:transparent;border-radius:0;filter:grayscale(1) invert(1);transition:filter .4s ease,transform .35s ease,opacity .7s ease}
.partner-logos img.partner-on-dark{filter:grayscale(1)}
.partner-logos img:hover{filter:none;transform:scale(1.12);background:#fff;border-radius:8px}
.partner-logos img.partner-on-dark:hover{filter:none;background:#292c29}
/* Swap the hiring headline without changing its occupied space. */
.careers-copy h2.hiring-title{display:grid}
.hiring-title>.hiring-default,.hiring-title>.hiring-welcome{grid-area:1/1;color:inherit;-webkit-text-stroke:0;transition:opacity .35s ease,transform .45s ease;transform-origin:left center}
.hiring-default>span,.hiring-welcome>span{-webkit-text-stroke:2px #111;color:transparent}
.hiring-title>.hiring-welcome{opacity:0;transform:translateY(14px);pointer-events:none}
.careers:has(#careers-link:hover,#careers-link:focus-visible) .hiring-default{opacity:0;transform:translateY(-14px)}
.careers:has(#careers-link:hover,#careers-link:focus-visible) .hiring-welcome{opacity:1;transform:translateY(0)}
.sound-toggle{width:44px;height:44px;padding:11px;right:22px;bottom:44px;border-radius:50%;display:grid;place-items:center}
.sound-icon{width:22px;height:22px}.sound-muted{display:none}.sound-toggle[aria-pressed=false] .sound-waves{display:none}.sound-toggle[aria-pressed=false] .sound-muted{display:block}
@media(max-width:1000px){.phone-hover{width:88%}}
@media(max-width:700px){
 .about.section{min-height:calc(100svh - 70px);padding-block:42px 55px}.about .section-kicker{margin-bottom:30px}.about .stats{margin-top:32px}
 .phone-hover{width:69%;max-width:270px}.phone-depth{border-radius:30px}
 .gallery-track .gallery-card figcaption{height:78px;min-height:78px;font-size:14px;padding:14px}
 .member-shape{top:calc(clamp(155px,29vw,205px) - 20px);scale:.7}.shape-ring{--fan-y:-52px}.shape-circle{--fan-y:-24px}.shape-diamond{--fan-y:42px}
 .sound-toggle{right:16px;bottom:32px;width:42px;height:42px;padding:10px}
 #dialog-icon{width:64px;height:64px;margin-bottom:12px}.dialog-body{gap:22px}
}
@media(prefers-reduced-motion:reduce){.phone-hover,.phone-hover:hover,.feature-reverse .phone-hover:hover{transform:none}.phone-speed,.phone-landing{display:none}.member-shape,.hiring-title>span{transition:none}}

.gallery-carousel{position:relative;padding-inline:38px}
.gallery-arrow{position:absolute;top:50%;translate:0 -50%;z-index:3;width:36px;height:72px;padding:0;background:transparent;color:#8d8d8d;opacity:.5;font:300 64px/1 Arial,sans-serif;transition:opacity .2s,color .2s,transform .2s}
.gallery-prev{left:0}.gallery-next{right:0}
.gallery-arrow:hover,.gallery-arrow:focus-visible{opacity:1;color:#ddd;transform:scale(1.12)}
.gallery-arrow:active{transform:scale(.95)}
@media(max-width:700px){.gallery-carousel{padding-inline:26px}.gallery-arrow{width:24px;font-size:48px}}
@media(prefers-reduced-motion:reduce){.gallery-arrow{transition:none}}

.sound-play{display:none}.sound-toggle[data-playback=waiting] .sound-muted{display:none}.sound-toggle[data-playback=waiting] .sound-play{display:block}.sound-toggle[data-playback=waiting]{color:#d0c996;border-color:#b5ad6855}

/* Preserve animation timing and phase while the element is outside the viewport. */
.motion-offscreen,.motion-offscreen *,
.page-inactive .title-spark,.page-inactive .partner-logos *,
.page-inactive .feature-visual *{animation-play-state:paused!important}
