/* Gentle in-flight bobbing for the progress plane. */
@keyframes plane-bob {
  0%, 100% { margin-top: -2px; }
  50%      { margin-top: 2px; }
}
.plane-bob {
  animation: plane-bob 1.6s ease-in-out infinite;
}

/* Alpine cloak: hide x-show elements until Alpine boots. */
[x-cloak] { display: none !important; }

/* Small "?" marker with an instant custom tooltip (text in data-tip).
   Shows on hover or keyboard focus; no browser-tooltip delay. */
.hint-badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 13px;
  height: 13px;
  border-radius: 9999px;
  border: 1px solid #cbd5e1; /* slate-300 */
  color: #94a3b8;            /* slate-400 */
  font-size: 9px;
  line-height: 1;
  vertical-align: 1px;
  user-select: none;
}
.hint-badge:hover,
.hint-badge:focus-visible {
  border-color: #38bdf8; /* sky-400 */
  color: #0284c7;        /* sky-600 */
  outline: none;
}
.hint-badge::after {
  content: attr(data-tip);
  position: absolute;
  bottom: calc(100% + 7px);
  left: 50%;
  transform: translateX(-50%);
  width: max-content;
  max-width: 220px;
  padding: 6px 9px;
  border-radius: 6px;
  background: #1e293b; /* slate-800 */
  color: #f1f5f9;      /* slate-100 */
  font-size: 11px;
  font-weight: 400;
  line-height: 1.45;
  text-align: left;
  white-space: normal;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.12s ease;
  pointer-events: none;
  z-index: 30;
}
/* Tooltip arrow. */
.hint-badge::before {
  content: "";
  position: absolute;
  bottom: calc(100% + 2px);
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: #1e293b;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.12s ease;
  pointer-events: none;
  z-index: 30;
}
.hint-badge:hover::after,
.hint-badge:hover::before,
.hint-badge:focus-visible::after,
.hint-badge:focus-visible::before {
  opacity: 1;
  visibility: visible;
}
