.hero-header {
  max-width: 880px;
  margin-bottom: 42px;
  animation: fadeSlideUp 620ms ease both;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  color: var(--gold-bright);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.eyebrow::before,
.eyebrow::after {
  content: "";
  display: block;
  width: 34px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-bright));
}

.eyebrow::after {
  background: linear-gradient(90deg, var(--gold-bright), transparent);
}

.hero-header h1 {
  margin: 0;
  color: #071125;
  font-family: var(--site-font-title, Cinzel, Georgia, serif);
  font-size: clamp(3rem, 8vw, 6.6rem);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: 0;
  -webkit-text-stroke: 1.2px rgba(245, 205, 118, 0.98);
  text-shadow:
    0 1px 0 #fff1bf,
    0 3px 0 rgba(112, 70, 22, 0.92),
    0 14px 48px rgba(0, 0, 0, 0.72),
    0 0 34px rgba(255, 218, 145, 0.18);
}

.hero-header p {
  max-width: 720px;
  margin: 24px 0 0;
  color: rgba(245, 234, 215, 0.82);
  font-size: clamp(1rem, 1.8vw, 1.22rem);
  line-height: 1.7;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.8);
}

.selection-section {
  position: relative;
  min-height: 620px;
  padding: clamp(22px, 3vw, 38px);
  overflow: hidden;
  border: 1px solid rgba(221, 181, 94, 0.42);
  border-radius: var(--site-radius-md, 8px);
  background:
    linear-gradient(180deg, rgba(255, 232, 158, 0.055), rgba(1, 8, 18, 0.15)),
    rgba(3, 13, 27, 0.76);
  box-shadow:
    inset 0 0 0 1px rgba(255, 236, 176, 0.035),
    0 18px 44px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(2px);
  animation: fadeSlideUp 620ms 90ms ease both;
}

.selection-section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: var(--pantheon-bg);
  background-position: center;
  background-size: cover;
  opacity: 0;
  transform: scale(1.04);
  transition:
    opacity var(--transition-slow),
    transform var(--transition-slow);
}

.selection-section::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 18%, rgba(255, 224, 163, 0.08), transparent 36%),
    linear-gradient(180deg, rgba(5, 7, 13, 0.44), rgba(5, 7, 13, 0.72) 58%, rgba(5, 7, 13, 0.86));
}

.selection-section.has-pantheon-bg::before {
  opacity: 0.72;
  transform: scale(1);
}

.section-title-row {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 34px;
}

.section-title-row h2 {
  margin: 0;
  color: #f3d99f;
  font-family: var(--site-font-title, Cinzel, Georgia, serif);
  font-size: clamp(1.65rem, 3vw, 2.55rem);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-shadow: 0 5px 22px rgba(0, 0, 0, 0.72);
}

.section-title-row p {
  margin: 8px 0 0;
  color: rgba(245, 234, 215, 0.72);
}

/* ===============================
   God Selection Header
   =============================== */

.selection-section.god-selection-active .section-title-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 76px;
  margin-bottom: 18px;
  padding-left: 96px;
}

.selection-section.god-selection-active .section-title-row > div {
  display: flex;
  align-items: center;
  gap: 22px;
}

.selection-section.god-selection-active .selected-label,
.selection-section.god-selection-active #selectionDescription {
  display: none;
}

.selection-section.god-selection-active .section-title-row h2 {
  display: flex;
  align-items: center;
  gap: 22px;
  margin: 0;
  color: var(--text);
  font-size: clamp(1.55rem, 2.6vw, 2.25rem);
  letter-spacing: -0.035em;
}

.selection-section.god-selection-active .section-title-row h2::before {
  content: "";
  width: 76px;
  height: 2px;
  flex: 0 0 auto;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 225, 160, 0.95),
    rgba(255, 225, 160, 0.4),
    transparent
  );
  box-shadow: 0 0 12px rgba(255, 225, 160, 0.32);
}

.selection-section.god-selection-active .section-title-row h2::after {
  content: "";
  width: 220px;
  height: 2px;
  flex: 0 0 auto;
  background: linear-gradient(
    90deg,
    rgba(255, 225, 160, 0.95),
    rgba(255, 225, 160, 0.32),
    transparent
  );
  box-shadow: 0 0 12px rgba(255, 225, 160, 0.28);
}

/* ===============================
   Back Icon Button
   =============================== */

.back-icon-button {
  position: absolute;
  left: 22px;
  top: 50%;
  z-index: 30;
  width: 74px;
  height: 74px;
  padding: 0;
  border: none;
  background:
    image-set(
      url("../assets/optimized/images/ui/BackButton_Default.5652d2f663f8.webp") type("image/webp"),
      url("../assets/images/ui/BackButton_Default.93f7f4076d9c.png") type("image/png")
    ) center / contain no-repeat;
  cursor: pointer;
  filter:
    drop-shadow(0 8px 16px rgba(0, 0, 0, 0.36))
    drop-shadow(0 0 10px rgba(255, 225, 160, 0.08));
  transform: translateY(-50%) scale(1);
  transition:
    transform var(--transition-fast),
    filter var(--transition-fast),
    opacity var(--transition-fast);
}

.back-icon-button:hover {
  background-image: image-set(
    url("../assets/optimized/images/ui/BackButton_Hovered.cbf8a3169489.webp") type("image/webp"),
    url("../assets/images/ui/BackButton_Hovered.52aceae9117f.png") type("image/png")
  );
  transform: translateY(-50%) scale(1.08);
  filter:
    drop-shadow(0 10px 20px rgba(0, 0, 0, 0.44))
    drop-shadow(0 0 16px rgba(255, 225, 160, 0.18));
}

.back-icon-button:active {
  transform: translateY(-50%) scale(0.98);
}

.back-icon-button:focus-visible {
  outline: 2px solid rgba(255, 225, 160, 0.85);
  outline-offset: 4px;
  border-radius: 8px;
}

.selection-section.has-pantheon-bg .selection-stage {
  padding-left: 76px;
}

.selection-stage {
  position: relative;
  z-index: 2;
}

.pantheon-grid,
.god-grid {
  display: grid;
  transition:
    opacity var(--transition-med),
    transform var(--transition-med),
    filter var(--transition-med);
}

.pantheon-grid {
  grid-template-columns: repeat(3, minmax(240px, 1fr));
  justify-content: space-evenly;
  justify-items: center;
  align-items: start;
  row-gap: 50px;
  column-gap: 28px;
  width: 100%;
}

.god-grid {
  grid-template-columns: repeat(auto-fit, 260px);
  justify-content: center;
  justify-items: center;
  align-items: start;
  row-gap: 26px;
  column-gap: 18px;
  width: 100%;
}

.pantheon-grid.leaving,
.god-grid.leaving {
  opacity: 0;
  transform: translateY(18px) scale(0.98);
  filter: blur(4px);
}

.pantheon-grid.entering,
.god-grid.entering {
  animation: selectionEnter 520ms cubic-bezier(0.2, 0.75, 0.2, 1) both;
}

@keyframes selectionEnter {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.98);
    filter: blur(4px);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

/* ===============================
   Shared Medallion Label
   =============================== */

.nameplate {
  position: absolute;
  left: 50%;
  z-index: 200;
  transform: translateX(-50%);
  display: grid;
  place-items: center;
  padding: 12px 34px;
  clip-path: polygon(
    3% 16%,
    17% 29%,
    34% 38%,
    50% 42%,
    66% 38%,
    83% 29%,
    97% 16%,
    95% 86%,
    72% 94%,
    50% 97%,
    28% 94%,
    5% 86%
  );
  border: 1px solid rgba(255, 225, 160, 0.26);
  background:
    linear-gradient(180deg, rgba(13, 15, 24, 0.9), rgba(4, 6, 12, 0.98)),
    radial-gradient(circle at 50% 0%, rgba(255, 225, 160, 0.16), transparent 70%);
  box-shadow:
    0 10px 22px rgba(0, 0, 0, 0.36),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  isolation: isolate;
}

.nameplate::before {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  top: 4px;
  z-index: 1;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255, 225, 160, 0.72), transparent);
  opacity: 0.85;
}

.nameplate::after {
  content: "";
  position: absolute;
  left: 14%;
  right: 14%;
  bottom: 5px;
  z-index: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 225, 160, 0.42), transparent);
  opacity: 0.75;
}

.nameplate span {
  position: relative;
  z-index: 220;
  display: block;
  color: var(--text);
  font-weight: 950;
  text-transform: uppercase;
  line-height: 1;
  text-shadow:
    0 2px 8px rgba(0, 0, 0, 0.95),
    0 0 14px rgba(255, 220, 150, 0.16);
}

/* ===============================
   Pantheon Cards
   =============================== */

.pantheon-card {
  position: relative;
  width: 300px;
  height: 370px;
  padding: 0;
  overflow: visible;
  border: none;
  background: transparent;
  cursor: pointer;
  isolation: isolate;
  transform: translateY(0) scale(1);
  transition:
    transform var(--transition-med),
    filter var(--transition-med),
    opacity var(--transition-med);
}

.pantheon-card:hover {
  transform: translateY(-7px) scale(1.035);
}

/* ===============================
   Major God Cards
   =============================== */

.god-card {
  position: relative;
  width: 260px;
  height: 340px;
  padding: 0;
  overflow: visible;
  border: none;
  background: transparent;
  cursor: pointer;
  isolation: isolate;
  transform: translateY(14px);
  opacity: 0;
  animation: godReveal 520ms cubic-bezier(0.2, 0.75, 0.2, 1) forwards;
  transition:
    transform var(--transition-med),
    filter var(--transition-med),
    opacity var(--transition-med);
}

.god-card:hover {
  transform: translateY(-7px) scale(1.035);
}

.god-card::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 12px;
  z-index: 0;
  width: 225px;
  height: 285px;
  transform: translateX(-50%);
  border-radius: 50% / 44%;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 45%, rgba(0, 0, 0, 0.42), transparent 68%),
    radial-gradient(circle at 50% 20%, rgba(255, 216, 145, 0.12), transparent 62%);
  box-shadow:
    0 12px 22px rgba(0, 0, 0, 0.34),
    0 0 16px rgba(255, 216, 145, 0.08);
}

.god-card::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 10px;
  z-index: 0;
  width: 225px;
  height: 285px;
  transform: translateX(-50%);
  border-radius: 50% / 44%;
  opacity: 0;
  pointer-events: none;
  background:
    conic-gradient(
      from 180deg,
      transparent,
      rgba(255, 230, 170, 0.18),
      transparent,
      rgba(111, 168, 255, 0.12),
      transparent
    );
  filter: blur(18px);
  animation: rotateGlow 6s linear infinite;
  transition: opacity var(--transition-med);
}

.god-card:hover::after {
  opacity: 1;
}

.god-icon-shell {
  position: absolute;
  left: 50%;
  top: 0;
  z-index: 10;
  width: 225px;
  height: 285px;
  transform: translateX(-50%);
  border-radius: 50% / 44%;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 225, 160, 0.18), transparent 52%),
    rgba(0, 0, 0, 0.24);
  box-shadow:
    inset 0 0 0 2px rgba(255, 225, 160, 0.32),
    inset 0 0 0 8px rgba(7, 9, 16, 0.42),
    inset 0 0 30px rgba(255, 225, 160, 0.09),
    0 0 0 1px rgba(255, 225, 160, 0.28);
}

.god-icon-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: 50% / 44%;
  background:
    radial-gradient(circle at 50% 16%, rgba(255, 230, 170, 0.14), transparent 34%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.02), rgba(0, 0, 0, 0.42));
  pointer-events: none;
}

.god-icon-shell::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  border-radius: 50% / 44%;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 14%, rgba(255, 235, 181, 0.22), transparent 25%),
    radial-gradient(circle at 50% 55%, transparent 64%, rgba(0, 0, 0, 0.12) 78%, rgba(0, 0, 0, 0.42) 100%);
}

.god-art {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: 50% / 44%;
  background-position: center top;
  background-size: cover;
  background-repeat: no-repeat;
  transform: scale(1.01);
  transition:
    transform var(--transition-slow),
    filter var(--transition-med);
}

.god-card:hover .god-art {
  transform: scale(1.045);
  filter: saturate(1.12) contrast(1.04);
}

.god-frame {
  display: none;
}

.god-nameplate {
  bottom: 0;
  z-index: 220;
  width: 270px;
  min-height: 54px;
}

.god-nameplate span {
  z-index: 240;
  font-size: 1.05rem;
  letter-spacing: 0.12em;
}

@keyframes rotateGlow {
  from {
    transform: translateX(-50%) rotate(0deg);
  }

  to {
    transform: translateX(-50%) rotate(360deg);
  }
}

@keyframes godReveal {
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@media (max-width: 1120px) {
  .pantheon-grid {
    grid-template-columns: repeat(2, minmax(240px, 1fr));
    justify-content: space-evenly;
    justify-items: center;
  }

  .god-grid {
    grid-template-columns: repeat(2, 260px);
    justify-content: center;
  }
}

@media (max-width: 820px) {
  .section-title-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .back-icon-button {
    left: 16px;
    top: 24px;
    width: 58px;
    height: 58px;
    transform: none;
  }

  .back-icon-button:hover {
    transform: scale(1.06);
  }

  .back-icon-button:active {
    transform: scale(0.98);
  }

  .selection-section.has-pantheon-bg .selection-stage {
    padding-left: 0;
  }

  .selection-section.god-selection-active .section-title-row {
    min-height: 72px;
    margin-bottom: 14px;
    padding-top: 54px;
    padding-left: 0;
  }

  .selection-section.god-selection-active .section-title-row h2 {
    gap: 14px;
    font-size: 1.55rem;
  }

  .selection-section.god-selection-active .section-title-row h2::before {
    width: 42px;
  }

  .selection-section.god-selection-active .section-title-row h2::after {
    width: 110px;
  }
}

@media (max-width: 640px) {
  .selection-section {
    min-height: 520px;
  }

  .pantheon-grid,
  .god-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .pantheon-card {
    width: 300px;
    height: 370px;
    margin: 0 auto;
  }

  .god-card {
    width: 260px;
    height: 340px;
    margin: 0 auto;
  }
}

@media (max-width: 520px) {
  .hero-header h1 {
    font-size: 3rem;
  }

  .hero-header p {
    font-size: 0.98rem;
  }

  .pantheon-card {
    width: 260px;
    height: 330px;
  }

  .god-card {
    width: 235px;
    height: 315px;
  }

  .god-card::before,
  .god-card::after {
    width: 205px;
    height: 260px;
  }

  .god-icon-shell {
    width: 205px;
    height: 260px;
  }

  .god-nameplate {
    width: 245px;
    min-height: 50px;
  }

  .god-nameplate span {
    font-size: 0.96rem;
  }

  .back-icon-button {
    width: 52px;
    height: 52px;
  }
}


/* ===============================
   Pantheon Infinite Carousel
   Isolated Image Version
   =============================== */

body.using-carousel #pantheonGrid.pantheon-carousel {
  position: relative;
  display: block;
  width: min(1180px, 100%);
  min-height: 500px;
  margin: 0 auto;
  padding: 10px 0 88px;
  perspective: 1300px;
}

body.using-carousel .pantheon-carousel-viewport {
  position: relative;
  height: 420px;
  overflow: visible;
  display: flex;
  align-items: center;
  justify-content: center;
  mask-image: none;
}

body.using-carousel .pantheon-carousel-track {
  position: relative;
  width: 100%;
  height: 100%;
}

/* Roll-out starting state:
   active pantheon appears as the center source icon;
   the others begin hidden behind it, then split outward. */
body.using-carousel #pantheonGrid.pantheon-carousel:not(.carousel-mounted) .pantheon-card.carousel-slide {
  transform:
    translate(-50%, -50%)
    translateX(0)
    translateZ(0)
    rotateY(0deg)
    scale(0.28);
  opacity: 0;
  filter: blur(8px) brightness(0.55);
}

body.using-carousel #pantheonGrid.pantheon-carousel:not(.carousel-mounted) .pantheon-card.carousel-slide.active {
  transform:
    translate(-50%, -50%)
    translateX(0)
    translateZ(46px)
    rotateY(0deg)
    scale(1.08);
  opacity: 1;
  filter:
    saturate(1.12)
    brightness(1.08)
    drop-shadow(0 28px 48px rgba(0, 0, 0, 0.46));
}

/* During the first rollout only, stagger side icons outward */
body.using-carousel #pantheonGrid.pantheon-carousel.carousel-rollout.carousel-mounted .pantheon-card.carousel-slide {
  transition-delay: var(--roll-delay);
}

body.using-carousel #pantheonGrid.pantheon-carousel.carousel-rollout.carousel-mounted .pantheon-card.carousel-slide.active {
  transition-delay: 0ms;
}

/* Carousel slide positions */
body.using-carousel .pantheon-carousel .pantheon-card.carousel-slide {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 340px;
  height: 390px;
  padding: 0;
  border: none;
  background: transparent;
  overflow: visible;
  cursor: pointer;
  isolation: isolate;

  transform:
    translate(-50%, -50%)
    translateX(calc(var(--offset) * 255px))
    translateZ(calc((2 - var(--distance)) * 20px))
    rotateY(calc(var(--offset) * -13deg))
    scale(calc(1 - (var(--distance) * 0.13)));

  opacity: calc(1 - (var(--distance) * 0.24));
  z-index: calc(30 - var(--distance));

  transition:
    transform 720ms cubic-bezier(0.16, 0.9, 0.18, 1),
    opacity 620ms ease,
    filter 620ms ease;

  filter:
    saturate(calc(1 - (var(--distance) * 0.13)))
    brightness(calc(1 - (var(--distance) * 0.12)));
}

body.using-carousel .pantheon-carousel .pantheon-card.carousel-slide.active {
  opacity: 1;
  z-index: 50;
  transform:
    translate(-50%, -50%)
    translateX(calc(var(--offset) * 255px))
    translateZ(44px)
    rotateY(0deg)
    scale(1.18);
  filter:
    saturate(1.16)
    brightness(1.08)
    drop-shadow(0 30px 52px rgba(0, 0, 0, 0.46));
}

body.using-carousel .pantheon-carousel .pantheon-card.carousel-slide.near {
  cursor: pointer;
}

body.using-carousel .pantheon-carousel .pantheon-card.carousel-slide.far {
  pointer-events: none;
}

body.using-carousel .pantheon-carousel .pantheon-card.carousel-slide[data-offset="-3"],
body.using-carousel .pantheon-carousel .pantheon-card.carousel-slide[data-offset="3"],
body.using-carousel .pantheon-carousel .pantheon-card.carousel-slide[data-offset="-4"],
body.using-carousel .pantheon-carousel .pantheon-card.carousel-slide[data-offset="4"] {
  opacity: 0;
  pointer-events: none;
}

body.using-carousel .pantheon-carousel .pantheon-card.carousel-slide:hover {
  transform:
    translate(-50%, -50%)
    translateX(calc(var(--offset) * 255px))
    translateZ(calc((2 - var(--distance)) * 20px))
    rotateY(calc(var(--offset) * -13deg))
    scale(calc(1 - (var(--distance) * 0.13)));
}

body.using-carousel .pantheon-carousel .pantheon-card.carousel-slide.active:hover {
  transform:
    translate(-50%, -50%)
    translateX(calc(var(--offset) * 255px))
    translateZ(54px)
    rotateY(0deg)
    scale(1.23);
}

/* Pantheon icon only; does not affect individual god icons */

body.using-carousel .pantheon-carousel .carousel-pantheon-visual {
  position: absolute;
  left: 50%;
  top: 8px;
  z-index: 10;
  width: 280px;
  height: 280px;
  transform: translateX(-50%);
  display: grid;
  place-items: center;
  overflow: visible;
  pointer-events: none;
}

body.using-carousel .pantheon-carousel .carousel-pantheon-img {
  display: block !important;
  width: 280px !important;
  height: 280px !important;
  max-width: none !important;
  max-height: none !important;
  min-width: 280px;
  min-height: 280px;
  object-fit: contain;
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
  filter:
    drop-shadow(0 14px 26px rgba(0, 0, 0, 0.5))
    drop-shadow(0 0 18px rgba(255, 228, 157, 0.18));
  transition:
    filter 520ms ease,
    transform 520ms ease;
}

body.using-carousel .pantheon-carousel .pantheon-card.active .carousel-pantheon-img {
  filter:
    drop-shadow(0 20px 36px rgba(0, 0, 0, 0.58))
    drop-shadow(0 0 30px rgba(255, 228, 157, 0.36));
}

body.using-carousel .pantheon-carousel .carousel-pantheon-img-fallback {
  border-radius: 999px;
  background:
    radial-gradient(circle at 50% 20%, rgba(255, 225, 160, 0.24), transparent 36%),
    linear-gradient(135deg, rgba(255, 225, 160, 0.12), rgba(120, 169, 255, 0.08)),
    rgba(0, 0, 0, 0.28);
}

body.using-carousel .pantheon-carousel .carousel-pantheon-nameplate {
  position: absolute;
  left: 50%;
  bottom: 10px;
  z-index: 220;
  width: 330px;
  min-height: 62px;
  transform: translateX(-50%);
}

body.using-carousel .pantheon-carousel .pantheon-card.active .carousel-pantheon-nameplate {
  width: 350px;
  min-height: 66px;
}

body.using-carousel .pantheon-carousel .pantheon-card.active .carousel-pantheon-nameplate span {
  position: relative;
  z-index: 240;
  font-size: 1.26rem;
  letter-spacing: 0.16em;
}

/* Image-button controls */

body.using-carousel .pantheon-carousel-controls {
  position: absolute;
  inset: 0;
  z-index: 60;
  pointer-events: none;
}

body.using-carousel .pantheon-carousel-button {
  position: absolute;
  top: 42%;
  z-index: 70;
  width: 78px;
  height: 78px;
  padding: 0;
  border: none;
  background-color: transparent;
  background-position: center;
  background-size: contain;
  background-repeat: no-repeat;
  cursor: pointer;
  pointer-events: auto;
  filter:
    drop-shadow(0 10px 18px rgba(0, 0, 0, 0.42))
    drop-shadow(0 0 12px rgba(255, 225, 160, 0.12));
  transition:
    transform 160ms ease,
    filter 160ms ease,
    opacity 160ms ease;
}

body.using-carousel .pantheon-carousel-button:hover {
  transform: scale(1.08);
  filter:
    drop-shadow(0 12px 22px rgba(0, 0, 0, 0.5))
    drop-shadow(0 0 18px rgba(255, 225, 160, 0.22));
}

body.using-carousel .pantheon-carousel-button:active {
  transform: scale(0.98);
}

body.using-carousel .pantheon-carousel-button-back {
  left: 4px;
  background-image: image-set(
    url("../assets/optimized/images/ui/BackButton_Default.5652d2f663f8.webp") type("image/webp"),
    url("../assets/images/ui/BackButton_Default.93f7f4076d9c.png") type("image/png")
  );
}

body.using-carousel .pantheon-carousel-button-forward {
  right: 4px;
  background-image: image-set(
    url("../assets/optimized/images/ui/ForwardButton_Default.f62635133c39.webp") type("image/webp"),
    url("../assets/images/ui/ForwardButton_Default.79c9d0e48651.png") type("image/png")
  );
}

@media (max-width: 900px) {
  body.using-carousel #pantheonGrid.pantheon-carousel {
    min-height: 440px;
    padding-bottom: 84px;
  }

  body.using-carousel .pantheon-carousel-viewport {
    height: 360px;
  }

  body.using-carousel .pantheon-carousel .pantheon-card.carousel-slide {
    width: 295px;
    height: 335px;
    transform:
      translate(-50%, -50%)
      translateX(calc(var(--offset) * 198px))
      rotateY(calc(var(--offset) * -10deg))
      scale(calc(1 - (var(--distance) * 0.12)));
  }

  body.using-carousel .pantheon-carousel .pantheon-card.carousel-slide.active {
    transform:
      translate(-50%, -50%)
      translateX(calc(var(--offset) * 198px))
      rotateY(0deg)
      scale(1.12);
  }

  body.using-carousel .pantheon-carousel .pantheon-card.carousel-slide:hover {
    transform:
      translate(-50%, -50%)
      translateX(calc(var(--offset) * 198px))
      rotateY(calc(var(--offset) * -10deg))
      scale(calc(1 - (var(--distance) * 0.12)));
  }

  body.using-carousel .pantheon-carousel .pantheon-card.carousel-slide.active:hover {
    transform:
      translate(-50%, -50%)
      translateX(calc(var(--offset) * 198px))
      rotateY(0deg)
      scale(1.16);
  }

  body.using-carousel .pantheon-carousel .carousel-pantheon-visual,
  body.using-carousel .pantheon-carousel .carousel-pantheon-img {
    width: 230px !important;
    height: 230px !important;
    min-width: 230px;
    min-height: 230px;
  }

  body.using-carousel .pantheon-carousel-button {
    width: 62px;
    height: 62px;
  }
}

@media (max-width: 620px) {
  body.using-carousel #pantheonGrid.pantheon-carousel {
    min-height: 390px;
  }

  body.using-carousel .pantheon-carousel-viewport {
    height: 318px;
  }

  body.using-carousel .pantheon-carousel .pantheon-card.carousel-slide {
    width: 250px;
    height: 292px;
    transform:
      translate(-50%, -50%)
      translateX(calc(var(--offset) * 138px))
      scale(calc(1 - (var(--distance) * 0.14)));
  }

  body.using-carousel .pantheon-carousel .pantheon-card.carousel-slide.active {
    transform:
      translate(-50%, -50%)
      translateX(calc(var(--offset) * 138px))
      scale(1.08);
  }

  body.using-carousel .pantheon-carousel .pantheon-card.carousel-slide.near {
    opacity: 0.42;
  }

  body.using-carousel .pantheon-carousel .carousel-pantheon-visual,
  body.using-carousel .pantheon-carousel .carousel-pantheon-img {
    width: 190px !important;
    height: 190px !important;
    min-width: 190px;
    min-height: 190px;
  }

  body.using-carousel .pantheon-carousel-button {
    width: 54px;
    height: 54px;
  }

  body.using-carousel .pantheon-carousel-button-back {
    left: -4px;
  }

  body.using-carousel .pantheon-carousel-button-forward {
    right: -4px;
  }
}

/* ===============================
   Major God Rollout Animation
   =============================== */

body.using-carousel .god-grid.god-grid-rollout {
  position: relative;
}

body.using-carousel .god-grid.god-grid-rollout .god-card {
  animation: none !important;
  opacity: 1;
  transition:
    transform 520ms cubic-bezier(0.16, 0.9, 0.18, 1),
    opacity 520ms ease,
    filter 520ms ease;
  transition-delay: var(--god-roll-delay, 0ms);
}

body.using-carousel .god-grid.god-grid-rollout:not(.god-grid-mounted) .god-card {
  transform:
    translate(var(--god-roll-x, 0), var(--god-roll-y, 0))
    scale(0.22);
  opacity: 0;
  filter: blur(8px) brightness(0.56);
}

body.using-carousel .god-grid.god-grid-rollout:not(.god-grid-mounted) .god-card.god-source {
  transform:
    translate(var(--god-roll-x, 0), var(--god-roll-y, 0))
    scale(1.04);
  opacity: 1;
  filter:
    saturate(1.12)
    brightness(1.08)
    drop-shadow(0 24px 46px rgba(0, 0, 0, 0.48));
}

body.using-carousel .god-grid.god-grid-rollout.god-grid-mounted .god-card {
  transform: translate(0, 0) scale(1);
  opacity: 1;
  filter: none;
}

body.using-carousel .god-grid.god-grid-mounted .god-card {
  animation: none !important;
  opacity: 1;
  transform: translateY(0);
}

body.using-carousel .god-grid.god-grid-mounted .god-card:hover {
  transform: translateY(-7px) scale(1.035);
}
/* Build Orders integration links */
.compact-hero-header {
  max-width: 720px;
  margin-bottom: clamp(20px, 2.5vw, 30px);
}

.compact-hero-header .eyebrow {
  margin-bottom: 0.7rem;
  font-size: 0.72rem;
}

.compact-hero-header h1 {
  font-size: clamp(2.15rem, 5vw, 4.25rem);
  line-height: 0.98;
  -webkit-text-stroke-width: 0.8px;
  text-shadow:
    0 1px 0 #fff1bf,
    0 2px 0 rgba(112, 70, 22, 0.72),
    0 10px 30px rgba(0, 0, 0, 0.52);
}

.build-site-link-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  width: min(920px, 100%);
  margin: clamp(1.4rem, 3vw, 2.4rem) auto 0;
  padding: 0.85rem;
  border: 1px solid rgba(215, 178, 104, 0.24);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 225, 160, 0.055), rgba(0, 0, 0, 0.16)),
    rgba(6, 8, 14, 0.52);
  box-shadow:
    inset 0 0 0 1px rgba(255, 235, 180, 0.035),
    0 18px 42px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(10px);
}

.build-site-link-strip a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.25rem;
  padding: 0.55rem 1rem;
  border: 1px solid rgba(215, 178, 104, 0.32);
  border-radius: 999px;
  color: #f7e7b8;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-decoration: none;
  text-transform: uppercase;
  background: rgba(255, 225, 160, 0.06);
  transition:
    border-color 160ms ease,
    background 160ms ease,
    transform 160ms ease;
}

.build-site-link-strip a:hover,
.build-site-link-strip a:focus-visible {
  border-color: rgba(255, 226, 164, 0.7);
  background: rgba(255, 225, 160, 0.13);
  transform: translateY(-1px);
}

@media (max-width: 760px) {
  .build-site-link-strip {
    border-radius: 20px;
  }

  .build-site-link-strip a {
    width: 100%;
  }
}
