.public-simulation { position: fixed; z-index: 999; left: 50%; bottom: 12px; transform: translateX(-50%); display: flex; align-items: center; gap: 12px; max-width: calc(100% - 24px); padding: 8px 12px; border: 1px solid var(--edge-strong); border-radius: 12px; background: var(--sidebar, #111522); color: var(--text); font: 13px Archivo, sans-serif; white-space: nowrap; box-shadow: 0 8px 24px -8px #000; }
.public-simulation strong { font-weight: 650; }
.public-simulation span { color: var(--muted); }
body.public-demo .mode { cursor: pointer; }
body.public-demo .room-placeholder { max-width: 380px; }
@media (max-width: 1100px) { .public-simulation { bottom: calc(76px + env(safe-area-inset-bottom)); gap: 7px; padding: 7px 9px; font-size: 12px; } .public-simulation span { display: none; } .public-simulation .mini { padding-inline: 8px; } }
@media (prefers-reduced-motion: reduce) { .public-simulation { transition: none; } }
.demo-loading { position: fixed; z-index: 1000; inset: 0; display: grid; place-items: center; margin: 0; color: var(--muted); font: 14px Archivo, sans-serif; background: var(--bg, #090b12); transition: opacity .4s ease; }
/* Site sections, at the top of the room view beside its title. On phones the bar
   moves into the menu (main.js). */
.site-bar { position: absolute; z-index: 6; top: 22px; right: calc(var(--control-width, 380px) + 64px); display: flex; gap: 2px; padding: 4px; border: 1px solid var(--edge); border-radius: 999px; background: var(--glass, rgba(17, 21, 34, .6)); -webkit-backdrop-filter: var(--blur, blur(16px)); backdrop-filter: var(--blur, blur(16px)); box-shadow: var(--sheen, none), 0 10px 30px -14px #000; font: 600 13px Archivo, sans-serif; transition: right var(--slow, .5s) var(--ease, ease), opacity .3s ease, transform .3s ease; animation: site-bar-in .6s var(--ease, ease) both; }
.site-bar a { padding: 7px 14px; border-radius: 999px; color: var(--muted); text-decoration: none; white-space: nowrap; transition: color .2s, background .2s; }
.site-bar a:hover { color: var(--text); background: var(--surface-hover, rgba(255, 255, 255, .06)); }
.site-bar a[aria-current] { color: var(--text); background: rgba(255, 255, 255, .1); }
body:not([data-route="room"]):not([data-route="scenes"]):not([data-route="effects"]):not([data-route="sync"]) .site-bar { right: 32px; }
body.editing .site-bar, body.watching .site-bar { opacity: 0; transform: translateY(-12px); pointer-events: none; }
@keyframes site-bar-in { from { opacity: 0; transform: translateY(-10px); } }
.nav-tools .site-bar { position: static; justify-content: space-between; margin: 0 0 12px; animation: none; }
.nav-tools .site-bar a { flex: 1; text-align: center; padding: 10px 8px; }
@media (prefers-reduced-motion: reduce) { .site-bar { transition: none; animation: none; } }

/* Moving between Dashboard, Explore and Real Projects: the old page fades back,
   the new one rises in, and the site links glide between their positions. */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: site-page-out .3s cubic-bezier(.4, 0, 1, 1) both; }
::view-transition-new(root) { animation: site-page-in .5s cubic-bezier(.16, 1, .3, 1) .05s both; }
::view-transition-group(site-nav) { animation-duration: .5s; animation-timing-function: cubic-bezier(.16, 1, .3, 1); }
@keyframes site-page-out { to { opacity: 0; transform: scale(.985); filter: blur(6px); } }
@keyframes site-page-in { from { opacity: 0; transform: translateY(16px); } }
/* Browsers without cross-page transitions get the same fade from site-transition code */
html.page-entering body { animation: site-page-fade .45s ease both; }
@keyframes site-page-fade { from { opacity: 0; } }
html.page-leaving body { opacity: 0; transition: opacity .24s ease; }
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
  html.page-entering body { animation: none; }
}.site-bar { view-transition-name: site-nav; }
