/* Floating UI (AUE) */
#aue-floating {
  position: fixed;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 92%;
  max-width: 380px;

  background: rgba(30, 30, 30, 0.72);
  border: 1px solid rgba(255, 245, 220, 0.22);
  border-radius: 14px;

  padding: 12px 14px;
  box-shadow: 0 10px 28px rgba(0,0,0,0.38);

  color: rgba(255, 245, 220, 0.9);

  opacity: 0;
  pointer-events: none;
  transition: opacity .4s ease;
  z-index: 9999;
}


#aue-floating.show {
    opacity: 1;
    pointer-events: auto;
}

.aue-floating-bar {
  height: 3px;
  background: rgba(255, 245, 220, 0.12);
  border-radius: 2px;
  overflow: hidden;
}

.aue-floating-bar-inner {
  height: 100%;
  width: 0%;
  background: linear-gradient(
    to right,
    rgba(255, 245, 220, 0.35),
    rgba(255, 200, 120, 0.85)
  );
  transition: width .4s ease;
}

#aue-floating .aue-restore-btn {
  background: transparent;
  color: rgba(255, 245, 220, 0.9);
  border: 1px solid rgba(255, 245, 220, 0.35);
  border-radius: 999px;

  font-size: 12px;
  letter-spacing: .08em;
  padding: 6px 14px;

  transition: background .2s ease, border-color .2s ease;
}

#aue-floating .aue-restore-btn:hover {
  background: rgba(255, 245, 220, 0.12);
  border-color: rgba(255, 245, 220, 0.55);
}




#aue-floating.is-hidden {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

#aue-floating {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.aue-progress-wrap {
  width: 220px;   /* 好みで */
}

#aue-floating.show {
  animation: aue-fade-in 0.6s ease;
}

@keyframes aue-fade-in {
  from { opacity: 0; transform: translateX(-50%) translateY(6px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}