/* Original 64px sprites. Each character belongs to its surface, never the viewport. */
.story-mascot,.story-mobile-art{
  mask-image:none!important;-webkit-mask-image:none!important;
  mix-blend-mode:normal;overflow:visible!important;border-radius:0!important;
}
.pixel-wordmark{
  position:absolute;left:50%;top:270px;transform:translateX(-50%);
  color:#282a2c;font-family:Nunito,system-ui,sans-serif;font-size:300px;
  font-weight:900;line-height:1;letter-spacing:-.085em;white-space:nowrap;
  text-shadow:0 7px 0 #e6eadf;
}
.pixel-perch{position:relative;display:inline-block}
.pixel-baseline{display:inline-block;width:0;height:0;vertical-align:baseline}
.pixel-milo{
  display:block;width:128px;height:128px;pointer-events:none;
  background-image:url('/assets/milo-idle.png');background-repeat:no-repeat;
  background-size:300% 300%;image-rendering:pixelated;
}
.hero-pixel{
  position:absolute;left:50%;top:-110px;transform:translateX(-50%);
  width:192px;height:192px;z-index:1;
}
.story-mobile-art .pixel-wordmark{top:180px;font-size:clamp(150px,22vw,260px)}
.journey-plan-grid{position:relative;isolation:isolate;margin-top:82px}
.journey-plan{position:relative;z-index:1}
.pricing-milo-window{
  position:absolute;right:40px;top:-108px;width:128px;height:108px;
  overflow:hidden;pointer-events:none;z-index:0;
}
.pricing-milo-rise{position:absolute;bottom:-51px;left:0;display:block}
@media(max-width:760px){
  .pixel-wordmark{top:140px;font-size:190px}
  .hero-pixel{width:128px;height:128px}
  .story-mobile-art .pixel-wordmark{font-size:clamp(140px,46vw,190px);top:145px}
  .story-mobile-art{height:300px}
  .journey-plan-grid{margin-top:96px}
  .pricing-milo-window{right:24px}
}

/* V10: real buttons, a quiet idle, contact shadows and a small authored tap reaction. */
.milo-actor{
 display:block;width:128px;height:128px;padding:0;margin:0;border:0;
 background:transparent;color:inherit;pointer-events:auto;cursor:pointer;
 appearance:none;touch-action:manipulation;-webkit-tap-highlight-color:transparent;
 border-radius:26px;isolation:isolate;
}
.milo-actor .pixel-milo{width:100%;height:100%;transform:translateY(var(--hop,0px));position:relative;z-index:1}
.milo-actor.hero-pixel{width:192px;height:192px}
.milo-actor:focus-visible{outline:2px solid #65754f;outline-offset:5px}
.milo-contact{
 position:absolute;left:30%;width:40%;height:5px;bottom:7%;
 background:#282a2c;border-radius:50%;opacity:var(--shadow-opacity,.14);
 transform:scaleX(var(--shadow-scale,1));pointer-events:none;
}
.milo-sparks{position:absolute;left:50%;top:0;pointer-events:none;width:0;height:0;z-index:2}
.milo-sparks i{
 position:absolute;left:-5px;top:6px;width:10px;height:10px;background:#93a47b;opacity:0;
 clip-path:polygon(0 14%,14% 14%,14% 0,43% 0,43% 14%,57% 14%,57% 0,86% 0,86% 14%,100% 14%,100% 57%,86% 57%,86% 71%,71% 71%,71% 86%,57% 86%,57% 100%,43% 100%,43% 86%,29% 86%,29% 71%,14% 71%,14% 57%,0 57%);
}
.milo-sparks i:nth-child(2){background:#c0a16f;top:-2px}
.milo-hint{
 display:block;position:absolute;right:4px;top:calc(100% + 20px);
 font:500 12px/20px Manrope,system-ui,sans-serif;letter-spacing:0;text-shadow:none;
 color:#69725e;white-space:nowrap;pointer-events:none;
}
.milo-hint b{display:inline-block;margin-left:5px;font-weight:500;color:#65754f}
.milo-hint.has-greeted{color:#65754f}
.pricing-milo-window{overflow:visible;clip-path:inset(-50px -20px 0);z-index:2}
.pricing-milo-window:has(.milo-actor:focus-visible){outline:2px solid #65754f;outline-offset:3px;border-radius:18px 18px 0 0}
.pricing-pixel:focus-visible{outline:none}
.pricing-pixel .milo-contact{display:none}
.pricing-pixel .milo-sparks{top:8px}
.milo-announcement{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
@media(max-width:760px){
 .milo-actor.hero-pixel{width:128px;height:128px}
 .milo-hint{top:calc(100% + 14px);right:8px;font-size:11px}
 .journey-plan-grid{margin-top:112px}
}
@media(hover:hover){.milo-actor:hover .pixel-milo{filter:drop-shadow(0 0 2px #65754f18)}}
@media(prefers-reduced-motion:reduce){.milo-actor .pixel-milo{transform:none!important}.milo-sparks{display:none}}

/* V11: a scene-local companion, aligned beside the progress rail, never a roaming overlay. */
.story-milo-guide{display:none}
.is-enhanced .story-milo-guide{
 display:block;position:absolute;left:720px;bottom:72px;width:128px;height:128px;
 opacity:0;z-index:3;pointer-events:none;
}
.story-milo-guide .milo-actor{position:relative;pointer-events:auto}
.story-milo-guide[inert] .milo-actor{pointer-events:none}
.guide-perch{
 position:absolute;bottom:5px;left:23%;width:54%;height:3px;background:#dce3d1;
 border-radius:2px;pointer-events:none;
}
.milo-actor .pixel-milo{transform:translateY(var(--hop,0px)) scaleX(var(--facing,1))}
@media(max-width:760px){
 .is-enhanced .story-milo-guide{left:12px;bottom:38px;width:96px;height:96px}
 .story-milo-guide .milo-actor{width:96px;height:96px;border-radius:18px}
 .story-milo-guide .milo-contact{height:3px}
 .guide-perch{bottom:3px;height:2px}
}
@media(prefers-reduced-motion:reduce){.story-milo-guide{display:none!important}}

/* V12: one visible shared companion from the lettering through the entire story. */
.is-enhanced .story-mascot .hero-pixel{visibility:hidden;pointer-events:none}
.is-enhanced .story-milo-guide{opacity:0;transform-origin:0 0;will-change:transform}
.is-enhanced .story-milo-guide.is-positioned{opacity:1}
.story-milo-guide .guide-perch{opacity:var(--perch-opacity,0)}
/* The longest label owns a fixed column; labels never push the progress track. */
.is-enhanced .story-progress{display:grid;grid-template-columns:140px 220px 1fr;gap:24px}
.is-enhanced .story-progress [data-story-label]{white-space:nowrap}
.is-enhanced .story-progress .story-progress-track{width:100%}
.is-enhanced .story-progress [data-story-count]{margin-left:0;justify-self:end;white-space:nowrap}
@media(max-width:760px){
 .is-enhanced .story-progress{grid-template-columns:108px 100px 1fr;gap:14px}
}

/* V14: original front paws overlap the edge; the body is masked behind it.
   Each crop uses idle frame 0 at exactly 2x. No resampling or new raster art. */
.pricing-milo-paws{position:absolute;right:40px;top:-4px;width:128px;height:22px;
 z-index:3;pointer-events:none;}
.milo-paw{position:absolute;top:0;width:18px;height:18px;display:block;
 background-image:url('/assets/milo-idle.png');background-size:384px 384px;
 background-repeat:no-repeat;image-rendering:pixelated;opacity:0;
 filter:drop-shadow(0 2px 0 #282a2c20);}
.milo-paw-left{left:58px;background-position:-58px -100px}
.milo-paw-right{left:78px;background-position:-78px -100px}
.pricing-milo-window:has(.pricing-pixel:focus-visible){clip-path:inset(-50px -20px -18px)}
@media(max-width:760px){.pricing-milo-paws{right:24px}}

/* Hide the seated tail below the shoulders so it cannot poke through the rim. */
.pricing-pixel:not([data-state="celebrating"]):not([data-state="greeted"]) .pixel-milo{
 clip-path:polygon(0 0,100% 0,100% 60%,80% 60%,80% 100%,42% 100%,42% 60%,0 60%);
}

/* V15: include the forelegs, clear the rim, and land toes over the front.
   Foreleg roots meet the collar; toes remain in front while clearing the rim. */
.pricing-milo-window{z-index:4}
.pricing-milo-paws{top:0;height:20px;z-index:5}
.milo-paw{height:20px;width:20px;filter:drop-shadow(0 2px 0 rgb(40 42 44 / var(--paw-shadow,0)))}
.milo-paw-left{left:56px;background-position:-56px -98px}
.milo-paw-right{left:78px;width:18px;background-position:-78px -98px}

/* V16: one connected generated sprite, with its natural transparent paw gap.
   Contact row 47 / 64 aligns with the real card edge at 2x display size. */
.pricing-milo-rise{bottom:-34px}
.pricing-milo-window{clip-path:inset(-50px -20px -18px);z-index:4}
.pricing-milo-paws{display:none}
.pricing-pixel .pixel-milo{clip-path:none!important;background-size:100% 100%;background-image:url('/assets/card-peek/approved-pose-128.png')}

/* V17: larger pricing companion, keeping source row 47 on the card rim. */
.pricing-milo-window{width:192px;height:162px;top:-162px;clip-path:inset(-50px -20px -27px)}
.pricing-milo-rise{bottom:-51px}
.pricing-pixel.milo-actor{width:192px;height:192px}
.journey-plan-grid{margin-top:132px}
@media(max-width:760px){.journey-plan-grid{margin-top:152px}}

/* Soften the enlarged generated sprite without changing its source frames. */
.pricing-pixel .pixel-milo{image-rendering:auto}

/* V18: approved original-Milo identity, 128px source with more facial detail.
   Card contact row 95 / 128 maps to 166.25 CSS pixels at this display size. */
.pricing-milo-window{width:224px;height:194px;top:-194px;clip-path:inset(-50px -20px -30px)}
.pricing-milo-rise{bottom:-57.75px}
.pricing-pixel.milo-actor{width:224px;height:224px}
.pricing-pixel .pixel-milo{background-image:url('/assets/card-peek/approved-pose-128.png');image-rendering:auto}
.journey-plan-grid{margin-top:150px}
@media(max-width:760px){.journey-plan-grid{margin-top:172px}}

/* The higher-resolution frames keep pixel-art edges without the coarse 3x pixels. */
.pricing-pixel .pixel-milo{image-rendering:pixelated}
