.gslg-garage {
  --gslg-bg: #071015;
  --gslg-card: #101a21;
  --gslg-card-2: #16242d;
  --gslg-line: rgba(255, 255, 255, 0.14);
  --gslg-ink: #f6fbff;
  --gslg-muted: #a8b7c2;
  --gslg-accent: #e9ff47;
  --gslg-shadow: rgba(0, 0, 0, 0.32);
  position: relative;
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  color: var(--gslg-ink);
  font-family: inherit;
}

.gslg-garage.is-swipe-prompt-hidden .gslg-swipe-prompt {
  opacity: 0;
  transform: translate(-50%, 10px);
  pointer-events: none;
}

.gslg-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 48px) / 3);
  gap: 24px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding: 8px 4px 18px;
}

.gslg-track::-webkit-scrollbar {
  display: none;
}

.gslg-track:focus-visible {
  outline: 2px solid var(--gslg-accent);
  outline-offset: 8px;
}

.gslg-card {
  min-width: 0;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  border: 1px solid var(--gslg-line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0)),
    linear-gradient(145deg, var(--gslg-card), var(--gslg-card-2));
  box-shadow: 0 24px 48px var(--gslg-shadow);
  overflow: hidden;
  isolation: isolate;
}

.gslg-card__media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #111b22;
}

.gslg-card__media::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 48%;
  background: linear-gradient(0deg, rgba(7, 16, 21, 0.88), rgba(7, 16, 21, 0));
  pointer-events: none;
}

.gslg-card__media img,
.gslg-card__placeholder {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.gslg-card__placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 30% 20%, rgba(233, 255, 71, 0.18), transparent 32%),
    linear-gradient(135deg, #14252d, #090f14 66%, #1e2b22);
}

.gslg-card__placeholder span {
  width: 78px;
  height: 78px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--gslg-accent);
  font-size: 38px;
  font-weight: 800;
  text-transform: uppercase;
}

.gslg-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border: 1px solid var(--gslg-badge-color);
  border-radius: 999px;
  background: rgba(7, 16, 21, 0.86);
  box-shadow: inset 0 0 18px rgba(255, 255, 255, 0.08);
  color: #fff;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
}

.gslg-card__content {
  min-height: 230px;
  display: flex;
  flex-direction: column;
  padding: 22px;
}

.gslg-card__title {
  margin: 0;
  color: var(--gslg-ink);
  font-size: clamp(24px, 2vw, 32px);
  font-weight: 850;
  line-height: 1.05;
  letter-spacing: 0;
}

.gslg-card__description {
  margin: 12px 0 0;
  color: var(--gslg-muted);
  font-size: 15px;
  line-height: 1.55;
}

.gslg-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
  padding-top: 22px;
}

.gslg-button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.gslg-button:hover {
  transform: translateY(-1px);
}

.gslg-button--primary {
  border: 1px solid var(--gslg-accent);
  background: var(--gslg-accent);
  color: #11180f;
}

.gslg-button--secondary {
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.06);
  color: var(--gslg-ink);
}

.gslg-button--disabled {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.07);
  color: rgba(246, 251, 255, 0.55);
  cursor: not-allowed;
}

.gslg-button--disabled:hover {
  transform: none;
}

.gslg-arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(7, 16, 21, 0.86);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
  cursor: pointer;
  transform: translateY(-50%);
}

.gslg-arrow span {
  display: block;
  margin-top: -3px;
  font-size: 34px;
  line-height: 1;
}

.gslg-arrow--prev {
  left: -23px;
}

.gslg-arrow--next {
  right: -23px;
}

.gslg-arrow:disabled {
  opacity: 0.28;
  cursor: default;
}

.gslg-arrow:focus-visible {
  outline: 2px solid var(--gslg-accent);
  outline-offset: 3px;
}

.gslg-swipe-prompt {
  display: none;
}

@media (max-width: 980px) {
  .gslg-track {
    grid-auto-columns: calc((100% - 20px) / 2);
    gap: 20px;
  }
}

@media (max-width: 640px) {
  .gslg-track {
    grid-auto-columns: 100%;
    gap: 16px;
    padding: 8px 2px 108px;
    -webkit-overflow-scrolling: auto;
  }

  .gslg-card__content {
    min-height: 210px;
    padding: 18px;
  }

  .gslg-card__title {
    font-size: 25px;
  }

  .gslg-arrow {
    display: none;
  }

  .gslg-swipe-prompt {
    --gslg-swipe-accent: #b30000;
    position: absolute;
    left: 50%;
    bottom: 8px;
    z-index: 4;
    display: block;
    width: min(84vw, 310px);
    pointer-events: none;
    opacity: 1;
    transform: translateX(-50%);
    transition: opacity 0.24s ease, transform 0.24s ease;
  }

  .gslg-swipe-prompt__panel {
    display: grid;
    justify-items: center;
    gap: 9px;
    border: 1px solid rgba(179, 0, 0, 0.62);
    border-radius: 8px;
    background: rgba(7, 16, 21, 0.88);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.38);
    padding: 14px 16px 13px;
    backdrop-filter: blur(12px);
    animation: gslgPromptPulse 2.2s ease-in-out infinite;
  }

  .gslg-swipe-prompt__gesture {
    position: relative;
    width: 128px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .gslg-swipe-prompt__touch {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 30px;
    height: 30px;
    border: 2px solid var(--gslg-swipe-accent);
    border-radius: 999px;
    background: rgba(179, 0, 0, 0.16);
    box-shadow: 0 0 24px rgba(179, 0, 0, 0.34);
    transform: translate(-50%, -50%);
    animation: gslgSwipeTouch 1.65s ease-in-out infinite;
  }

  .gslg-swipe-prompt__touch::after {
    content: "";
    position: absolute;
    inset: 8px;
    border-radius: inherit;
    background: var(--gslg-swipe-accent);
  }

  .gslg-swipe-prompt__arrow {
    width: 28px;
    height: 18px;
    opacity: 0.72;
    position: relative;
  }

  .gslg-swipe-prompt__arrow::before,
  .gslg-swipe-prompt__arrow::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 13px;
    height: 2px;
    border-radius: 99px;
    background: rgba(246, 251, 255, 0.86);
  }

  .gslg-swipe-prompt__arrow--left::before {
    left: 3px;
    transform: rotate(-38deg);
    transform-origin: left center;
  }

  .gslg-swipe-prompt__arrow--left::after {
    left: 3px;
    transform: rotate(38deg);
    transform-origin: left center;
  }

  .gslg-swipe-prompt__arrow--right::before {
    right: 3px;
    transform: rotate(38deg);
    transform-origin: right center;
  }

  .gslg-swipe-prompt__arrow--right::after {
    right: 3px;
    transform: rotate(-38deg);
    transform-origin: right center;
  }

  .gslg-swipe-prompt__text {
    color: rgba(246, 251, 255, 0.88);
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
    text-transform: uppercase;
  }

  @keyframes gslgSwipeTouch {
    0%,
    100% {
      transform: translate(-72px, -50%) scale(0.92);
      opacity: 0.56;
    }

    20%,
    80% {
      opacity: 1;
    }

    50% {
      transform: translate(42px, -50%) scale(1);
      opacity: 1;
    }
  }

  @keyframes gslgPromptPulse {
    0%,
    100% {
      transform: translateY(0);
    }

    50% {
      transform: translateY(-3px);
    }
  }
}
