/* ================================
   TEAM SCROLL SECTION
================================ */
#team-scroll {
  margin: clamp(4em, 3em + 4vw, 8em) 0 clamp(5em, 3em + 4vw, 8em);
  overflow: hidden;
  width: 100%;
}

.team-scroll__container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}

.team-scroll__deck {
  display: flex;
  align-items: center;
  gap: 0;
  height: max-content;
  width: 100%;
  flex-direction: row;
  flex-wrap: nowrap;
  position: absolute;
  z-index: 2;
  padding-bottom: 2em;
}

.team-scroll__card {
  display: flex;
  justify-content: center;
  position: absolute;
  min-width: auto;
  height: auto;
  aspect-ratio: 24 / 35;
  width: var(--width);
  border: 1px solid #e8e8e8;
  border-radius: 15px;
  flex-shrink: 0;
  margin-right: 1em;
  overflow: hidden;
  box-shadow: 0 0 10px hsla(0, 0%, 0%, 0.1);
  transform-style: preserve-3d;
  background-color: white;
  will-change: transform;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), filter 0.35s ease;
}

.team-scroll__card img {
  display: block;
  height: 100%;
  width: auto;
  -webkit-user-drag: none;
  user-select: none;
  object-fit: cover;
}

.team-scroll__controls {
  display: flex;
  gap: clamp(.5em, .5em + .5vw, 1em);
  justify-content: center;
  position: absolute;
  left: 0;
  right: 0;
  width: 100%;
  bottom: 1.35em;
  flex-direction: column;
  gap: .35em;
}

.scroll-controls__btn {
  font-family: var(--font-heading);
  font-size: clamp(.825rem, .5rem + .5vw, .9375rem);
  background: none;
  border: none;
  width: auto;
  align-self: center;
  color: #D2C8B3;
  text-decoration: underline;
  cursor: pointer;
}

.scroll-controls__btn--speed {
  text-decoration: none;
}

.scroll-controls__btn--speed .speed-value {
  font-family: "Open Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  font-weight: 400;
  font-size: .9375em;
  text-decoration: underline;
}
#scroll-toggle.is-paused::after {
  content: "Play motion";
}
#scroll-toggle:not(.is-paused)::after {
  content: "Pause motion";
}

/* ================================
   POKERMAT STYLING
================================ */
.team-scroll__pokermat {
  display: flex;
  justify-content: center;
  width: 100%;
  margin: 0 clamp(1.25rem, 0.75rem + 0.75vw, 1.75rem);
  background-color: var(--color-dark-background);
}

.team-scroll__pokermat-surface {
  display: flex;
  flex-direction: column;
  gap: clamp(0.5em, 0.5em + 1vw, 1.25em);
  width: 100%;
  max-width: 115em;
  padding: clamp(2.5em, 2.5em + 5vw, 9em) clamp(1em, 0.5em + 4vw, 6em);
}

.pokermat-text {
  color: var(--color-accent);
  font-family: var(--font-heading);
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  font-size: clamp(1rem, 1rem + 1vw, 2rem);
}

.pokermat-text:last-child {
  align-self: flex-end;
}

.team-scroll__pokermat-center {
  display: flex;
  align-items: stretch;
  width: 100%;
  min-height: 33em;
  position: relative;
  padding: 0.625em;
  border: 1px solid var(--color-accent);
}

.pokermat-corners {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 100%;
  min-height: clamp(23em, 23em + 15vw, 40em);
  padding: clamp(0.325em, 0.325em + 1vw, 1em);
  position: relative;
  background: radial-gradient(circle, rgb(111, 12, 12) 0%, rgb(72, 0, 0) 50%, rgb(65, 13, 13) 100%);
  border: 2px solid var(--color-accent);
}

.corners-top,
.corners-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  width: 100%;
  height: 4em;
  font-size: clamp(0.75rem, 0.75rem + 1vw, 1.25rem);
  position: relative;
}

.corners-bottom {
  transform: rotate(180deg);
}

.corners-top::before,
.corners-top::after,
.corners-bottom::before,
.corners-bottom::after {
  content: "";
  position: relative;
  width: 3.5em;
  height: 3.5em;
  bottom: 0;
  background: no-repeat url("../assets/pokermat-border.svg");
  background-size: 100% auto;
}

.corners-top::before,
.corners-bottom::before {
  transform: rotate(-90deg);
}

/* ================================
   RESPONSIVE
================================ */



@media only screen and (min-width: 25rem) {
  .team-scroll__controls {
    flex-direction: row;
    gap: clamp(.5em, .5em + .5vw, 1em);
    bottom: clamp(1.75em, 1em + 2vw, 2.5em)
  }
}


@media only screen and (min-width: 64rem) {
  .team-scroll__deck {
    padding-bottom: 0;
  }

  .team-scroll__pokermat {
    width: min(96%, 140rem);
    border: 4px solid #4a4a4a;
    border-radius: clamp(1.75em, 1.5em + 1vw, 2em);
  }
}

@media (hover:hover) {

  .team-scroll__deck:hover .team-scroll__card {
    filter: grayscale(1);
  }

  .team-scroll__deck .team-scroll__card:hover {
    filter: grayscale(0);
  }

}

@media (prefers-reduced-motion: reduce) {
  .team-scroll__card {
    transition: none !important;
    animation: none !important;
  }

  .team-scroll__deck {
    transform: none !important;
  }
}