.adventure-hud,.adventure-hud *,.adventure-pocket,.adventure-pocket *{box-sizing:border-box}.adventure-hud{--adv-ink:#412b17;--adv-teal:#153f3c;--adv-gold:#b98a3e;--adv-top:94px;--adv-bottom:132px;--adv-safe-top:env(safe-area-inset-top,0px);--adv-safe-bottom:env(safe-area-inset-bottom,0px);--adv-curve:20px;overscroll-behavior:none;isolation:isolate;width:100%;height:100dvh;min-height:0;color:var(--adv-ink);background:#19382a;margin:0 auto;font-family:Noto Sans Thai,system-ui,sans-serif;position:fixed;inset:0;overflow:hidden}.adventure-hud button,.adventure-hud summary{font:inherit;cursor:pointer;-webkit-tap-highlight-color:transparent}.adventure-hud button:disabled{cursor:default;opacity:.5}.adventure-hud :is(button,summary):focus-visible{outline-offset:3px;border-radius:10px;outline:3px solid #528b72}.adventure-scene{z-index:0;position:absolute;inset:0;overflow:hidden}.adventure-scene>img{object-fit:cover;object-position:50% 40%;width:100%;height:100%;display:block}.adventure-curtain{pointer-events:none;width:100%;height:100%;transition:transform .3s cubic-bezier(.45,0,.2,1);position:absolute;inset:0}.adventure-paper-panel{pointer-events:none;width:100%;height:100%;display:block;position:absolute;inset:0;overflow:visible}.adventure-top{z-index:4;transform:translate3d(0,calc(var(--adv-top) + var(--adv-safe-top) - 100%),0)}.adventure-bottom{z-index:3;transform:translate3d(0,calc(100% - var(--adv-bottom) - var(--adv-safe-bottom)),0)}.adventure-hud[data-phase=closing] .adventure-top,.adventure-hud[data-phase=covered] .adventure-top,.adventure-hud[data-phase=error] .adventure-top{transform:translateY(-50%)}.adventure-hud[data-phase=closing] .adventure-bottom,.adventure-hud[data-phase=covered] .adventure-bottom,.adventure-hud[data-phase=error] .adventure-bottom{transform:translate3d(0,calc(50% - var(--adv-curve) - 1px),0)}.adventure-hud[data-phase=covered] .adventure-curtain,.adventure-hud[data-phase=error] .adventure-curtain{transition:none}.adventure-hud[data-phase=closing] .adventure-curtain,.adventure-hud[data-phase=opening] .adventure-curtain{will-change:transform}.adventure-panel-content{pointer-events:none;width:100%;position:absolute}.adventure-panel-content[inert]{pointer-events:none}.adventure-panel-content:not([inert]) :is(button,summary,.adventure-settings-panel){pointer-events:auto}.adventure-top-content{height:calc(var(--adv-top) + var(--adv-safe-top));bottom:0}.adventure-bottom-content{height:calc(var(--adv-bottom) + var(--adv-safe-bottom));top:0}.adventure-title{top:calc(var(--adv-safe-top) + 3px);place-items:center;width:60%;height:28px;display:grid;position:absolute;left:20%}.adventure-title h1{margin:0;font-size:clamp(21px,5.5vw,26px);font-weight:600;line-height:1.25}.adventure-menu,.adventure-settings{top:calc(var(--adv-safe-top) + 6px);z-index:5;width:54px;position:absolute}.adventure-menu{left:4%}.adventure-settings{right:4%}.adventure-menu summary,.adventure-settings summary{place-items:center;width:54px;height:54px;list-style:none;display:grid}.adventure-menu summary::-webkit-details-marker{display:none}.adventure-settings summary::-webkit-details-marker{display:none}.adventure-menu summary img,.adventure-settings summary img{object-fit:contain;pointer-events:none;width:54px;height:54px;display:block}.adventure-settings-panel{border:1px solid var(--adv-gold);background:#f5e8cd url(/assets/ui/paper-texture.webp) 50%/420px;border-radius:14px;min-width:230px;max-width:82vw;padding:16px;font-size:14px;position:absolute;top:calc(100% + 8px);right:0;box-shadow:0 6px 18px #30210f40}.adventure-menu-panel{left:0;right:auto}.adventure-settings-panel label{align-items:center;gap:10px;min-height:44px;display:flex}.adventure-settings-panel input{width:20px;height:20px;accent-color:var(--adv-teal)}.adventure-settings-panel button{border:1px solid var(--adv-gold);min-height:44px;color:var(--adv-ink);background:#f0dfb9;border-radius:8px;padding:8px 14px}.adventure-objective{top:calc(var(--adv-safe-top) + 33px);grid-template-columns:auto minmax(0,1fr);align-items:center;gap:3px 8px;width:84%;display:grid;position:absolute;left:8%}.adventure-objective strong{white-space:nowrap;grid-column:1/-1;justify-content:center;align-items:center;gap:5px;font-size:clamp(14px,3.9vw,18px);font-weight:600;line-height:24px;display:flex}.adventure-objective strong>span{font:inherit}.adventure-area-icon{object-fit:contain;width:24px;height:24px}.adventure-objective .adventure-remaining{text-align:left;white-space:nowrap;font-size:11px;line-height:15px}.adventure-objective small{text-align:center;grid-column:1/-1;font-size:11px;line-height:16px}.adventure-distance-bar{background:#cfba90;border:1px solid #795327;border-radius:12px;justify-self:stretch;width:100%;height:10px;padding:2px;box-shadow:inset 0 1px 3px #432d2355}.adventure-distance-bar>span{background:linear-gradient(#35b69e,#078679);border-radius:10px;height:100%;display:block;box-shadow:inset 0 1px #a8e4b9}.adventure-stats{font-variant-numeric:tabular-nums;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:0;display:grid}.adventure-stats>div{min-width:0}.adventure-stats dt{white-space:nowrap;font-size:11px}.adventure-stats dd{white-space:nowrap;margin:0;font-size:21px;font-weight:600;line-height:1.2}.adventure-stats small{font-size:10px;font-weight:400}.adventure-bottom .adventure-stats{left:7%;right:calc(7% + 64px);top:calc(var(--adv-curve) + 4px);grid-template-columns:repeat(2,minmax(0,1fr));gap:6px 12px;position:absolute}.adventure-bottom .adventure-stats>div{grid-template-rows:15px 23px;grid-template-columns:30px minmax(0,1fr);align-items:center;column-gap:4px;display:grid}.adventure-stat-icon{object-fit:contain;grid-row:1/3;width:30px;height:38px}.adventure-bottom .adventure-stats dt{font-size:10px;line-height:1.4}.adventure-bottom .adventure-stats dd{font-size:20px}.adventure-bottom .adventure-stats small{font-size:9px}.adventure-bottom .adventure-stat-pace small{margin-top:1px;font-size:8px;display:block}.adventure-tools{top:calc(var(--adv-curve) + 4px);grid-template-rows:44px 44px;grid-template-columns:44px;gap:6px;width:44px;display:grid;position:absolute;right:7%}.adventure-tools button{color:#fff2d7;background-blend-mode:multiply;background:#674529 url(/assets/ui/paper-texture.webp) 50%/420px;border:2px solid #bd9652;border-radius:12px;justify-content:center;align-items:center;width:44px;height:44px;min-height:44px;padding:0;display:flex;box-shadow:inset 0 0 0 1px #ffedbb50,0 2px #61451f55}.adventure-tools .adventure-primary{background-color:#153f3c}.adventure-lock>span{display:none}.adventure-lock-icon{width:20px;height:24px}.adventure-pause-icon{border-left:5px solid;border-right:5px solid;width:14px;height:20px;display:inline-block}.adventure-preparing{z-index:6;text-align:center;color:#876d48;opacity:0;pointer-events:none;width:100%;font-size:13px;animation:1ms 1s forwards adventure-preparing-show;position:absolute;top:17%}@keyframes adventure-preparing-show{to{opacity:1}}.adventure-transition-error{border:1px solid var(--adv-gold);width:min(84%,340px);color:var(--adv-ink);font:inherit;background:#f5e8cd url(/assets/ui/paper-texture.webp) 50%/420px;border-radius:16px;padding:24px}.adventure-transition-error::backdrop{background:#33271433}.adventure-transition-error h2{margin:0;font-size:20px}.adventure-transition-error button{border:1px solid var(--adv-gold);width:100%;min-height:44px;color:var(--adv-ink);background:#eddbb3;border-radius:9px;margin-top:10px;padding:9px;display:block}.adventure-transition-error button:first-of-type{background:var(--adv-teal);color:#fff2d7}.adventure-hud[data-header-control=true]{--adv-top:112px}@media (width<=360px){.adventure-bottom .adventure-stats{column-gap:8px}.adventure-bottom .adventure-stats>div{grid-template-columns:23px minmax(0,1fr);column-gap:3px}.adventure-stat-icon{width:23px;height:34px}.adventure-bottom .adventure-stats dd{font-size:17px}.adventure-bottom .adventure-stats small{font-size:8px}}@media (width>=700px){.adventure-hud{width:min(100%,520px);margin:0 auto;box-shadow:0 0 50px #0005}}@media (prefers-reduced-motion:reduce){.adventure-curtain{transition:none}}.adventure-pocket{z-index:2147483647;color:#747474;padding:calc(env(safe-area-inset-top,0px) + 32px) 24px calc(env(safe-area-inset-bottom,0px) + 32px);box-sizing:border-box;touch-action:none;-webkit-user-select:none;user-select:none;overscroll-behavior:none;--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark;background:#000;flex-direction:column;justify-content:space-between;font-family:Noto Sans Thai,system-ui,sans-serif;display:flex;position:fixed;inset:0}.adventure-pocket-data{width:min(100%,440px);margin:0 auto}.adventure-pocket-logo{width:min(86%,300px);height:auto;margin:0 auto 20px;display:block}.adventure-pocket-data>p{text-align:center;margin:0 0 20px;font-size:13px}.adventure-pocket-caption{color:#555;font-size:11px!important}.adventure-pocket .adventure-stats{text-align:center;margin-bottom:24px}.adventure-pocket .adventure-stats>div+div{border-left:1px solid #222}.adventure-pocket .adventure-stats dt{margin-bottom:5px;font-size:11px}.adventure-pocket .adventure-stats dd{font-size:22px}.adventure-encounters{text-align:center;font-variant-numeric:tabular-nums;border-top:1px solid #202020;grid-template-columns:1.25fr 1fr 1fr;gap:12px;margin:0 0 24px;padding-top:20px;display:grid}.adventure-encounters dt{margin-bottom:5px;font-size:12px}.adventure-encounters dd{margin:0;font-size:26px;font-weight:600}.adventure-pocket-warning{color:#909090;font-size:12px!important}.adventure-unlock{color:#858585;touch-action:none;-webkit-user-select:none;user-select:none;background:#080808;border:1px solid #292929;border-radius:32px;flex-shrink:0;width:min(100%,390px);height:60px;margin:0 auto;font:14px Noto Sans Thai,system-ui,sans-serif;position:relative}.adventure-unlock-thumb{color:#999;pointer-events:none;background:#222;border-radius:50%;place-items:center;width:50px;height:50px;font-size:30px;display:grid;position:absolute;top:4px}.adventure-unlock-label{padding-left:32px}.adventure-unlock:focus-visible{outline-offset:4px;outline:2px solid #777}.adventure-pace{font-variant-numeric:tabular-nums;margin:0}.adventure-pace dd{margin:0;font-weight:600}.adventure-pace small{font-weight:400}.adventure-pocket .adventure-pace{text-align:center;margin:0 0 22px}.adventure-pocket .adventure-pace>div{justify-content:center;align-items:baseline;gap:12px;display:flex}.adventure-pocket .adventure-pace dt{font-size:12px}.adventure-pocket .adventure-pace dd{font-size:22px}.adventure-pocket .adventure-pace small{font-size:11px}@media (height<=700px){.adventure-pocket{padding-top:calc(env(safe-area-inset-top,0px) + 20px);padding-bottom:calc(env(safe-area-inset-bottom,0px) + 20px)}.adventure-pocket-logo{width:min(72%,220px);margin-bottom:12px}.adventure-pocket .adventure-stats,.adventure-pocket .adventure-pace{margin-bottom:16px}.adventure-encounters{margin-bottom:16px;padding-top:12px}}.adventure-battle-clock{top:calc(var(--adv-safe-top) + 52px);text-align:center;grid-template-columns:auto auto;justify-content:center;align-items:center;gap:0 10px;width:60%;display:grid;position:absolute;left:20%}.adventure-battle-clock>span{color:#745732;font-size:11px}.adventure-battle-clock>strong{font-variant-numeric:tabular-nums;font-size:28px;line-height:1.25}.adventure-battle-clock>small{color:#745732;grid-column:1/-1;font-size:10px;line-height:1.6}.adventure-battle-presets{top:calc(var(--adv-curve) + 4px);grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;display:grid;position:absolute;left:7%;right:7%}.adventure-battle-actor{min-width:0}.adventure-battle-name{gap:1px;display:grid}.adventure-battle-name strong{text-overflow:ellipsis;white-space:nowrap;font-size:12px;line-height:17px;overflow:hidden}.adventure-battle-name>span{font-variant-numeric:tabular-nums;font-size:9px;line-height:13px}.adventure-hp-bar{background:#d2c0a0;border:1px solid #806036;border-radius:6px;height:6px;margin-top:2px;padding:1px}.adventure-hp-bar>span{background:#408b66;border-radius:4px;height:100%;display:block}.adventure-battle-actor--enemy .adventure-hp-bar>span{background:#b9654e}.adventure-active-skills,.adventure-passive-skills{margin:0;padding:0;list-style:none}.adventure-active-skills{grid-template-columns:repeat(4,minmax(0,1fr));gap:4px;margin-top:7px;display:grid}.adventure-active-skills li{aspect-ratio:1;background:#d8c49d;border-radius:6px;width:100%;max-width:40px;position:relative;overflow:hidden}.adventure-active-skills img,.adventure-passive-skills img{object-fit:contain;width:100%;height:100%;display:block}.adventure-active-skills .is-cooling>img{filter:grayscale();opacity:.48}.adventure-skill-cooldown{color:#fff2d7;text-align:center;font-variant-numeric:tabular-nums;background:#302a23e8;border-radius:4px;min-width:14px;padding:1px 2px;font-size:10px;line-height:12px;position:absolute;inset:auto 1px 1px auto}.adventure-passive-row{align-items:center;gap:6px;margin-top:7px;display:flex}.adventure-passive-row>span{color:#745732;white-space:nowrap;font-size:9px}.adventure-passive-skills{grid-template-columns:repeat(4,18px);gap:3px;display:grid}.adventure-passive-skills li{width:18px;height:18px}.adventure-battle-gauges{z-index:2;pointer-events:none;position:absolute;inset:0}.adventure-turn{color:#f9edcf;text-shadow:0 1px 3px #201c10;justify-items:center;gap:3px;display:grid;position:absolute;top:47%}.adventure-turn--hero{left:2.5%}.adventure-turn--enemy{right:2.5%}.adventure-turn>span,.adventure-turn small{font-size:9px;line-height:1.3}.adventure-turn>div{background:#25382ce8;border:1px solid #b9914d;border-radius:9px;width:12px;height:clamp(82px,14vh,116px);padding:2px;position:relative;overflow:hidden;box-shadow:0 1px 3px #0006}.adventure-turn i{background:#56c3ac;border-radius:6px;max-height:calc(100% - 4px);display:block;position:absolute;bottom:2px;left:2px;right:2px}.adventure-turn--enemy i{background:#e5a35e}.adventure-battle-gauges[data-frozen=true] i{opacity:.6}.adventure-motion-consent{color:#fff8e5;min-height:32px;font:inherit;cursor:pointer;background:#195e5b;border:1px solid #ac7d37;border-radius:18px;padding:3px 14px}.adventure-settings-panel{max-height:max(120px,calc(100dvh - env(safe-area-inset-top,0px) - 110px));overscroll-behavior:contain;-webkit-overflow-scrolling:touch;touch-action:pan-y;overflow-y:auto}:root[data-adventure-active] .settingsGear{display:none}.adventure-hud[data-mode=battle]{--adv-top:112px;--adv-bottom:clamp(148px,38vw,160px)}.adventure-hud[data-objective=true]{--adv-top:112px}.adventure-hud[data-mode=battle] .adventure-title{top:calc(var(--adv-safe-top) + 9px);height:38px}.adventure-hud[data-mode=battle] .adventure-title h1{font-size:clamp(24px,6vw,30px)}.adventure-pause-dialog{border:1px solid var(--adv-gold);width:min(88%,360px);max-height:85dvh;color:var(--adv-ink);font:inherit;background:#f5e8cd url(/assets/ui/paper-texture.webp) 50%/420px;border-radius:18px;padding:24px;overflow:auto;box-shadow:0 10px 40px #20170f55}.adventure-pause-dialog::backdrop{background:#17251d80}.adventure-pause-dialog h2{margin:0;font-size:22px}.adventure-pause-dialog p{font-size:14px}.adventure-pause-totals{font-variant-numeric:tabular-nums}.adventure-pause-dialog button{width:100%;min-height:48px;font:inherit;border-radius:10px;padding:10px;display:block}.adventure-pause-dialog .adventure-resume{color:#fff2d7;background:#153f3c;border:1px solid #b98a3e;margin-top:20px;font-weight:600}.adventure-pause-dialog .adventure-end{color:#6c4931;background:0 0;border:1px solid #ad8f69;margin-top:20px;font-size:13px}.adventure-battle-mana{color:#365c70;font-variant-numeric:tabular-nums;margin-top:4px;font-size:9px;line-height:14px}.adventure-battle-mana>div{background:#19394d30;border-radius:4px;height:4px;overflow:hidden}.adventure-battle-mana i{background:#4e8ab4;height:100%;display:block}.adventure-active-skills li.is-unaffordable img{filter:grayscale();opacity:.45}.adventure-distance-estimate{color:#315746;vertical-align:middle;background:#e2ead2;border-radius:4px;padding:0 3px;font-size:8px;line-height:13px;display:inline-block}.adventure-pocket .adventure-distance-estimate{color:#c5d9b2;background:#253b2d}
