/* BIBLIAGAME 2.3: viewport-native full-bleed mode. No filler, bars, or blurred extensions. */
:root{--bg-app-height:100dvh}
html:has(.legado-root),body.legado-game-body{width:100%!important;max-width:100%!important;height:100%!important;margin:0!important;padding:0!important;overflow:hidden!important;background:#092b57!important}
.legado-root{width:100%!important;height:var(--bg-app-height)!important;min-height:0!important;max-height:none!important;min-width:0!important;max-width:none!important}
.legado-root:fullscreen,.legado-root:-webkit-full-screen{width:100vw!important;height:100vh!important;inset:0!important}
.bg-entry,.bg-mobile{width:100%;height:100%;max-width:none!important;max-height:none!important}
.bg-entry{background:#0a315a!important}
.bg-entry::before{content:none!important;display:none!important}
/* The official raster contains its navigation and lettering: scale the whole canvas and
   identical hit regions together, so no controls are cut off in normal/fullscreen mode. */
.bg-stage{inset:0!important;left:0!important;top:0!important;width:100%!important;height:100%!important;transform:none!important;max-width:none!important;max-height:none!important}
.bg-entry:not(.bg-talking) .bg-stage{animation:bg23-stage-visible .28s ease-out both!important}
@keyframes bg23-stage-visible{from{opacity:.82;filter:brightness(.9)}to{opacity:1;filter:brightness(1)}}
.bg-scene{inset:0!important;width:100%!important;height:100%!important;background-size:100% 100%!important;background-repeat:no-repeat!important}
.bg-hit,.bg-wallet-live,.bg-hit--reader{touch-action:manipulation}
/* Portrait / square / tablets: use the real responsive controls and mobile artwork, rather
   than squeezing the menu text and hit zones into a narrow fixed-aspect image. */
@media(max-width:780px), (min-width:781px) and (max-aspect-ratio:3/2){
 .bg-stage{display:none!important}
 .bg-mobile{display:block!important;inset:0;position:absolute;overflow-y:auto;overflow-x:hidden}
 .bg-mobile-scene{background-position:center top!important;background-size:cover!important}
 .bg-mobile-shell{box-sizing:border-box;max-width:min(690px,100%)!important}
 .bg-mobile-nav{z-index:8}
}
@media(min-width:781px) and (max-aspect-ratio:3/2){
 .bg-mobile-shell{padding-top:clamp(160px,27dvh,280px)!important;padding-bottom:22px!important}
 .bg-mobile-logo{max-height:165px!important;width:min(100%,510px)!important}
 .bg-mobile-modes{gap:13px!important;margin-top:22px!important}
 .bg-mobile-modes button{min-height:100px!important}
 .bg-mobile-actions{top:70px}
}
@media(max-width:780px){
 .bg-mobile-shell{width:100%;max-width:540px!important}
 .bg-mobile-nav{padding-left:max(13px,env(safe-area-inset-left));padding-right:max(13px,env(safe-area-inset-right))}
 .bg-mobile-actions{right:max(12px,env(safe-area-inset-right))}
 .lg-header{padding-left:max(10px,env(safe-area-inset-left))!important;padding-right:max(10px,env(safe-area-inset-right))!important}
 .lg-header .lg-wordmark{min-width:0;flex:0 1 115px;overflow:visible}
 .lg-header .bg-header-logo{width:100%;max-width:115px;object-fit:contain}
 .lg-header-actions{gap:4px;min-width:0}
 .lg-header-actions .lg-circle{width:34px;height:34px;flex:0 0 34px}
}
@media(max-width:370px){
 .lg-header .lg-wordmark{flex-basis:92px!important;max-width:92px!important}
 .lg-header-actions .lg-circle{width:32px;height:32px;flex:0 0 32px}
}
@media(prefers-reduced-motion:reduce){.bg-entry:not(.bg-talking) .bg-stage{animation:none!important}}
/* Stable dimensions when the reader is open and Safari hides/shows toolbars. */
.bgbr{height:var(--bg-app-height,100dvh)!important;min-height:0!important}
.bgbr:fullscreen{height:100vh!important}
/* Native narrator selector + professional recording status. */
.bgbr .bgbr-voice-tools{margin-top:14px;display:flex;align-items:center;gap:9px;flex-wrap:wrap;padding:11px 12px;background:rgba(255,255,255,.55);border:1px solid rgba(117,153,188,.24);border-radius:14px}
.bgbr .bgbr-voice-status{font-size:11px;font-weight:750;color:#2a6284;flex-basis:100%;line-height:1.4}
.bgbr .bgbr-voice-choice{display:flex;align-items:center;gap:8px;flex:1 1 210px;color:#416182;font:700 11px system-ui;min-width:0}
.bgbr .bgbr-voice-choice select{width:100%;max-width:340px;min-width:0;min-height:37px;flex:1;border:1px solid #b8ccdc;background:#fff;color:#153b60;border-radius:10px;padding:6px 9px;font:650 11px system-ui}
.bgbr .bgbr-speed{font-size:11px;white-space:nowrap;min-height:37px;padding:7px 10px}
.bgbr .bgbr-verse.speaking{background:#ffeaaf80;border-left:3px solid #ebb94b;box-shadow:inset 0 0 18px #ffde9430}
.bgbr.bgbr-night .bgbr-voice-tools{background:#244c6e8a;border-color:#6e9cb4}
.bgbr.bgbr-night .bgbr-voice-choice,.bgbr.bgbr-night .bgbr-voice-status{color:#eff9ff}
@media(max-width:420px){.bgbr .bgbr-voice-tools{padding:9px}.bgbr .bgbr-voice-choice{flex:1 1 100%}.bgbr .bgbr-speed{width:100%}}
/* Hide the number baked into the illustration behind the live wallet value. */
@media(min-width:781px) and (min-aspect-ratio:3/2){
 .bg-wallet-live{left:79.05%!important;width:9.75%!important;background:linear-gradient(110deg,#103d68,#18365f)!important}
}
