/* FxTruebook logo mark: gold coin (templates/_ftb_mark.html, option 3). */

.auth-mark .ftb-mark {
  width: 36px;
  height: 36px;
}

.ftb-mark {
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  --scale: 1;
  width: 40px;
  height: 40px;
  display: block;
  flex-shrink: 0;
  overflow: visible;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transform: perspective(260px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y)) scale(var(--scale));
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.35s ease;
  filter: drop-shadow(0 6px 14px rgba(245, 184, 46, 0.35));
}

.ftb-mark:hover {
  --scale: 1.08;
  filter: drop-shadow(0 8px 22px rgba(245, 184, 46, 0.55));
}

/* Light sheen sweeps across the coin; faster on hover. */
.ftb-mark .ftb-sheen {
  animation: ftb-sweep 4.5s ease-in-out infinite;
}
.ftb-mark:hover .ftb-sheen {
  animation-duration: 1.2s;
}

/* Click: coin flips and a ring pulses out (JS adds .is-burst). */
.ftb-mark .ftb-coin {
  transform-box: fill-box;
  transform-origin: center;
}
.ftb-mark.is-burst .ftb-coin {
  animation: ftb-flip 0.7s ease-in-out;
}
.ftb-mark .ftb-burst {
  transform-box: fill-box;
  transform-origin: center;
  opacity: 0;
}
.ftb-mark.is-burst .ftb-burst {
  animation: ftb-burst 0.7s ease-out forwards;
}

@keyframes ftb-sweep {
  0%, 35% { transform: translateX(0); }
  100% { transform: translateX(190px); }
}
@keyframes ftb-flip {
  0% { transform: scaleX(1); }
  50% { transform: scaleX(0.12); }
  100% { transform: scaleX(1); }
}
@keyframes ftb-burst {
  0% { transform: scale(1); opacity: 0.9; }
  100% { transform: scale(1.35); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .ftb-mark,
  .ftb-mark * {
    animation: none !important;
    transition: none !important;
  }
  .ftb-mark .ftb-burst {
    display: none;
  }
}
