/* VIP HUD ornaments (owner 2026-11-17: "the whole game UI changes with the VIP tier"). Art: Codex,
   ArtInbox/vip-hud-themes-20261117/. Loads after vip-theme.css (the colour tint). html[data-vip] is set by hud.js updateMe. */
html[data-vip="leaf"] { --vhh-skill:url('../assets/gen/vip/hud/leaf/skill-frame.png'); --vhh-attack:url('../assets/gen/vip/hud/leaf/attack-ring.png'); --vhh-menu:url('../assets/gen/vip/hud/leaf/menu-tile.png'); --vhh-chat:url('../assets/gen/vip/hud/leaf/chat-corner.png'); --vhh-status:url('../assets/gen/vip/hud/leaf/status-frame.png'); --vhh-joy:url('../assets/gen/vip/hud/leaf/joystick-base.png'); --vhh-paper:#eef7f1; }
html[data-vip="lotus"] { --vhh-skill:url('../assets/gen/vip/hud/lotus/skill-frame.png'); --vhh-attack:url('../assets/gen/vip/hud/lotus/attack-ring.png'); --vhh-menu:url('../assets/gen/vip/hud/lotus/menu-tile.png'); --vhh-chat:url('../assets/gen/vip/hud/lotus/chat-corner.png'); --vhh-status:url('../assets/gen/vip/hud/lotus/status-frame.png'); --vhh-joy:url('../assets/gen/vip/hud/lotus/joystick-base.png'); --vhh-paper:#fbeef2; }
html[data-vip="moon"] { --vhh-skill:url('../assets/gen/vip/hud/moon/skill-frame.png'); --vhh-attack:url('../assets/gen/vip/hud/moon/attack-ring.png'); --vhh-menu:url('../assets/gen/vip/hud/moon/menu-tile.png'); --vhh-chat:url('../assets/gen/vip/hud/moon/chat-corner.png'); --vhh-status:url('../assets/gen/vip/hud/moon/status-frame.png'); --vhh-joy:url('../assets/gen/vip/hud/moon/joystick-base.png'); --vhh-paper:#eef1f9; }
html:is([data-vip="leaf"],[data-vip="lotus"],[data-vip="moon"]) #hud { --vhh-enabled:1; }
/* Native menu icons/text keep their original foreground layer. Border-image
   paints the filled generated tile behind them without extra pseudo-elements. */
/* owner 2026-11-17: Safari drew border-image on a border-less button only partly, so the old pale chip showed inside the
   tile. The tile is no longer a border-image; drawn the same in every browser: the tile is a plain stretched background (source 88 px = 44 px buttons at 2x). */
html:is([data-vip="leaf"],[data-vip="lotus"],[data-vip="moon"]) #hud :is(.sq-btn,.menu-btn) {
 background:var(--vhh-menu) center / 100% 100% no-repeat !important; box-shadow:none !important;
}
html:is([data-vip="leaf"],[data-vip="lotus"],[data-vip="moon"]) #hud-character { position:relative; background-color:var(--vhh-paper); box-shadow:none !important; }
html:is([data-vip="leaf"],[data-vip="lotus"],[data-vip="moon"]) #hud-character::after {
 content:''; position:absolute; inset:0; pointer-events:none; z-index:2; box-sizing:border-box;
 border:12px solid transparent; border-image:var(--vhh-status) 24 / 12px / 0 stretch;
}
html:is([data-vip="leaf"],[data-vip="lotus"],[data-vip="moon"]) #hud-bar .slot.skill { border-radius:50%; box-shadow:none !important; }
html:is([data-vip="leaf"],[data-vip="lotus"],[data-vip="moon"]) #hud-bar .slot.skill::after {
 content:''; position:absolute; inset:-2px; pointer-events:none; z-index:1;
 background:var(--vhh-skill) center / 100% 100% no-repeat;
}
/* Preserve attack class icon and its native readable label; hollow ring does not cover either. */
html:is([data-vip="leaf"],[data-vip="lotus"],[data-vip="moon"]) #hud #btn-attack {
 background:var(--atk-ico,none) center / 50% no-repeat,var(--vhh-attack) center / 100% no-repeat,var(--vhh-paper);
 border-radius:50%; box-shadow:none !important;
}
/* owner 2026-11-17: no chat corners - the chat box keeps its normal look */
html[data-ui="mobile"]:is([data-vip="leaf"],[data-vip="lotus"],[data-vip="moon"]) :is(#joy,#joy-ghost) {
 background:var(--vhh-joy) center / 100% no-repeat; box-shadow:none;
}
/* Keep existing focus outlines, on/cooldown/disabled indicators, safe-area positions,
   responsive scales and control dimensions. No animation or full-screen decoration.
   Integration: recheck selected menu state against the generated tile and reserve
   its top-left 12px ornament area. Do not attach to generic .slot inventory cells. */
