/* The reference HUD: open fantasy action bar, eight real actions and two mouse medallions. */
body.adventure-hud #game>#adventure-hotbar{--tile:clamp(44px,4vw,68px);--orb:calc(var(--tile)*1.85);--gap:calc(var(--tile)*.11);position:absolute;inset:auto auto 38px 50%;transform:translateX(-50%);display:grid;grid-template-columns:var(--orb) repeat(8,var(--tile)) var(--orb);grid-template-rows:var(--orb);align-items:center;gap:var(--gap);width:max-content;height:var(--orb);max-width:none;margin:0;padding:0;border:0;border-radius:0;background:none;box-shadow:none;pointer-events:none;isolation:isolate}
body.adventure-hud #game>#adventure-hotbar::before,body.adventure-hud #game>#adventure-hotbar::after{display:none}
body.adventure-hud #game>#adventure-hotbar>.adventure-skill{position:relative;inset:auto;grid-row:1;width:var(--tile);height:var(--tile);min-width:0;max-width:none;aspect-ratio:1;display:grid;place-items:center;padding:0;border:0;border-radius:7%;background:transparent url('../assets/hud/reference/empty.webp') center/100% 100% no-repeat;box-shadow:0 3px 6px #080804b3;color:#fff6d7;overflow:visible;pointer-events:auto;opacity:1}
body.adventure-hud #game>#adventure-hotbar>[data-hotkey="1"]{grid-column:2;}
body.adventure-hud #game>#adventure-hotbar>[data-hotkey="2"]{grid-column:3;}
body.adventure-hud #game>#adventure-hotbar>[data-hotkey="3"]{grid-column:4;}
body.adventure-hud #game>#adventure-hotbar>[data-hotkey="4"]{grid-column:5;}
body.adventure-hud #game>#adventure-hotbar>[data-hotkey="5"]{grid-column:6}
body.adventure-hud #game>#adventure-hotbar>[data-hotkey="6"]{grid-column:7}
body.adventure-hud #game>#adventure-hotbar>[data-hotkey="7"]{grid-column:8}
body.adventure-hud #game>#adventure-hotbar>[data-hotkey="8"]{grid-column:9}
body.adventure-hud #game>#adventure-hotbar>.adventure-skill>.adventure-icon{visibility:hidden}
body.adventure-hud #game>#adventure-hotbar>.adventure-skill kbd{position:absolute;inset:auto auto -10px 50%;z-index:5;transform:translateX(-50%);min-width:29px;height:21px;box-sizing:border-box;margin:0;padding:0 7px;border:1px solid #d8b569;border-radius:5px;background:linear-gradient(#30241b,#100e15);box-shadow:0 1px 2px #000;color:#fff0bd;text-shadow:0 1px 2px #000;font:700 14px/19px Tahoma,sans-serif;text-align:center}
body.adventure-hud #game>#adventure-hotbar>.adventure-skill:disabled{filter:none}
body.adventure-hud #game>#adventure-hotbar>.skill-empty{filter:none}
body.adventure-hud #game>#adventure-hotbar>button:focus-visible{outline:2px solid #fff1ad;outline-offset:5px}
body.adventure-hud #game>#adventure-hotbar>.adventure-skill:hover:enabled{filter:brightness(1.2);box-shadow:0 0 13px #f9ce6e99}
body.adventure-hud #game>#adventure-hotbar>.adventure-skill:active:enabled{transform:translateY(2px)}
body.adventure-hud #game>#adventure-hotbar>button.adventure-skill[data-mouse-button="right"]::after{content:'R';position:absolute;inset:4px 4px auto auto;z-index:5;transform:none;min-width:14px;padding:1px 3px;border:1px solid #e4c276;border-radius:4px;background:#101c39e6;color:#fff0b2;font:700 9px/12px Tahoma,sans-serif;text-align:center}
body.adventure-hud #game>#adventure-hotbar>.adventure-skill[data-cost]:not([data-mouse-button="right"])::after{display:none}
body.adventure-hud #game>#adventure-hotbar>.hud-orb{position:relative;inset:auto;grid-row:1;grid-column:1;width:var(--orb);height:var(--orb);display:block;max-width:none;padding:0;border:0;border-radius:50%;background:none;box-shadow:none;pointer-events:auto;overflow:visible;filter:drop-shadow(0 3px 4px #000a)}
body.adventure-hud #game>#adventure-hotbar>.hud-defense{grid-column:10}
.hud-orb-art{position:absolute;inset:0;background:url('../assets/hud/reference/sword.webp') center/contain no-repeat;pointer-events:none}
.hud-defense .hud-orb-art{background-image:url('../assets/hud/reference/shield.webp')}
.hud-orb:hover:enabled .hud-orb-art{filter:brightness(1.2)}
.hud-orb:active:enabled .hud-orb-art{transform:scale(.96)}
.hud-orb:disabled .hud-orb-art{filter:saturate(.6) brightness(.8)}
.hud-orb-label{position:absolute;top:calc(100% + 1px);left:0;right:0;white-space:nowrap;color:#fff5ce;font-size:12px;font-weight:700;line-height:20px;text-align:center;text-shadow:0 2px 3px #000,0 0 5px #000}
.hud-mouse{position:absolute;z-index:5;bottom:-2px;left:calc(50% - 9px);width:18px;height:27px;box-sizing:border-box;border:1.5px solid #edc775;border-radius:9px;background:#111420;box-shadow:0 1px 3px #000;pointer-events:none}
.hud-mouse::before{content:'';position:absolute;top:2px;left:2px;width:5px;height:9px;border-radius:5px 0 0 0;background:#ffd678}
.hud-mouse-right::before{left:auto;right:2px;border-radius:0 5px 0 0;background:#8ecbff}
.hud-orb .skill-cooldown{position:absolute;inset:16%;z-index:2;border-radius:50%;background:conic-gradient(#070713bf calc(var(--cooldown,0)*360deg),transparent 0);pointer-events:none}
.hud-orb .skill-cooldown-text{position:absolute;inset:0;z-index:3;display:grid;place-items:center;color:#fff7e3;font:bold 24px Tahoma,sans-serif;text-shadow:0 2px 3px #000;pointer-events:none}
body.adventure-hud #game>#adventure-hotbar>.adventure-xp{position:absolute;display:block;inset:auto calc(var(--orb) + var(--gap)) 0;width:auto;height:11px;box-sizing:border-box;border:1px solid #ddbc69;border-radius:9px;background:#0f1016;box-shadow:0 0 0 1px #382010,inset 0 0 0 1px #000;overflow:visible}
body.adventure-hud #game>#adventure-hotbar>.adventure-xp::before,body.adventure-hud #game>#adventure-hotbar>.adventure-xp::after{content:'';position:absolute;top:0;left:-6px;width:8px;height:8px;transform:rotate(45deg);border:1px solid #f6d68b;background:linear-gradient(135deg,#f2acff,#8123b5 65%);box-shadow:0 0 0 2px #382316}
body.adventure-hud #game>#adventure-hotbar>.adventure-xp::after{left:auto;right:-6px}
.adventure-hud #adventure-hotbar .adventure-xp i{max-width:100%;height:7px;margin:1px 0;border-radius:8px;background:linear-gradient(#eeaaff,#b13af4 48%,#7127ad);box-shadow:0 0 7px #a935e7aa}
.adventure-hud #adventure-hotbar .adventure-xp span{position:absolute;inset:0 auto auto 12px;font:700 9px/9px Tahoma,sans-serif;color:#ffe7ff;text-shadow:0 1px 2px #000,0 0 3px #000;white-space:nowrap}
body.adventure-hud .adventure-resource-hint{bottom:calc(clamp(44px,4vw,68px)*1.85 + 58px);font-size:10px}
body.adventure-hud .adventure-control-hint{bottom:7px;font-size:9px;color:#e2ddbdd9}
body.adventure-hud #game>.movement-hud{display:none}
@media(max-width:1050px){body.adventure-hud #game>#adventure-hotbar{--tile:clamp(35px,5vw,49px);bottom:32px}}
@media(pointer:coarse){body.adventure-hud #game>#adventure-hotbar{--tile:clamp(29px,4.2vw,46px);left:auto;right:12px;bottom:30px;transform:none}.hud-orb-label{font-size:9px;line-height:15px}.hud-mouse{width:14px;height:20px;left:calc(50% - 7px)}.hud-mouse::before{width:4px;height:7px}body.adventure-hud #game>#adventure-hotbar>.adventure-skill kbd{min-width:21px;height:17px;bottom:-7px;font-size:10px;line-height:15px}body.adventure-hud .adventure-resource-hint{bottom:calc(clamp(29px,4.2vw,46px)*1.85 + 40px);font-size:8px}}
@media(max-width:600px) and (pointer:fine){body.adventure-hud #game>#adventure-hotbar{--tile:calc((100vw - 24px)/12.7);bottom:33px}.hud-orb-label{font-size:9px}body.adventure-hud #game>#adventure-hotbar>.adventure-skill kbd{min-width:19px;padding:0 3px;font-size:10px;height:17px;line-height:15px}}

/* Painted slot icons only where a skill exists; a slot without a skill keeps the bare frame (user request 2026-09-30). */
body.adventure-hud #game>#adventure-hotbar>.skill-profession[data-hotkey="1"]{background-image:url('../assets/hud/reference/skill-1.webp')}
body.adventure-hud #game>#adventure-hotbar>.skill-profession[data-hotkey="2"]{background-image:url('../assets/hud/reference/skill-2.webp')}
body.adventure-hud #game>#adventure-hotbar>.skill-profession[data-hotkey="3"]{background-image:url('../assets/hud/reference/skill-3.webp')}
body.adventure-hud #game>#adventure-hotbar>.skill-profession[data-hotkey="4"]{background-image:url('../assets/hud/reference/skill-4.webp')}
body.adventure-hud #game>#adventure-hotbar>.skill-profession[data-hotkey="5"]{background-image:url('../assets/hud/reference/skill-5.webp')}
body.adventure-hud #game>#adventure-hotbar>.skill-profession[data-hotkey="6"]{background-image:url('../assets/hud/reference/skill-6.webp')}
body.adventure-hud #game>#adventure-hotbar>.skill-profession[data-hotkey="7"]{background-image:url('../assets/hud/reference/skill-7.webp')}
body.adventure-hud #game>#adventure-hotbar>.skill-profession[data-hotkey="8"]{background-image:url('../assets/hud/reference/skill-8.webp')}
.hud-utilities{display:none}
@media(pointer:coarse){.hud-utilities{position:absolute;z-index:3;bottom:calc(clamp(29px,4.2vw,46px)*1.85 + 44px);right:14px;display:flex;gap:7px}.hud-utilities>.hud-utility,.hud-utilities>#harvest{display:grid;place-items:center;position:relative;width:38px;height:38px;min-height:0;padding:4px;border:1px solid #c8a767;border-radius:7px;background:#142027d9;color:#fff0be}.hud-utilities .adventure-icon{width:23px;height:23px}.hud-utilities kbd{position:absolute;right:1px;bottom:-5px;font:8px Tahoma;background:#17191d;padding:1px 3px}.hud-utilities .adventure-harvest-label{display:none}}
@media(pointer:coarse){body.adventure-hud #game>#adventure-hotbar{bottom:calc(30px + max(0px,400px - 100dvh))}.hud-utilities{bottom:calc(clamp(29px,4.2vw,46px)*1.85 + 44px + max(0px,400px - 100dvh))}body.adventure-hud .adventure-resource-hint{bottom:calc(clamp(29px,4.2vw,46px)*1.85 + 40px + max(0px,400px - 100dvh))}}
/* Configurable mouse actions retain the medallion's gold frame around their own art. */
.hud-action-picture{position:absolute;inset:17%;border-radius:50%;background-position:center;background-size:125%;background-repeat:no-repeat;pointer-events:none}
.hud-orb:not(.has-action-picture) .hud-action-picture{display:none}
.hud-orb.skill-locked .hud-action-picture{filter:grayscale(.8) brightness(.65)}
.hud-orb.skill-no-mana .hud-action-picture{filter:saturate(.4) brightness(.7)}
.hud-orb.has-action-picture .hud-orb-art{mask-image:radial-gradient(circle,transparent 0 46%,#000 47%);-webkit-mask-image:radial-gradient(circle,transparent 0 46%,#000 47%)}
.hud-action-name{position:absolute;left:50%;top:-19px;transform:translateX(-50%);max-width:calc(var(--orb) + 24px);padding:2px 7px;border-radius:5px;background:#172020c9;color:#ffe8ad;font:700 10px/15px Tahoma,sans-serif;text-shadow:0 1px 2px #000;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;pointer-events:none}
body.adventure-hud #game>#adventure-hotbar>.hud-bind-config{position:relative;inset:auto;grid-row:1;grid-column:1;align-self:start;justify-self:end;z-index:7;display:grid;place-items:center;width:27px;height:27px;max-width:none;margin:1px -5px 0 0;padding:3px;border:1px solid #e7c77a;border-radius:50%;background:radial-gradient(#5b452d,#151820);box-shadow:0 1px 4px #000b;color:#ffe5a2;pointer-events:auto}
body.adventure-hud #game>#adventure-hotbar>.hud-bind-right{grid-column:10}
.hud-bind-config .adventure-icon{width:20px!important;height:20px!important;filter:none!important}
body.adventure-hud #game>#adventure-hotbar>button.adventure-skill[data-mouse-left="true"]::after{content:'L';display:block;position:absolute;inset:4px 4px auto auto;z-index:5;transform:none;min-width:14px;padding:1px 3px;border:1px solid #e4c276;border-radius:4px;background:#101c39e6;color:#fff0b2;font:700 9px/12px Tahoma,sans-serif;text-align:center}
body.adventure-hud #game>#adventure-hotbar>button.adventure-skill[data-mouse-left="true"][data-mouse-button="right"]::after{content:'L+R'}
body.adventure-hud #game>#adventure-hotbar>.skill-profession[data-skill-id="piercing-slash"]{background-image:url('../assets/skills/swordsman-epic-v2/piercing-slash.webp')}
body.adventure-hud #game>#adventure-hotbar>.skill-profession[data-skill-id="crescent-sweep"]{background-image:url('../assets/skills/swordsman-blue-v1/crescent-sweep.webp')}
body.adventure-hud #game>#adventure-hotbar>.skill-profession[data-skill-id="dash-strike"]{background-image:url('../assets/skills/swordsman-blue-v1/dash-strike.webp')}
body.adventure-hud #game>#adventure-hotbar>.skill-profession[data-skill-id="war-cry"]{background-image:url('../assets/skills/swordsman-blue-v1/war-cry.webp')}
.mouse-action-picker{box-sizing:border-box;position:fixed;inset:0;width:min(490px,calc(100vw - 28px));max-height:calc(100dvh - 28px);padding:20px;margin:auto;overflow:auto;border:2px solid #caa762;border-radius:17px;background:radial-gradient(ellipse at top,#3b3541,#171b29 65%);box-shadow:0 0 0 4px #171926ad,0 20px 70px #0009;color:#f5e6bf;font-family:inherit}
.mouse-action-picker::backdrop{background:#0a1119a1;backdrop-filter:blur(3px)}
.mouse-action-picker header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:15px}
.mouse-action-picker header small{font-size:11px;color:#baa784}
.mouse-action-picker h2{margin:4px 0 0;font-size:20px;color:#ffe4a0}
.mouse-action-picker .mouse-action-close{flex:none;width:34px;height:34px;border:1px solid #9d8257;border-radius:50%;padding:0;background:#282633;color:#eddaad;font-size:24px;line-height:30px}
.mouse-action-tabs{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.mouse-action-tabs button{padding:9px 12px;border:1px solid #796346;border-radius:7px;background:#141b28;color:#d5c8ac;font:700 13px Tahoma,sans-serif}
.mouse-action-tabs button[aria-pressed="true"]{border-color:#e9c779;background:linear-gradient(#796142,#3c342c);color:#fff1c7;box-shadow:inset 0 0 0 1px #e4c98133}
.mouse-action-current{margin:13px 0 0;font-size:12px;color:#d1c09f}
.mouse-action-options{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.mouse-action-options h3{grid-column:1/-1;margin:17px 0 1px;font-size:12px;color:#dac293}
.mouse-action-option{display:flex;align-items:center;gap:9px;min-height:66px;padding:7px;border:1px solid #615844;border-radius:8px;background:#111823;color:#eee1c3;text-align:left;font:inherit}
.mouse-action-option img{width:43px;height:43px;object-fit:contain;flex:none}
.mouse-action-option span{min-width:0}
.mouse-action-option strong{display:block;font-size:12px;line-height:1.45}
.mouse-action-option small{display:block;margin-top:3px;font-size:9px;line-height:1.5;color:#b7ac96}
.mouse-action-option[aria-pressed="true"]{border-color:#eac777;background:#4b402a;box-shadow:inset 0 0 0 1px #f7d58955}
.mouse-action-option:hover:enabled{border-color:#fff0b9;background:#353344}
.mouse-action-option:disabled{opacity:.48;cursor:default}
.mouse-action-empty{grid-column:1/-1;margin:2px 0;font-size:12px;line-height:1.8;color:#b6aa95}
.mouse-action-note{margin:15px 0 0;padding-top:12px;border-top:1px solid #c7a46c30;font-size:11px;color:#baad8e;text-align:center}
.mouse-action-picker button:focus-visible{outline:2px solid #b8d9ff;outline-offset:2px}
@media(pointer:coarse){.hud-action-name{top:-17px;font-size:8px;line-height:12px;max-width:calc(var(--orb) + 10px);padding:1px 4px}body.adventure-hud #game>#adventure-hotbar>.hud-bind-config{width:29px;height:29px;margin-top:-3px;margin-right:-4px}.mouse-action-picker{padding:13px 16px}.mouse-action-picker header{margin-bottom:10px}.mouse-action-picker h2{font-size:17px}.mouse-action-option{min-height:61px}}
/* Item 114: a swing paid short of stamina (half damage) marks the stamina bar until it refills. */
#stamina-bar.is-tired{background:linear-gradient(#f0a37e,#b84a2c);animation:stamina-tired 1s ease-in-out infinite alternate}
@keyframes stamina-tired{to{filter:brightness(1.25)}}
@media(prefers-reduced-motion:reduce){#stamina-bar.is-tired{animation:none}}
