/* Exact generated raster parts, positioned as a puppet; no customer template rules. */
.horse-guide-root,.horse-guide-root *{box-sizing:border-box}
.horse-guide-root{--hg-width:150px;--hg-height:219px;--hg-scale:.6;--hg-right:16px;--hg-bottom:14px;position:fixed;right:var(--hg-right);bottom:var(--hg-bottom);z-index:45;display:grid;justify-items:center;width:var(--hg-width);pointer-events:none;color:#12344f;font-family:inherit}
.horse-guide-root[hidden],.horse-guide-root [hidden]{display:none!important}
.horse-guide-figure{position:relative;width:var(--hg-width);height:var(--hg-height);pointer-events:none;user-select:none}
.horse-guide-rig{display:none;position:absolute;left:0;top:0;width:250px;height:365px;transform:scale(var(--hg-scale));transform-origin:top left;pointer-events:none}
.horse-guide-part{position:absolute;display:block;background-repeat:no-repeat;background-size:400% 200%;pointer-events:none}
.horse-guide-root.is-rig-ready .horse-guide-rig{display:block}.horse-guide-root.is-rig-ready .horse-guide-part{background-image:url('./horse-guide/horse-guide-parts.v1.png')}
.horse-guide-tail{left:130px;top:236px;width:130px;height:130px;background-position:66.666667% 100%;z-index:1;transform-origin:24% 20%;animation:hg-tail 4s ease-in-out infinite}
.horse-guide-leg-left{left:28px;top:244px;width:130px;height:130px;background-position:0 100%;z-index:2;transform-origin:50% 18%}
.horse-guide-leg-right{left:88px;top:244px;width:130px;height:130px;background-position:33.333333% 100%;z-index:2;transform-origin:50% 18%}
.horse-guide-arm-right{left:139px;top:198px;width:105px;height:105px;background-position:100% 0;z-index:3;transform-origin:50% 16%;transform:rotate(-5deg);animation:hg-arm-idle-right 5.4s ease-in-out infinite}
.horse-guide-torso{left:24px;top:135px;width:190px;height:190px;background-position:33.333333% 0;z-index:4;transform-origin:50% 70%;animation:hg-breathe 3.6s ease-in-out infinite}
.horse-guide-arm-left{left:5px;top:198px;width:105px;height:105px;background-position:66.666667% 0;z-index:5;transform-origin:50% 16%;transform:rotate(4deg);animation:hg-arm-idle-left 5.1s ease-in-out infinite}
.horse-guide-head{position:absolute;left:7px;top:0;width:220px;height:220px;z-index:6;transform-origin:51% 86%;animation:hg-head-idle 5s ease-in-out infinite}
.horse-guide-head-open,.horse-guide-head-blink{inset:0;width:220px;height:220px;transform-origin:50% 50%}
.horse-guide-head-open{background-position:0 0;animation:hg-eye-open 6s step-end infinite}
.horse-guide-head-blink{background-position:100% 100%;opacity:0;transform:translate(-2px,0) scale(1.04,1.02);animation:hg-eye-blink 6s step-end infinite}
.horse-guide-static{display:block;position:absolute;inset:0;width:100%;height:100%;object-fit:contain;pointer-events:none}.horse-guide-root.is-rig-ready .horse-guide-static{display:none}
.horse-guide-probe{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}
.horse-guide-shadow{position:absolute;bottom:3px;left:26%;width:50%;height:8px;border-radius:50%;background:#102f4c18;filter:blur(3px)}
.horse-guide-launch{display:flex;align-items:center;justify-content:center;gap:6px;min-height:48px;max-width:100%;padding:5px 11px;border:1px solid #c0d6db;border-radius:25px;background:#fffdf7;color:#12344f;font:inherit;font-size:12px;font-weight:750;box-shadow:0 4px 14px #102f4c14;cursor:pointer;pointer-events:auto}
.horse-guide-launch-image{display:none;width:33px;height:44px;object-fit:contain;pointer-events:none}
.horse-guide-panel{position:fixed;right:calc(var(--hg-right) + var(--hg-width) + 12px);bottom:var(--hg-bottom);width:min(340px,calc(100vw - 24px));max-height:calc(100dvh - var(--racelens-header-height,145px) - var(--hg-bottom) - 24px);overflow:auto;padding:17px;border:1px solid #bdd6dd;border-top:3px solid #d9b550;border-radius:16px;background:#fffdf7;color:#12344f;box-shadow:0 10px 35px #102f4c26;pointer-events:auto;overscroll-behavior:contain}
.horse-guide-heading{display:flex;align-items:center;justify-content:space-between;gap:8px}.horse-guide-heading h2{margin:0;font-size:17px;line-height:1.3}.horse-guide-close{flex-shrink:0;width:44px;min-height:44px;padding:0;border:0;border-radius:50%;background:transparent;color:#12344f;font-size:26px;cursor:pointer}
.horse-guide-message{margin:10px 0 14px;font-size:13px;line-height:1.65;overflow-wrap:anywhere}
.horse-guide-actions{display:grid;gap:7px}.horse-guide-action,.horse-guide-controls button{min-height:44px;padding:9px 12px;border:1px solid #c3d9df;border-radius:9px;background:#f0f8f8;color:#0a6575;text-align:left;font:inherit;font-size:12px;font-weight:650;cursor:pointer;overflow-wrap:anywhere}
.horse-guide-action:hover,.horse-guide-controls button:hover,.horse-guide-launch:hover{background:#e6f3f3}.horse-guide-controls{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}.horse-guide-controls button{flex:1 1 auto;background:transparent;color:#36596b;text-align:center;font-size:11px}.horse-guide-motion-note{margin:9px 0 0;color:#597584;font-size:11px;line-height:1.4}
.horse-guide-root.is-compact{width:64px}.horse-guide-root.is-compact .horse-guide-figure{display:none}.horse-guide-root.is-compact.is-open{width:var(--hg-width)}.horse-guide-root.is-compact.is-open .horse-guide-figure{display:block}.horse-guide-root.is-compact .horse-guide-launch{width:60px;min-height:60px;padding:5px;border-radius:50%}.horse-guide-root.is-compact .horse-guide-launch-image{display:block;width:36px;height:48px}.horse-guide-root.is-compact .horse-guide-launch-label{display:none}.horse-guide-root.is-compact .horse-guide-panel{right:12px;bottom:calc(var(--hg-bottom) + var(--hg-height) + 68px);max-height:calc(100dvh - var(--racelens-header-height,145px) - var(--hg-bottom) - var(--hg-height) - 88px)}.horse-guide-root.is-compact.is-off{width:110px}
.horse-guide-root button:focus-visible{outline:3px solid #d5a62e;outline-offset:3px}.horse-guide-root button:disabled{opacity:.6;cursor:default}.horse-guide-root.is-off{width:110px}.horse-guide-root.is-off .horse-guide-figure{display:none}.horse-guide-root.is-off .horse-guide-launch-image{display:none!important}.horse-guide-root.is-off .horse-guide-launch-label{display:block!important}.horse-guide-root.is-off .horse-guide-launch{width:auto;min-height:44px;border-radius:22px;padding:8px 10px}
.horse-guide-root.is-paused .horse-guide-rig,.horse-guide-root.is-reduced .horse-guide-rig,.horse-guide-root.has-asset-error .horse-guide-rig{display:none}.horse-guide-root.is-paused .horse-guide-static,.horse-guide-root.is-reduced .horse-guide-static,.horse-guide-root.has-asset-error .horse-guide-static{display:block}
.horse-guide-root.is-suspended *{animation-play-state:paused!important}.horse-guide-root.is-paused *,.horse-guide-root.is-reduced *{animation:none!important;transition:none!important}
.horse-guide-root[data-pose=wave] .horse-guide-arm-left{animation:hg-wave 1.5s ease-in-out}.horse-guide-root[data-pose=wave] .horse-guide-head{animation:hg-nod 1.5s ease-in-out}.horse-guide-root[data-pose=nod] .horse-guide-head{animation:hg-nod 1.3s ease-in-out}.horse-guide-root[data-pose=point] .horse-guide-arm-right{animation:hg-point 1.7s ease-in-out}
.horse-guide-root[data-pose=tilt] .horse-guide-head{animation:hg-head-tilt 2.4s ease-in-out}.horse-guide-root[data-pose=shift] .horse-guide-torso{animation:hg-weight-shift 2.4s ease-in-out}.horse-guide-root[data-pose=shift] .horse-guide-leg-left{animation:hg-weight-leg 2.4s ease-in-out}
.horse-guide-root[data-pose=walk] .horse-guide-leg-left{animation:hg-step-left .42s ease-in-out infinite}.horse-guide-root[data-pose=walk] .horse-guide-leg-right{animation:hg-step-right .42s ease-in-out infinite}.horse-guide-root[data-pose=walk] .horse-guide-arm-left{animation:hg-swing-left .42s ease-in-out infinite}.horse-guide-root[data-pose=walk] .horse-guide-arm-right{animation:hg-swing-right .42s ease-in-out infinite}.horse-guide-root[data-pose=walk] .horse-guide-head{animation:hg-walk-head .42s ease-in-out infinite}.horse-guide-root.is-taking-steps{animation:hg-nearby-steps 3s ease-in-out}
.horse-guide-root[data-pose=steps] .horse-guide-leg-left{animation:hg-step-left .42s ease-in-out infinite}.horse-guide-root[data-pose=steps] .horse-guide-leg-right{animation:hg-step-right .42s ease-in-out infinite}.horse-guide-root[data-pose=steps] .horse-guide-arm-left{animation:hg-swing-left .42s ease-in-out infinite}.horse-guide-root[data-pose=steps] .horse-guide-arm-right{animation:hg-swing-right .42s ease-in-out infinite}.horse-guide-root[data-pose=steps] .horse-guide-head{animation:hg-walk-head .42s ease-in-out infinite}.horse-guide-root[data-pose=steps].is-taking-steps{animation-duration:2.2s}.horse-guide-root[data-pose=walk].is-taking-steps{animation-duration:5s}
.horse-guide-target{outline:3px solid #d5a62f!important;outline-offset:4px}
@keyframes hg-breathe{0%,100%{transform:translateY(0) scaleY(1)}50%{transform:translateY(-1.5px) scaleY(1.012)}}
@keyframes hg-tail{0%,100%{transform:rotate(-7deg)}50%{transform:rotate(9deg)}}
@keyframes hg-head-idle{0%,100%{transform:rotate(-1deg)}50%{transform:rotate(2.5deg) translateY(-2px)}}
@keyframes hg-arm-idle-left{0%,100%{transform:rotate(4deg)}50%{transform:rotate(10deg)}}
@keyframes hg-arm-idle-right{0%,100%{transform:rotate(-4deg)}50%{transform:rotate(-10deg)}}
@keyframes hg-eye-open{0%,92%,96%,100%{opacity:1}93%,95%{opacity:0}}
@keyframes hg-eye-blink{0%,92%,96%,100%{opacity:0}93%,95%{opacity:1}}
@keyframes hg-wave{0%,100%{transform:rotate(4deg)}20%,60%{transform:rotate(140deg)}40%,80%{transform:rotate(162deg)}}
@keyframes hg-nod{0%,100%{transform:rotate(0)}25%,70%{transform:rotate(6deg) translateY(2px)}45%,85%{transform:rotate(-2deg)}}
@keyframes hg-head-tilt{0%,100%{transform:rotate(0)}30%,65%{transform:rotate(-7deg) translateY(-1px)}}
@keyframes hg-weight-shift{0%,100%{transform:translateX(0) rotate(0)}30%{transform:translateX(3px) rotate(1.5deg)}65%{transform:translateX(-2px) rotate(-1deg)}}
@keyframes hg-weight-leg{0%,100%{transform:rotate(0)}30%,60%{transform:rotate(5deg)}}
@keyframes hg-point{0%,100%{transform:rotate(-5deg)}25%,75%{transform:rotate(-78deg)}}
@keyframes hg-step-left{0%,100%{transform:rotate(-9deg) translateY(-2px)}50%{transform:rotate(9deg) translateY(0)}}
@keyframes hg-step-right{0%,100%{transform:rotate(9deg) translateY(0)}50%{transform:rotate(-9deg) translateY(-2px)}}
@keyframes hg-swing-left{0%,100%{transform:rotate(15deg)}50%{transform:rotate(-12deg)}}
@keyframes hg-swing-right{0%,100%{transform:rotate(-15deg)}50%{transform:rotate(12deg)}}
@keyframes hg-walk-head{0%,100%{transform:translateY(-2px) rotate(-1deg)}50%{transform:translateY(0) rotate(1deg)}}
@keyframes hg-nearby-steps{0%,100%{transform:translateX(0)}45%,55%{transform:translateX(calc(-1 * var(--hg-step-distance,0px)))}}
@media(max-width:1100px){.horse-guide-panel{right:12px;bottom:calc(var(--hg-bottom) + 60px)}}
@media(max-width:760px){.horse-guide-root{--hg-bottom:calc(78px + env(safe-area-inset-bottom));width:64px}.horse-guide-figure{display:none}.horse-guide-root.is-open{width:var(--hg-width)}.horse-guide-root.is-open .horse-guide-figure{display:block}.horse-guide-launch{width:60px;min-height:60px;padding:5px;border-radius:50%}.horse-guide-launch-image{display:block;width:36px;height:48px}.horse-guide-launch-label{display:none}.horse-guide-panel{right:12px;bottom:calc(var(--hg-bottom) + var(--hg-height) + 68px);max-height:calc(100dvh - var(--racelens-header-height,133px) - var(--hg-bottom) - var(--hg-height) - 88px);padding:14px}.horse-guide-root.is-off .horse-guide-panel{bottom:calc(var(--hg-bottom) + 68px)}}
@media(max-height:640px){.horse-guide-root .horse-guide-figure{display:none!important}.horse-guide-launch-image{display:block}.horse-guide-root .horse-guide-panel{right:12px;bottom:calc(var(--hg-bottom) + 64px)!important;max-height:calc(100dvh - var(--racelens-header-height,133px) - var(--hg-bottom) - 84px)!important}}
@media(prefers-reduced-motion:reduce){.horse-guide-root *{animation:none!important;transition:none!important}.horse-guide-rig{display:none}.horse-guide-static{display:block}.horse-guide-target{scroll-behavior:auto}}

/* v3: a friendly good-wish mascot; the existing raster rig and motion are retained. */
#horse-guide{height:var(--hg-height)}
#horse-guide .horse-guide-launch{position:absolute;inset:0;width:var(--hg-width);height:var(--hg-height);min-height:44px;padding:0;border:0;border-radius:20px;background:transparent;box-shadow:none}
#horse-guide .horse-guide-launch:hover{background:transparent}
#horse-guide .horse-guide-launch-image{display:none}
#horse-guide .horse-guide-launch-label{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
#horse-guide .horse-guide-panel{right:var(--hg-right);bottom:calc(var(--hg-bottom) + var(--hg-height) + 10px);width:min(280px,calc(100vw - 24px));max-height:calc(100dvh - var(--racelens-header-height,145px) - var(--hg-bottom) - var(--hg-height) - 26px);padding:12px;border-radius:15px}
#horse-guide .horse-guide-heading h2{font-size:14px}
#horse-guide .horse-guide-message{margin:4px 0 8px;font-size:14px;line-height:1.6}
#horse-guide .horse-guide-controls{gap:6px;margin-top:9px}
#horse-guide .horse-guide-controls button{font-size:12px;min-height:44px;padding:8px}
#horse-guide.is-auto .horse-guide-panel{right:var(--hg-auto-right);width:var(--hg-auto-width);max-height:180px}
#horse-guide.is-auto .horse-guide-heading h2{font-size:12px}
#horse-guide.is-auto .horse-guide-message{font-size:13px;margin-bottom:0;line-height:1.55}
#horse-guide.is-auto .horse-guide-controls,#horse-guide.is-auto .horse-guide-motion-note{display:none!important}
#horse-guide.is-compact{width:64px;height:64px}
#horse-guide.is-compact .horse-guide-figure{display:none!important}
#horse-guide.is-compact .horse-guide-launch{position:relative;inset:auto;width:60px;height:60px;min-height:60px;padding:5px;border:1px solid #c0d6db;border-radius:50%;background:#fffdf7;box-shadow:0 4px 14px #102f4c14}
#horse-guide.is-compact .horse-guide-launch-image{display:block;width:36px;height:48px}
#horse-guide.is-compact .horse-guide-panel{right:12px;bottom:calc(var(--hg-bottom) + 74px);max-height:calc(100dvh - var(--racelens-header-height,133px) - var(--hg-bottom) - 98px)}
#horse-guide.is-off{width:110px;height:44px}
#horse-guide.is-off .horse-guide-launch{position:relative;inset:auto;width:110px;height:44px;min-height:44px;padding:8px 10px;border:1px solid #c0d6db;border-radius:22px;background:#fffdf7}
#horse-guide.is-off .horse-guide-launch-label{position:static;width:auto;height:auto;margin:0;overflow:visible;clip:auto;white-space:normal}
@media(max-height:640px){#horse-guide{width:64px;height:60px}#horse-guide .horse-guide-launch{position:relative;inset:auto;width:60px;height:60px;padding:5px;border:1px solid #c0d6db;border-radius:50%;background:#fffdf7}#horse-guide .horse-guide-launch-image{display:block;width:36px;height:48px}#horse-guide .horse-guide-panel{right:12px;bottom:calc(var(--hg-bottom) + 74px)!important;max-height:calc(100dvh - var(--racelens-header-height,133px) - var(--hg-bottom) - 98px)!important}}
