body.olu-has-tabs {
  --olu-tab-height: calc(68px + env(safe-area-inset-bottom));
  padding-bottom: var(--olu-tab-height);
}
.olu-has-tabs :is(.olu-chat-launcher, .olu-chat-panel) {
  --chat-bottom: calc(var(--olu-tab-height) + 12px);
}
.olu-has-tabs .chat-shell { height: calc(100dvh - var(--olu-tab-height)); }
.olu-has-tabs #chat-compose { padding-bottom: .6rem; }
.olu-tabs, .olu-tab-sheet { box-sizing: border-box; color: #f9eddb; font: 15px system-ui, sans-serif; }
.olu-tabs {
  position: fixed; inset: auto 0 0; z-index: 70; display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr)); align-items: stretch;
  height: var(--olu-tab-height); padding: 0 max(6px, calc((100% - 640px) / 2)) env(safe-area-inset-bottom);
  background: #151b2c; border-top: 1px solid #786e61; box-shadow: 0 -8px 24px #080d1950;
}
.olu-tabs > :is(a, button) {
  display: grid; place-content: center; justify-items: center; gap: 2px; padding: 0; text-align: center;
  background: transparent; color: inherit; border: 0; border-radius: 0;
  text-decoration: none; font: 600 12px system-ui, sans-serif; cursor: pointer;
}
.olu-tabs span { font: 24px/1 Georgia, serif; color: #efd5a1; }
.olu-tab-sheet {
  position: fixed; inset: auto 0 calc(var(--olu-tab-height) + 8px);
  margin: 0 auto; width: min(460px, calc(100% - 24px)); max-height: min(68dvh, 560px);
  padding: 14px; background: #1a2236; border: 1px solid #786e61; border-radius: 22px;
  box-shadow: 0 16px 48px #0008;
}
.olu-tab-sheet::backdrop { background: #080d1999; }
.olu-tab-sheet header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.olu-tab-sheet h2 { margin: 0; font: 24px Georgia, serif; }
.olu-tab-sheet button { min-width: 44px; min-height: 44px; border: 0; border-radius: 12px; color: inherit; background: #2a3650; cursor: pointer; font-size: 22px; }
.olu-tab-links { display: grid; gap: 6px; }
.olu-tab-links a, #olu-home-shortcut {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  min-height: 44px; padding: 8px 14px; border: 1px solid #736751; border-radius: 12px;
  background: #242e44; color: #f9eddb; text-decoration: none;
}
.olu-tabs :focus-visible, .olu-tab-sheet :focus-visible, #olu-home-shortcut:focus-visible { outline: 2px solid #ffe3a6; outline-offset: -3px; }
#olu-home-shortcut { margin: 12px 0; }
#olu-home-shortcut [hidden], #olu-home-legacy[hidden] { display: none !important; }
#universe-settings { padding: 10px; }
#universe-settings:not([open]) { display: none; }
.olu-universe-index.olu-has-tabs .layout { display: block; }
.olu-universe-index.olu-has-tabs .layout > .sidebar,
.olu-universe-index.olu-has-tabs #menuButton { display: none; }
.olu-universe-index.olu-has-tabs .main-area { max-width: 1100px; margin-inline: auto; }
.olu-universe-index .magic-today-stars { text-decoration: none; color: inherit; }
.chat-bar:has(#chat-video-call) h1 { font-size: clamp(1rem, 4.5vw, 1.65rem); }
.chat-page #chat-video-call { font-size: .8rem; padding-inline: .45rem; }
@media (max-width: 420px) {
  .chat-page #chat-video-call span:first-child { display: none; }
  .chat-page .chat-bar { gap: .35rem; padding-inline: .55rem; }
}
.olu-universe-index .magic-home-hero img { aspect-ratio: 16 / 7; max-height: 390px; }
.olu-universe-index .magic-today > div:first-child { min-width: 0; }
.olu-universe-index #v18PersonalStars { display: none; }
@media (max-width: 520px) {
  .olu-universe-index .magic-home-hero img { aspect-ratio: 16 / 10; }
}

.olu-tabs > a { position: relative; }
.olu-tabs > a[aria-current="page"] {
  background: #242e44;
  box-shadow: inset 0 2px #efd5a1;
}
.olu-tabs [data-chat-unread] {
  position: absolute; top: 8px; left: calc(50% + 10px);
  width: 8px; height: 8px; border-radius: 50%;
  background: #ffe3a6;
}
.olu-tab-links h3 {
  margin: 12px 0 2px;
  color: #efd5a1; font-size: .9rem;
}
@media (max-width: 360px) {
  .olu-tabs > :is(a, button) { font-size: 11px; }
}

/* V108: consistent, accessible navigation geometry */
.olu-tabs > :is(a, button) { position: relative; gap: 3px; min-width: 0; min-height: 48px; -webkit-tap-highlight-color: transparent; }
.olu-tabs .olu-tab-icon { display: grid; place-items: center; width: 46px; height: 30px; border-radius: 12px; color: #c6c9d3; }
.olu-tabs .olu-tab-icon svg { display: block; width: 24px; height: 24px; flex-shrink: 0; }
.olu-tabs .olu-tab-label { color: #c6c9d3; font: 600 11px/16px system-ui, sans-serif; white-space: nowrap; }
.olu-tabs > a[aria-current="page"], .olu-tabs > button[data-current] { background: transparent; box-shadow: none; }
.olu-tabs > :is([aria-current="page"], [data-current]) .olu-tab-icon { background: #354052; color: #ffe1a6; }
.olu-tabs > :is([aria-current="page"], [data-current]) .olu-tab-label { color: #ffe1a6; }
.olu-tabs [data-chat-unread] { top: 9px; border: 2px solid #151b2c; box-sizing: content-box; }
.olu-tabs [data-chat-unread][hidden] { display: none !important; }
/* V118: the floating chat must remain accessible as we move between rooms. */
.olu-has-tabs .olu-chat-launcher:not([hidden]) { display: grid !important; }
.olu-has-tabs .olu-chat-launcher[hidden] { display: none !important; }
.olu-has-tabs .olu-chat-panel { z-index: 130; }
.olu-tab-links a[aria-current="page"] { border-color: #ffe1a6; background: #354052; }
.olu-tab-sheet { overscroll-behavior: contain; overflow-y: auto; }
.olu-home-movies { display: flex; align-items: center; gap: 14px; margin: 12px 0; padding: 18px; border: 1px solid #736751; border-radius: 18px; background: linear-gradient(120deg,#28394b,#282239); color: #f9eddb; text-decoration: none; }
.olu-home-movies svg { width: 28px; height: 28px; flex-shrink: 0; color: #efd5a1; }
.olu-home-movies strong, .olu-home-movies small { display: block; }
.olu-home-movies small { margin-top: 4px; color: #c6c9d3; }

/* V119: true HTML fallback for loss of JS/failed assets or stale startup. */
body:has(.olu-tabs-fallback){--olu-tab-height:calc(68px + env(safe-area-inset-bottom));}
body:not(.olu-has-tabs):not(.chat-mini):has(.olu-tabs-fallback){padding-bottom:var(--olu-tab-height);}
body.olu-has-tabs .olu-tabs-fallback,body.chat-mini .olu-tabs-fallback{display:none!important;}
.olu-tabs-fallback {height:var(--olu-tab-height);grid-template-columns:repeat(5,minmax(0,1fr));}
.olu-tabs-fallback .olu-tab-icon{display:grid;place-items:center;}
.olu-tabs-fallback .olu-tab-icon svg{width:24px;height:24px;}
.olu-tabs-fallback .olu-tab-label{color:#c6c9d3!important;}
.olu-tabs-fallback a:focus-visible{outline:2px solid #ffe1a6;outline-offset:-3px;}
@media(max-width:360px){.olu-tabs-fallback .olu-tab-label{font-size:10px;}}
