/* Immersive public landing. Existing portrait and conversation engines unchanged. */
.jomri-centered-home {background:#080d10;color:#f0f5f3}
.jomri-centered-home .mast {position:absolute;inset:0 0 auto;z-index:10;width:calc(100% - 96px);max-width:1440px;min-height:90px;border-bottom:1px solid #ffffff16;background:none}
.jomri-centered-home .mast:has(.language-nav) {padding-block:18px}
.jomri-centered-home .brand img {width:110px;height:auto}
.jomri-centered-home .mast .nav-register {border-radius:40px;padding:11px 20px;background:#b0eedb;color:#102820}
.jomri-centered-home #entry {width:100%;max-width:none;padding:0 0 50px}
#entry #avatarstudio.unified-hero {display:block;position:relative;height:clamp(730px,94svh,1060px);min-height:0;padding:0;margin:0;border:0;border-radius:0;isolation:isolate;overflow:hidden;text-align:center;background:#112025 url('/avatar-generator/plattform/studio.webp') center/cover no-repeat}
#entry #avatarstudio.unified-hero::before {content:'';display:block;position:absolute;inset:0;background:radial-gradient(ellipse at 50% 42%,#b7e8d51a,transparent 65%);z-index:-4;pointer-events:none}
#entry #avatarstudio.unified-hero[data-scene]::before {background:var(--scene-image) center/cover no-repeat;inset:0}
#entry #avatarstudio.unified-hero .stage-light,#entry #avatarstudio.unified-hero .hero-top {display:none}
#entry #avatarstudio.unified-hero .hero-picture {position:absolute;inset:0;display:flex;align-items:flex-start;justify-content:center;width:100%;height:100%;max-height:none;margin:0;z-index:-3;pointer-events:none}
#entry #avatarstudio.unified-hero #hero-camera {position:relative;top:56px;left:auto;width:calc(100svh * .78);height:calc(100svh * 1.04);max-width:900px;min-width:560px;max-height:1200px;transform:none;overflow:hidden;mask:none}
#entry #avatarstudio.unified-hero .portrait-view {position:relative;inset:auto;width:100%;height:100%;max-width:none;max-height:none;transform:none;mask:none;background:transparent}
#entry #avatarstudio.unified-hero .portrait-view > img {object-fit:contain;object-position:center top}
#entry #avatarstudio.unified-hero .hero-picture > .idle-layer {position:absolute;inset:56px 0 auto;margin:auto;width:auto;height:104%;max-width:none;object-fit:contain}
#entry #avatarstudio.unified-hero .hero-scrim {display:block;position:absolute;inset:0;z-index:-1;pointer-events:none;background:linear-gradient(180deg,#050b0fa1 0%,#050b0f0d 22%,#080d1000 45%,#080d1070 65%,#080d10ee 91%,#080d10 100%),linear-gradient(90deg,#08111666,transparent 26%,transparent 74%,#08111666)}
#entry #avatarstudio.unified-hero .hero-copy {display:block;position:absolute;inset:auto 24px 68px;z-index:2;padding:0;margin:0;width:auto;max-width:none;text-align:center}
#entry #avatarstudio.unified-hero .hero-eyebrow {display:none}
#entry #avatarstudio.unified-hero #platform-title {max-width:none;margin:0 auto 16px;font-size:clamp(2.7rem,4.6vw,5rem);font-weight:600;line-height:1.05;letter-spacing:-.055em;text-wrap:balance;color:#f3f7f5;text-shadow:0 2px 30px #0004}
#entry #avatarstudio.unified-hero .hero-lead {max-width:56ch;margin:0 auto;color:#c8d5d1;font-size:1.04rem;line-height:1.6;text-wrap:balance}
#entry #avatarstudio.unified-hero .hero-actions {display:flex;justify-content:center;gap:12px;margin:26px 0 0;flex-wrap:wrap}
#entry #avatarstudio.unified-hero .hero-actions .primary {min-height:50px;padding:14px 28px;border-radius:40px;background:#b1f0dc;border:1px solid #b1f0dc;color:#0b2b20;font-weight:600;font-size:.93rem}
#entry #avatarstudio.unified-hero .hero-actions .audition {position:fixed}
/* Audio control is anchored to the scene, outside the text composition. */
#entry #avatarstudio.unified-hero .hero-actions .audition {position:absolute;right:20px;bottom:2px;width:48px;min-height:48px;padding:0;display:flex;align-items:center;justify-content:center;border:1px solid #c3e6db40;border-radius:50%;background:#13221c80;color:#eefcf5;backdrop-filter:blur(10px)}
#entry #avatarstudio.unified-hero #hero-sample-label {position:absolute;right:0;bottom:56px;width:max-content;max-width:160px;padding:6px 9px;border-radius:6px;background:#10251e;color:#d6e7e1;font-size:.7rem;opacity:0;pointer-events:none;transition:opacity .15s}
#entry #avatarstudio.unified-hero #hero-sample:hover #hero-sample-label,#entry #avatarstudio.unified-hero #hero-sample:focus-visible #hero-sample-label {opacity:1}
#entry #avatarstudio.unified-hero .hero-actions .play-icon {width:20px;height:20px;border:0;background:none;border-radius:0;position:relative}
#entry #avatarstudio.unified-hero .hero-actions .play-icon::before {content:'♪';font-size:22px;line-height:20px;border:0;position:static}
#entry #avatarstudio.unified-hero #hero-sample[aria-pressed=false] .play-icon::after {content:'';position:absolute;inset:9px -1px auto;height:1px;transform:rotate(-45deg);background:currentColor}
#entry #avatarstudio.unified-hero .hero-profile {position:absolute;left:48px;top:120px;max-width:230px;margin:0;padding:0;border:0;background:none;text-align:left;z-index:2}
#entry #avatarstudio.unified-hero .hero-profile-heading {display:flex;flex-direction:column;align-items:flex-start;gap:4px}
#entry #avatarstudio.unified-hero #hero-title {font-size:.85rem;font-weight:500;letter-spacing:.03em}
#entry #avatarstudio.unified-hero #hero-enter {min-height:32px;margin:0;padding:0;font-size:.7rem;color:#a2b9b1}
#entry #avatarstudio.unified-hero #hero-description {display:none}
#entry #avatarstudio.unified-hero .hero-note {position:static;max-width:55ch;margin:12px auto 0;color:#c3d6d0;font-size:.78rem;line-height:1.4}
#entry #avatarstudio.unified-hero .hero-note:empty {display:none}
#entry #avatarstudio.unified-hero .hero-indicator {display:none}
.hero-demo-controls {position:absolute;left:48px;bottom:70px;z-index:3;display:flex;align-items:center;gap:10px;color:#a4bdb4;font-size:.65rem}
.hero-demo-controls button {min-height:40px;padding:8px 12px;color:#d9eee4;border:1px solid #bfd9ce26;border-radius:40px;background:#0b18146e;cursor:pointer;font:inherit}
.hero-demo-controls button[hidden] {display:none}
#hero-demo-video {position:absolute;inset:0;display:block;margin:auto;width:100%;height:100%;object-fit:cover;z-index:0}
#hero-demo-video[hidden] {display:none}
#hero-demo-video::cue {background:#09171cdd;color:white;font-size:16px}
#entry .gallery-row {display:block;max-width:1280px;margin:0 auto;padding:55px 48px 72px;border:0}
.gallery-heading {display:flex;justify-content:space-between;align-items:end;gap:24px;margin-bottom:32px}
.gallery-kicker {display:block;font-size:.65rem;letter-spacing:.18em;color:#90c8b4;margin-bottom:12px}
#entry .gallery-title {display:block;font-family:'Jomri Display',Inter,Arial,sans-serif;font-size:clamp(1.7rem,2.7vw,2.65rem);font-weight:500;letter-spacing:-.045em;margin:0 0 12px;color:#e7efec}
.gallery-heading p {font-size:.9rem;color:#99aca5;line-height:1.6}
.gallery-jump {flex-shrink:0;font-size:.8rem;color:#a4dac5;padding:12px 0}
#entry .gallery-faces {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px;overflow:visible;padding:0;width:100%;max-width:none}
#entry .gallery-face {display:block;position:relative;min-width:0;height:350px;padding:0;border:1px solid #c8e8d212;border-radius:16px;background:#15221f;overflow:hidden;text-align:left;isolation:isolate;transition:transform .2s,border-color .2s}
#entry .gallery-face:hover {transform:translateY(-4px);border-color:#a6dccb80}
#entry .gallery-face[aria-pressed=true] {background:#182824;border-color:#b1ebd1}
#entry .gallery-face:nth-child(4n+2) {background:#14262e}
#entry .gallery-face:nth-child(4n+3) {background:#292720}
#entry .gallery-face:nth-child(4n+4) {background:#262330}
#entry .gallery-portrait {display:block;position:absolute;inset:0;width:100%;height:100%;border:0;border-radius:0;overflow:hidden}
#entry .gallery-face .gallery-portrait img {display:block;width:100%;height:100%;max-width:none;object-fit:cover;object-position:center 20%;transform:none}
#entry .gallery-face:after {content:'';position:absolute;inset:35% 0 0;background:linear-gradient(transparent,#07100ce8);z-index:0;pointer-events:none}
#entry .gallery-face > span:not(.gallery-portrait):not(.card-arrow) {position:absolute;bottom:24px;left:22px;right:34px;z-index:1;display:block}
#entry .gallery-face strong {display:block;font-family:'Jomri Display',Inter,Arial,sans-serif;font-size:1.25rem;font-weight:500;letter-spacing:-.025em;color:#f0f7f1}
#entry .gallery-face small {display:block;margin-top:5px;font-size:.69rem;color:#bdcec4;line-height:1.4}
#entry .gallery-face .card-arrow {position:absolute;bottom:25px;right:18px;z-index:1;font-size:1.1rem;color:#c4ecdb}
#entry .gallery-arrows {display:none}
#entry .home-benefits,#entry .public-apps,#entry .home-bridge,#entry .entry-footer {width:calc(100% - 96px);max-width:1184px;margin-inline:auto}
#entry .home-benefits {margin-top:25px;padding-top:55px;border-top:1px solid #c3e6db1a}
#entry .home-benefits h2 {font-size:clamp(1.8rem,3vw,2.7rem);font-weight:500;letter-spacing:-.04em;margin-bottom:32px}
#entry .benefit-grid {gap:25px}
#entry .benefit-grid article {background:none;border:0;border-left:1px solid #9dc3af38;border-radius:0;padding:8px 0 12px 24px}
#entry .benefit-grid h3 {font-weight:500;color:#deeee4}
#entry .benefit-grid p {font-size:.9rem;color:#96aba1}
.jomri-centered-home button:focus-visible,.jomri-centered-home a:focus-visible {outline:2px solid #b6f1d7;outline-offset:4px}
@media(min-width:1700px){#entry #avatarstudio.unified-hero .hero-copy {bottom:90px}}
@media(max-width:1050px){
 .jomri-centered-home .mast {width:calc(100% - 48px)}
 #entry .gallery-row {padding-inline:24px}
 #entry .gallery-faces {gap:12px}
 #entry .gallery-face {height:290px}
 #entry #avatarstudio.unified-hero .hero-profile {left:24px}
 .hero-demo-controls {left:24px;bottom:20px}
 #entry #avatarstudio.unified-hero .hero-actions .audition {right:0}
}
@media(max-width:780px){
 .jomri-centered-home .mast {min-height:72px;gap:10px}
 .jomri-centered-home .brand img {width:95px}
 .jomri-centered-home .mast:has(.language-nav) .top-nav {display:none}
 .jomri-centered-home .mast:has(.language-nav) .mast-actions {order:0;flex-basis:auto}
 .jomri-centered-home .mast .nav-register {display:none}
 #entry #avatarstudio.unified-hero {height:90svh;min-height:680px;max-height:940px}
 #entry #avatarstudio.unified-hero #hero-camera {top:100px;width:610px;height:813px;min-width:610px}
 #entry #avatarstudio.unified-hero .hero-copy {inset:auto 24px 68px}
 #entry #avatarstudio.unified-hero #platform-title {font-size:clamp(2.5rem,7vw,3.5rem);max-width:14ch;margin-bottom:16px}
 #entry #avatarstudio.unified-hero .hero-lead {font-size:.9rem;max-width:35ch}
 #entry #avatarstudio.unified-hero .hero-actions {margin-top:22px}
 #entry #avatarstudio.unified-hero .hero-actions .primary {min-height:48px;padding:12px 24px}
 #entry #avatarstudio.unified-hero .hero-actions .audition {right:-4px;bottom:-52px;width:40px;min-height:40px}
 #entry #avatarstudio.unified-hero .hero-profile {top:90px}
 #entry #avatarstudio.unified-hero #hero-enter {display:none}
 .hero-demo-controls {bottom:22px;font-size:.61rem;gap:8px}
 .hero-demo-controls button {min-height:36px;padding:8px 10px}
 #entry .gallery-row {padding:36px 20px 48px}
 .gallery-heading {display:block;margin-bottom:25px}
 .gallery-jump {display:inline-block;margin-top:6px}
 #entry .gallery-faces {grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
 #entry .gallery-face {height:clamp(225px,55vw,355px);border-radius:12px}
 #entry .gallery-face > span:not(.gallery-portrait):not(.card-arrow) {left:14px;bottom:18px;right:20px}
 #entry .gallery-face strong {font-size:1.1rem}
 #entry .gallery-face small {font-size:.61rem}
 #entry .gallery-face .card-arrow {display:none}
 #entry .home-benefits,#entry .public-apps,#entry .home-bridge,#entry .entry-footer {width:calc(100% - 40px)}
 #entry .home-benefits {padding-top:35px}
}
@media(prefers-reduced-motion:reduce){.jomri-centered-home * {scroll-behavior:auto!important;transition:none!important}}
/* Film composition: edge-to-edge media, quiet overlay, independent character previews. */
.jomri-centered-home{background:#090e10;overflow-x:clip}
.jomri-centered-home .mast{width:calc(100% - 80px);max-width:none;min-height:86px;inset:0 40px auto;margin:0;border:0;gap:24px}
.jomri-centered-home .mast .brand{flex-shrink:0}
.jomri-centered-home .mast .language-nav{margin-left:auto;flex-shrink:0}
#entry #avatarstudio.unified-hero{height:100svh;min-height:650px;max-height:none;background:#142021;isolation:isolate}
#entry #avatarstudio.unified-hero::before{display:none!important}
#entry #avatarstudio.unified-hero #hero-stage{inset:0;width:100%;height:100%;z-index:-3}
#brand-film{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center 40%}
#entry #avatarstudio.unified-hero #hero-camera,#entry #avatarstudio.unified-hero .idle-layer{display:none!important}
#entry #avatarstudio.unified-hero .hero-scrim{background:linear-gradient(180deg,#041012aa 0%,#04101210 23%,#04101200 42%,#080e1033 55%,#080e10bb 78%,#090e10 100%)}
#entry #avatarstudio.unified-hero .hero-copy{inset:auto 24px 84px;background:none!important;border:0;box-shadow:none;backdrop-filter:none}
#entry #avatarstudio.unified-hero #platform-title{font-size:clamp(2.6rem,4.6vw,4.8rem);line-height:1.03;letter-spacing:-.055em;font-weight:500;margin:0 auto 20px;text-wrap:balance;max-width:none}
#entry #avatarstudio.unified-hero .hero-lead{font-size:1rem;max-width:45ch;color:#dee4e3;line-height:1.6}
#entry #avatarstudio.unified-hero .hero-actions{margin-top:26px}
#entry #avatarstudio.unified-hero .hero-actions .primary{background:#b6f0dc;color:#102d25;border-color:#b6f0dc;min-width:188px;min-height:52px;font-size:1rem}
#entry #avatarstudio.unified-hero .hero-profile{display:none}
#entry #avatarstudio.unified-hero .hero-actions .audition{right:16px;bottom:-48px;border-color:#ffffff35;background:#091a1a88;width:44px;min-height:44px}
#entry #avatarstudio.unified-hero #hero-sample-label{font-size:.875rem;max-width:190px}
.hero-demo-controls{left:40px;bottom:36px;font-size:.875rem;gap:14px;color:#d7e1df}
.hero-demo-controls button{font-size:.875rem;min-height:44px;padding:10px 16px}
#entry .gallery-row{max-width:1360px;padding:72px 40px 88px}
.gallery-heading{margin-bottom:32px}
#entry .gallery-title{font-size:clamp(1.9rem,3vw,2.6rem);margin-bottom:12px}
.gallery-heading p{font-size:1rem}.gallery-jump{font-size:.875rem}
#entry .gallery-faces{gap:20px}
#entry .gallery-face{height:auto;aspect-ratio:3/4;border-radius:12px;border:0}
#entry .gallery-face::after,#entry .gallery-face[aria-pressed=true]::after{content:'';position:absolute;inset:35% 0 0;width:auto;height:auto;transform:none;background:linear-gradient(transparent,#061011ef);border:0;border-radius:0;box-shadow:none}
#entry .gallery-face[aria-pressed=true]{outline:1px solid #92c9b955;outline-offset:4px}
#entry .gallery-face .gallery-portrait img{object-position:50% 12%;transition:transform .5s}
#entry .gallery-face:hover .gallery-portrait img{transform:scale(1.035)}
#entry .gallery-face small{font-size:.875rem;color:#cad7d2}
#entry .gallery-face strong{font-size:1.4rem}
#entry .gallery-face .card-arrow{display:none}
#entry .home-benefits,#entry .public-apps,#entry .home-bridge,#entry .entry-footer{max-width:1280px;width:calc(100% - 80px)}
#entry .benefit-grid p{font-size:1rem;line-height:1.7}
.character-preview{width:min(840px,calc(100% - 40px));max-width:none;max-height:90svh;padding:0;border:1px solid #40544c;border-radius:18px;background:#101c19;color:#eff6f2;overflow:auto}
.character-preview[open]{display:grid;grid-template-columns:1fr 1fr}
.character-preview::backdrop{background:#020a0bd9;backdrop-filter:blur(10px)}
#character-close{position:absolute;right:14px;top:12px;z-index:2;width:44px;height:44px;border:1px solid #ffffff40;border-radius:50%;background:#071411b3;color:white;font-size:28px;cursor:pointer}
#character-image{display:block;width:100%;height:100%;min-height:420px;object-fit:cover;object-position:center top;background:#23342e}
.character-info{align-self:center;padding:56px 32px 32px}
.character-info h2{font-size:2.5rem;letter-spacing:-.04em;margin:12px 0 18px}
.character-info p{font-size:1rem;line-height:1.6;color:#c0d1c8}
.character-actions{display:flex;flex-direction:column;gap:12px;margin-top:28px}.character-actions button{min-height:48px;border-radius:30px}
.character-info .character-voice-note{font-size:.875rem;margin-top:16px;color:#98aea3}
.character-info .eyebrow{font-size:.875rem}
@media(max-width:1100px){.jomri-centered-home .mast{gap:15px}.jomri-centered-home .top-nav{gap:16px}.jomri-centered-home .language-nav{gap:10px}.jomri-centered-home .nav-register{display:none}}
@media(max-width:780px){
 .jomri-centered-home .mast{inset:0 20px auto;width:calc(100% - 40px);min-height:72px;display:flex!important;flex-wrap:nowrap!important;gap:12px;padding:16px 0!important}
 .jomri-centered-home .mast .brand img{width:88px}.jomri-centered-home .mast .language-nav{margin-left:auto;font-size:.75rem;gap:8px;order:0}
 .jomri-centered-home .mast .mast-actions{margin:0!important;padding:0;flex-basis:auto!important;order:0;min-width:0}.jomri-centered-home .mast .nav-login{font-size:.875rem;padding:8px 0;white-space:nowrap}
 #entry #avatarstudio.unified-hero{height:100svh;min-height:620px;max-height:none}
 #brand-film{object-position:50% 35%}
 #entry #avatarstudio.unified-hero .hero-copy{inset:auto 20px 104px}
 #entry #avatarstudio.unified-hero #platform-title{font-size:clamp(2.25rem,8.6vw,3.8rem);line-height:1.08;margin-bottom:18px}
 #entry #avatarstudio.unified-hero .hero-lead{font-size:1rem;max-width:30ch}
 #entry #avatarstudio.unified-hero .hero-actions .audition{right:0;bottom:-72px}
 .hero-demo-controls{left:20px;bottom:32px;gap:10px;font-size:.75rem}
 .hero-demo-controls button{padding:10px 12px;font-size:.75rem}
 #entry .gallery-row{padding:42px 0 56px;max-width:100%}
 .gallery-heading{padding:0 20px;margin-bottom:24px}.gallery-jump{display:none}
 #entry .gallery-faces{display:flex;gap:14px;overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x mandatory;padding:5px 20px 18px;scrollbar-width:thin;scrollbar-color:#55746a transparent;box-sizing:border-box}
 #entry .gallery-face{flex:0 0 72%;max-width:290px;min-width:0;aspect-ratio:3/4;height:auto;scroll-snap-align:center}
 #entry .gallery-face strong{font-size:1.3rem}#entry .gallery-face small{font-size:.875rem}
 #entry .gallery-face>span:not(.gallery-portrait):not(.card-arrow){left:20px;bottom:22px;right:20px}
 #entry .home-benefits,#entry .public-apps,#entry .home-bridge,#entry .entry-footer{width:calc(100% - 40px)}
 .character-preview[open]{display:block}.character-preview{width:calc(100% - 32px)}#character-image{height:36svh;min-height:230px;object-fit:contain}.character-info{padding:24px}.character-info h2{margin:6px 0 12px;font-size:2rem}.character-actions{margin-top:18px}
}
@media(max-width:360px){.jomri-centered-home .mast{gap:8px}.jomri-centered-home .mast .brand img{width:72px}.jomri-centered-home .mast .language-nav{font-size:.68rem;gap:6px}.jomri-centered-home .mast .nav-login{font-size:.8rem}.hero-demo-controls{gap:6px}#hero-demo-kind{max-width:75px}}
#entry .gallery-title{white-space:normal;overflow-wrap:normal;text-wrap:balance}
#entry .gallery-faces{margin:0}

#character-speech{display:block;width:100%;height:100%;min-height:420px;object-fit:contain;background:#050807}
#character-speech[hidden],#character-image[hidden]{display:none}
@media(max-width:780px){#character-speech{height:36svh;min-height:230px}}
/* Compact avatar rail, following the supplied reference. */
#entry .gallery-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:20px 18px;width:calc(100% - 80px);max-width:none;margin:0 auto;padding:30px 0 32px;border-bottom:1px solid #29383b}
#entry .gallery-heading{grid-column:1/-1;display:block;padding:0;margin:0}
#entry .gallery-title{margin:0;font-family:inherit;font-size:1.125rem;font-weight:500;letter-spacing:-.02em;color:#b9c3c4;text-align:left}
#entry .gallery-faces{display:flex;flex-wrap:nowrap;gap:12px;overflow-x:auto;scroll-snap-type:x proximity;scrollbar-width:none;padding:2px 0;margin:0;width:100%;min-width:0}
#entry .gallery-faces::-webkit-scrollbar{display:none}
#entry .gallery-face{position:relative;display:flex;align-items:center;gap:14px;flex:0 0 258px;max-width:none;min-width:0;height:126px;min-height:0;aspect-ratio:auto;padding:16px 14px;border:1px solid transparent;border-radius:14px;background:#0c1214;scroll-snap-align:start;isolation:isolate;transition:background .15s,border-color .15s}
#entry .gallery-face:nth-child(n){background:#0c1214}
#entry .gallery-face:hover{transform:none;background:#142023;border-color:#365155}
#entry .gallery-face[aria-pressed=true]{background:linear-gradient(110deg,#1a292b,#0e1618);border-color:#395c60;outline:0;outline-offset:0}
#entry .gallery-face::after{display:none}
#entry .gallery-face[aria-pressed=true]::after{display:block;content:'';position:absolute;inset:auto 30px 0;height:3px;width:auto;transform:none;border:0;border-radius:3px;background:#9be1df}
#entry .gallery-portrait{position:relative;inset:auto;display:block;flex:0 0 72px;width:72px;height:94px;border:0;border-radius:8px;overflow:hidden}
#entry .gallery-face .gallery-portrait img{width:100%;height:100%;object-fit:cover;object-position:center top;transform:none!important}
#entry .gallery-face > span:not(.gallery-portrait):not(.card-arrow){position:static;inset:auto;display:block;min-width:0;flex:1;z-index:1}
#entry .gallery-face strong{font-family:inherit;font-size:1.125rem;line-height:1.2;letter-spacing:-.025em;font-weight:650;color:#edf2f2;white-space:normal}
#entry .gallery-face small{display:block;margin-top:6px;font-size:.875rem;line-height:1.3;color:#adbabc;white-space:normal}
#entry .gallery-arrows{display:flex;align-items:center;gap:10px}
#entry .gallery-arrows button{display:grid;place-items:center;width:48px;height:48px;min-height:48px;padding:0;border:1px solid #324449;border-radius:50%;background:transparent;color:#edf4f3;font-size:26px;cursor:pointer}
#entry .gallery-arrows button:hover:not(:disabled){border-color:#9be1df;background:#152124}
#entry .gallery-arrows button:disabled{opacity:.3;cursor:default}
@media(max-width:780px){
 #entry .gallery-row{width:calc(100% - 40px);padding:24px 0;gap:16px 10px}
 #entry .gallery-heading{grid-column:1;grid-row:1;align-self:center}
 #entry .gallery-arrows{grid-column:2;grid-row:1;gap:8px}
 #entry .gallery-arrows button{width:40px;height:40px;min-height:40px;font-size:22px}
 #entry .gallery-faces{grid-column:1/-1;grid-row:2}
 #entry .gallery-face{flex-basis:250px;height:120px;padding:13px 14px}
 #entry .gallery-portrait{height:92px;width:68px;flex-basis:68px}
}

/* Wide introduction films retain the whole scene in the character dialog. */
.character-preview[open]{display:block}
#character-speech{width:100%;height:auto;min-height:0;aspect-ratio:16/9;object-fit:contain}
.character-info{padding:24px 32px 30px}
.character-info h2{margin:4px 0 12px}
.character-actions{flex-direction:row;flex-wrap:wrap;margin-top:16px}
.character-actions button{flex:1;min-width:150px}
@media(max-width:780px){.character-info{padding:22px}.character-actions{flex-direction:column}}


/* Native horizontal hero carousel; all rendering remains in the existing films. */
#entry #avatarstudio.unified-hero #hero-stage{pointer-events:auto}
#hero-carousel{position:absolute;inset:0;width:100%;height:100%;overflow:hidden;outline-offset:-4px}
.hero-slide{position:relative;width:100%;height:100%;display:none}
.hero-slide[aria-current=true]{display:block}
#entry #avatarstudio.unified-hero .hero-copy{pointer-events:none}
#entry #avatarstudio.unified-hero .hero-copy button,#entry #avatarstudio.unified-hero .hero-copy a{pointer-events:auto}
.hero-swipe-hint{display:none;pointer-events:none}
@media(max-width:780px){
 #hero-carousel{display:flex;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x mandatory;scrollbar-width:none;overscroll-behavior-x:contain;touch-action:pan-x pan-y}
 #hero-carousel::-webkit-scrollbar{display:none}
 .hero-slide,.hero-slide[aria-current=true]{display:block;flex:0 0 100%;width:100%;height:100%;scroll-snap-align:start;scroll-snap-stop:always}
 #entry #avatarstudio.unified-hero #platform-title{font-size:clamp(1.9rem,7.3vw,3.4rem);line-height:1.1;max-width:18ch}
 .hero-swipe-hint{display:block;position:absolute;right:20px;top:84px;z-index:2;padding:5px 9px;border-radius:20px;background:#08171c88;color:#e4efec;font-size:.75rem}
}

/* One persistent film fills the complete hero, including all fantasy avatars. */
#brand-film{pointer-events:none;mask-image:none;-webkit-mask-image:none}

#hero-note:empty{display:none}

/* Stable composited video layer; switch only after the next decoded frame is ready. */
#entry #avatarstudio.unified-hero #hero-stage{z-index:0}
#entry #avatarstudio.unified-hero .hero-scrim{z-index:1}
.hero-film{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center 40%;pointer-events:none;transform:none!important}
.hero-film-buffer{opacity:0}
#hero-carousel{z-index:2}
@media(max-width:780px){.hero-film{object-position:50% 35%}}
