/* Approved faithful HUD: circular minimap over skill bar, no XP or potion slots. */
#screen-game .win.faithful-combat-hud[data-win=hotbar]{position:fixed!important;left:50%!important;right:auto!important;top:auto!important;bottom:8px!important;transform:translateX(-50%)!important;width:min(920px,calc(100vw - 28px))!important;height:auto!important;min-width:0!important;min-height:0!important;background:none!important;border:0!important;box-shadow:none!important;overflow:visible!important;backdrop-filter:none!important;pointer-events:none}
#screen-game .win.faithful-combat-hud[data-win=hotbar].closed{display:none!important}
#screen-game .win.faithful-combat-hud>.win-head,#screen-game .win.faithful-combat-hud>.win-rz{display:none!important}
#screen-game .win.faithful-combat-hud:before,#screen-game .win.faithful-combat-hud:after{display:none!important}
#screen-game .win.faithful-combat-hud>.win-body{display:block!important;height:auto!important;padding:0!important;overflow:visible!important;background:none!important}
#screen-game .faithful-combat-hud .faithful-shell{position:relative;width:100%;height:auto;aspect-ratio:1016/346;background:none!important;border:0;filter:drop-shadow(0 3px 5px #0007);overflow:visible;pointer-events:none}
.faithful-shell>.frame{position:absolute;inset:0;width:100%;height:100%;z-index:1;pointer-events:none;overflow:visible}
#screen-game .faithful-combat-hud .combat-skills{position:absolute;inset:0!important;overflow:visible;pointer-events:none}
#screen-game .faithful-combat-hud #jutsu-bar{position:absolute;inset:0;display:block!important;width:100%!important;height:100%!important;min-height:0;max-width:none!important;padding:0!important;margin:0;overflow:visible!important;pointer-events:none}
#screen-game .faithful-combat-hud #jutsu-bar .jutsu-cd{position:absolute;top:43.64%;width:8.2677%!important;height:24.2775%;min-width:0;flex:none!important;padding:0!important;margin:0;pointer-events:auto;transform:none!important;cursor:pointer;background:none;border:0;box-shadow:none}
#screen-game .faithful-combat-hud #jutsu-bar [data-hud-slot="0"]{left:43.3071%}
#screen-game .faithful-combat-hud #jutsu-bar [data-hud-slot="1"]{left:52.3622%}
#screen-game .faithful-combat-hud #jutsu-bar [data-hud-slot="2"]{left:61.4173%}
#screen-game .faithful-combat-hud #jutsu-bar [data-hud-slot="3"]{left:70.4724%}
#screen-game .faithful-combat-hud #jutsu-bar [data-hud-slot="4"]{left:79.5276%;width:6.1024%!important;height:17.9191%}
#screen-game .faithful-combat-hud #jutsu-bar [data-hud-slot="5"]{left:86.4173%;width:6.1024%!important;height:17.9191%}
#screen-game .faithful-combat-hud #jutsu-bar .jutsu-cd .ic,.faithful-passive{position:relative;width:100%!important;height:100%!important;aspect-ratio:1;padding:0;border:0!important;border-radius:5px!important;background:#101b24;overflow:visible!important;box-shadow:0 0 0 1px #080f16,0 2px 5px #000b!important;isolation:isolate}
#screen-game .faithful-combat-hud #jutsu-bar .ic:before{display:none!important}
#screen-game .faithful-combat-hud #jutsu-bar .ic:after,.faithful-passive:after{content:'';position:absolute;inset:0;border:4px solid #91a3b1;border-top-color:#bdc9d2;border-left-color:#a5b5c2;border-right-color:#667e90;border-bottom-color:#526b7d;border-radius:5px;box-shadow:inset 0 0 0 1px #1a2c3a,0 0 0 1px #263b4b;pointer-events:none;z-index:6}
#screen-game .faithful-combat-hud #jutsu-bar .jutsu-cd:hover .ic:after,.faithful-passive:hover:after{border-top-color:#dde6ec;border-left-color:#ccdae4;border-right-color:#92a9ba;border-bottom-color:#7b95a9}
#screen-game .faithful-combat-hud #jutsu-bar .ic>.spell-icon{position:absolute!important;inset:5px!important;left:5px!important;top:5px!important;width:calc(100% - 10px)!important;height:calc(100% - 10px)!important;max-width:none!important;max-height:none!important;border-radius:2px!important;transform:none!important;object-fit:cover}
#screen-game .faithful-combat-hud #jutsu-bar .ic>.themed-skill-icon{background-size:var(--skill-size,100% 100%)!important;background-position:var(--skill-x) var(--skill-y)!important}
#screen-game .faithful-combat-hud #jutsu-bar .ic>.ov{inset:auto 5px 5px;max-height:calc(100% - 10px);width:auto!important;border-radius:2px;z-index:2;pointer-events:none;background:#08121dc9}
#screen-game .faithful-combat-hud #jutsu-bar .ic>.left{position:absolute;inset:0;display:grid;place-items:center;z-index:3;font:800 16px 'Multiverse Nunito Sans',sans-serif;color:#fff;pointer-events:none}
#screen-game .faithful-combat-hud #jutsu-bar .ic>.lv{display:none}
#screen-game .faithful-combat-hud #jutsu-bar .jutsu-cd>.hk{position:absolute;left:0;right:0;top:auto;bottom:-19px;width:auto;transform:none;display:block;font:800 10px/14px 'Multiverse Nunito Sans',sans-serif;color:#c6d5e3;text-align:center;text-shadow:0 1px 2px #000;pointer-events:none}
#screen-game .faithful-combat-hud #jutsu-bar .jutsu-cd>small,#screen-game .faithful-combat-hud #jutsu-bar .jutsu-cd:after,#screen-game .faithful-combat-hud #jutsu-bar .ic .hk{display:none!important}
#screen-game .faithful-combat-hud .faithful-passive{position:absolute;left:34.4488%;top:43.64%;width:6.1024%!important;height:17.9191%!important;z-index:3;pointer-events:auto;cursor:help}
.passive-art{position:absolute;inset:5px;display:grid;place-items:center;border-radius:2px;background-size:100% 100%;background-position:center;color:#afc1d0;font-size:28px}
.passive-label{position:absolute;bottom:-19px;left:0;right:0;text-align:center;font:800 9px/14px 'Multiverse Nunito Sans',sans-serif;color:#c6d5e3;text-shadow:0 1px 2px #000}
.faithful-passive-tip{max-width:275px;font:12px/1.6 'Multiverse Nunito Sans',sans-serif;color:#c8d8e6}.faithful-passive-tip strong{color:#e5ecf3}.faithful-passive-tip p{margin:6px 0}
.faithful-passive:focus-visible,#screen-game .faithful-combat-hud .jutsu-cd:focus-visible{outline:2px solid #d9c580;outline-offset:4px;border-radius:5px}
#screen-game .faithful-map-source:not(.mm-full){display:none!important}
.faithful-map{position:absolute;left:6.69%;top:23.99%;width:22.44%;height:65.9%;z-index:2;pointer-events:auto;border-radius:50%;overflow:hidden;background:#101a22}
.faithful-map #minimap-box{display:block!important;width:100%;height:100%;min-height:0}
.faithful-map .minimap{position:relative!important;display:block!important;width:100%!important;height:100%!important;aspect-ratio:1;min-height:0!important;flex:none!important;border:0!important;border-radius:50%!important;overflow:hidden!important;background:#101a22;box-shadow:none}
.faithful-map .minimap canvas{position:absolute;inset:0;width:100%;height:100%;border-radius:50%;clip-path:none;filter:saturate(.8) brightness(.95);image-rendering:pixelated}
.faithful-map .mm-orbit-frame,.faithful-map .mm-location{display:none!important}
.faithful-map .mm-north{top:3px;font-size:8px;z-index:2}
.faithful-map .mm-ctl{right:5px;top:25%;gap:2px;padding:2px;background:#101c29dd;border-radius:12px;opacity:0;transition:opacity .15s;pointer-events:none}
.faithful-map .mm-btn{width:19px;height:19px;font-size:11px;border:1px solid #91a3b1;border-radius:50%;background:linear-gradient(#34485a,#142231);color:#e6eef5;display:grid;place-items:center;padding:0}
.faithful-map .mm-full-btn{right:12%;bottom:12%;opacity:0;pointer-events:none}
.faithful-map:hover .mm-ctl,.faithful-map:focus-within .mm-ctl,.faithful-map:hover .mm-full-btn,.faithful-map:focus-within .mm-full-btn{opacity:1;pointer-events:auto}
.faithful-map .pin{background:#e7d48d;border-color:#eff4f8;z-index:1;box-shadow:0 0 4px #000b}
.faithful-map .pin:after{animation:none}
#screen-game .faithful-map-source.mm-full{z-index:9001!important}
@media(max-width:760px){#screen-game .win.faithful-combat-hud[data-win=hotbar]{width:calc(100vw - 12px)!important;left:50%!important;right:auto!important;bottom:5px!important}#screen-game .faithful-combat-hud #jutsu-bar .jutsu-cd>.hk,.passive-label{font-size:7px;bottom:-14px}}
@media(prefers-reduced-motion:reduce){.faithful-map .mm-ctl{transition:none}}
/* Interactive skills paint above the shell surface. */
#screen-game .faithful-combat-hud .combat-skills{z-index:3}
/* Reset legacy combo dots so they cannot collapse the slot frame. */
#screen-game .faithful-combat-hud #jutsu-bar .ic:after{width:auto;height:auto;background:transparent;transform:none}

/* Cleaner combat display: progress shading stays, numeric counters and labels do not. */
#screen-game .faithful-combat-hud #jutsu-bar .ic>.left,
#screen-game .faithful-combat-hud #jutsu-bar .jutsu-cd>.hk,
#screen-game .faithful-combat-hud .passive-label{display:none!important}
#combat-effect-tray .combat-context{display:none!important}

/* Compact approved HUD with a top XP rail and inset skill counters. */
@media(min-width:761px){#screen-game .win.faithful-combat-hud[data-win=hotbar]{width:min(740px,calc(100vw - 28px))!important}}
#screen-game .faithful-combat-hud #jutsu-bar .ic>.left{display:grid!important;inset:5px;z-index:5;border-radius:2px;font:900 18px/1 'Multiverse Nunito Sans',Arial,sans-serif;color:#f4f7fb;text-shadow:0 2px 3px #000,1px 0 2px #000,-1px 0 2px #000;pointer-events:none}
#screen-game .faithful-combat-hud #jutsu-bar .ic>.left:empty{display:none!important}
#screen-game .faithful-combat-hud #jutsu-bar .faithful-skill-index{position:absolute;top:4px;left:4px;z-index:7;min-width:13px;height:13px;padding:0 3px;display:grid;place-items:center;border:1px solid #94a7b55c;border-radius:2px;background:#0a141eeb;color:#eadca7;font:900 9px/1 'Multiverse Nunito Sans',Arial,sans-serif;text-shadow:0 1px 2px #000;pointer-events:none}
.faithful-xp{position:absolute;left:30.6%;right:6.2%;top:36.4%;height:14px;z-index:4;pointer-events:auto;cursor:help;isolation:isolate}
.faithful-xp-track{position:absolute;inset:2px 0;border:1px solid #91a5b6;border-top-color:#c2ced7;border-bottom-color:#465d70;border-radius:3px;background:linear-gradient(#151b27,#242d3c);box-shadow:0 0 0 1px #080e17, inset 0 1px 3px #000b;overflow:hidden}
.faithful-xp-track:after{content:'';position:absolute;inset:0;pointer-events:none;background:repeating-linear-gradient(90deg,transparent 0 calc(10% - 1px),#d6e1ef15 calc(10% - 1px) 10%);box-shadow:inset 0 1px #edf0ff22}
.faithful-xp-fill{display:block;position:absolute;inset:0 auto 0 0;width:var(--xp,0%);background:linear-gradient(#dca6ea,#b264ca 38%,#82449e 70%,#69397f);box-shadow:inset 0 1px #f7ddff88,0 0 5px #c785dc55;transition:width .25s ease-out}
.faithful-level{position:absolute;left:-13px;top:50%;transform:translateY(-50%);height:25px;min-width:38px;padding:0 7px;display:grid;place-items:center;border:2px solid #a8bac9;border-top-color:#d5dfe7;border-bottom-color:#5f7588;border-radius:13px;background:linear-gradient(#3d2c4e,#241b34);box-shadow:0 0 0 1px #0a121b,inset 0 0 0 1px #725085;color:#f3edf9;font:900 12px/1 'Multiverse Nunito Sans',Arial,sans-serif;font-variant-numeric:tabular-nums;text-shadow:0 1px 2px #000}
.faithful-xp:hover .faithful-xp-track,.faithful-xp:focus-visible .faithful-xp-track{border-color:#d2b5e5}
.faithful-xp:focus-visible{outline:2px solid #c9a0e2;outline-offset:5px;border-radius:3px}
.faithful-xp-tip{font:12px/1.5 'Multiverse Nunito Sans',Arial,sans-serif;color:#c7d7e5;min-width:160px}.faithful-xp-tip strong{color:#e9c5f1}.faithful-xp-tip p{margin:5px 0 0}
@media(prefers-reduced-motion:reduce){.faithful-xp-fill{transition:none}}
#screen-game .faithful-combat-hud #jutsu-bar .ic>.left{transform:none;background:transparent;margin:0;padding:0}

/* XP ends clear of the map rim and the curved upper-right ornament. */
.faithful-xp{left:33.5%;right:8.8%;height:12px}
.faithful-level{left:-10px;height:22px;font-size:11px}
#screen-game .faithful-combat-hud .faithful-passive .faithful-skill-index{position:absolute;top:4px;left:4px;z-index:7;min-width:13px;height:13px;padding:0 3px;display:grid;place-items:center;border:1px solid #94a7b55c;border-radius:2px;background:#0a141eeb;color:#eadca7;font:900 9px/1 'Multiverse Nunito Sans',Arial,sans-serif;text-shadow:0 1px 2px #000;pointer-events:none}

/* Paint reference: independent upper rail, inset from both ends of the skill frame. */
.faithful-xp{left:30.5%;right:13.5%;top:28.6%;height:12px}
.faithful-xp-track{border-radius:3px;background:linear-gradient(#121a26,#202c3b);box-shadow:0 0 0 1px #09111a,inset 0 1px 2px #0009,0 2px 0 #a4b6c33b}
.faithful-level{border-radius:7px 10px 10px 7px;box-shadow:0 0 0 1px #0a121b,inset 0 0 0 1px #725085,0 2px 0 #a4b6c33b}

/* Rectangular level plate; raised XP group with clear space over the skill frame. */
.faithful-xp{top:25%}
.faithful-level{border-radius:3px;min-width:38px;padding:0 7px;background:linear-gradient(#3b2c4b,#241e32);border:2px solid #98adbe;border-top-color:#c9d5df;border-bottom-color:#5f7588;box-shadow:0 0 0 1px #0a121b,inset 0 0 0 1px #725085,0 2px 2px #0005}

/* Requested 20% reduction and soft slot frames following the attached reference. */
@media(min-width:761px){#screen-game .win.faithful-combat-hud[data-win=hotbar]{width:min(592px,calc(100vw - 28px))!important}}
#screen-game .faithful-combat-hud #jutsu-bar .jutsu-cd .ic,
#screen-game .faithful-combat-hud .faithful-passive{border-radius:8px!important;box-shadow:0 0 0 1px #0a141d,0 2px 3px #0008!important}
#screen-game .faithful-combat-hud #jutsu-bar .ic:after,
#screen-game .faithful-combat-hud .faithful-passive:after{border-width:2px;border-radius:8px;border-top-color:#a7becb;border-left-color:#8ea7b8;border-right-color:#536e80;border-bottom-color:#3f5a6b;box-shadow:inset 0 0 0 1px #192d38,0 0 0 1px #071018}
#screen-game .faithful-combat-hud #jutsu-bar .ic>.spell-icon{inset:3px!important;left:3px!important;top:3px!important;width:calc(100% - 6px)!important;height:calc(100% - 6px)!important;border-radius:5px!important}
#screen-game .faithful-combat-hud .passive-art{inset:3px;border-radius:5px}
#screen-game .faithful-combat-hud #jutsu-bar .ic>.ov{left:3px;right:3px;bottom:3px;max-height:calc(100% - 6px);border-radius:5px}
#screen-game .faithful-combat-hud #jutsu-bar .ic>.left{inset:3px;border-radius:5px;font-size:16px}
#screen-game .faithful-combat-hud #jutsu-bar .faithful-skill-index,
#screen-game .faithful-combat-hud .faithful-passive .faithful-skill-index{top:3px;left:3px;min-width:10px;height:11px;padding:0 2px;font-size:7px;border-radius:2px}
/* Keep the level and rail proportional to the smaller HUD. */
.faithful-xp{height:10px}.faithful-level{min-width:31px;height:18px;padding:0 5px;left:-8px;font-size:9px}

/* Cura and Haste replace the passive on the left, with no numeric badges. */
#screen-game .faithful-combat-hud #jutsu-bar [data-hud-slot="4"]{left:34.4488%}
#screen-game .faithful-combat-hud #jutsu-bar [data-hud-slot="5"]{left:41.3386%}
#screen-game .faithful-combat-hud #jutsu-bar [data-hud-slot="0"]{left:53.1496%}
#screen-game .faithful-combat-hud #jutsu-bar [data-hud-slot="1"]{left:62.2047%}
#screen-game .faithful-combat-hud #jutsu-bar [data-hud-slot="2"]{left:71.2598%}
#screen-game .faithful-combat-hud #jutsu-bar [data-hud-slot="3"]{left:80.3150%}
#screen-game .faithful-combat-hud #jutsu-bar .faithful-utility-label{position:absolute;left:0;right:0;bottom:-12px;font:800 8px/11px 'Multiverse Nunito Sans',Arial,sans-serif;color:#c7d7e4;text-align:center;text-shadow:0 1px 2px #000;pointer-events:none}

/* Center the two 62-unit support slots on the four 84-unit attack slots. */
#screen-game .faithful-combat-hud #jutsu-bar [data-hud-slot="4"],
#screen-game .faithful-combat-hud #jutsu-bar [data-hud-slot="5"]{top:46.8194%}
#screen-game .faithful-combat-hud #jutsu-bar .faithful-utility-label{bottom:-11px;line-height:10px}

/* Measured reference: use attack 1 as anchor, preserving every source offset. */
#screen-game .faithful-combat-hud #jutsu-bar [data-hud-slot="4"]{left:34.77690289%;top:46.33911368%;width:6.16797900%!important;height:18.11175337%}
#screen-game .faithful-combat-hud #jutsu-bar [data-hud-slot="5"]{left:41.73228346%;top:46.33911368%;width:6.16797900%!important;height:18.11175337%}
#screen-game .faithful-combat-hud #jutsu-bar [data-hud-slot="0"]{left:53.14960630%;top:43.64161850%;width:8.26771654%!important;height:24.27745665%}
#screen-game .faithful-combat-hud #jutsu-bar [data-hud-slot="1"]{left:62.07349081%;top:43.64161850%;width:8.26771654%!important;height:24.27745665%}
#screen-game .faithful-combat-hud #jutsu-bar [data-hud-slot="2"]{left:71.12860892%;top:43.64161850%;width:8.26771654%!important;height:24.27745665%}
#screen-game .faithful-combat-hud #jutsu-bar [data-hud-slot="3"]{left:80.05249344%;top:43.64161850%;width:8.26771654%!important;height:24.27745665%}

/* Equal top/bottom gaps measured against the real bar frame, not the slot centers. */
#screen-game .faithful-combat-hud #jutsu-bar [data-hud-slot="0"],
#screen-game .faithful-combat-hud #jutsu-bar [data-hud-slot="1"],
#screen-game .faithful-combat-hud #jutsu-bar [data-hud-slot="2"],
#screen-game .faithful-combat-hud #jutsu-bar [data-hud-slot="3"]{top:41.47398844%}
#screen-game .faithful-combat-hud #jutsu-bar [data-hud-slot="4"],
#screen-game .faithful-combat-hud #jutsu-bar [data-hud-slot="5"]{top:44.17148362%}
