/* BIBLIAGAME 1.5.0 — Official reference-aligned splash + mobile responsive system.
 * Keep functional game modules unchanged. The reference artwork contains baked-in desktop labels.
 * All areas have semantic button overlays; in mobile, separate real text/buttons are rendered. */
:root{--bg-cobalt:#082f61;--bg-gold:#ffbf28;--bg-ivory:#fff9ef}
.legado-root[data-view="welcome"] .lg-header,
.legado-root[data-view="home"] .lg-header,
.legado-root[data-view="intro-playing"] .lg-header{display:none!important}
/* Brand visible in all actual gameplay screens. */
.lg-header .lg-wordmark{max-width:234px;min-width:0;padding:0!important;flex:0 0 auto}
.lg-header .bg-header-logo{display:block;object-fit:contain;width:clamp(128px,16vw,205px);max-height:74px;filter:drop-shadow(0 5px 10px #061b3877)}
.lg-header .lg-mv-nav{gap:clamp(8px,2vw,27px)}
.lg-header .lg-mv-nav button{font:750 clamp(9px,.75vw,12px)/1.2 var(--sans);text-transform:uppercase;letter-spacing:.2px}
.lg-header .lg-mv-nav button:focus-visible{outline:2px solid #ffd479;outline-offset:5px}
.lg-achievements{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px;margin-top:22px}
.lg-achievements article{padding:21px;background:#f1f5fa;border:1px solid #dce6f0;border-radius:16px}
.lg-achievements article span{color:#315cf6;font-size:10px;letter-spacing:1.2px;font-weight:800}
.lg-achievements article h3{font-size:24px;color:#112342;margin:7px 0 8px}
.lg-achievements article p{color:#5f6f8c;font-size:12px}
.lg-achievements article strong{color:#8e540c}
/* Unaltered artwork from the client, at full-bleed 1672:941 ratio. */
.bg-entry{position:absolute;inset:0;z-index:2;isolation:isolate;overflow:hidden;background:#082a51;color:#fff;font-family:var(--sans)}
.bg-stage{position:absolute;left:50%;top:50%;width:max(100vw,177.6833dvh);height:max(100dvh,56.2799vw);transform:translate(-50%,-50%);z-index:0}
.bg-scene{position:absolute;inset:0;background-image:var(--bg-desktop);background-size:100% 100%;background-position:center;pointer-events:none}
.bg-visually-hidden{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
.bg-hit{position:absolute;z-index:2;padding:0;margin:0;border:1px solid transparent;border-radius:8px;background:transparent;color:transparent;cursor:pointer;font-size:1px;overflow:visible;touch-action:manipulation}
.bg-hit:hover,.bg-hit:focus-visible{background:rgba(255,194,55,.058);border-color:rgba(255,205,95,.65);box-shadow:0 0 22px 5px rgba(254,175,27,.3),inset 0 0 19px rgba(255,230,179,.08)}
.bg-hit:focus-visible{outline:3px solid #fff3bf;outline-offset:3px}
.bg-hit:active{transform:scale(.99)}
.bg-hit--nav-home{left:41.4%;top:2%;width:7.0%;height:6.3%;border-radius:6px}
.bg-hit--nav-worlds{left:49.7%;top:2%;width:7.3%;height:6.3%;border-radius:6px}
.bg-hit--nav-ranking{left:57.7%;top:2%;width:9.5%;height:6.3%;border-radius:6px}
.bg-hit--nav-achievements{left:67.2%;top:2%;width:8.2%;height:6.3%;border-radius:6px}
.bg-hit--wallet{left:79.1%;top:1.6%;width:8.2%;height:7%;border-radius:24px}
.bg-wallet-live{position:absolute;z-index:3;left:79.5%;top:2.1%;width:8.0%;height:6.5%;display:flex;align-items:center;justify-content:center;gap:9%;border:1px solid #b6ddff69;border-radius:28px;color:#fff;background:linear-gradient(100deg,#0c3764,#11345e);box-shadow:inset 0 0 12px #6abaf92b;cursor:pointer;min-width:0;overflow:hidden}
.bg-wallet-live span{display:grid;place-items:center;width:37%;aspect-ratio:1;color:#a96700;background:linear-gradient(#ffea67,#ffad00);border:2px solid #fff5bd;border-radius:50%;font-size:clamp(12px,1.7vw,25px);box-shadow:0 0 10px #ffe1508a}
.bg-wallet-live strong{font-size:clamp(12px,1.18vw,19px);font-family:var(--sans);font-weight:850}
.bg-wallet-live:hover,.bg-wallet-live:focus-visible{outline:2px solid #ffe6a0;outline-offset:2px}
.bg-hit--audio{left:88.9%;top:1.6%;width:4.6%;height:7%;border-radius:14px}
.bg-hit--fullscreen{left:93.7%;top:1.6%;width:4.7%;height:7%;border-radius:14px}
.bg-hit--start{left:47.5%;top:57.2%;width:33.0%;height:10.2%;border-radius:40px;transition:box-shadow .2s ease,transform .15s ease}
.bg-hit--start:hover{box-shadow:0 0 38px 11px rgba(255,193,34,.65),inset 0 0 10px rgba(255,255,255,.2)}
.bg-hit--skip{left:54.1%;top:68.2%;width:23%;height:6.8%;border-radius:8px}
.bg-hit--practice{left:43.3%;top:76.3%;width:13.5%;height:15.7%;border-radius:18px}
.bg-hit--local{left:56.3%;top:76.3%;width:15.4%;height:15.7%;border-radius:18px}
.bg-hit--online{left:72.4%;top:76.3%;width:22%;height:15.7%;border-radius:18px}
.bg-desktop-speaking{position:absolute;left:47.5%;top:57%;width:33%;height:12%;z-index:3;display:flex;align-items:center;justify-content:center;pointer-events:none;border-radius:36px;background:linear-gradient(115deg,#ffdb5c,#ffab05);box-shadow:0 0 35px #ffc73a9c;color:#112342}
.bg-narration{width:95%;height:88%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;font-size:clamp(10px,1.1vw,19px);font-weight:900;text-align:center}
.bg-sound-bars{display:flex;align-items:center;gap:3px;height:16px}
.bg-sound-bars i{height:8px;width:3px;background:currentColor;border-radius:3px;animation:bg-bars .55s ease-in-out infinite alternate}
.bg-sound-bars i:nth-child(2),.bg-sound-bars i:nth-child(4){animation-delay:-.3s}.bg-sound-bars i:nth-child(3){animation-delay:-.12s}
.bg-narration-line{display:block;width:70%;height:3px;border-radius:5px;background:#11234244;overflow:hidden}
.bg-narration-line>span{display:block;width:0%;height:100%;background:#112342;transition:width .17s linear}
@keyframes bg-bars{from{height:4px}to{height:16px}}
.bg-mobile{display:none}
/* Hide the WebGL canvas only during menu, keeping the engine lifecycle and game state intact. */
.legado-root[data-view="welcome"] #lg-canvas,.legado-root[data-view="home"] #lg-canvas,.legado-root[data-view="intro-playing"] #lg-canvas{visibility:hidden}
.legado-root[data-view="welcome"] .lg-film,.legado-root[data-view="home"] .lg-film,.legado-root[data-view="intro-playing"] .lg-film{visibility:hidden}
.legado-root.lg-voice-ending .bg-entry{opacity:1;filter:none;transition:none}
@media(max-width:900px) and (min-width:781px){
 .lg-header .lg-mv-nav{display:none}
}
@media(max-width:780px), (min-width:781px) and (max-aspect-ratio:3/2){
 .bg-stage{display:none}
 .bg-mobile{position:absolute;inset:0;display:block;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;background:#092648;-webkit-overflow-scrolling:touch}
 .bg-mobile-scene{position:absolute;inset:0;min-height:100%;pointer-events:none;background-image:var(--bg-mobile);background-position:center top;background-size:cover;background-repeat:no-repeat;filter:saturate(1.12)}
 .bg-mobile-vignette{position:absolute;inset:0;min-height:100%;pointer-events:none;background:linear-gradient(180deg,#09254657 0%,#06284e06 17%,#082f5859 32%,#071f40de 44%,#061b38fa 57%,#061b38 100%)}
 .bg-mobile-nav{position:sticky;top:0;z-index:5;display:flex;align-items:center;justify-content:space-between;gap:5px;padding:12px 16px;background:linear-gradient(180deg,#062747ef,#06274740);min-height:51px;padding-top:max(11px,env(safe-area-inset-top))}
 .bg-mobile-nav button{background:transparent;border:0;color:#edf6ff;font:700 clamp(9px,2.55vw,12px) var(--sans);padding:9px 3px;letter-spacing:.1px}
 .bg-mobile-nav button:first-child{color:#ffd34e;border-bottom:2px solid #ffd34e}
 .bg-mobile-nav button:focus-visible{outline:2px solid #ffd34e;outline-offset:2px}
 .bg-mobile-shell{position:relative;z-index:2;display:flex;flex-direction:column;align-items:center;text-align:center;max-width:530px;min-height:calc(100dvh - 54px);margin:auto;padding:clamp(235px,38dvh,355px) 16px max(16px,env(safe-area-inset-bottom));}
 .bg-mobile-logo{display:block;width:min(100%,430px);height:auto;max-height:126px;object-fit:contain;filter:drop-shadow(0 4px 17px #051a36c7)}
 .bg-mobile-tagline{margin:1px 0 7px;color:#e8f7ff;font-size:clamp(8px,2.25vw,11px);font-weight:900;letter-spacing:.21em;line-height:1.4;text-shadow:0 2px 7px #071f3e}
 .bg-mobile-lead{font-weight:750;font-size:clamp(14px,3.6vw,18px);line-height:1.42;margin:5px 0 15px;color:#fff;text-shadow:0 2px 9px #092747}
 .bg-mobile-lead strong{color:#ffd24d}
 .bg-mobile-play{width:100%;min-height:58px;border-radius:14px;border:1px solid #ffe994;color:#091b34;background:linear-gradient(180deg,#fff174,#ffc31a 60%,#f09d01);box-shadow:0 5px 0 #bc6b00,0 0 22px #ffc52b80;font:900 clamp(13px,3.6vw,17px) var(--sans);letter-spacing:-.1px;transition:transform .18s}
 .bg-mobile-play span{font-size:18px;margin-right:11px}
 .bg-mobile-play:active{transform:translateY(3px)}
 .bg-mobile-skip{font-weight:800;letter-spacing:.9px;font-size:10px;color:#f2f8ff;background:transparent;border:0;margin:8px 0 5px;padding:12px}
 .bg-mobile-skip span{margin-left:5px;color:#ffce43}
 .bg-mobile-modes{display:grid;width:100%;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;margin-top:auto;padding-top:16px}
 .bg-mobile-modes button{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:4px;min-width:0;min-height:102px;padding:8px 2px;border:1px solid #ffffff20;border-radius:13px;background:linear-gradient(180deg,#18365a4d,#0c274dd9);color:#effbff;transition:background .18s,transform .18s}
 .bg-mobile-modes button:active{transform:scale(.98)}
 .bg-mode-icon{width:34px;height:34px;display:grid;place-items:center;margin-bottom:1px;filter:drop-shadow(0 0 9px currentColor)}
 .bg-mode-icon svg{width:32px;height:32px;display:block}
 .bg-mode-practice{color:#24ddff}.bg-mode-local{color:#d694ff}.bg-mode-online{color:#45e9b8}
 .bg-mobile-modes strong{font:900 clamp(9px,2.6vw,12px) var(--sans);letter-spacing:-.25px}
 .bg-mobile-modes small{font:600 clamp(8px,2.2vw,10px) var(--sans);color:#b8cee6}
 .bg-mobile-actions{position:absolute;right:12px;top:65px;z-index:4;display:flex;gap:6px}
 .bg-mobile-actions button{display:flex;justify-content:center;align-items:center;gap:4px;min-width:34px;height:32px;padding:0 9px;color:white;background:#0c2f57b0;border:1px solid #b2d4f678;border-radius:12px;font-weight:900}
 .bg-mobile-actions button:first-child{color:#ffc83d}
 .bg-mobile-speaking{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:3px;width:100%;min-height:58px;background:linear-gradient(160deg,#ffec88,#ffc02b);border-radius:14px;color:#102641;font-size:12px;font-weight:900;box-shadow:0 0 26px #ffc42b8f}
 .lg-header .bg-header-logo{width:120px;max-height:50px}
 .lg-header .lg-mv-nav{display:none}
 .lg-achievements{grid-template-columns:1fr}
}
@media(max-width:380px){.bg-mobile-shell{padding-top:clamp(214px,36dvh,300px)}.bg-mobile-play{min-height:52px}.bg-mobile-modes button{min-height:91px}.bg-mobile-lead{font-size:13px}}
@media(max-height:690px) and (max-width:780px){.bg-mobile-shell{padding-top:210px}.bg-mobile-logo{max-height:98px}.bg-mobile-modes button{min-height:86px}}
@media(prefers-reduced-motion:reduce){.bg-entry *{animation:none!important;transition:none!important}.bg-hit:hover{transform:none}}

/* Mundo selector: actual scenario art already shipped in the theme. */
.bg-worlds-panel{max-width:1200px}
.bg-worlds-group{margin-top:22px}
.bg-worlds-group h3{color:#2858b8;font:900 11px var(--sans);letter-spacing:1.7px;margin:0 0 10px}
.bg-worlds-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px}
.bg-world-item{min-width:0;overflow:hidden;border:1px solid #dce7f0;border-radius:15px;background:white;box-shadow:0 6px 15px #08234e0b}
.bg-world-item img{width:100%;aspect-ratio:4/3;object-fit:cover;display:block;background:#dceefa}
.bg-world-item div{padding:10px 12px 13px;display:grid;gap:2px}
.bg-world-item strong{font-size:14px;color:#112342}
.bg-world-item small{color:#5f6f8c;font-size:10px}
@media(max-width:930px){.bg-worlds-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:540px){.bg-worlds-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.bg-world-item strong{font-size:12px}.bg-world-item small{font-size:9px}}
