/* Entry shares the soft, tactile palette of the home screen. */
:root { --desktop-game-width:400px; }
@media(min-width:700px){body.is-playing #game-container{width:min(480px,calc(100dvh * .58));}#game-container{width:var(--desktop-game-width)}}
body.is-playing #dev-fab{top:132px;bottom:auto;opacity:.72}
html,body{background:var(--game-bg,#f8f2e5)}
#game-container{width:100%;height:100vh;height:100dvh;left:50%;top:50%;right:auto;bottom:auto;transform:translate(-50%,-50%)}
@media(min-width:700px){#game-container{width:var(--desktop-game-width)}}
.entry-screen{position:fixed;inset:0;z-index:1000;box-sizing:border-box;width:100%;height:100dvh;display:flex;flex-direction:column;align-items:center;gap:22px;overflow:auto;overscroll-behavior:contain;scrollbar-width:none;padding:max(24px,env(safe-area-inset-top)) max(20px,env(safe-area-inset-right)) max(24px,env(safe-area-inset-bottom)) max(20px,env(safe-area-inset-left));background:#f8f2e5;color:#23484b;font-family:'Nunito',sans-serif;text-align:center}
.entry-screen::-webkit-scrollbar{display:none}.entry-screen[hidden],.entry-actions[hidden],.entry-loading[hidden]{display:none}
.entry-brand{flex:0 0 auto;display:flex;flex-direction:column;justify-content:center;align-items:center;min-width:0;width:100%;max-width:460px;margin:auto 0 0}
.entry-world{display:block;width:clamp(130px,23dvh,240px);height:clamp(130px,23dvh,240px);object-fit:contain;filter:drop-shadow(0 12px 10px #99865b18);animation:entry-float 5s ease-in-out infinite}
.entry-kicker{font-size:10px;letter-spacing:2.5px;font-weight:800;color:#6e9186;margin:8px 0}
.entry-logo{font-size:clamp(34px,10vw,50px);font-weight:1000;letter-spacing:1px;line-height:1;margin:0;color:#153f45}
.entry-tagline{font-size:14px;line-height:1.5;color:#67858b;margin:10px 0 0}
.entry-actions,.entry-loading{box-sizing:border-box;flex:none;width:100%;max-width:420px;margin:0 0 auto;border:1px solid #fffdf7;border-radius:28px;padding:22px;background:#fffefa;box-shadow:0 6px 0 #e8e1d2,0 12px 28px #91816512}
.entry-actions h2{font-size:24px;font-weight:900;line-height:1.2;margin:0 0 6px}.entry-actions>p{font-size:13px;line-height:1.4;color:#637e80;margin:0 0 18px}
.entry-guest{position:relative;display:flex;align-items:center;justify-content:center;gap:12px;width:100%;min-height:66px;padding:9px 14px 13px;border:1px solid #efbd3f;border-radius:18px;background:linear-gradient(#ffdc6c,#ffcf4e);box-shadow:inset 0 2px 0 #ffedaf,inset 0 -5px 0 #dea32c,0 3px 4px #80692c0c;color:#354831;font-family:inherit;cursor:pointer;transition:transform .12s,box-shadow .12s}
.entry-guest-face{display:none}.entry-guest-label{display:grid;gap:1px;line-height:1.15}.entry-guest-label strong{font-size:23px;font-weight:1000;overflow-wrap:anywhere}.entry-guest-label small{font-size:12px;font-weight:700;color:#77602c}
.entry-play-symbol{width:0;height:0;border-left:13px solid #365643;border-top:8px solid transparent;border-bottom:8px solid transparent;flex:none}
.entry-guest:active{transform:translateY(3px);box-shadow:inset 0 -2px 0 #dea32c}.entry-screen button:focus-visible{outline:3px solid #3cae95;outline-offset:3px}
.entry-account-links{display:flex;align-items:center;justify-content:center;gap:4px;margin:10px 0 0}.entry-account-links button{flex:1;min-height:44px;padding:8px 3px;font:800 13px/1.25 'Nunito',sans-serif;color:#327967;background:transparent;border:0;cursor:pointer}.entry-account-links button+button{border-left:1px solid #e5e6da}
.entry-or{display:flex;align-items:center;gap:10px;color:#7d8c84;font-size:11px;margin:7px 0 14px}.entry-or::before,.entry-or::after{content:'';height:1px;background:#e7e8dc;flex:1}
.entry-providers{display:grid;gap:10px}.entry-provider{display:flex;align-items:center;justify-content:center;width:100%;height:50px;padding:0;border-radius:12px;cursor:pointer}.entry-yandex{background:#000;border:0}.entry-yandex img{display:block;width:auto;max-width:100%;height:auto;max-height:50px}.entry-vk{border:1px solid #e1e3e6;background:#fff;color:#000;gap:8px;padding:10px;font:500 16px/24px -apple-system,system-ui,'Helvetica Neue',Roboto,sans-serif}.entry-vk img{flex:none}.entry-provider:active{transform:scale(.985)}
.entry-note{display:block;color:#7c8980;font-size:11px;line-height:1.45;margin:16px 0 0}
.entry-loading{max-width:360px;padding:26px 24px}.entry-fusion{display:flex;justify-content:center;align-items:center;gap:10px;height:50px}.entry-fusion b{display:grid;place-items:center;width:38px;height:44px;clip-path:polygon(50% 0,94% 24%,94% 76%,50% 100%,6% 76%,6% 24%);background:#90dfcb;color:#27594f;font-size:18px;font-weight:900;animation:entry-merge 1.6s ease-in-out infinite}.entry-fusion b:nth-child(2){background:#ffd45c;width:44px;height:50px;animation-delay:.15s}.entry-fusion b:nth-child(3){background:#ff9686;animation-delay:.3s}.entry-loading-title{font-size:21px;font-weight:900;margin:18px 0}
.entry-track{height:16px;border:1px solid #e1ddce;background:#eeeadf;border-radius:20px;padding:3px;box-shadow:inset 0 2px 2px #b4aa8e20}.entry-fill{height:100%;width:5%;border-radius:12px;background:#65c7ac;box-shadow:inset 0 2px 0 #b1ead5;transition:width .3s ease}.entry-load-meta{display:flex;justify-content:space-between;gap:12px;margin-top:10px;font-size:12px;font-weight:800;color:#668176}.entry-tip{font-size:12px;line-height:1.6;color:#7b8c83;margin:22px 0 0}
.entry-message{position:fixed;z-index:2;bottom:max(24px,env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);box-sizing:border-box;width:calc(100% - 40px);max-width:390px;padding:16px 20px;border:1px solid #dfd6be;border-radius:18px;background:#fff9e7;color:#5d634c;font-size:14px;line-height:1.45;box-shadow:0 8px 30px #54614830}.entry-message:not(.is-visible),.entry-message:empty{display:none}
.entry-screen.is-ready .entry-actions{animation:entry-reveal .3s both}.entry-screen.is-leaving{opacity:0;transition:opacity .25s;pointer-events:none}
@keyframes entry-float{50%{transform:translateY(-5px) rotate(1deg)}}@keyframes entry-merge{50%{transform:translateY(-5px) scale(1.07)}}@keyframes entry-reveal{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
@media(min-width:1200px) and (hover:hover) and (pointer:fine){.entry-screen{width:480px;left:50%;right:auto;transform:translateX(-50%);box-shadow:0 0 70px #6f725015}}
@media(max-height:740px) and (orientation:portrait){.entry-screen{gap:14px;padding-top:16px;padding-bottom:16px}.entry-world{width:120px;height:120px}.entry-kicker{display:none}.entry-logo{font-size:clamp(34px,10vw,44px)}.entry-tagline{font-size:12px;margin-top:6px}.entry-actions{padding:16px 18px}.entry-actions h2{font-size:22px}.entry-actions>p{font-size:12px;margin-bottom:12px}.entry-note{margin-top:12px}.entry-brand{flex:0 0 auto}}
@media(orientation:landscape) and (max-height:700px){.entry-screen{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:center;gap:24px;padding:16px max(24px,env(safe-area-inset-right)) 16px max(24px,env(safe-area-inset-left));width:100%;left:0;transform:none}.entry-brand{position:sticky;top:16px;align-self:start;margin:auto;min-height:calc(100dvh - 32px)}.entry-world{width:clamp(100px,38dvh,210px);height:clamp(100px,38dvh,210px)}.entry-logo{font-size:44px}.entry-kicker{font-size:9px}.entry-actions,.entry-loading{margin:auto;padding:16px;max-width:420px}.entry-actions h2{font-size:21px}.entry-actions>p{font-size:12px;margin-bottom:10px}.entry-guest{min-height:56px}.entry-account-links{margin-top:4px}.entry-or{margin:2px 0 9px}.entry-providers{gap:8px}.entry-provider{height:46px}.entry-note{margin-top:10px}.entry-tagline{font-size:12px}}
@media(prefers-reduced-motion:reduce){.entry-screen,.entry-screen *{animation:none!important;transition:none!important}}
@media(orientation:landscape) and (max-height:420px){.entry-actions>.entry-note{display:none}.entry-guest{padding:6px 12px 9px}.entry-guest-label strong{font-size:21px}.entry-actions>p{margin-bottom:8px}.entry-brand{margin:0;top:16px}}
