/* Eleneth interactive map — light CSS, no libraries */
.emap-wrap, .emap-wrap * { box-sizing: border-box; }
.emap-wrap {
  --gold: #e8c56a;
  --gold2: #f6e3a1;
  --night: #0b1020;
  --ink: #f2efe6;
  --ruby: #c23b4a;
  --sapphire: #3a6bb0;
  --glass: rgba(18, 16, 40, 0.92);
  position: relative;
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
}
.emap-stage {
  position: relative;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  background: var(--night);
  box-shadow: 0 18px 40px rgba(8, 10, 24, 0.45), 0 0 0 2px rgba(232, 197, 106, 0.35);
  transform: translateY(0) scale(1);
  transition: transform 0.8s ease, box-shadow 0.8s ease;
  isolation: isolate;
}
.emap-stage.is-inview {
  transform: translateY(-8px) scale(1.012);
  box-shadow: 0 28px 54px rgba(8, 10, 24, 0.55), 0 0 0 2px rgba(246, 227, 161, 0.55), 0 0 36px rgba(80, 120, 220, 0.25);
}
.emap-art {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  margin: 0 !important;
  object-fit: contain !important;
  vertical-align: middle;
}
.emap-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  overflow: hidden;
}
.emap-dot {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: radial-gradient(circle, #fff 0%, #c9b6ff 40%, #6ec8ff 70%, transparent 75%);
  opacity: 0.0;
  animation: emap-drift 9s ease-in-out infinite;
  filter: drop-shadow(0 0 4px #b8a0ff);
}
@keyframes emap-drift {
  0% { transform: translate(0, 18px) scale(0.6); opacity: 0; }
  18% { opacity: 0.9; }
  50% { transform: translate(12px, -40px) scale(1); opacity: 0.75; }
  82% { opacity: 0.85; }
  100% { transform: translate(-8px, -90px) scale(0.4); opacity: 0; }
}
/* Gate doors over the stone arch (Kanok's gate, lower right).
   Open by folding to the doorposts (2D scaleX) so the path stays clear. */
.emap-gate {
  position: absolute;
  left: 68.3%;
  top: 59.4%;
  width: 13.8%;
  height: 19.2%;
  z-index: 3;
  pointer-events: none;
}
.emap-door {
  position: absolute;
  top: 0;
  width: 50%;
  height: 100%;
  background:
    linear-gradient(90deg, rgba(246,227,161,0.45), transparent 16%, transparent 84%, rgba(246,227,161,0.45)),
    linear-gradient(180deg, #6a4a2a 0%, #3e2818 45%, #2a1a10 100%);
  border: 1px solid rgba(232, 197, 106, 0.7);
  box-shadow: inset 0 0 8px rgba(0,0,0,0.45);
  transition: transform 1.1s cubic-bezier(0.22, 0.8, 0.28, 1), opacity 1.1s ease;
}
.emap-door-l { left: 0; transform-origin: left center; border-radius: 2px 0 0 2px; }
.emap-door-r { right: 0; left: auto; transform-origin: right center; border-radius: 0 2px 2px 0; }
.emap-stage.is-inview .emap-door-l,
.emap-stage.is-open .emap-door-l { transform: scaleX(0.07); opacity: 0.35; }
.emap-stage.is-inview .emap-door-r,
.emap-stage.is-open .emap-door-r { transform: scaleX(0.07); opacity: 0.35; }
/* Kanok speech bubble — just to his left, above his raised hand */
.emap-bubble {
  position: absolute;
  left: 53%;
  top: 67.5%;
  z-index: 5;
  max-width: 18%;
  padding: 8px 12px 10px;
  background: linear-gradient(180deg, #f7f1de 0%, #efe3c0 100%);
  color: #2a1c10;
  font: 600 13px/1.35 Georgia, "Times New Roman", serif;
  border: 2px solid #c9a24a;
  border-radius: 12px 12px 12px 3px;
  box-shadow: 0 8px 18px rgba(0,0,0,0.35), 0 0 0 1px rgba(80,40,10,0.2);
  opacity: 0;
  transform: translateY(8px) scale(0.92);
  transition: opacity 0.5s ease, transform 0.5s ease;
  pointer-events: none;
  text-align: center;
}
.emap-bubble::after {
  content: "";
  position: absolute;
  right: 10%;
  bottom: -10px;
  border: 8px solid transparent;
  border-top-color: #c9a24a;
  border-bottom: 0;
  filter: drop-shadow(0 1px 0 #efe3c0);
}
.emap-stage.is-inview .emap-bubble,
.emap-stage.is-open .emap-bubble {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.emap-hotspots { position: absolute; inset: 0; z-index: 4; }
.emap-spot {
  position: absolute;
  display: block;
  padding: 0;
  margin: 0;
  border: 2px solid transparent;
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
  color: inherit;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}
.emap-spot:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
  border-color: rgba(246, 227, 161, 0.9);
}
.emap-spot::before {
  content: "";
  position: absolute;
  inset: 4%;
  border-radius: 8px;
  box-shadow: 0 0 0 0 rgba(180, 80, 200, 0);
  transition: box-shadow 0.4s ease, background 0.4s ease;
  pointer-events: none;
}
.emap-spot:hover::before,
.emap-spot:focus-visible::before,
.emap-spot.is-on::before {
  background: radial-gradient(circle, rgba(246,227,161,0.12), rgba(80,60,180,0.08) 55%, transparent 70%);
  box-shadow:
    0 0 18px 4px rgba(200, 70, 140, 0.28),
    0 0 28px 8px rgba(60, 90, 220, 0.22),
    inset 0 0 0 2px rgba(246, 227, 161, 0.65);
  animation: emap-glow 1.8s ease-in-out infinite;
}
@keyframes emap-glow {
  0%, 100% { filter: saturate(1) brightness(1); }
  50% { filter: saturate(1.25) brightness(1.15); }
}
.emap-tip {
  position: absolute;
  z-index: 6;
  min-width: 180px;
  max-width: 240px;
  padding: 12px 14px 14px;
  background:
    linear-gradient(180deg, rgba(40,18,50,0.2), transparent 30%),
    linear-gradient(135deg, #1a1230 0%, #24183a 50%, #15102a 100%);
  color: var(--ink);
  border: 2px solid var(--gold);
  border-image: linear-gradient(135deg, #f6e3a1, #c23b4a, #3a6bb0, #f6e3a1) 1;
  box-shadow: 0 12px 28px rgba(0,0,0,0.45), inset 0 0 20px rgba(180, 80, 200, 0.12);
  font: 14px/1.45 Georgia, "Times New Roman", serif;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  text-align: left;
}
.emap-tip.is-on {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -14px);
}
.emap-tip strong {
  display: block;
  font-family: "Cinzel", Georgia, serif;
  font-size: 15px;
  letter-spacing: 0.08em;
  color: var(--gold2);
  margin-bottom: 4px;
  font-weight: 600;
}
.emap-tip a {
  display: inline-block;
  margin-top: 8px;
  color: var(--gold2);
  font-weight: 700;
  font-size: 13px;
}
.emap-tip a:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* Homepage section chrome */
#eleneth-explore {
  box-sizing: border-box;
  max-width: 1080px;
  margin: 28px auto 42px;
  padding: 28px 22px 26px;
  background: linear-gradient(180deg, #12182c 0%, #0b1020 100%);
  color: #f2efe6;
  border: 2px solid #c9a24a;
  border-radius: 10px;
  font-family: Georgia, "Times New Roman", serif;
  box-shadow: 0 12px 32px rgba(45, 62, 80, 0.18);
}
#eleneth-explore * { box-sizing: border-box; }
#eleneth-explore .ee-kicker {
  margin: 0 0 10px;
  font: 12px/1.7 Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #ead5a3;
}
#eleneth-explore h2 {
  color: #f8f1df;
  margin: 0 0 12px;
  font-family: Georgia, serif;
  font-weight: normal;
  font-size: clamp(26px, 4vw, 36px);
  line-height: 1.2;
}
#eleneth-explore .ee-lead {
  max-width: 760px;
  color: #e4e9ef;
  font-size: 16px;
  line-height: 1.75;
  margin: 0 0 20px;
}
#eleneth-explore .ee-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
  margin-top: 18px;
  justify-content: center;
}
#eleneth-explore .ee-btn,
.ee-btn {
  display: inline-block;
  padding: 10px 16px;
  background: #ead5a3;
  color: #2d1a08 !important;
  text-decoration: none;
  font: 700 14px/1.3 Arial, sans-serif;
  border-radius: 999px;
  border: 1px solid #c9a24a;
}
#eleneth-explore .ee-btn:hover,
.ee-btn:hover { background: #f6e3a1; }
#eleneth-explore .ee-btn:focus-visible,
.ee-btn:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
#eleneth-explore .ee-note {
  margin: 14px 0 0;
  font: 12px/1.6 Arial, sans-serif;
  color: #c5d0de;
  text-align: center;
}

/* Defeat homepage global image caps */
body #eleneth-explore img,
body #eleneth-explore .emap-art,
#eleneth-explore img,
#eleneth-explore .emap-art {
  max-width: 100% !important;
  width: 100% !important;
  height: auto !important;
  margin: 0 !important;
  display: block !important;
  object-fit: contain !important;
}

@media (max-width: 620px) {
  #eleneth-explore { padding: 20px 14px; }
  .emap-bubble { font-size: 11px; padding: 6px 8px; max-width: 28%; left: 44%; }
  .emap-tip { min-width: 150px; max-width: 200px; font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  .emap-stage, .emap-door, .emap-bubble, .emap-tip, .emap-spot::before, .emap-dot {
    animation: none !important;
    transition: none !important;
  }
  .emap-stage.is-inview { transform: none; }
  .emap-door-l, .emap-stage.is-inview .emap-door-l, .emap-stage.is-open .emap-door-l { transform: scaleX(0.07); opacity: 0.35; }
  .emap-door-r, .emap-stage.is-inview .emap-door-r, .emap-stage.is-open .emap-door-r { transform: scaleX(0.07); opacity: 0.35; }
  .emap-bubble, .emap-stage.is-inview .emap-bubble { opacity: 1; transform: none; }
  .emap-dot { display: none; }
}
