/* The illustrated ship, camera drift and escape capsule share one flight scene. */
#game-visual > .flight-scene { isolation: isolate; border-radius: 12px; background: #101f42; }
#game-visual > .flight-scene::before { content: none; }
.flight-sky { position: absolute; inset: -35% -60px 0; background: url('/assets/japan-orbit-v3.webp') center bottom / cover no-repeat; opacity: .9; will-change: transform; }
.flight-scene::after { content: ''; position: absolute; inset: 0; border-radius: inherit; border: 1px solid #b5d1f236; box-shadow: inset 0 0 42px #07152c55; pointer-events: none; }
.flight-stars { position: absolute; inset: -220px -240px 0; pointer-events: none; background-repeat: repeat; background-size: 240px 220px; will-change: transform; }
.flight-stars-far { opacity: .65; background-image: radial-gradient(circle at 16px 38px,#cbdff2 0 1px,transparent 1.6px),radial-gradient(circle at 126px 178px,#d4def1 0 1px,transparent 1.7px); }
.flight-stars-near { opacity: .7; background-image: radial-gradient(ellipse at 88px 75px,#eef1d4 0 1px,transparent 1.9px),radial-gradient(ellipse at 210px 150px,#eef7ff 0 1px,transparent 2px); }
.flight-speed { position: absolute; inset: 0; overflow: hidden; opacity: 0; pointer-events: none; }
.flight-speed i { position: absolute; left: calc(var(--lane)*1% + 170px); top: -90px; width: 1px; height: 68px; background: linear-gradient(transparent,#dfedf088,transparent); transform: rotate(32deg); animation: ascent-streak 1.15s linear infinite; animation-delay: var(--delay); animation-play-state: paused; }
.flight-scene[data-flight-phase="ascending"] .flight-speed { opacity: .7; }
.flight-scene[data-flight-phase="ascending"] .flight-speed i { animation-play-state: running; }
@keyframes ascent-streak { to { transform: translate(-390px,620px) rotate(32deg); } }
.flight-scene .rocket-ship { position: absolute; left: 0; top: 0; width: 110px; height: 140px; margin: 0; transition: none; transform-origin: center; z-index: 2; will-change: transform; }
.flight-scene .rocket-ship .game-art { position: relative; display: block; width: 100%; height: 100%; object-fit: contain; animation: none; filter: drop-shadow(0 3px 6px #08132c66); z-index: 1; }
.rocket-plume { position: absolute; left: 36%; top: 84%; width: 28%; height: 64%; opacity: 0; transform-origin: top; background: linear-gradient(#fffbe5 0 5%,#a3e5e4 20%,#7abbeb99 48%,#88b4ff00); clip-path: polygon(8% 0,92% 0,100% 20%,62% 81%,50% 100%,38% 81%,0 20%); filter: drop-shadow(0 0 6px #a9ebf0); }
.rocket-plume i { position: absolute; top: 0; left: 32%; width: 36%; height: 68%; background: linear-gradient(#fffbe7,#d3f8f1aa,transparent); border-radius: 50%; }
.flight-scene:is([data-flight-phase="ascending"],[data-flight-phase="ejecting"],[data-flight-phase="parachuting"]) .rocket-plume { animation: plume-burn .12s ease-in-out infinite alternate; }
@keyframes plume-burn { from { transform: scaleY(.88); } to { transform: scaleY(1.08); } }
.launch-pad { position: absolute; top: 0; left: 0; width: 98px; height: 13px; border-radius: 50%; border: 1px solid #eed49c; background: #172d4ecd; box-shadow: 0 4px 0 #0d1c37,0 8px 18px #132945; }
.launch-pad i { position: absolute; inset: 3px 14px; border-radius: 50%; border: 1px solid #88c9d69c; }
.escape-capsule { position: absolute; top: 0; left: 0; width: 96px; height: 140px; z-index: 3; opacity: 0; transform-origin: 50% 79%; will-change: transform; }
.escape-capsule svg { display: block; width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 4px 4px #12213655); }
.escape-canopy { transform-origin: 48px 106px; }
.flight-scene .rocket-impact-fx { left: 0; top: 0; z-index: 3; }
.flight-scene .rocket-burst { width: 82px; height: 82px; background: radial-gradient(circle,#fff0c2 0 12%,#ffce87 18%,#ec926166 42%,transparent 64%); }
.flight-scene .rocket-fragment { width: 5px; height: 9px; background: #e8c98c; box-shadow: none; }
#game-visual .flight-scene .flight-readout { top: 24px; left: 24px; right: auto; width: max-content; max-width: calc(100% - 40px); padding: 0; border: 0; background: none; z-index: 4; pointer-events: none; }
.flight-state { display: block; color: #d8e9f0; font: 600 9px/1.3 system-ui,sans-serif; letter-spacing: 2px; }
.flight-scene .rocket-multiplier { font-size: 54px; font-weight: 800; line-height: 1.12; letter-spacing: -1.8px; margin-top: 7px; color: #ffedbe; text-shadow: 0 2px 12px #0d1c46; }
.flight-scene .rocket-label { display: block; margin-top: 8px; font-size: 11px; line-height: 1.5; color: #e2edf7; text-shadow: 0 1px 5px #14243f; }
.flight-scene[data-flight-phase="escaped"] .rocket-multiplier { color: #adedd3; }
.flight-scene:is([data-flight-phase="falling"],[data-flight-phase="wreck"]) .rocket-multiplier { color: #ffb6a2; }
.flight-direction { position: absolute; right: 19px; top: 36%; display: flex; align-items: center; flex-direction: column; gap: 8px; color: #deebef99; font: 600 8px system-ui,sans-serif; letter-spacing: 2px; }
.flight-direction i { width: 1px; height: 78px; background: repeating-linear-gradient(#c3d9e266 0 4px,transparent 4px 10px); }
@media(max-width:600px) {
  .flight-scene .rocket-ship { width: 84px; height: 108px; }
  .escape-capsule { width: 78px; height: 114px; }
  #game-visual .flight-scene .flight-readout { left: 16px; top: 18px; right: auto; max-width: 44%; }
  .flight-state { font-size: 7px; letter-spacing: 1.3px; }
  .flight-scene .rocket-multiplier { font-size: 40px; }
  .flight-scene .rocket-label { font-size: 10px; margin-top: 5px; }
  .flight-direction { right: 10px; top: 45%; }
}
html[data-game-motion="simple"] .flight-speed { display: none; }
html[data-game-motion="simple"] .flight-scene .rocket-plume { animation: none; }
