/* LOVUNIO Worlds pilot: the live world experience sits alongside the existing Grove. */
.worlds{padding:40px clamp(12px,3vw,38px) 48px;border-top:1px solid #aaa1ff24;border-bottom:1px solid #aaa1ff24;background:radial-gradient(ellipse at 50% 0%,#35427b39,transparent 60%)}
.worlds-head{max-width:1120px;margin:0 auto 24px;display:flex;align-items:end;justify-content:space-between;gap:20px}.worlds-kicker{font-size:10px;letter-spacing:.24em;color:#c9b8ff;font-weight:600}.worlds-head h2{font-size:clamp(27px,4vw,43px);font-weight:300;letter-spacing:.015em;margin:8px 0}.worlds-head p{max-width:580px;color:#c4c1df;font-size:13px;line-height:1.65;margin:0}.worlds-actions{display:flex;gap:9px;flex-wrap:wrap}.worlds button{font:inherit;cursor:pointer}.worlds-primary,.worlds-secondary{min-height:44px;border:1px solid #b4a4ed9c;border-radius:12px;padding:10px 15px;color:#fff;background:linear-gradient(110deg,#526fc2,#8856ac);box-shadow:0 8px 26px #5d4a9a38}.worlds-secondary{background:#151631b8;box-shadow:none}
.world-map{max-width:1120px;margin:auto;min-height:360px;position:relative;overflow:hidden;border:1px solid #9794e34d;border-radius:26px;background:radial-gradient(ellipse at 51% 83%,#a76aff52,transparent 23%),radial-gradient(ellipse at 51% 78%,#5cbaff44,transparent 46%),radial-gradient(ellipse at 70% 16%,#d77bff22,transparent 23%),linear-gradient(180deg,#0b1130ed,#11112c 67%,#0b0b1e);box-shadow:inset 0 0 90px #526ac22a,0 22px 75px #02030c8c}
.world-map:before,.world-map:after{content:"";position:absolute;inset:-40% -10%;pointer-events:none;border:1px solid #a7afff25;border-radius:50%;transform:rotate(-16deg)}.world-map:after{inset:-31% 19%;transform:rotate(24deg);border-color:#e8abff20}.world-stars{position:absolute;inset:0;pointer-events:none;background-image:radial-gradient(1px 1px at 8% 20%,#fff 98%,transparent),radial-gradient(2px 2px at 17% 64%,#bcd5ff 98%,transparent),radial-gradient(1px 1px at 34% 13%,#fff 98%,transparent),radial-gradient(1px 1px at 78% 25%,#fff 98%,transparent),radial-gradient(2px 2px at 89% 72%,#f7c3ff 98%,transparent),radial-gradient(1px 1px at 67% 56%,#fff 98%,transparent),radial-gradient(1px 1px at 50% 32%,#c4caff 98%,transparent);opacity:.85}
.world-map-caption{position:absolute;top:19px;left:22px;z-index:2;color:#dbd4ff;font-size:10px;letter-spacing:.17em}.world-map-count{position:absolute;right:22px;top:19px;z-index:2;color:#a9e7dd;font-size:10px;letter-spacing:.14em}.world-island{position:absolute;left:50%;top:54%;width:min(60%,580px);height:160px;transform:translate(-50%,-50%);border-radius:50%;background:radial-gradient(ellipse,#8e69d3a8 0,#5278b085 41%,#24235c55 66%,transparent 72%);filter:drop-shadow(0 18px 30px #8a5cff32);animation:realm-island 8s ease-in-out infinite}.world-island:before{content:"";position:absolute;inset:24% 6% 14%;border-radius:50%;border-top:2px solid #d8c3ff7a;box-shadow:0 -8px 24px #97b4ff37}.world-island:after{content:"✧";position:absolute;left:48%;top:7%;font-size:39px;color:#fff4c7;text-shadow:0 0 18px #fcdb94,0 0 48px #caaaff;animation:realm-star 3s ease-in-out infinite}.world-nodes{position:absolute;z-index:3;inset:55px 16px 40px;display:flex;align-items:center;justify-content:center;gap:clamp(12px,5vw,74px);pointer-events:none}.world-node{pointer-events:auto;width:clamp(115px,17vw,180px);min-height:94px;text-align:center;border:1px solid #c2adff62;border-radius:17px;background:#100f2bce;backdrop-filter:blur(12px);padding:13px 11px;color:#fff;box-shadow:0 12px 35px #0505148a;transition:transform .2s,border-color .2s}.world-node:hover{transform:translateY(-5px);border-color:#edcaff}.world-node .node-icon{display:block;font-size:23px;color:#dfc1ff;text-shadow:0 0 18px #a68dff}.world-node strong{display:block;font-size:12px;font-weight:500;margin:5px 0}.world-node small{display:block;font-size:9px;color:#b5b3d7;line-height:1.4}.world-map-bottom{position:absolute;left:20px;right:20px;bottom:15px;z-index:3;display:flex;justify-content:space-between;gap:10px;color:#aaa8ce;font-size:10px}.world-room-list{max-width:1120px;margin:14px auto 0;display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:11px}.world-room-card{border:1px solid #9c8edf4a;border-radius:15px;background:#17152fbf;padding:14px;display:flex;align-items:center;justify-content:space-between;gap:10px}.world-room-card strong{display:block;font-size:12px;font-weight:500}.world-room-card small{display:block;color:#aaa8ce;font-size:10px;margin-top:5px}.world-live-dot{color:#9ff2ce;font-size:9px;letter-spacing:.1em;white-space:nowrap}.world-empty{max-width:1120px;margin:12px auto;color:#aaa8ce;font-size:11px}
.world-dialog{width:min(1050px,calc(100% - 22px));padding:0;max-width:none;border:1px solid #b5a1ff80;border-radius:24px;background:#0d1022;overflow:hidden;color:#f8f4ff;box-shadow:0 30px 120px #000e}.world-dialog::backdrop{background:#03040dcc;backdrop-filter:blur(8px)}.world-dialog-inner{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(270px,.8fr);min-height:560px}.world-stage{position:relative;min-height:490px;overflow:hidden;display:flex;align-items:center;justify-content:center;background:radial-gradient(ellipse at 50% 79%,#a65eff5c,transparent 32%),radial-gradient(ellipse at 50% 80%,#55a7ff4a,transparent 54%),linear-gradient(180deg,#090e28,#141235 64%,#080a1b)}.world-stage[data-scene="sun"]{background:radial-gradient(ellipse at 62% 38%,#ffc76c7a,transparent 24%),radial-gradient(ellipse at 50% 81%,#dc83c25a,transparent 36%),linear-gradient(180deg,#25173d,#312345 67%,#090a1b)}.world-stage[data-scene="moon"]{background:radial-gradient(ellipse at 40% 31%,#8dc9ff67,transparent 25%),radial-gradient(ellipse at 50% 80%,#6647c66b,transparent 40%),linear-gradient(180deg,#091734,#181338 68%,#080a1b)}.world-stage:before{content:"";position:absolute;left:5%;right:5%;bottom:17%;height:25%;border-radius:50%;border-top:2px solid #dfc4ff8c;box-shadow:0 -18px 65px #845cff49;transform:rotate(-3deg)}.world-stage-illustration{position:absolute;left:50%;bottom:18%;width:min(64%,430px);height:180px;transform:translateX(-50%);border-radius:50%;background:radial-gradient(ellipse,#9e77e99c,#568bd785 44%,#20295d27 70%,transparent 73%);filter:drop-shadow(0 12px 22px #8b5eff45);pointer-events:none}.world-stage-illustration:before{content:"";position:absolute;left:45%;bottom:50%;width:20px;height:115px;border-radius:50% 50% 35% 35%;background:linear-gradient(90deg,#433771,#e5c5ff 45%,#7351a6);box-shadow:0 0 24px #cfadff8c;transform:rotate(9deg)}.world-stage-illustration:after{content:"✦";position:absolute;left:44%;top:3%;font-size:66px;color:#f4e4ff;text-shadow:0 0 16px #e4c5ff,0 0 45px #b797ff;animation:realm-star 4s ease-in-out infinite}.world-video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:1;background:transparent}.world-video[hidden]{display:none}.world-stage-top{position:absolute;z-index:3;top:16px;left:18px;right:18px;display:flex;justify-content:space-between;align-items:center;gap:8px}.world-live-pill,.world-viewer-pill{border:1px solid #ffffff3c;background:#070a20bc;border-radius:30px;padding:7px 11px;font-size:10px;letter-spacing:.09em;backdrop-filter:blur(12px)}.world-live-pill i{font-style:normal;color:#ff819f}.world-stage-title{position:absolute;z-index:3;left:22px;bottom:30px;text-shadow:0 2px 14px #000}.world-stage-title h3{font-size:clamp(23px,3vw,34px);font-weight:300;margin:5px 0}.world-stage-title p{font-size:11px;color:#d6d0ed;margin:0}.world-stream-hint{position:absolute;z-index:2;top:52%;left:50%;width:min(80%,420px);transform:translate(-50%,-50%);text-align:center;color:#e4dcff;font-size:12px;line-height:1.6;text-shadow:0 2px 12px #08071b}.world-stream-hint[hidden]{display:none}.world-side{display:flex;flex-direction:column;border-left:1px solid #9d93d536;background:#111126;padding:20px;min-width:0}.world-side-head{display:flex;align-items:start;justify-content:space-between;gap:8px}.world-side h3{font-size:17px;font-weight:400;margin:0}.world-side p{font-size:11px;color:#b3b0d2;line-height:1.55}.world-close{border:0;background:none;color:#fff;font-size:24px;line-height:1}.world-choice-label{font-size:9px;letter-spacing:.18em;color:#c9b7ff;margin:15px 0 9px}.world-question{font-size:13px;line-height:1.5;margin:0 0 10px}.world-choice{display:block;width:100%;min-height:44px;margin:7px 0;padding:10px 12px;text-align:left;border:1px solid #8f86c766;border-radius:11px;color:#f5f0ff;background:#211e3e;transition:background .18s,border-color .18s}.world-choice:hover,.world-choice.selected{border-color:#e1c2ff;background:#4a376e}.world-choice:disabled{cursor:default;opacity:.72}.world-vote-status{min-height:32px;font-size:10px;color:#bfb9df}.world-controls{margin-top:auto;padding-top:12px;border-top:1px solid #9188c52b}.world-control-row{display:flex;gap:7px;flex-wrap:wrap}.world-control-row button{flex:1 1 120px;min-height:42px;border:1px solid #a89bdd76;background:#201d3d;color:#fff;border-radius:10px;padding:9px;font-size:11px}.world-control-row button[hidden]{display:none}.world-host-summary{font-size:9px;color:#9795ba;margin-top:9px;line-height:1.5}.world-share{border:1px solid #9e91d25c;color:#ded6fa;background:#17172f;border-radius:9px;padding:8px 10px;font-size:10px}.world-host-video{position:absolute;right:16px;bottom:16px;z-index:4;width:clamp(100px,20%,190px);aspect-ratio:16/10;object-fit:cover;border:1px solid #d9c8ff80;border-radius:12px;box-shadow:0 8px 25px #000a}.world-toast{position:fixed;z-index:150;bottom:18px;left:50%;transform:translateX(-50%);max-width:min(92vw,460px);border:1px solid #bdadf4;border-radius:12px;background:#171633;color:#fff;padding:12px 16px;font-size:12px;box-shadow:0 12px 45px #000a;display:none}.world-toast.show{display:block}.world-reward{border:1px solid #dccbff38;border-radius:10px;background:#ffffff07;padding:10px;font-size:10px;line-height:1.5;color:#c8c4e3;margin-top:10px}.world-reward strong{color:#f0d9ff;font-weight:500}.worlds-nav{display:flex;gap:9px;align-items:center}.worlds-nav a{color:#d7c9ff;font-size:11px;padding:9px 10px;border-radius:20px}.worlds-nav a:hover{background:#ffffff12}.world-preflight{margin-top:8px;font-size:10px;color:#ffc8d7;line-height:1.5}
@keyframes realm-island{0%,100%{transform:translate(-50%,-50%) translateY(0)}50%{transform:translate(-50%,-50%) translateY(-7px)}}@keyframes realm-star{0%,100%{opacity:.8;scale:.96}50%{opacity:1;scale:1.08}}
@media(max-width:720px){.worlds-head{display:block}.worlds-actions{margin-top:16px}.world-map{min-height:390px}.world-nodes{inset:68px 10px 45px;flex-wrap:wrap;align-content:center;gap:10px}.world-node{width:calc(50% - 10px);min-height:85px;padding:10px 7px}.world-island{width:85%;height:180px;top:57%}.world-map-bottom{left:12px;right:12px;font-size:9px}.world-dialog-inner{grid-template-columns:1fr}.world-stage{min-height:48vh;min-height:48dvh}.world-side{border-left:0;border-top:1px solid #9d93d536;max-height:48dvh;overflow:auto;padding:16px}.world-controls{margin-top:14px}.world-host-video{width:112px}.world-stage-title{bottom:17px;left:16px}.world-side h3{font-size:15px}}
@media(max-width:430px){.world-map{min-height:410px}.worlds-head p{font-size:12px}.worlds-actions button{flex:1}.world-stage{min-height:42dvh}.world-side{max-height:53dvh}.world-map-caption{left:13px;font-size:8px}.world-map-count{right:13px;font-size:8px}.world-node strong{font-size:11px}}
@media(prefers-reduced-motion:reduce){.world-island,.world-stage-illustration:after{animation:none!important}}
.world-remote-media{position:absolute;inset:0;z-index:1;overflow:hidden}.world-remote-media:empty{display:none}.world-remote-media video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;background:#050716}.world-remote-media audio{position:absolute;width:1px;height:1px;opacity:.01;pointer-events:none}.world-livekit-video,.world-livekit-audio{z-index:1}
.world-name-label{display:flex;flex-direction:column;gap:6px;width:100%;font-size:10px;color:#c9b8ff}.world-name-label input{width:100%;min-height:42px;border:1px solid #b4a4ed70;border-radius:10px;background:#101128;color:#fff;padding:10px 12px}.worlds-actions{max-width:340px}
.world-control-row button:disabled{opacity:.55;cursor:wait}#worldInvite{width:100%;padding:10px;margin-top:10px;border:1px solid #a89bdd76;border-radius:10px;background:#0c1028;color:#fff;font:inherit;font-size:11px}.world-name-label input:focus-visible,#worldInvite:focus-visible{outline:2px solid #e1c2ff;outline-offset:3px}

/* Broadcast mode remains available without a webcam or OBS source. */
.world-name-label select{width:100%;min-height:42px;border:1px solid #aaa0c766;border-radius:12px;background:#111126;color:#f3edff;padding:10px 12px;font:inherit;color-scheme:dark}

/* Creator access stays within reach; room actions take priority. */
.creator-menu-shortcut{position:fixed;right:max(18px,env(safe-area-inset-right));bottom:max(18px,env(safe-area-inset-bottom));z-index:90;min-height:48px;border:1px solid #d9b9ff;border-radius:999px;padding:12px 19px;background:linear-gradient(120deg,#554196,#7b458a);color:#fff;box-shadow:0 8px 30px #0009;font:inherit;font-size:13px;cursor:pointer}.creator-menu-shortcut:focus-visible,.worlds-nav button:focus-visible{outline:2px solid #fff;outline-offset:4px}.worlds-nav button{border:1px solid #bc9cea66;border-radius:20px;background:#6e488b55;color:#f4e8ff;padding:9px 12px;font:inherit;font-size:11px;cursor:pointer}.world-controls{margin:0 0 18px;padding:0 0 16px;border-top:0;border-bottom:1px solid #9188c52b}.world-side-head{margin-bottom:14px}.world-controls:focus{outline:none}.world-stage-title p[hidden]{display:none}.world-control-row #worldStop{border-color:#d986a47d;background:#452239}.realm-studio{scroll-margin-top:24px}@media(max-width:590px){.creator-menu-shortcut{right:12px;bottom:max(12px,env(safe-area-inset-bottom));font-size:12px;padding:11px 15px}.worlds-nav{gap:0;flex-wrap:wrap}.worlds-nav a,.worlds-nav button{font-size:10px;padding:8px}.world-side{max-height:55dvh}.world-controls{margin-top:0}.world-dialog-inner{min-height:0}.world-toast{bottom:78px}}

#worldControls[hidden]{display:none!important}.world-side #worldChoices{margin-top:4px}

/* Large live player with optional distraction-free viewing and browser fullscreen. */
.world-dialog{width:min(1680px,calc(100vw - 24px));height:min(94dvh,1040px);max-height:94dvh;margin:auto}.world-dialog-inner{height:100%;min-height:0;grid-template-columns:minmax(0,1fr) 320px}.world-stage{height:100%;min-height:0}.world-side{max-height:none;overflow-y:auto;overscroll-behavior:contain}.world-stage-top{align-items:flex-start;flex-wrap:wrap}.world-stage-actions{display:flex;align-items:center;gap:7px;flex-wrap:wrap;justify-content:flex-end}.world-stage-actions button{min-height:40px;border:1px solid #ffffff4a;background:#080d23d9;color:#fff;border-radius:20px;padding:8px 12px;font:inherit;font-size:11px;cursor:pointer;backdrop-filter:blur(12px)}.world-stage-actions button:focus-visible{outline:2px solid #dec3ff;outline-offset:3px}.world-stage-actions button[hidden]{display:none}.world-dialog[data-host="true"] .world-host-video{inset:0;z-index:1;width:100%;height:100%;aspect-ratio:auto;object-fit:contain;border:0;border-radius:0;box-shadow:none;background:#050716}.world-remote-media video{object-fit:contain}.world-dialog[data-expanded="true"] .world-dialog-inner{grid-template-columns:minmax(0,1fr)}.world-dialog[data-expanded="true"] .world-side{display:none}.world-dialog-inner:fullscreen{width:100vw;height:100dvh;max-height:none;background:#090d20;grid-template-columns:minmax(0,1fr) 320px}.world-dialog[data-expanded="true"] .world-dialog-inner:fullscreen{grid-template-columns:minmax(0,1fr)}
@media(max-width:760px){.world-dialog{width:calc(100vw - 12px);height:96dvh;max-height:96dvh;border-radius:16px}.world-dialog-inner,.world-dialog-inner:fullscreen{display:flex;flex-direction:column}.world-stage{flex:1 1 auto;min-height:49dvh;height:auto}.world-side{flex:0 1 auto;max-height:42dvh;min-height:0}.world-dialog[data-expanded="true"] .world-stage{min-height:100%;flex:1}.world-stage-top{top:12px;left:12px;right:12px;gap:7px}.world-stage-actions{gap:5px}.world-stage-actions button{min-height:40px;padding:8px 10px;font-size:10px}.world-stage-title{right:16px;max-width:calc(100% - 32px)}.world-stage-title h3{overflow-wrap:anywhere}.world-dialog-inner:fullscreen .world-stage{min-height:49dvh}}

.world-dialog[data-fullwindow="true"]{inset:0;margin:0;width:100vw;height:100dvh;max-width:100vw;max-height:100dvh;border:0;border-radius:0}
