html.nkfw-fit, .nkfw-fit body {height:100%;overflow:hidden;}
/* Hidden overflow still scrolls on keyboard focus. Clip keeps the fitted scene
   stationary when a hotspot near its lower edge receives focus. */
@supports (overflow:clip){
  html.nkfw-fit,.nkfw-fit body,html.nkfw-fit #nk-family-widget.nkfw{overflow:clip;}
}
html.nkfw-fit, .nkfw-fit body {background:#e6e7e9;}
html.nkfw-fit #nk-family-widget.nkfw {height:100%;min-height:0;max-height:none;}
html.nkfw-fit #nk-family-widget .nkfw-art {inset:0;width:100%;height:100%;max-width:none;aspect-ratio:auto;transform:none;}
html.nkfw-fit #nk-family-widget .nkfw-person,
html.nkfw-fit #nk-family-widget .nkfw-hotspot {left:var(--fit-left)!important;right:auto!important;bottom:var(--fit-bottom)!important;width:var(--fit-width)!important;height:var(--fit-height)!important;aspect-ratio:auto;}
/* Also outranks the hand-placed mobile positions in index.html (data-slot + nth-child), so phones use the measured layout. */
html.nkfw-fit #nk-family-widget .nkfw-thoughts .nkfw-thought,
html.nkfw-fit #nk-family-widget .nkfw-thoughts[data-slot] .nkfw-thought:nth-child(n) {display:block;left:var(--fit-left)!important;top:var(--fit-top)!important;width:var(--fit-width)!important;transform-origin:50% 50%;transform:translate(-50%,-50%) scale(.7) rotate(var(--rot));transition:opacity .35s ease var(--delay),transform .55s cubic-bezier(.22,1,.36,1) var(--delay),filter .35s ease var(--delay);}
html.nkfw-fit #nk-family-widget .nkfw-thoughts.nkfw-is-active .nkfw-thought {transform:translate(-50%,-50%) scale(1) rotate(var(--rot));}
html.nkfw-fit #nk-family-widget .nkfw-cue {top:-32px;transform:translateX(-50%) scale(.65);transform-origin:50% 100%;}
html.nkfw-fit #nk-family-widget .nkfw-hotspot:focus-visible {outline:2px solid #222724;outline-offset:-4px;border-radius:45% 45% 8px 8px;}
html.nkfw-fit #nk-family-widget.nkfw {background:#e6e7e9;}
/* A scene layer: the thought cutouts (18) pass in front of the action (14). */
#nk-family-widget .nkfw-build-cta{display:none}
html.nkfw-fit #nk-family-widget .nkfw-build-cta{position:absolute;z-index:14;display:flex;align-items:center;justify-content:center;gap:14px;box-sizing:border-box;padding:12px 18px;border:1px solid #e4f0dcaa;border-radius:999px;background:linear-gradient(110deg,#586253 0%,#6e766c 28%,#879080 57%,#e4e8dd 82%,#aab3a2 100%);background-size:220% 100%;color:#fff;text-shadow:0 1px 3px #173d30b3;font:500 clamp(16px,1.25vw,18px)/1.15 -apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;letter-spacing:-.035em;text-decoration:none;white-space:nowrap;box-shadow:0 7px 28px #42654b30,inset 0 1px 0 #fff9;pointer-events:auto;animation:nkfw-green-flow 5s ease-in-out infinite alternate;transition:box-shadow .25s,opacity .3s}
html.nkfw-fit #nk-family-widget .nkfw-build-cta span{font-size:22px;line-height:1}
html.nkfw-fit #nk-family-widget .nkfw-build-cta:hover{box-shadow:0 9px 36px #42654b55,inset 0 1px 0 #fff;animation-duration:2.5s}
html.nkfw-fit #nk-family-widget .nkfw-build-cta:focus-visible{outline:3px solid #355c46;outline-offset:5px}
html.nkfw-fit #nk-family-widget.nkfw--active .nkfw-build-cta{pointer-events:none;opacity:0}
@keyframes nkfw-green-flow{from{background-position:0% 50%}to{background-position:70% 50%}}
@media(prefers-reduced-motion:reduce){html.nkfw-fit #nk-family-widget .nkfw-build-cta{animation:none;background-position:20% 50%}}
