/* Sole B2B shell theme. Player effects and game physics keep their own styles. */
:root{
 --b2b-bg:#09192d;--b2b-surface:#12263b;--b2b-surface-2:#172d46;
 --b2b-text:#fff;--b2b-text-muted:#c9d5e2;--b2b-accent:#ff3b40;--b2b-accent-hover:#e9343b;
 --b2b-button-light:#d4edfe;--b2b-button-light-text:#092a46;--b2b-outline:rgba(210,231,250,.16);
 --b2b-focus:#96ddfe;--b2b-error:#ff6c72;--b2b-success:#65d4b6;
 --b2b-radius-sm:12px;--b2b-radius-md:18px;--b2b-radius-lg:24px;
 --b2b-space-1:8px;--b2b-space-2:12px;--b2b-space-3:16px;--b2b-space-4:24px;
 --b2b-space-5:32px;--b2b-space-6:48px;--b2b-space-7:64px;--b2b-content-max:1360px;
 --b2b-control:48px;--b2b-font:Arial,'Segoe UI',sans-serif;--b2b-heading-font:Oswald,sans-serif;
 --b2b-heading-weight:700;--b2b-heading-case:uppercase;--b2b-heading-line:1.15;--b2b-heading-spacing:0;
 --b2b-body-weight:400;--b2b-action-weight:600;
}
html:has(.b2b-app),html:has(.b2b-studio),html:has(:where(#risunych-neon-demo)),html:has(.b2b-demo-nav){height:auto!important;overflow:visible!important;color-scheme:dark}
body.b2b-app::before{display:none!important}
body:is(.b2b-app,.b2b-studio,:has(:where(#risunych-neon-demo)),:has(.b2b-demo-nav)){
 --font-ui:var(--b2b-font);--font-body:var(--b2b-font);--font-site:var(--b2b-font);
 --font-display:var(--b2b-heading-font);--font-heading:var(--b2b-heading-font);
 --ink:var(--b2b-text);--muted:var(--b2b-text-muted);--paper:var(--b2b-surface);--line:var(--b2b-outline);
 margin:0;padding:0;height:auto!important;min-height:100dvh;overflow:visible!important;
 background:radial-gradient(ellipse at 90% 38%,#44325055,transparent 45%),var(--b2b-bg)!important;
 color:var(--b2b-text)!important;font:17px/1.55 var(--b2b-font);
}
body:is(.b2b-app,.b2b-studio,:has(:where(#risunych-neon-demo)),:has(.b2b-demo-nav)) *{box-sizing:border-box}
body:is(.b2b-app,.b2b-studio,:has(:where(#risunych-neon-demo)),:has(.b2b-demo-nav)) :is(button,summary,a[class],a[id],.b2b-header a,.b2b-demo-nav a){
 min-height:var(--b2b-control)!important;flex-shrink:0!important;max-width:100%;font-size:16px!important;line-height:1.4!important;white-space:normal!important;text-overflow:clip!important;overflow-wrap:break-word;cursor:pointer;text-decoration:none;
}
body:is(.b2b-app,.b2b-studio,:has(:where(#risunych-neon-demo)),:has(.b2b-demo-nav)) a{color:inherit;text-decoration:none}
body.b2b-app,body.b2b-studio,body:has(:where(#risunych-neon-demo)),body:has(.b2b-demo-nav){font-family:var(--b2b-font)!important}
body:is(.b2b-app,.b2b-studio,:has(.b2b-demo-nav)) :is(p,small,a,label,button,input,select,textarea,summary,kbd){font-family:var(--b2b-font)!important}
body:is(.b2b-app,.b2b-studio,:has(.b2b-demo-nav)) :is(button,input,select,textarea,summary,a,label){text-transform:none}
body:is(.b2b-app,.b2b-studio,:has(.b2b-demo-nav)) :is(button,summary){font-weight:var(--b2b-action-weight)}
body:is(.b2b-app,.b2b-studio,:has(.b2b-demo-nav)) :is(.ui-button,.button,.b2b-primary,.b2b-secondary,.b2b-file-caption){font-weight:var(--b2b-action-weight)!important}
html:has(.b2b-app),html:has(.b2b-demo-nav){background:var(--b2b-bg)!important}
body:is(.b2b-app,.b2b-studio,:has(:where(#risunych-neon-demo)),:has(.b2b-demo-nav)) button{transition:background-color .15s,border-color .15s}
body:is(.b2b-app,.b2b-studio,:has(:where(#risunych-neon-demo)),:has(.b2b-demo-nav)) button:disabled{opacity:.65;cursor:default}
body:is(.b2b-app,.b2b-studio,:has(:where(#risunych-neon-demo)),:has(.b2b-demo-nav)) :is(button,a,input,select,textarea,summary):focus-visible{outline:3px solid var(--b2b-focus)!important;outline-offset:4px}
body:is(.b2b-app,.b2b-studio,:has(:where(#risunych-neon-demo)),:has(.b2b-demo-nav)) :is(input,select,textarea){min-width:0;max-width:100%;font:16px/1.5 var(--b2b-font);accent-color:var(--b2b-accent)}
body:is(.b2b-app,.b2b-studio,:has(:where(#risunych-neon-demo)),:has(.b2b-demo-nav)) :is(input:not([type=checkbox]):not([type=radio]),select,textarea){min-height:var(--b2b-control);border:1px solid #637b91;border-radius:12px;padding:12px 16px;color:var(--b2b-text);background:var(--b2b-bg)}
body:is(.b2b-app,.b2b-studio,:has(:where(#risunych-neon-demo)),:has(.b2b-demo-nav)) input[type=file]{width:100%;padding:8px}
body:is(.b2b-app,.b2b-studio,:has(.b2b-demo-nav)) label:has(input[type=checkbox]){display:flex;align-items:center;gap:12px;min-height:var(--b2b-control);padding:8px 0}
input[type=file]::file-selector-button{min-height:var(--b2b-control);max-width:100%;white-space:normal;padding:12px 16px;margin:0 12px 8px 0;border:0;border-radius:12px;background:var(--b2b-button-light);color:var(--b2b-button-light-text);font:600 16px/1.4 var(--b2b-font);cursor:pointer}
body:is(.b2b-app,.b2b-studio,:has(:where(#risunych-neon-demo)),:has(.b2b-demo-nav)) :is(h1,h2,h3,h4,h5,h6){font-family:var(--b2b-heading-font)!important;color:var(--b2b-text);line-height:var(--b2b-heading-line);letter-spacing:var(--b2b-heading-spacing)!important;text-transform:var(--b2b-heading-case);overflow-wrap:break-word}
body:is(.b2b-app,.b2b-studio,:has(.b2b-demo-nav)) :is(h1,h2,h3,h4,h5,h6){font-weight:var(--b2b-heading-weight)!important}
body:is(.b2b-app,.b2b-studio) h1{font-size:clamp(32px,3.4vw,48px)}body:is(.b2b-app,.b2b-studio) h2{font-size:30px}
.b2b-header{display:flex;flex-wrap:wrap;align-items:center;gap:16px 24px;width:calc(100% - 96px);max-width:1360px;min-height:80px;margin:24px auto 40px;padding:16px 24px;border:1px solid var(--b2b-outline);border-radius:18px;background:var(--b2b-surface)}
.b2b-header a{display:inline-flex;align-items:center;color:white}.b2b-header .b2b-logo{font:var(--b2b-heading-weight) 30px/1.2 var(--b2b-heading-font)!important;color:white}
.b2b-header .b2b-compact-label{display:none}
.b2b-logo svg{width:36px;height:36px;margin-right:12px;fill:none;stroke:var(--b2b-accent);stroke-width:2}.b2b-header>span{flex:1 1 160px;color:var(--b2b-text-muted)}
body :is(.b2b-primary,.b2b-secondary,.rn-button,.rn-connect){display:inline-flex;align-items:center;justify-content:center;gap:12px;padding:14px 24px;border:1px solid transparent;border-radius:12px;text-align:center;font:var(--b2b-action-weight) 16px/1.4 var(--b2b-font)}
body .b2b-primary{background:var(--b2b-accent);color:#fff}body .b2b-secondary{background:var(--b2b-button-light);color:var(--b2b-button-light-text)}
body :is(.b2b-primary,.rn-connect,.rn-button):hover:not(:disabled){background:var(--b2b-accent-hover)}
body :is(.b2b-primary,.b2b-secondary,.rn-connect,.rn-button):active:not(:disabled){filter:brightness(.9)}
[hidden]{display:none!important}
body.b2b-app::before,body.b2b-app::after{content:none!important}
body.b2b-app .b2b-header .b2b-logo{font:var(--b2b-heading-weight) 30px/1.2 var(--b2b-heading-font)!important}
body.b2b-app .b2b-header{font:17px/1.5 var(--b2b-font)}
/* Hero: stage and functional controls occupy separate layout areas. */
body.b2b-app.hero-page .hero-shell{display:block!important;width:calc(100% - 32px)!important;max-width:1760px!important;height:auto!important;min-height:0!important;margin:auto!important;padding:0 0 48px!important;background:none!important}
body.b2b-app.hero-page .hero-shell::after{content:none!important}
body.b2b-app.hero-page :is(.app-header,.app-navigation,.hero-topbar,.scene-card-heading,.scene-messages,.hero-controls){display:none!important}
body.b2b-app.hero-page #hero-experience{display:grid!important;grid-template-columns:minmax(0,1fr) 360px!important;gap:24px;width:100%;height:auto!important;padding:0!important;margin:0;background:none;align-items:start;overflow:visible}
body.b2b-app.hero-page :is(.hero-layout,.hero-focus-column,.scene-card){display:block!important;position:relative;width:100%;height:auto!important;min-height:0!important;padding:0!important;margin:0!important;background:none!important}
body.b2b-app.hero-page .experience-stack{position:relative;width:100%;height:clamp(480px,74svh,920px)!important;min-height:480px!important;padding:0;border:1px solid var(--b2b-outline);border-radius:24px}
body.b2b-app.hero-page #stage{width:100%;height:100%!important;min-height:0!important;border-radius:24px}
body.b2b-app.hero-page #stage::before,body.b2b-app.hero-page #stage::after{content:none!important;filter:none!important}
body.b2b-app.hero-page #mobile-game-ui{display:flex!important;position:relative!important;flex-direction:column;gap:16px;inset:auto!important;height:auto!important;width:100%;min-width:0;padding:20px;pointer-events:auto;color:var(--b2b-text);background:var(--b2b-surface);border:1px solid var(--b2b-outline);border-radius:24px}
body.b2b-app #mobile-game-ui :is(.game-header,.game-menu,#game-bottom-menu,.game-panel,#game-party-bar,#game-movement-progress,#game-notice,#game-reaction,.game-subtitle){position:static!important;inset:auto!important;transform:none!important;width:100%!important;max-width:100%!important;height:auto!important;max-height:none!important;margin:0!important;pointer-events:auto}
body.b2b-app #mobile-game-ui .game-header{display:flex;flex-wrap:wrap;gap:12px}
body.b2b-app #mobile-game-ui :is(.game-round,.game-name){min-width:48px;height:auto;padding:12px;border-radius:12px;background:var(--b2b-surface-2);color:white;border:1px solid var(--b2b-outline);box-shadow:none}
body.b2b-app #mobile-game-ui #mobile-name{white-space:normal;text-overflow:clip;overflow:visible}
body.b2b-app #mobile-game-ui .game-name{width:100%;justify-content:flex-start}
body.b2b-app #mobile-game-ui :is(.game-menu,#game-bottom-menu){display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding:0;border:0;background:none;box-shadow:none}
body.b2b-app #mobile-game-ui .game-menu button{height:auto;padding:12px 16px;border-radius:12px;gap:12px;box-shadow:none}
body.b2b-app #mobile-game-ui :is(button,a){color:var(--b2b-text)}
body.b2b-app #mobile-game-ui :is(button,.game-panel,.game-notice){background:var(--b2b-surface-2);border:1px solid var(--b2b-outline);color:var(--b2b-text);border-radius:12px;box-shadow:none}
body.b2b-app #mobile-game-ui :is(button,a):hover:not(:disabled){border-color:var(--b2b-focus)}
body.b2b-app #mobile-game-ui :is(button[aria-pressed=true],button[aria-expanded=true],.hero-next-action){color:var(--b2b-button-light-text);background:var(--b2b-button-light);border-color:var(--b2b-focus)}
body.b2b-app #mobile-game-ui #game-bottom-menu button{color:var(--b2b-text);background:var(--b2b-surface-2);border:1px solid var(--b2b-outline)}
body.b2b-app #mobile-game-ui #game-bottom-menu button:is([aria-expanded=true],[data-active=true]){color:var(--b2b-button-light-text);background:var(--b2b-button-light);border-color:var(--b2b-focus)}
body.b2b-app #mobile-game-ui .game-panel{padding:20px}
body.b2b-app #mobile-game-ui .game-panel-heading{gap:12px;align-items:start}
body.b2b-app #mobile-game-ui .game-panel-heading h2{font-size:28px;line-height:1.2;color:#fff;padding:0}
body.b2b-app #mobile-game-ui .game-panel-close{margin:0;width:48px;min-width:48px;padding:8px}
body.b2b-app #mobile-game-ui .game-panel-content{overflow:visible!important;padding:16px 0 0}
body.b2b-app #mobile-game-ui #mobile-name-input{min-height:var(--b2b-control)}
body.b2b-app #mobile-game-ui :is(.game-panel-content p,.game-footnote,.control-status,.game-subtitle){color:var(--b2b-text-muted)!important;font-size:16px!important}
body.b2b-app #mobile-game-ui :is(.background-presets-heading,.scene-option-custom,.scene-option-custom small,.scene-option-custom span,.game-panel-content label){color:var(--b2b-text-muted)!important}
body.b2b-app #mobile-game-ui .background-presets-heading{display:flex;flex-wrap:wrap;gap:12px;margin:16px 0}
body.b2b-app #gift-drawing{padding:24px;background:var(--b2b-surface);color:var(--b2b-text);border:1px solid var(--b2b-outline);border-radius:24px}
body.b2b-app #gift-drawing button:not([data-gift-color]){padding:12px 16px;background:var(--b2b-surface-2);color:var(--b2b-text);border-color:var(--b2b-outline)}
body.b2b-app #gift-drawing .gift-drawing-colors{display:flex;flex-wrap:wrap;justify-content:flex-start;gap:12px}
body.b2b-app #gift-drawing [data-gift-color]{width:var(--b2b-control);min-width:var(--b2b-control)}
body.b2b-app #mobile-game-ui :is(.motion-options,.scene-options,#hero-games-list,.invite-cards){display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-columns:auto;gap:12px;height:auto!important;max-height:none!important;overflow:visible!important;margin:0;padding:0}
body.b2b-app #mobile-game-ui :is(.motion-options button,.scene-options button,#hero-games-list button,.invite-card){width:100%;min-width:0;min-height:96px;height:auto;padding:12px}
body.b2b-app #mobile-game-ui .scene-option-preview{width:100%;height:96px}
body.b2b-app #mobile-game-ui #play-backgrounds{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-columns:auto;grid-auto-flow:row;gap:12px;width:100%;overflow:visible}
body.b2b-app #mobile-game-ui #play-backgrounds button{width:100%;height:auto;min-height:140px;padding:12px}
body.b2b-app #mobile-game-ui :is(.game-menu i,.game-card-icon,.game-feature-icon){background:transparent;color:var(--b2b-text-muted)}
body.b2b-app #mobile-game-ui :is(#game-party-bar,.party-selection){display:flex;flex-wrap:wrap;gap:12px;padding:0;border:0;background:none}
body.b2b-app #mobile-game-ui #game-party-count{padding:0;border:0;color:var(--b2b-text-muted)}
body.b2b-app #mobile-game-ui #game-party-bar button{padding:12px 16px}
body.b2b-app #mobile-game-ui .game-menu button span{position:static;display:block;width:auto;height:auto;padding:0;margin:0;overflow:visible;clip-path:none;white-space:normal}
body.b2b-app #mobile-game-ui .game-menu{grid-auto-rows:minmax(var(--b2b-control),auto)}
body.b2b-app #mobile-game-ui .game-menu button{display:flex;flex-direction:row;align-items:center;justify-content:space-between;width:100%;max-width:none;min-width:0;max-height:none;aspect-ratio:auto;text-align:left}
body.b2b-app #mobile-game-ui>.game-menu button>i{width:24px;min-width:24px;height:24px;min-height:24px}
body.b2b-app #mobile-game-ui #motions{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
body.b2b-app #mobile-game-ui #motions button{padding:16px;min-height:96px}
body.b2b-app #mobile-game-ui #motions .motion-glyph{width:32px;height:32px;border-radius:0;background:transparent;color:var(--b2b-focus)}
body.b2b-app #mobile-game-ui #motions .motion-glyph svg{width:28px;height:28px;stroke-linejoin:round;filter:drop-shadow(0 0 4px #96ddfe40)}
body.b2b-app #mobile-game-ui #motions [aria-pressed="true"] .motion-glyph{color:var(--b2b-button-light-text)}
body.b2b-app #mobile-game-ui #motions [aria-pressed="true"] .motion-glyph svg{filter:none}
/* The B2B menu is part of the page: allow every final row to scroll into view. */
body.b2b-app #mobile-game-ui #game-panel-movement{overflow:visible}
body.b2b-app #mobile-game-ui #motions [hidden]{display:none!important}
body.b2b-app #mobile-game-ui #movement-choice-hint{margin:0 0 12px;color:var(--b2b-text-muted);font-size:16px;line-height:1.5}
body.b2b-app #mobile-game-ui #face-expression-note:not([hidden]){margin:0 0 16px;padding:12px 16px;border-left:3px solid var(--b2b-focus);background:var(--b2b-surface);border-radius:8px;color:var(--b2b-text-muted);font-size:16px;line-height:1.5}
body.b2b-app #mobile-game-ui #game-reaction[data-kind="action"]{padding:10px 16px;border:1px solid var(--b2b-focus);border-radius:12px;background:var(--b2b-surface-2);color:var(--b2b-text);font-size:16px;line-height:1.4}
body.b2b-app #mobile-game-ui #motions [data-motion][aria-pressed="true"]{position:relative;background:var(--b2b-button-light);border-color:var(--b2b-focus);color:var(--b2b-button-light-text)}
body.b2b-app #mobile-game-ui #motions [data-motion][aria-pressed="true"]::after{content:'✓';position:absolute;top:6px;right:8px;font-size:18px;line-height:1}
body.b2b-app #mobile-game-ui #play-background-custom,body.b2b-app #mobile-game-ui #play-background-custom small{color:var(--b2b-text-muted)}
body.b2b-app #mobile-game-ui .background-presets-heading :is(h3,span),body.b2b-app #mobile-game-ui #hero-game-progress{color:var(--b2b-text-muted)}
body.b2b-app #mobile-game-ui #game-movement-progress{padding:16px;background:var(--b2b-surface-2);border:1px solid var(--b2b-outline);border-radius:12px;color:var(--b2b-text-muted)}
/* One list layout for secondary actions, independent of the old phone grid. */
body.b2b-app #mobile-game-ui #game-panel-more .game-panel-content{display:flex!important;flex-direction:column;gap:10px}
body.b2b-app #mobile-game-ui #game-panel-more .game-menu{display:contents!important}
body.b2b-app #mobile-game-ui #game-panel-more .game-menu [data-game-panel]:not([data-game-panel="games"]){display:none}
body.b2b-app #mobile-game-ui #game-panel-more [data-game-panel]{display:flex;flex-direction:row;align-items:center;justify-content:flex-start;gap:14px;width:100%;max-width:none;min-width:0;min-height:64px!important;height:auto;max-height:none;padding:14px 16px;aspect-ratio:auto;background:var(--b2b-surface);color:var(--b2b-text);border:1px solid var(--b2b-outline);border-radius:12px;text-align:left}
body.b2b-app #mobile-game-ui #game-panel-more [data-game-panel]>i{display:grid;place-items:center;order:-1;flex:0 0 28px;width:28px;min-width:28px;max-width:28px;height:28px;min-height:28px;max-height:28px;border-radius:0;background:transparent;color:var(--b2b-focus)}
body.b2b-app #mobile-game-ui #game-panel-more [data-game-panel]>span{position:static;width:auto;height:auto;margin:0;clip-path:none;overflow:visible;white-space:normal;text-align:left;overflow-wrap:normal;word-break:normal}
body.b2b-app #mobile-game-ui #game-panel-more [data-game-panel] svg{width:24px;height:24px;min-width:24px;max-width:24px;min-height:24px;max-height:24px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
body.b2b-app #mobile-game-ui #game-panel-more [data-game-panel]:is(:hover,:focus-visible){border-color:var(--b2b-focus)}
body.b2b-app #mobile-game-ui #game-party-bar button{width:100%;justify-content:center;gap:10px;background:var(--b2b-surface-2);color:var(--b2b-text)}
body.b2b-app #mobile-game-ui #game-panel-party .party-heading #invite-toggle{display:none}
body.b2b-app #mobile-game-ui #game-panel-party .party-hero-menu{display:grid}
body.b2b-app #mobile-game-ui #game-panel-party .party-controls{padding:0;border:0;background:transparent;box-shadow:none}
body.b2b-app #mobile-game-ui #game-add-drawing{width:100%;margin-bottom:12px;color:var(--b2b-button-light-text)}
body.b2b-app #mobile-game-ui #game-notice{padding:24px;text-align:left}
body.b2b-app #mobile-game-ui #game-notice h2{margin:0 0 16px;font-size:30px;line-height:1.2}
body.b2b-app #mobile-game-ui #game-notice p{color:var(--b2b-text-muted)}
body.b2b-app.hero-page #hero-experience[data-entry-state=error]{display:block!important;max-width:760px;margin:auto}
body.b2b-app.hero-page #hero-experience[data-entry-state=error] .hero-layout{display:none!important}
body.b2b-app #hero-experience[data-entry-state=error] #mobile-game-ui>:not(#game-notice){display:none!important}
body.b2b-app #mobile-game-ui #game-notice #retry{padding:14px 24px;background:var(--b2b-accent);color:white}
body.b2b-app #mobile-game-ui #game-menu-tooltip{display:none!important}
body.b2b-app #mobile-game-ui #game-selected-hero{pointer-events:none}
/* Video: full previews and normal document flow, including all result states. */
body.b2b-app.video-page>main.responsive-container{display:block!important;width:calc(100% - 96px)!important;max-width:1360px!important;margin:auto!important;padding:0 0 64px!important}
body.b2b-app.video-page :is(.app-header,.app-navigation,.video-director,.video-create-note,.video-publication,#share-video,.video-footer-note){display:none!important}
body.b2b-app.video-page :is(.video-screen,.video-builder){width:100%;max-width:none!important}
body.b2b-app.video-page .video-topbar{display:flex;flex-direction:column;align-items:flex-start;gap:8px;margin:0 0 20px;min-height:0}
body.b2b-app.video-page .video-back span{position:static;width:auto;height:auto;overflow:visible;clip-path:none}
body.b2b-app.video-page .video-heading{max-width:100%}
body.b2b-app.video-page .video-heading h1{font-size:clamp(24px,3vw,32px);line-height:var(--b2b-heading-line)}
body.b2b-app.video-page .video-heading h1::after{content:none}
body.b2b-app.video-page .video-builder{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}
body.b2b-app.video-page :is(.video-step,.video-state){min-width:0;height:auto;min-height:0;padding:24px;border:1px solid var(--b2b-outline);border-radius:24px;background:var(--b2b-surface)!important;color:white}
body.b2b-app.video-page :is(.step-heading h2,#processing-title,#error-title,#ready-title){color:white!important}
body.b2b-app.video-page :is(p,small,.video-back,.work-selection,.video-option-hint,.selected-work-detail){color:var(--b2b-text-muted)!important}
body.b2b-app.video-page :is(.cast-list,.scene-options){display:grid;grid-auto-flow:row;grid-auto-columns:auto;grid-template-columns:repeat(2,minmax(0,1fr));height:auto!important;max-height:none!important;flex:none;overflow:visible!important;gap:16px}
body.b2b-app.video-page :is(.hero-option,.scene-option){display:flex;flex-direction:column;min-width:0;width:100%;height:auto;min-height:0;padding:12px;background:var(--b2b-surface-2);color:white;border:1px solid var(--b2b-outline);border-radius:12px}
body.b2b-app.video-page :is(.hero-option,.scene-option)[aria-pressed=true]{background:#25455d;border-color:var(--b2b-focus)}
body.b2b-app.video-page .work-name{white-space:normal!important;text-overflow:clip!important;overflow:visible!important;height:auto;min-height:0;line-height:1.5;display:block;width:100%;-webkit-line-clamp:unset}
body.b2b-app.video-page .hero-option img{height:180px;object-fit:contain}
body.b2b-app.video-page .scene-option img{height:auto;aspect-ratio:16/9}
body.b2b-app.video-page :is(.work-selection-row,.video-option-icon,.step-number){background:var(--b2b-surface-2);color:white}
body.b2b-app.video-page .work-selection-row{display:flex;flex-wrap:wrap;gap:16px}
body.b2b-app.video-page .work-selection-row .selection-summary{display:block;flex:1 1 100%;width:100%;overflow:visible;white-space:normal;text-overflow:clip;-webkit-line-clamp:unset;color:var(--b2b-text-muted)!important}
body.b2b-app.video-page .selected-work-detail{display:flex;flex-wrap:wrap;align-items:center;gap:12px}
body.b2b-app.video-page .add-hero-button{width:100%;flex-basis:100%}
body.b2b-app.video-page .video-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-column:1/-1;gap:24px;padding:0;background:transparent;border:0}
body.b2b-app.video-page .video-create-bar{grid-column:1/-1;display:grid;gap:16px;background:transparent;border:0}
body.b2b-app.video-page :is(.video-duration-options,.video-frame-options){display:flex;flex-wrap:wrap;gap:12px}
body.b2b-app.video-page .video-options label{flex:1 0 140px;min-width:0}
body.b2b-app.video-page .video-options label span{min-height:var(--b2b-control);padding:12px 16px;background:var(--b2b-surface-2);color:white;border-color:var(--b2b-outline)}
body.b2b-app.video-page .video-options input:checked+span{background:var(--b2b-button-light);color:var(--b2b-button-light-text);border-color:var(--b2b-focus)}
body.b2b-app.video-page :is(.ui-button,.upload-background-button,.add-hero-button){display:inline-flex;align-items:center;justify-content:center;gap:12px;padding:14px 24px;border:1px solid var(--b2b-outline);border-radius:12px;background:var(--b2b-button-light);color:var(--b2b-button-light-text)}
body.b2b-app.video-page :is(.ui-button,.upload-background-button,.add-hero-button) :is(span,p){color:inherit!important}
body.b2b-app.video-page .upload-background-button{flex-direction:column;align-items:center}
body.b2b-app.video-page :is(#create-video,.ui-button-primary){background:var(--b2b-accent);color:white;border-color:transparent}
body.b2b-app.video-page #create-video{max-width:none}
body.b2b-app.video-page .video-create-bar{padding:0}
body.b2b-app.video-page .create-video-button .button-arrow{position:static}
body.b2b-app.video-page .video-state{padding:24px;text-align:center}
body.b2b-app.video-page .video-screen[data-state="ready"]{max-width:1080px!important}
body.b2b-app.video-page .video-screen[data-state="ready"] .video-topbar{margin-bottom:8px}
body.b2b-app.video-page .video-ready>.ready-actions .ui-button{padding:9px 8px}
body.b2b-app.video-page .video-ready #download{background:#d82632}
body.b2b-app.video-page .video-ready #new-video{background:var(--b2b-surface-2);color:var(--b2b-text)}
/* Aquarium shell; preserve scene assets, drawing canvas and simulation. */
body:has(.b2b-demo-nav){--ink:var(--b2b-text)!important;--muted:var(--b2b-text-muted)!important;--teal:var(--b2b-focus)!important;--mint:var(--b2b-accent)!important}
body:has(.b2b-demo-nav) .b2b-demo-nav{width:calc(100% - 96px);max-width:1360px;margin:24px auto 40px;padding:16px 24px;background:var(--b2b-surface);border:1px solid var(--b2b-outline);border-radius:18px}
body:has(.b2b-demo-nav) .b2b-demo-nav{display:flex;flex-wrap:wrap;gap:16px;align-items:center;justify-content:space-between;font:17px/1.5 var(--b2b-font)}
body:has(.b2b-demo-nav) .b2b-demo-nav a{display:flex;align-items:center}
body:has(.b2b-demo-nav) #demo-deadline{color:var(--b2b-text-muted);font-size:13px}
body:has(.b2b-demo-nav) main{width:calc(100% - 96px);max-width:1360px;padding:0;margin:auto}
body:has(.b2b-demo-nav) .page-heading h1{font-size:clamp(32px,4vw,40px)}
body:has(.b2b-demo-nav) :is(.collection,.seabed-panel,dialog,.help-content){background:var(--b2b-surface)!important;border-color:var(--b2b-outline)!important;color:white;border-radius:24px}
body:has(.b2b-demo-nav) :is(.collection-title h2,.seabed-heading h2,.dialog-heading h2){font-size:clamp(24px,3vw,30px)}
body:has(.b2b-demo-nav) :is(.button,.add-outline,.edit-fish,.aquarium-games button,.feed-button,.subtle-icon,.tabs button,.drawing-tools>button,.seabed-choice,.fish-card){padding:12px 20px;background:var(--b2b-surface-2)!important;color:white!important;border:1px solid var(--b2b-outline)!important;border-radius:12px}
body:has(.b2b-demo-nav) .seabed-choices .seabed-choice{padding:8px;text-align:left}
body:has(.b2b-demo-nav) .seabed-choice :is(strong,span){padding:0;overflow-wrap:normal}
body:has(.b2b-demo-nav) .seabed-choice strong{font-size:15px}
body:has(.b2b-demo-nav) .seabed-choice span{font-size:13px}
body:has(.b2b-demo-nav) :is(.button.primary,#releaseButton){background:var(--b2b-accent)!important;color:white!important}
body:has(.b2b-demo-nav) :is(.tabs button[aria-selected=true],.aquarium-games button[aria-pressed=true],.seabed-choice[aria-pressed=true]){background:var(--b2b-button-light)!important;color:var(--b2b-button-light-text)!important}
body:has(.b2b-demo-nav) .seabed-choice[aria-pressed=true] span{color:var(--b2b-button-light-text)!important}
body:has(.b2b-demo-nav) .fish-list{display:grid;grid-template-columns:1fr;max-height:none;overflow:visible}
body:has(.b2b-demo-nav) .fish-card{min-width:0;width:100%;flex-basis:auto}
body:has(.b2b-demo-nav) .palette{display:flex;flex-wrap:wrap;gap:12px;width:100%}
body:has(.b2b-demo-nav) .palette button{width:48px;height:48px;min-width:48px;padding:0}
body:has(.b2b-demo-nav) :is(.tabs,.drawing-tools,.fish-settings,.dialog-bottom){flex-wrap:wrap;gap:16px}
body:has(.b2b-demo-nav) .tabs button{flex:1 1 180px}
body:has(.b2b-demo-nav) dialog{width:min(760px,calc(100% - 32px));max-height:calc(100dvh - 32px);padding:0;overflow:auto}
body:has(.b2b-demo-nav) .creator-form{padding:24px;min-width:0}
body:has(.b2b-demo-nav) :is(.drop-zone,.upload-result,.drawing-wrap){min-width:0;width:100%}
body:has(.b2b-demo-nav) .drawing-wrap canvas{width:100%;max-width:100%}
body:has(.b2b-demo-nav) .fish-settings>label:first-child{flex:1 1 100%;min-width:0}
body:has(.b2b-demo-nav) .fish-settings input[type=text]{width:100%}
body:has(.b2b-demo-nav) .subtle-icon{width:48px;min-width:48px;padding:12px}
body:has(.b2b-demo-nav) :is(.fullscreen,.depth-control button,.direction-pad button){min-width:48px;min-height:48px}
body:has(.b2b-demo-nav) .direction-pad{grid-template-columns:repeat(3,48px);grid-template-rows:repeat(2,48px)}
body:has(.b2b-demo-nav) .ocean-toolbar{display:flex;justify-content:center;gap:6px;width:max-content;max-width:calc(100% - 32px);padding:6px 8px;height:auto}
body:has(.b2b-demo-nav) .aquarium-games{gap:12px}
body:has(.b2b-demo-nav) footer{max-width:1360px;margin:32px auto}
body:has(.b2b-demo-nav) #floraSource{display:inline-flex;align-items:center;line-height:1.5}
body.b2b-app #hero-games-layer{position:absolute;inset:0;width:100%;height:100%;overflow:visible;pointer-events:none}
body.b2b-app #mobile-game-ui .hero-game-hud{position:static;inset:auto;display:flex;flex-direction:column;gap:12px;width:100%;max-width:none;margin:0;padding:16px;border-radius:12px;background:var(--b2b-surface-2);color:var(--b2b-text);pointer-events:auto;transform:none}
body.b2b-app:has(#hero-games-layer[hidden]) .hero-game-hud{display:none!important}
body.b2b-app #hero-game-actions{display:flex;flex-wrap:wrap;gap:12px}
body.b2b-app #hero-game-actions button{padding:12px 16px}
@media(min-width:768px){body.b2b-app #mobile-game-ui #game-bottom-menu{display:none!important}}
@media(min-width:1200px){
 body.b2b-app #mobile-game-ui .game-header{gap:4px}
 body.b2b-app #mobile-game-ui .game-header .game-round{flex:0 0 44px;width:44px;min-width:44px;padding:8px}
}
@media(max-width:359px){
 body.b2b-app .b2b-header .b2b-logo{font-size:20px!important}
 body.b2b-app .b2b-header .b2b-primary{font-size:14px!important}
 body:has(.b2b-demo-nav) .seabed-choices{grid-template-columns:minmax(0,1fr)}
}
@media(max-width:1199px){
 body.b2b-app.hero-page #hero-experience{grid-template-columns:minmax(0,1fr)!important}
 body.b2b-app #mobile-game-ui .game-menu{grid-template-columns:repeat(3,minmax(0,1fr))}
 body.b2b-app.video-page .video-builder{grid-template-columns:minmax(0,1fr)}
 body:has(.b2b-demo-nav) .workspace{grid-template-columns:minmax(0,1fr)}
}
@media(max-width:767px),(max-width:1023px) and (max-height:500px){
 :root{--b2b-control:52px}
 .b2b-header,body:has(.b2b-demo-nav) .b2b-demo-nav{width:calc(100% - 32px);margin:16px auto 32px;padding:20px}
 body:has(.b2b-demo-nav) .b2b-demo-nav{gap:0 12px;margin:12px auto 16px;padding:8px 16px 12px}
 body:has(.b2b-demo-nav) .creator-form{padding:16px}
 body:has(.b2b-demo-nav) .tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 body:has(.b2b-demo-nav) .tabs button{flex-direction:column;gap:4px;padding:8px 4px}
 body:has(.b2b-demo-nav) .palette{display:grid;grid-template-columns:repeat(3,minmax(48px,1fr));justify-items:center}
 .b2b-header>span{flex-basis:100%}.b2b-header>a:not(.b2b-logo){width:100%}
 body.b2b-app.hero-page .hero-shell,body.b2b-app.video-page>main.responsive-container,body:has(.b2b-demo-nav) main{width:calc(100% - 32px)!important}
 body.b2b-app #mobile-game-ui{padding:20px}
 body.b2b-app #mobile-game-ui :is(.game-menu,#game-bottom-menu){grid-template-columns:repeat(2,minmax(0,1fr))}
 body.b2b-app #mobile-game-ui #game-bottom-menu{display:grid!important}
 body.b2b-app #mobile-game-ui #game-bottom-menu button{width:100%;padding:12px}
 body.b2b-app #mobile-game-ui .game-panel{padding:16px}
 body.b2b-app #mobile-game-ui :is(.motion-options,.scene-options,#hero-games-list,.invite-cards){grid-template-columns:minmax(0,1fr)}
 body.b2b-app #mobile-game-ui #play-backgrounds{grid-template-columns:minmax(0,1fr)}
 body.b2b-app #mobile-game-ui #motions{grid-template-columns:minmax(0,1fr)}
 body.b2b-app #mobile-game-ui .game-panel-heading h2{font-size:28px}
 body.b2b-app #mobile-game-ui :is(.game-panel-content button,.game-panel-content a){max-width:100%}
 body.b2b-app.video-page :is(.video-options,.cast-list,.scene-options){grid-template-columns:minmax(0,1fr)}
 body.b2b-app.video-page .video-step{padding:24px}
 body:has(.b2b-demo-nav) .aquarium-games{grid-template-columns:1fr}
 body:has(.b2b-demo-nav) .dialog-bottom{flex-direction:column;align-items:stretch}
 body:has(.b2b-demo-nav) .dialog-bottom .button{width:100%}
 body:has(.b2b-demo-nav) .palette button{width:52px;min-width:52px;height:52px}
 /* Compact navigation and touch controls keep the drawing and primary actions together. */
 body:is(.b2b-app,.b2b-studio) .b2b-header{flex-wrap:nowrap;min-height:0;gap:8px;padding:10px 12px;margin:12px auto 16px;border-radius:16px}
 body:is(.b2b-app,.b2b-studio) .b2b-header .b2b-logo{font-size:22px!important;min-height:44px!important}
 .b2b-header .b2b-logo svg{width:24px;height:24px;margin-right:6px}
 .b2b-header>span,.b2b-header .b2b-full-label{display:none}
 .b2b-header .b2b-compact-label{display:inline}
 body:is(.b2b-app,.b2b-studio) .b2b-header>a.b2b-primary{width:auto;margin-left:auto;min-height:44px!important;padding:10px 8px;white-space:nowrap!important}
 body:is(.b2b-app,.b2b-studio) .b2b-primary,body.b2b-app.video-page :is(#create-video,.ui-button-primary){background:#d82632}
 body.b2b-app.hero-page #hero-experience{gap:12px!important}
 body.b2b-app.hero-page .hero-shell{width:100%!important}
 body.b2b-app.hero-page .experience-stack{height:clamp(360px,60svh,680px)!important;min-height:360px!important;border-radius:0;border-inline:0}
 body.b2b-app.hero-page #stage{border-radius:0}
 body.b2b-app.hero-page #hero-experience>:not(.hero-layout):not(#mobile-game-ui){width:calc(100% - 32px)!important;margin-inline:16px!important}
 body.b2b-app.hero-page:not(.b2b-game-fullscreen) #hero-experience #mobile-game-ui>*:not(#game-selected-hero){width:calc(100% - 32px)!important;max-width:calc(100% - 32px)!important;margin-inline:16px!important}
 body.b2b-app.hero-page #mobile-game-ui{display:contents!important}
 body.b2b-app #mobile-game-ui .game-header{order:-1;gap:8px;align-items:center}
 body.b2b-app #mobile-game-ui :is(.game-round,.game-name){min-width:44px!important;min-height:44px!important;padding:10px}
 body.b2b-app #mobile-game-ui #game-bottom-menu{grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:6px;padding:0;background:var(--b2b-bg)}
 body.b2b-app #mobile-game-ui #game-bottom-menu button{min-width:0;min-height:64px!important;padding:8px 4px;gap:4px;border-radius:12px}
 body.b2b-app #mobile-game-ui #game-bottom-menu button svg{width:24px;height:24px}
 body.b2b-app #mobile-game-ui .game-panel{scroll-margin-top:12px}
 body.b2b-app #mobile-game-ui :is(#motions,.motion-options,#play-backgrounds){grid-template-columns:repeat(2,minmax(0,1fr))}
 body.b2b-app #mobile-game-ui #motions button{min-height:64px;padding:12px 8px}
 body.b2b-app.video-page :is(.cast-list,.scene-options){grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
 body.b2b-app.video-page .video-step{padding:16px}
 body.b2b-app.video-page .hero-option,body.b2b-app.video-page .scene-option{padding:8px}
 body.b2b-app.video-page .hero-option img{height:120px}
 body.b2b-app.video-page .scene-option>span{min-height:44px}
 body.b2b-app.video-page .step-heading{gap:8px}
 body.b2b-app.video-page .step-heading h2{font-size:26px!important}
}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto!important}*,*::before,*::after{animation-duration:.01ms!important;transition:none!important}}
