/* World tasks and combat get more room than persistent system entrances. */
body[data-chronicle] #game.in-tutorial.in-action-combat .quest{visibility:visible}
body[data-chronicle] #game.in-tutorial #chronicle-shortcuts{display:none}
body[data-chronicle] #game.in-adventure .quest{transform:none;max-width:none;min-width:0}
#adventure-potion{position:absolute;z-index:12;left:calc(env(safe-area-inset-left) + 22px);bottom:calc(env(safe-area-inset-bottom) + 155px);width:48px;height:48px;min-height:44px;border:1px solid #c9b58c80;background:#1a2a31e8;border-radius:50%;padding:7px;touch-action:none}
#adventure-potion img{width:100%;height:100%;object-fit:contain}#adventure-potion span{position:absolute;right:-2px;bottom:-3px;padding:1px 4px;font:11px sans-serif;color:#f1e7cc;background:#17262fee;border-radius:3px}
body[data-chronicle] #chronicle-shortcuts button:not([data-ui="codex"]){display:none}
body[data-chronicle] #game.in-adventure #chronicle-save{opacity:.55;font-size:10px;background:transparent;padding:4px}
body[data-chronicle] #game.in-adventure #action-dialogue{background:#192b33f2;border-left:2px solid #c5b17e;max-width:440px;transform:none;min-width:0}
body[data-chronicle] #game.in-adventure #action-dialogue p{font-family:"Microsoft YaHei",sans-serif;line-height:1.65;font-size:13px}
body[data-chronicle] #game.in-adventure #action-track span{display:none}
body[data-chronicle] #game.in-adventure #action-track{width:44px;height:44px;min-height:44px;padding:8px;right:calc(env(safe-area-inset-right) + 18px);top:calc(env(safe-area-inset-top) + 85px)}
body[data-chronicle] #game.in-adventure #interact{font-size:14px;min-height:44px;padding:10px 16px;max-width:230px}
body[data-chronicle] #game.in-adventure #chronicle-tactics{left:50%;right:auto;transform:translateX(-50%);bottom:14px;gap:8px}
body[data-chronicle] #game.in-adventure #chronicle-tactics button{width:44px;height:44px;min-height:44px;border-radius:50%;padding:0;font:11px "Microsoft YaHei",sans-serif;background:#182c34e6;border:1px solid #cfb88280;color:#ede3cd}
body[data-chronicle] #game.in-adventure #chronicle-tactics button:disabled{opacity:.35}
body[data-chronicle] #game.in-adventure #chronicle-tactics [data-tactic="pet"],body[data-chronicle] #game.in-adventure #chronicle-tactics [data-ui="inventory"]{display:none}
@media(orientation:landscape) and (max-height:520px){
 body[data-chronicle] #game.in-adventure .vitals{width:185px;padding:8px;gap:8px}
 body[data-chronicle] #game.in-adventure .portrait{width:35px;height:44px}
 body[data-chronicle] #game.in-adventure .hero-name{font-size:12px}
 body[data-chronicle] #game.in-adventure .health{height:11px}
 body[data-chronicle] #game.in-adventure .quest{top:calc(env(safe-area-inset-top) + 12px);left:215px;right:180px;width:auto;padding:8px 12px;min-height:0}
 body[data-chronicle] #game.in-adventure #objective{font-size:14px;line-height:1.35}
 body[data-chronicle] #game.in-adventure #direction{font-size:11px;line-height:1.5}
 body[data-chronicle] #game.in-adventure #chronicle-shortcuts{top:calc(env(safe-area-inset-top) + 82px);left:calc(env(safe-area-inset-left) + 16px)}
 body[data-chronicle] #game.in-adventure #chronicle-shortcuts button{padding:8px 13px;font-size:12px;min-height:44px}
 body[data-chronicle] #game.in-adventure #action-dialogue{top:calc(env(safe-area-inset-top) + 95px);left:calc(env(safe-area-inset-left) + 18px);width:300px;max-width:38vw;padding:10px 12px}
 body[data-chronicle] #game.in-adventure #action-dialogue p{font-size:11px;max-height:68px}
 body[data-chronicle] #game.in-adventure #action-dialogue b{font-size:12px}
 body[data-chronicle] #game.in-adventure #action-dialogue img{width:36px}
 #adventure-potion{bottom:calc(env(safe-area-inset-bottom) + 20px);left:calc(env(safe-area-inset-left) + clamp(118px,19vw,178px))}
 body[data-chronicle] #game.in-adventure #chronicle-save{left:250px;bottom:16px;max-width:180px}
}
@media(orientation:landscape) and (max-width:740px){
 body[data-chronicle] #game.in-adventure .quest{left:185px;right:154px}
 body[data-chronicle] #game.in-adventure .vitals{width:158px}
 body[data-chronicle] #game.in-adventure #action-dialogue{max-width:35vw}
 body[data-chronicle] #game.in-adventure #chronicle-save{display:none}
}
@media(orientation:landscape) and (max-height:340px){
 body[data-chronicle] #game.in-adventure #action-dialogue{left:calc(env(safe-area-inset-left) + 175px);top:104px;width:270px;max-width:calc(100% - 345px);padding:6px 28px 6px 8px}
 body[data-chronicle] #game.in-adventure #action-dialogue p{max-height:35px}
}
@media(orientation:portrait) and (max-width:600px){
 body[data-chronicle] #game.in-adventure #action-dialogue{top:235px;left:14px;right:14px;width:auto;max-width:none}
 body[data-chronicle] #game.in-adventure #action-track{top:190px;right:14px}
 body[data-chronicle] #game.in-adventure #chronicle-shortcuts{top:185px}
 body[data-chronicle] #game.in-adventure #chronicle-save{bottom:200px;left:18px;max-width:170px}
 #adventure-potion{top:190px;bottom:auto;left:18px}
}
