.world-surface{position:fixed;inset:0;pointer-events:none;z-index:0;opacity:0;transition:opacity .7s;background:radial-gradient(ellipse at 9% 38%,#9a371d45,transparent 31%),radial-gradient(ellipse at 93% 62%,#9d421d42,transparent 36%),repeating-linear-gradient(0deg,transparent 0 63px,#b07c3b16 64px,#0008 65px 68px),repeating-linear-gradient(90deg,transparent 0 63px,#b07c3b16 64px,#0008 65px 68px)}
.world-surface:before{content:'';position:absolute;inset:0;background:repeating-linear-gradient(114deg,transparent 0 35px,#a25c3320 36px,transparent 38px 76px),repeating-linear-gradient(66deg,transparent 0 35px,#a25c3320 36px,transparent 38px 76px);mask-image:linear-gradient(90deg,#000,transparent 30% 70%,#000)}
.world-surface:after{content:'';position:absolute;inset:0;background:linear-gradient(90deg,transparent 2.2%,#090807 2.3% 2.7%,#69432b80 2.8%,#080706 3% 3.7%,transparent 3.8% 96.2%,#100907 96.3% 97%,#6c3d2580 97.1%,#0a0706 97.3% 97.7%,transparent 97.8%),radial-gradient(ellipse at 50% 12%,transparent 20%,#08060566 80%)}
.quest-summary{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-top:13px}.quest-summary #quest-progress{margin:0;font-size:9px;letter-spacing:1px;color:#89957d}.world-indicator{display:flex;align-items:center;gap:9px;color:#a2af95;font-size:9px;letter-spacing:1px}.world-dot{width:5px;height:5px;flex-shrink:0;background:#a6b993;border-radius:50%;box-shadow:0 0 10px #b7cea144}.fog{transition:opacity .8s}body{transition:background-color .7s,color .7s}.manuscript,.control,.token-slot,.unlock{transition:background-color .6s,border-color .6s,color .6s,box-shadow .6s}
body[data-world=other]{--bg:#180e0b;--text:#e0d0bc;--dim:#ae9782;--gold:#d2a779;--line:#a66b444a;background:radial-gradient(ellipse at 6% 20%,#75321945,transparent 52%),radial-gradient(ellipse at 96% 55%,#96291f30,transparent 45%),linear-gradient(105deg,#100a08,#25150e 60%,#140a08)}
body[data-world=other] .world-surface{opacity:.8}body[data-world=other] .fog{opacity:.12}body[data-world=other] .grain{opacity:.12}body[data-world=other] .frame{border-color:#b97f4b45}body[data-world=other] .frame:before,body[data-world=other] .frame:after{background:#21120d;border-color:#bd7a4d}
body[data-world=other] h1{color:#e4d4c2}body[data-world=other] h1 em{color:#d6a174}body[data-world=other] .brand,body[data-world=other] .brand svg{color:#d2b087}body[data-world=other] .intro-copy,body[data-world=other] .shelf-instruction,body[data-world=other] .selection-status,body[data-world=other] .code-status{color:#bca38b}body[data-world=other] .muted,body[data-world=other] .game-tag{color:#c3936b}
body[data-world=other] .world-indicator{color:#d1a27b}body[data-world=other] .world-dot{background:#d37f4a;box-shadow:0 0 13px #dc683a99}body[data-world=other] .quest-summary #quest-progress{color:#b1957d}body[data-world=other] .quest-nav button{color:#b6a18c}body[data-world=other] .quest-nav button span{color:#bb8c64}body[data-world=other] .quest-nav button[aria-current=step]{background:#b6502520;box-shadow:inset 0 -2px #cc8b56;color:#e5c9a7}body[data-world=other] .quest-nav button.completed span{color:#c6a273}
body[data-world=other] .manuscript{color:#39271b;background:radial-gradient(ellipse at 23% 30%,#e4bc83,transparent 80%),linear-gradient(110deg,#a4794e,#cfa56d 25%,#bd925b 80%,#8a613c);box-shadow:3px 12px 38px #0009,inset 0 0 45px #5f2d213d;transform:rotate(-.8deg)}body[data-world=other] .note-header,body[data-world=other] .note-footer{color:#724b30}body[data-world=other] .note-lead,body[data-world=other] .note-ending{color:#634028}body[data-world=other] .cipher-grid{border-color:#7c492d66;background:#6a352413}body[data-world=other] .cipher-grid pre{color:#492b1d;border-color:#7c492d66}
body[data-world=other] .control{background:#ac54210c;border-color:#b37a4d66;color:#d5b38d}body[data-world=other] .control:hover{background:#ac542124}body[data-world=other] .unlock{background:#c39568;border-color:#d5ad7d;color:#251208;box-shadow:0 0 25px #d16a2120}body[data-world=other] .unlock:hover{background:#deb589}body[data-world=other] .text-button{color:#c19e7c}body[data-world=other] .code-row input{background:#12090899;color:#e0b57d;border-color:#b27a4b66}body[data-world=other] form label{color:#bda184}
body[data-world=other] .books{filter:sepia(.25) saturate(.8)}body[data-world=other] .shelf-plank{background:repeating-linear-gradient(90deg,#1d100a 0 4px,#67422a 5px 7px,#170d09 8px 12px);border-top-color:#a16b3d77}body[data-world=other] .coin-desk,body[data-world=other] .tarot-board{background:linear-gradient(130deg,#4c2b194d,#100907aa);border-color:#aa72454d}body[data-world=other] .token-slot{background:#170b0899;border-color:#a06a3d66;color:#c7a879}body[data-world=other] .token-slot.occupied{background:radial-gradient(circle at 40% 35%,#80502b55,#1e1009)}body[data-world=other] .tarot-board .token-slot.occupied{border-color:#c18d5577}body[data-world=other] .token-face{background:radial-gradient(circle at 35% 25%,#a9784266,#3c2417 65%);border-color:#c18d5577}body[data-world=other] .tarot-token .token-face{background:linear-gradient(145deg,#482d1e,#21120d)}body[data-world=other] .token,body[data-world=other] .token-face svg,body[data-world=other] .token-slot svg{color:#d1b17c}body[data-world=other] .token:hover,body[data-world=other] .token[aria-pressed=true]{background:#b5683020;border-color:#d79e6788}body[data-world=other] .token-position,body[data-world=other] .slot-number{color:#ad8e6e}
body[data-world=other] .records details,body[data-world=other] .phone-note{background:#7d442411;border-color:#a16a454d}body[data-world=other] .records summary{color:#d5bda1}body[data-world=other] .records p,body[data-world=other] .phone-note p{color:#c4ac94}body[data-world=other] .music-panel{background:linear-gradient(140deg,#4b2a1c66,#190d09)}body[data-world=other] dialog{background:radial-gradient(ellipse at top,#593321,#21100b 65%);border-color:#be8b5d88}body[data-world=other] dialog h2{color:#e6d3b9}body[data-world=other] .help h2{color:#cfb79b}body[data-world=other] .help p,body[data-world=other] .footer{color:#9e8369}body[data-world=other] #hint-text{color:#c8ae90;background:#ae6b280d;border-color:#b57f4a}body[data-world=other] .site-signature{color:#aa927b}
body[data-world-room="4"] .fog{opacity:.07}body[data-world-room="4"]{background:radial-gradient(ellipse at 50% 18%,#667b4230,transparent 65%),linear-gradient(110deg,#111a13,#252d1d 60%,#131b12)}
.world-transition{position:fixed;inset:0;z-index:50;display:flex;align-items:center;justify-content:center;overflow:hidden;background:#080705;opacity:0;pointer-events:auto}.world-transition:before,.world-transition:after{content:'';position:absolute;inset:-20%;pointer-events:none}.world-transition:before{background:radial-gradient(ellipse at 40% 50%,#973e1d55,transparent 65%),repeating-linear-gradient(90deg,transparent 0 35px,#b06b3233 36px 37px,transparent 38px 75px),repeating-linear-gradient(0deg,transparent 0 35px,#6b351c66 36px 37px,transparent 38px 75px);transform:rotate(-12deg) scale(1.1)}.world-transition:after{background:linear-gradient(110deg,transparent 30%,#a5492445 46%,#070705 50%,#57261c55 54%,transparent 70%),repeating-linear-gradient(0deg,transparent 0 5px,#e3bc7620 6px,transparent 7px 12px);mix-blend-mode:screen}.world-transition-copy{position:relative;z-index:1;text-align:center;padding:25px;color:#d2ac81}.world-transition-copy>p:first-child{font:500 8px var(--sans);letter-spacing:3px;color:#b4906c}.world-transition-copy>p:nth-child(2){font:400 clamp(42px,7vw,78px)/1.1 var(--serif);letter-spacing:-1px;margin:21px 0 17px}.world-transition-copy>span{display:block;font:11px var(--serif);letter-spacing:8px;color:#a88461}.world-transition[data-destination=fog]{background:#0a100c}.world-transition[data-destination=fog]:before{background:radial-gradient(ellipse at 50% 50%,#73836944,transparent 70%),repeating-linear-gradient(0deg,transparent 0 35px,#a7b79216 36px,transparent 38px 75px)}.world-transition[data-destination=fog] .world-transition-copy{color:#c9d0b9}.world-transition[data-destination=fog] .world-transition-copy>p:first-child{color:#8e9c7e}.world-transition.active{animation:world-cover 1.5s ease-in-out both}.world-transition.active:after{animation:world-sweep 1.5s ease-in-out both}.world-transition.active .world-transition-copy{animation:world-words 1.5s ease-in-out both}.world-changing{cursor:progress}
@keyframes world-cover{0%{opacity:0}24%,72%{opacity:1}100%{opacity:0}}@keyframes world-sweep{from{transform:translateX(65%) skewX(-8deg)}to{transform:translateX(-65%) skewX(-8deg)}}@keyframes world-words{0%,9%{opacity:0;transform:translateY(8px)}30%,68%{opacity:1;transform:translateY(0)}100%{opacity:0;transform:translateY(-4px)}}
@media(max-width:700px){.quest-summary{gap:12px;margin-top:12px}.world-indicator{font-size:8px;letter-spacing:.5px}.quest-summary #quest-progress{font-size:8px}.world-surface:after{opacity:.45}.world-transition-copy>p:first-child{font-size:7px;letter-spacing:2px}.world-transition-copy>span{font-size:10px}}
@media(prefers-reduced-motion:reduce){.world-transition{display:none!important}.world-surface,.fog,body,.manuscript,.control,.token-slot,.unlock{transition:none!important}}
