/* ============================================================
   Dustin RO — Enter Site landing page
   Sliced from entersite.psd — responsive rebuild
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Kanit:wght@400;500;600;700;800&family=Prompt:wght@300;400;500;600;700;800&display=swap');

:root {
  --gold-1: #fff6db;
  --gold-2: #f7d67e;
  --gold-3: #e0a63f;
  --gold-4: #c07f26;
  --gold-line: #ffe9a8;
  --brown-bar: #61452d;
  --brown-bar-2: #3d2a17;
  --ink: #2a1c0d;
  --cream: #f1e5c0;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body.entersite {
  margin: 0;
  font-family: "Prompt", "Kanit", system-ui, "Noto Sans Thai", sans-serif;
  background: #241a10;
  color: #fff;
  /* clip (not hidden) prevents horizontal overflow WITHOUT turning body into a
     scroll container — avoids the duplicate/second scrollbar */
  overflow-x: clip;
}

.es-wrap { width: 100%; overflow-x: clip; }

a { text-decoration: none; }

/* ============================== CUSTOM CURSOR (from index) ============================== */
.custom { cursor: url("../img/cursor.png"), auto; }
.custom:hover a,
.custom:hover li,
.custom:hover button,
.custom:hover input,
.custom:hover select,
.custom:hover .im { cursor: url("../img/activec.png"), auto; }

/* ============================== PAGE LOADER (from index) ============================== */
.hide::-webkit-scrollbar { display: none; }
.hide { -ms-overflow-style: none; scrollbar-width: none; }

.loader {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: #2b1905;
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 999999;
  transition: opacity .4s ease-in-out, visibility .4s ease-in-out;
}
.loader.hidden { opacity: 0; visibility: hidden; }
.loader .loader-decoration {
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 28px;
  margin-bottom: 1rem;
}
.loader .loader-decoration .icon-logo { width: 10rem; }
.loading-text {
  color: #fff;
  font-size: 14pt;
  font-weight: 600;
  margin-left: 10px;
  margin-bottom: 1rem;
}
.loading-text .dot { margin-left: 3px; animation: es-blink 1.5s infinite; }
.loading-text .dot:nth-child(2) { animation-delay: .3s; }
.loading-text .dot:nth-child(3) { animation-delay: .6s; }
.loading-bar-background {
  --height: 30px;
  display: flex;
  align-items: center;
  box-sizing: border-box;
  padding: 5px;
  width: 15rem;
  height: var(--height);
  background-color: #1b1101;
  box-shadow: #0c0c0c -2px 2px 4px 0px inset;
  border-radius: calc(var(--height) / 2);
}
.loading-bar {
  position: relative;
  display: flex;
  justify-content: center;
  flex-direction: column;
  --height: 20px;
  width: 0%;
  height: var(--height);
  overflow: hidden;
  background: linear-gradient(0deg, rgb(77, 46, 0) 0%, rgb(138, 85, 6) 100%);
  border-radius: calc(var(--height) / 2);
  animation: es-loading .3s ease-out forwards;
}
.white-bars-container {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 18px;
}
.white-bar {
  background: linear-gradient(-45deg, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 70%);
  width: 10px;
  height: 45px;
  opacity: .3;
  rotate: 45deg;
}
@keyframes es-loading { 0% { width: 0; } 80% { width: 100%; } 100% { width: 100%; } }
@keyframes es-blink { 0%, 100% { opacity: 0; } 50% { opacity: 1; } }

/* Gold gradient text helper */
.gold-text {
  background: linear-gradient(180deg, var(--gold-1) 0%, var(--gold-2) 45%, var(--gold-4) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .45));
}

/* Gold pill button */
.btn-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4em;
  padding: .62em 1.6em;
  border-radius: 999px;
  border: 2px solid var(--gold-line);
  background: linear-gradient(180deg, #fbe6a5 0%, var(--gold-2) 35%, var(--gold-3) 70%, var(--gold-4) 100%);
  color: #5a3a12;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1;
  letter-spacing: .3px;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .6);
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), filter .18s var(--ease);
  white-space: nowrap;
}
.btn-gold:hover { transform: translateY(-2px); filter: brightness(1.06); box-shadow: 0 8px 18px rgba(0, 0, 0, .4), inset 0 1px 0 rgba(255, 255, 255, .7); }
.btn-gold:active { transform: translateY(0); }
.btn-gold.is-ghost {
  background: transparent;
  color: var(--gold-2);
  border-color: var(--gold-3);
  box-shadow: none;
}
.btn-gold.is-ghost:hover { background: rgba(224, 166, 63, .15); }

/* ============================== NAVBAR ============================== */
.es-nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: 70px;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 0 clamp(14px, 3vw, 40px);
  background: linear-gradient(-90deg, #6a4c30 0%, var(--brown-bar) 55%, var(--brown-bar-2) 100%);
  border-bottom: 2px solid var(--gold-3);
  box-shadow: 0 3px 14px rgba(0, 0, 0, .45);
}
.es-nav__logo img { height: 42px; display: block; }
.es-nav__menu {
  display: flex;
  gap: clamp(16px, 2.4vw, 40px);
  margin: 0 auto 0 24px;
}
.es-nav__menu a {
  color: #f4e6c9;
  font-weight: 600;
  font-size: .98rem;
  letter-spacing: .5px;
  position: relative;
  padding: 6px 2px;
  transition: color .2s;
}
.es-nav__menu a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 2px;
  background: var(--gold-2);
  transition: width .25s var(--ease);
}
.es-nav__menu a:hover, .es-nav__menu a.active { color: #fff; }
.es-nav__menu a:hover::after, .es-nav__menu a.active::after { width: 100%; }
.es-nav__actions { display: flex; gap: 12px; align-items: center; }
.es-nav__actions .btn-gold { font-size: .9rem; padding: .55em 1.15em; }
.es-nav__mobile-actions { display: none; }

/* hamburger */
.es-burger {
  display: none;
  margin-left: auto;
  width: 44px; height: 44px;
  border: 1px solid var(--gold-3);
  border-radius: 8px;
  background: rgba(0, 0, 0, .2);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.es-burger span { width: 22px; height: 2px; background: var(--gold-2); transition: .25s; }
.es-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.es-burger.open span:nth-child(2) { opacity: 0; }
.es-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================== HERO ============================== */
.es-hero {
  position: relative;
  margin-top: 70px;
  background: #d9c9a0;
}
.es-hero__scene { width: 100%; display: block; vertical-align: bottom; }
.es-hero__content {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  right: 12%;
  width: 42%;
  max-width: 620px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.es-hero__logo { width: 100%; max-width: 480px; height: auto; filter: drop-shadow(0 6px 14px rgba(0, 0, 0, .45)); }
.es-hero__tagline {
  /* proportional to the scene (min() = scales down with viewport, capped on desktop)
     so the PC overlay composition is preserved at every screen size */
  margin: min(1.4vw, 18px) 0 min(1.8vw, 22px);
  font-size: min(2.42vw, 2.42rem);
  font-weight: 700;
  line-height: 1.5;
  color: #3d2409;
  /* light halo so the dark text separates from the busy gold background */
  text-shadow:
    0 0 3px rgba(255, 252, 244, .95),
    0 0 9px rgba(255, 248, 233, .9),
    0 1px 1px rgba(255, 255, 255, .7);
  white-space: nowrap;
}
.es-hero__cta {
  font-size: min(1.4vw, 1.5rem);
  padding: .6em 2em;
  letter-spacing: 2px;
  pointer-events: none;
  opacity: .96;
}

/* ============================== SECTION SHELL ============================== */
.es-section {
  position: relative;
  padding: clamp(48px, 6vw, 96px) clamp(16px, 4vw, 60px);
  scroll-margin-top: 70px;
}
.es-section__inner {
  max-width: 1200px;
  margin: 0 auto;
}
.es-title {
  text-align: center;
  font-family: "Kanit", sans-serif;
  font-weight: 800;
  font-size: clamp(1.9rem, 4vw, 3rem);
  letter-spacing: 1px;
  margin: 0;
}
.es-subtitle {
  text-align: center;
  font-size: clamp(.95rem, 1.6vw, 1.15rem);
  font-weight: 400;
  margin: 10px 0 0;
  opacity: .92;
}

/* ============================== PRE-REGISTER ============================== */
.es-prereg {
  margin-top: -1px;            /* overlap 1px so no hairline shows at the seam */
  background: #241a10 url("../img/entersite/prereg-bg.jpg") center top / cover no-repeat;
  color: #f4e6c9;
}
.es-prereg .es-subtitle { color: #e7cf9a; }

.es-badge {
  position: relative;
  width: min(420px, 82vw);
  margin: clamp(22px, 3vw, 34px) auto clamp(30px, 4vw, 48px);
  display: grid;
  place-items: center;
}
.es-badge img { width: 100%; display: block; }
.es-badge span {
  position: absolute;
  font-family: "Kanit", sans-serif;
  font-weight: 800;
  font-size: clamp(1.5rem, 4.5vw, 2.6rem);
  color: #b56a12;
  text-shadow: 0 1px 0 #fff3cf;
  letter-spacing: 1px;
}

/* progress bar */
.es-progress {
  position: relative;
  max-width: 980px;
  margin: 0 auto clamp(26px, 3vw, 40px);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  --progress: 0%;
}
.es-progress::before {
  content: "";
  position: absolute;
  top: 19px; left: 12.5%; right: 12.5%;
  height: 12px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.16), rgba(0,0,0,.25)),
    linear-gradient(90deg, #45413a, #6c6255 50%, #3d3832);
  border: 1px solid rgba(255, 238, 184, .18);
  border-radius: 999px;
  box-shadow:
    inset 0 2px 4px rgba(0, 0, 0, .5),
    0 1px 0 rgba(255, 255, 255, .08);
  z-index: 0;
}
.es-progress::after {
  content: "";
  position: absolute;
  top: 20px; left: 12.5%;
  width: calc((100% - 25%) * var(--progress) / 100%);
  max-width: 75%;
  height: 10px;
  border-radius: 999px;
  background:
    linear-gradient(90deg, rgba(255,255,255,.35), rgba(255,255,255,0) 18%, rgba(255,255,255,.26) 48%, rgba(255,255,255,0) 72%),
    linear-gradient(90deg, #a8600e, #f8d66a 38%, #fff0a8 58%, #d88a1e);
  box-shadow:
    0 0 10px rgba(247, 214, 126, .7),
    0 0 22px rgba(195, 105, 18, .42);
  z-index: 0;
  transition: width .8s cubic-bezier(.22,.61,.36,1);
}
.es-progress__step {
  text-align: center;
  position: relative;
  z-index: 1;
  min-width: 0;
}
.es-progress__dot {
  width: 40px; height: 40px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%, #f2f2f2, #b6b0a5 48%, #60584d 78%);
  border: 3px solid #d6d0c4;
  box-shadow:
    inset 0 2px 4px rgba(255, 255, 255, .45),
    inset 0 -4px 7px rgba(0, 0, 0, .28),
    0 3px 8px rgba(0, 0, 0, .42);
  filter: grayscale(.35) saturate(.65);
  transition: filter .25s var(--ease), box-shadow .25s var(--ease), transform .25s var(--ease), background .25s var(--ease), border-color .25s var(--ease);
}
.es-progress__step.is-unlocked .es-progress__dot {
  background:
    radial-gradient(circle at 34% 28%, #fff9d8 0 24%, #f8d66a 46%, #c97917 76%, #7e3d09 100%);
  border-color: #fff2c6;
  box-shadow:
    inset 0 2px 4px rgba(255, 255, 255, .62),
    inset 0 -5px 8px rgba(115, 57, 8, .35),
    0 0 0 4px rgba(93, 54, 16, .38),
    0 0 16px rgba(247, 214, 126, .9),
    0 4px 12px rgba(0, 0, 0, .48);
  filter: none;
}
.es-progress__step.is-current .es-progress__dot {
  border-color: #f3d37a;
  box-shadow:
    inset 0 2px 4px rgba(255, 255, 255, .45),
    inset 0 -4px 7px rgba(0, 0, 0, .28),
    0 0 0 5px rgba(247, 214, 126, .16),
    0 0 18px rgba(247, 214, 126, .55),
    0 3px 8px rgba(0, 0, 0, .42);
  animation: es-current-pulse 1.8s ease-in-out infinite;
}
.es-progress__step.is-locked .es-progress__dot {
  opacity: .82;
}
.es-progress__label {
  font-weight: 700;
  color: #9f9383;
  font-size: clamp(.85rem, 1.5vw, 1.05rem);
  text-shadow: 0 2px 3px rgba(0, 0, 0, .42);
}
.es-progress__step.is-unlocked .es-progress__label,
.es-progress__step.is-current .es-progress__label {
  color: #ffe6a6;
}
@keyframes es-current-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}

/* reward cards */
.es-rewards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(14px, 1.6vw, 22px);
  max-width: 1040px;
  margin: 0 auto clamp(34px, 4vw, 52px);
}
.es-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  position: relative;
}
.es-card__frame {
  position: relative;
  aspect-ratio: 214 / 210;
  overflow: hidden;
  border-radius: 10px 10px 0 0;
  /* per-card image is set inline in the markup (item-frame-1..4.png) so each
     card can hold a different item picture, swappable independently */
  background-position: center;
  background-size: 100% 100%;
  background-repeat: no-repeat;
  filter: grayscale(.72) saturate(.72) brightness(.82);
  transition: filter .3s var(--ease), transform .3s var(--ease);
}
.es-card__badge {
  position: absolute;
  top: 9%;
  right: 7%;
  min-width: 78px;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .18);
  background: linear-gradient(180deg, rgba(78, 75, 70, .95), rgba(40, 36, 31, .95));
  color: #c9c0b2;
  font-size: clamp(.62rem, 1.1vw, .78rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: .8px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, .32);
  z-index: 2;
}
.es-card__list {
  margin-top: -6px;
  padding: 14px 12px 16px;
  background: linear-gradient(180deg, #241811, #17100a);
  border: 1px solid rgba(224, 166, 63, .35);
  border-top: none;
  border-radius: 0 0 10px 10px;
  list-style: none;
  flex: 1;
  filter: grayscale(.4);
  opacity: .72;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease), filter .3s var(--ease), opacity .3s var(--ease), background .3s var(--ease);
}
.es-card__list li {
  font-size: clamp(.68rem, 1.15vw, .82rem);
  line-height: 1.5;
  color: #e9d6ac;
  padding-left: 12px;
  position: relative;
}
.es-card__list li::before {
  content: "◆";
  position: absolute; left: 0;
  color: var(--gold-3);
  font-size: .6em;
  top: .45em;
}
.es-card.is-unlocked .es-card__frame {
  filter: drop-shadow(0 0 13px rgba(247, 214, 126, .72));
}
.es-card.is-current .es-card__frame {
  filter: grayscale(.22) saturate(.9) brightness(.92) drop-shadow(0 0 9px rgba(247, 214, 126, .42));
  animation: es-card-current-float 2.3s ease-in-out infinite;
}
.es-card.is-unlocked .es-card__frame::after,
.es-card.is-current .es-card__frame::after {
  content: "";
  position: absolute;
  top: -18%;
  left: -42%;
  width: 32%;
  height: 136%;
  pointer-events: none;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 246, 198, .08) 28%, rgba(255, 246, 198, .34) 50%, rgba(255, 246, 198, .08) 72%, transparent 100%);
  opacity: 0;
  transform: translateX(-120%) skewX(-18deg);
  animation: es-card-shine 4.4s ease-in-out infinite;
  z-index: 1;
}
.es-card.is-unlocked .es-card__list {
  border-color: rgba(247, 214, 126, .78);
  background:
    linear-gradient(180deg, rgba(54, 36, 17, .84), rgba(25, 18, 13, .93)),
    rgba(23, 15, 9, .8);
  box-shadow:
    0 0 0 1px rgba(255, 244, 190, .12),
    0 0 22px rgba(224, 166, 63, .36),
    0 12px 26px rgba(0, 0, 0, .42);
  filter: none;
  opacity: 1;
}
.es-card.is-current .es-card__list {
  border-color: rgba(247, 214, 126, .55);
  box-shadow:
    0 0 18px rgba(224, 166, 63, .22),
    0 10px 25px rgba(0, 0, 0, .38);
  filter: grayscale(.12);
  opacity: .9;
}
.es-card.is-unlocked .es-card__badge {
  border-color: rgba(255, 246, 198, .78);
  background: linear-gradient(180deg, #fff1a8, #dfa23d 47%, #a85f12);
  color: #5a2c08;
  text-shadow: 0 1px 0 rgba(255, 255, 255, .35);
  box-shadow:
    0 0 14px rgba(247, 214, 126, .74),
    0 4px 10px rgba(0, 0, 0, .32);
}
.es-card.is-current .es-card__badge {
  border-color: rgba(247, 214, 126, .68);
  background: linear-gradient(180deg, rgba(110, 78, 26, .96), rgba(54, 36, 17, .96));
  color: #ffe6a6;
}
.es-card.is-locked .es-card__list li::before {
  color: #8d8172;
}
.es-card.is-locked .es-card__badge {
  opacity: .78;
}
@keyframes es-card-shine {
  0%, 52% { transform: translateX(-120%) skewX(-18deg); opacity: 0; }
  62% { opacity: .8; }
  78%, 100% { transform: translateX(520%) skewX(-18deg); opacity: 0; }
}
@keyframes es-card-current-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}
.es-prereg__cta { text-align: center; }
.es-prereg__cta .btn-gold { font-size: clamp(1rem, 2vw, 1.2rem); padding: .7em 2.4em; }
.es-cbt__cta { text-align: center; margin-top: 2rem; }
.es-cbt__cta .btn-gold { font-size: clamp(1rem, 2vw, 1.2rem); padding: .7em 2.4em; }

/* ============================== CBT EVENT ============================== */
.es-cbt {
  margin-top: -2px;
  background: var(--cream) url("../img/entersite/cbt-bg.jpg") center top / cover no-repeat;
  color: #5a3d1c;
  box-shadow: inset 0 2px 0 rgba(87, 61, 31, .18);
}
.es-cbt .es-title { color: #7a5320; }
.es-cbt .es-title.gold-text { -webkit-text-fill-color: transparent; }
.es-cbt .es-subtitle { color: #8a6a3a; }
/* ---- CBT carousel (infinite loop, unlimited slides) ---- */
.es-carousel {
  --per-view: 3;              /* slides visible; overridden per breakpoint */
  position: relative;
  margin-top: clamp(28px, 4vw, 48px);
  padding: 0 clamp(40px, 5vw, 64px);   /* room for the nav arrows */
}
.es-carousel__viewport { overflow: hidden; padding: 26px 0; }
.es-carousel__track {
  display: flex;
  align-items: center;
  will-change: transform;
}
.es-carousel__slide {
  flex: 0 0 calc(100% / var(--per-view));
  max-width: calc(100% / var(--per-view));
  box-sizing: border-box;
  padding: 0 clamp(6px, 1vw, 12px);      /* horizontal gap between cards */
}
.es-cbt__card {
  display: block;
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  box-shadow: 0 10px 26px rgba(90, 61, 28, .28);
  /* coverflow: side cards shrink, dim & tuck under the raised centre card */
  transform: scale(.78);
  opacity: .55;
  z-index: 0;
  transition: transform .5s var(--ease), opacity .5s var(--ease);
}
/* immediate neighbours slide inward so they overlap beneath the centre */
.es-carousel__slide.is-left .es-cbt__card {
  transform: scale(.84) translateX(26%);
  opacity: .9;
  z-index: 1;
}
.es-carousel__slide.is-right .es-cbt__card {
  transform: scale(.84) translateX(-26%);
  opacity: .9;
  z-index: 1;
}
.es-carousel__slide.is-center .es-cbt__card {
  transform: scale(1.14);
  opacity: 1;
  z-index: 2;
  box-shadow: 0 16px 36px rgba(90, 61, 28, .45);
}
.es-cbt__card img { width: 100%; display: block; user-select: none; }

.es-carousel__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: clamp(38px, 4vw, 48px);
  height: clamp(38px, 4vw, 48px);
  border-radius: 50%;
  border: 2px solid var(--gold-line);
  background: linear-gradient(180deg, #fbe6a5, var(--gold-3) 70%, var(--gold-4));
  color: #5a3a12;
  font-size: clamp(1.6rem, 3vw, 2.15rem);
  line-height: 0;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  box-shadow: 0 4px 10px rgba(90, 61, 28, .35);
  transition: transform .15s var(--ease), filter .15s var(--ease);
}
.es-carousel__nav:hover { filter: brightness(1.07); transform: translateY(-50%) scale(1.06); }
.es-carousel__nav:active { transform: translateY(-50%) scale(.96); }
.es-carousel__nav--prev { left: 0; }
.es-carousel__nav--next { right: 0; }

.es-carousel__dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
}
.es-carousel__dots button {
  width: 9px; height: 9px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(122, 83, 32, .3);
  cursor: pointer;
  transition: background .2s, transform .2s;
}
.es-carousel__dots button.active { background: var(--gold-3); transform: scale(1.25); }

/* ============================== FOOTER ============================== */
.es-footer {
  background: linear-gradient(180deg, #2c1e11, #1a1109);
  border-top: 2px solid var(--gold-4);
  padding: 40px clamp(16px, 4vw, 60px);
  text-align: center;
}
.es-footer img { height: 74px; margin-bottom: 14px; }
.es-footer__copy { color: #cdb98f; font-size: .9rem; margin: 4px 0; }
.es-footer__desc { color: #9c8963; font-size: .82rem; max-width: 560px; margin: 8px auto 0; line-height: 1.6; }

/* ============================== TOP BUTTON ============================== */
.es-top {
  position: fixed;
  right: clamp(16px, 3vw, 34px);
  bottom: clamp(18px, 3vw, 34px);
  z-index: 90;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 2px solid var(--gold-line);
  background: linear-gradient(180deg, #fbe6a5, var(--gold-3) 70%, var(--gold-4));
  color: #5a3a12;
  font-family: "Kanit", sans-serif;
  font-weight: 600;
  font-size: 1.20rem;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1;
  gap: 1px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, .4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s;
}
.es-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.es-top:hover { filter: brightness(1.07); transform: translateY(-3px); }
.es-top .arrow { font-size: 1rem; line-height: .8; }

/* ============================== FACEBOOK POPUP ============================== */
.es-fbpop {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.es-fbpop[hidden] { display: none; }
.es-fbpop__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 12, 4, .72);
  backdrop-filter: blur(2px);
  animation: es-fade .3s ease;
}
.es-fbpop__box {
  position: relative;
  z-index: 1;
  width: min(360px, 92vw);
  background: linear-gradient(180deg, #3a2714, #241a10);
  border: 2px solid var(--gold-3);
  border-radius: 16px;
  padding: 16px 16px 18px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, .6);
  animation: es-pop .35s var(--ease);
}
.es-fbpop__head {
  color: #ffe9a8;
  font-family: "Kanit", sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  text-align: center;
  margin-bottom: 12px;
}
.es-fbpop__box iframe {
  display: block;
  width: 100%;
  border: none;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}
.es-fbpop__close {
  position: absolute;
  top: -14px;
  right: -14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--gold-line);
  background: linear-gradient(180deg, var(--gold-2), var(--gold-4));
  color: #4a2f10;
  font-size: 1.3rem;
  line-height: 0;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, .4);
}
.es-fbpop__close:hover { filter: brightness(1.08); transform: scale(1.06); }
@keyframes es-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes es-pop { from { opacity: 0; transform: translateY(16px) scale(.96); } to { opacity: 1; transform: none; } }

/* ============================== HOVER / GLOW EFFECTS ============================== */
/* gold buttons get a warm glow on hover */
.btn-gold:hover {
  box-shadow: 0 8px 20px rgba(0, 0, 0, .4), 0 0 20px rgba(247, 214, 126, .75), inset 0 1px 0 rgba(255, 255, 255, .7);
}

/* reward cards: lift + glowing gold frame */
.es-card { transition: transform .3s var(--ease); }
.es-card:hover { transform: translateY(-4px); }
.es-card.is-unlocked:hover,
.es-card.is-current:hover { transform: translateY(-8px); }
.es-card.is-unlocked:hover .es-card__frame {
  filter: drop-shadow(0 0 16px rgba(247, 214, 126, .92));
}
.es-card.is-current:hover .es-card__frame {
  filter: grayscale(.12) saturate(1) brightness(.98) drop-shadow(0 0 13px rgba(247, 214, 126, .62));
}
.es-card.is-locked:hover .es-card__frame {
  filter: grayscale(.55) saturate(.78) brightness(.9);
}
.es-card.is-unlocked:hover .es-card__list,
.es-card.is-current:hover .es-card__list {
  border-color: var(--gold-2);
  box-shadow: 0 0 20px rgba(224, 166, 63, .4);
}

/* navbar links glow */
.es-nav__menu a:hover { text-shadow: 0 0 10px rgba(247, 214, 126, .9); }

/* live-ID badge: gentle attention pulse + hover glow */
.es-badge { animation: es-badge-glow 2.8s ease-in-out infinite; }
.es-badge img { transition: filter .3s var(--ease); }
.es-badge:hover img { filter: drop-shadow(0 0 14px rgba(247, 214, 126, .95)); }
@keyframes es-badge-glow {
  0%, 100% { filter: drop-shadow(0 0 3px rgba(247, 214, 126, .3)); }
  50%      { filter: drop-shadow(0 0 15px rgba(247, 214, 126, .75)); }
}

/* progress dots glow when hovering a step */
.es-progress__step:hover .es-progress__dot {
  transform: scale(1.14);
}
.es-progress__step.is-unlocked:hover .es-progress__dot,
.es-progress__step.is-current:hover .es-progress__dot {
  box-shadow:
    inset 0 2px 4px rgba(255, 255, 255, .62),
    inset 0 -5px 8px rgba(115, 57, 8, .35),
    0 0 0 4px rgba(93, 54, 16, .38),
    0 0 22px rgba(247, 214, 126, .95),
    0 4px 12px rgba(0, 0, 0, .48);
}

/* carousel arrows, TOP button & centre card glow */
.es-carousel__nav:hover { box-shadow: 0 4px 10px rgba(90, 61, 28, .35), 0 0 18px rgba(247, 214, 126, .8); }
.es-top:hover { box-shadow: 0 6px 16px rgba(0, 0, 0, .4), 0 0 20px rgba(247, 214, 126, .8); }
.es-carousel__slide.is-center .es-cbt__card:hover {
  box-shadow: 0 16px 36px rgba(90, 61, 28, .45), 0 0 28px rgba(247, 214, 126, .6);
}
.es-fbpop__close:hover { box-shadow: 0 4px 10px rgba(0, 0, 0, .4), 0 0 14px rgba(247, 214, 126, .8); }

/* ============================== RESPONSIVE ============================== */
@media (max-width: 991px) {
  .es-nav__logo, .es-nav__menu, .es-nav__actions { display: none; }
  .es-nav__mobile-actions {
    order: 2;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
  }
  .es-nav__mobile-actions .btn-gold {
    min-width: 0;
    font-size: .78rem;
    line-height: 1;
    padding: .55em .9em;
    white-space: nowrap;
    box-shadow:
      inset 0 1px rgba(255, 255, 255, .8),
      0 2px 8px rgba(0, 0, 0, .25);
  }
  .es-burger {
    order: 1;
    display: flex;
    margin-left: 0;
  }

  .es-nav__drawer {
    position: fixed;
    z-index: 99;
    top: 70px; left: 0; right: 0;
    background: linear-gradient(180deg, var(--brown-bar), var(--brown-bar-2));
    border-bottom: 2px solid var(--gold-3);
    padding: 16px 20px 22px;
    display: none;
    flex-direction: column;
    gap: 14px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, .5);
  }
  .es-nav__drawer.open { display: flex; }
  .es-nav__drawer a.link {
    color: #f4e6c9; font-weight: 600; font-size: 1.05rem; padding: 8px 4px;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
  }
  .es-nav__drawer .btn-gold { width: 100%; }

  /* hero keeps the PC overlay composition at all sizes (scales proportionally) */
}

/* carousel: fewer cards visible as the screen narrows */
@media (max-width: 991px) { .es-carousel { --per-view: 2; } }
@media (max-width: 620px)  {
  .es-carousel { --per-view: 1; padding: 0 44px; }
  /* only one card visible — don't over-scale the centre or it clips */
  .es-carousel__slide.is-center .es-cbt__card { transform: scale(1); }
}

@media (max-width: 720px) {
  .es-rewards { grid-template-columns: repeat(2, 1fr); }
  .es-progress { max-width: 460px; }
  .es-progress__dot { width: 30px; height: 30px; }
  .es-progress::before { top: 14px; height: 10px; }
  .es-progress::after { top: 15px; height: 8px; }
}

@media (max-width: 480px) {
  .es-nav { gap: 10px; }
  .es-nav__mobile-actions { gap: 6px; }
  .es-nav__mobile-actions .btn-gold {
    font-size: .68rem;
    padding: .5em .68em;
  }
  .es-hero__cta { letter-spacing: 1px; }
  .es-progress__label { font-size: .72rem; }
  .es-progress__dot { width: 26px; height: 26px; }
  .es-progress::before { top: 12px; height: 8px; }
  .es-progress::after { top: 13px; height: 6px; }
  .es-card__list li { font-size: .7rem; }
}

@media (max-width: 380px) {
  .es-nav { gap: 7px; padding-inline: 10px; }
  .es-nav__mobile-actions { gap: 4px; }
  .es-nav__mobile-actions .btn-gold {
    font-size: .6rem;
    padding: .48em .5em;
    border-width: 1px;
  }
  .es-burger { width: 40px; height: 40px; }
}

/* desktop: drawer never shown */
@media (min-width: 992px) {
  .es-nav__drawer { display: none !important; }
  .es-nav__mobile-actions { display: none !important; }
}
