/*
  Hexfall height-driven hero
  --------------------------
  This stylesheet is scoped to .hexfall-hero so it can be pasted into an
  existing WordPress/WPBakery page without affecting the rest of the site.
*/

/*
  Hide the Drile theme breadcrumb/title wrapper only on the Hexfall page.
  DOM source: body.page-id-25126 > #main.wrapper > .breadcrumb-title-wrapper.
  This wrapper contains both the breadcrumb trail and the H1 page title above
  the WPBakery hero.
*/
body.page-id-25126 #main.wrapper > .breadcrumb-title-wrapper.breadcrumb-v2 {
  display: none;
}

/*
  Remove the theme/WPBakery top spacing only on the Hexfall landing page.
  The hidden breadcrumb/title wrapper can leave the first content row sitting
  below the transparent menu, which shows as a white strip above the hero.
*/
body.page-id-25126 #main.wrapper > .page-container.show_breadcrumb_v2,
body.page-id-25126 #main.wrapper #main-content,
body.page-id-25126 #main.wrapper #primary,
body.page-id-25126 #main.wrapper article#post-25126 {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

body.page-id-25126 #main.wrapper .wpb-content-wrapper > .vc_row:first-child,
body.page-id-25126 #main.wrapper .wpb-content-wrapper > .vc_row:first-child > .wpb_column,
body.page-id-25126 #main.wrapper .wpb-content-wrapper > .vc_row:first-child > .wpb_column > .wpb_wrapper,
body.page-id-25126 #main.wrapper .wpb-content-wrapper > .vc_row:first-child .wpb_raw_code {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

.hexfall-hero {
  /*
    Height-driven scaling controls.
    On desktop, background and both character images share the same visual
    height so their bottom edges always align.
  */
  --hf-header-overlap: 74px;
  --hf-hero-height: 100vh;
  --hf-top-bleed: 48px;
  --hf-background-bottom-bleed: 3px;

  /*
    Background-2.png is 3072x2048, aspect ratio 1.5.
    Cover-height = max(viewport height + top bleed, viewport width / 1.5).
    The side images use the same computed height so all three image layers
    share one displayed height and one bottom edge.
  */
  --hf-background-cover-height: max(calc(100vh + var(--hf-top-bleed)), 66.6667vw);
  --hf-background-height: calc(var(--hf-background-cover-height) + var(--hf-background-bottom-bleed));
  --hf-left-height: var(--hf-background-cover-height);
  --hf-right-height: var(--hf-background-cover-height);

  --hf-background-x: 50%;
  --hf-background-y: 100%;

  --hf-left-x: 0;
  --hf-left-y: 50%;

  --hf-right-x: 100%;
  --hf-right-y: 50%;

  --hf-left-z: 2;
  --hf-right-z: 2;
  --hf-background-z: 1;
  --hf-content-z: 3;

  --hf-content-top: 50%;
  --hf-content-offset-y: calc(var(--hf-top-bleed) / 2);
  --hf-content-width: min(46vw, 680px);
  --hf-content-panel-bg: rgba(255, 255, 255, 0.72);
  --hf-content-panel-padding: clamp(14px, 2vw, 26px);
  --hf-logo-width: min(34vw, 560px);
  --hf-logo-top: 50%;
  --hf-logo-offset-y: 0px;
  --hf-divider-width: min(24vw, 340px);
  --hf-features-width: min(100%, 540px);
  --hf-feature-icon-size: clamp(68px, 6vw, 108px);
  --hf-logo-start-scale: 0.96;
  --hf-logo-end-scale: 1.05;
  --hf-logo-fade-delay: 0.4s;
  --hf-logo-fade-duration: 0.8s;
  --hf-motion-delay: 1.2s;
  --hf-motion-duration: 4s;
  --hf-divider-reveal-delay: 0.95s;
  --hf-copy-reveal-delay: 1.08s;
  --hf-features-reveal-delay: 1.28s;
  --hf-cta-reveal-delay: 1.48s;
  --hf-content-reveal-duration: 0.7s;
  --hf-content-reveal-distance: 14px;

  position: relative;
  width: 100vw;
  height: calc(var(--hf-hero-height) + var(--hf-top-bleed));
  min-height: calc(var(--hf-hero-height) + var(--hf-top-bleed));
  margin-top: calc(-1 * (var(--hf-header-overlap) + var(--hf-top-bleed)));
  margin-left: calc(50% - 50vw);
  overflow: hidden;
  background: #000000;
  isolation: isolate;
}

.hexfall-hero__background {
  /*
    Background-2.png is environmental artwork.
    It emulates background-size: cover with an image layer:
    height is max(100vh + top bleed, 100vw / background aspect ratio), width
    remains auto, and horizontal side cropping is acceptable.
  */
  position: absolute;
  left: var(--hf-background-x);
  bottom: calc(100% - var(--hf-background-y) - var(--hf-background-bottom-bleed));
  z-index: var(--hf-background-z);
  display: block;
  width: auto;
  max-width: none;
  height: var(--hf-background-height);
  max-height: none;
  object-fit: contain;
  object-position: center bottom;
  transform: translateX(-50%);
  pointer-events: none;
}

.hexfall-hero__artwork {
  position: absolute;
  inset: 0;
  z-index: var(--hf-background-z);
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hexfall-hero__artwork-image {
  display: block;
  width: 100%;
  max-width: none;
  height: 100% !important;
  object-fit: cover;
  object-position: center;
}

.hexfall-hero__side-image {
  /*
    Character artwork inherits the background's computed cover height.
    Do not use width: 100%, cover, or a changing container that alters height.
    The vertical center of each character image is aligned to the viewport
    center, so important upper-body detail stays prominent. Bottom cropping is
    acceptable when the image is taller than the visible hero.
  */
  position: absolute;
  display: block;
  width: auto;
  max-width: none;
  max-height: none;
  object-fit: contain;
  pointer-events: none;
}

.hexfall-hero__side-image--left {
  left: var(--hf-left-x);
  top: var(--hf-left-y);
  z-index: var(--hf-left-z);
  height: var(--hf-left-height);
  transform: translateY(-50%);
}

.hexfall-hero__side-image--right {
  right: calc(100% - var(--hf-right-x));
  top: var(--hf-right-y);
  z-index: var(--hf-right-z);
  height: var(--hf-right-height);
  transform: translateY(-50%);
}

.hexfall-hero__content {
  /*
    Central content layer.
    It sits above the character images so copy/icons are never hidden behind
    side artwork. The content is centered in the empty middle of the hero.
  */
  position: absolute;
  top: var(--hf-content-top);
  left: 50%;
  z-index: var(--hf-content-z);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: var(--hf-content-width);
  max-width: 92vw;
  color: #efe3c3;
  text-align: center;
  transform: translate(-50%, -50%) translateY(calc(var(--hf-content-offset-y) + var(--hf-logo-offset-y)));
  pointer-events: none;
}

.hexfall-hero__logo {
  display: block;
  width: var(--hf-logo-width);
  max-width: 92vw;
  height: auto;
  opacity: 0;
  transform: scale(var(--hf-logo-start-scale));
  transform-origin: center center;
  animation:
    hf-hero-logo-fade var(--hf-logo-fade-duration) ease-out var(--hf-logo-fade-delay) 1 forwards,
    hf-hero-logo-forward var(--hf-motion-duration) ease-out var(--hf-motion-delay) 1 forwards;
  will-change: opacity, transform;
}

.hexfall-hero__divider {
  display: block;
  height: auto;
  --hf-reveal-opacity: 0.92;
  opacity: 0;
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.55));
  pointer-events: none;
  animation: hf-hero-content-reveal var(--hf-content-reveal-duration) ease-out var(--hf-divider-reveal-delay) 1 forwards;
}

.hexfall-hero__divider--horizontal {
  width: var(--hf-divider-width);
  max-width: 78%;
  margin: clamp(8px, 1.3vw, 16px) 0 clamp(10px, 1.5vw, 18px);
}

.hexfall-hero__copy {
  max-width: 100%;
  opacity: 0;
  animation: hf-hero-content-reveal var(--hf-content-reveal-duration) ease-out var(--hf-copy-reveal-delay) 1 forwards;
}

.hexfall-hero__headline,
.hexfall-hero__headline_2,
.hexfall-hero__subheadline,
.hexfall-hero__feature-title,
.hexfall-hero__feature-text {
  margin: 0;
}

.hexfall-hero__headline {
  color: #F0D391;
  font-family: Cinzel, Georgia, "Times New Roman", serif;
  font-size: clamp(21px, 2.25vw, 38px);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hexfall-hero__headline_2 {
  color: #17100b;
  font-family: Cinzel, Georgia, "Times New Roman", serif;
  font-size: clamp(21px, 2.25vw, 38px);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hexfall-hero__subheadline {
  margin-top: clamp(8px, 1vw, 14px);
  color: #211711;
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  font-size: clamp(14px, 1.35vw, 23px);
  font-weight: 600;
  line-height: 1.25;
}

.hexfall-hero__features {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  justify-items: center;
  column-gap: clamp(18px, 2vw, 30px);
  width: var(--hf-features-width);
  max-width: 100%;
  min-width: 0;
  margin-top: clamp(16px, 2vw, 28px);
  opacity: 0;
  animation: hf-hero-content-reveal var(--hf-content-reveal-duration) ease-out var(--hf-features-reveal-delay) 1 forwards;
}

.hexfall-hero__feature:nth-child(1) {
  grid-column: 1;
}

.hexfall-hero__feature:nth-child(3) {
  grid-column: 2;
}

.hexfall-hero__feature:nth-child(5) {
  grid-column: 3;
}

.hexfall-hero__feature {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
  width: 100%;
  color: #e9dbc0;
  text-align: center;
}

.hexfall-hero__feature-icon {
  display: block;
  width: var(--hf-feature-icon-size);
  height: var(--hf-feature-icon-size);
  margin: 0 auto clamp(6px, 0.8vw, 10px);
  object-fit: contain;
}

.hexfall-hero__feature-title {
  display: block;
  align-self: center;
  width: max-content;
  max-width: none;
  margin-inline: auto;
  color: #17100b;
  font-family: Cinzel, Georgia, "Times New Roman", serif;
  font-size: clamp(12px, 1vw, 17px);
  font-weight: 600;
  line-height: 1.05;
  text-transform: uppercase;
  white-space: nowrap;
  text-align: center;
}

.hexfall-hero__feature-text {
  margin-top: 5px;
  margin-inline: auto;
  max-width: 145px;
  color: #211711;
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  font-size: clamp(11px, 0.82vw, 14px);
  line-height: 1.25;
  text-align: center;
}

.hexfall-hero__feature-separator {
  display: block;
  position: absolute;
  top: 50%;
  width: clamp(28px, 3vw, 48px);
  height: auto;
  opacity: 0.72;
  transform: translate(-50%, -50%) rotate(90deg);
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.6));
  pointer-events: none;
}

.hexfall-hero__feature-separator:nth-child(2) {
  left: 33.333%;
}

.hexfall-hero__feature-separator:nth-child(4) {
  left: 66.666%;
}

.hexfall-hero__cta {
  display: inline-flex;
  justify-content: center;
  margin-top: clamp(16px, 2.1vw, 30px);
  opacity: 0;
  pointer-events: auto;
  animation: hf-hero-content-reveal var(--hf-content-reveal-duration) ease-out var(--hf-cta-reveal-delay) 1 forwards;
  transition: transform 180ms ease, filter 180ms ease;
}

.hexfall-hero__cta:hover,
.hexfall-hero__cta:focus-visible {
  transform: translateY(-2px);
  filter: brightness(1.08);
}

.hexfall-hero__cta-image {
  display: block;
  width: min(34vw, 330px);
  max-width: 78vw;
  height: auto;
}

/*
  Full-width video sections.
  line-height: 0 removes the inline media gap browsers can add below video.
*/
.hexfall-hero-video {
  position: relative;
  isolation: isolate;
  display: block;
  width: 100vw;
  margin: 0 0 0 calc(50% - 50vw);
  padding: 0;
  overflow: hidden;
  line-height: 0;
  background: #000000;
}

.hexfall-hero-video:not(.hexfall-gameplay-video)::before,
.hexfall-hero-video:not(.hexfall-gameplay-video)::after {
  content: "";
  position: absolute;
  right: 0;
  left: 0;
  z-index: 2;
  pointer-events: none;
}

.hexfall-hero-video:not(.hexfall-gameplay-video)::before {
  top: 0;
  height: clamp(42px, 7vw, 130px);
  background: linear-gradient(180deg, rgba(6, 4, 3, 0.58), rgba(6, 4, 3, 0));
}

.hexfall-hero-video:not(.hexfall-gameplay-video)::after {
  bottom: 0;
  height: clamp(64px, 9vw, 170px);
  background: linear-gradient(0deg, rgba(9, 7, 5, 0.72), rgba(9, 7, 5, 0));
}

.hexfall-hero-video__media {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
  padding: 0;
}

/*
  Gameplay video below the reasons section.
  This source is lower resolution, so desktop/tablet keeps it contained and
  centered over a temporary dark background. Phone screens return to full width.
*/
.hexfall-gameplay-video {
  position: relative;
  isolation: isolate;
  margin-top: -1px;
  padding: clamp(16px, 2vw, 26px) 0 clamp(14px, 1.8vw, 24px);
  overflow: hidden;
  line-height: 1;
  background:
    linear-gradient(rgba(8, 5, 3, 0.08), rgba(8, 5, 3, 0.18)),
    #0b0705;
}

.hexfall-gameplay-video__background {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  width: 100%;
  max-width: none;
  height: 100% !important;
  object-fit: cover;
  pointer-events: none;
}

.hexfall-gameplay-video__caption {
  position: relative;
  z-index: 1;
  display: block;
  max-width: min(92vw, 920px);
  margin: 0 auto;
  padding: 0;
  color: #eadcc0;
  font-family: Cinzel, Georgia, "Times New Roman", serif;
  font-size: clamp(38px, 4.2vw, 62px);
  font-weight: 700;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.62);
}

.hexfall-gameplay-video__caption::after {
  content: "";
  display: block;
  width: clamp(260px, 27vw, 350px);
  height: auto;
  aspect-ratio: 1728 / 241;
  margin: clamp(8px, 1vw, 12px) auto clamp(7px, 0.9vw, 11px);
  background-color: transparent;
  background-image: url("./optimized/rules-panel-top-ornament.webp");
  background-position: center;
  background-size: contain;
  background-repeat: no-repeat;
  pointer-events: none;
}

.hexfall-gameplay-video::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(8, 6, 4, 0.18), rgba(8, 6, 4, 0.04) 28%, rgba(8, 6, 4, 0.12) 74%, rgba(8, 6, 4, 0.22)),
    radial-gradient(circle at 50% 0%, rgba(232, 202, 138, 0.15), transparent 38%);
}

.hexfall-gameplay-video__title {
  position: relative;
  z-index: 1;
  margin: 0 0 clamp(10px, 1.4vw, 18px);
  color: #eadcc0;
  font-family: Cinzel, Georgia, "Times New Roman", serif;
  font-size: clamp(34px, 4.5vw, 72px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
  text-align: center;
  text-transform: uppercase;
  text-shadow: 0 3px 14px rgba(0, 0, 0, 0.62);
}

.hexfall-gameplay-video__divider {
  position: relative;
  z-index: 1;
  display: block;
  width: min(30vw, 300px);
  max-width: 74vw;
  height: auto;
  margin: 0 auto clamp(10px, 1.4vw, 18px);
  opacity: 0.9;
}

.hexfall-gameplay-video__subtitle {
  position: relative;
  z-index: 1;
  max-width: min(82vw, 720px);
  margin: 0 auto clamp(22px, 3vw, 44px);
  color: #eadcc0;
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  font-size: clamp(19px, 2vw, 30px);
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.62);
}

.hexfall-gameplay-video .hexfall-hero-video__media {
  position: relative;
  z-index: 1;
  box-sizing: border-box;
  width: min(78vw, 1120px);
  max-width: 1120px;
  margin: 0 auto;
  border: 1px solid rgba(232, 202, 138, 0.58);
  border-radius: 8px;
  background: #050302;
  box-shadow:
    0 0 0 6px rgba(20, 11, 6, 0.72),
    0 0 0 7px rgba(232, 202, 138, 0.22),
    0 22px 58px rgba(0, 0, 0, 0.58);
}

/*
  Real-life story before the close-up film and Why Play HEXFALL.
  The image sits beside this stylesheet, so the relative URL resolves from the
  live plugin directory without duplicating or relocating the supplied asset.
*/
.hexfall-real-life {
  position: relative;
  isolation: isolate;
  display: flex;
  width: 100vw;
  min-height: clamp(845px, 72.8vw, 1040px);
  margin: 0 0 0 calc(50% - 50vw);
  overflow: hidden;
  align-items: flex-end;
  justify-content: center;
  color: #eee2ca;
  background-color: #000000;
}

.hexfall-real-life__background {
  position: absolute;
  top: 0;
  left: 50%;
  z-index: 0;
  display: block;
  width: auto;
  max-width: none;
  height: 100% !important;
  transform: translateX(-50%);
  pointer-events: none;
}

.hexfall-real-life::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.96) 0%,
    rgba(0, 0, 0, 0.78) 16%,
    rgba(0, 0, 0, 0.4) 32%,
    rgba(0, 0, 0, 0.12) 46%,
    rgba(0, 0, 0, 0) 60%
  );
}

.hexfall-real-life__inner {
  position: relative;
  z-index: 1;
  box-sizing: border-box;
  width: min(100%, 860px);
  margin: 0 auto;
  padding: clamp(64px, 8vw, 104px) clamp(30px, 5vw, 64px);
  text-align: center;
}

.hexfall-real-life__text {
  max-width: 780px;
  margin: 0 auto;
  color: #eadfc9;
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  font-size: clamp(20px, 1.65vw, 27px);
  font-weight: 500;
  line-height: 1.5;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.92);
}

@media (max-width: 1050px) {
  .hexfall-real-life {
    min-height: clamp(806px, 101.4vw, 936px);
  }

  .hexfall-real-life__inner {
    width: min(100%, 800px);
    padding-inline: clamp(28px, 6vw, 52px);
  }

}

@media (max-width: 699px) {
  .hexfall-real-life {
    min-height: clamp(728px, 208vw, 884px);
    background-position: center center;
  }

  .hexfall-real-life::before {
    background: linear-gradient(
      0deg,
      rgba(0, 0, 0, 0.97) 0%,
      rgba(0, 0, 0, 0.82) 20%,
      rgba(0, 0, 0, 0.46) 38%,
      rgba(0, 0, 0, 0.14) 54%,
      rgba(0, 0, 0, 0) 68%
    );
  }

  .hexfall-real-life__inner {
    width: 100%;
    padding: 64px 24px;
  }

  .hexfall-real-life__text {
    max-width: 36rem;
    font-size: clamp(18px, 4.8vw, 21px);
    line-height: 1.48;
  }
}

/*
  Why Play Hexfall section.
  The panels use the supplied reasons-single-table.png as their actual panel
  artwork. No custom borders/cards are added around them.
*/
.hexfall-reasons {
  --hf-reasons-max-width: 1280px;
  --hf-reasons-panel-gap: clamp(22px, 3vw, 44px);
  --hf-reasons-panel-padding-x: clamp(30px, 3.1vw, 50px);
  --hf-reasons-panel-padding-y: clamp(58px, 5.2vw, 86px);
  --hf-reasons-panel-ratio: 827 / 1319;
  --hf-reasons-ink: #1a120c;
  --hf-reasons-muted-ink: #2a1d14;
  --hf-reasons-overlay: rgba(7, 7, 6, 0.58);
  --hf-reasons-bg-y: 0px;

  position: relative;
  width: 100vw;
  min-height: 100vh;
  margin: 0 0 0 calc(50% - 50vw);
  overflow: hidden;
  color: var(--hf-reasons-ink);
  background: #12100d;
}

.hexfall-reasons__bg {
  position: absolute;
  inset: -10% 0;
  z-index: 0;
  pointer-events: none;
  display: block;
  width: 100%;
  max-width: none;
  height: 120% !important;
  object-fit: cover;
  object-position: center;
  transform: translate3d(0, var(--hf-reasons-bg-y), 0) scale(1.04);
  transform-origin: center center;
  will-change: transform;
}

.hexfall-reasons::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.58), transparent 22%, transparent 78%, rgba(0, 0, 0, 0.58)),
    linear-gradient(180deg, rgba(0, 0, 0, 0.88), var(--hf-reasons-overlay) 18%, var(--hf-reasons-overlay) 70%, rgba(0, 0, 0, 0.9));
}

.hexfall-reasons__sticky {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  min-height: 100vh;
  padding: clamp(52px, 6vw, 92px) clamp(18px, 4vw, 56px) clamp(64px, 7vw, 108px);
}

.hexfall-reasons__inner {
  position: relative;
  width: min(100%, var(--hf-reasons-max-width));
  margin: 0 auto;
}

.hexfall-reasons__headline {
  margin: 0 0 clamp(30px, 4vw, 56px);
  color: #eadcc0;
  font-family: Cinzel, Georgia, "Times New Roman", serif;
  font-size: clamp(32px, 4vw, 64px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
  text-align: center;
  text-transform: uppercase;
}

.hexfall-reasons__grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  align-items: stretch !important;
  gap: var(--hf-reasons-panel-gap) !important;
}

.hexfall-reasons__card-step {
  display: flex;
  min-width: 0;
}

.hexfall-reasons__panel {
  display: flex !important;
  min-width: 0;
  width: 100%;
  aspect-ratio: var(--hf-reasons-panel-ratio);
  background-repeat: no-repeat !important;
  background-position: center center !important;
  background-size: 100% 100% !important;
}

.hexfall-reasons.is-lazy-active .hexfall-reasons__panel {
  background-image: url("./optimized/reasons-single-table.webp") !important;
}

.hexfall-reasons__panel-content {
  display: grid;
  flex: 1 1 auto;
  grid-template-rows: 2.35em auto minmax(8.4em, 1fr) auto minmax(7.2em, 1fr);
  align-items: center;
  align-content: center;
  width: 100%;
  min-height: 0;
  padding: var(--hf-reasons-panel-padding-y) var(--hf-reasons-panel-padding-x);
  text-align: center;
}

.hexfall-reasons__panel-title {
  margin: 0;
  color: var(--hf-reasons-ink);
  font-family: Cinzel, Georgia, "Times New Roman", serif;
  font-size: clamp(21px, 2vw, 31px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: 0;
  text-align: center;
  text-transform: uppercase;
}

.hexfall-reasons__divider {
  display: block;
  width: min(72%, 220px);
  height: auto;
  margin: clamp(12px, 1.35vw, 18px) auto;
  opacity: 0.86;
}

.hexfall-reasons__body,
.hexfall-reasons__footer-text,
.hexfall-reasons__rules {
  margin: 0 auto;
  max-width: 25ch;
  color: var(--hf-reasons-muted-ink);
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  font-size: clamp(16px, 1.28vw, 21px);
  font-weight: 600;
  line-height: 1.25;
}

.hexfall-reasons__body p,
.hexfall-reasons__footer-text p,
.hexfall-reasons__rules p {
  margin: 0;
}

.hexfall-reasons__body p + p,
.hexfall-reasons__footer-text p + p,
.hexfall-reasons__rules p + p {
  margin-top: 0.72em;
}

.hexfall-reasons__rules {
  display: grid;
  gap: 0.78em;
}

.hexfall-reasons__rules p {
  display: grid;
  gap: 0.1em;
}

.hexfall-reasons__rules strong {
  color: var(--hf-reasons-ink);
  font-family: Cinzel, Georgia, "Times New Roman", serif;
  font-size: 0.84em;
  font-weight: 700;
  line-height: 1.05;
  text-transform: uppercase;
}

.hexfall-reasons__rules span {
  display: block;
}

/*
  Logo fade:
  The logo begins invisible, then becomes readable before the main motion.
*/
@keyframes hf-hero-logo-fade {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/*
  Logo forward motion:
  The logo gently scales toward the viewer and then holds the final state.
*/
@keyframes hf-hero-logo-forward {
  from {
    transform: scale(var(--hf-logo-start-scale));
  }

  to {
    transform: scale(var(--hf-logo-end-scale));
  }
}

/*
  Staged content reveal:
  Text, features, and CTA fade in with a small upward movement so the hero
  feels intentional on load without looping or distracting from the artwork.
*/
@keyframes hf-hero-content-reveal {
  from {
    opacity: 0;
    transform: translateY(var(--hf-content-reveal-distance));
  }

  to {
    opacity: var(--hf-reveal-opacity, 1);
    transform: translateY(0);
  }
}

/*
  Near the single-character threshold, the central copy can overlap darker
  artwork. A soft white panel protects readability without changing the image
  layers.
*/
@media (max-width: 1100px) {
  .hexfall-hero__content {
    box-sizing: border-box;
    padding: var(--hf-content-panel-padding);
    background: var(--hf-content-panel-bg);
  }
}

/*
  Below 1000px, use only the left character artwork.
  The right character is hidden before the two sides begin to crowd each other.
  The content block moves into the clearer right side of the hero.
*/
@media (max-width: 999px) {
  .hexfall-hero {
    --hf-content-width: min(50vw, 520px);
    --hf-logo-width: min(40vw, 430px);
    --hf-divider-width: min(30vw, 260px);
    --hf-features-width: min(100%, 470px);
    --hf-feature-icon-size: clamp(52px, 6vw, 76px);
  }

  .hexfall-hero__side-image--right {
    display: none;
  }

  .hexfall-hero__content {
    right: clamp(18px, 4vw, 56px);
    left: auto;
    transform: translateY(-50%) translateY(calc(var(--hf-content-offset-y) + var(--hf-logo-offset-y)));
  }
}

@media (max-width: 999px) {
  .hexfall-reasons {
    --hf-reasons-max-width: 100%;
    --hf-reasons-panel-gap: clamp(8px, 1.4vw, 14px);
    --hf-reasons-panel-padding-x: clamp(11px, 1.8vw, 18px);
    --hf-reasons-panel-padding-y: clamp(26px, 4vw, 44px);

    min-height: 100vh;
  }

  .hexfall-reasons__bg {
    inset: 0;
    background-position: center top;
    transform: none;
    will-change: auto;
  }

  .hexfall-reasons__sticky {
    position: relative;
    top: auto;
    min-height: 100vh;
    padding:
      clamp(42px, 6vw, 62px)
      clamp(10px, 2.6vw, 20px)
      clamp(48px, 7vw, 70px);
  }

  .hexfall-reasons__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    justify-content: stretch;
    gap: var(--hf-reasons-panel-gap) !important;
  }

  .hexfall-reasons__headline {
    margin-bottom: clamp(22px, 3.2vw, 34px);
    font-size: clamp(30px, 5vw, 48px);
  }

  .hexfall-reasons__panel-title {
    font-size: clamp(13px, 2.4vw, 22px);
  }

  .hexfall-reasons__panel-content {
    grid-template-rows: 2.35em auto minmax(7.8em, 1fr) auto minmax(6.6em, 1fr);
  }

  .hexfall-reasons__body,
  .hexfall-reasons__footer-text,
  .hexfall-reasons__rules {
    max-width: 23ch;
    font-size: clamp(10px, 1.65vw, 16px);
    line-height: 1.16;
  }

  .hexfall-reasons__divider {
    width: min(70%, 150px);
    margin: clamp(7px, 1.1vw, 12px) auto;
  }
}

@media (max-width: 699px) {
  .hexfall-gameplay-video {
    padding: clamp(16px, 5vw, 24px) 0 clamp(14px, 4vw, 22px);
  }

  .hexfall-gameplay-video__caption {
    font-size: clamp(34px, 11vw, 46px);
  }

  .hexfall-gameplay-video__caption::after {
    width: min(220px, 72vw);
    margin-top: 8px;
    margin-bottom: 7px;
  }

  .hexfall-gameplay-video .hexfall-hero-video__media {
    width: 100%;
    max-width: none;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
    box-shadow:
      0 -1px 0 rgba(232, 202, 138, 0.28),
      0 1px 0 rgba(232, 202, 138, 0.28);
  }

  .hexfall-gameplay-video__title {
    margin-bottom: clamp(8px, 3vw, 14px);
    font-size: clamp(32px, 11vw, 46px);
  }

  .hexfall-gameplay-video__divider {
    width: min(58vw, 230px);
    margin-bottom: clamp(8px, 3vw, 14px);
  }

  .hexfall-gameplay-video__subtitle {
    max-width: 86vw;
    margin-bottom: clamp(18px, 6vw, 28px);
    font-size: clamp(18px, 5.2vw, 23px);
  }

  .hexfall-reasons {
    --hf-reasons-panel-padding-x: clamp(34px, 10vw, 58px);
    --hf-reasons-panel-padding-y: clamp(64px, 14vw, 90px);
    --hf-reasons-card-1-y: 0px;
    --hf-reasons-card-2-y: 64px;
    --hf-reasons-card-3-y: 128px;
    --hf-reasons-card-1-scale: 1;
    --hf-reasons-card-2-scale: 0.975;
    --hf-reasons-card-3-scale: 0.95;
    --hf-reasons-card-1-z: 5;
    --hf-reasons-card-2-z: 4;
    --hf-reasons-card-3-z: 3;
    --hf-reasons-card-tilt: 0deg;

    min-height: 90vh;
    overflow: visible;
  }

  .hexfall-reasons__sticky {
    box-sizing: border-box;
    position: sticky;
    top: 0;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    height: 100vh;
    height: 100svh;
    min-height: 0;
    padding:
      clamp(24px, 6vh, 46px)
      clamp(16px, 5vw, 34px)
      clamp(28px, 6vh, 54px);
  }

  .hexfall-reasons__inner {
    display: block;
    width: 100%;
  }

  .hexfall-reasons__grid {
    position: relative;
    grid-template-columns: minmax(0, min(100%, 430px)) !important;
    justify-content: center;
    align-items: start !important;
    width: min(100%, 430px);
    aspect-ratio: var(--hf-reasons-panel-ratio);
    margin: 0 auto;
    gap: 0 !important;
  }

  /*
    Mobile card deck:
    A single sticky stage keeps the deck in view. The lightweight script updates
    CSS variables so each card takes a turn on top, while the other cards sit
    behind it as visible deck layers.
  */
  .hexfall-reasons__card-step {
    position: absolute;
    inset: 0;
    display: block;
    min-height: 0;
    will-change: transform;
  }

  .hexfall-reasons__card-step:nth-child(1) {
    z-index: var(--hf-reasons-card-1-z);
    transform:
      translate3d(0, var(--hf-reasons-card-1-y), 0)
      scale(var(--hf-reasons-card-1-scale))
      rotate(calc(var(--hf-reasons-card-tilt) * -1));
  }

  .hexfall-reasons__card-step:nth-child(2) {
    z-index: var(--hf-reasons-card-2-z);
    transform:
      translate3d(0, var(--hf-reasons-card-2-y), 0)
      scale(var(--hf-reasons-card-2-scale))
      rotate(var(--hf-reasons-card-tilt));
  }

  .hexfall-reasons__card-step:nth-child(3) {
    z-index: var(--hf-reasons-card-3-z);
    transform:
      translate3d(0, var(--hf-reasons-card-3-y), 0)
      scale(var(--hf-reasons-card-3-scale))
      rotate(0deg);
  }

  .hexfall-reasons__panel {
    position: relative;
    display: flex !important;
    width: 100%;
    height: 100%;
    aspect-ratio: var(--hf-reasons-panel-ratio);
    margin: 0 auto;
  }

  .hexfall-reasons__headline {
    font-size: clamp(28px, 8vw, 42px);
  }

  .hexfall-reasons__panel-title {
    font-size: clamp(22px, 6vw, 31px);
  }

  .hexfall-reasons__panel-content {
    grid-template-rows: 2.35em auto minmax(8em, 1fr) auto minmax(6.8em, 1fr);
  }

  .hexfall-reasons__body,
  .hexfall-reasons__footer-text,
  .hexfall-reasons__rules {
    max-width: 25ch;
    font-size: clamp(17px, 4.7vw, 21px);
    line-height: 1.25;
  }

  .hexfall-reasons__divider {
    width: min(72%, 220px);
    margin: clamp(12px, 3vw, 18px) auto;
  }
}

@media (max-width: 420px) {
  .hexfall-reasons {
    --hf-reasons-panel-padding-x: clamp(26px, 8vw, 34px);
    --hf-reasons-panel-padding-y: clamp(48px, 13vw, 64px);
  }

  .hexfall-reasons__headline {
    font-size: clamp(28px, 9vw, 36px);
  }

  .hexfall-reasons__panel-title {
    font-size: clamp(19px, 6vw, 24px);
  }

  .hexfall-reasons__panel-content {
    grid-template-rows: 2.35em auto minmax(7.2em, 1fr) auto minmax(6.2em, 1fr);
  }

  .hexfall-reasons__divider {
    width: min(68%, 190px);
    margin: clamp(12px, 4vw, 17px) auto;
  }

  .hexfall-reasons__body,
  .hexfall-reasons__footer-text,
  .hexfall-reasons__rules {
    font-size: clamp(14px, 4.2vw, 17px);
    line-height: 1.18;
  }
}

/*
  Short desktop/tablet viewports need a more compact content stack so the logo
  remains fully below the WordPress header/menu.
*/
@media (max-height: 760px) and (min-width: 769px) {
  .hexfall-hero {
    --hf-content-top: 54%;
    --hf-content-width: min(44vw, 620px);
    --hf-logo-width: min(30vw, 500px);
    --hf-divider-width: min(20vw, 280px);
    --hf-features-width: min(100%, 500px);
    --hf-feature-icon-size: clamp(58px, 4.8vw, 82px);
  }

  .hexfall-hero__divider--horizontal {
    margin: 8px 0 10px;
  }

  .hexfall-hero__headline {
    font-size: clamp(20px, 2vw, 32px);
    line-height: 1;
  }
  
    .hexfall-hero__headline_2 {
    font-size: clamp(20px, 2vw, 32px);
    line-height: 1;
  }

  .hexfall-hero__subheadline {
    margin-top: 7px;
    font-size: clamp(13px, 1.15vw, 18px);
    line-height: 1.18;
  }

  .hexfall-hero__features {
    margin-top: 12px;
  }

  .hexfall-hero__feature-title {
    font-size: clamp(11px, 0.9vw, 14px);
  }

  .hexfall-hero__feature-text {
    font-size: clamp(10px, 0.78vw, 12px);
    line-height: 1.18;
  }

  .hexfall-hero__cta {
    margin-top: 12px;
  }

  .hexfall-hero__cta-image {
    width: min(26vw, 260px);
  }
}

/*
  Phone breakpoint:
  The content returns to the center and the three feature items remain in one
  row with smaller icons/text. Separators are hidden to preserve space.
*/
@media (max-width: 768px) {
  .hexfall-hero {
    --hf-header-overlap: 62px;
    --hf-content-top: 0;
    --hf-content-offset-y: 0px;
    --hf-content-width: 100vw;
    --hf-logo-width: min(74vw, 390px);
    --hf-divider-width: min(44vw, 210px);
    --hf-features-width: 100%;
    --hf-feature-icon-size: clamp(36px, 10vw, 54px);
  }

  .hexfall-hero__content {
    top: calc(var(--hf-header-overlap) + var(--hf-top-bleed));
    right: auto;
    bottom: 0;
    left: 0;
    box-sizing: border-box;
    justify-content: flex-start;
    width: 100vw;
    max-width: none;
    height: calc(100vh - var(--hf-header-overlap));
    padding: clamp(6px, 1.8vh, 14px) 0 clamp(12px, 3vh, 24px);
    background: transparent;
    transform: none;
  }

  .hexfall-hero__logo {
    position: relative;
    z-index: 5;
  }

  .hexfall-hero__divider--horizontal {
    position: relative;
    z-index: 5;
    margin: clamp(4px, 1vh, 8px) 0 0;
  }

  .hexfall-hero__copy {
    position: relative;
    z-index: 4;
    box-sizing: border-box;
    width: 100vw;
    max-width: none;
    margin-top: auto;
    padding: clamp(10px, 2.4vh, 16px) clamp(16px, 5vw, 24px) clamp(5px, 1.2vh, 8px);
    background: var(--hf-content-panel-bg);
  }

  .hexfall-hero__headline {
    font-size: clamp(18px, 6vw, 30px);
    line-height: 1;
  }
  
    .hexfall-hero__headline_2 {
    font-size: clamp(18px, 6vw, 30px);
    line-height: 1;
  }

  .hexfall-hero__subheadline {
    margin-top: clamp(5px, 1.2vh, 9px);
    font-size: clamp(13px, 4.1vw, 19px);
    line-height: 1.12;
  }

  .hexfall-hero__features {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    position: relative;
    z-index: 4;
    box-sizing: border-box;
    width: 100vw;
    max-width: none;
    column-gap: clamp(5px, 1.6vw, 9px);
    margin-top: 0;
    padding: clamp(5px, 1.3vh, 9px) clamp(10px, 3vw, 18px) clamp(10px, 2.5vh, 16px);
    background: var(--hf-content-panel-bg);
  }

  .hexfall-hero__feature {
    max-width: none;
  }

  .hexfall-hero__feature-title {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 2.2em;
    font-size: clamp(8px, 2.25vw, 11px);
    line-height: 1.08;
    white-space: normal;
  }

  .hexfall-hero__feature-text {
    max-width: 100%;
    font-size: clamp(8px, 2.25vw, 11px);
    line-height: 1.12;
  }

  .hexfall-hero__feature-separator {
    display: none;
  }

  .hexfall-hero__cta {
    position: relative;
    z-index: 6;
    margin-top: auto;
  }

  .hexfall-hero__cta-image {
    width: min(72vw, 285px);
  }
}

/*
  Reduced motion:
  Keep the final composition readable without running the logo movement.
*/
@media (prefers-reduced-motion: reduce) {
  .hexfall-hero__logo {
    animation: none;
    opacity: 1;
    transform: scale(var(--hf-logo-end-scale));
    will-change: auto;
  }

  .hexfall-hero__divider,
  .hexfall-hero__copy,
  .hexfall-hero__features,
  .hexfall-hero__cta {
    animation: none;
    opacity: var(--hf-reveal-opacity, 1);
    transform: none;
  }

  .hexfall-reasons__bg {
    transform: none;
    will-change: auto;
  }
}

/*
  Rules Reader.
  Isolated from the existing page under .hexfall-rules. The panel artwork is
  used as a nine-slice border/fill so decorative corners keep their proportions
  while chapters can grow to any height.
*/
.hexfall-rules {
  --hf-rules-gold: #c9a55b;
  --hf-rules-gold-bright: #e5c77f;
  --hf-rules-charcoal: #17130f;
  --hf-rules-charcoal-soft: #241d17;
  --hf-rules-parchment: #ead9ad;
  --hf-rules-ink: #261b12;
  --hf-rules-muted: #5f4b38;
  box-sizing: border-box;
  position: relative;
  width: 100vw;
  margin: -1px 0 0 calc(50% - 50vw);
  padding: clamp(52px, 6vw, 92px) clamp(16px, 4vw, 64px) clamp(60px, 7vw, 108px);
  overflow: clip;
  color: #eadcc0;
  background:
    radial-gradient(circle at 50% 0%, rgba(197, 158, 86, 0.12), transparent 34%),
    linear-gradient(180deg, #100d0b, #1b1511 45%, #0d0b09);
}

.hexfall-rules *,
.hexfall-rules *::before,
.hexfall-rules *::after {
  box-sizing: border-box;
}

.hexfall-rules__inner {
  width: min(100%, 1440px);
  margin: 0 auto;
}

.hexfall-rules__header {
  max-width: 900px;
  margin: 0 auto clamp(30px, 4vw, 52px);
  text-align: center;
}

.hexfall-rules__title {
  margin: 0;
  color: #eadcc0;
  font-family: Cinzel, Georgia, "Times New Roman", serif;
  font-size: clamp(36px, 4.5vw, 68px);
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
  text-shadow: 0 3px 14px rgba(0, 0, 0, 0.62);
}

.hexfall-rules__title::after {
  content: "";
  display: block;
  width: min(260px, 54vw);
  height: 1px;
  margin: clamp(14px, 1.8vw, 20px) auto;
  background: linear-gradient(90deg, transparent, var(--hf-rules-gold-bright), transparent);
}

.hexfall-rules__intro {
  margin: 0;
  color: #ded1b7;
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  font-size: clamp(19px, 1.8vw, 27px);
  font-weight: 400;
  line-height: 1.35;
}

.hexfall-rules__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 22px;
}

.hexfall-rules__action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid rgba(229, 199, 127, 0.65);
  border-radius: 3px;
  color: #f0dfba;
  font-family: Cinzel, Georgia, "Times New Roman", serif;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  background: rgba(31, 23, 17, 0.82);
}

.hexfall-rules__action:hover,
.hexfall-rules__action:focus-visible {
  color: #20160e;
  background: var(--hf-rules-gold-bright);
}

.hexfall-rules__reader {
  display: grid;
  grid-template-columns: minmax(220px, 260px) minmax(0, 1fr);
  align-items: stretch;
  gap: clamp(24px, 3vw, 44px);
}

.hexfall-rules__nav {
  position: sticky;
  top: 94px;
  display: grid;
  gap: 6px;
  padding: 10px;
  border: 1px solid rgba(201, 165, 91, 0.38);
  border-radius: 6px;
  background: rgba(18, 14, 11, 0.94);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.32);
}

.hexfall-rules__tab {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  min-height: 50px;
  width: 100%;
  margin: 0;
  padding: 9px 12px;
  border: 1px solid transparent;
  border-radius: 3px;
  color: #d8ccb4;
  font-family: Cinzel, Georgia, "Times New Roman", serif;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.25;
  text-align: left;
  background: transparent;
  cursor: pointer;
}

.hexfall-rules__tab span {
  color: #9b8050;
  font-size: 11px;
  letter-spacing: 0.08em;
}

.hexfall-rules__tab:hover {
  border-color: rgba(201, 165, 91, 0.35);
  background: rgba(201, 165, 91, 0.08);
}

.hexfall-rules__tab[aria-selected="true"] {
  border-color: rgba(229, 199, 127, 0.78);
  color: #fff0cc;
  background: linear-gradient(90deg, rgba(201, 165, 91, 0.26), rgba(201, 165, 91, 0.08));
  box-shadow: inset 3px 0 0 var(--hf-rules-gold-bright);
}

.hexfall-rules__tab[aria-selected="true"] span {
  color: #f0cd7d;
}

.hexfall-rules__tab:focus-visible,
.hexfall-rules__action:focus-visible,
.hexfall-rules__panel button:focus-visible {
  outline: 3px solid #e7c66f;
  outline-offset: 2px;
}

.hexfall-rules__panels {
  min-width: 0;
}

.hexfall-rules__panel {
  position: relative;
  display: block;
  width: 100%;
  min-width: 0;
  margin: 0 0 30px;
  padding: clamp(8px, 1.4vw, 20px);
  border: 34px solid #8b6833;
  border-image-slice: 92 fill;
  border-image-width: 34px;
  border-image-repeat: stretch;
  color: var(--hf-rules-ink);
  background-color: var(--hf-rules-parchment);
  box-shadow: 0 22px 52px rgba(0, 0, 0, 0.42);
}

.hexfall-rules--enhanced .hexfall-rules__panel {
  margin-bottom: 0;
}

.hexfall-rules--enhanced .hexfall-rules__panel {
  min-height: 0;
  height: auto;
  overflow: visible;
}

.hexfall-rules__body {
  min-width: 0;
}

.hexfall-rules--enhanced .hexfall-rules__body {
  overflow: visible;
}

.hexfall-rules__panel[hidden] {
  display: none !important;
}

.hexfall-rules__panel.hexfall-rules__panel--entering {
  animation: hf-rules-panel-enter 190ms ease-out both;
}

.hexfall-rules__chapter-title {
  margin: 0 0 clamp(22px, 2.6vw, 34px);
  padding-bottom: 13px;
  border-bottom: 1px solid rgba(91, 64, 35, 0.35);
  color: #2d1e12;
  font-family: Cinzel, Georgia, "Times New Roman", serif;
  font-size: clamp(30px, 3vw, 38px);
  font-weight: 700;
  line-height: 1.12;
}

.hexfall-rules__panel h3,
.hexfall-rules__panel h4 {
  color: #382518;
  font-family: Cinzel, Georgia, "Times New Roman", serif;
  font-weight: 700;
}

.hexfall-rules__panel h3 {
  margin: 0 0 14px;
  font-size: clamp(20px, 1.8vw, 26px);
  line-height: 1.2;
}

.hexfall-rules__panel h4 {
  margin: 0 0 7px;
  font-size: 16px;
  line-height: 1.25;
}

.hexfall-rules__panel p,
.hexfall-rules__panel li,
.hexfall-rules__table th,
.hexfall-rules__table td {
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  font-size: clamp(17px, 1.22vw, 18px);
  font-weight: 400;
  line-height: 1.62;
}

.hexfall-rules__panel p {
  margin: 0;
}

.hexfall-rules__panel p + p {
  margin-top: 0.72em;
}

.hexfall-rules__panel ul,
.hexfall-rules__panel ol {
  margin: 0;
  padding-left: 1.35em;
}

.hexfall-rules__panel li + li {
  margin-top: 0.52em;
}

.hexfall-rules__section + .hexfall-rules__section,
.hexfall-rules__section + .hexfall-rules__callout,
.hexfall-rules__callout + .hexfall-rules__section {
  margin-top: clamp(26px, 3vw, 38px);
}

.hexfall-rules__lead {
  margin-bottom: clamp(24px, 2.7vw, 34px) !important;
  padding: 12px 15px;
  border-left: 3px solid #a87f38;
  color: #4b3828;
  background: rgba(120, 84, 42, 0.08);
}

.hexfall-rules__callout {
  margin-top: clamp(26px, 3vw, 38px);
  padding: clamp(18px, 2.3vw, 27px);
  border: 1px solid rgba(104, 72, 36, 0.38);
  border-left: 4px solid #a77d35;
  border-radius: 3px;
  background: rgba(111, 76, 37, 0.09);
}

.hexfall-rules__steps {
  display: grid;
  gap: 12px;
  padding: 0;
  list-style: none;
  counter-reset: hf-rules-step;
}

.hexfall-rules__steps > li {
  position: relative;
  min-height: 54px;
  margin: 0;
  padding: 13px 15px 13px 58px;
  border: 1px solid rgba(86, 59, 31, 0.24);
  border-radius: 3px;
  background: rgba(255, 250, 231, 0.34);
  counter-increment: hf-rules-step;
}

.hexfall-rules__steps > li::before {
  content: counter(hf-rules-step);
  position: absolute;
  top: 50%;
  left: 14px;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid #8f672e;
  border-radius: 50%;
  color: #392517;
  font-family: Cinzel, Georgia, "Times New Roman", serif;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  background: rgba(206, 169, 92, 0.32);
  transform: translateY(-50%);
}

.hexfall-rules__steps--large > li {
  padding-top: 15px;
  padding-bottom: 15px;
}

.hexfall-rules__rule-grid,
.hexfall-rules__utility-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.hexfall-rules__rule-card,
.hexfall-rules__utility-card,
.hexfall-rules__rule-row {
  min-width: 0;
  padding: clamp(16px, 2vw, 23px);
  border: 1px solid rgba(90, 62, 32, 0.28);
  border-radius: 3px;
  background: rgba(255, 250, 232, 0.32);
}

.hexfall-rules__rule-rows {
  display: grid;
  gap: 13px;
}

.hexfall-rules__rule-row {
  display: grid;
  grid-template-columns: minmax(120px, 0.22fr) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.hexfall-rules__rule-row h3 {
  margin-bottom: 0;
}

.hexfall-rules__rule-rows--outcome .hexfall-rules__rule-row:last-child {
  display: block;
}

.hexfall-rules__rule-rows--outcome .hexfall-rules__rule-row:last-child ul {
  margin-top: 13px;
}

.hexfall-rules__utility-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hexfall-rules__utility-card h4 span {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 6px;
  border: 1px solid rgba(105, 73, 37, 0.34);
  border-radius: 999px;
  color: #71502c;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hexfall-rules__cross-link {
  min-height: 36px;
  margin: 13px 0 0;
  padding: 6px 10px;
  border: 1px solid rgba(103, 70, 34, 0.48);
  border-radius: 3px;
  color: #583a1f;
  font-family: Cinzel, Georgia, "Times New Roman", serif;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
  background: rgba(204, 166, 91, 0.16);
  cursor: pointer;
}

.hexfall-rules__cross-link:hover {
  background: rgba(204, 166, 91, 0.34);
}

.hexfall-rules__table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid rgba(79, 52, 28, 0.34);
  background: rgba(255, 250, 233, 0.24);
}

.hexfall-rules__table th,
.hexfall-rules__table td {
  padding: 13px 15px;
  border-bottom: 1px solid rgba(79, 52, 28, 0.23);
  vertical-align: top;
  text-align: left;
}

.hexfall-rules__table tr:last-child th,
.hexfall-rules__table tr:last-child td {
  border-bottom: 0;
}

.hexfall-rules__table th {
  width: 24%;
  color: #382417;
  font-family: Cinzel, Georgia, "Times New Roman", serif;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  background: rgba(117, 80, 40, 0.08);
}

.hexfall-rules__table--stats th {
  width: 19%;
}

.hexfall-rules__notes-list {
  margin-top: clamp(22px, 2.5vw, 32px) !important;
}

.hexfall-rules__pager {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  margin-top: clamp(34px, 4vw, 52px);
  padding-top: 18px;
  border-top: 1px solid rgba(91, 64, 35, 0.32);
}

.hexfall-rules__pager button {
  min-height: 44px;
  margin: 0;
  padding: 9px 13px;
  border: 1px solid rgba(92, 62, 30, 0.5);
  border-radius: 3px;
  color: #402a18;
  font-family: Cinzel, Georgia, "Times New Roman", serif;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.25;
  background: rgba(197, 156, 75, 0.18);
  cursor: pointer;
}

.hexfall-rules__pager button:last-child {
  grid-column: 3;
  justify-self: end;
}

.hexfall-rules__pager button:first-child {
  grid-column: 1;
}

.hexfall-rules__pager > span {
  grid-column: 2;
}

.hexfall-rules__pager button:hover:not(:disabled) {
  background: rgba(197, 156, 75, 0.36);
}

.hexfall-rules__pager span {
  color: #6a4b2c;
  font-family: Cinzel, Georgia, "Times New Roman", serif;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.hexfall-rules__footer-note {
  max-width: 760px;
  margin: clamp(26px, 3vw, 40px) auto 0;
  color: #cfc1a7;
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.5;
  text-align: center;
}

@keyframes hf-rules-panel-enter {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1050px) {
  .hexfall-rules__reader {
    grid-template-columns: minmax(0, 1fr);
  }

  .hexfall-rules__nav {
    position: sticky;
    top: 0;
    z-index: 8;
    display: flex;
    width: 100%;
    padding: 8px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-width: thin;
  }

  .hexfall-rules__tab {
    flex: 0 0 min(230px, 42vw);
    min-height: 48px;
  }
}

@media (max-width: 699px) {
  .hexfall-rules {
    padding-right: 12px;
    padding-left: 12px;
  }

  .hexfall-rules__header {
    padding: 0 8px;
  }

  .hexfall-rules__title {
    font-size: clamp(34px, 11vw, 46px);
  }

  .hexfall-rules__intro {
    font-size: clamp(18px, 5.2vw, 22px);
  }

  .hexfall-rules__reader {
    gap: 16px;
  }

  .hexfall-rules__nav {
    margin-right: -12px;
    margin-left: -12px;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
  }

  .hexfall-rules__tab {
    flex-basis: min(210px, 64vw);
    min-height: 48px;
  }

  .hexfall-rules__panel {
    padding: 4px;
    border-width: 19px;
    border-image-slice: 92 fill;
    border-image-width: 19px;
  }

  .hexfall-rules__chapter-title {
    margin-bottom: 21px;
    font-size: clamp(27px, 8.2vw, 34px);
  }

  .hexfall-rules__panel h3 {
    font-size: clamp(19px, 5.8vw, 23px);
  }

  .hexfall-rules__panel p,
  .hexfall-rules__panel li,
  .hexfall-rules__table th,
  .hexfall-rules__table td {
    font-size: clamp(16px, 4.4vw, 17px);
    line-height: 1.6;
  }

  .hexfall-rules__rule-grid,
  .hexfall-rules__utility-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hexfall-rules__rule-row {
    display: block;
  }

  .hexfall-rules__rule-row h3 {
    margin-bottom: 9px;
  }

  .hexfall-rules__table,
  .hexfall-rules__table tbody,
  .hexfall-rules__table tr,
  .hexfall-rules__table th,
  .hexfall-rules__table td {
    display: block;
    width: 100%;
  }

  .hexfall-rules__table {
    border: 0;
    background: transparent;
  }

  .hexfall-rules__table tr {
    margin-bottom: 11px;
    border: 1px solid rgba(79, 52, 28, 0.3);
    border-radius: 3px;
    background: rgba(255, 250, 233, 0.28);
  }

  .hexfall-rules__table th,
  .hexfall-rules__table td {
    border: 0;
  }

  .hexfall-rules__table th {
    padding-bottom: 4px;
  }

  .hexfall-rules__table td {
    padding-top: 4px;
  }

  .hexfall-rules__pager {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hexfall-rules__pager span {
    grid-column: 1 / -1;
    grid-row: 1;
    text-align: center;
  }

  .hexfall-rules__pager button {
    grid-row: 2;
    width: 100%;
    padding-right: 8px;
    padding-left: 8px;
    font-size: 11px;
  }

  .hexfall-rules__pager button:first-child {
    grid-column: 1;
  }

  .hexfall-rules__pager button:last-child {
    grid-column: 2;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hexfall-rules__panel.hexfall-rules__panel--entering {
    animation: none;
  }

  .hexfall-rules__tab,
  .hexfall-rules__action,
  .hexfall-rules__cross-link,
  .hexfall-rules__pager button {
    scroll-behavior: auto;
    transition: none;
  }
}

/*
  Whats in the Box.
  Every selector is namespaced to keep this section isolated from WordPress and
  the existing Hexfall sections.
*/
.hexfall-box-contents {
  --hf-box-gold: #d6b977;
  --hf-box-gold-bright: #ffd77a;
  --hf-box-cream: #eadcc0;
  --hf-box-ink: #24180f;
  --hf-box-panel: rgba(29, 20, 14, 0.94);
  box-sizing: border-box;
  position: relative;
  width: 100vw;
  margin: -1px 0 0 calc(50% - 50vw);
  padding: clamp(48px, 5vw, 80px) clamp(16px, 4vw, 64px) clamp(24px, 3vw, 38px);
  overflow: hidden;
  color: var(--hf-box-cream);
  background-color: #0b0806;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.hexfall-box-contents *,
.hexfall-box-contents *::before,
.hexfall-box-contents *::after {
  box-sizing: border-box;
}

.hexfall-box-contents__inner {
  width: min(100%, 1480px);
  margin: 0 auto;
}

.hexfall-box-contents__header {
  max-width: 820px;
  margin: 0 auto clamp(28px, 4vw, 54px);
  text-align: center;
}

.hexfall-box-contents__title {
  margin: 0 0 clamp(10px, 1.4vw, 18px);
  color: var(--hf-box-cream);
  font-family: Cinzel, Georgia, "Times New Roman", serif;
  font-size: clamp(34px, 4.5vw, 68px);
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
  text-shadow: 0 3px 14px rgba(0, 0, 0, 0.62);
}

.hexfall-box-contents__divider {
  display: block;
  width: min(30vw, 300px);
  max-width: 74vw;
  height: auto;
  margin: 0 auto clamp(10px, 1.4vw, 18px);
  opacity: 0.9;
}

.hexfall-box-contents__intro {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  font-size: clamp(19px, 2vw, 28px);
  font-weight: 600;
  line-height: 1.25;
}

.hexfall-box-contents__layout {
  display: grid;
  grid-template-areas:
    "image panel"
    "categories panel-spacer";
  grid-template-columns: minmax(0, 67fr) minmax(330px, 33fr);
  grid-template-rows: auto auto;
  align-items: start;
  column-gap: clamp(24px, 2.5vw, 38px);
  row-gap: clamp(14px, 1.8vw, 22px);
}

.hexfall-box-contents__visual-column {
  display: contents;
}

.hexfall-box-contents__image-wrap {
  grid-area: image;
  position: relative;
  width: 100%;
  aspect-ratio: 2500 / 1668;
  overflow: visible;
  border: 1px solid rgba(224, 196, 137, 0.28);
  border-radius: 8px;
  background:
    radial-gradient(ellipse at 50% 42%, rgba(106, 91, 70, 0.42), rgba(32, 25, 19, 0.82) 72%),
    #211a14;
  box-shadow:
    inset 0 0 60px rgba(0, 0, 0, 0.32),
    0 0 0 5px rgba(12, 9, 7, 0.5),
    0 20px 50px rgba(0, 0, 0, 0.38);
}

.hexfall-box-contents__image {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 2500 / 1668;
  object-fit: contain;
}

.hexfall-box-contents__hotspots {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hexfall-box-contents__hotspot {
  position: absolute;
  top: var(--hotspot-y);
  left: var(--hotspot-x);
  width: 52px;
  height: 52px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: var(--hf-box-ink);
  background: transparent;
  transform: translate(-50%, -50%);
  cursor: pointer;
  pointer-events: auto;
}

.hexfall-box-contents__hotspot::before,
.hexfall-box-contents__hotspot::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.hexfall-box-contents__hotspot::before {
  z-index: 1;
  width: 21px;
  height: 21px;
  border: 3px solid #3a2309;
  background: linear-gradient(145deg, #ffe19a, #d58c18);
  box-shadow:
    0 0 0 2px rgba(255, 242, 202, 0.92),
    0 3px 9px rgba(0, 0, 0, 0.95),
    0 0 12px rgba(255, 184, 46, 0.58);
  transition: filter 150ms ease, transform 150ms ease, box-shadow 150ms ease;
}

.hexfall-box-contents__hotspot::after {
  width: 30px;
  height: 30px;
  border: 3px solid rgba(255, 194, 71, 0.94);
  box-shadow: 0 0 8px rgba(255, 184, 46, 0.55);
  animation: hf-box-hotspot-pulse 1.9s cubic-bezier(0.18, 0.68, 0.36, 1) infinite;
}

.hexfall-box-contents__hotspot span {
  position: absolute;
  bottom: calc(100% - 3px);
  left: 50%;
  z-index: 2;
  width: max-content;
  max-width: 170px;
  padding: 5px 8px;
  border: 1px solid rgba(214, 185, 119, 0.48);
  border-radius: 3px;
  color: #f4e8ce;
  font-family: Cinzel, Georgia, "Times New Roman", serif;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  background: rgba(20, 14, 10, 0.94);
  opacity: 0;
  transform: translate(-50%, 4px);
  transition: opacity 160ms ease, transform 160ms ease;
  pointer-events: none;
}

.hexfall-box-contents__hotspot:hover span,
.hexfall-box-contents__hotspot:focus-visible span {
  opacity: 1;
  transform: translate(-50%, 0);
}

.hexfall-box-contents__hotspot:hover::before {
  filter: brightness(1.18);
  transform: translate(-50%, -50%) scale(1.14);
  box-shadow:
    0 0 0 3px rgba(255, 246, 213, 0.98),
    0 3px 10px rgba(0, 0, 0, 0.95),
    0 0 18px rgba(255, 193, 66, 0.88);
}

.hexfall-box-contents__hotspot:focus-visible {
  outline: 3px solid var(--hf-box-gold-bright);
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(20, 12, 5, 0.88);
}

.hexfall-box-contents__hotspot[aria-pressed="true"]::before {
  background: #fff2b5;
  filter: brightness(1.16);
  transform: translate(-50%, -50%) scale(1.24);
  box-shadow:
    0 0 0 3px #ffcc5e,
    0 3px 10px rgba(0, 0, 0, 0.95),
    0 0 22px rgba(255, 189, 45, 0.96);
}

.hexfall-box-contents__hotspot[aria-pressed="true"]::after {
  width: 34px;
  height: 34px;
  border-color: rgba(255, 224, 147, 0.95);
  opacity: 0.88;
  animation-duration: 2.8s;
}

.hexfall-box-contents__categories {
  grid-area: categories;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 9px;
  margin-top: 0;
}

.hexfall-box-contents__categories button {
  min-height: 40px;
  margin: 0;
  padding: 8px 14px;
  border: 1px solid rgba(214, 185, 119, 0.58);
  border-radius: 3px;
  color: var(--hf-box-cream);
  font-family: Cinzel, Georgia, "Times New Roman", serif;
  font-size: clamp(12px, 1vw, 15px);
  font-weight: 700;
  line-height: 1.15;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.16);
  background: rgba(19, 13, 9, 0.82);
  cursor: pointer;
  transition: border-color 160ms ease, background-color 160ms ease, color 160ms ease;
}

.hexfall-box-contents__categories button:hover,
.hexfall-box-contents__categories button:focus-visible,
.hexfall-box-contents__categories button[aria-pressed="true"] {
  border-color: #ffe1a0;
  color: #211509;
  background: linear-gradient(180deg, #ebc978, #c9983e);
  box-shadow:
    inset 0 0 0 1px rgba(255, 246, 213, 0.5),
    0 0 13px rgba(231, 177, 66, 0.28);
}

.hexfall-box-contents__categories button:focus-visible,
.hexfall-box-contents__close:focus-visible,
.hexfall-box-contents__backdrop:focus-visible {
  outline: 2px solid #fff5dc;
  outline-offset: 3px;
}

.hexfall-box-contents__panel {
  grid-area: panel;
  display: block;
  align-self: stretch;
  min-width: 0;
  min-height: 0;
  padding: clamp(22px, 2.2vw, 32px);
  overflow: hidden;
  contain: size;
  border: 1px solid rgba(214, 185, 119, 0.45);
  border-radius: 7px;
  color: var(--hf-box-cream);
  background: var(--hf-box-panel);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.4);
}

.hexfall-box-contents__panel-content,
.hexfall-box-contents__sheet-content {
  width: 100%;
}

.hexfall-box-contents__panel-content {
  height: 100%;
  min-height: 0;
}

/*
  Box contents per-tab galleries.
  The wrapper sits directly below the image + detail-panel grid and therefore
  inherits the same max-width from .hexfall-box-contents__inner. Each tile is
  square by CSS, so final replacement images can be any aspect ratio.
*/
.hexfall-box-contents__galleries {
  width: 100%;
  margin-top: clamp(20px, 2.4vw, 34px);
}

.hexfall-box-contents__gallery {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: clamp(8px, 1vw, 14px);
  width: 100%;
}

.hexfall-box-contents__gallery[hidden] {
  display: none;
}

.hexfall-box-contents__gallery-item {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  min-width: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(214, 185, 119, 0.32);
  border-radius: 6px;
  color: inherit;
  background:
    linear-gradient(180deg, rgba(238, 214, 165, 0.08), rgba(4, 3, 2, 0.26)),
    #17100c;
  box-shadow:
    inset 0 0 18px rgba(0, 0, 0, 0.22),
    0 10px 24px rgba(0, 0, 0, 0.28);
  cursor: zoom-in;
}

.hexfall-box-contents__gallery-image {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
  transition: transform 180ms ease, filter 180ms ease;
}

.hexfall-box-contents__gallery-item:hover .hexfall-box-contents__gallery-image {
  filter: brightness(1.06);
  transform: scale(1.035);
}

.hexfall-box-contents__gallery-item:focus-visible,
.hexfall-box-contents__lightbox-close:focus-visible,
.hexfall-box-contents__lightbox-previous:focus-visible,
.hexfall-box-contents__lightbox-next:focus-visible {
  outline: 2px solid #fff5dc;
  outline-offset: 3px;
}

.hexfall-box-contents__lightbox[hidden] {
  display: none;
}

.hexfall-box-contents__lightbox,
.hexfall-box-contents__lightbox-backdrop {
  position: fixed;
  inset: 0;
}

.hexfall-box-contents__lightbox {
  z-index: 10040;
  display: grid;
  place-items: center;
  padding: clamp(16px, 3vw, 42px);
}

.hexfall-box-contents__lightbox-backdrop {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(3, 2, 1, 0.86);
  cursor: zoom-out;
}

.hexfall-box-contents__lightbox-dialog {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  width: min(100%, 1280px);
  min-height: 0;
  gap: clamp(10px, 1.4vw, 18px);
}

.hexfall-box-contents__lightbox-figure {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  min-width: 0;
  max-height: min(86vh, 920px);
  max-height: min(86dvh, 920px);
  margin: 0;
}

.hexfall-box-contents__lightbox-image {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: calc(min(86vh, 920px) - 44px);
  max-height: calc(min(86dvh, 920px) - 44px);
  margin: 0 auto;
  border: 1px solid rgba(214, 185, 119, 0.44);
  border-radius: 7px;
  object-fit: contain;
  background: #0b0806;
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.62);
}

.hexfall-box-contents__lightbox-caption {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding-top: 10px;
  color: #eadcc0;
  font-family: Cinzel, Georgia, "Times New Roman", serif;
  font-size: clamp(12px, 1vw, 15px);
  line-height: 1.3;
}

.hexfall-box-contents__lightbox-counter {
  flex: 0 0 auto;
  color: #d6b977;
}

.hexfall-box-contents__lightbox-close,
.hexfall-box-contents__lightbox-previous,
.hexfall-box-contents__lightbox-next {
  margin: 0;
  border: 1px solid rgba(214, 185, 119, 0.56);
  color: #eadcc0;
  font-family: Cinzel, Georgia, "Times New Roman", serif;
  font-weight: 700;
  background: rgba(18, 13, 9, 0.86);
  box-shadow: inset 0 1px 0 rgba(255, 235, 188, 0.12);
  cursor: pointer;
}

.hexfall-box-contents__lightbox-close {
  position: absolute;
  top: -12px;
  right: -12px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 50%;
  font-family: Arial, sans-serif;
  font-size: 30px;
  font-weight: 400;
  line-height: 1;
}

.hexfall-box-contents__lightbox-previous,
.hexfall-box-contents__lightbox-next {
  min-width: 98px;
  min-height: 48px;
  padding: 10px 16px;
  border-radius: 4px;
  font-size: 12px;
  line-height: 1.15;
}

.hexfall-box-contents__lightbox-previous:hover,
.hexfall-box-contents__lightbox-next:hover,
.hexfall-box-contents__lightbox-close:hover {
  border-color: #ffe1a0;
  color: #211509;
  background: linear-gradient(180deg, #ebc978, #c9983e);
}

.hexfall-box-contents__content-source {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 34px;
}

.hexfall-box-contents--enhanced .hexfall-box-contents__content-source {
  display: none;
}

.hexfall-box-contents__detail {
  padding: clamp(22px, 2.4vw, 34px);
  border: 1px solid rgba(214, 185, 119, 0.34);
  border-radius: 6px;
  color: var(--hf-box-cream);
  background: rgba(25, 18, 13, 0.86);
}

.hexfall-box-contents__panel .hexfall-box-contents__detail,
.hexfall-box-contents__sheet .hexfall-box-contents__detail {
  padding: 0;
  border: 0;
  background: transparent;
}

.hexfall-box-contents__panel .hexfall-box-contents__detail {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  height: 100%;
  min-height: 0;
}

.hexfall-box-contents__detail-header {
  min-width: 0;
  padding-bottom: clamp(10px, 1vw, 14px);
  border-bottom: 1px solid rgba(214, 185, 119, 0.28);
}

.hexfall-box-contents__detail-body {
  min-height: 0;
  padding-top: clamp(12px, 1.2vw, 17px);
}

.hexfall-box-contents__panel .hexfall-box-contents__detail-body {
  padding-right: 8px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(214, 185, 119, 0.72) rgba(6, 4, 3, 0.35);
}

.hexfall-box-contents__detail-image {
  display: block;
  width: 100%;
  height: auto;
  max-height: clamp(105px, 11vw, 172px);
  margin: 0 0 clamp(15px, 1.4vw, 20px);
  border: 1px solid rgba(214, 185, 119, 0.3);
  border-radius: 5px;
  object-fit: cover;
  object-position: center;
  background: rgba(8, 6, 4, 0.58);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.3);
}

.hexfall-box-contents__detail-image[hidden] {
  display: none;
}

.hexfall-box-contents__detail h3 {
  margin: 0;
  color: #f1dfb8;
  font-family: Cinzel, Georgia, "Times New Roman", serif;
  font-size: clamp(22px, 1.75vw, 30px);
  font-weight: 700;
  line-height: 1.12;
}

.hexfall-box-contents__detail p {
  margin: 0;
}

.hexfall-box-contents__detail-body p {
  color: #d8d1c4;
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  font-size: clamp(15px, 1vw, 18px);
  font-weight: 400;
  line-height: 1.52;
  letter-spacing: 0;
}

.hexfall-box-contents__detail-body p + p {
  margin-top: 0.85em;
}

.hexfall-box-contents__detail .hexfall-box-contents__meta {
  margin-bottom: 0;
  color: var(--hf-box-gold);
  font-family: Cinzel, Georgia, "Times New Roman", serif;
  font-size: clamp(10px, 0.72vw, 12px);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.hexfall-box-contents__sheet-layer[hidden] {
  display: none;
}

.hexfall-box-contents__sheet-layer,
.hexfall-box-contents__backdrop {
  position: fixed;
  inset: 0;
}

.hexfall-box-contents__sheet-layer {
  z-index: 10020;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.hexfall-box-contents__backdrop {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(0, 0, 0, 0.72);
  cursor: default;
}

.hexfall-box-contents__sheet {
  position: relative;
  z-index: 1;
  width: 100%;
  height: min(78vh, 680px);
  height: min(78dvh, 680px);
  padding: 52px 24px max(28px, env(safe-area-inset-bottom));
  overflow: hidden;
  border: 1px solid rgba(214, 185, 119, 0.58);
  border-bottom: 0;
  border-radius: 14px 14px 0 0;
  color: var(--hf-box-cream);
  background: #1b130e;
  box-shadow: 0 -18px 50px rgba(0, 0, 0, 0.58);
}

.hexfall-box-contents__sheet-content {
  height: 100%;
  min-height: 0;
}

.hexfall-box-contents__sheet .hexfall-box-contents__detail {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  height: 100%;
  min-height: 0;
}

.hexfall-box-contents__sheet .hexfall-box-contents__detail-body {
  padding-right: 8px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(214, 185, 119, 0.72) rgba(6, 4, 3, 0.35);
}

.hexfall-box-contents__close {
  position: absolute;
  top: 10px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(214, 185, 119, 0.56);
  border-radius: 50%;
  color: var(--hf-box-cream);
  font-family: Arial, sans-serif;
  font-size: 30px;
  font-weight: 400;
  line-height: 1;
  background: rgba(8, 6, 4, 0.6);
  cursor: pointer;
}

body.hexfall-box-contents-is-locked {
  overflow: hidden;
}

body.hexfall-box-gallery-is-locked {
  overflow: hidden;
}

@keyframes hf-box-hotspot-pulse {
  0% { opacity: 0.98; transform: translate(-50%, -50%) scale(0.72); }
  72%, 100% { opacity: 0; transform: translate(-50%, -50%) scale(1.82); }
}

@media (max-width: 1050px) {
  .hexfall-box-contents__layout {
    grid-template-areas:
      "image"
      "categories"
      "panel";
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto auto;
  }

  .hexfall-box-contents__panel {
    height: auto;
    min-height: 240px;
    max-height: none;
    contain: none;
  }

  .hexfall-box-contents__panel-content {
    height: auto;
  }

  .hexfall-box-contents__panel .hexfall-box-contents__detail {
    height: auto;
  }

  .hexfall-box-contents__gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 699px) {
  .hexfall-box-contents {
    padding-right: 12px;
    padding-left: 12px;
  }

  .hexfall-box-contents__header {
    padding: 0 8px;
  }

  .hexfall-box-contents__title {
    font-size: clamp(30px, 10vw, 44px);
  }

  .hexfall-box-contents__image-wrap {
    border-radius: 5px;
  }

  .hexfall-box-contents__hotspot::before {
    width: 23px;
    height: 23px;
  }

  .hexfall-box-contents__hotspot::after {
    width: 32px;
    height: 32px;
  }

  .hexfall-box-contents__hotspot span {
    display: none;
  }

  .hexfall-box-contents__categories {
    flex-wrap: nowrap;
    justify-content: flex-start;
    margin-right: -12px;
    margin-left: -12px;
    padding: 0 12px 8px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-width: thin;
  }

  .hexfall-box-contents__categories button {
    flex: 0 0 auto;
    min-height: 46px;
  }

  .hexfall-box-contents--enhanced .hexfall-box-contents__panel {
    display: none;
  }

  .hexfall-box-contents__content-source {
    grid-template-columns: minmax(0, 1fr);
  }

  .hexfall-box-contents__galleries {
    margin-top: 16px;
  }

  .hexfall-box-contents__gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .hexfall-box-contents__gallery-item {
    border-radius: 5px;
  }

  .hexfall-box-contents__lightbox {
    padding: 12px;
  }

  .hexfall-box-contents__lightbox-dialog {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "figure"
      "controls";
    gap: 12px;
  }

  .hexfall-box-contents__lightbox-figure {
    grid-area: figure;
    max-height: calc(100dvh - 124px);
  }

  .hexfall-box-contents__lightbox-image {
    max-height: calc(100dvh - 172px);
  }

  .hexfall-box-contents__lightbox-previous,
  .hexfall-box-contents__lightbox-next {
    grid-area: controls;
    width: calc(50% - 5px);
    min-width: 0;
  }

  .hexfall-box-contents__lightbox-previous {
    justify-self: start;
  }

  .hexfall-box-contents__lightbox-next {
    justify-self: end;
  }

  .hexfall-box-contents__lightbox-close {
    top: 0;
    right: 0;
  }

  .hexfall-box-contents__lightbox-caption {
    flex-direction: column;
    gap: 3px;
  }

  .hexfall-box-contents__sheet .hexfall-box-contents__detail h3 {
    padding-right: 38px;
    font-size: clamp(23px, 7vw, 30px);
  }

  .hexfall-box-contents__sheet .hexfall-box-contents__detail-image {
    max-height: min(25vh, 190px);
    max-height: min(25dvh, 190px);
  }

  .hexfall-box-contents__sheet .hexfall-box-contents__detail-body p {
    font-size: clamp(15px, 4.15vw, 17px);
    line-height: 1.52;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hexfall-box-contents__hotspot::after {
    animation: none;
  }

  .hexfall-box-contents__hotspot::before,
  .hexfall-box-contents__hotspot span,
  .hexfall-box-contents__categories button,
  .hexfall-box-contents__gallery-image {
    transition: none;
  }
}

/* Rules Reader visual refinement using the supplied fantasy rulebook assets. */
.hexfall-rules {
  padding-top: clamp(36px, 4vw, 54px);
  padding-bottom: clamp(12px, 1.8vw, 20px);
  background-color: #0b0a08;
  background-image: linear-gradient(180deg, rgba(7, 7, 6, 0) 0%, rgba(8, 7, 6, 0.04) 62%, rgba(11, 10, 8, 0.22) 100%);
}

.hexfall-rules__background {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  width: 100%;
  max-width: none;
  height: 100% !important;
  object-fit: cover;
  object-position: center top;
  pointer-events: none;
}

.hexfall-rules__inner {
  position: relative;
  z-index: 1;
  width: min(100%, 1280px);
}

.hexfall-rules__header {
  margin-bottom: clamp(24px, 2.8vw, 34px);
}

.hexfall-rules__title {
  font-size: clamp(38px, 4.2vw, 62px);
}

.hexfall-rules__title::after {
  width: clamp(260px, 27vw, 350px);
  height: auto;
  aspect-ratio: 1728 / 241;
  margin: clamp(11px, 1.4vw, 17px) auto clamp(9px, 1.2vw, 14px);
  background-color: transparent;
  background-image: url("./optimized/rules-panel-top-ornament.webp");
  background-position: center;
  background-size: contain;
  background-repeat: no-repeat;
  pointer-events: none;
}

.hexfall-rules__intro {
  max-width: 780px;
  margin-inline: auto;
  color: #e1d5bf;
  font-size: clamp(18px, 1.65vw, 24px);
}

.hexfall-rules__actions {
  margin-top: 12px;
}

.hexfall-rules__action {
  min-height: 46px;
  padding: 10px 19px;
  border-color: rgba(191, 151, 79, 0.72);
  color: #eee0c4;
  background: rgba(13, 12, 10, 0.72);
  box-shadow: inset 0 1px 0 rgba(255, 235, 188, 0.08);
}

.hexfall-rules__action::before {
  content: "↓";
  margin-right: 9px;
  color: #d4ae63;
  font-family: Georgia, serif;
  font-size: 17px;
  line-height: 1;
}

.hexfall-rules__reader {
  grid-template-columns: minmax(250px, 270px) minmax(0, 1fr);
  gap: clamp(14px, 1.5vw, 20px);
}

.hexfall-rules__inner,
.hexfall-rules__header,
.hexfall-rules__actions,
.hexfall-rules__reader,
.hexfall-rules__panels,
.hexfall-rules__footer-note {
  background: transparent;
  background-color: transparent;
}

.hexfall-rules__footer-note {
  margin: clamp(8px, 1vw, 12px) auto 0;
}

.hexfall-rules__nav {
  isolation: isolate;
  top: 86px;
  align-content: center;
  min-height: 650px;
  gap: 0;
  padding: 24px 19px;
  border: 0;
  border-radius: 0;
  overflow: visible;
  background-color: #11100e;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.42);
}

.hexfall-rules.is-lazy-active .hexfall-rules__nav::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: url("./optimized/rules-sidebar-background.webp");
  background-position: center;
  background-size: 100% 100%;
  background-repeat: no-repeat;
  pointer-events: none;
}

.hexfall-rules__tab {
  position: relative;
  z-index: 1;
  grid-template-columns: 36px minmax(0, 1fr);
  min-height: 56px;
  padding: 10px 12px;
  border: 0;
  border-bottom: 1px solid rgba(184, 143, 72, 0.2);
  border-radius: 0;
  color: #d8ceb9;
  font-size: 13px;
  line-height: 1.3;
}

.hexfall-rules__tab:last-child {
  border-bottom-color: transparent;
}

.hexfall-rules__tab span {
  color: #a98243;
  font-size: 11px;
}

.hexfall-rules__tab:hover {
  border-color: rgba(184, 143, 72, 0.34);
  color: #fff0d1;
  background: rgba(179, 134, 62, 0.08);
}

.hexfall-rules__tab:hover span,
.hexfall-rules__tab:focus-visible span {
  color: #f0cd7d;
}

.hexfall-rules__tab:focus-visible {
  color: #fff0d1;
}

.hexfall-rules__tab[aria-selected="true"] {
  border: 1px solid rgba(203, 163, 88, 0.68);
  color: #fff0d1;
  background: linear-gradient(90deg, rgba(132, 88, 38, 0.62), rgba(90, 61, 31, 0.48));
  box-shadow:
    inset 0 1px 0 rgba(255, 236, 188, 0.2),
    inset 3px 0 0 #d0a45a;
}

.hexfall-rules.is-lazy-active .hexfall-rules__tab[aria-selected="true"]::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -38px;
  z-index: 3;
  width: 29px;
  aspect-ratio: 490 / 430;
  background-image: url("./optimized/rules-sidebar-active-marker.webp");
  background-position: center;
  background-size: contain;
  background-repeat: no-repeat;
  transform: translateY(-50%);
  pointer-events: none;
}

.hexfall-rules__panel {
  min-height: 0;
  padding: 28px clamp(28px, 3vw, 44px) 22px;
  border: 14px solid transparent;
  border-image-slice: 92 fill;
  border-image-width: 14px;
  border-image-repeat: stretch;
  background-color: transparent;
  box-shadow:
    inset 0 0 24px rgba(91, 59, 27, 0.15),
    0 20px 48px rgba(0, 0, 0, 0.48);
}

.hexfall-rules.is-lazy-active .hexfall-rules__panel {
  border-image-source: url("./optimized/section-panel-background.webp");
}

.hexfall-rules__panel::before {
  content: "";
  position: absolute;
  top: -17px;
  left: 50%;
  z-index: 2;
  width: clamp(96px, 10vw, 132px);
  aspect-ratio: 1728 / 241;
  background-image: url("./optimized/rules-panel-top-ornament.webp");
  background-position: center;
  background-size: contain;
  background-repeat: no-repeat;
  transform: translateX(-50%);
  pointer-events: none;
}

.hexfall-rules__panel::after {
  content: "";
  position: absolute;
  inset: 8px;
  z-index: 0;
  border: 1px solid rgba(94, 62, 30, 0.3);
  box-shadow: inset 0 0 18px rgba(99, 62, 27, 0.1);
  pointer-events: none;
}

.hexfall-rules__panel > * {
  position: relative;
  z-index: 1;
}

.hexfall-rules__chapter-title {
  margin-bottom: clamp(14px, 1.4vw, 18px);
  padding-bottom: 6px;
  border-bottom-color: rgba(108, 73, 36, 0.42);
  color: #2f2116;
  font-size: clamp(34px, 3.2vw, 40px);
  font-weight: 600;
  line-height: 1.12;
}

.hexfall-rules__panel h3 {
  margin-bottom: 6px;
  color: #432d1d;
  font-size: clamp(21px, 1.8vw, 25px);
  font-weight: 600;
}

.hexfall-rules__panel h4 {
  font-weight: 600;
}

.hexfall-rules__steps h4 {
  margin-bottom: 3px;
}

.hexfall-rules__panel p,
.hexfall-rules__panel li,
.hexfall-rules__table th,
.hexfall-rules__table td {
  color: #34271d;
  font-weight: 400;
  line-height: 1.34;
}

.hexfall-rules__panel p {
  margin-bottom: 4px;
}

.hexfall-rules__panel p:last-child {
  margin-bottom: 0;
}

#rules-placement-movement .hexfall-rules__section p + p {
  margin-top: 5px;
}

#rules-attacks-los .hexfall-rules__lead {
  margin-bottom: 10px !important;
  padding: 8px 10px;
  line-height: 1.32;
}

#rules-attacks-los .hexfall-rules__attack-rows {
  gap: 6px;
}

#rules-attacks-los .hexfall-rules__attack-row {
  display: grid;
  grid-template-columns: minmax(82px, 104px) 44px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 8px 10px;
}

#rules-attacks-los .hexfall-rules__attack-label {
  margin: 0;
  color: #50351f;
  font-family: Cinzel, Georgia, "Times New Roman", serif;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
}

#rules-attacks-los .hexfall-rules__attack-icon {
  display: block;
  width: 44px;
  aspect-ratio: 1;
  border: 1px solid rgba(119, 79, 36, 0.26);
  border-radius: 3px;
  background-color: rgba(255, 249, 228, 0.2);
  background-position: center;
  background-repeat: no-repeat;
  background-size: 78% 78%;
}

#rules-attacks-los .hexfall-rules__attack-icon--melee {
  background-image: url("./melee.png");
}

#rules-attacks-los .hexfall-rules__attack-icon--ranged {
  background-image: url("./ranged.png");
}

#rules-attacks-los .hexfall-rules__attack-icon--empty {
  visibility: hidden;
}

#rules-attacks-los .hexfall-rules__attack-row > p {
  min-width: 0;
  margin: 0;
  line-height: 1.32;
}

#rules-damage-armor .hexfall-rules__damage-rows {
  display: grid;
  gap: 6px;
}

#rules-damage-armor .hexfall-rules__damage-row {
  display: grid;
  grid-template-columns: minmax(82px, 104px) 94px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 8px 10px;
}

#rules-damage-armor .hexfall-rules__damage-label {
  margin: 0;
  color: #50351f;
  font-family: Cinzel, Georgia, "Times New Roman", serif;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.06em;
  text-align: center;
  text-transform: uppercase;
}

#rules-damage-armor .hexfall-rules__damage-icon {
  display: block;
  width: 44px;
  aspect-ratio: 1;
  border: 1px solid rgba(119, 79, 36, 0.26);
  border-radius: 3px;
  background-color: rgba(255, 249, 228, 0.2);
  background-position: center;
  background-repeat: no-repeat;
  background-size: 78% 78%;
}

#rules-damage-armor .hexfall-rules__damage-icons {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

#rules-damage-armor .hexfall-rules__damage-icon--hit {
  background-image: url("./melee.png");
}

#rules-damage-armor .hexfall-rules__damage-icon--ranged {
  background-image: url("./ranged.png");
}

#rules-damage-armor .hexfall-rules__damage-icon--hp {
  background-image: url("./optimized/wound-tracker.webp");
}

#rules-damage-armor .hexfall-rules__damage-icon--black {
  background-image: url("./optimized/shield-black.webp");
}

#rules-damage-armor .hexfall-rules__damage-icon--blue {
  background-image: url("./optimized/shield-blue.webp");
}

#rules-damage-armor .hexfall-rules__damage-icon--red {
  background-image: url("./optimized/shield-red.webp");
}

#rules-damage-armor .hexfall-rules__damage-row > p {
  min-width: 0;
  margin: 0;
  line-height: 1.32;
}

#rules-damage-armor .hexfall-rules__notes-list {
  margin: 10px 0 0 !important;
  padding-top: 6px;
  line-height: 1.32;
}

#rules-damage-armor .hexfall-rules__notes-list li + li {
  margin-top: 4px;
}

.hexfall-rules__steps p,
.hexfall-rules__rule-row p,
.hexfall-rules__rule-card p {
  margin-bottom: 0;
}

.hexfall-rules__panel li + li {
  margin-top: 3px;
}

.hexfall-rules__section + .hexfall-rules__section,
.hexfall-rules__section + .hexfall-rules__callout,
.hexfall-rules__callout + .hexfall-rules__section {
  margin-top: clamp(12px, 1.4vw, 16px);
}

.hexfall-rules__section + .hexfall-rules__section::before,
.hexfall-rules__section + .hexfall-rules__callout::before,
.hexfall-rules__callout + .hexfall-rules__section::before {
  content: "";
  display: block;
  width: 100%;
  height: 0;
  margin: 0 0 clamp(8px, 0.9vw, 10px);
  border-top: 1px solid rgba(126, 87, 41, 0.18);
  opacity: 0.7;
  pointer-events: none;
}

.hexfall-rules__callout {
  padding: 10px 12px;
  border-color: rgba(126, 87, 41, 0.42);
  border-left-color: #a57b37;
  background: rgba(255, 248, 222, 0.28);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

.hexfall-rules__section--subsection {
  margin-top: 12px;
}

.hexfall-rules__subsection-index {
  display: inline-block;
  margin-right: 8px;
  color: #a37836;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.hexfall-rules__utility-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (min-width: 1051px) {
  .hexfall-rules__utility-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.hexfall-rules__cross-link {
  margin-top: 6px;
  min-height: 30px;
  padding: 5px 10px;
  border-color: rgba(128, 88, 42, 0.52);
  color: #66431f;
  background: rgba(247, 229, 184, 0.4);
}

.hexfall-rules__cross-link::before {
  content: "↗";
  display: inline-block;
  margin-right: 6px;
  color: #8d612c;
  transition: transform 180ms ease;
}

.hexfall-rules__cross-link:hover::before {
  transform: translate(2px, -1px);
}

.hexfall-rules__steps > li,
.hexfall-rules__rule-card,
.hexfall-rules__utility-card,
.hexfall-rules__rule-row {
  border-color: rgba(111, 75, 35, 0.3);
  background: rgba(255, 250, 231, 0.3);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.hexfall-rules__steps {
  gap: 4px;
  list-style: none !important;
  list-style-type: none !important;
}

.hexfall-rules__steps > li::marker {
  content: "";
}

.hexfall-rules__steps > li {
  min-height: 0;
  padding: 7px 10px 7px 46px;
}

.hexfall-rules__steps--large > li {
  padding-top: 8px;
  padding-bottom: 8px;
}

/* Turn only: fixed number column and fluid description column. */
.hexfall-rules__steps--turn > li {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  align-items: stretch;
  padding: 0;
}

.hexfall-rules__steps--turn > li::before {
  content: none;
}

.hexfall-rules__steps--turn .hexfall-rules__step-number {
  display: grid;
  min-width: 0;
  padding: 8px 12px;
  place-items: center;
  border-right: 1px solid rgba(126, 87, 41, 0.28);
}

.hexfall-rules__steps--turn .hexfall-rules__step-number::before {
  content: counter(hf-rules-step);
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid #8f672e;
  border-radius: 50%;
  color: #392517;
  font-family: Cinzel, Georgia, "Times New Roman", serif;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  background: rgba(206, 169, 92, 0.32);
}

.hexfall-rules__steps--turn > li > p {
  align-self: center;
  min-width: 0;
  margin: 0;
  padding: 8px 16px;
  line-height: 1.34;
}

.hexfall-rules__rule-grid,
.hexfall-rules__utility-grid {
  gap: 6px 8px;
  align-items: start;
}

.hexfall-rules__rule-card,
.hexfall-rules__utility-card,
.hexfall-rules__rule-row {
  padding: 8px 10px;
}

.hexfall-rules__rule-rows {
  gap: 6px;
}

.hexfall-rules__rule-rows--outcome .hexfall-rules__rule-row,
.hexfall-rules__rule-rows--outcome .hexfall-rules__rule-row:last-child {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 0;
  align-items: stretch;
  padding: 8px 10px;
}

.hexfall-rules__rule-rows--outcome .hexfall-rules__rule-row > h3 {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0 16px 0 4px;
  border-right: 1px solid rgba(126, 87, 41, 0.28);
  text-align: center;
}

.hexfall-rules__rule-rows--outcome .hexfall-rules__rule-content {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  padding-left: 16px;
}

.hexfall-rules__rule-rows--outcome .hexfall-rules__rule-content li + li {
  margin-top: 4px;
}

.hexfall-rules__rule-content {
  min-width: 0;
}

.hexfall-rules__rule-content p {
  margin: 0;
}

.hexfall-rules__rule-content ul {
  margin: 0;
  padding-left: 1.2em;
}

.hexfall-rules__rule-content p + ul {
  margin-top: 4px;
}

.hexfall-rules__utility-rows {
  display: grid;
  gap: 6px;
}

.hexfall-rules__utility-row {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  gap: 0;
  align-items: stretch;
}

.hexfall-rules__utility-row h4 {
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0 14px 0 2px;
  border-right: 1px solid rgba(126, 87, 41, 0.28);
}

.hexfall-rules__utility-row .hexfall-rules__rule-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding-left: 14px;
}

.hexfall-rules__table {
  border-color: rgba(102, 67, 31, 0.4);
  background: rgba(255, 249, 226, 0.25);
  box-shadow: inset 0 0 16px rgba(111, 72, 33, 0.05);
}

.hexfall-rules__table th,
.hexfall-rules__table td {
  border-bottom-color: rgba(104, 68, 31, 0.25);
  padding: 7px 10px;
}

.hexfall-rules__table th {
  background: rgba(149, 104, 48, 0.1);
}

.hexfall-rules__table tr:nth-child(even) td {
  background: rgba(255, 249, 229, 0.16);
}

.hexfall-rules__notes-list {
  position: relative;
  padding-top: clamp(12px, 1.4vw, 16px);
}

.hexfall-rules__notes-list::before {
  content: none;
}

.hexfall-rules__pager {
  position: relative;
  margin-top: 14px;
  grid-template-columns: max-content minmax(0, 1fr) max-content;
  gap: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(126, 87, 41, 0.18);
}

.hexfall-rules__pager::before {
  content: none;
}

.hexfall-rules__pager button {
  display: grid;
  align-items: stretch;
  width: auto;
  min-width: 150px;
  max-width: 240px;
  min-height: 48px;
  padding: 0;
  border-color: rgba(126, 86, 39, 0.58);
  color: #422b18;
  background: linear-gradient(180deg, rgba(248, 229, 182, 0.5), rgba(206, 166, 90, 0.18));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.42);
}

.hexfall-rules__pager button[hidden] {
  display: none;
}

.hexfall-rules__pager button:first-child {
  grid-template-columns: 36px minmax(0, 1fr);
  justify-self: start;
  text-align: left;
}

.hexfall-rules__pager button:last-child {
  grid-template-columns: minmax(0, 1fr) 36px;
  justify-self: end;
  text-align: right;
}

.hexfall-rules__pager button:hover:not(:disabled) {
  border-color: rgba(153, 107, 47, 0.82);
  background: linear-gradient(180deg, rgba(251, 235, 197, 0.68), rgba(209, 167, 87, 0.3));
}

.hexfall-rules__pager-direction {
  display: none;
}

.hexfall-rules.is-lazy-active .hexfall-rules__pager button:first-child::before,
.hexfall-rules.is-lazy-active .hexfall-rules__pager button:last-child::after {
  content: "";
  align-self: stretch;
  justify-self: stretch;
  width: 100%;
  min-height: 46px;
  box-sizing: border-box;
  background-image: url("./optimized/rules-sidebar-active-marker.webp");
  background-position: center;
  background-size: 20px auto;
  background-repeat: no-repeat;
  pointer-events: none;
}

.hexfall-rules__pager button:first-child::before {
  grid-column: 1;
  border-left: 1px solid rgba(126, 87, 41, 0.24);
  transform: scaleX(-1);
}

.hexfall-rules__pager button:last-child::after {
  grid-column: 2;
  border-left: 1px solid rgba(126, 87, 41, 0.24);
}

.hexfall-rules__pager-title {
  display: flex;
  min-width: 0;
  height: 100%;
  align-items: center;
  font-family: Cinzel, Georgia, "Times New Roman", serif;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.25;
  white-space: nowrap;
}

.hexfall-rules__pager button:first-child .hexfall-rules__pager-title {
  grid-column: 2;
  justify-content: center;
  padding: 8px 10px;
  text-align: center;
}

.hexfall-rules__pager button:last-child .hexfall-rules__pager-title {
  grid-column: 1;
  justify-content: center;
  padding: 8px 10px;
  text-align: center;
}

.hexfall-rules__pager > span {
  position: absolute;
  left: 50%;
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  color: #71502e;
  transform: translateX(-50%);
}

.hexfall-rules__pager > span::before,
.hexfall-rules__pager > span::after {
  content: "◆";
  color: #a37836;
  font-size: 6px;
}

@media (max-width: 1050px) {
  .hexfall-rules__reader {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
  }

  .hexfall-rules__nav {
    top: 0;
    align-content: initial;
    min-height: 0;
    padding: 8px;
    border: 1px solid rgba(184, 143, 72, 0.42);
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-inline: contain;
    background: rgba(15, 13, 11, 0.96);
  }

  .hexfall-rules__nav::before,
  .hexfall-rules__tab[aria-selected="true"]::after {
    display: none;
  }

  .hexfall-rules__tab {
    min-height: 48px;
    border: 0;
    border-right: 1px solid rgba(184, 143, 72, 0.18);
  }

  .hexfall-rules__tab[aria-selected="true"] {
    border: 0;
    color: #fff0d1;
    background: rgba(138, 92, 40, 0.44);
    box-shadow: inset 0 -3px 0 #d0a45a;
  }

  .hexfall-rules__panel {
    min-height: 0;
    height: auto;
    overflow: visible;
  }
}

@media (max-width: 699px) {
  .hexfall-rules {
    padding-top: clamp(44px, 12vw, 58px);
    background-position: center top, center top;
  }

  .hexfall-rules__header {
    margin-bottom: 28px;
  }

  .hexfall-rules__title::after {
    width: min(220px, 72vw);
    margin-top: 10px;
    margin-bottom: 9px;
  }

  .hexfall-rules__actions {
    margin-top: 14px;
  }

  .hexfall-rules__reader {
    gap: 18px;
  }

  .hexfall-rules__panel {
    padding: 26px clamp(22px, 6.5vw, 28px) 22px;
    border-width: 9px;
    border-image-width: 9px;
    box-shadow:
      inset 0 0 16px rgba(91, 59, 27, 0.13),
      0 16px 34px rgba(0, 0, 0, 0.44);
  }

  .hexfall-rules__panel::before {
    top: -11px;
    width: min(94px, 28vw);
  }

  .hexfall-rules__panel::after {
    inset: 5px;
  }

  .hexfall-rules__chapter-title {
    margin-bottom: 16px;
    padding-bottom: 9px;
    font-size: clamp(27px, 8.2vw, 32px);
    line-height: 1.16;
  }

  .hexfall-rules__panel h3 {
    font-size: clamp(19px, 5.7vw, 22px);
  }

  .hexfall-rules__panel p,
  .hexfall-rules__panel li,
  .hexfall-rules__table th,
  .hexfall-rules__table td {
    line-height: 1.42;
  }

  .hexfall-rules__section + .hexfall-rules__section::before,
  .hexfall-rules__section + .hexfall-rules__callout::before,
  .hexfall-rules__callout + .hexfall-rules__section::before {
    width: 88%;
    margin-bottom: 14px;
  }

  .hexfall-rules__section + .hexfall-rules__section,
  .hexfall-rules__section + .hexfall-rules__callout,
  .hexfall-rules__callout + .hexfall-rules__section {
    margin-top: 14px;
  }

  .hexfall-rules__callout {
    padding: 12px 14px;
  }

  .hexfall-rules__rule-card,
  .hexfall-rules__utility-card,
  .hexfall-rules__rule-row {
    padding: 11px 13px;
  }

  .hexfall-rules__rule-rows--outcome .hexfall-rules__rule-row,
  .hexfall-rules__rule-rows--outcome .hexfall-rules__rule-row:last-child {
    display: block;
    padding: 11px 13px;
  }

  .hexfall-rules__rule-rows--outcome .hexfall-rules__rule-row h3 {
    margin-bottom: 6px;
    padding: 0 0 6px;
    border-right: 0;
    border-bottom: 1px solid rgba(126, 87, 41, 0.24);
    justify-content: flex-start;
    text-align: left;
  }

  .hexfall-rules__rule-rows--outcome .hexfall-rules__rule-content {
    display: block;
    padding-left: 0;
  }

  .hexfall-rules__utility-rows {
    gap: 6px;
  }

  .hexfall-rules__utility-row {
    display: block;
  }

  .hexfall-rules__utility-row h4 {
    margin-bottom: 6px;
    padding: 0 0 6px;
    border-right: 0;
    border-bottom: 1px solid rgba(126, 87, 41, 0.24);
  }

  .hexfall-rules__utility-row .hexfall-rules__rule-content {
    display: block;
    padding-left: 0;
  }

  .hexfall-rules__steps {
    gap: 5px;
  }

  .hexfall-rules__steps > li {
    min-height: 0;
    padding: 8px 10px 8px 44px;
  }

  .hexfall-rules__steps > li::before {
    top: 50%;
    left: 10px;
    width: 26px;
    height: 26px;
    font-size: 12px;
    transform: translateY(-50%);
  }

  .hexfall-rules__steps--large > li {
    padding-top: 8px;
    padding-bottom: 8px;
  }

  .hexfall-rules__steps--turn > li {
    grid-template-columns: 52px minmax(0, 1fr);
    padding: 0;
  }

  .hexfall-rules__steps--turn .hexfall-rules__step-number {
    padding: 8px 10px;
  }

  .hexfall-rules__steps--turn .hexfall-rules__step-number::before {
    width: 26px;
    height: 26px;
    font-size: 12px;
  }

  .hexfall-rules__steps--turn > li > p {
    padding: 8px 12px;
  }

  .hexfall-rules__rule-row {
    gap: 10px;
  }

  .hexfall-rules__rule-row h3,
  .hexfall-rules__utility-row h4 {
    margin-bottom: 5px;
  }

  .hexfall-rules__table tr {
    border-color: rgba(99, 66, 31, 0.34);
    background: rgba(255, 249, 230, 0.28);
  }

  .hexfall-rules__pager {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
    margin-top: 16px;
    padding-top: 18px;
  }

  .hexfall-rules__pager button {
    width: 100%;
    min-width: 0;
    max-width: none;
    min-height: 48px;
    padding: 0;
  }

  .hexfall-rules__pager-title {
    font-size: 10px;
    white-space: normal;
  }

  .hexfall-rules__pager > span {
    position: static;
    grid-column: 1 / -1;
    grid-row: 1;
    gap: 6px;
    transform: none;
  }

  /*
    Mobile Rules controls: keep all chapters in one swipeable row, reveal
    overflow with edge fades, and give long pager destinations two clean lines.
  */
  .hexfall-rules__nav {
    --hf-rules-nav-cue-left: 0;
    --hf-rules-nav-cue-right: 0;
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x proximity;
    scroll-padding-inline: 12px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    touch-action: pan-x pan-y;
    background:
      linear-gradient(
        90deg,
        rgba(208, 164, 90, var(--hf-rules-nav-cue-left)),
        rgba(15, 13, 11, 0) 34px
      ) left center / 34px 100% no-repeat,
      linear-gradient(
        270deg,
        rgba(208, 164, 90, var(--hf-rules-nav-cue-right)),
        rgba(15, 13, 11, 0) 34px
      ) right center / 34px 100% no-repeat,
      rgba(15, 13, 11, 0.96);
  }

  .hexfall-rules__nav::-webkit-scrollbar {
    display: none;
  }

  .hexfall-rules__nav--can-scroll-left {
    --hf-rules-nav-cue-left: 0.46;
  }

  .hexfall-rules__nav--can-scroll-right {
    --hf-rules-nav-cue-right: 0.46;
  }

  .hexfall-rules__tab {
    flex: 0 0 clamp(145px, 43vw, 180px);
    min-width: 0;
    scroll-snap-align: center;
  }

  .hexfall-rules__pager {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: auto auto;
    align-items: stretch;
    column-gap: 9px;
    row-gap: 10px;
  }

  .hexfall-rules__pager > span {
    position: static;
    grid-column: 1 / -1;
    grid-row: 1;
    justify-self: center;
    transform: none;
  }

  .hexfall-rules__pager button:first-child,
  .hexfall-rules__pager button:last-child {
    grid-row: 2;
    width: 100%;
    min-width: 0;
    max-width: none;
    min-height: 58px;
    height: 100%;
    justify-self: stretch;
    text-align: center;
  }

  .hexfall-rules__pager button:first-child {
    grid-column: 1;
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .hexfall-rules__pager button:last-child {
    grid-column: 2;
    grid-template-columns: minmax(0, 1fr) 42px;
  }

  .hexfall-rules__pager button:first-child::before,
  .hexfall-rules__pager button:last-child::after {
    align-self: center;
    width: 42px;
    min-height: 48px;
    height: 48px;
    background-size: 19px auto;
  }

  .hexfall-rules__pager-title,
  .hexfall-rules__pager button:first-child .hexfall-rules__pager-title,
  .hexfall-rules__pager button:last-child .hexfall-rules__pager-title {
    min-width: 0;
    padding: 7px 5px;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    font-size: clamp(9px, 2.8vw, 11px);
    line-height: 1.15;
    text-align: center;
    white-space: normal;
    text-wrap: balance;
    overflow-wrap: anywhere;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hexfall-rules__cross-link::before {
    transition: none;
  }
}

/*
  Free STL Downloads.
  Inserted after Rules and before Gallery. The block uses only hexfall-stl-*
  selectors so it can be adjusted later without touching the neighbouring
  Rules reader or Gallery mosaic.
*/
.hexfall-stl-section {
  --hf-stl-gold: #c9a55b;
  --hf-stl-gold-bright: #e5c77f;
  --hf-stl-cream: #eadcc0;
  --hf-stl-muted-cream: #d8c8a8;
  --hf-stl-ink: #261b12;
  --hf-stl-ink-soft: #4e3926;
  --hf-stl-button-text: #f1dfb6;
  box-sizing: border-box;
  position: relative;
  width: 100vw;
  margin: -1px 0 0 calc(50% - 50vw);
  padding: clamp(110px, 7vw, 150px) clamp(18px, 4vw, 64px) clamp(90px, 6vw, 130px);
  overflow: clip;
  color: var(--hf-stl-cream);
  background-color: #0c0b0a;
  isolation: isolate;
}

.hexfall-stl-section__background {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  width: 100%;
  max-width: none;
  height: 100% !important;
  object-fit: fill;
  pointer-events: none;
}

.hexfall-stl-section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(180deg, #000000 0%, rgba(0, 0, 0, 0.84) 3%, rgba(0, 0, 0, 0) 15%, rgba(0, 0, 0, 0) 84%, rgba(0, 0, 0, 0.88) 97%, #000000 100%),
    radial-gradient(circle at 50% 38%, rgba(0, 0, 0, 0.02), rgba(0, 0, 0, 0.26) 72%),
    linear-gradient(180deg, rgba(8, 7, 6, 0.1), rgba(8, 7, 6, 0.2));
  pointer-events: none;
}

.hexfall-stl-section *,
.hexfall-stl-section *::before,
.hexfall-stl-section *::after {
  box-sizing: border-box;
}

.hexfall-stl-section__inner {
  position: relative;
  z-index: 1;
  width: min(100%, 1460px);
  margin: 0 auto;
}

.hexfall-stl-section__header {
  max-width: 900px;
  margin: 0 auto clamp(34px, 4vw, 58px);
  text-align: center;
}

.hexfall-stl-section__title {
  margin: 0;
  color: var(--hf-stl-cream);
  font-family: Cinzel, Georgia, "Times New Roman", serif;
  font-size: clamp(48px, 4.1vw, 64px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-shadow: 0 3px 16px rgba(0, 0, 0, 0.68);
}

.hexfall-stl-section__divider {
  display: block;
  width: min(330px, 60vw);
  height: auto;
  margin: clamp(14px, 1.8vw, 22px) auto clamp(16px, 2vw, 24px);
  opacity: 0.9;
  pointer-events: none;
}

.hexfall-stl-section__intro {
  max-width: 820px;
  margin: 0 auto;
  color: var(--hf-stl-muted-cream);
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  font-size: clamp(20px, 1.55vw, 24px);
  font-weight: 400;
  line-height: 1.42;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.58);
}

.hexfall-stl-section__cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: clamp(24px, 2.4vw, 36px);
  width: min(100%, 1460px);
  margin: 0 auto;
}

.hexfall-stl-card {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: clamp(560px, 46vw, 650px);
  padding: clamp(42px, 3.2vw, 56px) clamp(54px, 4.6vw, 72px) clamp(46px, 3.2vw, 60px);
  color: var(--hf-stl-ink);
  background-color: transparent;
  filter: drop-shadow(0 18px 34px rgba(0, 0, 0, 0.34));
}

.hexfall-stl-section.is-lazy-active .hexfall-stl-card {
  background-image: url("./optimized/stl-file-background.webp");
  background-size: 100% 100%;
  background-position: center;
  background-repeat: no-repeat;
}

.hexfall-stl-card__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  min-height: 100%;
  padding: clamp(10px, 1vw, 16px) 0 0;
  text-align: center;
}

.hexfall-stl-card__title {
  margin: 0;
  color: #2d1e12;
  font-family: Cinzel, Georgia, "Times New Roman", serif;
  font-size: clamp(25px, 1.95vw, 31px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.hexfall-stl-card__divider {
  display: block;
  width: min(170px, 62%);
  height: 1px;
  margin: clamp(12px, 1.3vw, 18px) auto clamp(14px, 1.6vw, 24px);
  background: linear-gradient(90deg, transparent, rgba(83, 54, 26, 0.78), rgba(201, 165, 91, 0.92), rgba(83, 54, 26, 0.78), transparent);
}

.hexfall-stl-card__image-wrap {
  display: grid;
  place-items: center;
  width: 100%;
  min-height: clamp(220px, 18vw, 290px);
  margin-bottom: clamp(16px, 1.6vw, 24px);
}

.hexfall-stl-card__image {
  display: block;
  width: min(90%, 320px);
  max-width: 100%;
  max-height: clamp(220px, 18vw, 290px);
  height: auto;
  object-fit: contain;
  object-position: center;
  filter: drop-shadow(0 10px 13px rgba(38, 27, 18, 0.24));
}

.hexfall-stl-card__image--terrain {
  width: min(100%, 340px);
}

.hexfall-stl-card__image--tokens {
  width: min(88%, 270px);
}

.hexfall-stl-card__image--markers {
  width: min(82%, 240px);
}

.hexfall-stl-card__description {
  max-width: 310px;
  margin: 0 auto clamp(22px, 2vw, 30px);
  color: var(--hf-stl-ink-soft);
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  font-size: clamp(17px, 1.35vw, 20px);
  font-weight: 600;
  line-height: 1.35;
}

.hexfall-stl-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: clamp(232px, 18vw, 292px);
  aspect-ratio: 1437 / 402;
  min-height: 0;
  margin-top: auto;
  padding: 0 clamp(26px, 2vw, 36px);
  border: 0;
  color: var(--hf-stl-button-text) !important;
  font-family: Cinzel, Georgia, "Times New Roman", serif;
  font-size: clamp(12px, 0.95vw, 15px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.04em;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.72);
  background-color: transparent;
  background-size: 107% auto;
  background-position: center 50%;
  background-repeat: no-repeat;
  cursor: pointer;
  transition: transform 200ms ease, filter 200ms ease, color 200ms ease;
}

.hexfall-stl-section.is-lazy-active .hexfall-stl-button {
  background-image: url("./optimized/stl-button-background.webp");
}

.hexfall-stl-button:hover,
.hexfall-stl-button:focus-visible {
  color: #ffe8ae !important;
  filter: brightness(1.1) drop-shadow(0 0 8px rgba(229, 199, 127, 0.18));
  transform: translateY(-1px);
}

.hexfall-stl-button:focus-visible {
  outline: 3px solid var(--hf-stl-gold-bright);
  outline-offset: 4px;
}

.hexfall-stl-section__download-all {
  display: flex;
  justify-content: center;
  margin: clamp(34px, 4vw, 56px) auto 0;
}

.hexfall-stl-button--all {
  width: clamp(320px, 28vw, 460px);
  aspect-ratio: 1437 / 330;
  min-height: 0;
  padding-inline: clamp(18px, 1.6vw, 28px);
  font-size: clamp(15px, 1.15vw, 18px);
}

.hexfall-stl-section__note {
  margin: clamp(16px, 2vw, 24px) auto 0;
  color: rgba(232, 218, 188, 0.82);
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  font-size: clamp(14px, 1.1vw, 16px);
  line-height: 1.4;
  text-align: center;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.55);
}

@media (max-width: 1050px) {
  .hexfall-stl-section {
    padding: clamp(76px, 8vw, 106px) clamp(18px, 4vw, 42px) clamp(72px, 8vw, 104px);
  }

  .hexfall-stl-section__title {
    font-size: clamp(40px, 5vw, 48px);
  }

  .hexfall-stl-section__cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 880px;
  }

  .hexfall-stl-card:last-child {
    grid-column: 1 / -1;
    justify-self: center;
    width: min(100%, 420px);
  }
}

@media (max-width: 760px) {
  .hexfall-stl-section {
    padding: clamp(58px, 12vw, 78px) clamp(16px, 5vw, 24px) clamp(58px, 12vw, 82px);
    background-position: center;
  }

  .hexfall-stl-section__header {
    margin-bottom: 30px;
  }

  .hexfall-stl-section__title {
    font-size: clamp(32px, 9vw, 38px);
    letter-spacing: 0.03em;
  }

  .hexfall-stl-section__divider {
    width: min(260px, 70vw);
  }

  .hexfall-stl-section__intro {
    max-width: 520px;
    font-size: clamp(17px, 4.6vw, 19px);
    line-height: 1.38;
  }

  .hexfall-stl-section__cards {
    grid-template-columns: minmax(0, 1fr);
    max-width: 420px;
    gap: 22px;
  }

  .hexfall-stl-card,
  .hexfall-stl-card:last-child {
    grid-column: auto;
    width: 100%;
    min-height: 0;
    padding: 40px clamp(42px, 12vw, 58px) 42px;
  }

  .hexfall-stl-card__title {
    font-size: clamp(24px, 7vw, 28px);
  }

  .hexfall-stl-card__image-wrap {
    min-height: clamp(200px, 52vw, 250px);
  }

  .hexfall-stl-card__image {
    max-height: clamp(200px, 52vw, 250px);
  }

  .hexfall-stl-button {
    width: min(100%, 292px);
    font-size: 13px;
  }

  .hexfall-stl-button--all {
    width: min(100%, 360px);
    aspect-ratio: 1437 / 330;
    padding-inline: 18px;
    font-size: clamp(14px, 4vw, 16px);
  }
}

@media (max-width: 430px) {
  .hexfall-stl-card {
    padding-inline: 38px;
  }

  .hexfall-stl-card__description {
    font-size: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hexfall-stl-button {
    transition: none;
  }

  .hexfall-stl-button:hover,
  .hexfall-stl-button:focus-visible {
    transform: none;
  }
}

/* Gallery section that follows the Rules Reader. */
.hexfall-gallery {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  padding: clamp(10px, 1.5vw, 18px) 0 clamp(36px, 4vw, 60px);
  overflow-x: clip;
  color: #efe3c8;
  background-color: #0b0a08;
  background-image:
    linear-gradient(180deg, rgba(13, 11, 9, 0.96) 0%, rgba(9, 8, 7, 0.98) 100%),
    radial-gradient(circle at top center, rgba(255, 232, 190, 0.06), transparent 38%);
}

.hexfall-gallery[hidden] {
  display: none !important;
}

.hexfall-gallery--scroll-lock {
  overflow: hidden;
}

.hexfall-gallery__inner {
  width: min(100%, 1640px);
  margin: 0 auto;
  padding-inline: clamp(18px, 3vw, 36px);
  box-sizing: border-box;
}

.hexfall-gallery__header {
  margin-bottom: clamp(20px, 2.2vw, 32px);
  text-align: center;
}

.hexfall-gallery__title {
  margin: 0;
  color: #f4e8c9;
  font-family: Cinzel, Georgia, "Times New Roman", serif;
  font-size: clamp(38px, 4vw, 60px);
  font-weight: 700;
  line-height: 1.08;
}

.hexfall-gallery__title::after {
  content: "";
  display: block;
  width: clamp(180px, 16vw, 260px);
  height: 16px;
  margin: 14px auto 10px;
  background: url("./divider.png") center / contain no-repeat;
  opacity: 0.85;
  pointer-events: none;
}

.hexfall-gallery__intro {
  max-width: 900px;
  margin: 0 auto;
  color: #ddd0b4;
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  font-size: clamp(17px, 1.35vw, 20px);
  line-height: 1.55;
}

.hexfall-gallery__toolbar {
  height: 0;
  margin: 0;
}

.hexfall-gallery__status {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  border: 0;
  white-space: nowrap;
  color: #bda57b;
  font-family: Cinzel, Georgia, "Times New Roman", serif;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.hexfall-gallery__mosaic,
.hexfall-gallery__grid {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  grid-template-rows: repeat(6, minmax(0, 1fr));
  grid-template-areas:
    "a a b b b b c c"
    "a a b b b b c c"
    "d d b b b b e e"
    "d d f f g g e e"
    "h h f f g g i i"
    "h h j j j j i i";
  gap: clamp(10px, 1vw, 14px);
  width: 100%;
  aspect-ratio: 8 / 6;
  box-sizing: border-box;
  align-items: stretch;
}

.hexfall-gallery__item {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 10px;
  overflow: hidden;
  line-height: 0;
  color: inherit;
  text-align: left;
  background: rgba(0, 0, 0, 0.18);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition: transform 190ms ease, box-shadow 190ms ease, filter 190ms ease;
}

.hexfall-gallery__item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.14);
  opacity: 0;
  transition: opacity 180ms ease;
  pointer-events: none;
}

.hexfall-gallery__item:hover,
.hexfall-gallery__item:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.34);
  filter: saturate(1.03);
}

.hexfall-gallery__item:hover::after,
.hexfall-gallery__item:focus-visible::after {
  opacity: 1;
}

.hexfall-gallery__item:focus-visible {
  outline: 2px solid rgba(227, 197, 121, 0.92);
  outline-offset: 3px;
}

.hexfall-gallery__item[data-gallery-slot="a"] {
  grid-area: a;
}

.hexfall-gallery__item[data-gallery-slot="b"] {
  grid-area: b;
}

.hexfall-gallery__item[data-gallery-slot="c"] {
  grid-area: c;
}

.hexfall-gallery__item[data-gallery-slot="d"] {
  grid-area: d;
}

.hexfall-gallery__item[data-gallery-slot="e"] {
  grid-area: e;
}

.hexfall-gallery__item[data-gallery-slot="f"] {
  grid-area: f;
}

.hexfall-gallery__item[data-gallery-slot="g"] {
  grid-area: g;
}

.hexfall-gallery__item[data-gallery-slot="h"] {
  grid-area: h;
}

.hexfall-gallery__item[data-gallery-slot="i"] {
  grid-area: i;
}

.hexfall-gallery__item[data-gallery-slot="j"] {
  grid-area: j;
}

.hexfall-gallery__item > .hexfall-gallery__image {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  vertical-align: middle;
  transition: transform 220ms ease, filter 220ms ease;
  object-fit: cover;
  object-position: 50% 50%;
  box-sizing: border-box;
}

.hexfall-gallery__item:hover > .hexfall-gallery__image,
.hexfall-gallery__item:focus-visible > .hexfall-gallery__image {
  transform: scale(1.015);
  filter: saturate(1.04) contrast(1.03);
}

.hexfall-gallery__lightbox[hidden] {
  display: none !important;
}

.hexfall-gallery__lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: clamp(12px, 2vw, 24px);
  background: rgba(4, 3, 2, 0.9);
}

.hexfall-gallery__backdrop {
  position: absolute;
  inset: 0;
}

.hexfall-gallery__dialog {
  position: relative;
  z-index: 1;
  width: min(96vw, 1400px);
  margin: 0 auto;
  outline: none;
}

.hexfall-gallery__figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin: 0;
  padding: 56px 84px 66px;
}

.hexfall-gallery__lightbox .hexfall-gallery__image {
  position: static;
  width: auto;
  height: auto;
  max-width: 92vw;
  max-height: 86vh;
  object-fit: contain;
  background: #0d0c0a;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.55);
}

.hexfall-gallery__caption {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 14px;
  color: #f0e0b9;
  font-family: Cinzel, Georgia, "Times New Roman", serif;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
}

.hexfall-gallery__counter {
  color: #c7a35b;
}

.hexfall-gallery__close,
.hexfall-gallery__previous,
.hexfall-gallery__next {
  position: absolute;
  display: grid;
  place-items: center;
  min-width: 56px;
  min-height: 56px;
  padding: 10px 14px;
  border: 1px solid rgba(191, 151, 79, 0.72);
  border-radius: 4px;
  color: #f4e7c7;
  font-family: Cinzel, Georgia, "Times New Roman", serif;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.02em;
  background: rgba(18, 16, 13, 0.9);
  box-shadow: inset 0 1px 0 rgba(255, 235, 188, 0.08);
  cursor: pointer;
}

.hexfall-gallery__close:hover,
.hexfall-gallery__previous:hover,
.hexfall-gallery__next:hover,
.hexfall-gallery__close:focus-visible,
.hexfall-gallery__previous:focus-visible,
.hexfall-gallery__next:focus-visible {
  border-color: rgba(225, 185, 98, 0.88);
  background: rgba(33, 29, 23, 0.98);
}

.hexfall-gallery__close:focus-visible,
.hexfall-gallery__previous:focus-visible,
.hexfall-gallery__next:focus-visible {
  outline: 2px solid rgba(227, 197, 121, 0.92);
  outline-offset: 3px;
}

.hexfall-gallery__close {
  top: 10px;
  right: 10px;
}

.hexfall-gallery__previous {
  top: 50%;
  left: 0;
  transform: translate(-10%, -50%);
}

.hexfall-gallery__next {
  top: 50%;
  right: 0;
  transform: translate(10%, -50%);
}

.hexfall-gallery__caption-title {
  display: inline-block;
}

@media (max-width: 1200px) {
  .hexfall-gallery__mosaic,
  .hexfall-gallery__grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    grid-template-rows: repeat(7, minmax(0, 1fr));
    grid-template-areas:
      "a a b b c c"
      "a a b b c c"
      "d d b b e e"
      "d d f f e e"
      "g g f f h h"
      "g g i i h h"
      "j j i i i i";
    aspect-ratio: 6 / 7;
  }
}

@media (max-width: 820px) {
  .hexfall-gallery__mosaic,
  .hexfall-gallery__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-template-rows: repeat(10, minmax(0, 1fr));
    grid-template-areas:
      "a a b b"
      "a a b b"
      "c c b b"
      "d d e e"
      "d d e e"
      "f f g g"
      "h h g g"
      "h h i i"
      "j j i i"
      "j j j j";
    aspect-ratio: 4 / 10;
  }
}

@media (max-width: 540px) {
  .hexfall-gallery {
    padding-top: 10px;
  }

  .hexfall-gallery__mosaic,
  .hexfall-gallery__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(15, minmax(0, 1fr));
    grid-template-areas:
      "a a"
      "a a"
      "b b"
      "b b"
      "c c"
      "d d"
      "d d"
      "e e"
      "f f"
      "f f"
      "g g"
      "h h"
      "i i"
      "i i"
      "j j";
    aspect-ratio: 2 / 15;
  }

  .hexfall-gallery__item {
    min-height: 0;
  }

  .hexfall-gallery__title {
    font-size: clamp(32px, 10vw, 44px);
  }

  .hexfall-gallery__figure {
    padding: 42px 14px 52px;
  }

  .hexfall-gallery__lightbox .hexfall-gallery__image {
    position: static;
    max-width: 92vw;
    max-height: calc(100vh - 136px);
  }

  .hexfall-gallery__previous,
  .hexfall-gallery__next,
  .hexfall-gallery__close {
    min-width: 88px;
    min-height: 48px;
  }
}

@media (max-width: 360px) {
  .hexfall-gallery__mosaic,
  .hexfall-gallery__grid {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(10, minmax(0, 1fr));
    grid-template-areas:
      "a"
      "b"
      "c"
      "d"
      "e"
      "f"
      "g"
      "h"
      "i"
      "j";
    aspect-ratio: 1 / 10;
  }

  .hexfall-gallery__caption {
    font-size: 13px;
  }
}

@media (max-width: 520px) {
  #rules-attacks-los .hexfall-rules__attack-row {
    grid-template-columns: minmax(0, 1fr) 36px;
    grid-template-areas:
      "label icon"
      "copy copy";
    gap: 6px 8px;
    padding: 8px;
  }

  #rules-attacks-los .hexfall-rules__attack-label {
    grid-area: label;
    text-align: left;
  }

  #rules-attacks-los .hexfall-rules__attack-icon {
    grid-area: icon;
    width: 36px;
    justify-self: end;
  }

  #rules-attacks-los .hexfall-rules__attack-row > p {
    grid-area: copy;
  }

  #rules-damage-armor .hexfall-rules__damage-row {
    grid-template-columns: minmax(0, 1fr) 78px;
    grid-template-areas:
      "label icon"
      "copy copy";
    gap: 6px 8px;
    padding: 8px;
  }

  #rules-damage-armor .hexfall-rules__damage-label {
    grid-area: label;
    text-align: left;
  }

  #rules-damage-armor .hexfall-rules__damage-icons {
    grid-area: icon;
    justify-self: end;
  }

  #rules-damage-armor .hexfall-rules__damage-icon {
    width: 36px;
  }

  #rules-damage-armor .hexfall-rules__damage-row > p {
    grid-area: copy;
  }
}

/* Final product purchase call-to-action. */
.hexfall-purchase {
  --hf-purchase-bg: #0f0504;
  --hf-purchase-bg-soft: #0f0504;
  --hf-purchase-gold: #d8b66b;
  --hf-purchase-cream: #eadcc0;

  box-sizing: border-box;
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  overflow: hidden;
  color: var(--hf-purchase-cream);
  background: var(--hf-purchase-bg);
}

.hexfall-purchase *,
.hexfall-purchase *::before,
.hexfall-purchase *::after {
  box-sizing: border-box;
}

.hexfall-purchase__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(420px, 0.98fr);
  align-items: center;
  width: min(100%, 1540px);
  min-height: clamp(650px, 46vw, 790px);
  margin: 0 auto;
  padding: clamp(24px, 2.8vw, 46px) clamp(26px, 3.4vw, 58px);
}

.hexfall-purchase__visual {
  position: relative;
  z-index: 1;
  display: grid;
  min-width: 0;
  height: 100%;
  place-items: center;
}

.hexfall-purchase__visual::after {
  content: "";
  position: absolute;
  top: 8%;
  right: -5%;
  bottom: 8%;
  width: 20%;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(15, 5, 4, 0), var(--hf-purchase-bg) 92%);
}

.hexfall-purchase__artwork {
  display: block;
  width: min(100%, 760px);
  height: auto;
  max-width: 100%;
  margin: 0 auto;
  object-fit: contain;
  filter: drop-shadow(0 28px 42px rgba(0, 0, 0, 0.42));
}

.hexfall-free-delivery-badge {
  display: block;
  width: clamp(120px, 8vw, 135px);
  max-width: 100%;
  height: auto;
  filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.28));
  pointer-events: none;
}

.hexfall-free-delivery-badge--desktop {
  position: absolute;
  right: clamp(30px, 5vw, 76px);
  bottom: clamp(54px, 7vw, 110px);
  z-index: 3;
  transform: rotate(-6deg);
}

.hexfall-free-delivery-badge--mobile {
  display: none;
}

.hexfall-purchase__content {
  position: relative;
  z-index: 2;
  display: flex;
  width: min(100%, 590px);
  min-width: 0;
  margin-left: clamp(-68px, -3.8vw, -34px);
  padding: clamp(28px, 3vw, 48px) clamp(20px, 2.6vw, 40px);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hexfall-purchase__logo {
  display: block;
  width: min(100%, 340px);
  height: auto;
  margin: 0 auto;
}

.hexfall-purchase__tagline {
  max-width: 31ch;
  margin: clamp(16px, 1.6vw, 22px) 0 0;
  color: #e2d4b9;
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  font-size: clamp(20px, 1.35vw, 24px);
  font-weight: 600;
  line-height: 1.25;
}

.hexfall-purchase__info-bar {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: min(100%, 500px);
  min-height: 118px;
  margin: clamp(20px, 2vw, 28px) 0 0;
  padding: 12px 10px;
  overflow: hidden;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100% 100%;
}

.hexfall-purchase.is-lazy-active .hexfall-purchase__info-bar {
  background-image: url("./optimized/hexfall-information-bar.webp");
}

.hexfall-purchase__info-item {
  position: relative;
  display: flex;
  min-width: 0;
  padding: 6px 10px 8px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  text-align: center;
}

.hexfall-purchase__info-item + .hexfall-purchase__info-item::before {
  content: "";
  position: absolute;
  top: 10%;
  bottom: 10%;
  left: 0;
  width: 1px;
  background: linear-gradient(
    180deg,
    transparent,
    rgba(216, 182, 107, 0.58) 18%,
    rgba(216, 182, 107, 0.58) 82%,
    transparent
  );
}

.hexfall-purchase__info-icon {
  display: block;
  width: clamp(34px, 3vw, 48px);
  height: clamp(34px, 3vw, 48px);
  object-fit: contain;
  flex: 0 0 auto;
}

.hexfall-purchase__info-text {
  display: block;
  max-width: 12ch;
  color: #e4d4b5;
  font-family: Cinzel, Georgia, "Times New Roman", serif;
  font-size: clamp(10px, 0.72vw, 12px);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.hexfall-purchase__contents {
  width: min(100%, 500px);
  margin-top: clamp(20px, 2vw, 28px);
}

.hexfall-purchase__contents-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 10px;
  color: var(--hf-purchase-gold);
  font-family: Cinzel, Georgia, "Times New Roman", serif;
  font-size: clamp(16px, 1.05vw, 19px);
  font-weight: 600;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.hexfall-purchase__contents-title::before,
.hexfall-purchase__contents-title::after {
  content: "";
  flex: 1 1 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(216, 182, 107, 0.5));
}

.hexfall-purchase__contents-title::after {
  background: linear-gradient(90deg, rgba(216, 182, 107, 0.5), transparent);
}

.hexfall-purchase__contents-grid {
  display: grid;
  grid-template-columns: minmax(54px, 72px) minmax(0, 1fr) minmax(54px, 72px) minmax(0, 1fr);
  margin: 0;
  border-top: 1px solid rgba(211, 174, 101, 0.22);
  border-left: 1px solid rgba(211, 174, 101, 0.22);
  background: rgba(20, 11, 7, 0.28);
}

.hexfall-purchase__contents-qty,
.hexfall-purchase__contents-item {
  min-height: 48px;
  border-right: 1px solid rgba(211, 174, 101, 0.22);
  border-bottom: 1px solid rgba(211, 174, 101, 0.22);
}

.hexfall-purchase__contents-qty {
  display: grid;
  place-items: center;
  padding: 8px 6px;
  color: #f0d391;
  font-family: Cinzel, Georgia, "Times New Roman", serif;
  font-size: clamp(16px, 1.02vw, 19px);
  font-weight: 700;
  line-height: 1;
  text-align: center;
  background: rgba(216, 182, 107, 0.10);
}

.hexfall-purchase__contents-item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 9px 12px;
  color: rgba(232, 219, 193, 0.9);
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  font-size: clamp(15px, 0.98vw, 18px);
  font-weight: 600;
  line-height: 1.1;
  text-align: center;
}

.hexfall-purchase__price {
  margin: clamp(20px, 2.1vw, 28px) 0 clamp(14px, 1.4vw, 20px);
  color: #f0d391;
  font-family: Cinzel, Georgia, "Times New Roman", serif;
  font-size: clamp(46px, 3.6vw, 64px);
  font-weight: 700;
  line-height: 1;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.72);
}

.hexfall-purchase__cart-form {
  display: flex;
  width: 100%;
  margin: 0;
  padding: 0;
  justify-content: center;
}

.hexfall-purchase__button {
  display: inline-block;
  width: min(100%, 320px);
  margin: 0;
  padding: 0;
  appearance: none;
  border: 0;
  color: inherit;
  background: transparent !important;
  box-shadow: none !important;
  cursor: pointer;
  transform: none !important;
  filter: none !important;
  transition: none;
}

.hexfall-purchase__button:hover,
.hexfall-purchase__button:active,
.hexfall-purchase__button:focus {
  border: 0;
  background: transparent !important;
  box-shadow: none !important;
  transform: none !important;
  filter: none !important;
}

.hexfall-purchase__button-image {
  display: block;
  width: 100%;
  height: auto;
  pointer-events: none;
}

.hexfall-purchase__button:focus-visible {
  outline: 3px solid #e7c66f;
  outline-offset: 5px;
}

@media (max-width: 1050px) {
  .hexfall-purchase__inner {
    grid-template-columns: minmax(0, 1fr) minmax(360px, 0.92fr);
    min-height: 620px;
    padding-inline: 18px;
  }

  .hexfall-purchase__content {
    margin-left: -28px;
    padding-inline: 16px;
  }

  .hexfall-free-delivery-badge--desktop {
    display: none;
  }

  .hexfall-free-delivery-badge--mobile {
    display: block;
    width: clamp(95px, 12vw, 110px);
    max-width: min(110px, 100%);
    margin: -4px auto clamp(12px, 2vw, 18px);
    transform: none;
  }
}

@media (max-width: 760px) {
  .hexfall-purchase {
    background: var(--hf-purchase-bg);
  }

  .hexfall-purchase__inner {
    display: block;
    min-height: 0;
    padding: 18px 0 0;
  }

  .hexfall-purchase__visual {
    width: 100%;
    height: auto;
    padding: 0 14px;
  }

  .hexfall-purchase__visual::after {
    top: auto;
    right: 0;
    bottom: -2px;
    left: 0;
    width: auto;
    height: 18%;
    background: linear-gradient(180deg, rgba(15, 5, 4, 0), var(--hf-purchase-bg) 100%);
  }

  .hexfall-purchase__artwork {
    width: min(100%, 620px);
  }

  .hexfall-free-delivery-badge--mobile {
    width: clamp(95px, 26vw, 110px);
    margin-bottom: clamp(12px, 3.8vw, 18px);
  }

  .hexfall-purchase__content {
    width: 100%;
    margin: -2px 0 0;
    padding: 30px 22px 54px;
  }

  .hexfall-purchase__logo {
    width: min(82vw, 320px);
  }

  .hexfall-purchase__tagline {
    font-size: clamp(19px, 5.2vw, 23px);
  }

  .hexfall-purchase__info-bar,
  .hexfall-purchase__contents {
    width: min(100%, 500px);
  }

  .hexfall-purchase__button {
    width: min(82vw, 310px);
  }
}

@media (max-width: 600px) {
  .hexfall-purchase__info-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    min-height: 0;
    padding: 12px;
    background-size: 100% 100%;
  }

  .hexfall-purchase__info-item {
    min-height: 92px;
    padding: 8px 12px;
  }

  .hexfall-purchase__info-item + .hexfall-purchase__info-item::before {
    display: none;
  }

  .hexfall-purchase__info-item:nth-child(even)::before {
    content: "";
    position: absolute;
    top: 12%;
    bottom: 12%;
    left: 0;
    display: block;
    width: 1px;
    background: linear-gradient(180deg, transparent, rgba(216, 182, 107, 0.58) 20%, rgba(216, 182, 107, 0.58) 80%, transparent);
  }

  .hexfall-purchase__info-item:nth-child(n + 3)::after {
    content: "";
    position: absolute;
    top: 0;
    right: 10%;
    left: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(216, 182, 107, 0.45) 20%, rgba(216, 182, 107, 0.45) 80%, transparent);
  }

  .hexfall-purchase__info-text {
    max-width: 16ch;
    font-size: clamp(10px, 2.8vw, 12px);
  }
}

@media (max-width: 430px) {
}

@media (prefers-reduced-motion: reduce) {
.hexfall-gallery__item,
.hexfall-gallery__image,
.hexfall-gallery__close,
.hexfall-gallery__previous,
.hexfall-gallery__next {
    transition: none;
  }

  .hexfall-purchase__button {
    transition: none;
  }
}


/* Mobile refinements: compact gallery and one box item per row. */
@media (max-width: 540px) {
  /*
    Show four previews in three compact rows:
    one full-width image, two half-width images, one full-width image.
    All remaining gallery items stay available on larger screens but are
    hidden from the mobile mosaic to keep the page short.
  */
  .hexfall-gallery__mosaic,
  .hexfall-gallery__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(3, minmax(0, 1fr));
    grid-template-areas:
      "a a"
      "b c"
      "d d";
    aspect-ratio: 1 / 1.12;
    gap: clamp(5px, 1.6vw, 8px);
  }

  .hexfall-gallery__item:nth-child(n + 5) {
    display: none;
  }

  /*
    Six entries, one beneath another:
    quantity cell + matching description cell.
  */
  .hexfall-purchase__contents-grid {
    grid-template-columns: minmax(52px, 68px) minmax(0, 1fr);
  }

  .hexfall-purchase__contents-qty,
  .hexfall-purchase__contents-item {
    min-height: 44px;
  }

  .hexfall-purchase__contents-item {
    justify-content: flex-start;
    padding-inline: 12px;
    text-align: left;
  }
}
.hexfall-gameplay-video__intro {
  position: relative;
  z-index: 1;
  width: min(92%, 980px);
  margin: 0 auto clamp(16px, 2vw, 28px);
  padding: clamp(24px, 3.2vw, 42px) clamp(22px, 4vw, 54px);

  color: rgba(236, 225, 204, 0.92);
  text-align: center;

  background:
    linear-gradient(
      rgba(18, 10, 7, 0.82),
      rgba(18, 10, 7, 0.88)
    );

  border: 1px solid rgba(211, 174, 101, 0.34);
  box-shadow:
    inset 0 0 28px rgba(0, 0, 0, 0.45),
    0 14px 34px rgba(0, 0, 0, 0.22);
}

.hexfall-gameplay-video.is-lazy-active .hexfall-gameplay-video__intro {
  background:
    linear-gradient(
      rgba(18, 10, 7, 0.82),
      rgba(18, 10, 7, 0.88)
    ),
    url("./optimized/rules-sidebar-background.webp") center / cover no-repeat;
}

.hexfall-gameplay-video__intro-title {
  margin: 0 0 clamp(16px, 2vw, 24px);

  color: #e3c27e;
  font-family: Cinzel, Georgia, "Times New Roman", serif;
  font-size: clamp(21px, 2vw, 31px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.025em;
  text-transform: uppercase;
}

.hexfall-gameplay-video__intro p {
  max-width: 78ch;
  margin: 0 auto 1em;

  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  font-size: clamp(18px, 1.35vw, 22px);
  font-weight: 500;
  line-height: 1.5;
}

.hexfall-gameplay-video__intro p:last-child {
  margin-bottom: 0;
}

@media (max-width: 600px) {
  .hexfall-gameplay-video__intro {
    width: calc(100% - 28px);
    padding: 22px 18px;
    margin-bottom: 18px;
  }

  .hexfall-gameplay-video__intro-title {
    font-size: clamp(19px, 6vw, 24px);
  }

  .hexfall-gameplay-video__intro p {
    font-size: 18px;
    line-height: 1.45;
  }
}
/* ==========================================================
   HEXFALL REASONS — SINGLE-CONTENT CARD ALIGNMENT OVERRIDE
   Paste this block at the very end of the stylesheet.
   ========================================================== */

/*
  The previous card layout expected:
  title / divider / body / divider / footer.

  The new cards contain only:
  title / divider / body.

  This flex layout removes the unused grid rows and keeps all
  three card headings, dividers and paragraphs aligned.
*/
.hexfall-reasons__panel-content {
  box-sizing: border-box;
  display: flex !important;
  flex: 1 1 auto;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  width: 100%;
  min-width: 0;
  min-height: 0;

  padding:
    clamp(52px, 4.4vw, 76px)
    clamp(30px, 2.8vw, 46px);

  text-align: center;
}

/*
  Equal title area across all cards.
  This allows two-line and three-line headings to align without
  pushing their divider or body text into different positions.
*/
.hexfall-reasons__panel-title {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;

  width: 100%;
  min-height: 3.45em;
  margin: 0;

  color: var(--hf-reasons-ink);
  font-family: Cinzel, Georgia, "Times New Roman", serif;
  font-size: clamp(20px, 1.55vw, 27px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: 0;
  text-align: center;
  text-transform: uppercase;
}

/*
  Divider now has a consistent position beneath every heading.
*/
.hexfall-reasons__divider {
  display: block;
  flex: 0 0 auto;

  width: min(72%, 210px);
  height: auto;

  margin:
    clamp(9px, 1vw, 14px)
    auto
    clamp(15px, 1.35vw, 21px);

  opacity: 0.86;
}

/*
  All three cards now use the same body class.
*/
.hexfall-reasons__body {
  width: 100%;
  max-width: 28ch;
  margin: 0 auto;

  color: var(--hf-reasons-muted-ink);
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  font-size: clamp(15px, 1.08vw, 18px);
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
}

.hexfall-reasons__body p {
  margin: 0;
}

/*
  Prevent old rules/footer layouts from affecting the new cards
  if those classes still appear elsewhere temporarily.
*/
.hexfall-reasons__panel-content > .hexfall-reasons__rules,
.hexfall-reasons__panel-content > .hexfall-reasons__footer-text {
  width: 100%;
  max-width: 28ch;
  margin: 0 auto;

  color: var(--hf-reasons-muted-ink);
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  font-size: clamp(15px, 1.08vw, 18px);
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
}

/* Tablet and compact desktop */
@media (max-width: 999px) {
  .hexfall-reasons__panel-content {
    padding:
      clamp(28px, 4vw, 44px)
      clamp(12px, 2vw, 20px);
  }

  .hexfall-reasons__panel-title {
    min-height: 3.65em;
    font-size: clamp(13px, 2.15vw, 21px);
    line-height: 1.04;
  }

  .hexfall-reasons__divider {
    width: min(70%, 150px);
    margin:
      clamp(7px, 1vw, 11px)
      auto
      clamp(10px, 1.4vw, 15px);
  }

  .hexfall-reasons__body,
  .hexfall-reasons__panel-content > .hexfall-reasons__rules,
  .hexfall-reasons__panel-content > .hexfall-reasons__footer-text {
    max-width: 25ch;
    font-size: clamp(10px, 1.55vw, 15px);
    line-height: 1.2;
  }
}

/* Mobile stacked-card presentation */
@media (max-width: 699px) {
  .hexfall-reasons__panel-content {
    justify-content: center;

    padding:
      clamp(54px, 13vw, 82px)
      clamp(32px, 9vw, 52px);
  }

  .hexfall-reasons__panel-title {
    min-height: 3.45em;
    font-size: clamp(20px, 5.7vw, 29px);
    line-height: 1.05;
  }

  .hexfall-reasons__divider {
    width: min(72%, 210px);
    margin:
      clamp(9px, 2.5vw, 14px)
      auto
      clamp(14px, 3.5vw, 20px);
  }

  .hexfall-reasons__body,
  .hexfall-reasons__panel-content > .hexfall-reasons__rules,
  .hexfall-reasons__panel-content > .hexfall-reasons__footer-text {
    max-width: 27ch;
    font-size: clamp(16px, 4.45vw, 20px);
    line-height: 1.28;
  }
}

/* Small phones */
@media (max-width: 420px) {
  .hexfall-reasons__panel-content {
    padding:
      clamp(44px, 12vw, 62px)
      clamp(25px, 7.5vw, 34px);
  }

  .hexfall-reasons__panel-title {
    min-height: 3.5em;
    font-size: clamp(18px, 5.7vw, 23px);
  }

  .hexfall-reasons__divider {
    width: min(68%, 185px);
    margin:
      9px
      auto
      13px;
  }

  .hexfall-reasons__body,
  .hexfall-reasons__panel-content > .hexfall-reasons__rules,
  .hexfall-reasons__panel-content > .hexfall-reasons__footer-text {
    max-width: 26ch;
    font-size: clamp(14px, 4.15vw, 17px);
    line-height: 1.22;
  }
}
