/* World switch: Verve & Vector <-> Shiv Arts. Direction-aware curtain + edge handle. */
#vv-sw{position:fixed;inset:0;z-index:2147483000;pointer-events:none;visibility:hidden;transform:translate3d(100%,0,0);will-change:transform;display:grid;place-items:center;overflow:hidden;contain:strict;}
#vv-sw .sw-art{width:min(62vw,440px);height:auto;opacity:.98;}
#vv-sw .sw-a-own,#vv-sw .sw-a-other{display:none;}
#vv-sw.sw-vv{background:radial-gradient(60% 50% at 50% 50%,rgba(0,219,173,.22),transparent 70%),#050E0B;}
#vv-sw.sw-sa{background:radial-gradient(60% 50% at 50% 50%,rgba(212,180,108,.22),transparent 70%),#0A0805;}
#vv-sw.sw-vv .sw-img-vv,#vv-sw.sw-sa .sw-img-sa{display:block;}
#vv-sw.sw-vv .sw-img-sa,#vv-sw.sw-sa .sw-img-vv{display:none;}
#vv-sw::after{content:"";position:absolute;top:0;bottom:0;width:2px;left:0;background:linear-gradient(transparent,currentColor,transparent);opacity:.7;}
#vv-sw.sw-vv{color:#00DBAD;} #vv-sw.sw-sa{color:#D4B46C;}
/* arriving from the other world: the curtain already covers the page, JS then slides it away */
html.vv-arrive #vv-sw{visibility:visible;transform:none;}
html.vv-arrive[data-world="vv"] #vv-sw{background:radial-gradient(60% 50% at 50% 50%,rgba(0,219,173,.22),transparent 70%),#050E0B;}
html.vv-arrive[data-world="sa"] #vv-sw{background:radial-gradient(60% 50% at 50% 50%,rgba(212,180,108,.22),transparent 70%),#0A0805;}
html.vv-arrive[data-world="vv"] #vv-sw .sw-img-vv,html.vv-arrive[data-world="sa"] #vv-sw .sw-img-sa{display:block;}
html.vv-arrive[data-world="vv"] #vv-sw .sw-img-sa,html.vv-arrive[data-world="sa"] #vv-sw .sw-img-vv{display:none;}
html.vv-swiping,html.vv-swiping body{overflow:hidden;}
html.vv-swiping *{user-select:none;-webkit-user-select:none;}

/* edge handle */
.sw-handle{position:fixed;top:50%;z-index:2147482000;width:48px;height:184px;margin-top:-92px;padding:16px 0;box-sizing:border-box;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:16px;
  touch-action:none;cursor:grab;color:#fff;text-decoration:none;border:1px solid rgba(255,255,255,.16);backdrop-filter:blur(16px) saturate(160%);-webkit-backdrop-filter:blur(16px) saturate(160%);
  transition:width .35s cubic-bezier(.2,.8,.2,1),background .3s,border-color .3s,box-shadow .35s;will-change:transform;}
.sw-handle:active{cursor:grabbing;}
html[data-world="vv"] .sw-handle{right:0;border-right:0;border-radius:22px 0 0 22px;background:linear-gradient(180deg,#4a3a17,#1d1609);color:#F2DDA6;border-color:rgba(212,180,108,.6);box-shadow:-10px 0 34px -14px rgba(212,180,108,.5);}
html[data-world="sa"] .sw-handle{left:0;border-left:0;border-radius:0 22px 22px 0;background:linear-gradient(180deg,#0b4a3d,#04140f);color:#7CF0D6;border-color:rgba(0,219,173,.6);box-shadow:10px 0 34px -14px rgba(0,219,173,.5);}
.sw-handle:hover,.sw-handle:focus-visible{width:56px;}
.sw-handle .sw-t{writing-mode:vertical-rl;font:600 .66rem/1 'Inter',system-ui,sans-serif;letter-spacing:.2em;text-transform:uppercase;white-space:nowrap;}
html[data-world="sa"] .sw-handle .sw-t{transform:rotate(180deg);} .sw-handle .sw-t{line-height:1;}
.sw-handle svg{width:18px;height:18px;flex:none;padding:5px;box-sizing:content-box;border-radius:50%;border:1px solid currentColor;}
html[data-world="vv"] .sw-handle svg{animation:swNudgeL 2.8s ease-in-out infinite;}
html[data-world="sa"] .sw-handle svg{animation:swNudgeR 2.8s ease-in-out infinite;}
@keyframes swNudgeL{0%,60%,100%{transform:translateX(0);}75%{transform:translateX(-4px);}}
@keyframes swNudgeR{0%,60%,100%{transform:translateX(0);}75%{transform:translateX(4px);}}
/* touch devices: an invisible edge strip also starts the swipe, vertical scroll stays native */
.sw-edge{position:fixed;top:0;bottom:0;width:20px;z-index:2147481000;touch-action:pan-y;display:none;}
html[data-world="vv"] .sw-edge{right:0;} html[data-world="sa"] .sw-edge{left:0;}
@media(pointer:coarse){.sw-edge{display:block;}}
@media(max-width:640px){.sw-handle{top:auto;bottom:30%;margin-top:0;width:20px;height:64px;gap:0;} .sw-handle:hover,.sw-handle:focus-visible{width:20px;} .sw-handle .sw-t{display:none;} .sw-handle svg{width:12px;height:12px;padding:3px;}}
@media(prefers-reduced-motion:reduce){.sw-handle svg{animation:none !important;} #vv-sw{transition:none;}}
@media(prefers-reduced-transparency:reduce){.sw-handle{backdrop-filter:none;background:#1a1409;}}
