/* ==========================================================
   style.css — ส่วนเฉพาะของจรวดขวดน้ำ
   โครงหน้า/ธีม/navbar อยู่ใน ../assets/site.css + ../assets/sim.css
   ========================================================== */

/* ตัวจรวดการ์ตูน (SVG) — app.js ขยับด้วย style.transform ทุกเฟรม */
.rocket {
  --rocket-w: 32px;
  --rocket-h: 53px;

  position: absolute;
  top: 0;
  left: 0;
  width: var(--rocket-w);
  height: var(--rocket-h);
  transform-origin: 50% 50%;
  will-change: transform;
  filter: drop-shadow(0 6px 6px rgba(11, 28, 51, 0.25));
}

.rocket-svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.rocket-flame {
  position: absolute;
  left: 50%;
  bottom: -18%;
  width: 30%;
  height: 26%;
  transform: translateX(-50%);
  border-radius: 0 0 50% 50%;
  background: linear-gradient(180deg, var(--exhaust), var(--exhaust-dark));
  visibility: hidden;
}

@media (prefers-reduced-motion: no-preference) {
  .rocket-flame[data-active='true'] {
    animation: flame-flicker 0.12s infinite alternate;
  }
}

@keyframes flame-flicker {
  from {
    transform: translateX(-50%) scaleY(1);
    opacity: 1;
  }
  to {
    transform: translateX(-50%) scaleY(0.82);
    opacity: 0.85;
  }
}

@media (max-width: 600px) {
  .rocket {
    --rocket-w: 22px;
    --rocket-h: 37px;
  }
}

.drive-button:disabled {
  cursor: wait;
  opacity: 0.68;
}

.drive-status {
  min-height: 1.35em;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.35;
}

.drive-status.is-success {
  color: #16704a;
}

.drive-status.is-error {
  color: #b42318;
}

.drive-status a {
  color: inherit;
  font-weight: 600;
}