.game-main{padding-top:17px}.levels{display:flex;gap:9px;margin-bottom:20px}.levels button{flex:1;display:flex;gap:10px;align-items:center;padding:12px 14px;text-align:left;font-size:14px;background:#1b2c44;border:1px solid #ffffff20}.levels button b{font-size:20px;color:var(--purple)}.levels button.active{background:var(--accent);color:#1a2940;border-color:var(--accent)}.levels button.active b{color:#3f3a49}.levels button.done:after{content:'✓';margin-left:auto;color:#9adaaa}.game-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:17px}.game-heading h1{font-size:32px}.game-heading .eyebrow{margin-bottom:6px}.stats{display:flex;align-items:center;gap:17px}.stats>span{font-size:28px;font-weight:bold;color:var(--accent)}.stats small{font-size:12px;color:var(--muted)}.stats button{font-size:13px;padding:9px 12px}.arena{position:relative;height:clamp(350px,49vh,630px);background:url('assets/space.png') center/cover;border:2px solid #6f729d;border-radius:25px;overflow:hidden;isolation:isolate;outline-offset:5px}.scene-shade{position:absolute;inset:0;background:#101a3030;z-index:-1}.arena:focus{border-color:var(--accent)}#mission{position:absolute;inset:0;display:flex;align-items:center;justify-content:center}.start-overlay,.win-overlay{position:absolute;inset:0;background:#111b2bd9;backdrop-filter:blur(6px);z-index:10;display:grid;place-items:center;text-align:center;padding:25px}.start-overlay h2{font-size:34px}.start-overlay p{color:#c6d2e8;font-size:18px}.start-overlay small{display:block;margin-top:18px;color:#90a3bd;font-size:13px}.win-overlay h2{font-size:35px;margin:0}.win-overlay p{font-size:18px;color:#d4dcef}.win-overlay .medal{font-size:66px;display:block;color:#ffe494;animation:medal 1s ease-out}.win-overlay button{margin:8px}.game-message{font-size:18px;font-weight:bold;background:#263d4f;border:1px solid #43606d;color:#d4eee4;border-radius:12px;margin-top:15px;padding:12px 18px;min-height:50px}.game-message.wrong{background:#663f4e;color:#ffdfd4;border-color:#ca807a}.help-row{display:flex;justify-content:space-between;gap:15px;font-size:12px;color:var(--muted);padding:10px 3px}.game-keyboard{max-width:850px;margin:0 auto}.game-keyboard.keyboard{display:block}.game-keyboard .key{height:27px;font-size:11px;box-shadow:0 3px 0 #73859a}.game-keyboard .main{gap:5px;padding:5px}.game-keyboard .key.target{background:var(--accent);outline:2px solid #ffd4ac;box-shadow:0 3px 0 #b3725e,0 0 15px #ff9c7960}.game-foot{display:flex;justify-content:space-between;align-items:center;font-size:11px;color:#7f93ae;margin-top:10px}.game-foot button{font-size:11px;padding:5px 9px;border:0;background:none;color:#7f93ae}.beacon-wrap{text-align:center;width:80%}.mission-tag{display:inline-block;padding:7px 15px;border:1px solid #b7bee266;border-radius:30px;background:#16203ca6;font-size:14px;color:#d7e6ff}.big-key{display:block;margin:18px auto 21px;width:100px;height:95px;background:linear-gradient(#fff8e9,#d6c5ee);border:3px solid white;border-radius:20px;box-shadow:0 11px 0 #8277ab,0 0 40px #ccbaff60;color:#3f3c66;font-size:58px;font-weight:900;line-height:90px;animation:float 2.5s infinite ease-in-out}.beacons{display:flex;gap:13px;justify-content:center}.beacon{width:47px;height:48px;border-radius:13px;background:#222f4ea6;border:1px solid #a8b5d780;display:grid;place-items:center;font:700 22px Arial;color:#9aabcd;transition:all .3s}.beacon.lit{background:#f6d67c;border-color:#fff1c6;color:#4c4059;box-shadow:0 0 22px #ffe381aa;transform:translateY(-7px)}.mission-sub{margin-top:17px;color:#d6e0fa;font-size:16px}.rover-wrap{display:flex;gap:30px;align-items:center}.grid-map{display:grid;grid-template-columns:repeat(5,47px);grid-template-rows:repeat(5,47px);gap:5px;background:#142038b8;padding:10px;border:1px solid #9aace4;border-radius:18px}.cell{border:1px solid #a5b5f333;background:#4c5a9d40;border-radius:8px;position:relative;display:grid;place-items:center;color:#fff0a2;font-size:27px}.cell .gem{animation:float 2s infinite}.cell.collected{background:#8cd9c340}.rover{position:absolute;width:34px;height:34px;background:#e4faf2;border:3px solid #aacfd7;border-radius:12px;box-shadow:0 0 17px #a1edfa;z-index:2;display:grid;place-items:center;font-size:19px;color:#173f56;transition:transform .2s}.rover-help{background:#15223dcc;padding:22px;border-radius:16px;max-width:260px}.rover-help h3{margin:0 0 12px;font-size:24px}.arrow-hint{font-size:33px;color:var(--accent);letter-spacing:8px}.terminal{width:70%;max-width:730px;border:1px solid #8fa6bc;border-radius:17px;overflow:hidden;background:#102033e8;box-shadow:0 15px 30px #0005}.terminal-top{background:#263957;padding:13px 20px;color:#a8c3dc;font-size:13px;display:flex;justify-content:space-between}.terminal-body{padding:30px;text-align:center}.terminal-text{font:42px monospace;letter-spacing:7px;color:#c4f2e1;margin:10px 0 25px;white-space:pre-wrap}.cursor{display:inline-block;width:3px;height:39px;background:#ffd494;vertical-align:middle;animation:blink 1s infinite}.terminal p{color:#d4c1f1;font-size:18px}.inline-key{display:inline-block;min-width:45px;border-radius:8px;padding:6px 12px;background:#f6e9d3;color:#3a3c56;font:700 24px Arial;box-shadow:0 5px 0 #9a8ea3}.launchpad{text-align:center;display:flex;align-items:center;gap:65px}.launch-code{background:#17233bd9;border:1px solid #b8abdf;border-radius:20px;padding:25px}.combo{display:flex;gap:18px;align-items:center;justify-content:center;margin-top:20px}.combo .inline-key{font-size:35px;min-height:65px;padding:12px 20px}.rocket{position:relative;width:64px;height:130px;background:linear-gradient(90deg,#c5cde6,#fff5e4,#c5cde6);border-radius:60% 60% 20% 20%;border:3px solid #fdf9ef;box-shadow:0 0 30px #bdc6ff70;transition:transform .55s}.rocket:before{content:'';position:absolute;top:40px;left:12px;width:32px;height:32px;background:#405386;border:4px solid #b6c8ea;border-radius:50%}.rocket:after{content:'';position:absolute;bottom:-45px;left:15px;width:28px;height:45px;background:linear-gradient(#fff6bd,#ff9970,transparent);clip-path:polygon(0 0,100% 0,50% 100%);animation:flame .3s infinite alternate}.rocket.go{transform:translateY(-220px) scale(.7)}.fuel{display:flex;justify-content:center;gap:12px;margin-top:24px}.fuel i{width:40px;height:9px;background:#486185;border-radius:5px}.fuel i.on{background:#ffcc89;box-shadow:0 0 10px #f0b767}.voyage{width:80%;text-align:center}.sentence{padding:20px 25px;font:clamp(25px,4vw,52px) monospace;background:#15213dd9;border:1px solid #acb9dd;border-radius:20px;margin:18px 0;letter-spacing:6px}.sentence span.typed{color:#9ef0cc}.sentence span.current{color:#ffda97;border-bottom:3px solid #ffda97}.sentence span{color:#8c9bb5;white-space:pre}.flight-track{height:60px;position:relative;margin:15px 50px;border-bottom:2px dashed #a7b4d880}.ship{position:absolute;bottom:0;left:0;font-size:42px;color:#fff1a1;text-shadow:0 0 20px #ffb96f;transition:left .3s}.station{position:absolute;right:-10px;bottom:2px;color:#cfbffa;font-size:35px}.burst{position:absolute;left:50%;top:50%;width:8px;height:8px;border-radius:3px;background:#ffdf87;animation:burst .8s forwards;pointer-events:none}.shake{animation:shake .25s}@keyframes float{0%,100%{transform:translateY(0)}50%{transform:translateY(-7px)}}@keyframes blink{50%{opacity:0}}@keyframes flame{to{height:58px;bottom:-58px}}@keyframes medal{from{transform:scale(.2) rotate(-90deg);opacity:0}to{transform:scale(1);opacity:1}}@keyframes burst{to{transform:translate(var(--dx),var(--dy)) rotate(180deg);opacity:0}}@keyframes shake{25%{transform:translateX(-5px)}75%{transform:translateX(5px)}}@media(max-width:800px){.levels{overflow-x:auto}.levels button{min-width:130px}.game-heading h1{font-size:26px}.stats{gap:9px}.stats small{display:none}.stats>span{font-size:22px}.stats button{font-size:11px}.arena{height:410px}.game-keyboard{overflow:auto}.game-keyboard .main{min-width:620px}.grid-map{grid-template-columns:repeat(5,40px);grid-template-rows:repeat(5,40px)}.rover-wrap{gap:15px}.rover-help{max-width:160px;padding:15px}.rover-help h3{font-size:19px}.rover-help p{font-size:13px}.arrow-hint{font-size:24px;letter-spacing:2px}.help-row{font-size:11px}.beacons{gap:6px}.beacon{width:33px;height:39px;font-size:18px}.launchpad{gap:25px}.launch-code{padding:18px}.combo{gap:10px}.combo .inline-key{font-size:24px;min-height:52px;padding:10px}.terminal{width:90%}.terminal-body{padding:20px}.terminal-text{font-size:31px;letter-spacing:4px}.voyage{width:90%}.sentence{font-size:28px;letter-spacing:2px;padding:20px 8px}.start-overlay h2{font-size:28px}.start-overlay p{font-size:16px}.game-message{font-size:16px}.game-foot{flex-direction:column;gap:8px}}@media(max-width:480px){.rover-wrap{flex-direction:column;gap:10px}.rover-help{padding:6px 12px;max-width:none}.rover-help p,.rover-help h3{display:none}.grid-map{grid-template-columns:repeat(5,39px);grid-template-rows:repeat(5,39px)}.launchpad{gap:15px}.rocket{width:48px;height:105px}.rocket:before{width:25px;height:25px;left:8px}.game-heading h1{font-size:23px}.stats button{padding:7px}.game-heading .eyebrow{font-size:10px}}
@media(min-width:801px){.arena{height:clamp(290px,38vh,520px)}}
@media(min-width:801px) and (max-height:850px){.top{height:60px}.game-main{padding-top:12px}.levels{margin-bottom:10px}.levels button{padding:8px 12px}.game-heading{margin-bottom:10px}.game-heading h1{font-size:26px}.arena{height:290px}.game-keyboard .key{height:22px;font-size:10px}.game-keyboard .main{gap:4px}.game-message{margin-top:10px;padding:10px 15px;min-height:44px;font-size:16px}.help-row{padding:8px 3px}.game-foot{margin-top:5px}.big-key{height:74px;width:85px;line-height:70px;font-size:47px;margin:12px auto 15px}.mission-sub{margin-top:11px}.grid-map{grid-template-columns:repeat(5,40px);grid-template-rows:repeat(5,40px);gap:4px;padding:8px}.terminal-body{padding:20px}.terminal-text{font-size:34px;margin:8px 0 15px}.start-overlay h2{font-size:28px;margin:10px}.start-overlay p{margin:10px}.start-overlay small{margin-top:12px}.win-overlay .medal{font-size:47px}.win-overlay h2{font-size:29px}}
.levels{grid-template-columns:repeat(6,1fr)}.game-input-row{display:flex;align-items:center;justify-content:center;gap:15px;margin:10px 0;color:#afc5d5;font-size:13px}.game-input-row .practice-input{width:320px;min-height:40px;padding:9px 16px}.game-input-row label{font-weight:bold}.game-input-row #imeStatus{padding:8px 12px;border-radius:9px;background:#283c53;color:#d8efe3;white-space:nowrap}.ime-terminal{max-width:700px;width:90%}.ime-terminal .terminal-body{padding:15px 22px}.ime-bar{margin-top:12px;background:#fff9ed;color:#27344b;border:1px solid #ffe2c4;border-radius:12px;box-shadow:0 7px 22px #0004;text-align:left;overflow:hidden}.ime-bar-top{display:flex;align-items:center;gap:13px;padding:9px 14px;border-bottom:1px solid #dfd9cd}.ime-bar-top>b{background:#ff805e;color:white;padding:5px 9px;border-radius:6px;font-size:17px}.ime-bar-top>strong{font-size:23px}.ime-bar-top>small{margin-left:auto;font-size:11px;color:#7b8390}.candidates{display:flex;gap:20px;padding:12px 16px;font-size:19px;min-height:52px}.candidates>strong{color:#c14e31}.candidates>span{color:#687485}.ime-instruction{font-size:17px!important;margin:12px 0 0!important;color:#ffe4bc!important}.game-keyboard{margin-top:8px}.arena{height:clamp(320px,39vh,480px)}
@media(max-height:950px) and (min-width:900px){.top{height:50px}.game-main{padding-top:12px}.game-heading{margin:10px 0}.game-heading h1{font-size:28px}.arena{height:300px;min-height:300px}.game-message{padding:9px 14px;min-height:0}.help-row{margin:6px 0}.game-input-row{margin:5px 0}.game-input-row .practice-input{min-height:32px;padding:5px 13px}.game-keyboard .key{height:24px}.game-keyboard .main{gap:4px}.game-foot{margin-top:8px}.ime-terminal .terminal-text{font-size:30px}.ime-terminal .terminal-body{padding:12px 20px}.ime-bar{margin-top:8px}.ime-bar-top{padding:6px 12px}.candidates{padding:8px 12px;min-height:40px}}
@media(max-width:700px){.levels{grid-template-columns:repeat(3,1fr)}.game-input-row{flex-wrap:wrap;gap:6px}.game-input-row .practice-input{max-width:100%;width:100%}.ime-bar-top>strong{font-size:18px}.candidates{gap:10px;font-size:15px;flex-wrap:wrap}.ime-terminal{width:96%}.ime-terminal .terminal-top{font-size:12px;padding:10px}.game-input-row label{display:none}.arena{min-height:350px}}
@media(max-height:800px) and (min-width:900px){.game-main{padding-top:8px;padding-bottom:6px}.levels button{padding:8px 12px}.game-heading{margin:5px 0}.help-row{padding:0 3px;margin:4px 0}.game-foot{margin-top:2px}.game-foot button{padding:2px 8px}.game-keyboard .key{height:22px}.game-input-row{margin:3px 0}}
