#lifePanel{margin-top:5px;display:flex;align-items:center;gap:7px;width:max-content;color:#faf0d7;background:#19272be8;border:1px solid #e4cca34a;padding:4px 9px;border-radius:5px;text-shadow:none;font:700 12px system-ui}
#lifePanel progress,#rivalHud progress{width:58px;height:7px;appearance:none;border:0;border-radius:4px;overflow:hidden;background:#463b40}
progress::-webkit-progress-bar{background:#463b40}#health::-webkit-progress-value{background:#ec7e76}#rivalHealth::-webkit-progress-value{background:#ffae75}
#lifePanel .heart{color:#ef948c}#wallet{padding-left:8px;border-left:1px solid #766657;color:#a7e5c3}
#rivalHud{width:max-content;padding:4px 9px;background:#382c2ee8;font:600 12px system-ui;border-radius:4px;margin-top:3px}
#streetActions{position:absolute;right:max(4%,env(safe-area-inset-right));top:calc(5% + 58px + clamp(104px,11vw,154px));display:grid;gap:4px;justify-items:end}
#streetActions button{padding:7px 10px;min-height:34px;background:#253639eb}#beamButton[aria-pressed=true]{color:#bbddff;border-color:#9dcaf3}
#attarCatalog,#endDialog{color:#f8ead0;background:#242d2e;border:1px solid #c5a977;border-radius:13px;padding:17px;max-height:94dvh;width:min(94vw,410px)}
#attarCatalog::backdrop,#endDialog::backdrop{background:#111920c9}
#attarCatalog h2,#endDialog h2{font:700 25px Georgia;margin:2px 0 4px}#attarCatalog h2{padding-right:52px}
#attarCatalog .counter{position:relative;border-bottom:1px solid #766855;padding-bottom:8px}#closeShop{position:absolute;right:0;top:0}
#shopBalance,#receipt{font:700 13px system-ui;color:#a9ddbc}#receipt{min-height:18px;margin:6px 0 0}
.scent{display:grid;grid-template-columns:24px 1fr auto;gap:12px;align-items:center;padding:8px 0;border-bottom:1px solid #53605a}
.scent small{letter-spacing:0;font-size:11px;font-weight:500;color:#c6c8bb}.scent em{font:600 10px system-ui;color:#a9ddbc}
.bottle{height:23px;width:17px;border-radius:4px 4px 5px 5px;background:linear-gradient(100deg,var(--glass),#ffefc0 25%,var(--glass) 34%);border:1px solid #d6b784;position:relative;margin-top:5px}
.bottle:before{content:'';position:absolute;left:3px;right:3px;height:6px;top:-7px;background:#c5a471;border-radius:2px}
.scent button:disabled{opacity:.45}#endDialog{text-align:center}#endDialog button{background:#af8550;color:#191f22}
@media(orientation:landscape) and (max-height:530px){
 #streetActions{top:auto;bottom:max(3%,env(safe-area-inset-bottom));right:calc(max(3%,env(safe-area-inset-right)) + 108px)}
 #streetActions button{min-height:44px;font-size:11px;padding:4px 8px}
 #deck{max-width:34vw}#lifePanel{margin-top:3px;padding:2px 6px}
 #attarCatalog{width:min(90vw,670px);padding:10px 14px}#stock{display:grid;grid-template-columns:1fr 1fr;gap:0 17px}.scent{gap:6px}.scent button{min-height:44px}
}
@media(any-pointer:coarse),(max-width:700px),(orientation:landscape) and (max-height:530px){
 #touch{display:flex;pointer-events:none;bottom:max(12px,env(safe-area-inset-bottom));left:max(12px,env(safe-area-inset-left));right:max(12px,env(safe-area-inset-right))}
 #touch>div{display:flex;gap:5px}
 #touch button{pointer-events:auto;width:clamp(48px,7vw,64px);min-height:52px;padding:0;border-radius:15px;background:#1c3033ed;touch-action:none;-webkit-user-select:none}
 #touch button.held{background:#f3cc79;color:#1b2627;transform:translateY(2px)}
 #autoAction:not([hidden]){bottom:calc(max(12px,env(safe-area-inset-bottom)) + 59px)}
 #game{touch-action:none}
}
@media(orientation:landscape) and (max-height:530px){#streetActions{top:3%;right:calc(max(4%,env(safe-area-inset-right)) + 75px);bottom:auto}}
@media(orientation:portrait) and (max-width:700px){
 #deck{bottom:calc(max(12px,env(safe-area-inset-bottom)) + 115px);max-width:94vw}
 header{max-width:62vw}h1{font-size:clamp(26px,7vw,40px)}#job,#turnCue{max-width:62vw}aside{bottom:calc(max(12px,env(safe-area-inset-bottom)) + 60px);left:4%;right:auto;text-align:left}
}
