/* Shared homepage console: preserve existing controls, assets and orbit interaction. */
html[data-home-site][data-touch-layout] { --home-corner:clamp(48px,7vmin,76px); --home-stick:clamp(74px,14vmin,144px); }
html[data-home-site][data-touch-layout="portrait"] { --home-corner:48px; }
html[data-home-site][data-touch-layout] body.home-screen:not(.results-open):not(.information-open) {height:100dvh!important;min-height:0!important;width:100%!important;max-width:none!important;margin:0!important;overflow:hidden!important;}
html[data-home-site][data-touch-layout] .home-screen:not(.results-open):not(.information-open) #main {position:relative!important;display:block!important;width:100%!important;max-width:none!important;height:100dvh!important;min-height:0!important;max-height:none!important;margin:0!important;padding:0!important;}
html[data-home-site][data-touch-layout] .home-screen:not(.results-open):not(.information-open) .universe {position:absolute!important;inset:calc(var(--home-corner) + 18px) 0 calc(max(52px,var(--home-stick)*.55))!important;display:flex!important;align-items:stretch!important;justify-content:center!important;width:auto!important;max-width:none!important;height:auto!important;min-height:0!important;margin:0!important;padding:0!important;}
html[data-home-site][data-touch-layout="portrait"] .home-screen:not(.results-open):not(.information-open) .universe {inset:100px 0 64px!important;}
html[data-home-site][data-touch-layout] .home-screen:not(.results-open):not(.information-open) .world-scene {position:relative!important;flex:1!important;width:100%!important;max-width:none!important;height:100%!important;min-height:0!important;margin:0!important;isolation:isolate!important;overflow:visible!important;}
html[data-home-site][data-touch-layout] .home-screen .world-globe {width:var(--earth)!important;height:var(--earth)!important;z-index:4!important;touch-action:none!important;}
html[data-home-site][data-touch-layout] .home-screen .project-orbit {width:var(--orbit-diameter)!important;height:var(--orbit-height)!important;aspect-ratio:auto!important;inset:0!important;margin:auto!important;transform:none!important;border-radius:50%!important;pointer-events:none!important;touch-action:none!important;}
html[data-home-site][data-touch-layout] .home-screen .project-orbit[hidden] {display:none!important;}
html[data-home-site][data-orbit-depth="spatial"] .home-screen .project-orbit {z-index:auto!important;border:0!important;}
html[data-home-site][data-orbit-depth="spatial"] .home-screen .project-orbit::before,html[data-home-site][data-orbit-depth="spatial"] .home-screen .project-orbit::after {content:"";position:absolute;inset:0;border:1px solid #1bfd9c69;border-radius:50%;pointer-events:none;}
html[data-home-site][data-orbit-depth="spatial"] .home-screen .project-orbit::before {clip-path:inset(0 0 50% 0);z-index:1;}
html[data-home-site][data-orbit-depth="spatial"] .home-screen .project-orbit::after {clip-path:inset(50% 0 0 0);z-index:6;}
html[data-home-site][data-touch-layout] .home-screen .world-scene .project-orbit .project-planet {--planet-size:var(--ui-planet-size)!important;width:var(--planet-size)!important;height:var(--planet-size)!important;pointer-events:auto!important;touch-action:none!important;visibility:visible!important;transform:translate(calc(-50% + var(--x,0px)),calc(-50% + var(--y,0px))) scale(var(--depth-scale,1))!important;}
html[data-home-site][data-orbit-depth="spatial"] .home-screen .world-scene .project-orbit .project-planet {z-index:var(--orbit-layer,2)!important;background:radial-gradient(circle at 33% 27%,#263d35,#030706 70%);}
html[data-home-site][data-orbit-depth="spatial"] .home-screen .world-scene .project-orbit .project-planet.is-selected {box-shadow:0 0 22px var(--accent)!important;border-color:var(--accent)!important;color:var(--accent)!important;}
html[data-home-site][data-orbit-depth="flat"] .home-screen .project-orbit {z-index:6!important;border:1px solid #1bfd9c40!important;}
html[data-home-site][data-orbit-depth="flat"] .home-screen .project-orbit::before,html[data-home-site][data-orbit-depth="flat"] .home-screen .project-orbit::after {display:none!important;}
html[data-home-site][data-touch-layout] .home-screen .world-entry {z-index:10!important;}
html[data-home-site][data-touch-layout] .home-screen .project-planet>span {font-size:clamp(11px,1.8vmin,16px)!important;line-height:1.25!important;}
html[data-home-site][data-touch-layout] .home-screen .world-controls>button[data-rotate],html[data-home-site][data-touch-layout] .home-screen .console-controls :is(.game-buttons,.altitude-buttons,.console-menu) {display:none!important;}
html[data-home-site][data-touch-layout="portrait"] .home-screen .console-controls {display:none!important;}
html[data-home-site][data-touch-layout]:not([data-touch-layout="portrait"]) .home-screen.console-mode .console-controls {display:block!important;}
html[data-home-site][data-touch-layout] .home-screen .console-controls .stick {width:var(--home-stick)!important;height:var(--home-stick)!important;bottom:max(14px,env(safe-area-inset-bottom))!important;}
html[data-home-site][data-touch-layout] .home-screen .stick span {width:52%!important;height:52%!important;font-size:clamp(18px,3vmin,28px)!important;}
html[data-home-site][data-touch-layout] .home-screen .site-header,html[data-home-site][data-touch-layout] .home-screen .site-header:has(.brand[aria-expanded="true"]) {position:fixed!important;top:max(12px,env(safe-area-inset-top))!important;right:max(16px,env(safe-area-inset-right))!important;left:auto!important;width:var(--home-corner)!important;max-width:none!important;padding:0!important;transform:none!important;background:transparent!important;z-index:95!important;}
html[data-home-site][data-touch-layout] .home-screen .header-hub {width:100%!important;min-height:0!important;}
html[data-home-site][data-touch-layout] .home-screen .brand-circle {width:var(--home-corner)!important;height:var(--home-corner)!important;}
html[data-home-site][data-touch-layout] .home-screen .brand-name {display:block!important;white-space:nowrap;font-size:clamp(10px,1.8vmin,14px)!important;line-height:1.3!important;}
html[data-home-site][data-touch-layout] .home-screen .search-home,html[data-home-site][data-touch-layout] .home-screen.search-open .search-home {position:fixed!important;top:max(12px,env(safe-area-inset-top))!important;left:max(16px,env(safe-area-inset-left))!important;right:auto!important;width:auto!important;max-width:none!important;padding:0!important;transform:none!important;z-index:90!important;}
html[data-home-site][data-touch-layout] .home-screen .search-expander {margin:0!important;justify-content:flex-start!important;}
html[data-home-site][data-touch-layout] .home-screen .search-circle {width:var(--home-corner)!important;height:var(--home-corner)!important;min-width:var(--home-corner)!important;font-size:clamp(25px,4vmin,42px)!important;}
html[data-home-site][data-touch-layout] .home-screen.search-open .search-form:not([hidden]) {width:min(540px,calc(100vw - var(--home-corner)*2 - 54px))!important;min-width:0!important;max-width:none!important;}
html[data-home-site][data-touch-layout] .home-screen .quick-links {display:none!important;}
html[data-home-site][data-touch-layout] .home-screen .site-header .header-hub .header-wings.header-slider:not([hidden]) {inset:0 0 auto auto!important;width:min(540px,calc(100vw - 92px))!important;transform:none!important;}
html[data-home-site][data-touch-layout] .home-screen .header-slider-track {justify-content:flex-end!important;padding:0!important;}
html[data-home-site][data-touch-layout] .home-screen:not(.search-open):not(.results-open):not(.information-open).ticker-positioned .living-ticker {display:block!important;position:fixed!important;top:auto!important;bottom:max(14px,env(safe-area-inset-bottom))!important;left:calc(var(--home-stick) + 32px)!important;right:calc(var(--home-stick) + 32px)!important;width:auto!important;max-width:800px!important;margin:0 auto!important;z-index:30!important;}
html[data-home-site][data-touch-layout="portrait"] .home-screen:not(.search-open):not(.results-open):not(.information-open).ticker-positioned .living-ticker {left:12px!important;right:12px!important;}
html[data-home-site][data-touch-layout] .home-screen .world-controls {position:fixed!important;bottom:16px!important;left:calc(var(--home-stick) + 30px)!important;right:calc(var(--home-stick) + 30px)!important;margin:0!important;padding:0!important;z-index:20!important;}
html[data-home-site][data-touch-layout="portrait"] .home-screen .world-controls {left:12px!important;right:12px!important;}

/* Keep Enter above the front planet; both remain independently selectable. */
html[data-home-site][data-orbit-depth="spatial"] .home-screen .world-entry {top:calc(50% - var(--earth)*.25)!important;}
html[data-home-site][data-touch-layout] .home-screen .world-scene .project-orbit .project-planet[data-concealed="true"] {visibility:visible!important;}
html[data-home-site="search"][data-touch-layout] .home-screen .site-header .header-hub .header-wings.header-slider:not([hidden]) {right:calc(var(--home-corner) + 12px)!important;width:min(300px,calc(100vw - var(--home-corner)*2 - 42px))!important;}

/* Header plane: one horizontal track, no vertical reflow during sliding. */
html[data-home-site][data-touch-layout] .home-screen .site-header:has(.brand[aria-expanded="true"]) {left:calc(var(--home-corner) + 36px)!important;right:16px!important;width:auto!important;}
html[data-home-site][data-touch-layout] .home-screen .site-header .header-hub:has(.header-slider:not([hidden])) {min-height:calc(var(--home-corner) + 24px)!important;}
html[data-home-site][data-touch-layout] .home-screen .site-header .header-hub .header-wings.header-slider:not([hidden]) {position:relative!important;inset:auto!important;width:100%!important;max-width:none!important;transform:none!important;pointer-events:auto!important;}
html[data-home-site][data-touch-layout] .home-screen .header-hub .header-slider-track {position:relative!important;display:flex!important;flex-flow:row nowrap!important;align-items:flex-start!important;justify-content:flex-start!important;gap:12px!important;padding:0 2px 6px!important;overflow-x:auto!important;overflow-y:hidden!important;touch-action:pan-x!important;scroll-snap-type:none!important;scrollbar-width:none!important;}
html[data-home-site][data-touch-layout] .home-screen .header-hub .header-slider-track::-webkit-scrollbar{display:none;}
html[data-home-site][data-touch-layout] .home-screen .header-hub .header-slider-track :is(.brand,.header-planet) {position:relative!important;inset:auto!important;transform:none!important;flex:0 0 var(--home-corner)!important;width:var(--home-corner)!important;min-width:var(--home-corner)!important;margin:0!important;display:flex!important;flex-direction:column!important;align-items:center!important;gap:4px!important;}
html[data-home-site][data-touch-layout] .home-screen .header-hub .header-slider-track .header-planet-circle {width:var(--home-corner)!important;height:var(--home-corner)!important;flex:none!important;}
html[data-home-site][data-touch-layout] .home-screen .header-hub .header-slider-track .header-planet>span:last-child {font-size:11px!important;line-height:1.3!important;white-space:nowrap;}
html[data-home-site][data-touch-layout="portrait"] .home-screen .site-header {left:50%!important;right:auto!important;transform:translateX(-50%)!important;}
html[data-home-site][data-touch-layout="portrait"] .home-screen .site-header:has(.brand[aria-expanded="true"]) {left:12px!important;right:12px!important;width:auto!important;transform:none!important;}
html[data-home-site][data-touch-layout="portrait"] .home-screen .header-hub .header-slider-track {padding-inline:calc(50% - var(--home-corner)/2)!important;}
html[data-home-site][data-touch-layout="portrait"] .home-screen .search-home,
html[data-home-site][data-touch-layout="portrait"] .home-screen.search-open .search-home {top:calc(max(12px,env(safe-area-inset-top)) + var(--home-corner) + 26px)!important;left:50%!important;right:auto!important;transform:translateX(-50%)!important;}
html[data-home-site][data-touch-layout="portrait"] .home-screen .search-expander {display:flex!important;flex-flow:row nowrap!important;align-items:center!important;gap:8px!important;}
html[data-home-site][data-touch-layout="portrait"] .home-screen.search-open .search-form:not([hidden]) {position:static!important;flex:0 1 auto!important;margin:0!important;width:min(540px,calc(100vw - var(--home-corner) - 42px))!important;}
html[data-home-site][data-touch-layout="portrait"] .home-screen:not(.results-open):not(.information-open) .universe {top:calc(max(12px,env(safe-area-inset-top)) + var(--home-corner)*2 + 42px)!important;}

/* Keep search icon and input in one horizontal plane at every width. */
html[data-home-site][data-touch-layout] .home-screen .search-home .search-expander {display:flex!important;flex-flow:row nowrap!important;align-items:center!important;justify-content:flex-start!important;width:max-content!important;max-width:calc(100vw - 32px)!important;flex:none!important;gap:8px!important;}
html[data-home-site][data-touch-layout] .home-screen .search-expander > .search-circle {width:var(--home-corner)!important;height:var(--home-corner)!important;flex:0 0 var(--home-corner)!important;order:0!important;}
html[data-home-site][data-touch-layout] .home-screen .search-expander > .search-form[hidden] {display:none!important;}
html[data-home-site][data-touch-layout] .home-screen.search-open .search-expander > .search-form:not([hidden]) {display:flex!important;position:static!important;flex:0 1 auto!important;min-width:0!important;order:1!important;margin:0!important;}
html[data-home-site][data-touch-layout="portrait"] .home-screen.search-open .search-expander > .search-form:not([hidden]) {width:min(540px,calc(100vw - var(--home-corner) - 42px))!important;}
html[data-home-site][data-touch-layout] .home-screen .header-hub .header-slider-track {box-sizing:border-box!important;width:100%!important;max-width:none!important;white-space:nowrap!important;}
html[data-home-site][data-touch-layout] .home-screen .header-hub .header-slider-track .brand {flex-shrink:0!important;}

/* Portrait hotfix: never display the joystick container or standalone L/R buttons. */
html[data-home-site="search"][data-touch-layout="portrait"] body.home-screen :is(.console-controls,.stick,[data-stick],.world-controls > [data-rotate]) {display:none!important;visibility:hidden!important;pointer-events:none!important;}
/* The ticker is a fixed, bottom-only sibling of the homepage, never a search-row item. */
html[data-home-site="search"][data-touch-layout] body.home-screen > .living-ticker {
 position:fixed!important;inset:auto calc(var(--home-stick) + 32px) max(14px,env(safe-area-inset-bottom))!important;
 width:auto!important;max-width:800px!important;margin:0 auto!important;
}
html[data-home-site="search"][data-touch-layout="portrait"] body.home-screen > .living-ticker {left:12px!important;right:12px!important;}
html[data-home-site="search"][data-touch-layout] body.home-screen > .living-ticker[hidden],
html[data-home-site="search"][data-touch-layout] body.home-screen:is(.search-open,.results-open,.information-open) > .living-ticker,
html[data-home-site="search"][data-touch-layout] body.home-screen:has(#search-input:focus) > .living-ticker {display:none!important;visibility:hidden!important;pointer-events:none!important;}
