.theteam-as[hidden], .theteam-as-feedback[hidden] { display: none; }
.theteam-as {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  flex-basis: 100%;
  margin-block: .6em;
  font: inherit;
  color: inherit;
  --theteam-as-accent: var(--bde-brand-primary-color, #2252d8);
}
.theteam-as .theteam-as-title { margin: 0 0 .5em; font: inherit; font-weight: 600; color: #fff; }
.breakdance-form-footer:has(.theteam-as:not([hidden]), .theteam-as-feedback:not([hidden])) {
  flex-wrap: wrap;
  justify-content: flex-start;
  text-align: start;
}
.theteam-as-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .4em; }
.theteam-as-tile {
  width: 100%;
  aspect-ratio: 1.25;
  box-sizing: border-box;
  min-width: 0;
  max-width: 100%;
  margin: 0;
  border: 2px solid transparent;
  border-radius: .55em;
  background: url(cards.png) no-repeat;
  background-size: 350% auto;
  cursor: grab;
  padding: 0;
}
.theteam-as-can { background-position: 8% 61%; }
.theteam-as-bike { background-position: 50% 61%; }
.theteam-as-bag { background-position: 92% 61%; }
.theteam-as-lamp { background-position: 8% 91%; }
.theteam-as-ukulele { background-position: 50% 91%; }
.theteam-as-skate { background-position: 92% 91%; }
.theteam-as-tile[aria-pressed=true], .theteam-as-target {
  outline: 2px solid var(--theteam-as-accent);
  outline-offset: 2px;
}
.theteam-as-tile:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}
.theteam-as-feedback {
  box-sizing: border-box;
  flex-basis: 100%;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  font: inherit;
  color: inherit;
  margin: .35em 0;
  overflow-wrap: anywhere;
}

@media (max-width: 767px) {
  .breakdance-form-footer:has(.theteam-as:not([hidden]), .theteam-as-feedback:not([hidden])) {
    box-sizing: border-box;
    min-width: 0;
    max-width: 100%;
  }
  .breakdance-form-footer:has(.theteam-as:not([hidden])) .breakdance-form-button,
  .breakdance-form-footer:has(.theteam-as:not([hidden])) .button-atom__text {
    box-sizing: border-box;
    min-width: 0;
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
  }
  .theteam-as .theteam-as-title { overflow-wrap: anywhere; }
}

.theteam-as-touch-text { display: none; }

@media (max-width: 767px), (hover: none) and (pointer: coarse) {
  .theteam-as-desktop-text { display: none; }
  .theteam-as-touch-text { display: inline; }
  .theteam-as-tile { position: relative; }
  .theteam-as-target::after {
    content: "↓";
    position: absolute;
    top: 8%;
    left: 50%;
    transform: translateX(-50%);
    display: grid;
    place-items: center;
    width: 1.5em;
    height: 1.5em;
    border-radius: 50%;
    background: #173ea8;
    color: #fff;
    font: 700 1.35rem/1 system-ui, sans-serif;
    pointer-events: none;
  }
}

@media (prefers-reduced-motion: no-preference) and (max-width: 767px),
       (prefers-reduced-motion: no-preference) and (hover: none) and (pointer: coarse) {
  .theteam-as-target::after { animation: theteam-as-point 850ms ease-in-out 3; }
}

@keyframes theteam-as-point {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, .3em); }
}
