/* =========================================================
   1 LYRIC FAMILY — Wild West Interactive Reveal Home Page
   Target: 1920x1080 & 1366x768 Landscape Touchscreen Kiosk
   100% Offline Local Fonts & Original Transparent PNG Assets
   ========================================================= */

@font-face {
  font-family: "RyeLocal";
  src: url("/static/fonts/Rye-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "RobotoSlabLocal";
  src: url("/static/fonts/RobotoSlab-Variable.ttf") format("truetype");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "CinzelLocal";
  src: url("/static/fonts/Cinzel-Variable.ttf") format("truetype");
  font-weight: 500 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --ww-teal-dark: #003C3D;
  --ww-green-deep: #002728;
  --ww-teal-emerald: #087B75;
  --ww-gold: #E8BF70;
  --ww-cream: #FFF0C5;
  --ww-orange: #F28B24;
  --ww-orange-dark: #C34C13;
  --ww-font-western: "RyeLocal", "CinzelLocal", Georgia, serif;
  --ww-font-slab: "RobotoSlabLocal", Georgia, serif;
  --ww-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

html,
body {
  overscroll-behavior: none;
  touch-action: manipulation;
  -webkit-touch-callout: none;
  user-select: none;
  -webkit-user-select: none;
}

img {
  -webkit-user-drag: none;
  user-drag: none;
}

/* =========================================================
   PRELOADER FADE (prevents unstyled pop-in on kiosk boot)
   ========================================================= */
.ww-entry-screen {
  position: fixed;
  inset: 0;
  z-index: 20;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(ellipse 68% 48% at 50% 12%, rgba(8, 123, 117, 0.58) 0%, transparent 66%),
    radial-gradient(ellipse 58% 36% at 50% 94%, rgba(242, 139, 36, 0.34) 0%, rgba(232, 191, 112, 0.14) 42%, transparent 74%),
    linear-gradient(180deg, #003C3D 0%, #002D2E 46%, #002728 100%);
  opacity: 0;
  pointer-events: none;
  transform: scale(0.988);
  transition: opacity 0.45s var(--ww-ease), transform 0.5s var(--ww-ease);
}

.ww-entry-screen.is-active {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}

.ww-entry-screen.is-leaving {
  opacity: 0;
  transform: scale(1.03);
  pointer-events: none;
}

/* =========================================================
   LAYERED WILD WEST CINEMATIC BACKGROUND
   ========================================================= */
.ww-bg-layer {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

/* Rotating subtle radial light rays behind top logo */
.ww-sunburst {
  position: absolute;
  top: -34vh;
  left: 50%;
  width: 135vmax;
  height: 135vmax;
  margin-left: -67.5vmax;
  opacity: 0.22;
  background: repeating-conic-gradient(
    from 0deg,
    rgba(255, 240, 197, 0.32) 0deg 6deg,
    transparent 6deg 18deg
  );
  -webkit-mask-image: radial-gradient(circle at center, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.35) 38%, transparent 68%);
  mask-image: radial-gradient(circle at center, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.35) 38%, transparent 68%);
  animation: ww-rays-rotate 95s linear infinite;
  will-change: transform;
}

@keyframes ww-rays-rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Warm golden sunset horizon glow near bottom center */
.ww-sunset-glow {
  position: absolute;
  bottom: -14vh;
  left: 50%;
  transform: translateX(-50%);
  width: 78vw;
  height: 40vh;
  border-radius: 50%;
  background: radial-gradient(
    ellipse at center,
    rgba(242, 139, 36, 0.42) 0%,
    rgba(232, 191, 112, 0.22) 38%,
    rgba(8, 123, 117, 0.08) 65%,
    transparent 82%
  );
  filter: blur(16px);
}

/* Western geometric decorative strips along top & bottom edges */
.ww-trim {
  position: absolute;
  left: 0;
  right: 0;
  height: clamp(14px, 1.85vh, 22px);
  z-index: 4;
  background-color: rgba(0, 29, 30, 0.88);
  border-color: rgba(232, 191, 112, 0.5);
  background-repeat: repeat-x;
  background-size: auto 100%;
  background-position: center;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='20' viewBox='0 0 64 20'%3E%3Cpath d='M0 10 L10 2 L20 10 L10 18 Z M32 10 L42 2 L52 10 L42 18 Z' fill='none' stroke='%23E8BF70' stroke-width='1.5' opacity='0.78'/%3E%3Cpath d='M10 6 L14 10 L10 14 L6 10 Z M42 6 L46 10 L42 14 L38 10 Z' fill='%23FFF0C5' opacity='0.65'/%3E%3Cpath d='M22 10 L30 10 M54 10 L62 10' stroke='%23E8BF70' stroke-width='1.4' opacity='0.6'/%3E%3C/svg%3E");
}

.ww-trim-top {
  top: 0;
  border-bottom: 1.5px solid rgba(232, 191, 112, 0.55);
}

.ww-trim-bottom {
  bottom: 0;
  border-top: 1.5px solid rgba(232, 191, 112, 0.55);
}

/* Desert mountains + cacti SVG layer */
.ww-horizon-svg {
  position: absolute;
  left: 0;
  right: 0;
  bottom: clamp(14px, 1.85vh, 22px);
  width: 100%;
  height: 46vh;
  z-index: 1;
}

/* Corner Silhouettes: Cowboy on horse (bottom-left) & Guitar + barrels (bottom-right) */
.ww-corner-art {
  position: absolute;
  bottom: clamp(12px, 1.6vh, 20px);
  z-index: 2;
  pointer-events: none;
}

.ww-corner-cowboy {
  left: -1.4vw;
  width: clamp(185px, 17.5vw, 330px);
  height: auto;
  filter: drop-shadow(0 0 22px rgba(242, 139, 36, 0.34));
}

.ww-corner-western {
  right: -1.0vw;
  width: clamp(190px, 18vw, 340px);
  height: auto;
  filter: drop-shadow(0 0 22px rgba(242, 139, 36, 0.32));
}

/* Floating golden dust particles */
.ww-particles {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

.ww-particle {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, #FFF0C5 0%, #E8BF70 55%, transparent 100%);
  opacity: 0;
  animation: ww-float-up var(--dur, 10s) linear var(--delay, 0s) infinite;
  will-change: transform, opacity;
}

@keyframes ww-float-up {
  0% {
    transform: translate3d(0, 12vh, 0) scale(0.5);
    opacity: 0;
  }
  18% { opacity: var(--alpha, 0.65); }
  80% { opacity: var(--alpha, 0.45); }
  100% {
    transform: translate3d(var(--drift, 18px), -88vh, 0) scale(1.1);
    opacity: 0;
  }
}

/* Subtle dark vignette around screen edges */
.ww-vignette {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background: radial-gradient(
    ellipse 86% 84% at 50% 50%,
    transparent 52%,
    rgba(0, 17, 18, 0.46) 84%,
    rgba(0, 12, 13, 0.78) 100%
  );
}

/* =========================================================
   DISCREET TOP-RIGHT SETTINGS ICON
   ========================================================= */
.rv-settings-link {
  top: clamp(22px, 2.7vh, 30px);
  right: clamp(16px, 1.5vw, 26px);
  z-index: 1500;
  width: 42px;
  height: 42px;
  padding: 0;
  justify-content: center;
  border-radius: 50%;
  background: rgba(0, 39, 40, 0.62);
  border: 1.5px solid rgba(232, 191, 112, 0.42);
  color: var(--ww-cream);
  opacity: 0.42;
  transition: opacity 0.2s ease, transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.rv-settings-link:hover,
.rv-settings-link:focus-visible,
.rv-settings-link:active {
  opacity: 1;
  border-color: var(--ww-cream);
  background: rgba(0, 60, 61, 0.92);
  transform: scale(1.06);
}

.rv-settings-link svg {
  width: 20px;
  height: 20px;
}

/* =========================================================
   MAIN FOREGROUND STAGE (LOGO ABOVE + ORNATE FRAME BELOW)
   ========================================================= */
.ww-stage-layout {
  position: relative;
  z-index: 10;
  width: 100%;
  height: 100%;
  padding: clamp(20px, 2.4vh, 30px) 2vw clamp(20px, 2.4vh, 30px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(4px, 0.9vh, 12px);
}

/* Top Logo Zone (Outside Main Container) */
.ww-logo-zone {
  position: relative;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  height: clamp(78px, 12.2vh, 134px);
  z-index: 14;
  margin-top: 0.4vh;
  margin-bottom: 1.0vh;
}

/* Breathing golden glow behind logo — logo itself stays completely still */
.ww-logo-glow {
  position: absolute;
  width: 145%;
  height: 155%;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(
    ellipse at center,
    rgba(255, 240, 197, 0.52) 0%,
    rgba(232, 191, 112, 0.3) 34%,
    rgba(242, 139, 36, 0.14) 58%,
    transparent 74%
  );
  filter: blur(18px);
  animation: ww-logo-breathe 4.4s ease-in-out infinite;
  will-change: opacity, transform;
}

@keyframes ww-logo-breathe {
  0%, 100% {
    opacity: 0.72;
    transform: scale(0.95);
  }
  50% {
    opacity: 1;
    transform: scale(1.08);
  }
}

.ww-logo-img {
  position: relative;
  z-index: 2;
  height: 100%;
  width: auto;
  max-width: 34vw;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.55));
}

/* =========================================================
   ORNATE WESTERN MAIN CONTENT CONTAINER (78–85% WIDTH)
   ========================================================= */
.ww-main-frame {
  position: relative;
  width: min(82vw, 1560px);
  flex: 1;
  min-height: 0;
  max-height: clamp(510px, 78.5vh, 845px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: clamp(22px, 2.8vh, 34px) clamp(26px, 3.2vw, 56px) clamp(14px, 1.9vh, 22px);
  /* Subtle notched Western corners */
  clip-path: polygon(
    26px 0%, calc(100% - 26px) 0%,
    100% 26px, 100% calc(100% - 26px),
    calc(100% - 26px) 100%, 26px 100%,
    0% calc(100% - 26px), 0% 26px
  );
  background:
    radial-gradient(ellipse 74% 55% at 50% 42%, rgba(8, 123, 117, 0.34) 0%, transparent 72%),
    linear-gradient(180deg, rgba(0, 56, 58, 0.92) 0%, rgba(0, 39, 40, 0.96) 100%);
  box-shadow:
    inset 0 0 65px rgba(0, 15, 16, 0.7),
    inset 0 1px 0 rgba(255, 240, 197, 0.2);
}

/* Outer glowing drop-shadow wrapper so clip-path keeps outer golden aura */
.ww-frame-wrap {
  position: relative;
  width: min(78.5vw, 1500px);
  flex: 1;
  min-height: 0;
  max-height: clamp(500px, 77vh, 830px);
  display: flex;
  filter:
    drop-shadow(0 0 26px rgba(232, 191, 112, 0.28))
    drop-shadow(0 24px 55px rgba(0, 0, 0, 0.65));
}

.ww-frame-wrap > .ww-main-frame {
  width: 100%;
  max-height: none;
}

/* Double-layer Western golden & teal decorative SVG frame overlay */
.ww-frame-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
}

/* Corner filigree star ornaments */
.ww-corner-orn {
  position: absolute;
  width: clamp(22px, 2.2vw, 34px);
  height: clamp(22px, 2.2vw, 34px);
  pointer-events: none;
  z-index: 4;
  color: var(--ww-gold);
  opacity: 0.92;
}
.ww-corner-orn.tl { top: 10px; left: 10px; }
.ww-corner-orn.tr { top: 10px; right: 10px; transform: scaleX(-1); }
.ww-corner-orn.bl { bottom: 10px; left: 10px; transform: scaleY(-1); }
.ww-corner-orn.br { bottom: 10px; right: 10px; transform: scale(-1); }

/* =========================================================
   HEADING SECTION (BANNER + FLOURISHES + DESCRIPTION)
   ========================================================= */
.ww-header-block {
  position: relative;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: clamp(4px, 0.7vh, 9px);
  width: 100%;
}

.ww-banner-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: clamp(4px, 0.55vh, 7px) clamp(18px, 2.1vw, 30px);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(232, 191, 112, 0.24), rgba(0, 39, 40, 0.82));
  border: 1.5px solid var(--ww-gold);
  box-shadow:
    0 4px 16px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 240, 197, 0.45);
  color: var(--ww-cream);
  font-family: var(--ww-font-slab);
  font-size: clamp(0.7rem, 0.95vw, 0.95rem);
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.ww-heading-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 1.8vw, 28px);
  width: 100%;
}

.ww-flourish {
  flex: 0 1 clamp(60px, 11vw, 180px);
  height: 18px;
  color: var(--ww-gold);
  opacity: 0.9;
}

.ww-flourish.right {
  transform: scaleX(-1);
}

.ww-main-heading {
  font-family: var(--ww-font-western);
  font-size: clamp(1.75rem, 3.1vw, 3.35rem);
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.08;
  white-space: nowrap;
  background: linear-gradient(180deg, #FFF7DC 0%, #FFF0C5 44%, #E8BF70 86%, #C99342 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.65));
}

.ww-description {
  max-width: min(86%, 820px);
  font-family: var(--ww-font-slab);
  font-size: clamp(0.84rem, 1.1vw, 1.14rem);
  font-weight: 500;
  color: rgba(255, 240, 197, 0.88);
  line-height: 1.38;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.45);
}

/* =========================================================
   PUZZLE CONTAINER SECTION (3 ORIGINAL PNG CARDS IN ONE ROW)
   ========================================================= */
.ww-cards-row {
  position: relative;
  z-index: 5;
  width: 100%;
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(36px, 5.5vw, 96px);
  padding: clamp(4px, 0.8vh, 12px) 0;
}

.ww-card-slot {
  position: relative;
  appearance: none;
  border: none;
  background: transparent;
  padding: 0;
  height: clamp(205px, 36.5vh, 395px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  outline: none;
  transition: transform 0.25s var(--ww-ease), filter 0.35s var(--ww-ease), opacity 0.35s ease;
  will-change: transform, filter;
}

/* Keep exact natural aspect ratio of each PNG with zero stretching/cropping */
.ww-card-img {
  height: 100%;
  width: auto;
  max-width: 24vw;
  object-fit: contain;
  display: block;
  pointer-events: none;
  transition: filter 0.35s var(--ww-ease), opacity 0.35s ease;
}

/* --- STATE 1: LOCKED --- */
.ww-card-slot.is-locked {
  cursor: not-allowed;
  opacity: 0.74;
}

.ww-card-slot.is-locked .ww-card-img {
  filter: brightness(0.76) saturate(0.84) drop-shadow(0 12px 24px rgba(0, 0, 0, 0.55));
}

.ww-card-slot.is-locked:active {
  transform: none;
}

/* --- STATE 2: ACTIVE / READY TO ENTER --- */
.ww-card-slot.is-active {
  cursor: pointer;
  opacity: 1;
  z-index: 3;
  animation: ww-active-pulse 2.8s ease-in-out infinite;
}

@keyframes ww-active-pulse {
  0%, 100% {
    filter:
      drop-shadow(0 0 14px rgba(232, 191, 112, 0.58))
      drop-shadow(0 0 28px rgba(242, 139, 36, 0.34))
      drop-shadow(0 14px 28px rgba(0, 0, 0, 0.6));
  }
  50% {
    filter:
      drop-shadow(0 0 24px rgba(255, 240, 197, 0.85))
      drop-shadow(0 0 46px rgba(242, 139, 36, 0.55))
      drop-shadow(0 16px 32px rgba(0, 0, 0, 0.65));
  }
}

.ww-card-slot.is-active:hover,
.ww-card-slot.is-active:focus-visible {
  transform: translateY(-4px) scale(1.025);
}

.ww-card-slot.is-active:active,
.ww-card-slot.is-active.is-pressed {
  transform: scale(0.965);
}

/* --- STATE 3: COMPLETED --- */
.ww-card-slot.is-completed {
  cursor: pointer;
  opacity: 0.96;
  filter:
    drop-shadow(0 0 14px rgba(8, 123, 117, 0.6))
    drop-shadow(0 14px 26px rgba(0, 0, 0, 0.55));
}

.ww-card-slot.is-completed:hover,
.ww-card-slot.is-completed:focus-visible {
  transform: translateY(-3px) scale(1.02);
}

.ww-card-slot.is-completed:active,
.ww-card-slot.is-completed.is-pressed {
  transform: scale(0.97);
}

/* Unlock animation when a card transitions from locked -> active */
.ww-card-slot.just-unlocked {
  animation: ww-card-unlock-pop 0.85s var(--ww-ease), ww-active-pulse 2.8s ease-in-out 0.85s infinite;
}

@keyframes ww-card-unlock-pop {
  0% { transform: scale(0.92); filter: brightness(1.5) drop-shadow(0 0 45px #FFF0C5); }
  55% { transform: scale(1.06); filter: brightness(1.2) drop-shadow(0 0 38px #F28B24); }
  100% { transform: scale(1); }
}

/* =========================================================
   DYNAMIC STATE OVERLAYS (Zero Duplication Over Baked PNGs)
   Only rendered when a card changes from its baked default!
   ========================================================= */

/* Center medallion overlay: covers baked padlock on Cards 2 & 3 once unlocked/completed */
.ww-lock-burst {
  position: absolute;
  left: 50%;
  top: 47.8%;
  transform: translate(-50%, -50%) scale(0.6);
  width: 24%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  z-index: 4;
  transition: opacity 0.35s ease, transform 0.45s var(--ww-ease);
}

.ww-card-slot[data-baked="locked"].is-active .ww-lock-burst {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  background: radial-gradient(circle, #FFF0C5 0%, #F28B24 52%, #003C3D 100%);
  border: 2.5px solid #FFF0C5;
  box-shadow: 0 0 24px rgba(242, 139, 36, 0.85), 0 0 12px rgba(255, 240, 197, 0.9);
  color: #002728;
}

.ww-card-slot[data-baked="locked"].is-completed .ww-lock-burst {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  background: radial-gradient(circle, #18B49B 0%, #087B75 70%, #003C3D 100%);
  border: 2.5px solid #FFF0C5;
  box-shadow: 0 0 22px rgba(24, 180, 155, 0.75);
  color: #FFF0C5;
}

.ww-lock-burst svg {
  width: 56%;
  height: 56%;
}

/* Corner completed checkmark badge (for Card 1 when completed) */
.ww-done-check {
  position: absolute;
  top: 9%;
  right: 7%;
  width: clamp(30px, 3vw, 44px);
  height: clamp(30px, 3vw, 44px);
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #22C9A8 0%, #087B75 100%);
  border: 2.5px solid var(--ww-cream);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.55), 0 0 16px rgba(34, 201, 168, 0.65);
  color: #FFF0C5;
  opacity: 0;
  transform: scale(0.4);
  pointer-events: none;
  z-index: 6;
  transition: opacity 0.3s ease, transform 0.4s var(--ww-ease);
}

.ww-card-slot.is-completed .ww-done-check {
  opacity: 1;
  transform: scale(1);
}

/* =========================================================
   MYSTERY WESTERN PUZZLE CARDS (Spoiler-Free Home Screen)
   ========================================================= */
.ww-card-slot.ww-mystery-card {
  width: clamp(250px, 23.5vw, 396px);
  height: clamp(238px, 37.5vh, 396px);
  margin-top: clamp(14px, 2.2vh, 24px);
  border-radius: 26px;
  border: 2.5px solid rgba(232, 191, 112, 0.58);
  background:
    radial-gradient(ellipse 90% 62% at 50% 24%, rgba(8, 123, 117, 0.52) 0%, rgba(0, 44, 45, 0.94) 64%, rgba(0, 29, 30, 0.98) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 240, 197, 0.25),
    inset 0 -24px 44px rgba(0, 16, 17, 0.72),
    0 14px 32px rgba(0, 0, 0, 0.56);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: clamp(26px, 3.2vh, 38px) clamp(14px, 1.5vw, 22px) clamp(14px, 1.8vh, 22px);
  overflow: visible;
  text-align: center;
}

.ww-card-slot.ww-mystery-card.is-active {
  border-color: #F6CF75;
  background:
    radial-gradient(ellipse 96% 62% at 50% 22%, rgba(242, 139, 36, 0.55) 0%, rgba(168, 86, 22, 0.34) 36%, rgba(0, 46, 47, 0.94) 68%, rgba(0, 29, 30, 0.98) 100%);
  box-shadow:
    inset 0 1px 1px rgba(255, 244, 214, 0.5),
    inset 0 -20px 36px rgba(0, 16, 17, 0.65),
    0 0 26px rgba(242, 139, 36, 0.45),
    0 16px 34px rgba(0, 0, 0, 0.6);
}

.ww-card-slot.ww-mystery-card.is-completed {
  border-color: rgba(45, 212, 180, 0.85);
  background:
    radial-gradient(ellipse 90% 60% at 50% 24%, rgba(24, 180, 155, 0.42) 0%, rgba(0, 46, 47, 0.95) 66%, rgba(0, 29, 30, 0.98) 100%);
}

.ww-card-num {
  position: absolute;
  top: clamp(-24px, -2.5vh, -20px);
  left: 50%;
  transform: translateX(-50%);
  width: clamp(44px, 4.6vh, 56px);
  height: clamp(44px, 4.6vh, 56px);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: "RyeLocal", Georgia, serif;
  font-size: clamp(1.2rem, 1.8vw, 1.75rem);
  font-weight: 800;
  color: #FFF0C5;
  background: linear-gradient(180deg, #094D4D 0%, #022C2D 100%);
  border: 3px solid #E8BF70;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.6);
  z-index: 5;
}

.ww-card-slot.ww-mystery-card.is-active .ww-card-num {
  background: linear-gradient(180deg, #FFE493 0%, #F2B138 55%, #D97E18 100%);
  color: #1A1002;
  border-color: #FFF6D6;
  box-shadow: 0 0 20px rgba(242, 183, 5, 0.72), 0 6px 16px rgba(0, 0, 0, 0.55);
}

.ww-card-slot.ww-mystery-card.is-completed .ww-card-num {
  background: linear-gradient(180deg, #27CFAF 0%, #0A7B73 100%);
  color: #FFF8E1;
  border-color: #FFF0C5;
}

.ww-card-slot.ww-mystery-card .ww-done-check {
  top: 10px;
  right: 10px;
}

.ww-card-art {
  position: relative;
  width: 100%;
  flex: 1;
  min-height: 0;
  border-radius: 16px;
  overflow: hidden;
  display: grid;
  place-items: center;
  color: #E8BF70;
}

.ww-card-jigsaw-grid {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.75;
}

.ww-mystery-emblem {
  position: relative;
  z-index: 2;
  width: clamp(78px, 11vh, 118px);
  height: clamp(78px, 11vh, 118px);
  display: grid;
  place-items: center;
}

.ww-emblem-active,
.ww-emblem-locked,
.ww-emblem-done {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  opacity: 0;
  transform: scale(0.72);
  transition: opacity 0.35s ease, transform 0.4s var(--ww-ease);
}

.ww-card-slot.ww-mystery-card.is-active .ww-emblem-active {
  opacity: 1;
  transform: scale(1);
}

.ww-card-slot.ww-mystery-card.is-locked .ww-emblem-locked {
  opacity: 1;
  transform: scale(1);
  width: clamp(58px, 7.6vh, 78px);
  height: clamp(58px, 7.6vh, 78px);
  margin: auto;
  border-radius: 50%;
  background: rgba(0, 32, 33, 0.84);
  border: 2.5px solid rgba(138, 206, 198, 0.55);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.55);
  color: #FFF0C5;
}

.ww-emblem-locked svg {
  width: 48%;
  height: 48%;
}

.ww-card-slot.ww-mystery-card.is-completed .ww-emblem-done {
  opacity: 1;
  transform: scale(1);
  width: clamp(64px, 8.2vh, 84px);
  height: clamp(64px, 8.2vh, 84px);
  margin: auto;
  border-radius: 50%;
  background: radial-gradient(circle, #24CCA8 0%, #087B75 72%, #003C3D 100%);
  border: 3px solid #FFF0C5;
  box-shadow: 0 0 26px rgba(36, 204, 168, 0.65);
  color: #FFF8E1;
}

.ww-emblem-done svg {
  width: 52%;
  height: 52%;
}

.ww-puzzle-q-svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 0 14px rgba(242, 183, 5, 0.45));
}

.ww-q-mark {
  position: absolute;
  font-family: "RyeLocal", Georgia, serif;
  font-size: clamp(2rem, 3.6vh, 3rem);
  font-weight: 800;
  color: #FFF4CC;
  text-shadow: 0 2px 12px rgba(242, 139, 36, 0.9), 0 3px 6px rgba(0, 0, 0, 0.7);
  animation: ww-q-float 2.6s ease-in-out infinite;
}

@keyframes ww-q-float {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-3px) scale(1.06); }
}

.ww-card-body {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(3px, 0.55vh, 6px);
  padding-top: clamp(6px, 0.8vh, 10px);
}

.ww-card-title {
  font-family: "RobotoSlabLocal", Georgia, serif;
  font-size: clamp(1.15rem, 1.55vw, 1.75rem);
  font-weight: 800;
  color: #FFF3CC;
  letter-spacing: 0.02em;
  line-height: 1.1;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.65);
}

.ww-card-sub {
  font-family: "RobotoSlabLocal", Georgia, serif;
  font-size: clamp(0.82rem, 1.02vw, 1.08rem);
  font-weight: 600;
  color: rgba(255, 240, 197, 0.88);
  line-height: 1.15;
}

.ww-card-meta {
  font-size: clamp(0.68rem, 0.78vw, 0.82rem);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(232, 191, 112, 0.72);
  margin-bottom: clamp(4px, 0.7vh, 8px);
}

.ww-card-pill {
  width: 90%;
  padding: clamp(7px, 0.95vh, 11px) 12px;
  border-radius: 999px;
  font-family: "RobotoSlabLocal", sans-serif;
  font-size: clamp(0.72rem, 0.88vw, 0.94rem);
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  border: 2px solid rgba(154, 206, 202, 0.42);
  background: rgba(16, 56, 56, 0.82);
  color: rgba(255, 240, 197, 0.84);
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.ww-card-slot.ww-mystery-card.is-active .ww-card-pill {
  background: linear-gradient(180deg, #0E5855 0%, #033635 100%);
  border-color: #2BE0C2;
  color: #FFF7D6;
  box-shadow: 0 0 18px rgba(43, 224, 194, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.ww-card-slot.ww-mystery-card.is-completed .ww-card-pill {
  background: linear-gradient(180deg, #0D6B62 0%, #04413C 100%);
  border-color: #E8BF70;
  color: #FFF4CC;
  box-shadow: 0 0 16px rgba(34, 201, 168, 0.45);
}

.ww-done-check svg {
  width: 60%;
  height: 60%;
}

/* Dynamic bottom status pill: covers baked pill ONLY when state differs from baked image */
.ww-status-overlay {
  position: absolute;
  left: 50%;
  bottom: 9.2%;
  transform: translateX(-50%);
  width: 74%;
  height: 13.8%;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: var(--ww-font-slab);
  font-size: clamp(0.68rem, 0.92vw, 1rem);
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  z-index: 5;
  transition: opacity 0.3s ease, transform 0.3s var(--ww-ease);
}

/* Cards 2 & 3 unlocked -> cover baked "LOCKED" pill with glowing teal "READY TO ENTER" pill */
.ww-card-slot[data-baked="locked"].is-active .ww-status-overlay {
  opacity: 1;
  background: linear-gradient(180deg, #096C67 0%, #023F3E 100%);
  border: 2px solid #2BE2C4;
  color: #FFF0C5;
  box-shadow: 0 0 18px rgba(43, 226, 196, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.32);
}

/* Any card completed -> cover baked pill with rich emerald-gold "COMPLETED" pill */
.ww-card-slot.is-completed .ww-status-overlay {
  opacity: 1;
  background: linear-gradient(180deg, #0D6E59 0%, #053A31 100%);
  border: 2px solid var(--ww-gold);
  color: #FFF0C5;
  box-shadow: 0 0 16px rgba(232, 191, 112, 0.45), inset 0 1px 0 rgba(255, 240, 197, 0.35);
}

/* =========================================================
   MAIN ORANGE WESTERN ENTER BUTTON
   ========================================================= */
.ww-cta-zone {
  position: relative;
  z-index: 5;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(2px, 0.5vh, 8px) 0;
}

.ww-enter-btn {
  position: relative;
  overflow: hidden;
  appearance: none;
  border: 3px solid var(--ww-gold);
  border-radius: 18px;
  padding: clamp(12px, 1.55vh, 19px) clamp(34px, 4.4vw, 68px);
  background: linear-gradient(180deg, #FFA33B 0%, #F28B24 44%, #C34C13 100%);
  color: var(--ww-cream);
  font-family: var(--ww-font-western);
  font-size: clamp(1.05rem, 1.75vw, 1.85rem);
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-shadow: 0 3px 6px rgba(72, 22, 2, 0.72);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: clamp(10px, 1.1vw, 16px);
  box-shadow:
    inset 0 2px 1px rgba(255, 246, 214, 0.72),
    inset 0 -3px 6px rgba(120, 34, 4, 0.55),
    0 6px 0 #7E2D09,
    0 12px 32px rgba(242, 139, 36, 0.55),
    0 0 42px rgba(232, 191, 112, 0.35);
  animation: ww-btn-idle 3.2s ease-in-out infinite;
  transition: transform 0.14s var(--ww-ease), box-shadow 0.14s ease, filter 0.2s ease;
  will-change: transform, box-shadow;
}

@keyframes ww-btn-idle {
  0%, 100% {
    box-shadow:
      inset 0 2px 1px rgba(255, 246, 214, 0.72),
      inset 0 -3px 6px rgba(120, 34, 4, 0.55),
      0 6px 0 #7E2D09,
      0 12px 30px rgba(242, 139, 36, 0.48),
      0 0 34px rgba(232, 191, 112, 0.28);
  }
  50% {
    box-shadow:
      inset 0 2px 2px rgba(255, 248, 224, 0.85),
      inset 0 -3px 6px rgba(120, 34, 4, 0.55),
      0 6px 0 #7E2D09,
      0 14px 42px rgba(242, 139, 36, 0.74),
      0 0 56px rgba(255, 240, 197, 0.48);
  }
}

/* Occasional diagonal light sweep across button */
.ww-enter-btn::after {
  content: "";
  position: absolute;
  top: -15%;
  left: -120%;
  width: 48%;
  height: 130%;
  background: linear-gradient(105deg, transparent 0%, rgba(255, 248, 224, 0.5) 50%, transparent 100%);
  transform: skewX(-18deg);
  animation: ww-btn-sweep 4.6s ease-in-out infinite;
  pointer-events: none;
}

@keyframes ww-btn-sweep {
  0%, 66% { left: -120%; }
  100% { left: 165%; }
}

.ww-enter-btn:hover,
.ww-enter-btn:focus-visible {
  transform: translateY(-2px) scale(1.025);
  filter: brightness(1.06);
}

.ww-enter-btn:active,
.ww-enter-btn.is-pressed {
  transform: translateY(4px) scale(0.975);
  box-shadow:
    inset 0 2px 2px rgba(255, 240, 197, 0.5),
    0 2px 0 #7E2D09,
    0 6px 18px rgba(242, 139, 36, 0.45);
}

.ww-enter-icon {
  width: clamp(22px, 1.8vw, 32px);
  height: clamp(22px, 1.8vw, 32px);
  flex-shrink: 0;
  filter: drop-shadow(0 2px 4px rgba(72, 22, 2, 0.6));
}

/* =========================================================
   BOTTOM INSTRUCTION SECTION (3 HORIZONTAL ITEMS + DIVIDERS)
   ========================================================= */
.ww-instructions {
  position: relative;
  z-index: 5;
  width: 100%;
  flex-shrink: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: center;
  padding-top: clamp(8px, 1.15vh, 14px);
  border-top: 1px solid rgba(232, 191, 112, 0.28);
}

.ww-inst-item {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(8px, 0.9vw, 14px);
  padding: 2px clamp(8px, 1.2vw, 18px);
}

.ww-inst-item + .ww-inst-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18%;
  bottom: 18%;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(232, 191, 112, 0.55), transparent);
}

.ww-inst-icon {
  width: clamp(28px, 2.3vw, 38px);
  height: clamp(28px, 2.3vw, 38px);
  border-radius: 50%;
  border: 1.5px solid var(--ww-gold);
  background: rgba(0, 39, 40, 0.72);
  box-shadow: 0 0 12px rgba(232, 191, 112, 0.22);
  display: grid;
  place-items: center;
  color: var(--ww-cream);
  flex-shrink: 0;
}

.ww-inst-icon svg {
  width: 58%;
  height: 58%;
}

.ww-inst-text {
  font-family: var(--ww-font-slab);
  font-size: clamp(0.68rem, 0.9vw, 0.96rem);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ww-cream);
  white-space: nowrap;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.55);
}

/* =========================================================
   RESPONSIVE ADJUSTMENTS (1366x768, 1280x720, 1920x1080)
   ========================================================= */
@media (max-height: 760px) {
  .ww-logo-zone {
    height: clamp(74px, 12.8vh, 112px);
  }
  .ww-card-slot {
    height: clamp(190px, 34vh, 275px);
  }
  .ww-main-frame {
    padding: 16px 28px 12px;
  }
}

@media (max-width: 1180px) {
  .ww-frame-wrap {
    width: 90vw;
  }
  .ww-inst-text {
    font-size: 0.68rem;
    letter-spacing: 0.06em;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ww-sunburst,
  .ww-logo-glow,
  .ww-particle,
  .ww-card-slot.is-active,
  .ww-enter-btn,
  .ww-enter-btn::after {
    animation: none !important;
  }
}
