/* Flat Meadow launch gate. Same palette/material as the in-game quick action. */
.launch-screen{position:absolute;inset:0;z-index:3;overflow:hidden;color:#fff;background:#193658 url('/play/demo/meadow.webp') center/cover no-repeat;font-family:Arial,sans-serif;transition:opacity .16s ease;}
.launch-screen:before{content:"";position:absolute;inset:0;background:rgba(5,13,25,.38);pointer-events:none;}
.launch-screen[hidden],#launch-brand[hidden],#launch-error[hidden],#launch-progress[hidden]{display:none;}
.launch-intro{position:absolute;inset:max(18px,env(safe-area-inset-top)) 20px auto;text-align:center;transition:opacity .2s ease,transform .5s ease,visibility 0s linear .2s;}
.launch-title{display:flex;justify-content:center;}
.launch-title img{display:block;width:205px;height:auto;}
.launch-slogan{font-size:18px;line-height:1.3;margin:0 auto 20px;max-width:650px;color:#f4f7fa;}
#launch-button,#launch-retry{display:block;margin:0 auto;border:1px solid #9b76ae;border-radius:7px;padding:12px 28px;min-width:290px;min-height:65px;background:#8754a0;color:#fff;box-shadow:0 2px 1px #503260;font:400 30px/1.2 TetcolorBiko,Arial,sans-serif;cursor:pointer;}
.launch-screen:lang(ru) #launch-button,.launch-screen:lang(ru) #launch-retry{font-family:Arial,sans-serif;}
#launch-button:active,#launch-retry:active{background:#7c4d93;border-color:#8f6ca0;box-shadow:0 1px 1px #503260;}
.launch-screen button:focus-visible,.launch-screen input:focus-visible{outline:2px solid #fff;outline-offset:5px;}
.launch-remember{display:flex;align-items:center;justify-content:center;gap:9px;font-size:13px;color:#e0e5ed;margin:14px auto 0;max-width:460px;cursor:pointer;}
.launch-remember input{width:16px;height:16px;flex-shrink:0;accent-color:#8754a0;margin:0;}
#mobl-loader.launch-screen .tetcolor-loading-demo{inset:300px 24px 78px;gap:40px;transition:top .55s ease;}
#mobl-loader.launch-screen .tetcolor-loading-demo canvas{max-height:100%;}
#mobl-loader.launch-screen .tetcolor-loading-explanation{max-width:310px;}
#mobl-loader.launch-screen .tetcolor-loading-family{font-size:23px;}
#mobl-loader.launch-screen .tetcolor-loading-lesson{font-size:23px;line-height:1.3;}
#mobl-loader.launch-screen .tetcolor-loading-detail{font-size:16px;line-height:1.45;}
#mobl-loader.launch-screen #launch-brand{background:transparent;pointer-events:none;}
#mobl-loader.launch-screen .flames-loader-composition{top:140px;transform:translateX(-50%);gap:14px;transition:top .55s ease;}
#mobl-loader.launch-screen .flames-loader-artwork{width:66px;height:66px;}
#mobl-loader.launch-screen .flames-loader-copy{font-size:13px;}
.launch-loading{display:none;position:absolute;top:160px;left:0;right:0;text-align:center;font-size:22px;}
.launch-screen[data-phase="loading"] .launch-intro{opacity:0;transform:translateY(-12px);pointer-events:none;visibility:hidden;}
.launch-screen[data-phase="loading"] .launch-loading{display:block;}
.launch-screen.has-brand .launch-loading{display:none;}
#mobl-loader.launch-docked .flames-loader-composition{top:max(24px,env(safe-area-inset-top));}
#mobl-loader.launch-docked .tetcolor-loading-demo{top:126px;}
#launch-progress{position:absolute;bottom:0;left:0;width:100%;height:5px;border:0;border-radius:0;appearance:none;background:#ffffff22;color:#d9e8f7;z-index:60;}
#launch-progress::-webkit-progress-bar{background:#ffffff22;}
#launch-progress::-webkit-progress-value{background:#d9e8f7;}
#launch-progress::-moz-progress-bar{background:#d9e8f7;}
#launch-error{position:absolute;inset:25% 24px auto;text-align:center;max-width:520px;margin:auto;}
#launch-error p{font-size:18px;line-height:1.5;margin-bottom:24px;}
.launch-screen[data-phase="error"] .launch-intro{display:none;}
.launch-noscript{position:absolute;z-index:4;color:white;bottom:30%;left:0;right:0;text-align:center;}
.game-screen:has(.launch-screen:not([hidden])) .game-actions{z-index:4;}
@media(max-aspect-ratio:9999/10000){
 .launch-intro{top:max(24px,env(safe-area-inset-top));inset-inline:18px;}
 .launch-slogan{font-size:16px;max-width:355px;margin:2px auto 24px;}
 #launch-button{font-size:29px;min-height:61px;min-width:280px;padding:12px 22px;}
 .launch-remember{font-size:12px;margin-top:14px;}
 #mobl-loader.launch-screen .tetcolor-loading-demo{inset:310px 14px 78px;gap:17px;}
 #mobl-loader.launch-screen .tetcolor-loading-demo canvas{max-height:calc(100% - 126px);}
 #mobl-loader.launch-screen .tetcolor-loading-explanation{flex-basis:109px;max-width:340px;}
 #mobl-loader.launch-screen .tetcolor-loading-family{font-size:19px;margin-bottom:7px;}
 #mobl-loader.launch-screen .tetcolor-loading-lesson{font-size:19px;margin-bottom:7px;}
 #mobl-loader.launch-screen .tetcolor-loading-detail{font-size:13px;line-height:1.4;}
 #mobl-loader.launch-screen .flames-loader-artwork{width:48px;height:48px;}
 #mobl-loader.launch-screen .flames-loader-copy{font-size:11px;}
 #mobl-loader.launch-docked .tetcolor-loading-demo{top:126px;}
}
@media(max-height:540px) and (min-aspect-ratio:1/1){
 .launch-intro{right:53%;top:50%;transform:translateY(-50%);}
 .launch-title img{width:165px;}
 .launch-slogan{font-size:14px;margin:0 auto 16px;}
 #launch-button{min-width:200px;min-height:54px;font-size:26px;}
 .launch-remember{font-size:12px;}
 #mobl-loader.launch-screen .tetcolor-loading-demo{inset:20px 16px 64px 49%;gap:14px;}
 #mobl-loader.launch-screen .tetcolor-loading-lesson{font-size:18px;}
 #mobl-loader.launch-screen .tetcolor-loading-detail{font-size:13px;}
 #mobl-loader.launch-docked .tetcolor-loading-demo{top:90px;left:24px;}
}
@media(max-height:740px) and (max-aspect-ratio:9999/10000){
 .launch-intro{top:12px;}.launch-title img{width:155px;}.launch-slogan{font-size:14px;margin-bottom:12px;}
 #launch-button{min-height:54px;font-size:26px;}.launch-remember{margin-top:11px;}
 #mobl-loader.launch-screen .tetcolor-loading-demo{top:260px;bottom:68px;}
 #mobl-loader.launch-docked .tetcolor-loading-demo{top:100px;}
}
@media(prefers-reduced-motion:reduce){.launch-screen *{transition:none!important;animation:none!important;}}
.launch-screen[data-phase="complete"]{opacity:0;pointer-events:none;}
