:root{--ink:#302c22;--paper:#f3ecd7;--copper:#9a482f;--gold:#e6b569;--line:#a89776;--serif:"STKaiti","KaiTi","Noto Serif CJK SC","Songti SC","SimSun",serif;--sans:"Segoe UI","Microsoft YaHei",sans-serif;color:var(--ink);font-family:var(--sans)}
*{box-sizing:border-box}html,body,#game{width:100%;height:100%;height:100dvh;margin:0;overflow:hidden}body{background:#a8b8e0}#game{position:relative;isolation:isolate;user-select:none}button{font:inherit;color:inherit;cursor:pointer;-webkit-tap-highlight-color:transparent}button:focus-visible{outline:3px solid #c67630;outline-offset:4px}button:disabled{cursor:default}svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round}.symbols{position:absolute;width:0;height:0;overflow:hidden}#scene,.shade{position:absolute;inset:0;width:100%;height:100%}#scene{display:block;outline:0;touch-action:none}.shade{pointer-events:none;background:linear-gradient(0deg,rgba(45,31,30,.43),transparent 22%,transparent 83%,rgba(42,53,73,.18))}.brand{position:absolute;left:max(30px,env(safe-area-inset-left));top:max(25px,env(safe-area-inset-top));display:flex;align-items:center;gap:12px;color:#fff5dc;text-shadow:0 1px 4px #48415380;pointer-events:none}.brand>svg{width:47px;height:47px;filter:drop-shadow(0 1px 2px #4d3e4d80);stroke:none}.brand h1{font:700 31px/1.12 var(--serif);letter-spacing:.14em;margin:0}.brand small,.panel header small,.locmeta,.coords,.compass,.mapcaption kbd{font-family:Georgia,"Times New Roman",serif}.brand small{font:600 8px/2 var(--sans);letter-spacing:.23em;display:block}.tools{position:absolute;right:30px;top:27px;display:flex;gap:9px}.tool,.touch-actions button{width:41px;height:41px;display:grid;place-items:center;background:#f4eddacF;border:1px solid #fff4d4;border-radius:50%;box-shadow:0 2px 8px #42362824}.tool:hover,.minimap-button:hover .mapcaption,.quest:hover{background:#fff7e3}.tool svg{width:19px;height:19px}.compass{position:absolute;left:50%;top:31px;transform:translateX(-50%);width:min(25vw,310px);height:32px;color:#fff6dd;pointer-events:none;filter:drop-shadow(0 1px 2px #45404a);overflow:hidden;mask-image:linear-gradient(90deg,transparent,#000 13% 87%,transparent)}.bearing{position:absolute;inset:0}.bearing span{position:absolute;bottom:0;transform:translateX(-50%);padding-bottom:9px;font:bold 12px Georgia;letter-spacing:1px}.bearing span::after{content:"";position:absolute;left:50%;height:4px;width:1px;background:currentColor;bottom:1px}.bearing span.minor::after{height:3px;opacity:.65}.needle{position:absolute;left:50%;bottom:0;width:5px;height:5px;background:#ffe39d;transform:translate(-50%,0) rotate(45deg)}
.quest{position:absolute;left:30px;top:107px;min-width:202px;text-align:left;padding:13px 16px 14px;border:0;border-left:3px solid var(--copper);background:linear-gradient(100deg,#f4eddbeF,#eee5cfe5);box-shadow:0 3px 14px #533d3026;clip-path:polygon(0 0,100% 0,100% calc(100% - 8px),calc(100% - 8px) 100%,0 100%)}.questhead{display:flex;align-items:center;gap:7px;font-size:11px;color:#75432d;font-weight:650;letter-spacing:.08em}.questhead svg{width:15px;height:15px}.questcount{margin-left:auto;font:600 11px Georgia;letter-spacing:.09em}.quest strong{display:block;font:700 19px/1.4 var(--serif);letter-spacing:.045em;margin:5px 0 4px}.questsub{display:flex;align-items:center;gap:7px;font-size:11px;color:#514736}.questsub i{width:5px;height:5px;border:1px solid var(--copper);transform:rotate(45deg)}
.location{position:absolute;bottom:38px;left:32px;color:#fff7de;text-shadow:0 2px 6px #3a2a2c90;pointer-events:none}.locmeta{display:flex;align-items:center;gap:9px;font-size:10px;letter-spacing:.19em}.locmeta span{width:26px;height:1px;background:#ffdfaa}.location h2{font:700 clamp(29px,3.1vw,47px)/1.21 var(--serif);letter-spacing:.13em;margin:6px 0 7px}.coords{display:flex;align-items:center;gap:5px;font-size:10px;letter-spacing:.085em}.coords svg{width:12px;height:12px}.desktop-help{position:absolute;left:50%;bottom:27px;transform:translateX(-50%);display:flex;gap:16px;align-items:center;color:#fff6dd;font-size:11px;white-space:nowrap;text-shadow:0 1px 3px #302827}.desktop-help span{display:flex;gap:6px;align-items:center}kbd{font:600 10px var(--sans);letter-spacing:.04em;border:1px solid currentColor;border-radius:3px;padding:2px 5px}.desktop-help kbd{background:#4b3b353e}.desktop-help button{border:1px solid currentColor;border-radius:100%;background:transparent;color:inherit;font:13px Georgia;width:19px;height:19px;padding:0}.minimap-button{position:absolute;right:29px;bottom:23px;display:grid;justify-items:center;gap:7px;border:0;background:transparent;padding:0}.map-ring{position:relative;width:clamp(113px,11.3vw,155px);aspect-ratio:1;border:2px solid #fff1cc;padding:4px;border-radius:50%;background:#514b3a;box-shadow:0 0 0 1px #534738,0 3px 16px #3b2e3550}.map-ring canvas{width:100%;height:100%;border-radius:50%;display:block}.north,.map-tick{position:absolute;left:50%;transform:translateX(-50%);font:700 10px/15px Georgia;background:#534b3c;color:#fff4d7;top:-7px;width:18px;border-radius:8px}.map-tick{top:auto;bottom:0;width:1px;height:5px;background:#f5deb3}.mapcaption{display:flex;align-items:center;gap:7px;font-size:11px;background:#ede3cddf;border:1px solid #fff0d1;padding:4px 10px;border-radius:3px}.mapcaption svg{width:13px;height:13px}.mapcaption kbd{padding:0 3px;font-size:9px}
.waypoint{position:absolute;pointer-events:none;transform:translate(-50%,-100%);display:grid;justify-items:center;gap:3px;filter:drop-shadow(0 1px 2px #42362880)}.waydiamond{display:grid;place-items:center;color:#fff1be;font:26px Georgia;text-shadow:0 1px 2px #60361e;-webkit-text-stroke:.4px #563820}.waypoint small{background:#43382bd9;color:#fff5df;border-radius:2px;font:11px/1.2 Georgia;padding:2px 5px}.toast,#interact{position:absolute;left:50%;transform:translateX(-50%);background:#322d24ef;border:1px solid #cebfa3;color:#fff1d5;padding:9px 16px;border-radius:3px;font-size:13px;text-align:center}.toast{bottom:25%;pointer-events:none;opacity:0;transition:opacity .25s;max-width:85%;width:max-content}.toast.on{opacity:1}#interact{bottom:16%;font-weight:bold;display:flex;gap:10px;align-items:center}.touch-controls{display:none}#veil,.loading{position:absolute;inset:0;z-index:5;display:grid;place-items:center;background:#2d2a29a8;backdrop-filter:blur(4px);padding:16px}.loading{z-index:8;background:#eae1ca;align-content:center;color:var(--copper)}.loading svg{width:60px;height:60px;stroke:none}.loading p{font-family:var(--serif)}[hidden]{display:none!important}
.panel{width:min(590px,100%);max-height:90dvh;overflow:auto;overscroll-behavior:contain;background:var(--paper);background-image:linear-gradient(120deg,#fff7da40,transparent 60%);border:1px solid #eee0bc;box-shadow:0 12px 65px #241d2066;padding:clamp(18px,3vw,32px);border-radius:4px}.panel>header{display:flex;justify-content:space-between;align-items:center;margin-bottom:18px;border-bottom:1px solid #b6a887;padding-bottom:13px}.panel header small{font-weight:600;color:#865137;font-size:10px;letter-spacing:.19em}.panel h2{font:700 29px/1.3 var(--serif);letter-spacing:.08em;margin:3px 0 0}.panel .tool{background:transparent;border-color:#ac9f80;width:32px;height:32px;box-shadow:none}.panel p{font-size:14px;line-height:1.75;margin:9px 0 16px}.panel h3{font:700 19px var(--serif);margin:17px 0 4px}.row,.lineitem{display:flex;align-items:center;gap:12px;border-bottom:1px solid #cabc9f;padding:10px 0}.row>div{flex:1}.row strong{font:700 16px var(--serif)}.row small{display:block;color:#75664e;font-size:11px;margin-top:3px}.row .number{color:#9c5434;font:italic 20px Georgia}.action,.minor-btn{border:1px solid #9c8a68;background:transparent;border-radius:3px;padding:7px 11px;font-size:12px}.action{background:#773e2c;border-color:#773e2c;color:#fff3dc;font-weight:600}.action:hover{background:#914b30}.minor-btn:hover{background:#ddcfaf}.actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:15px}.progress{color:#79523a;font-size:12px}.paper-map{width:100%;height:clamp(165px,35vh,310px);display:block;border:1px solid #af9b73;background:#dfcfab}.lineitem{justify-content:space-between;font-size:13px}.lineitem kbd{font-weight:500}.dial{width:154px;aspect-ratio:1;margin:10px auto;display:grid;place-items:center;border:1px solid #aa946d;border-radius:50%;background:repeating-conic-gradient(from -1deg,#97734b 0deg 1deg,transparent 1deg 15deg);box-shadow:inset 0 0 0 4px var(--paper),0 0 0 4px #cbbb99;position:relative}.dial::before{content:"";position:absolute;inset:10px;background:var(--paper);border:1px solid #b29b73;border-radius:50%}.dial svg{position:absolute;width:82%;height:82%;stroke:none;transition:transform .2s}.dial .target{color:#bc965b;opacity:.54}.dial .dialarm{position:absolute;inset:13px;transition:transform .2s}.dialarm::after,.dialarm::before{content:"";position:absolute;background:#9f452b}.dialarm::before{width:4px;height:48%;left:calc(50% - 2px);top:2%}.dialarm::after{width:8px;height:8px;border-radius:50%;left:calc(50% - 4px);top:calc(50% - 4px)}.target-tick{position:absolute;inset:-3px;pointer-events:none}.target-tick::before{content:"◆";color:#94422d;position:absolute;left:50%;transform:translateX(-50%);top:-8px}.center{text-align:center}.center .actions{justify-content:center}
@media(pointer:coarse){.desktop-help{display:none}.touch-controls{display:block}#stick{position:absolute;bottom:max(26px,env(safe-area-inset-bottom));left:max(24px,env(safe-area-inset-left));width:86px;height:86px;border:1px solid #fff1cda8;border-radius:50%;background:#4541364a;touch-action:none;display:grid;place-items:center}#stick i{width:38px;height:38px;border-radius:50%;border:1px solid #fff0ce;background:#f3e7ca8a}.touch-actions{position:absolute;right:max(21px,env(safe-area-inset-right));bottom:26px;display:flex;gap:13px;align-items:end}.touch-actions button{touch-action:none;width:48px;height:48px}.touch-actions button.active{background:#e4b26e}.location{bottom:130px}.minimap-button{top:85px;right:20px;bottom:auto}.map-ring{width:92px}.mapcaption kbd,#interact kbd{display:none}#interact{bottom:22%}}
@media(max-width:650px){.brand{left:16px;top:max(16px,env(safe-area-inset-top));gap:7px}.brand>svg{width:36px;height:36px}.brand h1{font-size:23px}.brand small{font-size:6px}.tools{top:max(18px,env(safe-area-inset-top));right:15px;gap:7px}.tools .tool{width:34px;height:34px}.compass{top:66px;width:132px}.quest{left:15px;top:107px;min-width:146px;padding:8px 10px}.quest strong{font-size:16px;margin:3px 0}.questhead,.questsub{font-size:10px}.questhead svg{width:12px;height:12px}.location{left:19px}.map-ring{width:82px}.minimap-button{right:16px}.panel{max-height:92dvh}.row{gap:8px}.row .minor-btn,.row .action{padding:6px;font-size:11px}.waypoint small{font-size:10px}.desktop-help{display:none}}
@media(max-height:540px) and (orientation:landscape){.brand{top:12px;left:15px}.brand h1{font-size:20px}.brand>svg{width:32px;height:32px}.quest{top:65px;left:16px;padding:7px 11px;min-width:145px}.quest strong{font-size:15px}.tools{top:12px;right:15px}.compass{top:15px}.location{bottom:16px;left:119px}.location h2{font-size:23px;margin:2px 0}.minimap-button{top:61px;right:15px;bottom:auto}.map-ring{width:73px}.mapcaption{font-size:10px;padding:2px 6px}.panel{max-height:94dvh}.toast{bottom:24%}}
.cistern{position:relative;width:116px;height:148px;background:#e4d4b5;margin:15px auto;border:4px double #8e7958;overflow:hidden;border-radius:3px 3px 26px 26px}.cistern i,.waterTicks{position:absolute;bottom:0;left:0;width:100%}.cistern i{background:linear-gradient(#84bcb6,#518b8e);border-top:2px solid #d3eece;transition:height .3s}.waterTicks{height:100%;background:repeating-linear-gradient(0deg,transparent 0 calc(16.666% - 1px),#897657 0 16.666%);width:18px}.cistern b{position:absolute;top:33.333%;transform:translateY(-58%);right:6px;font:30px Georgia;color:#704c33}.star-chart{position:relative;width:min(100%,370px);height:175px;margin:auto;background-color:#334450;background-image:radial-gradient(#ffffff50 .6px,transparent .9px),radial-gradient(#dccaa24a 1px,transparent 1.2px);background-size:28px 33px,53px 41px;background-position:7px 5px,18px 25px;border:4px double #a28c5d;border-radius:50% / 14%;overflow:hidden}.star-chart>svg{position:absolute;inset:0;width:100%;height:100%;stroke:#e6b970;stroke-width:1}.star-chart polyline{vector-effect:non-scaling-stroke;stroke-width:2}.chart-star{position:absolute;transform:translate(-50%,-50%);width:46px;height:46px;border:0;background:transparent;color:#f2e6cd;font:27px Georgia}.chart-star.lit{color:#ffc774;text-shadow:0 0 10px #ffca72}.chart-star small{font-size:13px;position:absolute;top:5px;right:0}.panel p svg{width:15px;height:15px;vertical-align:middle}
.brand .brand-logo{width:49px;height:49px;filter:drop-shadow(0 2px 3px #3e35434d)}
.brand .tina-wordmark{font-family:Georgia,"Times New Roman",serif;font-weight:700;letter-spacing:-.035em;margin-right:5px}
.brand .game-name{font:600 12px/1.6 var(--serif);letter-spacing:.38em;margin-top:3px}
@media(max-width:650px){.brand .brand-logo{width:38px;height:38px}.brand .game-name{font-size:10px;letter-spacing:.3em;margin-top:2px}}
@media(max-height:540px) and (orientation:landscape){.brand .brand-logo{width:33px;height:33px}.brand .game-name{font-size:9px;line-height:1.2}}
.play-guide h3{margin:0 0 7px}.play-guide>p{margin:0 0 15px}.guide-stations{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;padding:12px 0 14px;border-top:1px solid #cabc9f;border-bottom:1px solid #cabc9f;margin:0 0 14px;text-align:center}.guide-stations strong{display:block;font:700 16px var(--serif)}.guide-stations span{display:block;margin-top:5px;font-size:12px;color:#79523a}.play-guide .guide-reward{font-size:13px}.guide-reward svg{color:#9a482f;margin-right:5px}.guide-controls{display:grid;grid-template-columns:1fr 1fr;gap:20px}.guide-controls h3{font-size:17px}.guide-controls dl{margin:0}.guide-controls dl>div{padding:6px 0}.guide-controls dt{font-size:11px;color:#79523a;margin-bottom:4px}.guide-controls dd{margin:0;font-size:12px;line-height:1.7}.guide-controls kbd{padding:1px 4px}.play-guide .guide-note{font-size:12px;color:#675b47;margin:15px 0 14px;border-top:1px solid #cabc9f;padding-top:12px}.guide-enter{display:flex;align-items:center;gap:15px}.guide-enter .action{min-height:44px;padding:10px 24px;font-size:14px}.guide-enter small{font-size:11px;color:#79523a}
@media(max-width:480px){.guide-controls{grid-template-columns:1fr;gap:13px}.guide-controls dl>div{display:grid;grid-template-columns:94px 1fr;gap:7px;padding:4px 0}.guide-controls dt{margin:0;line-height:1.8}.guide-stations strong{font-size:14px}.guide-enter{align-items:stretch;flex-direction:column;gap:8px;text-align:center}.play-guide>p{font-size:13px}.guide-enter .action{width:100%}}
@media(max-width:480px),(max-height:540px){.guide-enter{position:sticky;bottom:-18px;background:var(--paper);padding:12px 0 18px;margin-bottom:-18px;border-top:1px solid #cabc9f;box-shadow:0 -6px 12px var(--paper)}}
