.adv-scene {
  --edge: #4d2e21;
  --cream: #fff1c2;
  --game-top: clamp(60px, 9dvh, 95px);
  position: absolute;
  inset: 0;
  overflow: hidden;
  isolation: isolate;
  background: #7db252;
  color: #412b1d;
}
.adv-caption {
  pointer-events: none;
  position: absolute;
  z-index: 3;
  top: max(9px, env(safe-area-inset-top));
  left: 50%;
  translate: -50%;
  width: min(70%, 650px);
  display: grid;
  justify-items: center;
  text-align: center;
}
.adv-caption h1 {
  max-width: 100%;
  margin: 0;
  padding: .09em .62em .1em;
  color: var(--cream);
  font: 800 clamp(1.1rem,3.2vw,3.1rem)/1 var(--display);
  background: linear-gradient(#a56430,#80411e);
  border: 2px solid #58321d;
  border-radius: .35em;
  box-shadow: inset 0 0 0 2px #e7ad63, 0 3px 0 #562d19, 0 5px 12px #2b381260;
  text-shadow: 0 2px #592b16;
}
.adv-caption span {
  max-width: 97%;
  margin-top: 6px;
  padding: 2px 12px;
  border-radius: 16px;
  background: #fff0b8f6;
  font: 800 clamp(.73rem,1.1vw,1.05rem)/1.28 var(--body);
  box-shadow: 0 2px 4px #46352b49;
}
.adv-hud {
  position: absolute;
  z-index: 3;
  bottom: max(10px, env(safe-area-inset-bottom));
  left: 50%;
  translate: -50%;
  display: flex;
  justify-content: center;
  gap: 7px;
  width: max-content;
  max-width: 96vw;
}
.adv-button, .adv-resume {
  min-height: 37px;
  padding: .28em .9em;
  cursor: pointer;
  font: 800 clamp(.9rem,1.35vw,1.18rem)/1.14 var(--display);
}
.adv-button:where(:hover,:focus-visible), .adv-resume:where(:hover,:focus-visible) {filter:brightness(1.16);}
.adv-button:focus-visible, .adv-node:focus-visible, .adv-dpad button:focus-visible,
.adv-assessment button:focus-visible {outline: 3px solid #fff44d;outline-offset: 3px;}
.adv-resume {position:absolute;bottom: 5%; left:50%;translate:-50%;pointer-events:auto;white-space:nowrap;}
.adv-hud .adv-button {padding-inline:.95em;}
.adv-world {position:absolute;inset:0 0 clamp(51px, 9dvh, 84px);overflow:hidden;isolation:isolate;}
.adv-terrain {
  position:absolute;inset:0;
  background:
    radial-gradient(ellipse 42% 40% at 50% 51%, #efd59a 0 72%, #bca768 91%, transparent 100%),
    linear-gradient(0deg,#588d3c,#a8ca69 69%,#6e9e4a);
}
.adv-terrain::after {
  content:"";position:absolute;inset:0;pointer-events:none;
  background:
    repeating-linear-gradient(132deg,#eff19b19 0 2px,transparent 2px 59px),
    repeating-linear-gradient(46deg,#497d3520 0 2px,transparent 2px 67px);
  opacity:.6;
}
.adv-dataran .adv-terrain, .adv-peti {
  background:radial-gradient(ellipse at 50% 54%,#e6d4af 0 51%,#a5b573 67%,#547f4b 100%);
}
.adv-green {
  position:absolute;width:min(33vw,45dvh);pointer-events:none;opacity:.88;
  filter:drop-shadow(0 5px 2px #214b303b);
}
.adv-green.nw {top:2%;left:-5%;transform:scaleX(-1);}
.adv-green.ne {top:3%;right:-4%;}
.adv-green.sw {bottom:-13%;left:-9%;}
.adv-green.se {bottom:-12%;right:-8%;transform:scaleX(-1);}
.scene-back {
  position:absolute;z-index:1;left:50%;top:13%;translate:-50%;
  width:min(46vw,63dvh);height:36%;object-fit:contain;object-position:bottom;
  filter:drop-shadow(0 9px 1px #4a552c45);pointer-events:none;
}
.adv-node {
  position:absolute;z-index:2;left:var(--px);top:var(--py);translate:-50% -85%;
  width:min(var(--pw),25dvh); min-width:44px; min-height:35px;
  padding:0; border:0; background:transparent;color:#fff1c4;cursor:pointer;
  display:flex;flex-direction:column;align-items:center;justify-content:end;
}
.adv-node .node-art {
  width:100%;height:clamp(30px,calc(var(--pw)*1.6),17dvh);max-height:17dvh;
  object-fit:contain;object-position:bottom;filter:drop-shadow(0 3px 2px #31492e75);
  transform-origin:bottom;transition:filter .18s,scale .18s;
}
.adv-node[data-id] .node-art {height:auto;max-height:15dvh;}
.adv-node[data-id] {max-height:19dvh;}
.adv-node span {
  display:block;max-width:min(170%,20vw);width:max-content;padding:2px 8px;
  background:linear-gradient(#a36a34,#83471f);border:2px solid #583319;border-radius:8px;
  box-shadow:0 2px #573016,inset 0 0 0 1px #eab674;text-shadow:0 1px #4a2818;
  font:800 clamp(.69rem,1.26vw,1.13rem)/1.12 var(--display);
}
.adv-node.blocked span {background:linear-gradient(#7e7560,#635742);}
.adv-node.found span {background:linear-gradient(#577944,#3c6332);}
.adv-node.nearby .node-art,.adv-node:hover .node-art {filter:drop-shadow(0 0 6px #fff28a);scale:1.045;}
.adv-node:hover span,.adv-node.nearby span {box-shadow:0 0 10px #fff090,0 2px #573016,inset 0 0 0 1px #fbd984;}
.adv-node.npc .node-art {animation:idle-ejen 2.7s ease-in-out infinite;}
@keyframes idle-ejen {50% {scale:1 1.045;}}
.adv-player {
  position:absolute; z-index:4; left:var(--x,50%);top:var(--y,87%);
  width:clamp(39px,6.5vw,86px);translate:-50% -88%;pointer-events:none;text-align:center;
}
.player-art {
  position:relative;
  width:100%;
  aspect-ratio:169/305;
  max-height:15dvh;
  filter:drop-shadow(0 4px 2px #334a365e);
}
.player-art img,.player-art canvas {
  position:absolute;
  inset:0;
  display:block;
  width:100%;
  height:100%;
  object-fit:contain;
  object-position:bottom;
}
.player-art canvas {visibility:hidden;}
.adv-player[data-rig="ready"] canvas {visibility:visible;}
.adv-player[data-rig="ready"] img {visibility:hidden;}
.adv-player b {
  display:inline-block;max-width:130px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
  background:#fff4ca;border-radius:7px;padding:0 5px;font:800 .82rem/1.13 var(--display);
}
.adv-interact {position:absolute;bottom:2%;left:50%;translate:-50%;z-index:5;width:max-content;max-width:48%;text-align:center;}
.adv-interact .adv-button {min-height:28px;background:#fff1b8;color:#482d1c;text-shadow:none;}
.adv-dpad {
  position:absolute;z-index:5;bottom:1%;right:max(10px,env(safe-area-inset-right));
  display:grid;grid-template-columns:repeat(3,36px);grid-template-rows:repeat(2,31px);gap:3px;
}
.adv-dpad button {font-weight:900;font-size:1.1rem;touch-action:none;padding:0;cursor:pointer;}
.adv-dpad button:first-child {grid-column:2;}
.adv-dpad button:nth-child(2) {grid-column:1;grid-row:2;}
.adv-dpad button:nth-child(3) {grid-column:2;grid-row:2;}
.adv-dpad button:last-child {grid-column:3;grid-row:2;}
.fly-reward {
  position:absolute;z-index:5;left:50%;top:43%;pointer-events:none;
  width:clamp(56px,13vw,150px);animation:reward-flight 1s ease-in-out both;
}
.fly-reward img {width:100%;filter:drop-shadow(0 0 15px #ffe568);}
@keyframes reward-flight {0% {transform:translate(-50%,-45%) scale(.6);opacity:0;}25% {opacity:1;transform:translate(-50%,-50%) scale(1.15);}100% {transform:translate(-50%,43dvh) scale(.15);opacity:0;}}
.wood-sheet.adv-sheet {
  width:min(93vw, 790px); max-height:none; overflow:visible;
  border-radius:20px; border:4px solid #654324;
  background:linear-gradient(115deg,#fff6d1,#f2d595);
}
.adv-sheet .sheet-inner {padding:clamp(14px,2.8vw,28px);overflow:visible;}
.adv-sheet p {margin:.45em 0;color:#4e321f;font-weight:700;}
.adv-sheet h2 {margin:0 35px .35em 0;line-height:1;font-size:clamp(1.45rem, 4vw, 2.6rem);}
.adv-sheet .eyebrow {font-size:clamp(.68rem,1.1vw,.9rem);}
.npc-sheet {position:fixed;bottom:0;top:auto;margin:0 auto min(8dvh,60px);}
.npc-sheet::backdrop {background:#18232736;backdrop-filter:none;}
.adv-talk,.adv-clue {display:flex;align-items:center;gap:clamp(12px,2.3vw,26px);}
.npc-portrait,.clue-image {flex:none;width:clamp(65px,18vw,145px);height:clamp(72px,16dvh,125px);object-fit:contain;}
.adv-clue p {flex:1;}
.dance-preview {animation:dance-preview 1.5s ease-in-out alternate infinite;transform-origin:bottom center;}
@keyframes dance-preview {0% {transform:rotate(-8deg) translateX(-5px);}100% {transform:rotate(8deg) translateX(5px) translateY(-6px);}}
.wave-cloth {animation:idle-ejen 1.4s ease-in-out infinite;}
.adv-actions {display:flex;justify-content:center;align-items:center;flex-wrap:wrap;gap:8px;margin:.7em 0 .1em;}
.adv-actions .chosen,.hall-item.chosen {outline:3px solid #fced8a;filter:brightness(1.17);}
.adv-demo {margin-top:.65em;text-align:center;}
.adv-demo small {font-weight:800;}
.adv-demo .adv-button {min-height:30px;}
.adv-register {display:grid;justify-items:center;gap:8px;text-align:center;}
.register-avatar {height:min(22dvh,145px);}
.adv-register label {font-weight:800;}
.adv-register input {
  width:min(70%,380px);min-width:170px;border:2px solid #955c35;border-radius:10px;padding:8px 10px;
  background:#fff8df;font:800 1.06rem var(--body);color:#4e321f;
}
.time-vignette {display:grid;grid-template-columns:repeat(2,1fr);gap:10px;margin:.5em 0;}
.time-vignette > div {display:grid;grid-template-columns:54px 1fr;align-content:center;border-radius:9px;background:#fff1bb;padding:5px;}
.time-vignette img {width:52px;height:57px;object-fit:contain;grid-row:span 2;}
.time-vignette small {font-weight:700;}
.adv-journal nav {display:flex;flex-wrap:wrap;gap:7px;margin-bottom:13px;}
.adv-journal .chosen {filter:brightness(1.23);}
.adv-journal article {
  display:flex;align-items:center;gap:12px;margin:7px 0;padding:8px 11px;background:#fff4ce;
  border:1px solid #b78b55;border-radius:9px;
}
.adv-journal h3 {margin:0;font:800 1.17rem var(--display);}
.adv-journal article p {font-size:clamp(.83rem,1.3vw,.97rem);line-height:1.36;}
.adv-journal small {display:block;color:#634627;font-weight:800;}
.journal-image {width:clamp(36px,8vw,68px);height:65px;object-fit:contain;flex:none;}
.adv-bag {list-style:none;display:grid;grid-template-columns:repeat(auto-fit,minmax(94px,1fr));gap:8px;padding:0;margin:0;}
.adv-bag li {background:#fff0b5;border:1px solid #b98d50;border-radius:8px;text-align:center;padding:5px;font:800 .92rem var(--display);}
.adv-bag img {display:block;width:100%;height:clamp(44px,11dvh,86px);object-fit:contain;}
.mute-switch {grid-column:1/-1;display:flex;align-items:center;gap:.45em;font-size:.9rem;}
.mute-switch input {width:17px;height:17px;min-height:0;}
.congkak-board {
  display:grid;grid-template-columns:repeat(7,1fr);gap:5px;margin:1.1em 0;
  padding:12px;border:4px solid #562d18;border-radius:36px;
  background:repeating-linear-gradient(175deg,#b97537 0 6px,#a75d2b 9px 16px);
  box-shadow:0 5px #57331e,inset 0 0 0 3px #e5a55d;
}
.congkak-well {
  aspect-ratio:1; border-radius:50%;border:2px solid #d48945;background:#743b20;
  box-shadow:inset 0 3px 8px #422410;color:#fff4cf;cursor:pointer;
  font:800 clamp(.7rem,2vw,1.2rem) var(--display);
}
.congkak-well.filled span {color:#f2ba54;text-shadow:1px 2px #392013;}
.adv-feedback {text-align:center;min-height:1.4em;}
.chap-zone {
  display:block;position:relative;margin:.5em auto;width:min(70%,370px);height:min(31dvh,230px);
  min-height:105px;border:2px solid #533422;border-radius:14px;overflow:hidden;
  background:linear-gradient(#c2e6e5,#f6ecc3);
  box-shadow:inset 0 0 0 3px #fff8da;cursor:pointer;touch-action:manipulation;
}
.chap-band {position:absolute;bottom:9%;height:25%;inset-inline:0;background:#82bf7866;border-block:2px dashed #458454;}
.chap-sprite {
  position:absolute;top:10%;left:50%;translate:-50% -50%;
  width:clamp(28px,6dvh,53px);height:clamp(28px,6dvh,53px);object-fit:contain;
}
.adv-assessment {
  position:absolute;inset:var(--game-top) 0 clamp(53px, 9dvh, 84px);
  min-height:0;padding:0 min(3vw,40px);
}
.adv-dewan {
  background:repeating-linear-gradient(90deg,#7b4429 0 3px,transparent 4px 108px),
    linear-gradient(#8f552f,#ce9a60 40%,#ffdf9c 41%,#bf7944);
}
.hall-stage {
  display:grid;grid-template-rows:minmax(0,.72fr) auto minmax(0,1.12fr) minmax(0,1fr) auto;
  gap:clamp(5px,1.1dvh,14px);text-align:center;
}
.hall-building {min-height:0;}
.hall-building img {height:100%;max-width:62%;object-fit:contain;filter:drop-shadow(0 4px 3px #40231b83);}
.hall-stage > p,.hall-footer p {margin:0;color:#3e2519;font-weight:800;}
.hall-stage > p {
  justify-self:center;background:#fff1cd;padding:.18em .65em;border-radius:.55em;
  font-size:clamp(.77rem,1.35vw,1rem);
}
.hall-targets,.hall-items {
  display:grid;grid-template-columns:repeat(6,minmax(0,1fr));
  gap:clamp(3px,1vw,12px);width:min(100%,1080px);justify-self:center;min-height:0;
}
.hall-item,.hall-drop {
  min-height:0;min-width:0;position:relative;cursor:pointer;display:grid;justify-items:center;
  grid-template-rows:minmax(0,1fr) auto;gap:2px;padding:5px 4px;
  font:800 clamp(.66rem,1.58vw,1.12rem)/1.02 var(--display);overflow-wrap:anywhere;
}
.hall-item img,.hall-drop img {width:100%;height:100%;object-fit:contain;pointer-events:none;}
.hall-item {touch-action:none;}
.hall-item:disabled {visibility:hidden;}
.hall-drop {
  border:2px dashed #89613d;border-radius:12px;background:#fff0bc;
  color:#5d381f;
}
.hall-drop:not(.placed) img {filter:brightness(0);opacity:.27;}
.hall-drop.placed {border:2px solid #638f45;background:#e1edaa;cursor:default;}
.hall-drop.placed span {position:absolute;top:3px;right:6px;color:#286938;}
.hall-drop.highlight {outline:4px solid #fff378;animation:highlight-bay .8s ease-in-out infinite alternate;}
@keyframes highlight-bay {to {box-shadow:0 0 21px #fff478;}}
.hall-footer {min-width:0;display:flex;align-items:center;justify-content:center;gap:9px;}
.hall-footer p {background:#fff3c7;border-radius:6px;padding:3px 7px;font-size:clamp(.71rem,1.2vw,.96rem);max-width:65ch;}
.drag-ghost {position:fixed;z-index:20;pointer-events:none;translate:-50% -50%;width:68px;height:68px;
  font-size:2rem;color:#d8922a;filter:drop-shadow(0 4px 4px #351c1172);text-align:center;}
.drag-ghost img {width:100%;height:100%;object-fit:contain;}
[data-drag] {touch-action:none;}
.festival-sheet {background:radial-gradient(at 50% 34%,#fff8c4,#f0cc78) !important;}
.adv-festival {position:relative;display:flex;justify-content:center;gap:0;overflow:hidden;isolation:isolate;}
.adv-festival::before {
  content:"";position:absolute;inset:-40% 0 0;z-index:-1;
  background:
    radial-gradient(circle,#ec5a53 0 2px,transparent 3px) 0 0/36px 31px,
    radial-gradient(circle,#76a04e 0 2px,transparent 3px) 10px 10px/30px 41px,
    radial-gradient(circle,#59acde 0 2px,transparent 3px) 15px 6px/34px 25px;
  animation:confetti-shower 5s linear infinite;
}
@keyframes confetti-shower {to {transform:translateY(34%);}}
.adv-festival img {width:17%;height:clamp(60px,16dvh,138px);object-fit:contain;animation:dance-preview .9s ease-in-out alternate infinite;}
.adv-festival img:nth-child(even) {animation-delay:-.8s;}
.adv-stones {display:flex;justify-content:center;align-items:center;gap:.4em;text-align:center;font:800 1.15rem var(--display);}
.adv-stones img {width:clamp(48px,12vw,100px);height:clamp(48px,12dvh,100px);object-fit:contain;filter:drop-shadow(0 0 12px #ffdc45);}
.adv-node.npc .node-art {max-height:16dvh;}
@media(max-width:720px) {
  .adv-caption {width:calc(100% - 185px);top:12px;}
  .adv-caption h1 {font-size:clamp(.85rem,3.8vw,1.8rem);}
  .adv-caption span {font-size:.67rem;padding-inline:5px;}
  .adv-scene {--game-top:clamp(75px,12dvh,106px);}
  .adv-node span {max-width:27vw;padding-inline:4px;font-size:clamp(.65rem,2.2vw,.9rem);}
  .adv-dpad {grid-template-columns:repeat(3,30px);grid-template-rows:repeat(2,30px);}
  .hall-targets,.hall-items {grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;}
  .hall-stage {grid-template-rows:minmax(0,.48fr) auto minmax(0,1.3fr) minmax(0,1.3fr) auto;}
}
@media(max-height:500px) and (min-aspect-ratio:1/1) {
  .adv-scene {--game-top:53px;}
  .adv-caption h1 {font-size:1.25rem;}
  .adv-caption span {margin-top:3px;font-size:.65rem;}
  .adv-dpad {grid-template-columns:repeat(3,29px);grid-template-rows:repeat(2,27px);}
  .adv-hud .adv-button {min-height:30px;}
  .adv-assessment {bottom:45px;}
}
@media(prefers-reduced-motion:reduce) {
  .adv-scene *, .adv-sheet * {animation:none !important;transition:none !important;}
}
.island-lock {color:#f8d6a6;font-size:.64em;}
@media(max-height:500px), (max-width:560px) {.adv-resume {bottom:1%;min-height:29px;}}
.screen-reader {position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;}
.adv-dpad button {background:linear-gradient(#a86432,#79411e);text-shadow:0 2px #4b2715;}
.adv-dpad button:active {filter:brightness(1.3);}
.adv-scene:has(.adv-world) {background:linear-gradient(#619b43,#81b251 65%,#598137);}
.adv-terrain {
  background-image:linear-gradient(#adc16920,#77a25e22),url('assets/zon1/yard.webp');
  background-size:100% 100%;
}
.adv-dataran .adv-terrain {background-image:linear-gradient(#8db46720,#8db46720),url('assets/zon1/plaza.webp');background-size:100% 100%;}
.adv-terrain::after {opacity:.2;}
.adv-green {width:min(23vw,34dvh);opacity:.85;}
.adv-green.nw {left:-6%;top:4%;}
.adv-green.ne {right:-6%;top:4%;}
.adv-green.sw,.adv-green.se {bottom:-14%;}
@media(max-width:460px) {
  .adv-green {width:38vw;}
  .adv-caption {width:calc(100% - 182px);}
  .adv-caption span {max-width:100%;}
  .adv-node .node-art {max-height:12dvh;}
  .adv-node.npc .node-art {max-height:11dvh;}
  .hall-footer {flex-wrap:wrap;}
}
.costume-pair {display:flex;justify-content:center;gap:2%;align-items:end;}
.costume-pair img {width:49%;height:100%;object-fit:contain;object-position:bottom;}
.dance-india {animation-duration:1.75s;}
.dance-sabah {animation-duration:1.35s;}
.adv-warisan:has(.adv-world) {background:linear-gradient(#c39058,#d49e68 88%,#ab6e45);}
.adv-scene:has(.adv-world) .adv-world {
  bottom:0;
}
.adv-scene:has(.adv-world) .adv-dpad {bottom:max(12px,env(safe-area-inset-bottom));}
.adv-scene:has(.adv-world) .adv-interact {bottom:57px;}

.junction-world .junction-art,
.junction-world .junction-repaired {
  position:absolute;
  display:block;
  pointer-events:none;
  user-select:none;
}
.junction-art { inset:0; width:100%; height:100%; }
.junction-repaired {
  left:40%;
  top:7.8%;
  width:19%;
  height:35.2%;
  mask-image:linear-gradient(to right,transparent,#000 9%,#000 91%,transparent),
    linear-gradient(to bottom,transparent,#000 9%,#000 91%,transparent);
  mask-composite:intersect;
}
.junction-world .adv-player {
  width:clamp(37px,5.65vw,83px);
  translate:-50% -86%;
}
.junction-world .adv-node.npc { width:clamp(45px,6vw,97px); }
.junction-world .adv-node.npc .node-art { max-height:15dvh; }
.junction-world [data-location="budaya"],
.junction-world [data-location="dataran"],
.junction-world [data-location="bridge"],
.junction-world [data-location="repair"] {
  width:24%;
  height:40%;
  max-height:none;
  translate:-50% -92%;
}
.junction-world [data-location="bridge"],
.junction-world [data-location="repair"] {
  width:14%;
  height:32%;
  translate:-50% -91%;
}
.junction-world [data-location="kampung"] {left:32%;top:84%;}
.junction-world [data-location="dataran"] span {max-width:min(115%, 23vw);}
.junction-world .adv-node.blocked span {
  background:linear-gradient(#766147,#5f472f);
}
.adv-kampung .adv-caption h1,
.adv-jambatan .adv-caption h1 {font-size:clamp(1rem,2.5vw,2.3rem);}
.adv-kampung .adv-caption span,
.adv-jambatan .adv-caption span {max-width:min(97%,42vw);}
@media (max-width:720px) {
  .adv-kampung .adv-caption h1,
  .adv-jambatan .adv-caption h1 {font-size:clamp(.92rem,3.3vw,1.4rem);}
}
@media (max-aspect-ratio: 6/5) {
  .adv-kampung:has(.junction-world), .adv-jambatan:has(.junction-world) {
    background:linear-gradient(#34562b55,#3b622944),url('assets/zon1/simpang-dua.webp') center / cover;
  }
  .adv-scene:has(.junction-world) .junction-world {
    height:min(100%,65vw);
    top:50%;
    bottom:auto;
    translate:0 -50%;
  }
  .junction-world {
    mask-image:linear-gradient(transparent,#000 6%,#000 94%,transparent);
  }
  .junction-world .player-art {max-height:16vw;}
  .junction-world .adv-node.npc .node-art {max-height:19vw;}
  .junction-world .adv-node span {font-size:clamp(.57rem,1.9vw,.9rem);}
  .adv-scene:has(.junction-world) .adv-dpad {
    position:absolute;
    bottom:55px;
    right:12px;
  }
  .adv-scene:has(.junction-world) .junction-world .adv-interact {bottom:6%;}
}

.village-art {
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  pointer-events:none;
  user-select:none;
}
.village-world .adv-node {
  width:16%;
  height:22%;
  max-height:none;
  translate:-50% -100%;
}
.village-world .adv-node span {
  max-width:min(135%,22vw);
}
.village-world .adv-node.nearby span {
  outline:2px solid #fff6a3;
  outline-offset:2px;
}
.village-world [data-location="kampung"] {
  height:auto;
  min-height:32px;
  translate:-50% 0;
}
.adv-budaya .adv-caption h1 {font-size:clamp(1rem,2.75vw,2.4rem);}
.adv-budaya .adv-hud {bottom:max(7px,env(safe-area-inset-bottom));}
@media (max-aspect-ratio: 6/5) {
  .adv-budaya:has(.village-world) {
    background:linear-gradient(#34562b88,#3b622966),url('assets/zon1/kampung-budaya.webp') center / cover;
  }
  .adv-scene:has(.village-world) .village-world {
    height:min(100%,72vw);
    top:50%;
    bottom:auto;
    translate:0 -50%;
  }
  .village-world .player-art {max-height:14vw;}
  .village-world .adv-node span {font-size:clamp(.6rem,2.1vw,.9rem);max-width:28vw;}
  .adv-budaya .adv-interact {bottom:4%;}
  .adv-budaya .adv-dpad {bottom:55px;}
}
.village-world .adv-node:not([data-location="kampung"]).nearby span {
  translate:0 clamp(22px,3.5dvh,38px);
}
@media (max-aspect-ratio: 6/5) {
  .village-world .adv-node:not([data-location="kampung"]).nearby span {
    translate:0 17px;
  }
}

.indoor-art,.indoor-layer {
  position:absolute;inset:0;width:100%;height:100%;
  pointer-events:none;user-select:none;
}
.indoor-layer.layer-clothes {z-index:431;}
.indoor-layer.layer-instruments {z-index:447;}
.indoor-layer.layer-booktable {z-index:692;}
.indoor-layer.layer-congkak {z-index:664;}
.indoor-world .adv-player {
  z-index:var(--depth,742);
  width:clamp(40px,5.2vw,80px);
  translate:-50% calc(-100% + 17px);
}
.indoor-world .adv-player b {font-size:.74rem;}
.indoor-world .indoor-hotspot {
  z-index:900;
  min-width:24px;min-height:22px;
  width:var(--hit-width);height:var(--hit-height);max-height:none;
  translate:-50% -50%;
}
.indoor-world .indoor-hotspot:not(.indoor-npc):is(.nearby,:hover,:focus-visible) {
  border-radius:10px;
  background:radial-gradient(ellipse,#ffe78a31,transparent 72%);
}
.indoor-world .indoor-npc {
  z-index:var(--depth);
  height:auto;min-height:0;
  width:clamp(32px,5.3vw,75px);
  translate:-50% -100%;
}
.indoor-world .indoor-npc .node-art {
  width:100%;max-height:min(17dvh,140px);
}
.indoor-world .indoor-hint {
  visibility:hidden;
  position:absolute;left:50%;top:100%;translate:-50% 6px;
  max-width:min(160px,38vw);
  font-size:clamp(.66rem,1vw,.94rem);
  pointer-events:none;
}
.indoor-world .indoor-hotspot:is(:focus-visible,:hover) .indoor-hint {visibility:visible;}
.adv-scene:has(.indoor-world) .adv-interact {
  z-index:1000;bottom:max(54px,7.5dvh);max-width:95%;
}
:is(.adv-melayu,.adv-cina,.adv-india) .adv-caption h1 {font-size:clamp(1rem,2.75vw,2.4rem);}
.malay-demo-note {text-align:center;font-size:.84rem;opacity:.8;}
.culture-audio-status:empty {display:none;}
.malay-story-art {
  width:clamp(95px,25vw,220px);max-height:34dvh;aspect-ratio:1;
  object-fit:contain;border-radius:10px;
}
.malay-performance {
  display:grid;place-items:center;background:#fff2cc;border-radius:12px;
  margin:.45em auto;max-width:390px;
}
.malay-dance-frame {
  width:min(36dvh,205px);aspect-ratio:1;
  background-image:url('assets/zon1/malay-dance.webp');
  background-repeat:no-repeat;background-size:400% 200%;
  animation:malay-dance-steps 1.65s steps(1,end) infinite;
}
.malay-dance-frame.zapin {background-position-y:100%;animation-duration:1.25s;}
@keyframes malay-dance-steps {
  0% {background-position-x:0;}
  25% {background-position-x:33.333%;}
  50% {background-position-x:66.667%;}
  75% {background-position-x:100%;}
}
@media (max-aspect-ratio: 6/5) {
  .adv-melayu:has(.indoor-world) {
    background:linear-gradient(#52361eb8,#52361e88),url('assets/zon1/rumah-melayu-dalaman.webp') center / cover;
  }
  .adv-scene:has(.indoor-world) .indoor-world {
    top:48%;bottom:auto;height:min(100%,71vw);translate:0 -50%;
    overflow:visible;
  }
  .indoor-world .player-art {max-height:14vw;}
  .indoor-world .indoor-npc .node-art {max-height:15vw;}
  .adv-scene:has(.indoor-world) .adv-interact {bottom:-54px;}
  :is(.adv-melayu,.adv-cina,.adv-india) .adv-dpad {bottom:55px;}
}

.welcome-guest {
  display:flex;justify-content:center;
  margin:.25em auto;
}
.welcome-guest .npc-portrait {width:auto;height:clamp(52px,10dvh,96px);object-fit:contain;}
.adv-talk p {white-space:pre-line;}

@media (max-aspect-ratio: 6/5) {
  .adv-cina:has(.indoor-world) {
    background:linear-gradient(#4e271cb8,#4e271c99),url('assets/zon1/rumah-cina-dalaman.webp') center / cover;
  }
}

/* Repaint foreground fixtures from the same registered map as the player
   passes behind them. The floor remains a single, uninterrupted illustration. */
.cina-layer-instruments {
  z-index:545;
  clip-path:polygon(18% 39%,24% 39%,24% 41%,29.6% 41%,29.6% 33%,32.4% 33%,32.4% 42%,40% 42%,40% 54%,18% 54%);
}
.cina-layer-clothes {
  z-index:542;
  clip-path:polygon(70% 27%,83.1% 27%,83.1% 54%,70% 54%);
}
.cina-layer-games {
  z-index:763;
  clip-path:polygon(15% 60%,28.5% 60%,28.5% 55.7%,33.3% 55.7%,33.8% 64%,33.5% 69%,32.1% 76%,12.7% 76%,12.7% 70%);
}
.cina-layer-lion {
  z-index:723;
  clip-path:polygon(73.4% 61%,74.8% 57%,76.5% 55%,78.8% 54.5%,81.2% 55%,83.9% 57%,83.9% 63%,85.1% 66%,85.1% 72.5%,73.4% 72.5%);
}
.cina-lion {
  transform-origin:50% 86%;
}
@media (prefers-reduced-motion: no-preference) {
  .cina-lion {animation:cina-lion-bow 2.2s ease-in-out infinite;}
}
@keyframes cina-lion-bow {
  0%,100% {transform:rotate(-5deg);}
  27% {transform:translateY(-6%) rotate(5deg);}
  49% {transform:scale(1.05,.88);}
  69% {transform:translateY(-8%) rotate(-3deg);}
}

/* Each foreground layer follows the illustrated obstacle at the same scale. */
.india-layer-clothes {
  z-index:485;
  clip-path:polygon(17.5% 23%,31.4% 23%,31.4% 24%,37.9% 24%,37.9% 13%,41.6% 13%,41.6% 50.5%,37.9% 50.5%,37.9% 46%,31.4% 46%,31.4% 48.5%,17.5% 48.5%);
}
.india-layer-instruments {
  z-index:505;
  clip-path:polygon(58.3% 13%,61.9% 13%,61.9% 39%,65.7% 38.5%,74% 34%,76.3% 37%,80% 28%,84.8% 27%,84.8% 49%,61.9% 49%,61.9% 50.5%,58.3% 50.5%);
}
.india-layer-games {
  z-index:703;
  clip-path:polygon(16.8% 53.2%,21.35% 53.2%,21.35% 51.9%,23.5% 51.9%,23.5% 53.2%,34.6% 53.2%,34.6% 62.7%,33.9% 70.4%,13.3% 70.4%,13.3% 63%);
}
.adv-caption .house-progress {
  pointer-events:auto;
  font-size:clamp(.72rem,1.15vw,1rem);
  padding:2px .85em;
  min-height:26px;
  margin-top:5px;
}
.house-task-list {
  display:grid;gap:5px;list-style:none;margin:.6em 0;padding:0;
}
.house-task-list li {
  display:flex;align-items:center;justify-content:space-between;gap:.5em;
  border:1px solid #d1a471;border-radius:.6em;background:#fff4d3;padding:.35em .7em;
  font-size:clamp(.78rem,1.5vw,1.05rem);
}
.house-task-list span {flex-shrink:0;text-align:end;}
.house-task-list .done {color:#246044;font-weight:800;}
.india-demo-desc {text-align:center;font-size:.82rem;}
.india-exhibit-art {border-radius:8px;}
.india-chatur,.india-court {
  margin:.55em auto 0;position:relative;overflow:hidden;border:3px solid #654324;border-radius:6px;
}
.india-chatur {
  width:clamp(110px,24dvh,170px);aspect-ratio:1;
  display:grid;grid-template:repeat(5,1fr)/repeat(5,1fr);
  background:#ffe6a1;
}
.india-chatur > span {display:grid;place-items:center;color:#673815;}
.india-chatur .dark {background:#c48750;}
.india-chatur b {color:#136957;font-size:1rem;}
.india-chatur .india-knight {
  position:absolute;left:40%;top:60%;width:20%;height:20%;font-size:clamp(1.05rem,4dvh,1.85rem);
  font-family:Arial,sans-serif;color:#262a26;line-height:1;
}
.india-chatur.playing .india-knight {animation:india-knight-move 1.8s ease-in-out both;}
@keyframes india-knight-move {
  0%,15% {top:60%;left:40%;}
  50% {top:27%;left:51%;}
  80%,100% {top:20%;left:60%;}
}
.india-court {
  width:min(78%,310px);height:clamp(74px,16dvh,140px);background:#f3cc84;
}
.india-court::before {
  content:'';position:absolute;inset:10% 7%;
  background:linear-gradient(90deg,transparent 49.5%,#965e39 49.5%,#965e39 50.5%,transparent 50.5%);
  border:2px solid #965e39;
}
.india-court-player {
  position:absolute;display:grid;place-items:center;border-radius:50%;width:28px;aspect-ratio:1;
  translate:-50% -50%;top:51%;left:22%;font-size:.74rem;font-weight:800;color:white;background:#215d89;
}
.india-court-player.defender {left:69%;top:36%;background:#9c4226;}
.india-court-player.second {left:80%;top:68%;}
.india-court.playing .raider {animation:india-raid 2.6s ease-in-out both;}
.india-court.playing .defender:not(.second) {animation:india-tag 2.6s ease-in-out both;}
@keyframes india-raid {
  0%,10%,100% {left:22%;top:51%;}
  30% {left:53%;top:55%;}
  55%,64% {left:64%;top:44%;}
  84% {left:44%;top:61%;}
}
@keyframes india-tag {55%,65% {scale:1.13;background:#a83b22;}}
.india-dance-demo {display:flex;align-items:center;gap:1em;justify-content:center;margin:.45em 0;}
.india-dance-images {
  width:clamp(100px,25dvh,205px);aspect-ratio:1;flex:none;
  position:relative;background:#fff5d6;border-radius:12px;overflow:hidden;
}
.india-dance-images img {
  position:absolute;inset:0;width:100%;height:100%;object-fit:contain;
  animation:india-mudra 6s steps(1,end) infinite;
}
.india-dance-images .pose-1 {animation-delay:-4s;}
.india-dance-images .pose-2 {animation-delay:-2s;}
@keyframes india-mudra {0% {opacity:1;}33.333% {opacity:0;}100% {opacity:0;}}
.india-dance-demo ol {padding-inline-start:1.15em;margin:0;font-size:clamp(.76rem,1.3vw,1rem);}
.india-dance-demo li {margin:.3em 0;}
@media (prefers-reduced-motion: reduce) {
  .india-dance-images {display:flex;width:100%;aspect-ratio:auto;}
  .india-dance-images img {position:static;width:33.33%;}
  .india-dance-demo {flex-direction:column;}
  .india-chatur.playing .india-knight {top:20%;left:60%;}
  .india-court.playing .raider {left:56%;top:46%;}
}
@media (max-aspect-ratio: 6/5) {
  .adv-india:has(.indoor-world) {
    background:linear-gradient(#542918b8,#54291899),url('assets/zon1/rumah-india-dalaman.webp') center / cover;
  }
}

/* Closed eyelids are aligned to the two original indoor portraits. */
.adv-india .indoor-npc {
  --portrait-h:min(17dvh,140px,10.8vw);
  --portrait-w:calc(var(--portrait-h) * .488);
  width:var(--portrait-w);
  height:var(--portrait-h);
}
.adv-india .indoor-npc[data-location="1"] {
  --portrait-w:calc(var(--portrait-h) * .464);
}
.adv-india .indoor-npc .node-art {
  height:100%;
  max-height:none;
  animation:none;
}
.adv-india .india-blink {
  position:absolute;
  --eye-color:#e69b56;
  left:42%;top:17.8%;width:15%;height:7.8%;
  border-radius:58% 52% 75% 62%;background:var(--eye-color);
  box-shadow:inset 0 -1px #42271c;
  opacity:0;pointer-events:none;
  animation:india-blink 5.8s linear infinite;
}
.adv-india .india-blink::after {
  content:'';position:absolute;left:192%;top:-4%;width:62%;height:98%;
  border-radius:inherit;background:var(--eye-color);box-shadow:inherit;
}
.adv-india [data-location="1"] .india-blink {
  left:45%;top:17.4%;
  --eye-color:#e99350;
  animation-delay:-2.3s;
}
@keyframes india-blink {
  0%,94%,98%,100% {opacity:0;}
  95%,97% {opacity:1;}
}
@media (max-aspect-ratio: 6/5) {
  .adv-india .indoor-npc {--portrait-h:15vw;min-width:24px;}
}

.adv-india .indoor-npc {
  transform-origin:bottom center;
  animation:india-idle 3.8s ease-in-out infinite;
}
.adv-india .indoor-npc[data-location="1"] {animation-delay:-1.4s;}
@keyframes india-idle {
  0%,100% {transform:rotate(-.35deg);}
  50% {transform:rotate(.35deg) scaleY(1.012);}
}

/* Keep the shared gallery, stairs and courtyard in the same coordinate space. */
.iban-layer-exhibits {
  z-index:479;
  clip-path:polygon(16.8% 28.9%,29.8% 28.9%,29.8% 47.9%,16.8% 47.9%,16.8% 28.9%,42.8% 28.4%,57.2% 28.4%,57.2% 45.65%,42.8% 45.65%,42.8% 28.4%);
}
.iban-layer-railing {
  z-index:759;
  clip-path:polygon(41.8% 54.4%,42.75% 54.4%,40.65% 75.9%,40.65% 77.3%,39.05% 77.3%,39.05% 75.1%,41.8% 54.4%,57.2% 54.4%,58.2% 54.4%,60.85% 75.1%,60.85% 77.3%,59.35% 77.3%,59.35% 75.9%,57.2% 54.4%);
}
.iban-layer-courtyard {
  z-index:846;
  clip-path:polygon(14.8% 56.5%,20.4% 56.5%,20.4% 59.8%,21.1% 65%,21.1% 70.6%,16.5% 70.6%,16.5% 81.4%,18% 84.6%,12.9% 84.6%,14.8% 81.7%,14.8% 56.5%,77.2% 57.8%,88.3% 57.8%,92.8% 83.6%,88.7% 84.3%,85.9% 62%,83.1% 61%,83.1% 82.7%,82.3% 82.7%,82.3% 61%,79% 62%,76.9% 84.2%,73.1% 84.2%,77.2% 57.8%);
}
.adv-sarawak .adv-caption h1 {font-size:clamp(.96rem,2.65vw,2.35rem);}
.adv-sarawak .indoor-npc {
  --portrait-h:min(11dvh,100px,8vw);
  height:var(--portrait-h);
  width:calc(var(--portrait-h) * .51);
  transform-origin:bottom center;
  animation:india-idle 3.8s ease-in-out infinite;
}
.adv-sarawak .indoor-npc[data-location="1"] {animation-delay:-1.4s;}
.adv-sarawak .indoor-npc .node-art {height:100%;max-height:none;animation:none;}
.iban-blink {
  position:absolute;left:56%;top:24%;width:26%;height:7%;
  border-radius:68% 51% 70% 65%;background:#e9a367;
  box-shadow:inset 0 -1px #48281e;opacity:0;pointer-events:none;
  animation:india-blink 5.8s linear infinite;
}
.adv-sarawak [data-location="1"] .iban-blink {top:26.8%;left:53%;animation-delay:-2.4s;}
.iban-dance {
  display:flex;justify-content:center;gap:.5rem;text-align:center;
  max-width:420px;margin:.3em auto;border-radius:10px;background:#fbf3df;padding:.25em;
}
.iban-ngajat {
  width:min(33vw,32dvh,185px);aspect-ratio:1;
  background:url('assets/zon1/iban-ngajat.webp') no-repeat;
  background-size:400% 200%;
  animation:iban-dance-steps 3.2s steps(1,end) infinite;
}
.iban-ngajat.kumang {background-position-y:100%;animation-delay:-.8s;}
@keyframes iban-dance-steps {
  0% {background-position-x:0%;}
  25% {background-position-x:33.333%;}
  50% {background-position-x:66.667%;}
  75% {background-position-x:100%;}
}
.iban-swing-stage,.iban-kick-field {
  position:relative;width:min(100%,330px);height:clamp(80px,18dvh,145px);
  margin:.55em auto .35em;overflow:hidden;border:2px solid #937044;border-radius:10px;
  background:linear-gradient(#d1e9a5 0 70%,#ead39a 70%);
}
.iban-swing-stage::before {
  content:'';position:absolute;inset:14% 29% 12%;
  border:solid #916035;border-width:6px 7px 0;border-radius:5px 5px 0 0;
}
.iban-swing-rope {
  position:absolute;left:50%;top:15%;height:68%;width:5px;
  background:repeating-linear-gradient(145deg,#a7733c 0 3px,#dca85f 3px 5px);border-radius:4px;
  transform-origin:50% 0%;
  animation:iban-swing 1.75s ease-in-out infinite alternate;
}
@keyframes iban-swing {from {transform:rotate(-21deg);} to {transform:rotate(21deg);}}
.iban-aim {display:flex;align-items:center;justify-content:center;gap:.6em;font-weight:800;}
.iban-aim input {width:min(44%,155px);min-height:26px;accent-color:#9b542c;}
.iban-kick-target {
  position:absolute;top:16%;left:65%;width:27px;height:24px;
  transform:translateX(-50%);border:2px solid #86502a;border-radius:3px 3px 9px 9px;
  background:repeating-linear-gradient(55deg,#a06925 0 3px,#edbf66 3px 6px);
}
.iban-kick-target::before {
  content:'';position:absolute;left:50%;width:2px;height:100%;bottom:100%;background:#8a5b27;
}
.iban-kick-guide {
  position:absolute;bottom:14%;left:50%;height:69%;width:0;
  border-left:2px dashed #73562999;transform-origin:50% 100%;
  transform:rotate(calc(var(--aim,0) * 19deg));
}
.iban-kick-ball {
  position:absolute;left:50%;top:81%;width:19px;aspect-ratio:1;translate:-50% -50%;
  border:2px solid #563522;border-radius:50%;background:repeating-linear-gradient(48deg,#955121 0 3px,#f6cc73 3px 6px);
}
.iban-kick-field.kicked .iban-kick-ball {animation:iban-kick .54s ease-out both;}
@keyframes iban-kick {
  0% {left:50%;top:81%;}
  72% {left:calc(50% + var(--flight,0%));top:16%;}
  100% {left:calc(50% + var(--flight,0%));top:24%;}
}
@media (prefers-reduced-motion: reduce) {
  .iban-ngajat {background-position-x:66.667%;}
  .iban-kick-field.kicked .iban-kick-ball {left:calc(50% + var(--flight,0%));top:24%;}
}
@media (max-aspect-ratio: 6/5) {
  .adv-sarawak:has(.indoor-world) {
    background:linear-gradient(#48321bb8,#48321b99),url('assets/zon1/rumah-iban-ruai.webp') center / cover;
  }
  .adv-sarawak .indoor-npc {--portrait-h:11vw;min-width:21px;}
  .adv-sarawak .adv-dpad {bottom:55px;}
}

/* The cutaway shares one coordinate system with its foreground masks and walk mesh. */
.sabah-layer-clothes {
  z-index:493;
  clip-path:polygon(18.3% 37%,22.8% 37%,22.8% 28.7%,35.5% 28.7%,35.5% 36%,39.2% 36%,39.2% 47.4%,35.5% 47.4%,35.5% 48.5%,23% 48.5%,23% 49.3%,18.3% 49.3%);
}
.sabah-layer-instruments {
  z-index:507;
  clip-path:polygon(60.4% 41.5%,62% 41.5%,62.4% 30.5%,66.1% 30.5%,65.8% 38%,74.7% 38%,74.7% 36.3%,81.5% 36.3%,82% 50.7%,60.6% 50.7%);
}
.sabah-layer-stairs {
  z-index:891;
  clip-path:polygon(40.4% 54%,42.7% 54%,43.9% 58%,42.4% 74.7%,42.1% 90.1%,39.3% 90.1%,39.3% 76%,40.4% 58%,40.4% 54%,57.3% 54%,59.4% 54%,59.8% 76%,60.5% 90.1%,57.7% 90.1%,57.3% 75.8%,55.8% 58%,57.3% 54%);
}
.sabah-layer-courtyard {
  z-index:878;
  clip-path:polygon(16.2% 71.6%,19.9% 71.6%,20.5% 65%,23.5% 65%,23.3% 71.6%,26.5% 71.6%,26.5% 87.8%,16.2% 87.8%,16.2% 71.6%,69.4% 70%,71.1% 67%,75.1% 67%,77.4% 70.8%,77.4% 72.8%,87.8% 72.8%,87.8% 87%,69.4% 87%,69.4% 70%);
}
.adv-sabah .adv-caption h1 {font-size:clamp(.93rem,2.65vw,2.35rem);}
.adv-sabah .indoor-npc {
  --portrait-h:min(12.8dvh,105px,8.7vw);
  height:var(--portrait-h);
  width:calc(var(--portrait-h) * .434);
  transform-origin:bottom center;
  animation:india-idle 3.8s ease-in-out infinite;
}
.adv-sabah .indoor-npc[data-location="1"] {width:calc(var(--portrait-h) * .495);animation-delay:-1.4s;}
.adv-sabah .indoor-npc .node-art {height:100%;max-height:none;animation:none;}
.adv-sabah .iban-blink {left:52%;top:27.4%;width:30%;height:6%;animation-delay:-1.2s;}
.adv-sabah [data-location="1"] .iban-blink {left:55%;top:24%;animation-delay:-3.4s;}
.sabah-demonstration {
  display:flex;justify-content:center;
  max-width:352px;margin:.4em auto;border-radius:12px;background:#fbf3df;padding:.25em;
}
.sabah-motion {
  width:min(38vw,31dvh,190px);aspect-ratio:1;
  background:url('assets/zon1/sabah-motion.webp') no-repeat;
  background-size:400% 200%;
  animation:iban-dance-steps 2.8s steps(1,end) infinite;
}
.sabah-motion.rampanau {background-position-y:100%;animation-duration:3.6s;}
@media (prefers-reduced-motion: reduce) {
  .sabah-motion {background-position-x:33.333%;}
}
@media (max-aspect-ratio: 6/5) {
  .adv-sabah:has(.indoor-world) {background:linear-gradient(#4c361eb8,#4c361e99),url('assets/zon1/rumah-sabah-dalaman.webp') center / cover;}
  .adv-sabah .indoor-npc {--portrait-h:13vw;}
  .adv-sabah .adv-dpad {bottom:55px;}
}

.sabah-dialogue .npc-portrait {
  transform-origin:bottom center;
  animation:sabah-greeting-nod 3.5s ease-in-out infinite;
}
.sabah-dialogue .welcome-guest .npc-portrait {animation-delay:-1.75s;}
@keyframes sabah-greeting-nod {
  0%,68%,94%,100% {transform:none;}
  77% {transform:rotate(2deg) scaleY(.98);}
  86% {transform:rotate(-.7deg);}
}

@media (min-aspect-ratio: 6/5) {
  .adv-sabah:has(.indoor-world) .adv-interact {bottom:max(80px,13dvh);}
}

.warisan-world .adv-player {width:clamp(38px,4.55vw,73px);}
.warisan-world .indoor-npc {
  width:clamp(32px,5.3vw,83px);
}
.warisan-world .indoor-npc .node-art {max-height:min(11.5dvh,106px);}
.warisan-world .indoor-npc[data-location="baba"] {width:clamp(36px,7.1vw,105px);}
.warisan-world .indoor-npc .indoor-hint {
  visibility:visible;
  white-space:nowrap;
  font-size:clamp(.64rem,1.08vw,.95rem);
  max-width:none;
  translate:-50% 2px;
}
.warisan-world .indoor-npc:focus-visible {z-index:950;}
.warisan-world .indoor-hotspot[data-location="dewan"] {
  z-index:948;
  width:18%;height:16%;
}
.warisan-world .indoor-hotspot[data-location="dewan"] .indoor-hint {display:none;}
.warisan-world .indoor-hotspot[data-location="dewan"]:is(:hover,.nearby) {
  background:radial-gradient(ellipse,#ffe78a23,transparent 67%);
}
.warisan-gateway-foreground {
  z-index:936;
  clip-path:polygon(30.7% 67.3%,33.8% 67%,35.5% 64.1%,37.2% 58.8%,39% 60.5%,62% 60.5%,62.9% 58.8%,64.7% 64.6%,67.9% 67.7%,69.2% 67.4%,69.4% 69.8%,67.9% 71.4%,65.5% 73%,64.2% 75.3%,64.4% 89.8%,65.1% 92.2%,65.1% 94.9%,60.1% 94.9%,60.1% 92.2%,60.8% 89.8%,60.8% 79%,59.2% 76.8%,40.8% 76.8%,39.2% 79%,39.2% 89.9%,39.8% 92.2%,39.8% 94.9%,34.9% 94.9%,34.9% 92.1%,35.6% 89.8%,35.6% 75.6%,34.1% 73.5%,32.4% 71.7%,31% 70.2%);
  transition:opacity .2s ease-out;
}
.player-under-gate .warisan-gateway-foreground,.player-under-gate .warisan-sign {opacity:.32;}
.warisan-sign {
  position:absolute;z-index:938;left:50%;top:74.1%;translate:-50% -50%;
  padding:.12em .55em;text-align:center;white-space:nowrap;pointer-events:none;
  font:800 clamp(.7rem,1.45vw,1.3rem)/1.12 var(--display);transition:opacity .2s ease-out;
}
.adv-warisan:has(.warisan-world) .adv-interact {
  bottom:max(55px,6.5dvh);left:77%;
}
.adv-warisan .adv-interact .adv-button {font-size:clamp(.72rem,1.24vw,1.12rem);}
@media (max-aspect-ratio:6/5) {
  .adv-warisan:has(.warisan-world) {
    background:linear-gradient(#492b20b0,#492b2078),url('assets/zon1/jalan-warisan-shophouses.webp') center / cover;
  }
  .warisan-world .indoor-npc .node-art {max-height:9vw;}
  .warisan-world .indoor-npc .indoor-hint {
    font-size:clamp(.52rem,2vw,.74rem);padding:2px 4px;white-space:normal;text-align:center;
  }
  .adv-warisan:has(.warisan-world) .adv-interact {left:50%;bottom:-55px;}
  .adv-warisan .adv-dpad {bottom:55px;}
}

.adv-dataran .dataran-world {inset:0;}
.dataran-world .adv-player {width:clamp(34px,4vw,68px);}
.dataran-world .player-art {max-height:12.5dvh;}
.dataran-world .indoor-npc {width:clamp(32px,4.2vw,69px);}
.dataran-world .indoor-npc .node-art {max-height:11.5dvh;}
.dataran-world .indoor-hint {
  visibility:visible;
  max-width:none;
  white-space:nowrap;
  font-size:clamp(.62rem,1.13vw,1rem);
  translate:-50% 1px;
}
.dataran-world .indoor-hotspot[data-location="peti"] .indoor-hint {
  width:max-content;
  max-width:13vw;
  text-align:center;
  white-space:normal;
}
.adv-dataran:has(.dataran-world) .adv-interact {bottom:max(52px,7dvh);}
@media (max-aspect-ratio:6/5) {
  .adv-dataran:has(.dataran-world) {
    background:linear-gradient(#465e2e9c,#465e2e9c),url('assets/zon1/dataran-kepercayaan.webp') center / cover;
  }
  .adv-dataran .dataran-world {inset:49% 0 auto;height:60vw;translate:0 -50%;}
  .dataran-world .player-art {max-height:12vw;}
  .dataran-world .indoor-npc .node-art {max-height:11vw;}
  .dataran-world .indoor-hint {font-size:clamp(.48rem,1.6vw,.76rem);padding:2px 3px;}
  .adv-dataran:has(.dataran-world) .adv-interact {bottom:-54px;}
  .adv-dataran .adv-dpad {bottom:55px;}
}

.adv-scene:has(.belief-interior) .belief-interior {inset:0;}
.belief-interior .adv-player {width:clamp(38px,4.55vw,74px);}
.belief-interior .player-art {max-height:13.25dvh;}
.belief-interior .indoor-npc {width:clamp(38px,5vw,78px);}
.belief-interior .indoor-npc .node-art {max-height:13.6dvh;}
.belief-interior .indoor-hotspot:not(.indoor-npc,.exhibit-preview):hover:not(.nearby):not(:focus-visible) {background:none;}
.belief-interior .indoor-hotspot:not(.indoor-npc,.exhibit-preview) .indoor-hint {display:none;}
.belief-interior .indoor-npc .indoor-hint {visibility:hidden;}
.belief-interior .indoor-npc:is(.nearby,:focus-visible) .indoor-hint {visibility:visible;}
.belief-interior .exhibit-preview::before {
  content:"";position:absolute;inset:-15%;border-radius:50%;pointer-events:none;
  background:radial-gradient(ellipse,#fff2ae70 0%,#ffe19542 41%,transparent 73%);
  mix-blend-mode:screen;
  opacity:0;transition:opacity .16s ease-out;
}
.belief-interior .exhibit-preview:is(:hover,:focus-visible) {z-index:920;}
.belief-interior .exhibit-preview:is(:hover,:focus-visible)::before {opacity:1;}
.belief-interior .exhibit-preview .indoor-hint {
  max-width:min(42vw,220px);
  text-align:center;text-wrap:balance;
  box-shadow:0 2px #573016,inset 0 0 0 1px #eab674,0 3px 9px #47291445;
}
:is(.adv-islam,.adv-buddha,.adv-hindu,.adv-kristian,.adv-sikh) .adv-interact .adv-button {white-space:nowrap;}
.adv-scene:has(.belief-interior) .adv-interact {bottom:max(51px,6.9dvh);}
.masjid-layer-bench {
  z-index:774;
  clip-path:polygon(4.6% 62.3%,7.5% 63.5%,10% 64.9%,12% 63.3%,15.7% 58.2%,16.6% 59.4%,17.1% 63.4%,19.2% 65%,19.4% 70.5%,18.3% 70.2%,13.5% 77.5%,11.8% 77.4%,10% 78.6%,6.5% 78.9%,5.5% 74.8%,3.7% 68.3%);
}
.masjid-layer-study {
  z-index:523;
  clip-path:polygon(63.6% 31.6%,71.1% 25.7%,77.2% 31%,77.1% 38%,79% 45.3%,82.85% 49.9%,82.8% 52%,67.15% 52.2%,65.8% 47.2%,65.05% 44%);
}
.masjid-layer-festival {
  z-index:778;
  clip-path:polygon(68.15% 66.6%,70% 65%,70.4% 61.3%,72.2% 59.2%,74.2% 60.7%,74.9% 57.9%,76.6% 57.7%,77.1% 62%,78.4% 51.2%,83.5% 52.1%,83% 56.1%,88.6% 54.4%,88.8% 63.5%,86.9% 71.75%,84.2% 71.2%,84% 77.8%,68.5% 77.75%);
}
.masjid-festivals {
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.75rem;
}
.masjid-festivals section {
  background:#fff1cf;border:1px solid #d9ab65;border-radius:12px;
  padding:.65rem;text-align:center;
}
.masjid-festivals img {width:100%;height:min(14dvh,94px);object-fit:contain;}
.masjid-festivals h3 {font-family:var(--display);margin:.15em 0;}
.masjid-festivals p {margin:0;font-size:clamp(.78rem,2.4vw,1rem);}
@media (max-aspect-ratio:6/5) {
  .adv-islam:has(.belief-interior) {
    background:linear-gradient(#4944218f,#4944218f),url('assets/zon1/masjid-dalaman.webp') center / cover;
  }
  .adv-scene:has(.belief-interior) .belief-interior {inset:49% 0 auto;height:60vw;translate:0 -50%;}
  .belief-interior .player-art,.belief-interior .indoor-npc .node-art {max-height:13vw;}
  .adv-scene:has(.belief-interior) .adv-interact {bottom:-49px;}
  :is(.adv-islam,.adv-buddha,.adv-hindu,.adv-kristian,.adv-sikh) .adv-dpad {bottom:55px;}
}

:is(.adv-islam,.adv-buddha,.adv-hindu,.adv-kristian,.adv-sikh) {animation:belief-room-arrive .3s ease-out both;}
@keyframes belief-room-arrive {
  from {opacity:.5;}
  to {opacity:1;}
}

.wat-layer-altar {
  z-index:531;
  clip-path:polygon(22% 52.1%,22.9% 48.5%,23.3% 40.5%,24.4% 29.4%,29% 27.1%,30.5% 22.1%,33% 17.7%,38.7% 15.1%,42.8% 19.9%,44.3% 27.7%,48% 27.5%,49.3% 38.6%,49.65% 41.5%,53.3% 41.4%,54.5% 47.2%,54.4% 53%,50% 53%);
}
.wat-layer-bench {
  z-index:763;
  clip-path:polygon(1.2% 56%,5.6% 54%,10.45% 57.85%,10% 62%,14.15% 60.3%,18.15% 60.3%,18.2% 67.6%,14.3% 76.2%,8.8% 76.2%,8.5% 74.7%,4.3% 76%,1% 68%);
}
.wat-layer-study {
  z-index:518;
  clip-path:polygon(63.5% 46.5%,63.2% 26.5%,69.4% 22%,75% 21.5%,78.65% 25.2%,78.65% 40.4%,79% 42.8%,78.5% 51.25%,65.2% 51.25%,65.2% 46.5%);
}
.wat-layer-festival {
  z-index:779;
  clip-path:polygon(68.8% 65%,70.75% 64.6%,73.5% 62.1%,74.25% 59.45%,77.8% 52.4%,81.1% 57.8%,81.8% 63.3%,84.1% 63.4%,84.6% 59.4%,89% 59.4%,90.2% 68%,89.4% 77.7%,70.5% 77.7%);
}
.wat-lantern-light {
  position:absolute;z-index:780;pointer-events:none;left:77.9%;top:61%;
  width:10%;height:18%;translate:-50% -50%;
  background:radial-gradient(ellipse,#fff4b260,transparent 68%);
  animation:wat-lantern-glow 4.6s ease-in-out infinite;
}
.wat-lantern-light i {
  position:absolute;left:27%;top:42%;width:4px;aspect-ratio:1;border-radius:50%;
  background:#fff6c6;box-shadow:0 0 6px #ffd681;
  animation:wat-particle 5s ease-in-out infinite;
}
.wat-lantern-light i:nth-child(2) {left:69%;top:35%;animation-delay:-1.7s;}
.wat-lantern-light i:nth-child(3) {left:52%;top:17%;animation-delay:-3.2s;}
.adv-buddha .exhibit-preview.nearby::before {opacity:.6;}
@keyframes wat-lantern-glow {50% {opacity:.45;}}
@keyframes wat-particle {
  0%,100% {opacity:0;transform:translateY(5px);}
  44% {opacity:.85;}
  85% {opacity:0;transform:translateY(-15px);}
}
@media (max-aspect-ratio:6/5) {
  .adv-buddha:has(.belief-interior) {
    background:linear-gradient(#55401c99,#55401c99),url('assets/zon1/wat-tokong-dalaman.webp') center / cover;
  }
}

.adv-hindu .exhibit-preview.nearby::before {opacity:.6;}
.kuil-lamp-light {
  position:absolute;z-index:784;pointer-events:none;
  width:9%;height:16%;translate:-50% -50%;
  background:radial-gradient(ellipse,#ffdd855e,transparent 67%);
  animation:wat-lantern-glow 4.6s ease-in-out infinite;
}
.kuil-exhibit-cards {
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.75rem;
}
.kuil-exhibit-cards section {background:#fff1cf;border:1px solid #d9ab65;border-radius:12px;padding:.65rem;text-align:center;}
.kuil-exhibit-cards img {width:min(100%,200px);height:min(18dvh,128px);object-fit:cover;border-radius:8px;}
.kuil-exhibit-cards h3 {font-family:var(--display);margin:.15em 0;}
.kuil-exhibit-cards p {margin:0;font-size:clamp(.78rem,2.4vw,1rem);}
@media (max-aspect-ratio:6/5) {
  .adv-hindu:has(.belief-interior) {
    background:linear-gradient(#55401c99,#55401c99),url('assets/zon1/kuil-dalaman.webp') center / cover;
  }
}

.kuil-layer-altar {
  z-index:542;
  clip-path:polygon(17% 53.4%,17.2% 46%,23% 43%,25% 31%,25% 24%,30% 21%,32% 17%,38% 17%,40% 20%,45% 23%,46.4% 37%,48.3% 39%,52.9% 40.4%,54.8% 46.4%,54.8% 53.9%,48.5% 53.9%,43% 53.85%);
}
.kuil-layer-serambi {
  z-index:794;
  clip-path:polygon(5.4% 53%,11.1% 48.2%,13.1% 54%,11.8% 61.6%,16.2% 60.2%,18.3% 57%,20.3% 58.8%,20.25% 73.4%,14.4% 78.2%,10.6% 77.8%,8.6% 79.35%,5.1% 76%);
}
.kuil-layer-scripture {
  z-index:539;
  clip-path:polygon(62.6% 48.5%,62.6% 29%,67.5% 27.6%,72% 24.7%,75.4% 26.9%,80.9% 28.3%,80.9% 44.7%,82.1% 47%,81.8% 53.85%,64.5% 53.85%);
}
.kuil-layer-festival {
  z-index:798;
  clip-path:polygon(65.6% 67.9%,67.8% 65%,70% 65.5%,71.6% 63.5%,72.5% 60.5%,74% 63.6%,77.9% 65.8%,78.2% 57.6%,81.7% 53.25%,84.1% 52.65%,88.6% 55.9%,88.3% 60.8%,87.4% 68.1%,90.5% 68.4%,91% 74%,90.5% 79.8%,67.25% 79.8%,65.8% 76.4%);
}
.kuil-lamp-light {left:72.7%;top:62.9%;}

.adv-kristian .exhibit-preview.nearby::before {opacity:.6;}
.gereja-festival-clue .clue-image {border-radius:9px;object-fit:cover;}
.gereja-exhibit-status {text-align:center;font-size:.87rem;}
.belief-arrival {
  position:absolute;inset:0;z-index:5;display:grid;place-items:center;pointer-events:none;
  background:radial-gradient(ellipse at center,#edcb87f7 0 27%,#7d5836d6 73%,#473520f2);
  animation:belief-arrival .71s ease-in both;
}
.belief-arrival img {width:min(41vw,470px);height:58%;object-fit:contain;filter:drop-shadow(0 10px 8px #542c2650);}
@keyframes belief-arrival {
  0%,23% {opacity:1;}
  100% {opacity:0;}
}
.gereja-tree-lights {position:absolute;z-index:796;pointer-events:none;}
.gereja-tree-lights i {
  position:absolute;width:4px;aspect-ratio:1;border-radius:50%;background:#fff6be;
  box-shadow:0 0 10px 3px #ffdd87a8;animation:gereja-tree-glow 4.4s ease-in-out infinite;
}
.gereja-tree-lights i:nth-child(2) {left:70%;top:33%;animation-delay:-1.6s;}
.gereja-tree-lights i:nth-child(3) {left:19%;top:58%;animation-delay:-1s;}
.gereja-tree-lights i:nth-child(4) {left:67%;top:75%;animation-delay:-3.1s;}
@keyframes gereja-tree-glow {0%,100% {opacity:.28;} 50% {opacity:.9;}}
@media (max-aspect-ratio:6/5) {
  .adv-kristian:has(.belief-interior) {
    background:linear-gradient(#4c376e99,#4c376e99),url('assets/zon1/gereja-dalaman.webp') center / cover;
  }
}

.gereja-tree-lights {left:72.6%;top:52.5%;width:5.4%;height:17%;}
.gereja-layer-sanctuary {
  z-index:500;
  clip-path:polygon(31.35% 44.8%,32% 36.4%,36.9% 33.3%,39.4% 28.6%,43.3% 29.2%,48.2% 24.9%,51.5% 24.9%,54.7% 29.2%,58.35% 27%,61.4% 33.5%,67% 35.9%,68.05% 44.7%,65.1% 47.3%,63.3% 47.3%,63.4% 49.9%,60.5% 49.9%,60.7% 47.3%,36.6% 47.2%);
}
.gereja-layer-pews {
  z-index:651;
  clip-path:polygon(23.9% 65.3%,24.2% 55.5%,26% 55%,26% 49.8%,37.7% 49.8%,37.8% 59.7%,36.15% 60%,36.4% 65.3%,23.9% 65.3%,57.4% 65.3%,57.4% 49.8%,68.55% 49.8%,68.6% 55.25%,70.5% 55.25%,70.65% 65.3%,58.4% 65.3%,57.4% 65.3%);
}
.gereja-layer-lectern {
  z-index:464;
  clip-path:polygon(71.35% 38.85%,72.55% 34.2%,75.4% 34.8%,76% 28.6%,79.1% 28.2%,81.8% 29.8%,81.5% 45.15%,75.8% 44.7%,75.45% 46.35%,71.5% 46.35%);
}
.gereja-layer-christmas {
  z-index:753;
  clip-path:polygon(71.15% 71.3%,71.5% 65.2%,72.35% 60.15%,74% 55.8%,74.6% 49.9%,75.9% 47.9%,77% 50.3%,77.7% 55%,79% 58%,81% 59.2%,81.5% 65%,82.3% 67.4%,82.15% 75.3%,71.35% 75.3%);
}
.gereja-layer-easter {
  z-index:760;
  clip-path:polygon(83.7% 73.5%,84.7% 66%,85.45% 62.5%,86.15% 62.1%,86.25% 50.85%,94.7% 51.1%,94.05% 64.7%,94.8% 66.6%,95.5% 71.65%,95.4% 75.8%,84.75% 75.8%);
}
.gereja-layer-porch {
  z-index:920;
  clip-path:polygon(30.8% 80%,31.7% 77.95%,34.4% 77.95%,35.6% 80%,35% 82%,35% 89.9%,35.85% 90.9%,34.45% 98.5%,31% 98.45%,31.1% 90%,31.55% 89.5%,31.4% 82%,30.8% 80%,62.5% 80%,63.6% 77.9%,66.3% 77.9%,67.5% 80.25%,67% 82%,67% 89.5%,67.3% 90.9%,67.3% 98.45%,64.25% 98.45%,62.6% 91%,63.15% 89.65%,63% 82%,62.5% 80%);
}

.adv-sikh .exhibit-preview.nearby::before {opacity:.6;}
.gurdwara-etiquette {display:grid;place-items:center;margin:.45em auto;}
.gurdwara-etiquette img {width:min(42vw,255px);max-height:20dvh;object-fit:contain;border-radius:9px;}
.gurdwara-lesson .clue-image:not([alt="Gurdwara"]) {border-radius:9px;object-fit:cover;}
.gurdwara-volunteer {
  position:absolute;left:21%;top:64%;z-index:640;width:clamp(38px,5vw,77px);
  max-height:13.2dvh;object-fit:contain;object-position:bottom;translate:-50% -100%;
  pointer-events:none;transform-origin:bottom;animation:idle-ejen 3.1s ease-in-out infinite;
  filter:drop-shadow(0 3px 2px #3c241a50);
}
.gurdwara-ambient {
  position:absolute;z-index:785;pointer-events:none;left:81.2%;top:67.1%;
  width:17%;height:25%;translate:-50% -50%;
  background:radial-gradient(ellipse,#ffe3a32e,transparent 68%);
  animation:wat-lantern-glow 5s ease-in-out infinite;
}
.gurdwara-layer-darbar {z-index:566;clip-path:polygon(22% 52%,24% 44%,41.8% 44%,42.5% 46.9%,47.5% 47.7%,47.8% 56.5%,41.8% 56.3%,41.65% 54.9%,21.4% 54.9%);}
.gurdwara-layer-palki {z-index:560;clip-path:polygon(57% 48%,59.4% 46%,59.8% 43%,59.6% 28%,62.2% 18%,77.2% 18%,80.1% 27.9%,80.2% 46.8%,81.9% 48.3%,82% 54.9%,81.45% 55.9%,76.55% 55.9%,76.8% 54.9%,59.2% 54.9%);}
.gurdwara-layer-langar {z-index:640;clip-path:polygon(7.3% 57%,7.5% 52.9%,10.7% 47.2%,15.7% 46.7%,16.1% 50.1%,19.6% 51.05%,19.35% 55.8%,19.1% 58.5%,7.3% 64%);}
.gurdwara-layer-vaisakhi {z-index:786;clip-path:polygon(72.1% 69.95%,73.1% 62%,75% 61.2%,76.7% 59.6%,79% 61.8%,80% 55.8%,85.8% 55.1%,90.9% 55.6%,91.1% 65.7%,91.9% 70.8%,91.7% 78.1%,73% 78.5%);}
.gurdwara-layer-porch {z-index:930;clip-path:polygon(21% 82%,31% 81%,34.9% 79%,35.8% 77.4%,36.6% 77.4%,37.8% 81%,37.2% 90.5%,36.2% 98.5%,21% 98.5%,21% 82%,61.55% 81%,62.25% 77.5%,63.45% 77.5%,64.3% 80.8%,66% 81%,78.1% 83.2%,78.1% 98.6%,63.1% 98.6%,62.75% 90.5%,61.9% 81%);}
@media (max-aspect-ratio:6/5) {
  .adv-sikh:has(.belief-interior) {
    background:linear-gradient(#51433499,#51433499),url('assets/zon1/gurdwara-dalaman.webp') center / cover;
  }
  .gurdwara-volunteer {max-height:12vw;}
}

.adv-alam {
  background:#284523;
  animation:forest-arrive .7s ease-out both;
}
@keyframes forest-arrive {from {opacity:.15;filter:brightness(.76)} to {opacity:1;filter:brightness(1)}}
.adv-alam .adv-caption {
  width:min(76%,760px);
}
.adv-alam .adv-caption h1 {
  font-size:clamp(.95rem,2.7vw,2.58rem);
  text-wrap:balance;
}
.adv-alam .forest-world .adv-player {width:clamp(36px,4.1vw,72px);}
.adv-alam .forest-world .player-art {max-height:12.75dvh;}
.forest-world .indoor-npc {
  width:clamp(38px,5.9vw,92px);
  min-width:30px;
}
.forest-world .indoor-npc .node-art {max-height:12.7dvh;animation:forest-breathe 3.8s ease-in-out infinite;}
@keyframes forest-breathe {50% {transform:scale(.996,1.025) rotate(.75deg);}}
.forest-blink {
  position:absolute;top:28.3%;left:40.5%;width:6%;height:5%;pointer-events:none;
  border-radius:60%;background:#472c21;
  box-shadow:1.02em -.10em #472c21;
  font-size:clamp(6px,1.16vw,16px);
  opacity:0;
  animation:forest-blink 8s ease-in-out infinite;
}
@keyframes forest-blink {0%,49%,51.3%,100% {opacity:0} 49.6%,50.6% {opacity:.86}}
.forest-world .exhibit-preview .indoor-hint {display:none;}
.forest-world .exhibit-preview::before {inset:-7%;background:radial-gradient(ellipse,#fff2ae50,transparent 71%);}
.forest-world .exhibit-preview:not(.nearby):hover:not(:focus-visible)::before {opacity:0;}
.forest-world .exhibit-preview:is(.nearby,:focus-visible)::before {opacity:1;}
.forest-world .exhibit-preview:focus-visible .indoor-hint {display:block;}
.forest-world .indoor-npc:not(.nearby):hover .node-art {filter:drop-shadow(0 3px 2px #31492e75);scale:1;}
.adv-alam .adv-interact .adv-button {text-wrap:balance;}
.forest-world .forest-layer-canopy {
  z-index:395;
  clip-path:polygon(17% 0,84% 0,85% 12%,81% 17%,76% 18%,73% 30%,71.8% 35%,69.4% 34%,69.3% 27%,66.1% 25%,65.2% 33%,61% 33%,59% 28%,54% 26%,44% 27%,39% 31%,36.2% 34%,34.8% 33%,34.5% 26%,31.2% 27%,28% 35.7%,26.6% 35.7%,26.8% 27%,22% 22%,18% 17%);
  transition:opacity .24s ease;
}
.forest-world.under-canopy .forest-layer-canopy {opacity:.3;}
.forest-world.behind-trunk .forest-layer-roots {opacity:.25;}
.forest-layer-roots {
  z-index:520;transition:opacity .24s ease;
  clip-path:polygon(48% 6%,54% 8%,57% 16%,64% 17%,61% 25%,59% 32%,60% 37%,64% 39%,68% 41%,72% 44%,72% 48%,69% 50%,63% 52%,56% 53%,43% 53%,33% 51%,26% 48%,26% 43%,32% 41%,39% 37%,42% 34%,43% 28%,41% 23%,36% 21%,39% 16%,44% 17%);
}
.forest-layer-nature {
  z-index:672;
  clip-path:polygon(5% 53%,7% 50%,10% 48%,12% 49%,14% 53%,16% 52.5%,19.6% 51.3%,22% 57.4%,23% 58%,25% 61%,22% 62%,19% 63%,15.5% 68.7%,9.7% 69.4%,6% 69%,4% 66%);
}
.forest-layer-seats {
  z-index:712;
  clip-path:polygon(27% 66%,28.4% 64.8%,29% 62.5%,31% 61%,33.3% 60%,34.4% 61.5%,34.3% 64%,32.2% 66%,31.5% 70.3%,29.2% 71.1%);
}
.forest-layer-heritage {
  z-index:708;
  clip-path:polygon(72% 54%,74% 54%,75.5% 50.3%,91.8% 53.3%,92% 59%,93% 58%,95% 61%,96.5% 64%,93% 68%,88.5% 69%,86% 69%,85% 71.2%,75.3% 69%,73.5% 66.5%,70% 65.5%,69% 62%);
}
.forest-layer-ferns {
  z-index:948;
  clip-path:polygon(0 80%,5% 81%,11% 84%,13% 88%,23% 87%,28% 94%,34% 87%,40% 89%,39% 100%,61% 100%,59% 90%,67% 87%,73% 90%,79% 85%,83% 86%,91% 81%,100% 79%,100% 100%,0 100%);
}
.forest-air {position:absolute;inset:0;z-index:670;pointer-events:none;overflow:hidden;}
.forest-rays {
  position:absolute;inset:0;
  background:radial-gradient(ellipse at 28% 73%,#ffeb8454,transparent 32%),
    radial-gradient(ellipse at 60% 74%,#ffeb8438,transparent 29%);
  mix-blend-mode:screen;
  animation:forest-light 11s ease-in-out infinite alternate;
}
@keyframes forest-light {from {opacity:.28;transform:translate(-3%,-1%);} to {opacity:.56;transform:translate(3%,1%);}}
.forest-leaf,.forest-mote {
  position:absolute;left:var(--fx);top:var(--fy);animation-delay:var(--phase);
}
.forest-leaf {
  width:clamp(6px,1vw,15px);height:clamp(4px,.56vw,9px);
  background:linear-gradient(162deg,#e3ea61,#6d9c2f);border:1px solid #4d692c;border-radius:0 90%;
  animation:forest-fall 15s var(--phase) linear infinite;
}
@keyframes forest-fall {
  0% {opacity:0;transform:translate(0,0) rotate(-25deg);}
  12%,65% {opacity:.82;}
  36% {transform:translate(4vw,13vh) rotate(75deg);}
  72%,100% {opacity:0;transform:translate(-1vw,43vh) rotate(190deg);}
}
.forest-mote {
  width:4px;height:4px;border-radius:50%;background:#fff4a7;box-shadow:0 0 8px #f5e985d9;
  animation:forest-drift 14s var(--phase) ease-in-out infinite;
}
@keyframes forest-drift {
  0%,100% {opacity:0;transform:translate(-1vw,3vh);}
  50% {opacity:.85;transform:translate(3.5vw,-4vh);}
}
.forest-vine {
  position:absolute;top:18%;height:10%;width:4px;
  border-radius:40% 35% 70% 30%;
  background:linear-gradient(90deg,#52691f,#b0bf53,#465826);
  transform-origin:top;animation:forest-vine-sway 5s ease-in-out infinite alternate;
}
.forest-vine::after,.forest-vine::before {
  content:"";position:absolute;top:40%;right:2px;width:.58vw;height:.44vw;
  border-radius:90% 0;background:#93a839;box-shadow:0 1px #375429;
}
.forest-vine::after {top:76%;left:2px;transform:scaleX(-1);}
.forest-vine-left {left:27.49%;}
.forest-vine-right {left:72.05%;height:13%;animation-delay:-2s;}
@keyframes forest-vine-sway {from {transform:rotate(-3deg)} to {transform:rotate(4deg)}}
.forest-butterfly {
  position:absolute;top:55%;left:25%;width:clamp(12px,1.2vw,19px);height:12px;
  animation:forest-flutter 22s ease-in-out infinite;
}
.forest-butterfly-right {top:56%;left:67%;animation-delay:-11s;}
.forest-butterfly::before,.forest-butterfly::after {
  content:"";position:absolute;left:0;width:50%;height:100%;
  border-radius:100% 100% 22% 74%;background:#ffe291;border:1px solid #ad5b2c;
  transform-origin:right center;animation:forest-wing .48s ease-in-out infinite alternate;
}
.forest-butterfly::after {
  left:50%;border-radius:100% 100% 74% 22%;transform-origin:left center;
}
@keyframes forest-wing {to {scale:.32 1;}}
@keyframes forest-flutter {
  0%,100% {opacity:0;transform:translate(0,0);}
  12%,82% {opacity:.94;}
  35% {transform:translate(5vw,-8vh) rotate(13deg);}
  58% {transform:translate(12vw,-5vh) rotate(-14deg);}
  84% {transform:translate(16vw,2vh) rotate(16deg);}
}
.forest-sheet .forest-lesson-image {
  display:block;width:min(100%,425px);height:min(26dvh,250px);
  object-fit:cover;border-radius:11px;border:2px solid #865b37;margin:0 auto;
}
.forest-sheet .forest-note {font-size:.9em;color:#664526;}
.forest-note a {color:#345323;text-decoration:underline;text-underline-offset:2px;}
.forest-story-scene {
  position:relative;display:grid;grid-template-columns:min(23%,112px) 1fr;
  align-items:end;gap:.6rem;
}
.forest-story-scene .forest-lesson-image {animation:forest-story-reveal .38s ease-out both;}
@keyframes forest-story-reveal {from {opacity:.4;translate:0 3px} to {opacity:1;translate:0 0}}
.forest-story-teller {
  position:relative;width:100%;aspect-ratio:1;
  align-self:center;animation:forest-breathe 3.6s ease-in-out infinite;
}
.forest-story-teller img.npc-portrait {
  display:block;width:100%;height:100%;max-width:none;max-height:none;
  object-fit:contain;border:0;background:none;
}
.forest-story-body {clip-path:polygon(0 0,100% 0,100% 100%,0 100%,0 86%,39% 86%,39% 66%,30% 55%,0 56%);}
.forest-story-teller img.forest-story-arm {
  position:absolute;inset:0;clip-path:polygon(24% 52%,31% 52%,40% 67%,40% 87%,22% 87%);
  transform-origin:31% 58%;animation:forest-gesture 3.4s ease-in-out infinite;
}
@keyframes forest-gesture {0%,100% {rotate:0deg} 42% {rotate:23deg} 62% {rotate:15deg}}
.forest-story-mouth {
  position:absolute;left:50.7%;top:35.3%;width:11%;height:4.5%;
  background:#733923;border-radius:15% 20% 75% 65%;opacity:0;
  animation:forest-talk .85s ease-in-out 5;
}
@keyframes forest-talk {30%,73% {opacity:.84;scale:.8 1.18;} 60%,100% {opacity:0;}}
.forest-story-card .story-audio-status:empty {display:none;}

@media (max-aspect-ratio:6/5) {
  .adv-alam {background:linear-gradient(#223c249e,#223c249e),url('assets/zon1/hutan-ara.webp') center/cover;}
  .adv-alam .adv-caption {top:max(55px,12dvh);width:90%;}
  .adv-alam .adv-caption h1 {font-size:clamp(1.05rem,4.2vw,1.75rem);}
  .adv-alam .forest-world .player-art,.adv-alam .forest-world .indoor-npc .node-art {max-height:14vw;}
  .adv-alam .adv-dpad {bottom:56px;}
}
@media (prefers-reduced-motion:reduce) {
  .adv-alam,.forest-air *,.forest-air *::before,.forest-air *::after,
  .forest-world .indoor-npc .node-art,.forest-blink,.forest-story-scene .forest-lesson-image,
  .forest-story-teller,.forest-story-teller img.forest-story-arm,.forest-story-mouth {animation:none;}
  .forest-world :is(.forest-layer-canopy,.forest-layer-roots) {transition:none;}
}
.forest-grass {
  position:absolute;top:80%;left:35.6%;width:1.4%;height:2%;
  background:#8cab39;clip-path:polygon(49% 100%,22% 51%,0 41%,21% 39%,40% 57%,36% 0,56% 31%,58% 70%,86% 25%,100% 20%,69% 100%);
  transform-origin:bottom;animation:forest-vine-sway 3.5s ease-in-out infinite alternate;
}
.forest-grass-right {top:79.35%;left:64%;animation-delay:-1s;}
@media (prefers-reduced-motion:reduce) {.forest-grass {animation:none;}}

/* Shared one-click approach feedback; never covers or captures game input. */
.auto-destination {position:absolute;translate:-50% -50%;width:clamp(14px,2.2%,32px);aspect-ratio:2;
  border:3px solid #fff2a3;border-radius:50%;background:#ffd65e44;box-shadow:0 0 9px #ffe184;
  z-index:990;pointer-events:none;animation:auto-destination-pulse .8s ease-in-out infinite alternate;}
.auto-destination::after {content:'✦';position:absolute;left:50%;top:-1.3em;translate:-50%;color:#fff4b2;font-size:clamp(13px,1.6vw,23px);text-shadow:0 1px 2px #70451f;}
.adv-world .auto-selected {outline:3px solid #ffdc72;outline-offset:3px;border-radius:8px;filter:drop-shadow(0 0 5px #ffdd83);}
.adv-interact:not(:empty) {pointer-events:none;padding:.4em .8em;border:2px solid #b57a39;border-radius:12px;
  background:#fff1c4ed;color:#51301a;font:800 clamp(.7rem,1.2vw,1rem)/1.2 var(--display);}
.adv-interact:empty {display:none;}
@keyframes auto-destination-pulse {to{opacity:.65;scale:.9;}}
@media(prefers-reduced-motion:reduce){.auto-destination{animation:none;}}
