/* Small, purposeful play surface; controls remain touch and keyboard accessible. */
.rocket-play #main{padding:16px;max-width:1380px;margin:auto;width:100%}.rf-game{background:#15273b;border:1px solid #45617d;border-radius:26px;padding:22px;color:#f4f1e8;box-shadow:0 20px 70px #020a1755}.rf-game h1{font:700 clamp(24px,2.5vw,36px)/1.1 system-ui;margin:5px 0}.rf-game h2,.rf-dialog h2{font:700 23px/1.25 system-ui;margin:0 0 12px}.rf-header,.rf-actions,.rf-footer,.rf-equation{display:flex;align-items:center;gap:14px;justify-content:space-between}.rf-actions{justify-content:flex-start;flex-wrap:wrap}.rf-eyebrow{font-size:12px;font-weight:800;letter-spacing:2px;color:#8de0d8}.rf-game button,.rf-dialog button{min-height:48px;cursor:pointer}.rf-game button:focus-visible,.rf-dialog button:focus-visible{outline:3px solid #fff;outline-offset:3px}.rf-space{height:160px;position:relative;background:radial-gradient(circle at 24% 15%,#4570b844 0,transparent 30%),radial-gradient(#d5d9fd 1px,transparent 2px) 0 0/55px 47px,#101e35;border-radius:20px;margin:16px 0;overflow:hidden;padding:10px 12px 10px 150px}.rf-ship{position:absolute;left:20px;bottom:22px;display:flex;align-items:flex-end;transition:transform 1.4s ease-in}.rf-ship .rf-pilot{width:70px;height:80px;object-fit:contain}.rf-ship>span{font-size:55px}.rf-flying .rf-ship{transform:translateX(48vw) translateY(-50px) rotate(-12deg)}.rf-planets{display:flex;justify-content:space-around;gap:6px;height:100%}.rf-planet{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;background:transparent;border:2px solid transparent!important;color:#fff;padding:4px 15px;border-radius:16px;min-width:92px}.rf-planet.selected{border-color:#ffcf82!important;background:#ffffff15}.rf-world{display:flex;align-items:center;justify-content:center;width:65px;height:65px;border-radius:50%;background:radial-gradient(circle at 30% 25%,#ffffffaa,transparent 60%),var(--planet);box-shadow:inset -10px -8px 0 #13263b33,0 0 30px #b5baff22;color:#172a3a;font-weight:bold;font-size:20px}.rf-planet>span:last-child{font-size:14px}.rf-simple-space{display:flex;align-items:center;justify-content:center;gap:24px}.rf-simple-space .rf-world{width:100px;height:100px}.rf-objective{font-size:19px;line-height:1.45;margin:10px 0 18px;color:#f7e7bc;max-width:1000px}.rf-demo{display:grid;grid-template-columns:1fr 1fr;gap:30px;min-height:220px;align-items:center}.rf-demo p,.rf-dialog p{line-height:1.6}.rf-demo-model{animation:rf-appear .45s ease}.rf-bar-wrap{margin:10px 0}.rf-bar-wrap>span{display:block;margin-bottom:6px;color:#c3dce8;font-size:15px}.rf-bar{display:grid;grid-template-columns:repeat(var(--parts),1fr);height:40px;border:2px solid #b3c5db;border-radius:9px;overflow:hidden;background:#0f1928}.rf-bar i{border-right:2px solid #b3c5db}.rf-bar i:last-child{border:0}.rf-bar i.filled{background:var(--charge)}.rf-foundation{display:grid;grid-template-columns:1fr 1fr;gap:25px;align-items:center}.rf-piece-bank{display:flex;gap:12px;margin:20px 0}.rf-fuel-piece{width:75px;height:100px;border-radius:18px;border:2px solid #bde3ff;background:#2f8aaf;color:#c3f1ff;font-size:35px;touch-action:none}.rf-fuel-piece small{display:block;font:14px system-ui;color:white}.rf-fuel-piece.used{opacity:.2}.rf-tank{display:block;width:100%;background:#0c192a!important;border:2px solid #a9bfd7!important;padding:20px;border-radius:20px;color:white}.rf-tank-cells{display:grid;grid-template-columns:repeat(var(--parts),1fr);height:90px;margin-top:14px}.rf-tank-cells i{border:2px solid #506881;border-radius:5px;font:36px system-ui;color:#102e43;display:grid;place-content:center}.rf-tank-cells .target{border-color:#ffe3a0;box-shadow:inset 0 0 15px #efcc7444}.rf-tank-cells .filled{background:#8edbf4}.rf-workbench{display:flex;gap:30px;align-items:start}.rf-workbench>.rf-foundation{width:100%}.rf-charges{display:flex;gap:18px;flex-wrap:wrap;max-width:340px;align-items:center}.rf-charge{background:#1c3f56;border:1px solid #5685a0;border-radius:16px;min-width:130px;padding:12px;text-align:center}.rf-charge:nth-child(2){background:#204d49}.rf-fraction{display:inline-flex;flex-direction:column;gap:4px;vertical-align:middle;margin:8px}.rf-fraction hr{width:100%;border:0;border-top:3px solid #b6cdde;margin:0}.rf-number,.rf-socket{width:48px;height:48px;padding:5px;border:2px solid #7392b0;border-radius:10px;background:#253d59;color:#fff;font-size:24px;font-weight:700;touch-action:none}.rf-number[aria-pressed=true]{background:#326c72;outline:2px solid #ffd082}.rf-socket{border:2px dashed #b7a5e6;background:#181e35}.rf-number-bank{display:flex;gap:7px;flex-wrap:wrap;max-width:560px}.rf-answer-board,.rf-converter{flex:1}.rf-equation{justify-content:flex-start;flex-wrap:wrap;font-size:22px}.rf-converter>p{font-size:16px}.rf-work{padding:12px;background:#0b192a;border-radius:10px;margin:12px 0}.rf-footer{margin:20px 0 8px;min-height:58px}.rf-footer p{max-width:75%;margin:0;color:#c8e1e9}.rf-journey{font-size:13px;color:#a6bfd0;margin-bottom:0}.rf-journey a{color:#a9e4e4;margin-left:12px}.rf-area{display:grid;grid-template-columns:repeat(var(--cols),1fr);height:160px;border:2px solid #bed4df}.rf-area i{border:1px solid #94abba;display:grid;place-content:center}.rf-area .blue{background:#3186b4}.rf-area .striped{background-image:repeating-linear-gradient(45deg,transparent 0 8px,#e3dbff66 8px 13px)}.rf-caption{font-size:13px}.rf-trip-groups{display:flex;gap:12px;justify-content:space-around}.rf-trip-groups span{font-size:36px}.rf-trip-groups small{display:block;font-size:13px}.rf-dialog{background:#172b40;color:#f6f2e7;border:2px solid #56748f;border-radius:22px;width:min(750px,94vw);max-height:88dvh;padding:22px;overflow:auto}.rf-dialog::backdrop{background:#020914c9}.rf-dialog>header{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:15px}.rf-tool-grid,.rf-cargo-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.rf-tool-grid button{white-space:normal;text-align:left}.rf-piece-mat{display:grid;grid-template-columns:repeat(var(--cols),1fr);gap:7px}.rf-piece-mat button{height:65px;background:#122236;border:2px solid #92adc4;border-radius:8px;color:white}.rf-piece-mat button[aria-pressed=true]{background:#68b9d7;color:#14324b}.rf-line{height:8px;background:#b1d0de;position:relative;margin:65px 22px 15px}.rf-line>span{position:absolute;bottom:8px;transform:translateX(-50%);font-size:36px;transition:left .25s}.rf-line-labels{display:flex;justify-content:space-between;margin:0 20px 20px}.rf-sketch{width:100%;background:#0c1a2b;border:1px solid #6d8ba6;border-radius:12px;touch-action:none}.rf-cargo-grid>div{padding:15px;background:#0f2032;border-radius:12px;opacity:.5;display:flex;flex-direction:column;gap:6px}.rf-cargo-grid>div.earned{opacity:1;border:1px solid #91d5b9}.rf-cargo-grid small{color:#bdd4e1}.rf-complete{text-align:center;padding:50px}.rf-complete .rf-actions{justify-content:center}.rf-beacon{display:block;font-size:100px;color:#ffe49c;text-shadow:0 0 50px #f3ae4d}.rf-ghost{position:fixed;z-index:10000;pointer-events:none;transform:translate(-50%,-50%);background:#8fd9ed;color:#112c43;border-radius:15px;padding:20px;font-size:30px;box-shadow:0 8px 25px #0008}.rf-game button:disabled{opacity:.5;cursor:default}.rf-planet:disabled{opacity:.8}.rocket-play .workspace>footer{display:none}@keyframes rf-appear{from{opacity:.2;transform:translateY(8px)}to{opacity:1;transform:none}}@media(max-width:700px){.rocket-play #main{padding:8px}.rf-game{padding:14px;border-radius:18px}.rf-header{align-items:start;flex-wrap:wrap;gap:10px}.rf-header .rf-actions{gap:7px}.rf-header button{padding:8px 13px}.rf-space{padding-left:70px;height:135px}.rf-ship{left:3px;bottom:15px}.rf-ship .rf-pilot{width:40px;height:50px}.rf-ship>span{font-size:28px}.rf-planet{min-width:0;padding:4px}.rf-world{width:42px;height:42px;font-size:14px}.rf-planet strong{font-size:13px}.rf-planet>span:last-child{font-size:12px}.rf-demo,.rf-foundation{grid-template-columns:1fr;gap:15px}.rf-demo-model{order:-1}.rf-demo-model .rf-bar{height:28px}.rf-demo p{margin:8px 0}.rf-demo h2{font-size:20px}.rf-objective{font-size:16px}.rf-workbench{flex-direction:column;gap:15px}.rf-charges{max-width:none;flex-wrap:nowrap;gap:9px}.rf-charge{min-width:0;padding:8px;font-size:14px}.rf-charges>p{font-size:12px}.rf-number-bank{gap:6px}.rf-number,.rf-socket{width:44px;min-height:44px!important;height:44px;font-size:21px}.rf-footer{align-items:start;gap:10px}.rf-footer p{font-size:14px}.rf-footer .primary{padding:12px}.rf-simple-space{gap:12px}.rf-simple-space .rf-world{width:65px;height:65px}.rf-simple-space>span{font-size:12px}.rf-piece-bank{margin:10px 0}.rf-fuel-piece{height:70px;max-width:65px}.rf-tank-cells{height:60px}.rf-area{height:110px}.rf-dialog{padding:15px}.rf-game .rf-foundation p{font-size:14px}.rf-complete{padding:25px}}@media(prefers-reduced-motion:reduce){.rf-game *{animation:none!important;transition:none!important}}
.rf-charge>b{display:block;margin-bottom:4px}.rf-charges{width:240px;flex:0 0 240px;gap:12px}.rf-charge{min-width:95px;flex:1}.rf-charges>p{width:100%;margin:0;font-size:14px}.rf-space{height:140px}.rf-game .rf-header h1{font-family:system-ui}.rf-converter .rf-bar{height:28px}.rf-converter p{margin:8px 0}.rf-game:has(.rf-converter) .rf-space{height:120px}.rf-game:has(.rf-converter) .rf-world{height:52px;width:52px}@media(max-width:700px){.rf-charges{width:100%;flex:auto}.rf-charge>b{font-size:13px}.rf-charges>p{width:auto;max-width:110px}.rf-game:has(.rf-converter) .rf-space{height:120px}}
.rf-space{padding-left:95px;padding-top:25px}.rf-ship{left:9px}.rf-ship .rf-pilot{width:48px;height:66px}.rf-ship>span{font-size:32px}.rf-solar-order{position:absolute;top:7px;left:110px;font-size:11px;color:#d8cda8;letter-spacing:1px}.rf-planets{gap:2px}.rf-planet{min-width:0;padding:3px 5px}.rf-planet strong{font-size:13px}.rf-planet>span:last-child{font-size:12px}.rf-game .rf-planet .rf-world{width:48px;height:48px;font-size:16px}.rf-planet-saturn:after{content:'';position:absolute;width:65px;height:20px;border:5px solid #d4be8f;border-radius:50%;transform:rotate(-20deg)}.rf-planet-saturn{position:relative}.rf-planet-jupiter{background:repeating-linear-gradient(10deg,#d8b698 0 9px,#aa7f63 9px 13px,#ebd2b0 13px 20px)}.rf-planet-earth{background:radial-gradient(ellipse at 30% 40%,#7eb86a 0 18%,transparent 20%),radial-gradient(ellipse at 70% 65%,#74b768 0 19%,transparent 20%),#5eade5}.rf-solar-note{font-size:11px;color:#a2b9cb;margin:10px 0 3px}@media(max-width:700px){.rf-space:has(.rf-planets){padding:25px 6px 5px 55px;height:210px!important}.rf-planets{display:grid;grid-template-columns:repeat(4,1fr);gap:3px}.rf-solar-order{left:60px}.rf-game .rf-planet .rf-world{width:33px;height:33px;font-size:11px}.rf-planet-saturn:after{width:45px;height:13px;border-width:3px}.rf-planet strong{font-size:12px}.rf-ship .rf-pilot{width:30px;height:43px}.rf-ship>span{font-size:21px}.rf-ship{left:2px}.rf-simple-space{padding-left:50px}}

.rf-distance{font-size:13px;color:#bad3e0;margin:8px 0}.rf-distance summary{cursor:pointer;min-height:28px;padding:5px 0}.rf-distance p{max-width:800px;line-height:1.5}.rf-distance a{color:#9cdbdf}

.rf-pilot{display:block;flex:none}.rf-pilot .rc-robot{display:block;width:100%;height:100%;overflow:visible}.rf-story-pilot .rf-pilot{width:90px;height:120px}.rf-pilot .robot-right-arm{transform-origin:130px 103px;animation:robot-pilot-wave 3s ease-in-out infinite}.rf-flying .rf-pilot .robot-right-arm{animation:none;transform:rotate(-18deg)}@keyframes robot-pilot-wave{0%,70%,100%{transform:rotate(0deg)}80%,90%{transform:rotate(-18deg)}}@media(prefers-reduced-motion:reduce){.rf-pilot .robot-right-arm{animation:none}}
