.gaty-fsb {
  direction: rtl;
  box-sizing: border-box;
  width: 100%;
  background: var(--gaty-bg);
  color: var(--gaty-text);
  border: 1px solid color-mix(in srgb, var(--gaty-accent) 22%, transparent);
  border-radius: var(--gaty-radius);
  padding: 18px 16px;
  margin: 18px 0;
  overflow: hidden;
  box-shadow: 0 8px 22px color-mix(in srgb, var(--gaty-accent) 8%, transparent);
  font-family: inherit;
}
.gaty-fsb * {
  box-sizing: border-box;
}
.gaty-fsb-head {
  display: grid;
  grid-template-columns: 1fr auto auto;
  direction: ltr;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 13px;
}
.gaty-fsb-total {
  direction: ltr;
  color: var(--gaty-accent);
  font-size: 12px;
}
.gaty-fsb-title {
  direction: rtl;
  font-weight: 800;
}
.gaty-fsb-icon {
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--gaty-accent) 12%, #fff);
  font-size: 16px;
}
.gaty-road-wrap {
  height: 72px;
  position: relative;
  margin: 0 2px 0 68px;
}
.gaty-road {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 7px;
  height: 5px;
  background: var(--gaty-track);
  border-radius: 10px;
  overflow: visible;
}
.gaty-road-fill {
  display: block;
  position: absolute;
  right: 0;
  top: 0;
  height: 100%;
  background: var(--gaty-accent);
  border-radius: 10px;
  width: 0;
  transition: width 1.25s cubic-bezier(0.22, 0.8, 0.25, 1);
}
.gaty-fsb.is-progress-ready .gaty-road-fill {
  width: var(--gaty-progress);
}
.gaty-road-dashes {
  position: absolute;
  right: 0;
  left: 0;
  top: 0;
  height: 5px;
  background: repeating-linear-gradient(
    90deg,
    transparent 0 10px,
    color-mix(in srgb, var(--gaty-track) 70%, #777) 10px 19px,
    transparent 19px 29px
  );
  opacity: 0.7;
  animation: gaty-road-movement 0.8s linear infinite;
}
.gaty-truck-position {
  position: absolute;
  right: 0;
  bottom: 10px;
  width: 76px;
  height: 37px;
  transition: right 1.25s cubic-bezier(0.22, 0.8, 0.25, 1);
  animation: gaty-bob 0.8s linear infinite;
  will-change: right, transform;
}
.gaty-fsb.is-progress-ready .gaty-truck-position {
  right: clamp(0px, calc(var(--gaty-progress) - 38px), calc(100% - 76px));
}
.gaty-truck {
  position: relative;
  width: 76px;
}
.gaty-truck svg {
  width: 100%;
  height: auto;
  overflow: visible;
  transform: scaleX(-1);
}
.gaty-truck svg > * {
  stroke: #2e2930;
}
.gaty-cab {
  fill: var(--gaty-truck);
}
.gaty-window {
  fill: #bde6ef;
}
.gaty-cargo {
  fill: var(--gaty-box);
}
.gaty-wheel {
  fill: #2e2930;
}
.gaty-rim {
  fill: #ddd;
}
.gaty-wheel-set {
  transform-box: fill-box;
  transform-origin: center;
  animation: gaty-wheel-spin 0.8s linear infinite;
}
.gaty-spoke {
  fill: none;
  stroke: #777 !important;
  stroke-width: 2;
  stroke-linecap: round;
}
.gaty-truck-label {
  position: absolute;
  z-index: 2;
  right: 5px;
  top: 10px;
  width: 45px;
  text-align: center;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: var(--gaty-text);
  font-weight: 900;
  font-size: 7px;
  direction: ltr;
}
.gaty-goal {
  position: absolute;
  left: -66px;
  bottom: -4px;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 62px;
  height: 62px;
  background: #263242;
  color: #fff;
  border: 3px solid #fff;
  border-radius: 50%;
  box-shadow: 0 2px 7px #0003;
  line-height: 1;
}
.gaty-goal b {
  font-size: 10px;
}
.gaty-goal small {
  display: block;
  width: 54px;
  font-size: 7px;
  color: #fff;
  margin-top: 3px;
  line-height: 1.15;
  text-align: center;
  white-space: normal;
  overflow-wrap: normal;
  word-break: normal;
}
.gaty-goal small span,
.gaty-goal small em {
  display: block;
  white-space: nowrap;
}
.gaty-goal small em {
  margin-top: 2px;
  font-size: 0.9em;
  font-style: normal;
}
.gaty-fsb-stats {
  display: flex;
  direction: ltr;
  justify-content: space-between;
  align-items: center;
  font-size: 10px;
  opacity: 0.65;
  margin-top: 1px;
}
.gaty-fsb-message {
  text-align: center;
  font-size: 13px;
  line-height: 1.8;
  margin-top: 12px;
  padding: 10px 12px;
  background: color-mix(in srgb, var(--gaty-bg) 82%, #fff);
  border: 1px solid color-mix(in srgb, var(--gaty-accent) 18%, transparent);
  border-radius: 12px;
}
.gaty-fsb-message span {
  color: var(--gaty-accent);
  font-weight: 900;
}
.gaty-fsb.is-complete .gaty-road-fill {
  background: #23a66c;
}
.gaty-fsb.is-complete .gaty-fsb-total,
.gaty-fsb.is-complete .gaty-fsb-message span {
  color: #23a66c;
}
.gaty-fsb.is-complete .gaty-goal {
  background: #23a66c;
}
.gaty-fsb-top {
  width: 100%;
  overflow: hidden;
  background: var(--gaty-accent);
  color: #fff;
  min-height: 34px;
  display: flex;
  align-items: center;
  position: relative;
  z-index: 9998;
}
.gaty-fsb-top > div {
  display: flex;
  width: max-content;
  min-width: 200%;
  animation: gaty-marquee 18s linear infinite;
}
.gaty-fsb-top span {
  width: 50%;
  white-space: nowrap;
  text-align: center;
  padding: 7px 40px;
  font-size: 14px;
  font-weight: 700;
}
.gaty-fsb-toast-backdrop {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: grid;
  place-items: center;
  padding: 18px;
  background: #0000;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s,
    visibility 0.3s;
}
.gaty-fsb-toast-backdrop.is-visible {
  opacity: 1;
  visibility: visible;
  background: #0002;
}
.gaty-fsb-toast {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  width: min(430px, 100%);
  background: var(--gaty-bg);
  color: var(--gaty-text);
  border-top: 4px solid var(--gaty-accent);
  border-radius: var(--gaty-radius);
  box-shadow: 0 18px 55px #0004;
  padding: 24px 48px 24px 22px;
  transform: scale(0.92) translateY(12px);
  transition: transform 0.3s;
}
.gaty-fsb-toast-backdrop.is-visible .gaty-fsb-toast {
  transform: none;
}
.gaty-fsb-toast button {
  position: absolute;
  right: 13px;
  top: 9px;
  border: 0;
  background: transparent;
  color: inherit;
  font-size: 22px;
  cursor: pointer;
  padding: 0;
}
.gaty-fsb-toast p {
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
  font-weight: 700;
}
.gaty-toast-icon {
  font-size: 28px;
  animation: gaty-bob 0.8s linear infinite;
}
@keyframes gaty-bob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-2px);
  }
}
@keyframes gaty-wheel-spin {
  to {
    transform: rotate(-360deg);
  }
}
@keyframes gaty-road-movement {
  to {
    background-position-x: -29px;
  }
}
@keyframes gaty-marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(50%);
  }
}
@media (max-width: 600px) {
  .gaty-fsb {
    padding: 14px 12px;
  }
  .gaty-fsb-head {
    font-size: 12px;
    gap: 7px;
  }
  .gaty-fsb-total {
    font-size: 10px;
  }
  .gaty-fsb-message {
    font-size: 12px;
  }
  .gaty-fsb-top span {
    font-size: 12px;
  }
  .gaty-road-wrap {
    height: 68px;
    margin-left: 62px;
  }
  .gaty-truck-position,
  .gaty-truck {
    width: 70px;
  }
  .gaty-truck-label {
    width: 42px;
    font-size: 6px;
    top: 10px;
  }
  .gaty-goal {
    left: -60px;
    width: 56px;
    height: 56px;
  }
  .gaty-goal small {
    width: 49px;
    font-size: 6.5px;
  }
  .gaty-fsb.is-progress-ready .gaty-truck-position {
    right: clamp(0px, calc(var(--gaty-progress) - 35px), calc(100% - 70px));
  }
  .gaty-fsb-toast {
    padding: 21px 44px 21px 18px;
  }
  .gaty-fsb-toast p {
    font-size: 13px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .gaty-truck-position,
  .gaty-road-fill,
  .gaty-road-dashes,
  .gaty-wheel-set,
  .gaty-toast-icon {
    animation: none !important;
    transition-duration: 0.01ms !important;
  }
}
