/* COMPETITION TEAM PAGE */

.competition-team-body {
  overflow-x: hidden;
}

.competition-team-page {
  position: relative;
  overflow: hidden;
  background: #fff;
  color: #151515;
}

.competition-team-page img,
.competition-team-page video {
  display: block;
  max-width: 100%;
}

.competition-pink {
  color: #ff719b;
  font-weight: 600;
}

.competition-heading {
  position: relative;
  width: fit-content;
  margin-inline: auto;
  text-align: center;
  line-height: 1;
}

.competition-heading h1,
.competition-heading h2 {
  position: relative;
  z-index: 1;
  margin: 0;
  font-family: "Playfair Display", serif;
  font-size: clamp(2.25rem, 3.2vw, 3.65rem);
  font-weight: 400;
  letter-spacing: 0.035em;
}

.competition-heading > span {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: -0.72em;
  transform: translateX(-50%);
  color: #ff719b;
  font-family: "Dancing Script", cursive;
  font-size: clamp(2rem, 2.5vw, 3rem);
  white-space: nowrap;
}

/* PINK RACING HERO */

.competition-racing-hero {
  position: relative;
  min-height: 555px;
  overflow: hidden;
  background-image: url("../../assets/images/competition-team/background.png");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  background-attachment: fixed;
}

.competition-hero-flag {
  position: absolute;
  z-index: 2;
  bottom: 8px;
  width: clamp(285px, 31vw, 560px);
  height: auto;
  pointer-events: none;
  user-select: none;
}

.competition-hero-flag-left {
  left: 7%;
}

.competition-hero-flag-right {
  right: 7%;
}

/* RACING INTRO */

.competition-intro {
  position: relative;
  z-index: 3;
  min-height: 1370px;
  padding: 105px 4vw 155px;
  background: #fff;
}

.competition-intro::before,
.competition-intro::after,
.competition-team::before,
.competition-team::after {
  content: "";
  position: absolute;
  z-index: 4;
  left: 0;
  width: 100%;
  height: 78px;
  background-repeat: no-repeat;
  background-position: center bottom;
  background-size: 100% 100%;
  pointer-events: none;
}

.competition-intro::before {
  top: -62px;
  background-image: var(--quadrille-torn-top);
}

.competition-intro::after {
  bottom: -70px;
  background-image: var(--quadrille-torn-bottom);
  transform: rotate(180deg);
}

.competition-intro-inner {
  position: relative;
  z-index: 5;
  width: min(1600px, 100%);
  margin: 0 auto;
}

.competition-racing-heading {
  margin-bottom: 90px;
}

.competition-intro-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.82fr) minmax(520px, 1.45fr) minmax(310px, 0.9fr);
  align-items: center;
  gap: clamp(34px, 4vw, 78px);
}

.competition-intro-photo-wrap {
  justify-self: center;
  width: min(360px, 100%);
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 50%;
}

.competition-intro-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.competition-intro-copy {
  align-self: start;
  text-align: center;
  font-family: "Quicksand", sans-serif;
  font-size: clamp(0.98rem, 1.05vw, 1.17rem);
  line-height: 1.42;
}

.competition-intro-copy p {
  margin: 0 0 1.35em;
}

.competition-contact-card {
  align-self: center;
  justify-self: center;
  width: min(410px, 100%);
  text-align: center;
  font-family: "Quicksand", sans-serif;
  font-size: clamp(0.94rem, 1vw, 1.1rem);
  line-height: 1.35;
}

.competition-contact-people {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: none;
  max-height: none;
  margin: 0 auto -35px;
  transform: translateX(17%) scale(1.5);
  transform-origin: center bottom;
  object-fit: contain;
  object-position: center bottom;
}

.competition-contact-banner {
  position: relative;
  z-index: 3;
  width: 100%;
  margin: -8px auto 15px;
}

.competition-contact-card p {
  margin: 0;
}

.competition-video-wrap {
  width: min(970px, 78vw);
  aspect-ratio: 1.82 / 1;
  margin: 70px auto 0;
  overflow: hidden;
  border-radius: 50% / 48%;
}

.competition-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* OUTFIT */

.competition-outfit {
  position: relative;
  z-index: 2;
  min-height: 1500px;
  padding-top: 95px;
  overflow: hidden;
  background-image: url("../../assets/images/competition-team/background.png");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  background-attachment: fixed;
  color: #fff;
}

.competition-outfit-top {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1500px, 92%);
  min-height: 205px;
  margin: 0 auto;
  overflow: hidden;
}

.competition-outfit-heading {
  position: relative;
  z-index: 3;
  flex: 1;
  padding: 20px 25px 30px;
  text-align: center;
}

.competition-outfit-heading h2 {
  margin: 0;
  font-family: "Playfair Display", serif;
  font-size: clamp(2.1rem, 3.1vw, 3.5rem);
  font-weight: 400;
  letter-spacing: 0.035em;
}

.competition-outfit-heading p {
  margin: 6px 0 0;
  font-family: "Quicksand", sans-serif;
  font-size: clamp(0.9rem, 1vw, 1.08rem);
  font-style: italic;
  letter-spacing: 0.055em;
}

.competition-outfit-flag {
  flex: 0 0 auto;
  width: clamp(275px, 25vw, 150px);
  height: auto;
  margin-bottom: -25px;
  pointer-events: none;
  user-select: none;
}

.competition-checker-divider {
  position: relative;
  z-index: 8;
  width: 100%;
  height: 48px;
  border-top: 5px solid #5f3a27;
  border-bottom: 5px solid #5f3a27;
  background-color: #fff;
  background-image:
    linear-gradient(45deg, #111 25%, transparent 25%, transparent 75%, #111 75%),
    linear-gradient(45deg, #111 25%, transparent 25%, transparent 75%, #111 75%);
  background-position: 0 0, 22px 22px;
  background-size: 44px 44px;
}

.competition-outfit-display {
  position: relative;
  z-index: 5;
  width: 1260px;
  max-width: calc(100% - 40px);
  height: 820px;
  margin: 45px auto 0;
  padding: 0;
}

.competition-outfit-horse-wrap {
  position: absolute;
  z-index: 3;
  left: -370px;
  bottom: -38px;
  width: 1520px;
  max-width: none;
}

.competition-outfit-horse,
.competition-outfit-tack {
  display: block;
  width: 100%;
  height: auto;
  max-width: none;
  object-fit: contain;
  user-select: none;
}

.competition-outfit-horse {
  position: relative;
  z-index: 1;
  pointer-events: none;
}

.competition-outfit-tack {
  position: absolute;
  z-index: 2;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.competition-outfit-girl-wrap {
  position: absolute;
  z-index: 4;
  left: 725px;
  bottom: -8px;
  width: 357px;
  max-width: none;
}

.competition-outfit-girl {
  display: block;
  width: 100%;
  height: auto;
  max-width: none;
  object-fit: contain;
  user-select: none;
  pointer-events: none;
}

.competition-hooligan-trigger {
  position: absolute;
  z-index: 40;
  top: 330px;
  left: 1212px;
  width: 64px;
  height: 64px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  transition: opacity 120ms ease;
}

.competition-hooligan-trigger img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
}

.competition-hooligan-trigger:hover,
.competition-hooligan-trigger.is-active {
  opacity: 0;
}

.competition-hooligan-panel {
  position: absolute;
  z-index: 25;
  left: 1088px;
  bottom: -8px;
  width: 312px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 120ms ease,
    visibility 120ms ease;
}

.competition-hooligan-trigger:hover + .competition-hooligan-panel,
.competition-hooligan-panel.is-visible {
  opacity: 1;
  visibility: visible;
}

.competition-hooligan-panel.is-visible {
  pointer-events: auto;
}

.competition-hooligan-model {
  display: block;
  width: 100%;
  height: auto;
  max-width: none;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
}

/* OUTFIT HOVER AREAS */

.competition-outfit-hotspot {
  position: absolute;
  z-index: 20;
  display: block;
  background: transparent;
  cursor: pointer;
}

.competition-horse-hotspot-head-bow {
  top: 13%;
  left: 65%;
  width: 6%;
  height: 10.5%;
}

.competition-horse-hotspot-bridle {
  top: 20%;
  left: 68%;
  width: 7.5%;
  height: 20%;
}

.competition-horse-hotspot-saddle {
  top: 19%;
  left: 40%;
  width: 12%;
  height: 25%;
}

.competition-horse-hotspot-saddlepad {
  top: 30%;
  left: 40%;
  width: 12%;
  height: 12%;
}

.competition-horse-hotspot-tail-bow {
  top: 25%;
  left: 30%;
  width: 5.5%;
  height: 10%;
}

.competition-human-hotspot-hat {
  top: 6%;
  left: 34%;
  width: 25%;
  height: 14%;
}

.competition-human-hotspot-jacket {
  top: 30%;
  left: 20%;
  width: 55%;
  height: 22%;
}

.competition-human-hotspot-glove-right {
  top: 12%;
  left: 79%;
  width: 17%;
  height: 15%;
}

.competition-human-hotspot-pants {
  top: 50%;
  left: 28%;
  width: 42%;
  height: 17%;
}

.competition-human-hotspot-boots {
  top: 80%;
  left: 26%;
  width: 40%;
  height: 18%;
}

.competition-winter-hotspot {
  z-index: 30;
  box-sizing: border-box;
}

.competition-winter-hotspot-hat {
  top: 20%;
  left: 29%;
  width: 42%;
  height: 16%;
}

.competition-winter-hotspot-jacket {
  top: 35%;
  left: 18%;
  width: 64%;
  height: 20%;
}

.competition-winter-hotspot-gloves {
  top: 43%;
  left: 46%;
  width: 20%;
  height: 12%;
}

.competition-winter-hotspot-pants {
  top: 57%;
  left: 22%;
  width: 56%;
  height: 35%;
}

.competition-winter-hotspot-boots {
  top: 92%;
  left: 17%;
  width: 62%;
  height: 8%;
}

.competition-outfit-tooltip {
  position: absolute;
  z-index: 50;
  width: 215px;
  padding: 13px 16px;
  border-radius: 14px;
  background: #fff;
  color: #4b4541;
  font-family: "Quicksand", sans-serif;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.45;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  opacity: 0;
  visibility: hidden;
  filter: blur(3px);
  pointer-events: none;
  transform: translateY(7px);
  transition:
    opacity 220ms ease,
    visibility 220ms ease,
    transform 220ms ease,
    filter 220ms ease;
}

.competition-outfit-tooltip strong,
.competition-outfit-tooltip span {
  display: block;
}

.competition-outfit-tooltip strong {
  font-weight: 400;
}

.competition-outfit-hotspot:hover .competition-outfit-tooltip {
  opacity: 1;
  visibility: visible;
  filter: blur(0);
  transform: translateY(0);
}

.competition-outfit-tooltip.tooltip-top {
  left: 50%;
  bottom: calc(100% + 14px);
  transform: translateX(-50%) translateY(5px);
}

.competition-outfit-hotspot:hover .competition-outfit-tooltip.tooltip-top {
  transform: translateX(-50%) translateY(0);
}

.competition-outfit-tooltip.tooltip-bottom {
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%) translateY(-5px);
}

.competition-outfit-hotspot:hover .competition-outfit-tooltip.tooltip-bottom {
  transform: translateX(-50%) translateY(0);
}

.competition-outfit-tooltip.tooltip-left {
  top: 50%;
  right: calc(100% + 14px);
  transform: translateY(-50%) translateX(5px);
}

.competition-outfit-hotspot:hover .competition-outfit-tooltip.tooltip-left {
  transform: translateY(-50%) translateX(0);
}

.competition-outfit-tooltip.tooltip-right {
  top: 50%;
  left: calc(100% + 14px);
  transform: translateY(-50%) translateX(-5px);
}

.competition-outfit-hotspot:hover .competition-outfit-tooltip.tooltip-right {
  transform: translateY(-50%) translateX(0);
}

.competition-outfit-tooltip::after {
  content: "";
  position: absolute;
  width: 0;
  height: 0;
}

.competition-outfit-tooltip.tooltip-top::after {
  top: 100%;
  left: 50%;
  border-left: 9px solid transparent;
  border-right: 9px solid transparent;
  border-top: 9px solid #fff;
  transform: translateX(-50%);
}

.competition-outfit-tooltip.tooltip-bottom::after {
  bottom: 100%;
  left: 50%;
  border-left: 9px solid transparent;
  border-right: 9px solid transparent;
  border-bottom: 9px solid #fff;
  transform: translateX(-50%);
}

.competition-outfit-tooltip.tooltip-left::after {
  top: 50%;
  left: 100%;
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
  border-left: 9px solid #fff;
  transform: translateY(-50%);
}

.competition-outfit-tooltip.tooltip-right::after {
  top: 50%;
  right: 100%;
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
  border-right: 9px solid #fff;
  transform: translateY(-50%);
}

/* TEAM */

.competition-team {
  position: relative;
  z-index: 4;
  min-height: 1680px;
  padding: 120px 6vw 205px;
  background: #fff;
}

.competition-team::before {
  top: -62px;
  background-image: var(--quadrille-torn-top);
}

.competition-team::after {
  bottom: -55px;
  background-image: var(--quadrille-torn-bottom);
  transform: rotate(180deg);
}

.competition-team-heading {
  position: relative;
  z-index: 6;
  margin-bottom: 120px;
}

.competition-team-grid {
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 250px));
  justify-content: center;
  column-gap: clamp(40px, 4.8vw, 92px);
  row-gap: 125px;
  width: min(1460px, 100%);
  margin: 0 auto;
}

.competition-team-card {
  position: relative;
  width: 100%;
  min-width: 0;
  text-align: center;
}

.competition-team-photo {
  position: relative;
  width: 100%;
  aspect-ratio: 0.62;
  background-image: url("../../assets/images/competition-team/placeholder.jpg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  box-shadow: 0 3px 8px rgb(57 45 37 / 10%);
}

.competition-team-flags {
  position: absolute;
  z-index: 6;
  top: -65px;
  left: 50%;
  width: 93%;
  max-width: none;
  transform: translateX(-50%);
  pointer-events: none;
}

.competition-team-tape {
  position: absolute;
  z-index: 7;
  left: 50%;
  width: 41%;
  height: 22px;
  transform: translateX(-50%);
  background: rgb(236 183 194 / 62%);
  box-shadow: inset 0 0 9px rgb(255 255 255 / 38%);
  backdrop-filter: blur(1px);
}

.competition-team-tape-top {
  top: -3px;
}

.competition-team-tape-bottom {
  bottom: -11px;
  width: 34%;
  background: rgb(255 255 255 / 56%);
}

.competition-team-portrait {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 0;
  width: 100%;
  height: 100%;
  transform: translateX(-50%);
  object-fit: contain;
  object-position: center bottom;
}

.competition-team-awards {
  position: absolute;
  z-index: 9;
  left: 50%;
  bottom: -29px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 2px;
  transform: translateX(-50%);
}

.competition-team-award-wrap,
.competition-podium-award {
  position: relative;
}

.competition-team-award {
  width: 82px;
  height: 108px;
  object-fit: contain;
  transition: transform 160ms ease;
}

.competition-team-award-wrap:hover .competition-team-award,
.competition-podium-award:hover .competition-podium-award-image {
  transform: translateY(-4px) scale(1.04);
}

.competition-award-tooltip {
  position: absolute;
  z-index: 20;
  left: 50%;
  bottom: calc(100% + 10px);
  width: max-content;
  max-width: 250px;
  padding: 10px 13px;
  border-radius: 8px;
  background: rgb(57 45 37 / 94%);
  color: #fff;
  font-family: "Quicksand", sans-serif;
  font-size: 0.75rem;
  line-height: 1.35;
  text-align: center;
  opacity: 0;
  transform: translate(-50%, 8px);
  pointer-events: none;
  transition: opacity 150ms ease, transform 150ms ease;
}

.competition-award-tooltip strong,
.competition-award-tooltip span {
  display: block;
}

.competition-team-award-wrap:hover .competition-award-tooltip,
.competition-podium-award:hover .competition-award-tooltip {
  opacity: 1;
  transform: translate(-50%, 0);
}

.competition-team-name {
  min-height: 58px;
  margin: 31px -25px 0;
  font-family: "Dancing Script", cursive;
  font-size: clamp(1.9rem, 2.2vw, 2.75rem);
  font-weight: 700;
  line-height: 1.05;
  white-space: nowrap;
}

.competition-team-card.is-empty .competition-team-name {
  font-family: "Quicksand", sans-serif;
  font-size: 1.25rem;
  font-weight: 500;
}

/* PODIUM */

.competition-podium-section {
  position: relative;
  z-index: 2;
  min-height: 610px;
  overflow: hidden;
  background-image: url("../../assets/images/competition-team/background.png");
  background-repeat: no-repeat;
  background-position: center 45%;
  background-size: cover;
  background-attachment: fixed;
}

.competition-podium-section::after {
  content: "";
  position: absolute;
  z-index: 12;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 86px;
  background: #392d25;
  -webkit-mask-image: var(--quadrille-torn-top);
  mask-image: var(--quadrille-torn-top);
  -webkit-mask-position: center bottom;
  mask-position: center bottom;
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  pointer-events: none;
}

.competition-podium-scene {
  position: relative;
  width: min(1540px, 96%);
  height: 610px;
  margin: 0 auto;
}

.competition-podium {
  position: absolute;
  z-index: 13;
  left: 50%;
  bottom: -2px;
  width: min(1450px, 93vw);
  transform: translateX(-50%);
  pointer-events: none;
}

.competition-podium-awards {
  position: absolute;
  z-index: 20;
  inset: 0;
  pointer-events: none;
}

.competition-podium-award {
  position: absolute;
  z-index: 21;
  pointer-events: auto;
}

.competition-podium-award:nth-child(1) {
  left: 27%;
  bottom: 190px;
}

.competition-podium-award:nth-child(2) {
  left: 50%;
  bottom: 265px;
}

.competition-podium-award-image {
  position: relative;
  z-index: 22;
  width: clamp(70px, 6.2vw, 112px);
  height: auto;
  opacity: 1;
  visibility: visible;
  transition: transform 160ms ease;
}
