.brand-title{display:flex;align-items:center;font-size:31px;color:#0768df}.brand-title span{font-size:31px;color:#f39006}.lion-logo{border-radius:20px}.hero-lion{border-radius:30px}
#play-layout{display:contents}#mouse-guide{display:none}
body{--guide-width:100px}
body.game-active #play-layout{display:flex;flex:1;min-height:0;width:100%;height:100vh;height:100dvh;overflow:hidden}
body.game-active #game-stage{flex:1;min-width:0;width:calc(100% - var(--guide-width));height:100%;}
body.game-active #mouse-guide{display:flex;flex:0 0 var(--guide-width);width:var(--guide-width);box-sizing:border-box;align-items:center;justify-content:center;padding:80px 6px 12px;background:#e2f7ff;border-left:2px solid white}
.mouse-guide-card{width:100%;display:flex;align-items:center;flex-direction:column;gap:7px;padding:10px 2px;border:2px solid white;border-radius:18px;background:#fff;text-align:center;box-sizing:border-box;color:#07528d}
.mouse-guide-picture{display:block;width:100%;aspect-ratio:1;background:url('../assets/mouse-guides.png') var(--guide-position) center/300% 100% no-repeat;border-radius:12px}
.mouse-guide-card strong{font-size:16px}.mouse-guide-card>span:last-child{font-size:12px;font-weight:700;line-height:1.3}
.color-target.color-pending,.color-target.color-pending>*{stroke:#ef6c00!important;stroke-width:7px;stroke-dasharray:8 4}
#p-arco{pointer-events:all}
body.game-active .game-header{padding-right:14px}
body.game-active .puzzle-workspace{--puzzle-size:min(calc((100vw - var(--guide-width) - 60px)/2),calc(100vh - 130px),520px)}
@media(max-width:800px){body{--guide-width:80px}.mouse-guide-card strong{font-size:13px}.mouse-guide-card>span:last-child{font-size:11px}}
@media(max-width:650px) and (orientation:portrait){body.game-active .puzzle-workspace{--puzzle-size:min(calc(100vw - var(--guide-width) - 35px),calc((100vh - 150px)/2))}}

.app-header{justify-content:space-between;flex-wrap:wrap;gap:12px;min-height:100px}.header-actions{margin-left:auto}
.level-home{max-width:1180px;margin:0 auto;padding:12px 16px 24px;text-align:center}.level-home h2{font-size:clamp(27px,3vw,44px);color:#06479f;margin:6px 0}.level-home>p{font-size:19px;margin:8px 0 20px;color:#124280}
.level-choices{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}
.level-choice{font-family:inherit;display:flex;align-items:center;flex-direction:column;gap:12px;border:5px solid white;border-radius:32px;padding:14px 15px 20px;color:#144578;background:#fff0a6;cursor:pointer}
.level-green{background:#c8f5c7}.level-blue{background:#beeaff}.level-drawing{display:block;width:100%;max-width:260px;aspect-ratio:1;background-image:url('../assets/mouse-guides.png');background-size:300% 100%;border:3px solid white;border-radius:25px;background-repeat:no-repeat}
.level-choice strong{font-size:clamp(22px,2.3vw,31px)}.level-choice>span:not(.level-drawing){font-size:17px}.level-choice b{display:block;width:90%;padding:11px;border:3px solid white;border-radius:22px;background:#fff;font-size:23px;color:#084b9d}.level-choice:hover{border-color:#6430b1}.back-levels{margin-top:12px;padding:10px 20px;border:3px solid white;border-radius:18px;background:#ffe079;color:#694213;font:800 17px inherit;cursor:pointer}
@media(max-height:650px) and (min-width:750px){.level-drawing{max-width:155px}.level-choice{gap:6px;padding:10px}.level-home>p{margin-bottom:10px}}
@media(max-width:700px){.level-choices{grid-template-columns:1fr;max-width:400px;margin:auto}.level-drawing{max-width:150px}.header-actions{margin:auto}}

/* Clear pictorial navigation for early readers. */
.pictorial-nav,.back-levels.pictorial-nav{display:inline-flex;flex-direction:column;align-items:center;justify-content:center;gap:0;width:78px;min-width:78px;height:78px;padding:3px 7px;border:3px solid white;border-radius:22px;cursor:pointer;flex-shrink:0;line-height:1;background:linear-gradient(#ffe96a,#ffba19);box-shadow:0 4px 0 #d39109;color:#68400a}
.pictorial-nav svg,.quit-app.pictorial-nav svg{display:block;width:49px;height:49px;flex-shrink:0}
.pictorial-nav span{font:800 14px/1.1 'Segoe UI',sans-serif;max-width:none}
.quit-app.pictorial-nav{background:linear-gradient(#ff6973,#ed183f);box-shadow:0 4px 0 #ae1330;color:white}
.pictorial-nav:focus-visible{outline:4px solid #6735c4;outline-offset:4px}
@media(max-height:600px){.pictorial-nav,.back-levels.pictorial-nav{width:66px;min-width:66px;height:66px}.pictorial-nav svg,.quit-app.pictorial-nav svg{width:39px;height:39px}}

/* One back control, anchored to the viewport and clear of the activities. */
.lobby-screen{padding-bottom:110px}
.back-levels.pictorial-nav{position:fixed;right:22px;bottom:20px;right:max(22px,env(safe-area-inset-right));bottom:max(20px,env(safe-area-inset-bottom));z-index:100;box-sizing:border-box;width:88px;min-width:88px;height:88px;margin:0;padding:6px;border:4px solid white;border-radius:24px;overflow:visible;transform:none;background:linear-gradient(#fff07b,#ffc12c);box-shadow:0 5px 0 #bf8206;gap:2px}
.back-levels.pictorial-nav svg{width:54px;height:54px;display:block;flex:0 0 54px;overflow:visible}
.back-levels.pictorial-nav span{font:800 15px/17px 'Segoe UI',sans-serif;color:#68400a}
.back-levels.pictorial-nav:active{transform:translateY(2px)}
body.game-active .back-levels{display:none}

.video-help-button{display:flex;align-items:center;gap:8px;padding:7px 15px;border:3px solid white;border-radius:22px;background:linear-gradient(#d1f8ff,#69d5fb);color:#084b91;font:800 18px 'Segoe UI',sans-serif;cursor:pointer;box-shadow:0 4px #259bcd}.video-help-button img{width:52px;height:52px;border-radius:14px}
#click-video-dialog{position:fixed;inset:0;box-sizing:border-box;width:100vw;max-width:none;height:100vh;height:100dvh;max-height:none;margin:0;padding:16px 92px 16px 20px;border:0;background:#e5f8ff;color:#084b91}#click-video-dialog::backdrop{background:#092849dd}.video-lesson{height:100%;display:flex;flex-direction:column;align-items:center;gap:10px}.video-lesson h2{font-size:clamp(22px,3vw,36px);margin:0}.video-lesson video{display:block;flex:1;min-height:0;width:100%;object-fit:contain;background:#10293f;border-radius:20px}.video-lesson p{margin:0;text-align:center;font-size:18px}#replay-click-video{padding:12px 24px;border:3px solid white;border-radius:20px;background:#ffd957;color:#694313;font-weight:800;font-size:19px;cursor:pointer}#close-click-video{position:absolute;right:12px;top:12px}
