/*
Theme Name: White Horse Games
Theme URI: https://whitehorsegames.com
Author: White Horse Games
Author URI: https://whitehorsegames.com
Description: Official White Horse Games block theme.
Requires at least: 6.5
Tested up to: 6.5
Requires PHP: 8.1
Version: 0.2.2
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: whitehorse
Tags: full-site-editing, custom-logo, custom-menu, block-patterns
*/

:root {
  --whg-header-bg: #0f1b2a;
  --whg-header-border: rgba(255, 255, 255, 0.22);
  --whg-text-light: #e9dfc8;
  --whg-text-gold: #c7a94a;
  --whg-cta-primary: #3a2546;
  --whg-cta-primary-border: #5a3a6d;
  --whg-cta-secondary: #1e2f2b;
  --whg-cta-secondary-border: #36524c;
  --whg-card-border: rgba(15, 27, 42, 0.9);
  --whg-swish-wave: polygon(0 100%, 0 78%, 3% 71%, 8% 66%, 15% 70%, 22% 61%, 31% 72%, 42% 58%, 53% 73%, 64% 57%, 75% 71%, 85% 60%, 92% 68%, 97% 65%, 100% 71%, 100% 100%);
}

body {
  margin: 0;
}

.whg-header-shell {
  background-color: var(--whg-header-bg);
}

.whg-header-bar {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin: 0 auto;
  max-width: 1220px;
  padding: 0.62rem 0.95rem;
}

.whg-brand {
  align-items: center;
  color: var(--whg-text-light);
  display: inline-flex;
  gap: 0.7rem;
  text-decoration: none;
}

.whg-brand img {
  display: block;
  height: auto;
  width: 84px;
}

.whg-brand span {
  font-family: "Merriweather", Georgia, serif;
  font-size: 2.05rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 0.88;
}

.whg-main-nav {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  justify-content: flex-end;
}

.whg-main-nav a {
  border-radius: 5px;
  color: rgba(250, 245, 235, 0.96);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0;
  padding: 0.32rem 0.56rem;
  text-decoration: none;
  transition: background-color 120ms ease;
}

.whg-main-nav a:hover,
.whg-main-nav a:focus-visible {
  background: rgba(255, 255, 255, 0.16);
}

.whg-front-page {
  overflow: hidden;
}

/* Remove block-gap seam between header template part and hero container. */
.wp-site-blocks > .wp-block-template-part + .whg-front-page {
  margin-block-start: 0 !important;
}

.wp-site-blocks > main + .wp-block-template-part {
  margin-block-start: 0 !important;
  position: relative;
}

.wp-site-blocks > main + .wp-block-template-part::before {
  background: #f5f1e8;
  clip-path: var(--whg-swish-wave);
  -webkit-clip-path: var(--whg-swish-wave);
  content: "";
  height: 52px;
  left: 0;
  pointer-events: none;
  position: absolute;
  right: 0;
  top: -51px;
}

.whg-hero {
  background-color: #0f1b2a;
  position: relative;
  overflow: hidden;
  min-height: 65vh;
  padding: 3.45rem 1rem 2.3rem;
}

.whg-hero::before {
  background-image: url("./assets/hero/hero-bg-primary.png");
  background-position: center top;
  background-size: cover;
  content: "";
  filter: blur(3px);
  inset: -8px;
  opacity: 0.92;
  position: absolute;
  transform: scale(1.02);
}

.whg-hero::after {
  background:
    radial-gradient(145% 96% at 50% -18%, rgba(144, 165, 188, 0.18) 0%, rgba(144, 165, 188, 0) 56%),
    linear-gradient(180deg, rgba(8, 16, 28, 0.74) 0%, rgba(12, 23, 38, 0.52) 24%, rgba(17, 24, 43, 0.5) 56%, rgba(10, 14, 30, 0.9) 100%);
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
  z-index: 0;
}

.whg-hero-inner {
  display: grid;
  justify-items: center;
  max-width: 1100px;
  position: relative;
  row-gap: 0.52rem;
  text-align: center;
  z-index: 1;
}

.whg-hero-title {
  animation: whg-fade-rise 640ms ease forwards;
  font-size: clamp(2.2rem, 6.9vw, 4.8rem);
  letter-spacing: 0.01em;
  line-height: 0.98;
  margin: 0;
  opacity: 0;
  -webkit-text-stroke: 0.45px rgba(8, 14, 24, 0.6);
  text-shadow: 0 3px 10px rgba(4, 8, 16, 0.9), 0 12px 32px rgba(0, 0, 0, 0.72), 0 0 1px rgba(0, 0, 0, 0.95);
  text-transform: uppercase;
  transform: translateY(10px);
}

.whg-hero-title span {
  display: block;
}

.whg-hero-line-one {
  color: var(--whg-text-light);
}

.whg-hero-line-two {
  color: var(--whg-text-gold);
  margin-top: 0.28rem;
}

.whg-hero-subheading {
  animation: whg-fade-rise 700ms ease 120ms forwards;
  color: #f5f1e8;
  font-size: clamp(1rem, 2vw, 1.3rem);
  margin: 1rem auto 0;
  max-width: 780px;
  opacity: 0;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.78);
  transform: translateY(10px);
}

.whg-hero-title.is-waitlist {
  color: #f4ecdc;
  font-size: clamp(2rem, 5.4vw, 4rem);
  letter-spacing: 0;
  text-transform: none;
}

.whg-hero-subheading.is-waitlist {
  color: rgba(245, 241, 232, 0.95);
  font-size: clamp(1rem, 2vw, 1.22rem);
  margin-top: 0;
  max-width: 690px;
}

.whg-hero-waitlist {
  animation: whg-fade-rise 740ms ease 220ms forwards;
  margin: 0 auto;
  max-width: 760px;
  opacity: 0;
  transform: translateY(10px);
}

.whg-hero-waitlist .whitehorse-waitlist-shell {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
  position: relative;
}

.whg-hero-waitlist .whitehorse-waitlist-helper {
  display: none;
}

.whg-hero-waitlist .whitehorse-waitlist-form {
  align-items: stretch;
  background: #0f1b2a;
  border: 0;
  border-radius: 999px;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.2);
  display: grid;
  gap: 0;
  grid-template-columns: minmax(0, 1fr) clamp(96px, 21%, 138px);
  height: 44px;
  margin: 0 auto;
  max-width: 760px;
  overflow: hidden;
  width: min(92vw, 760px);
}

.whg-hero-waitlist .whitehorse-waitlist-form:focus-within {
  box-shadow: 0 0 0 2px rgba(199, 169, 74, 0.2), 0 10px 22px rgba(0, 0, 0, 0.2);
}

.whg-hero-waitlist .whitehorse-waitlist-email {
  background: rgba(252, 252, 250, 0.98);
  border: 0;
  border-radius: 999px 0 0 999px;
  color: #121a26;
  font-size: 0.95rem;
  font-weight: 500;
  height: 100%;
  margin: 0;
  min-height: 0;
  min-width: 0;
  padding: 0 1.1rem;
  line-height: normal;
  width: 100%;
}

.whg-hero-waitlist .whitehorse-waitlist-email:focus-visible {
  outline: none;
}

.whg-hero-waitlist .whitehorse-waitlist-submit {
  -webkit-appearance: none;
  appearance: none;
  align-self: stretch;
  background: linear-gradient(120deg, #0f1b2a 0%, #122139 52%, #0f1b2a 100%);
  background-position: 0 50%;
  background-size: 180% 100%;
  border: 0;
  border-left: 1px solid rgba(15, 27, 42, 0.34);
  border-radius: 0;
  box-sizing: border-box;
  color: #f5f1e8;
  font-size: 0.91rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: stretch;
  line-height: 1;
  margin: 0;
  height: 100%;
  min-height: 0;
  min-width: 0;
  padding: 0.45rem 0.9rem;
  text-shadow: 0 0 0 rgba(245, 241, 232, 0);
  text-transform: none;
  transition: background-position 170ms ease, filter 150ms ease, letter-spacing 150ms ease, text-shadow 170ms ease;
  width: 100%;
}

.whg-hero-waitlist .whitehorse-waitlist-submit:hover,
.whg-hero-waitlist .whitehorse-waitlist-submit:focus-visible {
  background-position: 100% 50%;
  box-shadow: 0 0 14px rgba(18, 33, 57, 0.28);
  filter: brightness(1.06);
  letter-spacing: 0.045em;
  text-shadow: 0 0 0.34em rgba(245, 241, 232, 0.34);
}

.whg-hero-waitlist .whitehorse-waitlist-submit:active {
  filter: brightness(0.94);
  letter-spacing: 0.03em;
}

.whg-hero-waitlist .whitehorse-waitlist-feedback {
  animation: whg-waitlist-toast 4350ms ease forwards;
  backdrop-filter: blur(6px);
  border-radius: 999px;
  bottom: calc(100% + 0.55rem);
  left: 50%;
  line-height: 1.2;
  margin: 0;
  max-width: min(92vw, 640px);
  opacity: 0;
  pointer-events: none;
  position: absolute;
  font-size: 0.83rem;
  padding: 0.38rem 0.72rem;
  text-align: center;
  transform: translate(-50%, 10px);
  width: fit-content;
  z-index: 6;
}

.whg-hero-waitlist .whitehorse-waitlist-feedback.is-success {
  background: rgba(220, 246, 226, 0.95);
  border: 1px solid rgba(157, 204, 169, 0.72);
  color: #155d2b;
}

.whg-hero-waitlist .whitehorse-waitlist-feedback.is-info {
  background: rgba(224, 236, 255, 0.96);
  border: 1px solid rgba(154, 178, 222, 0.7);
  color: #1d4272;
}

.whg-hero-waitlist .whitehorse-waitlist-feedback.is-error {
  background: rgba(255, 232, 234, 0.96);
  border: 1px solid rgba(230, 155, 162, 0.72);
  color: #8b1e2d;
}

.whg-hero-waitlist .whitehorse-waitlist-consent {
  display: none;
}

.whg-hero-buttons {
  animation: whg-fade-rise 740ms ease 220ms forwards;
  gap: 0.8rem;
  justify-content: center;
  margin: 1.65rem 0 2rem;
  opacity: 0;
  transform: translateY(10px);
}

.whg-hero-buttons .wp-element-button,
.whg-hero-buttons .wp-block-button__link {
  border-radius: 6px;
  color: #f9f8f4;
  display: inline-block;
  font-weight: 700;
  letter-spacing: 0.02em;
  min-width: 212px;
  padding: 0.62rem 1rem;
  text-decoration: none;
  text-transform: uppercase;
}

.whg-cta-primary .wp-element-button,
.whg-cta-primary .wp-block-button__link {
  background: var(--whg-cta-primary);
  border: 1px solid var(--whg-cta-primary-border);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.34);
}

.whg-cta-secondary .wp-element-button,
.whg-cta-secondary .wp-block-button__link {
  background: var(--whg-cta-secondary);
  border: 1px solid var(--whg-cta-secondary-border);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.34);
  color: #fff;
}

.whg-carousel-shell {
  --whg-carousel-stage-width: min(74vw, 860px);
  animation: whg-fade-rise 760ms ease 290ms forwards;
  align-items: center;
  display: grid;
  gap: 0.65rem;
  grid-template-columns: auto 1fr auto;
  justify-content: center;
  justify-items: center;
  margin: 1.5rem auto 0;
  max-width: 1020px;
  opacity: 0;
  transform: translateY(10px);
}

.whg-carousel-arrow.is-left {
  grid-column: 1;
  justify-self: end;
}

.whg-featured-row {
  grid-column: 2;
}

.whg-carousel-arrow.is-right {
  grid-column: 3;
  justify-self: start;
}

.whg-carousel-arrow {
  background: rgba(236, 236, 236, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 999px;
  color: transparent;
  cursor: pointer;
  display: inline-grid;
  font-size: 0;
  height: 52px;
  line-height: 0;
  place-items: center;
  position: relative;
  padding: 0;
  transition: background-color 120ms ease, transform 120ms ease;
  width: 52px;
}

.whg-carousel-arrow::before {
  border-right: 2.5px solid rgba(247, 242, 229, 0.96);
  border-top: 2.5px solid rgba(247, 242, 229, 0.96);
  content: "";
  height: 12px;
  left: 50%;
  position: absolute;
  top: 50%;
  width: 12px;
}

.whg-carousel-arrow.is-left::before {
  transform: translate(-50%, -50%) rotate(-135deg);
}

.whg-carousel-arrow.is-right::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.whg-carousel-arrow:hover,
.whg-carousel-arrow:focus-visible {
  background: rgba(236, 236, 236, 0.32);
  transform: translateY(-1px);
}

.whg-featured-row {
  --whg-carousel-offset: clamp(128px, 18vw, 220px);
  --whg-carousel-main-size: clamp(248px, 29.5vw, 360px);
  --whg-carousel-side-size: clamp(182px, 21vw, 240px);
  display: block;
  height: clamp(250px, 32vw, 380px);
  justify-self: center;
  margin: 0 auto;
  perspective: 1400px;
  position: relative;
  transform-style: preserve-3d;
  width: var(--whg-carousel-stage-width);
}

.whg-featured-row.is-transitioning {
  pointer-events: none;
}

.whg-featured-row img {
  border: 0;
  border-radius: 22px;
  box-shadow: 0 8px 20px rgba(6, 10, 20, 0.55), 0 22px 44px rgba(0, 0, 0, 0.52);
  display: block;
  left: 50%;
  object-fit: cover;
  opacity: 1;
  position: absolute;
  top: 50%;
  transform-origin: center center;
  transition: transform 1000ms cubic-bezier(0.22, 1, 0.36, 1), opacity 1000ms ease, filter 1000ms ease, box-shadow 1000ms ease;
}

.whg-featured-row img.is-main {
  aspect-ratio: 1 / 1;
  box-shadow: 0 12px 30px rgba(6, 10, 20, 0.64), 0 30px 58px rgba(0, 0, 0, 0.56);
  transform: translate3d(-50%, -50%, 120px) scale(1.02) rotateY(0deg);
  width: var(--whg-carousel-main-size);
  z-index: 5;
}

.whg-featured-row img.is-prev {
  aspect-ratio: 1 / 1;
  filter: brightness(0.88) saturate(0.86);
  transform: translate3d(calc(-50% - var(--whg-carousel-offset)), -50%, -70px) scale(0.9) rotateY(26deg);
  width: var(--whg-carousel-side-size);
  z-index: 3;
}

.whg-featured-row img.is-next {
  aspect-ratio: 1 / 1;
  filter: brightness(0.88) saturate(0.86);
  transform: translate3d(calc(-50% + var(--whg-carousel-offset)), -50%, -70px) scale(0.9) rotateY(-26deg);
  width: var(--whg-carousel-side-size);
  z-index: 3;
}

.whg-featured-row img.is-hidden {
  opacity: 0;
  pointer-events: none;
  transform: translate3d(-50%, -50%, -160px) scale(0.82);
  z-index: 1;
}

.whg-carousel-dots {
  align-items: center;
  animation: whg-fade-rise 760ms ease 340ms forwards;
  display: flex;
  gap: 0.55rem;
  justify-content: center;
  margin: 0.95rem auto 0;
  opacity: 0;
  transform: translateY(10px);
  width: var(--whg-carousel-stage-width);
}

.whg-carousel-dots .whg-carousel-dot {
  background: rgba(255, 255, 255, 0.58);
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  display: block;
  height: 10px;
  padding: 0;
  width: 10px;
}

.whg-carousel-dots .whg-carousel-dot:hover,
.whg-carousel-dots .whg-carousel-dot:focus-visible {
  background: rgba(255, 255, 255, 0.82);
}

.whg-carousel-dots .whg-carousel-dot.is-active {
  background: rgba(255, 255, 255, 0.95);
}

.whg-carousel-dots .whg-carousel-dot[aria-selected="true"] {
  width: 10px;
}

.whg-social-strip {
  background: #f5f1e8;
  padding: 2.95rem 1rem;
}

.whg-front-page .whg-social-strip {
  position: relative;
}

.whg-contact-page .whg-social-strip {
  position: relative;
}

.whg-contact-page .whg-social-strip::before,
.whg-about-story::before,
.whg-about-pillars::before {
  background: #f5f1e8;
  clip-path: var(--whg-swish-wave);
  -webkit-clip-path: var(--whg-swish-wave);
  content: "";
  height: 52px;
  left: 0;
  pointer-events: none;
  position: absolute;
  right: 0;
  top: -51px;
}

.whg-social-title {
  color: #1a1a1a;
  font-family: "DM Sans", "Segoe UI", sans-serif;
  font-size: clamp(1.12rem, 2.25vw, 1.65rem);
  font-weight: 700;
  letter-spacing: 0.07em;
  margin: 0 0 1.45rem;
  text-transform: uppercase;
}

.whg-social-icons {
  display: flex;
  gap: 0.9rem;
  justify-content: center;
}

.whg-social-icons a {
  border-radius: 11px;
  display: inline-block;
  transition: transform 120ms ease;
}

.whg-social-icons a:hover,
.whg-social-icons a:focus-visible {
  transform: translateY(-2px);
}

.whg-social-icons img {
  border-radius: 11px;
  box-shadow: 0 8px 18px rgba(17, 24, 43, 0.2);
  display: block;
  height: 60px;
  width: 60px;
}

.whg-page-content {
  padding: 2.5rem 1rem;
}

.wp-site-blocks > .wp-block-template-part + .whg-games-page {
  margin-block-start: 0 !important;
}

.wp-site-blocks > .whg-games-page + .wp-block-template-part {
  margin-block-start: 0 !important;
}

.wp-site-blocks > .whg-games-page + .wp-block-template-part::before {
  display: none;
}

.whg-games-page {
  background-color: #0f1b2a;
  color: #e9dfc8;
  display: flex;
  flex-direction: column;
  isolation: isolate;
  min-height: calc(100svh - 190px);
  overflow: hidden;
  padding: 2.3rem 1rem 3rem;
  position: relative;
}

.whg-games-page::before {
  background:
    radial-gradient(44% 30% at 9% 74%, rgba(199, 169, 74, 0.11) 0%, rgba(199, 169, 74, 0.04) 42%, rgba(199, 169, 74, 0) 80%),
    radial-gradient(36% 28% at 93% 68%, rgba(65, 108, 122, 0.2) 0%, rgba(65, 108, 122, 0.08) 48%, rgba(65, 108, 122, 0) 80%),
    radial-gradient(38% 24% at 50% 96%, rgba(10, 26, 41, 0.36) 0%, rgba(10, 26, 41, 0) 76%);
  content: "";
  inset: 20% -14vw -7% -14vw;
  pointer-events: none;
  position: absolute;
  z-index: 0;
}

.whg-games-page > * {
  position: relative;
  z-index: 1;
}

.whg-games-intro,
.whg-games-detail-wrap,
.whg-games-community {
  margin: 0 auto;
  max-width: 1080px;
}

.whg-games-intro {
  text-align: center;
}

.whg-games-eyebrow {
  color: rgba(199, 169, 74, 0.92);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  margin: 0;
  text-transform: uppercase;
}

.whg-games-title {
  color: #f5f1e8;
  font-size: clamp(2rem, 5.1vw, 3.3rem);
  line-height: 1.04;
  margin: 0.38rem 0 0;
  text-shadow: 0 6px 20px rgba(0, 0, 0, 0.45);
}

.whg-games-lede {
  color: rgba(233, 223, 200, 0.9);
  font-size: clamp(1rem, 2vw, 1.2rem);
  margin: 0.85rem auto 0;
  max-width: 740px;
}

.whg-games-selector {
  margin: 2rem auto 0;
  max-width: 1240px;
}

.whg-games-tile-grid {
  display: grid;
  gap: 0.95rem;
  grid-auto-flow: dense;
  grid-template-columns: repeat(12, minmax(0, 1fr));
}

.whg-game-tile {
  align-items: flex-end;
  background: #132336;
  border: 1px solid rgba(233, 223, 200, 0.24);
  border-radius: 16px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.34);
  color: #f5f1e8;
  cursor: pointer;
  display: grid;
  gap: 0.35rem;
  min-height: 220px;
  overflow: hidden;
  padding: 1.2rem;
  position: relative;
  text-align: left;
  transition: transform 150ms ease, border-color 150ms ease, box-shadow 150ms ease;
  grid-column: span 4;
}

.whg-game-tile:nth-child(6n + 1) {
  grid-column: span 5;
  min-height: 340px;
}

.whg-game-tile:nth-child(6n + 2) {
  grid-column: span 3;
  min-height: 240px;
}

.whg-game-tile:nth-child(6n + 3) {
  grid-column: span 4;
  min-height: 285px;
}

.whg-game-tile:nth-child(6n + 4) {
  grid-column: span 4;
  min-height: 250px;
}

.whg-game-tile:nth-child(6n + 5) {
  grid-column: span 5;
  min-height: 305px;
}

.whg-game-tile:nth-child(6n + 6) {
  grid-column: span 3;
  min-height: 230px;
}

.whg-game-tile img {
  height: 100%;
  inset: 0;
  object-fit: cover;
  opacity: 0.58;
  position: absolute;
  transition: transform 220ms ease, opacity 220ms ease;
  width: 100%;
  z-index: 0;
}

.whg-game-tile::after {
  background: linear-gradient(180deg, rgba(7, 14, 24, 0.08) 12%, rgba(7, 14, 24, 0.82) 100%);
  content: "";
  inset: 0;
  position: absolute;
  z-index: 1;
}

.whg-game-tile-title,
.whg-game-tile-status {
  position: relative;
  z-index: 2;
}

.whg-game-tile-title {
  font-size: clamp(1rem, 2vw, 1.35rem);
  font-weight: 700;
  line-height: 1.1;
}

.whg-game-tile-status {
  color: rgba(233, 223, 200, 0.86);
  font-family: "DM Sans", "Segoe UI", sans-serif;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.whg-game-tile:hover,
.whg-game-tile:focus-visible {
  border-color: rgba(199, 169, 74, 0.76);
  box-shadow: 0 18px 32px rgba(0, 0, 0, 0.4);
  transform: translateY(-2px);
}

.whg-game-tile:hover img,
.whg-game-tile:focus-visible img {
  opacity: 0.68;
  transform: scale(1.03);
}

.whg-game-tile.is-active {
  border-color: rgba(199, 169, 74, 0.94);
  box-shadow: 0 20px 36px rgba(0, 0, 0, 0.42), 0 0 0 1px rgba(199, 169, 74, 0.24) inset;
}

.whg-game-tile.is-active .whg-game-tile-status {
  color: #c7a94a;
}

.whg-games-detail-wrap {
  margin-top: 1.8rem;
}

.whg-games-page:not(.is-game-selected) .whg-games-detail-wrap {
  flex: 1 1 auto;
}

.whg-games-detail-shell {
  display: grid;
  gap: 1rem;
}

.whg-game-panel {
  align-items: center;
  background: rgba(12, 24, 38, 0.82);
  border: 1px solid rgba(233, 223, 200, 0.14);
  border-radius: 18px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.34);
  display: grid;
  gap: 1.4rem;
  grid-template-columns: 1fr minmax(260px, 440px);
  overflow: hidden;
  padding: 1.2rem;
  scroll-margin-top: 5.5rem;
}

.whg-game-panel[hidden] {
  display: none;
}

.whg-games-detail-copy {
  transition: opacity 220ms ease, transform 220ms ease;
}

.whg-games-status {
  color: #c7a94a;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  margin: 0;
  text-transform: uppercase;
}

.whg-games-detail-title {
  color: #f5f1e8;
  font-size: clamp(1.65rem, 3.5vw, 2.5rem);
  line-height: 1.08;
  margin: 0.35rem 0 0;
}

.whg-games-hook {
  color: #e9dfc8;
  font-size: 1.08rem;
  font-weight: 700;
  margin: 0.78rem 0 0;
}

.whg-games-blurb {
  color: rgba(233, 223, 200, 0.84);
  margin: 0.82rem 0 0;
  max-width: 56ch;
}

.whg-games-detail-art {
  margin: 0;
}

.whg-games-detail-art img {
  border-radius: 14px;
  box-shadow: 0 14px 30px rgba(6, 10, 20, 0.5), 0 22px 48px rgba(0, 0, 0, 0.42);
  display: block;
  transition: transform 220ms ease, opacity 220ms ease;
  width: 100%;
}

.whg-games-community {
  margin-top: 2rem;
}

.whg-games-community-title {
  color: #f5f1e8;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  margin: 0;
}

.whg-games-community-lede {
  color: rgba(233, 223, 200, 0.84);
  margin: 0.6rem 0 0;
  max-width: 75ch;
}

.whg-testimonial-grid {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 1rem;
}

.whg-testimonial-card {
  background: rgba(12, 24, 38, 0.72);
  border: 1px solid rgba(233, 223, 200, 0.14);
  border-radius: 14px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.28);
  padding: 0.9rem 0.95rem;
}

.whg-testimonial-card p {
  color: #f0e7d2;
  margin: 0;
}

.whg-testimonial-meta {
  color: rgba(233, 223, 200, 0.7);
  font-size: 0.85rem;
  margin-top: 0.65rem !important;
}

.whg-gallery-grid {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 0.85rem;
}

.whg-gallery-placeholder {
  align-items: center;
  background: linear-gradient(135deg, rgba(15, 27, 42, 0.88) 0%, rgba(30, 47, 43, 0.82) 100%);
  border: 1px dashed rgba(233, 223, 200, 0.4);
  border-radius: 14px;
  color: rgba(245, 241, 232, 0.94);
  display: flex;
  font-size: 0.95rem;
  justify-content: center;
  min-height: 170px;
  padding: 0.8rem;
  text-align: center;
}

.wp-site-blocks > .wp-block-template-part + .whg-contact-page {
  margin-block-start: 0 !important;
}

.wp-site-blocks > .whg-contact-page + .wp-block-template-part {
  margin-block-start: 0 !important;
}

.whg-contact-page {
  background-color: #0f1b2a;
  color: #e9dfc8;
  display: flex;
  flex-direction: column;
  isolation: isolate;
  min-height: calc(100svh - 190px);
  overflow: hidden;
  padding: 2.3rem 1rem 0;
  position: relative;
}

.whg-contact-page::before {
  background:
    radial-gradient(36% 24% at 14% 30%, rgba(199, 169, 74, 0.15) 0%, rgba(199, 169, 74, 0.08) 46%, rgba(199, 169, 74, 0) 82%),
    radial-gradient(30% 20% at 87% 36%, rgba(105, 150, 168, 0.19) 0%, rgba(105, 150, 168, 0.06) 48%, rgba(105, 150, 168, 0) 82%),
    radial-gradient(28% 22% at 30% 67%, rgba(180, 108, 58, 0.12) 0%, rgba(180, 108, 58, 0.05) 42%, rgba(180, 108, 58, 0) 80%),
    radial-gradient(34% 26% at 74% 72%, rgba(199, 169, 74, 0.12) 0%, rgba(199, 169, 74, 0.03) 48%, rgba(199, 169, 74, 0) 84%);
  content: "";
  filter: blur(0.2px);
  inset: 5.5rem -10vw 6rem;
  pointer-events: none;
  position: absolute;
  z-index: 0;
}

.whg-contact-page > * {
  position: relative;
  z-index: 1;
}

.whg-contact-hero,
.whg-contact-sections {
  margin: 0 auto;
  max-width: 1080px;
}

.whg-contact-hero {
  text-align: center;
}

.whg-contact-title {
  color: #f5f1e8;
  font-size: clamp(2rem, 5.1vw, 3.3rem);
  line-height: 1.04;
  margin: 0.4rem 0 0;
  text-shadow: 0 6px 20px rgba(0, 0, 0, 0.45);
}

.whg-contact-lede {
  color: rgba(233, 223, 200, 0.9);
  font-size: clamp(1rem, 2vw, 1.18rem);
  margin: 0.9rem auto 0;
  max-width: 780px;
}

.whg-contact-sections {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  margin-top: 1.8rem;
}

.whg-contact-page > .whg-social-strip {
  margin-block-end: 0 !important;
  margin-top: 0 !important;
}

.whg-contact-section {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  justify-content: center;
  padding: clamp(0.85rem, 1.9vh, 1.45rem) 0;
}

.whg-contact-section + .whg-contact-section {
  border-top: 1px solid rgba(233, 223, 200, 0.18);
}

.whg-contact-section-title {
  color: #f5f1e8;
  font-size: clamp(1.35rem, 2.7vw, 1.9rem);
  margin: 0;
}

.whg-contact-copy {
  color: rgba(233, 223, 200, 0.84);
  margin: 0.65rem 0 0;
}

.whg-contact-email {
  margin: 0.6rem 0 0;
}

.whg-contact-email a {
  color: #c7a94a;
  font-weight: 700;
  text-decoration: none;
}

.whg-contact-email a:hover,
.whg-contact-email a:focus-visible {
  text-decoration: underline;
}

.whg-contact-list {
  margin: 0.8rem 0 0;
  padding-left: 1.15rem;
}

.whg-contact-list li {
  color: rgba(233, 223, 200, 0.88);
  margin-top: 0.35rem;
}

.wp-site-blocks > .wp-block-template-part + .whg-about-page {
  margin-block-start: 0 !important;
}

.wp-site-blocks > .whg-about-page + .wp-block-template-part {
  margin-block-start: 0 !important;
}

.whg-about-page {
  background: #f5f1e8;
  display: flex;
  flex-direction: column;
  min-height: calc(100svh - 190px);
}

.whg-about-hero {
  background-color: #0f1b2a;
  overflow: hidden;
  padding: 4.2rem 1rem 3.4rem;
  position: relative;
}

.whg-about-hero::before {
  background-image: url("./assets/hero/hero-bg-primary.png");
  background-position: center top;
  background-size: cover;
  content: "";
  filter: blur(2px);
  inset: -6px;
  opacity: 0.65;
  position: absolute;
  transform: scale(1.02);
}

.whg-about-hero::after {
  background:
    radial-gradient(145% 100% at 50% -18%, rgba(134, 154, 179, 0.16) 0%, rgba(134, 154, 179, 0) 58%),
    linear-gradient(180deg, rgba(8, 16, 28, 0.82) 0%, rgba(11, 21, 33, 0.76) 28%, rgba(13, 23, 38, 0.84) 62%, rgba(11, 21, 33, 0.92) 100%);
  content: "";
  inset: 0;
  position: absolute;
}

.whg-about-hero-inner {
  margin: 0 auto;
  max-width: 980px;
  position: relative;
  text-align: center;
  z-index: 1;
}

.whg-about-eyebrow {
  color: rgba(233, 223, 200, 0.9);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  margin: 0 0 0.8rem;
  text-transform: uppercase;
}

.whg-about-title {
  color: #f5f1e8;
  font-size: clamp(2rem, 5.6vw, 3.9rem);
  line-height: 1.02;
  margin: 0;
  text-shadow: 0 4px 14px rgba(0, 0, 0, 0.8), 0 10px 28px rgba(0, 0, 0, 0.6);
}

.whg-about-lede {
  color: #e9dfc8;
  font-size: clamp(1.05rem, 2.1vw, 1.28rem);
  margin: 1.2rem auto 0;
  max-width: 760px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.68);
}

.whg-about-story {
  background: #f5f1e8;
  position: relative;
  padding: 2.7rem 1rem 1.1rem;
}

.whg-about-pillars {
  background: linear-gradient(180deg, rgba(245, 241, 232, 1) 0%, rgba(240, 232, 216, 1) 100%);
  flex: 1 1 auto;
  position: relative;
  padding: 1.2rem 1rem 3.1rem;
}

.whg-about-container {
  margin: 0 auto;
  max-width: 980px;
}

.whg-about-section-title {
  color: #1a1a1a;
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 0 0 1rem;
}

.whg-about-story p {
  color: #1e2f2b;
  font-size: 1.04rem;
  margin: 0 0 1rem;
  max-width: 76ch;
}

.whg-about-pillar-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 0.8rem;
}

.whg-about-pillar-card {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(15, 27, 42, 0.16);
  border-radius: 14px;
  box-shadow: 0 8px 20px rgba(15, 27, 42, 0.14);
  padding: 1rem 1rem 1.1rem;
}

.whg-about-pillar-index {
  color: #c7a94a;
  font-family: "Merriweather", Georgia, serif;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  margin: 0 0 0.5rem;
}

.whg-about-pillar-card h3 {
  color: #0f1b2a;
  font-size: 1.16rem;
  margin: 0 0 0.45rem;
}

.whg-about-pillar-card p {
  color: #2e2f36;
  margin: 0;
}

.whg-reveal.whg-reveal-active {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 420ms ease, transform 420ms ease;
}

.whg-reveal.whg-reveal-active.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes whg-fade-rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

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

@keyframes whg-waitlist-toast {
  0% {
    opacity: 0;
    transform: translate(-50%, 10px) scale(0.98);
  }

  14% {
    opacity: 1;
    transform: translate(-50%, 0) scale(1);
  }

  70% {
    opacity: 1;
    transform: translate(-50%, 0) scale(1);
  }

  100% {
    opacity: 0;
    transform: translate(-50%, -6px) scale(0.985);
  }
}

@media (min-width: 1001px) and (max-width: 1439px) {
  .whg-hero-inner {
    max-width: 1280px;
  }

  .whg-hero-waitlist {
    max-width: 860px;
  }

  .whg-hero-waitlist .whitehorse-waitlist-form {
    grid-template-columns: minmax(0, 1fr) clamp(106px, 20%, 154px);
    height: 46px;
    width: min(82vw, 860px);
  }

  .whg-carousel-shell {
    --whg-carousel-stage-width: min(76vw, 900px);
    gap: 0.72rem;
    grid-template-columns: 52px minmax(0, var(--whg-carousel-stage-width)) 52px;
    margin-top: 2.45rem;
    max-width: none;
    width: min(100%, calc(var(--whg-carousel-stage-width) + 126px));
  }

  .whg-featured-row {
    --whg-carousel-offset: clamp(158px, 15.4vw, 280px);
    --whg-carousel-main-size: clamp(292px, 27vw, 430px);
    --whg-carousel-side-size: clamp(208px, 19vw, 292px);
    height: clamp(304px, 28.5vw, 470px);
  }

  .whg-featured-row img.is-main {
    transform: translate3d(-50%, -50%, 92px) scale(1) rotateY(0deg);
  }

  .whg-carousel-dots {
    margin-top: 0.8rem;
  }
}

@media (min-width: 761px) and (max-width: 1000px) {
  .whg-carousel-shell {
    margin-top: 2.35rem;
  }

  .whg-carousel-dots {
    margin-top: 0.85rem;
  }
}

@media (min-width: 1440px) {
  .whg-header-bar {
    max-width: 1440px;
    padding: 0.86rem 1.4rem;
  }

  .whg-brand {
    gap: 0.95rem;
  }

  .whg-brand img {
    width: 102px;
  }

  .whg-brand span {
    font-size: 2.38rem;
  }

  .whg-main-nav {
    gap: 0.78rem;
  }

  .whg-main-nav a {
    border-radius: 7px;
    font-size: clamp(1.08rem, 0.8vw, 1.18rem);
    padding: 0.44rem 0.88rem;
  }

  .whg-hero {
    min-height: 74vh;
    padding-bottom: 2.35rem;
    padding-top: 2.95rem;
  }

  .whg-hero-inner {
    max-width: 1560px;
  }

  .whg-hero-title.is-waitlist {
    font-size: clamp(2.6rem, 4.5vw, 5.05rem);
  }

  .whg-hero-subheading.is-waitlist {
    font-size: clamp(1.06rem, 1.35vw, 1.42rem);
    margin-top: 0.78rem;
    max-width: 840px;
  }

  .whg-hero-waitlist {
    margin: 0 auto;
    max-width: 960px;
  }

  .whg-hero-waitlist .whitehorse-waitlist-form {
    grid-template-columns: minmax(0, 1fr) clamp(116px, 18%, 170px);
    height: 48px;
    width: min(78vw, 920px);
  }

  .whg-hero-waitlist .whitehorse-waitlist-email {
    font-size: 0.98rem;
  }

  .whg-hero-waitlist .whitehorse-waitlist-submit {
    font-size: 0.95rem;
  }

  .whg-carousel-shell {
    --whg-carousel-stage-width: min(88vw, 1360px);
    gap: 0.8rem;
    grid-template-columns: 58px minmax(0, var(--whg-carousel-stage-width)) 58px;
    justify-content: center;
    margin-top: 2.05rem;
    max-width: none;
    width: min(100%, calc(var(--whg-carousel-stage-width) + 142px));
  }

  .whg-carousel-arrow {
    height: 58px;
    width: 58px;
  }

  .whg-featured-row {
    --whg-carousel-offset: clamp(208px, 14.8vw, 380px);
    --whg-carousel-main-size: clamp(340px, 23vw, 520px);
    --whg-carousel-side-size: clamp(244px, 16.5vw, 340px);
    height: clamp(330px, 26vw, 520px);
  }

  .whg-featured-row img.is-main {
    transform: translate3d(-50%, -50%, 92px) scale(1) rotateY(0deg);
  }

  .whg-carousel-dots {
    margin-top: 0.7rem;
  }

  .whg-social-strip {
    padding-bottom: 1.8rem;
    padding-top: 1.6rem;
  }

  .whg-social-title {
    font-size: 2rem;
    margin-bottom: 1rem;
  }

  .whg-social-icons img {
    height: 66px;
    width: 66px;
  }
}

@media (min-width: 1800px) {
  .whg-header-bar {
    max-width: 1700px;
    padding: 0.95rem 1.8rem;
  }

  .whg-brand img {
    width: 114px;
  }

  .whg-brand span {
    font-size: 2.65rem;
  }

  .whg-main-nav a {
    font-size: clamp(1.14rem, 0.78vw, 1.26rem);
    padding: 0.5rem 0.98rem;
  }

  .whg-hero {
    min-height: 77vh;
  }

  .whg-hero-inner {
    max-width: 1720px;
  }

  .whg-hero-title.is-waitlist {
    font-size: clamp(2.9rem, 4.1vw, 5.6rem);
  }

  .whg-hero-waitlist {
    max-width: 1040px;
  }

  .whg-hero-waitlist .whitehorse-waitlist-form {
    grid-template-columns: minmax(0, 1fr) clamp(126px, 17%, 190px);
    height: 50px;
    width: min(74vw, 1020px);
  }

  .whg-carousel-shell {
    --whg-carousel-stage-width: min(80vw, 1500px);
    grid-template-columns: 62px minmax(0, var(--whg-carousel-stage-width)) 62px;
    margin-top: 2.25rem;
    width: min(100%, calc(var(--whg-carousel-stage-width) + 150px));
  }

  .whg-carousel-arrow {
    height: 62px;
    width: 62px;
  }

  .whg-featured-row {
    --whg-carousel-offset: clamp(240px, 13.8vw, 430px);
    --whg-carousel-main-size: clamp(370px, 21vw, 580px);
    --whg-carousel-side-size: clamp(260px, 14.8vw, 370px);
    height: clamp(360px, 24.5vw, 560px);
  }

  .whg-featured-row img.is-main {
    transform: translate3d(-50%, -50%, 100px) scale(1) rotateY(0deg);
  }

  .whg-social-strip {
    padding-bottom: 1.6rem;
    padding-top: 1.45rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .whg-hero-title,
  .whg-hero-subheading,
  .whg-hero-buttons,
  .whg-hero-waitlist,
  .whg-carousel-shell,
  .whg-carousel-dots {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }

  .whg-reveal.whg-reveal-active {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .whg-hero-waitlist .whitehorse-waitlist-feedback {
    animation: none;
    opacity: 1;
    transform: translate(-50%, 0);
  }

}

@media (max-width: 1000px) {
  .whg-header-bar {
    gap: 0.6rem;
  }

  .whg-brand img {
    width: 70px;
  }

  .whg-brand span {
    font-size: 1.72rem;
  }

  .whg-carousel-shell {
    --whg-carousel-stage-width: min(88vw, 760px);
  }

  .whg-featured-row {
    --whg-carousel-offset: clamp(116px, 17vw, 200px);
    --whg-carousel-main-size: clamp(236px, 33vw, 336px);
    --whg-carousel-side-size: clamp(166px, 22vw, 220px);
    height: clamp(238px, 36vw, 350px);
  }

  .whg-about-pillar-grid {
    grid-template-columns: 1fr;
  }

  .whg-testimonial-grid,
  .whg-gallery-grid {
    grid-template-columns: 1fr 1fr;
  }

  .whg-game-panel {
    grid-template-columns: 1fr;
    padding: 1rem;
  }

  .whg-games-detail-art {
    max-width: 520px;
    width: 100%;
  }
}

@media (max-width: 760px) {
  .whg-carousel-arrow {
    display: none;
  }

  .whg-header-bar {
    flex-direction: column;
    padding: 0.7rem 0.75rem 0.9rem;
  }

  .whg-main-nav {
    gap: 0.3rem;
    justify-content: center;
  }

  .whg-main-nav a {
    font-size: 0.86rem;
    padding: 0.3rem 0.5rem;
  }

  .whg-brand img {
    width: 62px;
  }

  .whg-brand span {
    font-size: 1.38rem;
  }

  .whg-hero {
    background-position: center 7%;
    min-height: auto;
    padding-top: 2.6rem;
    padding-bottom: 2.7rem;
  }

  .whg-hero-buttons .wp-element-button,
  .whg-hero-buttons .wp-block-button__link {
    min-width: 182px;
  }

  .whg-hero-waitlist {
    margin-top: 1rem;
    margin-bottom: 1.35rem;
  }

  .whg-hero-waitlist .whitehorse-waitlist-shell {
    padding: 0;
  }

  .whg-hero-waitlist .whitehorse-waitlist-form {
    grid-template-columns: minmax(0, 1fr) clamp(88px, 24%, 116px);
    height: 41px;
    width: min(94vw, 620px);
  }

  .whg-hero-waitlist .whitehorse-waitlist-submit {
    font-size: 0.86rem;
    padding-inline: 0.7rem;
  }

  .whg-hero-waitlist .whitehorse-waitlist-email {
    font-size: 0.9rem;
    padding-inline: 0.82rem;
  }

  .whg-hero-waitlist .whitehorse-waitlist-submit,
  .whg-hero-waitlist .whitehorse-waitlist-email {
    min-height: 0;
  }

  .whg-featured-row {
    --whg-carousel-stage-width: min(88vw, 360px);
    --whg-carousel-main-size: min(82vw, 340px);
    height: min(88vw, 360px);
  }

  .whg-featured-row img.is-main {
    transform: translate3d(-50%, -50%, 24px) scale(1) rotateY(0deg);
    width: var(--whg-carousel-main-size);
  }

  .whg-featured-row img.is-prev,
  .whg-featured-row img.is-next,
  .whg-featured-row img.is-hidden {
    opacity: 0;
    pointer-events: none;
    transform: translate3d(-50%, -50%, -120px) scale(0.88);
  }

  .whg-carousel-shell {
    display: block;
    max-width: var(--whg-carousel-stage-width);
  }

  .whg-carousel-dots {
    margin-top: 0.7rem;
  }

  .whg-about-hero {
    padding: 3.2rem 1rem 2.5rem;
  }

  .whg-about-story {
    padding: 2.5rem 1rem 1.5rem;
  }

  .whg-about-pillars {
    padding: 1.5rem 1rem 2.7rem;
  }

  .whg-about-page {
    min-height: calc(100svh - 240px);
  }

  .whg-games-page {
    min-height: calc(100svh - 240px);
    padding: 2rem 0.95rem 2.8rem;
  }

  .whg-contact-page {
    min-height: calc(100svh - 240px);
    padding: 2rem 0.95rem 0;
  }

  .whg-contact-sections {
    margin-top: 1.85rem;
  }

  .whg-contact-section {
    padding: 1.05rem 0;
  }

  .whg-contact-page::before {
    inset: 4.8rem -18vw 5.5rem;
  }

  .wp-site-blocks > main + .wp-block-template-part::before {
    height: 38px;
    top: -37px;
  }

  .whg-contact-page .whg-social-strip::before,
  .whg-about-story::before,
  .whg-about-pillars::before {
    height: 38px;
    top: -37px;
  }

  .whg-games-tile-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.78rem;
  }

  .whg-game-tile {
    grid-column: span 1;
    min-height: 190px;
    padding: 0.95rem;
  }

  .whg-game-tile:nth-child(6n + 1),
  .whg-game-tile:nth-child(6n + 2),
  .whg-game-tile:nth-child(6n + 3),
  .whg-game-tile:nth-child(6n + 4),
  .whg-game-tile:nth-child(6n + 5),
  .whg-game-tile:nth-child(6n + 6) {
    grid-column: span 1;
    min-height: 190px;
  }

  .whg-game-panel {
    border-radius: 16px;
    gap: 1.05rem;
    padding: 0.95rem;
  }

  .whg-games-hook {
    font-size: 1rem;
  }

  .whg-testimonial-grid,
  .whg-gallery-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .whg-games-selector {
    margin-top: 1.7rem;
  }

  .whg-games-tile-grid {
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }

  .whg-game-tile {
    min-height: 220px;
  }

  .whg-game-tile:nth-child(6n + 1),
  .whg-game-tile:nth-child(6n + 2),
  .whg-game-tile:nth-child(6n + 3),
  .whg-game-tile:nth-child(6n + 4),
  .whg-game-tile:nth-child(6n + 5),
  .whg-game-tile:nth-child(6n + 6) {
    min-height: 220px;
  }
}
