/* Approved compact HUD: map, health and running energy only. */
#hud .tr{--map:112px;display:flex;flex-direction:column;align-items:flex-end;width:var(--map);gap:4px}
#hud .tr .mapring{order:0;width:var(--map);height:var(--map)}
html.portrait-hud #hud .tr{display:flex;flex-direction:column;width:var(--map)}
#hud .tr .orbs{order:1;position:static;display:flex;flex-direction:column;pointer-events:auto;transform:none;width:100%;padding:0;gap:0;background:none;border:0;box-shadow:none}
#hud .tr .orbs .chips,#hud .tr>.daily-shortcut,#mapBtn{display:none}
#hud .tr .orb.hp,#hud .tr .orb.run{position:relative;isolation:isolate;display:grid;place-items:center;width:100%;height:44px;min-height:44px;margin:0;padding:0;overflow:visible;border:0;border-radius:0;background:none;box-shadow:none}
#hud .tr .orb.hp::after,#hud .tr .orb.run::after{content:'';position:absolute;inset:12px 0 12px 20px;width:auto;height:auto;border:1px solid var(--brass-500);border-radius:12px;background:#190e09;box-shadow:inset 0 2px 3px #000,0 1px 2px #0008;z-index:0}
#hud .tr .orb.hp i,#hud .tr .orb.run i{position:absolute;inset:15px 3px 15px 23px;height:auto;border-radius:9px;transform:scaleX(var(--f,1));transform-origin:left;z-index:1;box-shadow:inset 0 1px 2px #fff8,inset 0 -2px 2px #0008}
#hud .tr .orb.hp i{background:linear-gradient(#ff9b80,#e34230 40%,#941d17 55%,#b5231c)}
#hud .tr .orb.run i{background:linear-gradient(#b6ffff,#36c8df 40%,#08768d 55%,#098da6)}
#hud .tr .orb.run.tired i{background:linear-gradient(#c9b89b,#73644c)}
#hud .tr .orbs #hpOrb::before,#hud .tr .orbs #runOrb::before{content:'';position:absolute;left:0;top:6px;width:32px;height:32px;background:center/contain no-repeat;z-index:3;filter:drop-shadow(0 1px 2px #140b06)}
#hud .tr .orbs #hpOrb::before{background-image:url('images/health-medallion.png')}
#hud .tr .orbs #runOrb::before{background-image:url('images/run-medallion.png')}
#hud .tr .orb span{position:relative;margin:0 0 0 28px;font:700 12px/1 var(--display);color:var(--paper-100);text-shadow:0 1px 2px #210e08;z-index:2}
#hud .tr .orbs #hpOrb>svg,#hud .tr .orbs #runOrb>svg{display:none}
#hud .tr .orbs #runOrb[aria-pressed='true']::after{border-color:var(--paper-100);box-shadow:0 0 0 2px var(--brass-500)}
#hud .tr .orbs #hpOrb.low::after{border-color:#ff9380}
#hud .tr .orbs #runOrb:focus-visible{outline:2px solid var(--paper-100);outline-offset:2px;border-radius:4px}
#hud .tr .compass{width:32px;height:32px;min-width:32px;min-height:32px}
#hud .tr .compass::after{content:'';position:absolute;inset:-6px;border-radius:50%}
@media(max-width:360px){#hud .tr{--map:96px}}
@media(max-height:600px) and (orientation:landscape){#hud .tr{--map:80px}#hud .tr .orb span{font-size:11px}}
@media(prefers-reduced-motion:reduce){#hud .tr .orb i{transition:none}}
/* The passive health row can be shorter; running retains its 44px target. */
#hud .tr .orb.hp{height:32px;min-height:32px}
#hud .tr .orb.hp::after{top:6px;bottom:6px}
#hud .tr .orb.hp i{top:9px;bottom:9px}
#hud .tr .orbs #hpOrb::before{top:0}
/* Status sits beside the map, leaving the world below the corner clear. */
#hud .tr,html.portrait-hud #hud .tr{display:flex;flex-direction:row;align-items:center;width:auto;gap:8px}
#hud .tr .orbs{order:0;width:104px;flex:none}
#hud .tr .mapring{order:1}
@media(max-width:360px){#hud .tr .orbs{width:88px}}
@media(max-height:600px) and (orientation:landscape){#hud .tr .orbs{width:88px}}
/* Account controls must not split the status/map pair on desktop. */
#hud .tr,html.portrait-hud #hud .tr{display:grid;grid-template-columns:104px var(--map);width:max-content;align-items:center}
#hud .tr .orbs{grid-column:1;grid-row:1}
#hud .tr .mapring{grid-column:2;grid-row:1}
#hud .tr>:not(.orbs):not(.mapring):not(.daily-shortcut){grid-column:1 / -1;justify-self:end}
@media(max-width:360px),(max-height:600px) and (orientation:landscape){#hud .tr,html.portrait-hud #hud .tr{grid-template-columns:88px var(--map)}}
/* The coast map shortcut belongs on the outer rim, away from the meters. */
#hud .tr .mapring #miniMapBtn{left:auto;right:-4px;top:-4px}
