/* Discoveries belong inside the world; nothing here changes the gate opening. */
#scene-objects .arcade-object{right:2%;top:43%;width:24%;height:16%;min-height:86px;display:flex;flex-direction:column;justify-content:flex-end;padding:10px 4px;border:2px solid #9873c8;border-radius:48% 48% 8px 8px;background:radial-gradient(ellipse at 50% 65%,#d887fa99,#68269377 38%,#110920 76%);box-shadow:inset 0 0 24px #b378e655,0 0 20px #b967e844;color:#ffe1a0;cursor:pointer;overflow:hidden}
#scene-objects .arcade-object i{font-size:32px;font-style:normal;text-shadow:0 0 20px #ffe09b}
#scene-objects .arcade-object span{font-size:clamp(10px,2.4vw,15px);padding:5px;background:#12091de8;border:1px solid #edcb8344;white-space:nowrap;letter-spacing:.05em}
#scene-objects .keeper-object{left:34%;top:53%;width:31%;height:12%;background:transparent;border:0;cursor:pointer;align-items:end}
#scene-objects .keeper-object span{font-size:clamp(11px,2.7vw,15px);padding:7px;background:#180c25c9;border:1px solid #be90df77;border-radius:8px}
.world-secret{position:absolute;pointer-events:auto;display:grid;place-items:center;width:48px;height:48px;min-width:44px;min-height:44px;background:#160a2070;border:1px solid #b387d033;border-radius:50%;color:#ffe1a5;font-size:28px;cursor:pointer;box-shadow:0 0 20px #c087ec33}
.secret-lantern{left:28%;top:35%;text-shadow:0 0 14px #f1bf5f}.secret-soul{right:23%;top:21%;background:transparent;border:0}.secret-soul img{width:48px;height:48px;object-fit:contain;filter:drop-shadow(0 0 8px #c775f1)}.secret-stone{left:30%;top:69%;border-radius:50% 50% 4px 4px;background:linear-gradient(#463d52,#201929);font-size:24px;color:#d5c1e6}
.world-secret:hover,.world-secret:focus-visible{outline:2px solid #ffdfa5;outline-offset:3px}.world-object:active,.world-secret:active{filter:brightness(1.25)}
#resident-stone{display:flex;align-items:center;justify-content:center;gap:8px;color:#ead9f7;text-decoration:none;font-size:12px;min-height:44px;padding:3px 10px;border:1px solid #b688d044;border-radius:10px;background:#120a1baa;max-width:340px;width:100%;box-sizing:border-box}#resident-stone[hidden]{display:none}#resident-stone img{width:30px;height:40px;object-fit:cover;border-radius:5px}#resident-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}#resident-stone b{margin-left:auto}.world-utilities{display:flex;gap:12px;justify-content:center;flex-wrap:wrap}.world-utilities button{min-height:44px!important;font-size:11px!important}
.world-note{font-size:12px;color:#e6c894;margin:9px 0}.discovery-tools{display:flex;gap:10px;align-items:flex-start;justify-content:center;flex-wrap:wrap}.discovery-tools>button,.discovery-tools summary{font-size:12px;color:#e0c8ed;background:#180b2380;border:1px solid #c09cdb44;padding:10px;border-radius:9px;min-height:44px;box-sizing:border-box;cursor:pointer}.discovery-tools details{max-width:320px}.discovery-tools p,.discovery-tools small{font-size:11px;line-height:1.5;color:#cbb4d8}.discovery-tools details button{font-size:11px;min-height:44px;background:transparent;border:0;color:#ffe1a5;padding:8px}.discovery-tools small{display:block}
#world-moment{box-sizing:border-box;width:min(440px,calc(100% - 28px));max-height:calc(100dvh - 40px);overflow:auto;border:1px solid #d0a3e766;border-radius:22px;background:radial-gradient(ellipse at 50% 22%,#48215c,#120a1b 65%);color:#f8efff;text-align:center;padding:25px 24px;box-shadow:0 28px 100px #000b}#world-moment::backdrop{background:#08030bd9;backdrop-filter:blur(6px)}#moment-close{position:absolute;top:7px;right:8px;background:none;border:0;color:#e9d8f5;font-size:28px;width:44px;height:44px;cursor:pointer}.world-eyebrow{display:block;font-size:9px;letter-spacing:.18em;color:#d5b0ed;padding-right:15px}#moment-art{display:block;width:min(55vw,220px);height:min(55vw,220px);object-fit:contain;margin:12px auto 5px;filter:drop-shadow(0 0 18px #b273d633)}#world-moment h2{font-size:28px;line-height:1.12;margin:8px 0 12px;overflow-wrap:anywhere}#moment-copy{font-size:15px;color:#dbcce4;line-height:1.6;white-space:pre-line;margin:0 0 18px}#moment-again{min-height:44px;color:#e8cbfa}#arcade-actions{display:grid;gap:12px}#arcade-actions[hidden],#moment-again[hidden],#moment-champion[hidden]{display:none}#arcade-actions a{display:flex;align-items:center;justify-content:center;min-height:46px;text-decoration:none}#moment-champion{background:#211628;border:1px solid #e4bd7255;color:#ffe4a7;padding:10px;border-radius:10px;font-size:13px}#arcade-actions small{font-size:11px;color:#bca7c9;line-height:1.5}#world-moment :focus-visible,[data-world-sound]:focus-visible{outline:2px solid #ffdfab;outline-offset:3px}#world-sound-status:empty{display:none}
@media(max-height:600px){#moment-art{width:120px;height:120px}#world-moment{padding:20px}#world-moment h2{font-size:23px}#moment-copy{font-size:13px}#explore-dock #resident-stone{display:none}}
@media(prefers-reduced-motion:reduce){.world-secret,.arcade-object{transition:none!important;animation:none!important}}

/* Final interaction polish keeps the approved layout and cinematic path. */
#moment-status{font-size:12px;line-height:1.5;color:#d2bdde;margin:8px 0 12px;min-height:18px}#moment-status[hidden],#moment-retry[hidden],#moment-art[hidden]{display:none}#moment-retry{font-size:12px;min-height:44px;margin:0 0 12px}#world-moment button,#world-moment a,.world-secret,.world-object{-webkit-tap-highlight-color:transparent;touch-action:manipulation}#world-moment button:active,#world-moment a:active{filter:brightness(1.18)}#world-moment{overscroll-behavior:contain;scrollbar-width:thin}#arcade-actions .button{background:linear-gradient(110deg,#ffe5a4,#ddb064);color:#26152e;border:1px solid #f3d79c;font-weight:800;border-radius:12px;box-shadow:0 3px 0 #805a30}#arcade-actions .quiet{color:#dcbfee;font-size:13px}#moment-close:active{transform:scale(.94)}
#cinema-stage.buffering #playback-status{padding:12px 16px;border-radius:12px;background:#100a19e8;border:1px solid #c18ce955;max-width:80%;line-height:1.5;font-size:13px}
#cinema-stage.buffering #playback-status:before{content:"";display:inline-block;width:10px;height:10px;margin-right:9px;border:2px solid #b688cc55;border-top-color:#efd5ff;border-radius:50%;animation:gate-wait 1s linear infinite}
@keyframes gate-wait{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){#cinema-stage.buffering #playback-status:before{animation:none}#moment-close:active{transform:none}}
/* Story-led discoveries: the artwork carries the moment. */
#world-moment[data-kind=lantern],#world-moment[data-kind=stone],#world-moment[data-kind=soul]{width:min(480px,calc(100% - 24px));padding:24px 22px 18px}
#world-moment[data-kind=lantern] #moment-art{width:min(100%,330px);height:auto;max-height:40svh;object-fit:contain;border-radius:16px;margin:12px auto 16px}
#world-moment[data-kind=stone] #moment-art{width:auto;max-width:100%;height:min(43svh,370px);border-radius:12px;margin:12px auto 16px}
#world-moment[data-kind=soul] #moment-art{animation:soul-hover 4s ease-in-out infinite}
#moment-discovery{display:inline-block;font-size:10px;letter-spacing:.12em;text-transform:uppercase;padding:6px 12px;border:1px solid #e2c08066;border-radius:20px;color:#f6d997;background:#52322344;margin:12px 0 0}#moment-discovery[hidden]{display:none}
#world-moment[data-reveal=new] #moment-discovery{animation:discovery-arrives .55s ease-out}
.moment-footer{display:flex;flex-wrap:wrap;gap:8px;justify-content:center;margin-top:16px;padding-top:12px;border-top:1px solid #b687c733}.moment-footer button{min-height:44px;font-size:13px;padding:8px 12px}.moment-footer button[hidden]{display:none}#moment-return{border:1px solid #c79adb55;border-radius:10px;background:#281333;color:#f1dcff}#moment-close{border-radius:50%;background:#1d1029;right:8px;top:8px}#moment-close:focus-visible{outline-offset:1px}
@keyframes discovery-arrives{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
@keyframes soul-hover{0%,100%{transform:translateY(0)}50%{transform:translateY(-7px)}}
@media(max-height:650px){#world-moment[data-kind=lantern] #moment-art{max-height:30svh}#world-moment[data-kind=stone] #moment-art{height:33svh}#world-moment[data-kind=soul] #moment-art{height:140px;width:140px}#world-moment h2{font-size:25px}#moment-copy{font-size:14px;line-height:1.45;margin-bottom:10px}}
@media(prefers-reduced-motion:reduce){#world-moment[data-kind=soul] #moment-art,#world-moment[data-reveal=new] #moment-discovery{animation:none}}
.weekly-podium{width:min(100%,340px);box-sizing:border-box;border:1px solid #d9b77750;border-radius:12px;background:#170d22dc;text-align:left;margin:8px auto;color:#e8d8f0}.weekly-podium summary{cursor:pointer;min-height:44px;padding:12px;box-sizing:border-box;font-size:12px;color:#f3d69d}.weekly-podium>a{display:block;color:#f4d492;font-size:12px;text-align:center;padding:12px;min-height:44px;box-sizing:border-box}[data-weekly-podium]{display:grid;gap:5px;padding:8px;font-size:12px;color:#d6bcdf}.weekly-place{display:grid!important;grid-template-columns:24px minmax(0,1fr) auto;align-items:center!important;gap:7px;padding:9px 8px!important;min-height:44px!important;border:1px solid #b78ccd33;border-radius:8px;background:#281735;color:#f0e1f9;text-decoration:none}.weekly-place strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:left;font-size:12px}.weekly-place b{font-size:13px;color:#f4d595}.weekly-place.place-1{border-color:#e8c57a66;background:#4a302844}.weekly-place:focus-visible{outline:2px solid #f4d595;outline-offset:2px}

/* Rankings live in the modal, never underneath scene hotspots. */
.weekly-podium-launch{display:flex;align-items:center;justify-content:space-between;gap:12px;box-sizing:border-box;width:min(100%,340px);min-height:44px;margin:4px auto;padding:11px 14px;border:1px solid #d9b77760;border-radius:12px;background:#1b1028ed;color:#f3d69d;font:inherit;font-size:13px;cursor:pointer}.weekly-podium-launch span{font-size:11px;color:#decbe8}.weekly-podium-launch:focus-visible{outline:2px solid #ffe2a3;outline-offset:2px}
#cinema-stage:not(.exploring-world) #scene-objects .arcade-object,#cinema-stage:not(.exploring-world) #scene-objects .keeper-object,#cinema-stage:not(.exploring-world) #scene-objects .world-secret{display:none}
#world-moment[data-kind=arcade] #moment-art{width:100px;height:100px;margin:5px auto}#world-moment[data-kind=arcade] #moment-copy{font-size:13px;line-height:1.45;margin-bottom:10px}

#telegram-fallback{padding:12px;border:1px solid #c598de55;border-radius:12px;background:#150c20}#telegram-fallback[hidden]{display:none}#telegram-fallback p{font-size:12px;margin:5px 0}#telegram-link-copy{box-sizing:border-box;width:100%;min-width:0;padding:9px;background:#090510;color:#eadbf2;border:1px solid #775888;border-radius:6px;font-size:12px}#telegram-copy{min-height:44px;cursor:pointer}

/* Keep scene destinations above the mobile action panel, including named residents. */
@media(max-width:999px) and (min-height:501px){
 #cinema-stage #scene-objects .meme-object{top:35%;right:3%;width:34%;height:15%}
 #cinema-stage[data-phase="explore"] #explore-dock{z-index:5;box-sizing:border-box;max-height:48svh;overflow-y:auto;justify-content:flex-start;padding-top:24px;scroll-padding-block:16px;-webkit-overflow-scrolling:touch}
 #explore-dock>*{flex-shrink:0}
 #explore-dock #enter-world{max-width:100%;min-width:0;white-space:normal}
}
