:root{color-scheme:dark;--cream:#fff2cf;--gold:#ffce76;--muted:#c0cbc0;--frame:#a99770a3;--ink:#172b30;--edge:clamp(12px,2.1vw,30px);--font:"Barlow","Segoe UI",system-ui,sans-serif;--title:"Spectral",Georgia,serif}
*{box-sizing:border-box}html,body,#field{height:100%;margin:0;overflow:hidden;overscroll-behavior:none}body{background:#1b302c;color:var(--cream);font:15px/1.45 var(--font);-webkit-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent}button{color:inherit;font:inherit;cursor:pointer;touch-action:manipulation}button:focus-visible{outline:3px solid #fff3a7;outline-offset:3px}button:disabled{cursor:default}button:active:not(:disabled){filter:brightness(.91)}[hidden]{display:none!important}i[data-icon]{display:inline-block;width:19px;height:19px;flex-shrink:0}#field{position:relative;isolation:isolate}#world,#marks{position:absolute;inset:0;width:100%;height:100%;display:block}#world{touch-action:none}#marks{pointer-events:none}
.top{position:absolute;top:max(var(--edge),env(safe-area-inset-top));left:max(var(--edge),env(safe-area-inset-left));right:max(var(--edge),env(safe-area-inset-right));display:flex;align-items:flex-start;justify-content:space-between;pointer-events:none}.top button{pointer-events:auto}.hero,.round,#mapButton,#objective,#interact,.skills button{border:1px solid var(--frame);background:linear-gradient(145deg,#293d3bf5,#11272beb);box-shadow:inset 0 1px 0 #ffffe824,0 3px 8px #13291d45}.hero{display:flex;gap:9px;align-items:center;text-align:left;border-radius:11px 15px 15px 11px;padding:5px 13px 5px 5px}.crest{display:grid;place-items:center;width:40px;height:44px;background:linear-gradient(135deg,#495e59,#213a3f);border:1px solid #a68e574d;border-radius:7px}.crest i{color:#ffd47d;width:25px;height:29px}.vitals{display:grid;gap:2px;min-width:92px}.vitals strong{font:700 16px var(--title)}.vitals b{font-size:10px;color:var(--gold);margin-left:4px}.vitals small{font-size:9px;font-weight:700;line-height:1.1}.health,.xp{border-radius:8px;display:block;background:#0d2222;overflow:hidden}.health{height:5px}.xp{height:2px}.health em,.xp em{height:100%;display:block}.health em{background:linear-gradient(#c0e697,#74bd79)}.xp em{background:#78d5ce}.location{text-align:center;position:absolute;left:50%;transform:translateX(-50%);padding:4px 17px 7px;background:linear-gradient(90deg,transparent,#203c32a8 16%,#203c32b3 85%,transparent);text-shadow:0 1px 3px #162c22;white-space:nowrap}.location small,.overline{font-weight:800;font-size:9px;letter-spacing:.15em;color:var(--gold)}.location strong{display:block;font:700 clamp(16px,1.65vw,24px)/1.1 var(--title)}.top-buttons,.skills{display:flex;gap:7px}.round{width:42px;height:42px;display:grid;place-items:center;border-radius:13px}.round:hover,.secondary:hover{background:#3a514a}
#objective{position:absolute;left:max(var(--edge),env(safe-area-inset-left));top:max(calc(var(--edge) + 63px),calc(env(safe-area-inset-top) + 63px));border-radius:8px;padding:6px 10px;display:flex;align-items:center;gap:7px;font-size:12px;font-weight:650}#objective i{width:14px;height:14px;color:var(--gold)}#mapButton{position:absolute;right:max(var(--edge),env(safe-area-inset-right));top:max(calc(var(--edge) + 52px),calc(env(safe-area-inset-top) + 52px));height:79px;width:79px;border-radius:50%;overflow:hidden;padding:0;opacity:.94}#minimap{width:100%;height:100%;display:block}#banner{position:absolute;left:50%;top:23%;transform:translateX(-50%);pointer-events:none;text-align:center;white-space:nowrap;font:bold clamp(20px,3vw,34px) var(--title);color:#fff3cb;text-shadow:0 2px 6px #243a26,0 1px 2px #172b22;opacity:0}#banner.show{animation:appear 2s both}@keyframes appear{0%,100%{opacity:0}16%,78%{opacity:1}}
#stick{position:absolute;left:max(54px,calc(env(safe-area-inset-left) + 49px));bottom:max(15px,env(safe-area-inset-bottom));width:76px;height:76px;background:#1a30333d;border:2px solid #fff4d575;border-radius:50%;display:none;place-items:center;transform:translateX(-50%);pointer-events:none}#stick.held{display:grid;bottom:auto;transform:translate(-50%,-50%)}#stick span{height:31px;width:31px;border-radius:50%;background:#ffefd588;border:1px solid #fff0cda0}.skills{position:absolute;right:max(var(--edge),env(safe-area-inset-right));bottom:max(var(--edge),env(safe-area-inset-bottom));align-items:flex-end;gap:10px}.skills button{position:relative;width:59px;height:59px;display:grid;place-content:center;justify-items:center;border-radius:50%;border:2px solid #c1d0bb}.skills #weaponSkill{width:76px;height:76px;border-color:#ffe29c;background:linear-gradient(145deg,#b8893f,#6f542c);box-shadow:inset 0 0 0 3px #ffdead49,0 4px 0 #413c26;color:#fff0c1}.skills b{font-size:11px}.skills small{position:absolute;top:0;right:0;background:#213635;border-radius:5px;font-weight:700;padding:0 3px}.skills small:empty{display:none}.skills button:disabled{filter:saturate(.38);opacity:.83}#hint{position:absolute;bottom:max(19px,env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);padding:6px 12px;border-radius:20px;white-space:nowrap;background:#16302ed9;color:#f5efd9;font-size:11px;font-weight:650;pointer-events:none;transition:opacity .4s}.touch{display:none}#interact{position:absolute;right:max(var(--edge),env(safe-area-inset-right));bottom:max(calc(var(--edge) + 87px),calc(env(safe-area-inset-bottom) + 87px));min-height:40px;padding:6px 13px;border-radius:10px;border-color:#f8cc7f;color:var(--gold);font-size:13px;font-weight:750}
#curtain,#layer{position:fixed;inset:0;display:grid;place-items:center}#curtain{z-index:5;background:radial-gradient(ellipse at 50% 40%,#38524b,#14292c 75%);text-align:center}#curtain i{color:var(--gold);width:45px;height:45px}h1,h2,h3,p{margin:0}h1{font:700 italic 56px/1 var(--title);letter-spacing:-.07em;margin:8px}#loadText{color:var(--muted);max-width:380px;padding:4px 19px}#layer{z-index:4;padding:max(12px,env(safe-area-inset-top)) 14px max(12px,env(safe-area-inset-bottom));background:#0b1c20b8;backdrop-filter:blur(4px)}.dialog{width:min(440px,100%);max-height:100%;overflow:auto;position:relative;border-radius:18px;border:1px solid #b5b28a99;box-shadow:0 18px 65px #0e201f88;background:radial-gradient(ellipse at 100% 0%,#3b5148,transparent 58%),#1d3335;padding:27px}.dialog:focus{outline:none}.dialog #close{position:absolute;right:12px;top:12px;width:34px;height:34px}.dialog #close i{width:13px;height:13px}.overline{display:flex;align-items:center;gap:7px}.overline i{width:15px;height:15px}h2{font:700 33px/1.13 var(--title);letter-spacing:-.045em;margin:4px 26px 13px 0}.dialog p,.sub{color:#c6d1c7}.sub{display:block;font-size:12px}.row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:11px 0;border-bottom:1px solid #d5dab72b}.row b,.price{color:var(--gold)}.actions{display:grid;gap:8px;margin-top:18px}.primary,.secondary,.chip{border:1px solid #a8bbad55;min-height:42px;padding:7px 12px;border-radius:9px;font-weight:700;background:#2c4140}.primary{background:linear-gradient(#ffda87,#ecad54);color:#3f3021;border-color:#ffdb8d;box-shadow:0 2px 0 #947139}.primary:disabled,.secondary:disabled{opacity:.55}.chips{display:flex;flex-wrap:wrap;gap:5px;margin:6px 0}.chip{font-size:12px;min-height:34px}.chip.active{color:var(--gold);border-color:#d4ae6e}.dialog .section-title{font:700 18px var(--title);margin-top:13px}.map-full{width:100%;height:auto;display:block;background:#183734;border:1px solid #a0b79e50;border-radius:11px;margin:10px 0}.notice{font-size:12px;color:var(--gold);margin-top:9px}
@media(pointer:coarse){#stick{display:grid}.touch{display:inline}.keyboard{display:none}}
@media(max-width:550px){.hero{gap:5px;padding-right:8px}.vitals{min-width:64px}.crest{width:27px;height:34px}.crest i{width:20px}.vitals strong{font-size:14px}.round{width:35px;height:35px}.top-buttons{gap:4px}.location{top:0;margin-left:12px;padding-inline:5px}.location strong{font-size:14px}.location small{font-size:7px}.location{max-width:calc(100% - 207px);white-space:normal}.location strong{line-height:1.03}#mapButton{width:60px;height:60px;top:max(57px,calc(env(safe-area-inset-top) + 45px))}#objective{top:max(64px,calc(env(safe-area-inset-top) + 52px));font-size:10px;max-width:190px}#hint{bottom:max(102px,calc(env(safe-area-inset-bottom) + 99px));left:12px;transform:none;font-size:10px}#interact{bottom:max(98px,calc(env(safe-area-inset-bottom) + 88px))}#hint.near{opacity:0!important}.dialog{padding:22px}}
@media(max-height:500px){:root{--edge:9px}#mapButton{width:55px;height:55px}.dialog{padding:19px}h2{font-size:26px;margin-bottom:8px}.skills #weaponSkill{width:61px;height:61px}.skills #heroSkill{width:47px;height:47px}#interact{bottom:max(82px,calc(env(safe-area-inset-bottom) + 70px))}.hero{padding-block:3px}.crest{height:35px}#objective{top:max(57px,calc(env(safe-area-inset-top) + 47px))}}

.field-notes{position:absolute;left:max(var(--edge),env(safe-area-inset-left));top:max(calc(var(--edge) + 63px),calc(env(safe-area-inset-top) + 63px));display:grid;justify-items:start;gap:4px;pointer-events:none}
.field-notes #objective{position:static;pointer-events:auto}
.q0{--rarity:#bdcec2}.q1{--rarity:#8ad6ff}.q2{--rarity:#d5aafa}.q3{--rarity:#ffcf80}
@media(max-width:550px){.field-notes{top:max(64px,calc(env(safe-area-inset-top) + 52px))}}
@media(max-height:500px){.field-notes{top:max(57px,calc(env(safe-area-inset-top) + 47px))}}
.dialog small.sub{margin:4px 0}
#huntButton{display:flex;align-items:center;gap:6px;min-height:44px;padding:3px 9px;color:#e5dfc4;background:#203635eb;border:1px solid #879783;border-radius:8px;pointer-events:auto;text-align:left}
#huntButton[hidden]{display:none}
#huntButton i{width:18px;height:18px}
#huntButton b,#huntButton small{display:block;line-height:1.15}
#huntButton b{font-size:12px}
#huntButton small{color:#c1cebf;font-size:10px}
#huntButton[data-active=true]{border-color:#b4cf92;color:#def3b7}
#huntButton .hunt-yield{display:flex;align-items:center;gap:3px;margin-left:2px;padding-left:6px;border-left:1px solid #769286;color:#a6e8cd;font-size:12px;font-weight:750;font-variant-numeric:tabular-nums}
#huntButton .hunt-yield i{width:13px;height:13px}
.skills button{touch-action:none}
.skills button:disabled::after{content:'';position:absolute;inset:1px;border-radius:50%;pointer-events:none;background:conic-gradient(#ffe1a0 var(--charge,0deg),#182728a8 0);-webkit-mask:radial-gradient(farthest-side,transparent calc(100% - 3px),#000 calc(100% - 2px));mask:radial-gradient(farthest-side,transparent calc(100% - 3px),#000 calc(100% - 2px))}
.skills button small{z-index:1;min-width:20px;text-align:center;font-variant-numeric:tabular-nums}
.camp-title{display:flex;align-items:baseline;justify-content:space-between;margin:9px 0 6px;font:700 19px var(--title)}
.camp-title small,.camp-caption{font:600 12px var(--font);color:#c3d6c9}
.camp-key{list-style:none;padding:0;margin:0 0 4px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px 12px}
.camp-key li{display:flex;align-items:center;gap:7px;font-size:14px;font-weight:650}
.camp-key b{display:grid;place-items:center;flex:none;width:21px;height:21px;border-radius:50%;background:var(--camp-color);color:#20312c;font-size:14px}
.boss-key{list-style:none;padding:0;margin:6px 0 14px;display:grid;gap:4px}
.boss-key li{display:flex;align-items:center;gap:9px;padding:4px 5px;border-bottom:1px solid #c1a37336}
.boss-key li>b{display:grid;place-items:center;width:22px;height:22px;border:1px solid #d5ab71;border-radius:50%;background:#674b40;color:#ffe4ad;font-size:12px}
.boss-key span{font-weight:700}.boss-key small{display:block;color:#cad1bd;font-size:11px;font-weight:500}.boss-key strong{margin-left:auto;color:#f0d39d;font-size:12px}
.boss-key li>b.lit{background:var(--ore);border-color:#ffedc8;color:#243b35;box-shadow:0 0 7px var(--ore)}
.map-actions,.outing header,.outing>div{display:flex;align-items:center;justify-content:space-between;gap:8px}.map-actions{margin-block:8px}.map-actions strong{color:var(--gold);white-space:nowrap}.map-actions button,.outing button{min-height:44px;font-size:13px}
.outing{border-top:1px solid #a68a5866;padding:14px 0 10px}.outing header b{font:700 19px var(--title)}.outing header strong,.outing>div span{color:var(--gold);font-size:12px}.outing header strong{white-space:nowrap}.outing p{margin:4px 0;font-size:14px}.outing small{display:block;color:#acc3b6;font-size:12px}.outing>div{margin-top:5px}.outing button{min-width:76px}
.chapter-prize{display:flex;align-items:center;gap:12px;margin:15px 0 0;padding:7px 10px;border-block:1px solid #c5a36766;background:linear-gradient(90deg,#64513977,transparent)}
.chapter-prize .relic-art{width:44px;flex:none}.chapter-prize b,.chapter-prize small{display:block}.chapter-prize b{font:700 19px var(--title);color:#ffd58b}.chapter-prize small{color:#d8d9c4;font-size:12px}
#pickupNotice{padding:4px 8px;color:#f4e3b5;border-radius:6px;background:#172b2de8;font-size:12px;pointer-events:none}
#groundLoot{position:absolute;transform:translate(-50%,-100%);display:flex;align-items:center;gap:7px;min-height:34px;padding:4px 9px;border:1px solid #839386;border-left:3px solid var(--rarity);border-radius:5px;background:#132325f5;box-shadow:0 2px 6px #101c1c66;color:var(--rarity);white-space:nowrap;touch-action:manipulation}
#groundLoot:before{content:'';position:absolute;inset:-5px 0}#groundLoot:after{content:'';position:absolute;left:50%;bottom:-4px;width:6px;height:6px;background:#132325;transform:rotate(45deg);border-right:1px solid #839386;border-bottom:1px solid #839386}
#groundLoot i{width:14px;height:14px}#groundLoot b{font:700 15px var(--title)}#groundLoot span{font-size:12px;font-weight:750;color:#cbd6cc}#groundLoot .gain{color:#ade4ab}#groundLoot .loss{color:#ffb59c}
