/* Read the enemy in one compact line; the ground remains the main play space. */
#incoming-hit{position:absolute;inset:0;pointer-events:none}
#incoming-hit>i{position:absolute;left:0;top:0;width:0;height:0;pointer-events:none}
#incoming-hit>i:before{content:"";position:absolute;left:-8px;top:-7px;width:13px;height:14px;clip-path:polygon(0 0,100% 50%,0 100%,24% 50%);background:#ffc19c;filter:drop-shadow(0 1px 2px #542a20)}
body[data-chronicle] .damage-number.hurt-number{color:#ffc19c;font:700 19px Arial,sans-serif;margin-left:-12px;text-shadow:0 1px 2px #381e19,0 0 4px #381e19}
body[data-chronicle] #game .damage-number.combat-float{left:0;top:0;margin:0;padding:0;white-space:nowrap;letter-spacing:0;line-height:1.1;transform-origin:0 0;text-shadow:0 1px 2px #172c36,1px 0 #172c36,-1px 0 #172c36,0 -1px #172c36;pointer-events:none}
body[data-chronicle] #game .combat-float[hidden]{display:none}
#low-health-hint{display:block;font:10px/1.45 "Microsoft YaHei",sans-serif;color:#ffcea1;margin-top:4px;overflow-wrap:anywhere;letter-spacing:0}
#low-health-hint[hidden],#incoming-hit[hidden]{display:none}
#low-health-hint[data-kind=ready]{color:#eed79f}
@media(orientation:landscape) and (max-height:520px){#low-health-hint{font-size:9px;line-height:1.35;margin-top:3px}}
body[data-chronicle] #game #boss-hud{max-width:310px;padding:7px 10px;text-align:left;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px 9px;pointer-events:auto;cursor:pointer;touch-action:manipulation}
body[data-chronicle] #game #boss-hud[data-locked=true]{box-shadow:inset 2px 0 #dac38e}
body[data-chronicle] #game #boss-hud:focus-visible{outline:2px solid #e2cd97;outline-offset:3px}
body[data-chronicle] #boss-hud>span{font:500 12px/1.4 "Microsoft YaHei",sans-serif;letter-spacing:.5px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#boss-hud .enemy-health-text{font:10px/1.7 Arial,sans-serif;color:#dacba7;font-variant-numeric:tabular-nums}
body[data-chronicle] #game #boss-hud>div{grid-column:1/-1;margin:0;height:4px}
#boss-hud .enemy-intent{grid-column:1/-1;font:11px/1.5 "Microsoft YaHei",sans-serif;margin:0;color:#becdcc;position:relative;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
body[data-chronicle] #game #boss-hud[data-intent=danger]{border-color:#d18c62;background:#2b3038ee}
#boss-hud[data-intent=danger] .enemy-intent{color:#ffd2a0;background:linear-gradient(90deg,#cc855538 calc(var(--windup)*100%),transparent 0)}
#boss-hud[data-intent=opening] .enemy-intent{color:#abdaba}
@media(orientation:landscape) and (min-height:521px){
 body[data-chronicle] #game[data-mobile=true] .hud-top>#boss-hud{grid-column:2;justify-self:center;max-width:310px;width:100%}
}
#game .skill.buffered{border-color:#f4d493;box-shadow:inset 0 0 0 3px #f1d49b88,0 0 9px #d5be7033}
#game .skill.buffered .cooldown:empty:after{content:"衔接";font:10px "Microsoft YaHei",sans-serif;color:#ffe0a0}
body[data-chronicle] #game.in-adventure #action-track svg{display:block;width:22px;height:22px;margin:auto}
body[data-chronicle] #game #loot-feed.battle-receipts{position:absolute;top:calc(var(--edge-top) + 103px);right:var(--edge-right);left:auto;bottom:auto;width:160px;max-width:23vw;display:grid;gap:4px;pointer-events:none;z-index:7}
.battle-gain{display:flex;align-items:center;gap:7px;padding:5px 8px;border-left:2px solid #cab587;background:linear-gradient(90deg,#172c38ed,#1c3038d1);color:#eadcba;box-shadow:0 2px 8px #12212b20;font:11px/1.4 "Microsoft YaHei",sans-serif}
.battle-gain>span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.battle-gain>b{margin-left:auto;font:600 12px Arial,sans-serif;color:#e5cea1}
.battle-gain .sp-icon,.gain-seal{width:25px;height:25px;flex:0 0 25px;margin:0;border-radius:3px;display:block}
.gain-seal{display:grid;place-items:center;border:1px solid #bca77888;background:#c8ad6715;color:#d9c79e;font:14px "KaiTi",serif}
#battle-clear{position:absolute;left:50%;top:calc(var(--edge-top) + 100px);transform:translateX(-50%);width:250px;max-width:40%;pointer-events:none;z-index:6;text-align:center;color:#eee0bf;text-shadow:0 1px 3px #122633;background:linear-gradient(90deg,transparent,#172c35e8 20%,#172c35e8 80%,transparent);padding:8px 12px;border-top:1px solid #d8bd7666}
#battle-clear small{font:9px "Microsoft YaHei",sans-serif;letter-spacing:4px;color:#c0ae82}
#battle-clear strong{display:block;font:18px/1.6 "KaiTi",serif;letter-spacing:3px}
#battle-clear>span{display:block;font:10px/1.6 "Microsoft YaHei",sans-serif;color:#cdd4c6}
@media(orientation:landscape) and (max-height:520px){
 body[data-chronicle] #game #boss-hud{padding:5px 8px;gap:3px 7px;max-width:260px}
 body[data-chronicle] #game #boss-hud>span{font-size:11px}
 body[data-chronicle] #game #loot-feed.battle-receipts{top:calc(var(--edge-top) + 63px);right:calc(var(--edge-right) + 58px);width:160px;grid-template-columns:repeat(2,minmax(0,1fr))}
 .battle-gain{padding:3px 6px;font-size:10px;gap:5px}
 .battle-gain[data-reward^="item:"]{grid-column:1/-1}
 .battle-gain .gain-seal{display:none}
 .battle-gain .sp-icon,.gain-seal{width:21px;height:21px;flex-basis:21px}
 #battle-clear{top:calc(var(--edge-top) + 70px);padding:5px 10px;max-width:35%}
 #battle-clear strong{font-size:16px}
}
@media(orientation:portrait) and (max-width:600px){
 body[data-chronicle] #game[data-mobile=true][data-orientation=portrait] .hud-top>#boss-hud{position:absolute;display:grid;grid-area:auto;top:86px;left:0;right:0;bottom:auto;width:auto;max-width:none;transform:none;padding:5px 7px;gap:3px 7px}
 body[data-chronicle] #game #loot-feed.battle-receipts{top:calc(var(--edge-top) + 230px);width:145px;max-width:42%}
 #battle-clear{top:calc(var(--edge-top) + 181px);max-width:calc(100% - 175px);width:215px;padding:4px 8px}
 #battle-clear strong{font-size:14px;letter-spacing:1px}
}
@media(orientation:landscape) and (max-width:640px){
 body[data-chronicle] #game #loot-feed.battle-receipts{width:145px;max-width:27%}
 #battle-clear{max-width:32%}
 #battle-clear>span{font-size:9px}
}

.battle-gain>b{flex-shrink:0;white-space:nowrap}
