/* Nothing Here: 60/60 finale. Heading stays OUTSIDE the stage so
   no piece of the unfolded T is obscured on desktop or mobile. */
.nc-page .nc-finale-banner[hidden],
.nc-page .nc-finale-banner #ncFinaleReplay[hidden],
.nc-page .nc-finale-banner #ncFinaleSkip[hidden]{display:none!important}
/* The site header is sticky at z-index:30. Keep the completion panel in
   ordinary page content instead of letting it paint over header tabs when
   the user scrolls or uses a high browser zoom level. */
.nc-page .nc-finale-banner{
 position:relative;z-index:1;
 width:min(calc(100% - 22px),600px);box-sizing:border-box;
 margin:14px auto 8px;
 text-align:center;pointer-events:auto;
 padding:14px 18px 12px;border-radius:17px;
 color:#253e47;background:linear-gradient(135deg,#fffcf2f2,#eaf4f0ec);
 border:1px solid #d1cba7b5;
 box-shadow:0 12px 34px #323c4629,0 0 0 1px #fff9 inset;
 backdrop-filter:blur(13px);
 animation:nc-finale-reveal .9s both;
}
.nc-page .nc-finale-banner .nc-finale-label{
 display:block;font:800 10px/1.25 system-ui,sans-serif;
 letter-spacing:.17em;text-transform:uppercase;color:#817450;
 margin-bottom:4px;
}
.nc-page .nc-finale-banner h2{
 margin:0;color:#263c45;
 font:800 clamp(22px,3.6vw,35px)/1.12 system-ui,sans-serif;
 letter-spacing:-.035em;
 text-shadow:0 1px 1px #fff8;
}
.nc-page .nc-finale-banner p{
 margin:5px 0 0;color:#536d72;
 font:500 12px/1.4 system-ui,sans-serif;
}
.nc-page .nc-finale-banner #ncFinaleReplay,
.nc-page .nc-finale-banner #ncFinaleSkip{
 display:inline-flex;align-items:center;justify-content:center;
 pointer-events:auto;margin:10px auto 0;padding:7px 18px;
 background:#273e48;color:#f7f6ea;border:1px solid #41616b;
 border-radius:999px;font:750 11px/1.3 system-ui,sans-serif;
 cursor:pointer;box-shadow:0 3px 9px #263c4529;
}
.nc-page .nc-finale-banner #ncFinaleReplay:hover,
.nc-page .nc-finale-banner #ncFinaleSkip:hover{
 background:#3b5f67;transform:translateY(-1px);
}
.nc-page .nc-finale-banner #ncFinaleReplay:focus-visible,
.nc-page .nc-finale-banner #ncFinaleSkip:focus-visible{
 outline:3px solid #c98d55;outline-offset:3px;
}
.nc-page .nc-finale-banner[data-phase="opening"]{
 box-shadow:0 14px 46px #b3a37462;
}
.nc-page.nc-finale-active #stage #status,
.nc-page.nc-finale-active .nc-cube-hint,
.nc-page.nc-finale-active .nc-inspection-controls,
.nc-page.nc-finale-active #stage #ncPartHint,
.nc-page.nc-finale-active #stage #ncKeyboardFocus,
.nc-page.nc-finale-active #stage #ncItemFitHalo{
 display:none!important;
}
.nc-page.nc-finale-active #stage canvas{cursor:grab}
.nc-page.nc-finale-active #stage canvas:active{cursor:grabbing}
html[data-theme="dark"] .nc-page .nc-finale-banner,
body[data-theme="dark"].nc-page .nc-finale-banner{
 background:linear-gradient(135deg,#25353bee,#243a3aef);
 color:#f5eecf;border-color:#8579529c;
 box-shadow:0 12px 35px #020c13af;
}
html[data-theme="dark"] .nc-page .nc-finale-banner h2,
body[data-theme="dark"].nc-page .nc-finale-banner h2{
 color:#f4eedf;text-shadow:none;
}
html[data-theme="dark"] .nc-page .nc-finale-banner .nc-finale-label{
 color:#e2c997;
}
html[data-theme="dark"] .nc-page .nc-finale-banner p{
 color:#c4d8d3;
}
@keyframes nc-finale-reveal{
 from{opacity:0;transform:translateY(-10px) scale(.98)}
 to{opacity:1;transform:translateY(0) scale(1)}
}
@media(max-width:700px){
 .nc-page .nc-finale-banner{
  width:min(calc(100% - 20px),460px);border-radius:13px;
  margin:9px auto 4px;padding:10px 10px 8px;
 }
 .nc-page .nc-finale-banner h2{font-size:clamp(20px,5vw,27px)}
 .nc-page .nc-finale-banner .nc-finale-label{font-size:9px}
 .nc-page .nc-finale-banner p{font-size:10px;margin-top:3px}
 .nc-page .nc-finale-banner #ncFinaleReplay,
.nc-page .nc-finale-banner #ncFinaleSkip{margin-top:4px;padding:4px 13px}
}
@media(prefers-reduced-motion:reduce){
 .nc-page .nc-finale-banner{animation:none}
 .nc-page .nc-finale-banner #ncFinaleReplay:hover,
.nc-page .nc-finale-banner #ncFinaleSkip:hover{transform:none}
}

/* Optional private-device finale audio never adds the recording to the
   public site. Keep the picker keyboard-accessible and responsive. */
.nc-page .nc-overline #ncPersonalFinaleInput[hidden],
.nc-page .nc-overline #ncPersonalFinaleClear[hidden]{display:none!important}
.nc-page .nc-overline #ncPersonalFinaleClear{
 min-width:34px;padding:7px 9px;flex:0 0 auto;font-size:16px;
}
.nc-page .nc-overline #ncPersonalFinaleChoose .nc-audio-state{
 max-width:95px;overflow:hidden;text-overflow:ellipsis;
}

/* The moon is an intro prop painted by .nc-world::after. Fade it with
   the unfolded T, then leave only the moving cat and light show.
   CSS custom property is updated from the same audio-clock frame. */
body.nc-page.nc-finale-active.nc-moon .nc-world::after{
 animation:none!important;
 opacity:var(--nh-finale-moon-opacity,0)!important;
 transition:none!important;
 pointer-events:none;
}


/* Post-credits mystery egg: an accessible transparent hit region follows
   the real Three.js egg, not an unrelated flat illustration. */
.nc-page #stage .nc-finale-egg-hit[hidden],
.nc-page #stage .nc-finale-end-card[hidden]{display:none!important}
.nc-page #stage .nc-finale-egg-hit{
 position:absolute;z-index:24;display:block;
 width:clamp(88px,14vw,124px);height:clamp(108px,18vw,154px);
 transform:translate(-50%,-50%);padding:0;margin:0;
 cursor:pointer;border:2px solid transparent;border-radius:50%;
 background:transparent;touch-action:manipulation;
 -webkit-tap-highlight-color:transparent;
}
.nc-page #stage .nc-finale-egg-hit span{
 position:absolute;top:94%;left:50%;transform:translateX(-50%);
 display:block;width:max-content;max-width:180px;
 padding:7px 14px;border:2px solid #453b35;border-radius:999px;
 background:#fff5d9;color:#342c38;
 font:900 13px/1.2 ui-rounded,"Arial Rounded MT Bold","Trebuchet MS",system-ui,sans-serif;
 box-shadow:0 3px 0 #453b35,0 6px 16px #29303728;
}
/* The 3D egg already has a dark shell silhouette. The former orange
   :hover/:focus-visible outline drew a smaller ellipse INSIDE the shell
   because the hit target sits in front of the WebGL canvas. Highlight the
   label instead, leaving the actual egg an uninterrupted cream surface. */
.nc-page #stage .nc-finale-egg-hit:is(:hover,:focus-visible){
 outline:none!important;box-shadow:none!important;
}
.nc-page #stage .nc-finale-egg-hit:hover span{
 transform:translate(-50%,-3px);background:#ffe9af;
}
.nc-page #stage .nc-finale-egg-hit:focus-visible span{
 outline:3px solid #3d7164;outline-offset:4px;
 background:#ffe9af;
}
.nc-page #stage .nc-finale-end-card{
 box-sizing:border-box;position:absolute;z-index:26;
 left:50%;top:50%;transform:translate(-50%,-50%);
 width:min(92%,570px);padding:clamp(18px,4vw,36px);
 text-align:center;pointer-events:none;
 border:4px solid #342b41;border-radius:clamp(23px,5vw,38px);
 color:#302b40;background:linear-gradient(145deg,#fffce7 0%,#ffeec9 55%,#fbdbe5 100%);
 box-shadow:0 9px 0 #342b41,0 20px 42px #21223250,
  inset 0 0 0 3px #ffffffdd;
 animation:nc-finale-egg-card-pop .55s cubic-bezier(.2,1.5,.45,1) both;
 font-family:ui-rounded,"Arial Rounded MT Bold","Trebuchet MS",system-ui,sans-serif;
}
.nc-page #stage .nc-finale-end-title{
 margin:0;color:#f7b34d;
 font-size:clamp(31px,6.5vw,65px);line-height:1.05;
 font-weight:1000;letter-spacing:-.055em;
 -webkit-text-stroke:clamp(1.2px,.29vw,2.7px) #342b41;
 paint-order:stroke fill;
 text-shadow:2px 4px 0 #342b41;
}
.nc-page #stage .nc-finale-end-title span{
 display:block;color:#f59b85;margin-top:5px;
}
.nc-page #stage .nc-finale-end-answer{
 margin:16px auto 0;color:#805ba3;
 font-size:clamp(26px,5vw,40px);font-weight:950;
 line-height:1.2;letter-spacing:-.04em;
}
.nc-page #stage .nc-finale-end-congrats{
 margin-top:23px;font-size:clamp(13px,2.3vw,17px);
 letter-spacing:.14em;font-weight:900;color:#54465d;
}
@keyframes nc-finale-egg-card-pop{
 from{opacity:0;transform:translate(-50%,-43%) scale(.77)}
 to{opacity:1;transform:translate(-50%,-50%) scale(1)}
}
@media(max-width:600px){
 .nc-page #stage .nc-finale-egg-hit span{font-size:12px;padding:6px 11px}
 .nc-page #stage .nc-finale-end-card{border-width:3px;box-shadow:0 6px 0 #342b41,0 15px 30px #21223250}
}
@media(prefers-reduced-motion:reduce){
 .nc-page #stage .nc-finale-end-card{animation:none}
 .nc-page #stage .nc-finale-egg-hit:hover span{transform:translateX(-50%)}
}
