#page-adventure .map-panel{position:relative}
.hub-view{position:absolute;inset:0;z-index:30;display:flex;overflow:hidden;background:#0f1410;border-radius:inherit}
/* map */
.hub-mapbox{position:relative;flex:1 1 auto;min-width:0;min-height:0;display:flex}
.hub-port{position:relative;flex:1 1 auto;min-width:0;min-height:0;overflow:hidden;overflow:clip;container-type:size;background:#121b17}
.hub-port::-webkit-scrollbar{display:none}
/* Contain the complete native silhouette, like Ford. The stage coordinates remain shared by the image, hotspots and ember. */
.hub-stage{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:min(calc(100cqw - 20px),calc((100cqh - 20px) * (1672 / 941)));aspect-ratio:1672 / 941;user-select:none;-webkit-user-select:none}
.hub-map{position:absolute;inset:0;width:100%;height:100%;display:block;pointer-events:none}
/* Ambient firelight anchored to the painted coals, never to navigation. */
.hub-ember-glow {
  position:absolute;left:50.6%;top:59.2%;width:11%;height:14%;z-index:1;
  transform:translate(-50%,-50%);pointer-events:none;mix-blend-mode:screen;z-index:2;
}
.hub-ember-glow::before,.hub-ember-glow::after {
  content:"";position:absolute;pointer-events:none;
}
.hub-ember-glow::before {
  inset:15% 0 0;
  background:radial-gradient(ellipse 46% 37% at 50% 56%,#ff9d426b 0%,#f17f244a 36%,#e2631b19 64%,transparent 100%);
  animation:hub-ember-warmth 2.9s ease-in-out infinite;
}
.hub-ember-glow::after {
  inset:4% 24% 30%;
  background:radial-gradient(ellipse 42% 52% at 50% 62%,#ffe4a9d6 0%,#ffc46b9e 28%,#fc892749 56%,transparent 100%);
  transform-origin:50% 70%;
  animation:hub-ember-flicker 1.85s ease-in-out infinite;
}
@keyframes hub-ember-warmth {
  0%,100% {opacity:.28;transform:scale(.93);}
  36% {opacity:.85;transform:scale(1.085);}
  64% {opacity:.46;transform:scale(1);}
  79% {opacity:.74;transform:scale(1.02);}
}
@keyframes hub-ember-flicker {
  0%,100% {opacity:.22;transform:rotate(-4deg) scale(.88,.79);}
  22% {opacity:.93;transform:rotate(4deg) scale(1.03,1.18);}
  45% {opacity:.42;transform:rotate(-3deg) scale(.94,.88);}
  61% {opacity:.95;transform:rotate(2deg) scale(.92,1.16);}
  80% {opacity:.46;transform:rotate(-3deg) scale(1.04,.94);}
}
.hub-ember-glow i {
  position:absolute;inset:auto auto 53% 49%;width:clamp(2px,.35cqw,4px);
  aspect-ratio:1;border-radius:50%;pointer-events:none;
  background:#ffd78d;box-shadow:0 0 4px #ff922f;opacity:0;
  animation:hub-ember-rise 2.2s ease-out infinite;
}
.hub-ember-glow i:nth-child(2){left:53%;animation-duration:1.9s;animation-delay:-.8s;--ember-drift:8px;}
.hub-ember-glow i:nth-child(3){left:46%;animation-duration:2.7s;animation-delay:-1.65s;--ember-drift:-7px;}
@keyframes hub-ember-rise{
  0%{transform:translate(0,0) scale(.65);opacity:0;}
  14%{opacity:.93;}
  67%,100%{transform:translate(var(--ember-drift,2px),-23px) scale(.36);opacity:0;}
}
@media (prefers-reduced-motion: reduce) {
  .hub-ember-glow::before,.hub-ember-glow::after {animation:none;opacity:.50;}
  .hub-ember-glow i {display:none;}
}
.hub-view .hub-stage button.hub-hot {
  all: unset;
  box-sizing: border-box;
  position: absolute;
  z-index: 2;
  cursor: pointer;
  background: transparent !important;
  border: 0 !important;
  border-image: none !important;
  box-shadow: none !important;
  transform: none !important;
  filter: none !important;
}
.hub-zoom{display:none}
@media (max-width:700px){
 .hub-view{flex-direction:column}
 .hub-mapbox{flex:1 1 auto;min-height:0;order:1}
 .hub-port.is-zoomed{overflow:auto;scrollbar-width:none}
 .hub-port.is-zoomed .hub-stage{position:relative;left:auto;top:auto;transform:none;width:max(150cqw,calc(100cqh * 1.7768));height:auto;aspect-ratio:1672/941}
 .hub-zoom{display:grid;place-items:center;position:absolute;right:8px;bottom:8px;z-index:4;width:38px;height:38px;border-radius:50%;background:#23322d;color:#f1e4c8;border:1px solid #bba56c;font-size:21px}
}

/* framed fit (desktop): JS sizes/positions the stage so every hotspot stays visible */
.hub-stage.is-fit{transform:none!important;max-width:none}

.hub-place-label {
  position:absolute;left:50%;top:12px;z-index:3;transform:translateX(-50%);
  max-width:calc(100% - 24px);box-sizing:border-box;padding:.35em .75em;
  color:#fff4da;background:#1c241de8;border:1px solid #e6e4ce40;border-radius:4px;
  font-size:13px;line-height:1.25;text-align:center;pointer-events:none;
}
.hub-place-label[hidden] {display:none;}

.hub-map {
  mask: url("/game/frame/atlas/camp-edge-ford-style.svg") center / 100% 100% no-repeat;
}
.hub-view,.hub-port {background:transparent;}

/* Miniature seated guests share the map's stage and the close-up's hours.
   Decorative sprites cannot intercept the Camp's route hotspots. */
.hub-guests {position:absolute;inset:0;pointer-events:none;z-index:1;}
.hub-guest {
  position:absolute;pointer-events:none;background: center / contain no-repeat;
}
.hub-guest[data-npc-id="caravaner"]{
  left:43.660%;top:49.522%;width:3.050%;aspect-ratio:494/750;
}
.hub-guest[data-npc-id="fortune-teller"]{
  left:54.545%;top:49.097%;width:3.110%;aspect-ratio:497/750;
}
.hub-guest[data-npc-id="herbalist"]{
  left:53.349%;top:60.043%;width:4.007%;aspect-ratio:551/750;
}

/* #fire only. Native art stays a single feathered painting; build the ember
   flicker and ascending sparks over its painted flames. Evening NPCs are scenic only. */
#page-fire .campfire-panorama .campfire-npc {
  position:absolute;inset:auto;left:var(--campfire-npc-x);top:var(--campfire-npc-y);
  width:var(--campfire-npc-width);height:auto;max-width:none;max-height:none;mask:none;
  pointer-events:none;user-select:none;z-index:1;
}
#page-fire .campfire-npc[data-npc-id="caravaner"]{--campfire-npc-x:28.529%;--campfire-npc-y:29.968%;--campfire-npc-width:9.330%;}
#page-fire .campfire-npc[data-npc-id="fortune-teller"]{--campfire-npc-x:62.081%;--campfire-npc-y:30.074%;--campfire-npc-width:9.510%;}
#page-fire .campfire-npc[data-npc-id="herbalist"]{--campfire-npc-x:55.981%;--campfire-npc-y:54.942%;--campfire-npc-width:12.799%;}
/* Soft contact shadows ground each guest while keeping the scenery and seats independent. */
#page-fire .campfire-panorama [data-fire-phase="evening"]:has(.campfire-npc[data-npc-id="herbalist"])::before {
  content:"";position:absolute;inset:0;pointer-events:none;z-index:1;
  background:radial-gradient(ellipse 2.8% .85% at 35.8% 54.6%,#38201185,transparent 95%),
    radial-gradient(ellipse 2.8% .9% at 64.6% 55.3%,#38201180,transparent 95%),
    radial-gradient(ellipse 2.5% .85% at 57.3% 85.8%,#38201187,transparent 95%),
    radial-gradient(ellipse 2.4% .75% at 66.0% 71.2%,#2d1a10a0,transparent 95%);
}
#page-fire .campfire-motion {
  position:absolute;inset:0;pointer-events:none;mix-blend-mode:screen;z-index:2;
}
/* Feathered highlights follow the existing painted flame and coal bed.
   Each patch changes luminance without introducing another flame silhouette. */
#page-fire .campfire-light {
  position:absolute;left:var(--x);top:var(--y);width:var(--w);height:var(--h);
  translate:-50% -50%;opacity:.42;
  background:radial-gradient(ellipse,var(--core),var(--halo) 36%,transparent 72%);
  animation:campfire-luminance var(--t) ease-in-out var(--delay) infinite;
}
#page-fire .campfire-light[data-zone="flame-left"] {
  --x:46.5%;--y:51.60%;--w:5.5%;--h:11%;--t:1.7s;--delay:-.4s;
  --core:#ffd589b0;--halo:#ff8a2c48;
}
#page-fire .campfire-light[data-zone="flame-heart"] {
  --x:50.5%;--y:52.05%;--w:5.4%;--h:13%;--t:1.24s;--delay:-.9s;
  --core:#fff3b4cb;--halo:#ffa6374a;
}
#page-fire .campfire-light[data-zone="flame-right"] {
  --x:53.7%;--y:52.60%;--w:4.7%;--h:10%;--t:1.94s;--delay:-1.4s;
  --core:#ffcc79ba;--halo:#ff932a44;
}
#page-fire .campfire-light[data-zone="coals-left"] {
  --x:44.6%;--y:58.90%;--w:7.6%;--h:5.5%;--t:2.58s;--delay:-.8s;
  --core:#ff6015aa;--halo:#a53c0e65;
}
#page-fire .campfire-light[data-zone="coals-right"] {
  --x:53.5%;--y:60.40%;--w:10%;--h:5.4%;--t:2.2s;--delay:-1.9s;
  --core:#ff7026ae;--halo:#9b300b5c;
}
#page-fire .campfire-light[data-zone="warmth"] {
  --x:50%;--y:57.00%;--w:31%;--h:27%;--t:3.7s;--delay:-2s;
  --core:#f879202e;--halo:#c7471020;
}
#page-fire .campfire-spark {
  position:absolute;width:.36%;min-width:1px;max-width:4px;aspect-ratio:1;
  border-radius:50%;background:#ffe09e;box-shadow:0 0 4px #ff873e;opacity:0;
  animation:campfire-spark var(--t) ease-out var(--delay) infinite;
}
#page-fire .campfire-spark:nth-of-type(1){--x:44.3%;--y:58.00%;--x1:46.5%;--x2:46%;--y2:43.00%;--t:2.7s;--delay:-2.1s;}
#page-fire .campfire-spark:nth-of-type(2){--x:46.8%;--y:57.60%;--x1:48.2%;--x2:47.3%;--y2:47.00%;--t:3.1s;--delay:-.5s;}
#page-fire .campfire-spark:nth-of-type(3){--x:48.9%;--y:59.00%;--x1:49.6%;--x2:50.1%;--y2:38.00%;--t:3.75s;--delay:-1.4s;}
#page-fire .campfire-spark:nth-of-type(4){--x:51.1%;--y:58.00%;--x1:53.3%;--x2:54.6%;--y2:43.00%;--t:2.95s;--delay:-.8s;}
#page-fire .campfire-spark:nth-of-type(5){--x:54.2%;--y:60.00%;--x1:55.4%;--x2:57.3%;--y2:45.00%;--t:3.4s;--delay:-2.6s;}
#page-fire .campfire-spark:nth-of-type(6){--x:56%;--y:59.70%;--x1:56.9%;--x2:55.7%;--y2:49.00%;--t:2.38s;--delay:-.15s;}
@keyframes campfire-luminance {
  0%,100%{opacity:.27;transform:scale(.94,.92);}
  27%{opacity:.92;transform:scale(1.05,1.09);}
  53%{opacity:.42;transform:scale(.98,.95);}
  78%{opacity:.77;transform:scale(1.03,1.04);}
}
@keyframes campfire-spark {
  0%,5%{left:var(--x);top:var(--y);opacity:0;transform:scale(.58);}
  16%{opacity:.96;}
  39%{left:var(--x1);top:calc((var(--y) + var(--y2)) / 2);opacity:.63;}
  72%,100%{left:var(--x2);top:var(--y2);opacity:0;transform:scale(.23);}
}
@media(prefers-reduced-motion:reduce){
  #page-fire .campfire-light{animation:none;opacity:.3;}
  #page-fire .campfire-spark{display:none;}
}
