/* Keep the title above the rocket, pump, drag hints and flight scene. */
body.room-adventure.rocket-mission-active #roundBoard.rocket-mission{isolation:isolate}
body.room-adventure.rocket-mission-active #roundBoard.rocket-mission>.rocket-title{position:relative;z-index:300;isolation:isolate;pointer-events:none;text-shadow:0 2px #fff8e8,0 0 12px #fff8e8}
body.room-adventure.rocket-mission-active #roundBoard.rocket-mission>.rocket-world{position:relative;z-index:0}
/* Exact crop of the existing right wing, reflected as the missing left wing. */
body.room-adventure .rocket-mission :is(.rocket-fin,.rocket-fin-slot){left:0%;top:58.7%;width:17.5%;height:30.7%;transform:none}
body.room-adventure .rocket-mission .rocket-part[data-part=fin] svg{width:65%;height:100%;max-height:80px}
body.room-adventure .rocket-mission .rocket-fin-slot svg{width:100%;height:100%}
/* The pump and scattered cards share the live game surface, in every orientation. */
.rocket-world[data-round="2"]{container-type:size}
body.room-adventure .rocket-world[data-round="2"] .rocket-position{left:36%;bottom:5%;width:min(60cqw,62cqh);aspect-ratio:3/4}
.rocket-pump-field{position:absolute;inset:0;z-index:6;pointer-events:none}
.rocket-air-pump{position:absolute;right:7%;bottom:5%;height:78%;width:min(22%,calc(78cqh * .4865));pointer-events:none}
.rocket-air-pump>svg{display:block;width:100%;height:100%;overflow:visible;filter:drop-shadow(0 5px 3px #593c4333)}
.pump-handle{transform-box:fill-box;transform-origin:center;will-change:transform}
.pump-stroking .pump-handle{animation:rocketPumpStroke .8s ease-in-out}
@keyframes rocketPumpStroke{0%,100%{transform:translateY(0)}45%{transform:translateY(65px)}}
body.room-adventure .rocket-mission .rocket-pump-intake{position:absolute;left:26%;top:44%;width:52%;height:21%;min-width:44px;min-height:44px!important;padding:0!important;display:grid;place-items:center;border:3px dashed #fff3cc!important;border-radius:14px!important;background:#fff3cf!important;color:#214f49;box-shadow:0 3px 0 #a3383280!important;font:clamp(24px,5cqh,40px)/1 Froople,'Trebuchet MS',sans-serif!important;pointer-events:auto;touch-action:manipulation}
.rocket-pump-intake.drop-near{outline:5px solid #ffdb62!important;outline-offset:4px;background:#fffbdc!important}
.rocket-pump-intake:disabled{opacity:1!important}
.rocket-pump-meter{position:absolute;right:-14%;top:2%;width:18%;height:33%;min-width:12px;border:3px solid #fff0ce;border-radius:20px;background:#332f2c;overflow:hidden;box-shadow:0 2px 0 #987448}
.rocket-pump-fill{position:absolute;inset:auto 0 0;display:block;background:linear-gradient(#ffe45b,#ff8b40);transition:height .7s ease-out}
.rocket-pump-count{position:absolute;left:0;right:0;bottom:-5%;text-align:center;font:bold clamp(13px,3cqh,21px)/1 'Trebuchet MS',sans-serif;color:#244f49;text-shadow:0 1px #fff5d8}
body.room-adventure .rocket-mission .rocket-pump-letter,body.room-adventure .rocket-pump-letter.touch-drag-ghost{position:absolute;display:grid;place-items:center;width:clamp(56px,13cqw,86px);height:clamp(56px,13cqw,86px);min-height:44px!important;padding:0!important;border:4px solid #fff9e4!important;border-radius:24%!important;background:#fff0bb!important;color:#214f49!important;font:clamp(35px,7cqw,58px)/1 Froople,'Trebuchet MS',sans-serif!important;box-shadow:0 5px 0 #a78352aa,0 8px 18px #4d45302b!important;pointer-events:auto;touch-action:none;user-select:none;-webkit-user-select:none}
.rocket-pump-letter[aria-pressed=true]{outline:4px solid #087c88;outline-offset:4px}
.rocket-pump-letter[hidden]{display:none!important}
.pump-letter-s{left:5%;top:12%;rotate:-9deg}
.pump-letter-u{left:51%;top:5%;rotate:8deg}
.pump-letter-n{left:13%;bottom:3%;rotate:-5deg}
.rocket-pump-letter.drag-source{opacity:.3}
.rocket-pump-letter.touch-drag-ghost{position:fixed!important;z-index:1500;pointer-events:none!important;rotate:0deg}
.rocket-flying .rocket-pump-field{opacity:0;transition:opacity .4s}
@media(orientation:portrait) and (max-width:900px){
 .rocket-air-pump{right:5%;bottom:9%;height:66%;width:min(25%,calc(66cqh * .4865))}
 .pump-letter-s{left:3%;top:9%}.pump-letter-u{left:56%;top:1%}.pump-letter-n{left:8%;bottom:2%}
 body.room-adventure .rocket-world[data-round="2"] .rocket-position{left:35%;bottom:18%;width:min(60cqw,60cqh)}
}
@media(orientation:landscape) and (max-height:540px){
 body.room-adventure .rocket-mission .rocket-pump-letter{width:48px;height:48px;font-size:31px!important}
 .rocket-air-pump{right:12%;bottom:3%;height:92%;width:calc(92cqh * .4865)}
 .pump-letter-s{left:7%;top:5%}.pump-letter-u{left:51%;top:2%}.pump-letter-n{left:16%;bottom:2%}
 .rocket-pump-meter{right:-24%;width:22%}
 body.room-adventure .rocket-mission .rocket-pump-intake{left:20%;width:65%;top:40%;font-size:26px!important}
}
body.rocket-motion-paused .pump-handle{animation-play-state:paused!important}
@media(prefers-reduced-motion:reduce){.pump-handle{animation:none!important}.rocket-pump-fill,.rocket-pump-field{transition:none!important}}
body.reduce-motion .pump-handle{animation:none!important}
body.reduce-motion :is(.rocket-pump-fill,.rocket-pump-field){transition:none!important}

/* Round two keeps its centre intake; heading and word progress sit above it. */
body.room-adventure.rocket-fuel-active #gameBoard .mini-heading{display:none!important}
body.room-adventure.rocket-fuel-active #gameBoard{grid-template-rows:minmax(0,1fr) auto!important}
body.room-adventure.rocket-fuel-active #roundBoard.rocket-mission{grid-template-rows:auto auto minmax(0,1fr) auto!important;gap:6px!important}
body.room-adventure.rocket-fuel-active .rocket-fuel-heading{display:flex;align-items:center;justify-content:center;gap:12px;width:100%;min-width:0;position:relative;z-index:300;isolation:isolate}
body.room-adventure.rocket-fuel-active .rocket-fuel-heading>.rocket-title{margin:0!important;padding:4px 0!important;min-width:0!important;font-size:clamp(26px,4vw,46px)!important;line-height:1.1;color:#214f49;text-align:center;text-shadow:0 2px #fff8e8,2px 0 #fff8e8,-2px 0 #fff8e8}
body.room-adventure.rocket-fuel-active #gameBoard .rocket-title-listen{display:grid;place-items:center;flex:0 0 52px;width:52px;min-width:52px!important;height:52px;min-height:48px!important;padding:0!important;border-radius:50%!important;touch-action:manipulation}
.rocket-word-progress{display:flex;align-items:center;justify-content:center;gap:clamp(12px,3vw,28px);position:relative;z-index:300;pointer-events:none;min-height:56px;color:#214f49;font:clamp(38px,5vw,60px)/1 Froople,'Trebuchet MS',sans-serif;text-shadow:0 2px #fff9e8,2px 0 #fff9e8,-2px 0 #fff9e8}
.rocket-word-letter{display:inline-grid;place-items:center;min-width:1em;min-height:1.1em}.rocket-word-letter.filled{color:#1e695b}.rocket-word-letter.current{color:#896b48}
body.room-adventure.rocket-fuel-active .rocket-world[data-round="1"]{container-type:size}
body.room-adventure.rocket-fuel-active .rocket-world[data-round="1"] .rocket-position{width:min(38cqw,56cqh,500px)}
@media(max-width:700px) and (orientation:portrait){
 body.room-adventure.rocket-fuel-active .rocket-fuel-heading{gap:8px}
 body.room-adventure.rocket-fuel-active .rocket-fuel-heading>.rocket-title{font-size:clamp(25px,6vw,39px)!important}
 body.room-adventure.rocket-fuel-active #gameBoard .rocket-title-listen{flex-basis:48px;width:48px;min-width:48px!important;height:48px}
 .rocket-word-progress{font-size:clamp(38px,9vw,52px);min-height:50px}
 body.room-adventure.rocket-fuel-active .rocket-world[data-round="1"] .rocket-position{width:min(67cqw,56cqh)}
}
@media(max-height:540px) and (orientation:landscape){
 body.room-adventure.rocket-fuel-active #roundBoard.rocket-mission{gap:2px!important}
 body.room-adventure.rocket-fuel-active .rocket-fuel-heading>.rocket-title{font-size:24px!important}
 body.room-adventure.rocket-fuel-active #gameBoard .rocket-title-listen{flex-basis:44px;width:44px;min-width:44px!important;height:44px;min-height:44px!important}
 .rocket-word-progress{font-size:32px;min-height:36px}
 body.room-adventure.rocket-fuel-active .rocket-world[data-round="1"] .rocket-position{width:min(38cqw,68cqh)}
}

/* Hiding the old heading also removes its grid row. Place the fuel board in
   the remaining flexible first row, instead of its inherited second row. */
body.room-adventure.rocket-fuel-active #gameBoard>#roundBoard.rocket-mission{grid-area:1 / 1 / 2 / 2!important;align-self:stretch!important;height:100%!important;min-height:0!important}
body.room-adventure.rocket-fuel-active #gameBoard>#feedback{grid-area:2 / 1 / 3 / 2!important}
body.room-adventure.rocket-fuel-active #roundBoard>.rocket-fuel-heading{grid-area:1 / 1 / 2 / 2!important}
body.room-adventure.rocket-fuel-active #roundBoard>.rocket-word-progress{grid-area:2 / 1 / 3 / 2!important}
body.room-adventure.rocket-fuel-active #roundBoard>.rocket-world{grid-area:3 / 1 / 4 / 2!important;align-self:stretch!important;height:100%!important;min-height:0!important}
body.room-adventure.rocket-fuel-active #roundBoard>.rocket-status{grid-area:4 / 1 / 5 / 2!important;margin:0!important;padding:0!important;min-height:0!important}

/* The pump is a handmade cardboard prop; letters share round-two bubbles. */
body.room-adventure .rocket-mission .rocket-pump-intake{left:28%;top:47%;width:43%;height:auto;aspect-ratio:1;min-height:44px!important;border:2px solid #c69a64!important;border-radius:50%!important;background:radial-gradient(circle at 50% 55%,#35271e,#5b4029 70%,#9d7546)!important;color:#fff0c9!important;box-shadow:inset 0 5px 8px #20150d99,0 1px 0 #f3d7b0!important}
.rocket-pump-intake svg{width:55%;height:55%;pointer-events:none}
.rocket-pump-intake.drop-near{outline:5px solid #8cdee0!important;outline-offset:3px}
body.room-adventure .rocket-mission .rocket-pump-letter,body.room-adventure .rocket-pump-letter.touch-drag-ghost{border:3px solid #fffdf3!important;border-radius:50%!important;background:radial-gradient(circle at 29% 23%,#ffffffec,#bce9f093 32%,#73bed971 68%,#bce4edc2)!important;color:#285865!important;box-shadow:inset 3px 4px 9px #fff,0 5px 0 #619ebc55,0 8px 20px #6d9eae30!important}
body.room-adventure .rocket-mission .pump-letter-u,body.room-adventure .pump-letter-u.touch-drag-ghost{background:radial-gradient(circle at 29% 23%,#fff,#e7dcf5ab 34%,#b89bd385 70%,#ebdef8c9)!important;color:#68518b!important}
body.room-adventure .rocket-mission .pump-letter-n,body.room-adventure .pump-letter-n.touch-drag-ghost{background:radial-gradient(circle at 29% 23%,#fff,#e6efc6ab 34%,#b8cb8685 70%,#ebf5d2c9)!important;color:#557945!important}
.rocket-pump-meter{background:#9c744a;border-color:#eed2a5;box-shadow:1px 2px 0 #6c4b2c}.rocket-pump-fill{background:linear-gradient(#ffe79a,#eebd71)}
body.has-howto-guide .rocket-status{position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;clip-path:inset(50%)!important}

/* Distinct paper rim and intake help the child see where to drop a sound. */
body.room-adventure .rocket-air-pump { right: 11%; }
body.room-adventure .rocket-air-pump > svg { filter: drop-shadow(0 6px 4px #4025215c); }
body.room-adventure .rocket-mission .rocket-pump-intake {
 border: 3px solid #fff4bb!important;
 background: radial-gradient(circle at 50% 38%,#5a4d42,#242630 72%)!important;
 color: #fff9da;
 box-shadow: 0 0 0 3px #ba743a,inset 0 4px 9px #0a1028bb!important;
}
body.room-adventure .rocket-mission .rocket-pump-intake.drop-near { outline: 4px solid #ffdb62!important; }
@media (orientation:portrait) and (max-width:900px) {
 body.room-adventure .rocket-air-pump { right: 7%; }
}

body.room-adventure .rocket-air-pump{right:clamp(12%,calc(63% - min(32cqw,33cqh)),31%)}
.rocket-pump-hose{position:absolute;inset:0;pointer-events:none}
.rocket-pump-hose svg{width:100%;height:100%;overflow:visible}
.rocket-pump-hose path{fill:none;stroke-linecap:round}
.hose-rocket-fitting{fill:#b88c58;stroke:#60442b;stroke-width:2}
.hose-edge{stroke:#674a34;stroke-width:11}
.hose-body{stroke:#ad8458;stroke-width:7}
.hose-stitch{stroke:#f2cd9c;stroke-width:1.8;stroke-dasharray:2 4}
@media(max-width:700px) and (orientation:portrait){
 body.room-adventure .rocket-air-pump{right:clamp(7%,calc(44% - min(29cqw,30cqh)),24%)}
}
