/* The fully physical diorama needs enough room for miniature objects
   around the machine. The old CSS cube's narrow 620px inspection frame
   clipped the metal stand and made the real props almost imperceptible. */
.nc-page.nc-physical-ready .nc-world {
 height:clamp(505px,69dvh,690px);
 max-height:none;
}
.nc-page.nc-physical-ready .nc-world .nc-cube-zone {
 width:min(860px,100%);
 max-width:100%;
}
@media(max-width:700px){
 .nc-page.nc-physical-ready .nc-world{height:clamp(450px,62dvh,600px)}
 .nc-page.nc-physical-ready .nc-world .nc-cube-zone{width:100%}
}
/* A real WebGL cube is now the default visible Nothing Here object.
   The DOM/CSS cube remains a hidden, fully functional semantic fallback and
   authoritative event target so the original 60-secret story still works. */
.nc-page .nc-cube-zone #stage {
 position:absolute;
 inset:0;
 display:block;
 width:100%;
 height:100%;
 border:0;
 padding:0;
 margin:0;
 z-index:5;
 visibility:hidden;
 opacity:0;
 pointer-events:none;
 overflow:hidden;
 touch-action:none;
 border-radius:19px;
 background:transparent;
 transition:opacity .24s ease;
}
.nc-page .nc-cube-zone #stage canvas{
 display:block;width:100%;height:100%;
 touch-action:none;
 outline:0;
}
.nc-page.nc-physical-ready .nc-cube-zone #stage{
 visibility:visible;opacity:1;pointer-events:auto;
}
.nc-page.nc-physical-ready .nc-world .nc-cube-zone{
 transform:translate3d(var(--nc-pan-x,0px),var(--nc-pan-y,0px),0);
 cursor:default;touch-action:auto;
}
.nc-page.nc-physical-ready .nc-cube-zone #ncCube{
 visibility:hidden!important;
 pointer-events:none!important;
}
.nc-page.nc-physical-ready .nc-cube-zone .nc-silhouette{
 opacity:0!important;visibility:hidden;
}
.nc-page.nc-physical-ready .nc-cube-zone .nc-cube-hint{
 position:absolute;z-index:9;bottom:45px;pointer-events:none;
 color:#70858b;font-size:10px;
}
html[data-theme="dark"] .nc-page.nc-physical-ready .nc-cube-zone .nc-cube-hint{
 color:#d0dedb;
 text-shadow:0 1px 5px #101c20b0;
}
.nc-page #stage #status{
 position:absolute;z-index:2;top:9px;left:50%;right:auto;
 transform:translateX(-50%);
 margin:0;padding:5px 12px;
 color:#58717b;font-size:10px;font-weight:700;
 border:1px solid #c8d8d37c;background:#fffdf6d9;
 border-radius:999px;white-space:nowrap;max-width:93%;
 overflow:hidden;text-overflow:ellipsis;
 box-shadow:0 3px 12px #78818b10;pointer-events:none;
}
/* Live physical feedback is brief, never a permanent caption obscuring
   tiny sculpted fittings at the top of the floating artifact. */
.nc-page.nc-physical-ready #stage #status{
 transition:opacity .35s ease,transform .35s ease;
}
.nc-page.nc-physical-ready #stage #status.nc-status-resting{
 opacity:0;transform:translate(-50%,-5px);
}
@media(prefers-reduced-motion:reduce){
 .nc-page.nc-physical-ready #stage #status{transition:none}
}
.nc-page .nc-physical-toggle{
 border:1px solid #d5dedf;
 border-radius:999px;
 background:#fffef6;
 color:#536e73;
 font-size:11px;
 letter-spacing:.015em;
 padding:7px 13px;
 font-weight:800;
 margin-left:9px;
 cursor:pointer;
}
.nc-page .nc-physical-toggle:hover{border-color:#9cbeb3;background:#f2f8f5}
.nc-page .nc-physical-toggle:focus-visible{outline:3px solid #81c1ad;outline-offset:3px}
.nc-page[data-theme="dark"] #stage #status,
html[data-theme="dark"] .nc-page #stage #status{
 background:#303940e0;color:#ddebdc;border-color:#576569;
}
html[data-theme="dark"] .nc-page .nc-physical-toggle{
 color:#e2e7e4;background:#374147;border-color:#596466;
}
@media(max-width:680px){
 .nc-page .nc-physical-toggle{font-size:10px;padding:6px 9px;margin-left:3px}
 .nc-page .nc-cube-zone #stage{border-radius:11px}
 .nc-page #stage #status{font-size:9px;padding:4px 7px}
 .nc-page.nc-physical-ready .nc-cube-zone .nc-cube-hint{bottom:78px;font-size:9px}
}
/* The real machine now has physical models of these same story objects.
   Keep the DOM buttons as compact, keyboard-accessible labels instead of
   showing duplicated flat CSS props alongside their sculpted 3D counterparts.
   The classic view retains every full-sized illustrated object untouched. */
.nc-page.nc-physical-ready .nc-side-objects {
 max-width:min(960px,100%);
 min-height:0;
 margin:5px auto 7px;
 display:flex;
 align-items:center;
 justify-content:safe center;
 flex-wrap:nowrap;
 gap:7px;
 overflow-x:auto;
 overflow-y:hidden;
 padding:5px 7px 10px;
 box-sizing:border-box;
 scrollbar-width:thin;
 scrollbar-color:#9cbdb2 transparent;
 scroll-snap-type:x proximity;
 scroll-padding-inline:10px;
 overscroll-behavior-inline:contain;
 -webkit-overflow-scrolling:touch;
}
/* Collected story characters can fill the screen; the single-row tray
   remains navigable with touch, a trackpad or keyboard focus. */
.nc-page.nc-physical-ready .nc-side-objects .nc-prop:not([hidden]){
 flex:0 0 auto;
 scroll-snap-align:start;
}
.nc-page.nc-physical-ready .nc-side-objects .nc-prop:not([hidden]) {
 width:auto;
 height:auto;
 min-width:74px;
 min-height:36px;
 padding:8px 12px;
 display:inline-flex;
 flex-direction:row;
 border:1px solid #d6d8d1;
 border-radius:999px;
 background:linear-gradient(155deg,#fffefb,#f2f3ee);
 box-shadow:0 3px 0 #9baaa226;
 transform:none;
}
.nc-page.nc-physical-ready .nc-side-objects .nc-prop > :not(small){
 display:none!important;
}
.nc-page.nc-physical-ready .nc-side-objects .nc-prop small {
 position:static;
 bottom:auto;
 font-size:11px;
 font-weight:780;
 color:#5a6d73;
 line-height:1.25;
 white-space:nowrap;
}
.nc-page.nc-physical-ready .nc-side-objects .nc-prop:hover,
.nc-page.nc-physical-ready .nc-side-objects .nc-prop:focus-visible {
 background:#eaf5ee;
 border-color:#9dc3b0;
 box-shadow:0 3px 0 #9baaa244;
}
html[data-theme="dark"] .nc-page.nc-physical-ready .nc-side-objects {
 scrollbar-color:#647f7d transparent;
}
html[data-theme="dark"] .nc-page.nc-physical-ready .nc-side-objects .nc-prop {
 background:#2c3739;
 border-color:#5c7071;
}
html[data-theme="dark"] .nc-page.nc-physical-ready .nc-side-objects .nc-prop small {
 color:#d9e7e6;
}
@media(prefers-reduced-motion:reduce){
 .nc-page .nc-cube-zone #stage{transition:none}
}

/* Keep live discoveries accessible without a distracting text pill hovering
   over precision mechanics. The classic presentation is unchanged. */
.nc-page.nc-physical-ready #stage #status{
 width:1px!important;
 height:1px!important;
 max-width:1px!important;
 padding:0!important;
 border:0!important;
 overflow:hidden!important;
 white-space:nowrap;
 clip-path:inset(50%)!important;
 box-shadow:none!important;
}
.nc-page.nc-physical-ready .nc-cube-zone .nc-cube-hint{
 display:none;
}

/* The combination is never printed in the bag. In the classic fallback,
   calibrating the rear optic reveals a tiny stamped copper strip instead.
   It remains a proper keyboard-operable secret, not a permanent UI hint. */
.nc-page .nc-back .nc-cipher-strip[hidden]{display:none!important}
.nc-page .nc-back .nc-cipher-strip{
 position:absolute;
 left:8%;bottom:7%;width:31%;height:13%;
 border:2px solid #8d7557;border-radius:4px;
 background:linear-gradient(165deg,#fff0ce,#c4a57b);
 box-shadow:inset 0 0 0 2px #f8e5bb,1px 3px 0 #76604d,2px 5px 7px #363a3850;
 color:#4d5260;font-size:12px;font-weight:800;letter-spacing:.05em;
 transform:translateZ(7px);z-index:7;cursor:pointer;
}
.nc-page .nc-back .nc-cipher-strip:hover{background:#ffefc9}
.nc-page .nc-back .nc-cipher-strip:focus-visible{outline:3px solid #689b92;outline-offset:3px}

/* The cube itself stays uncluttered. Names only appear beside the machined
   part under the cursor, making tiny hardware identifiable without spoilers. */
.nc-page.nc-physical-ready #stage #ncPartHint{
 display:block;position:absolute;z-index:13;pointer-events:none;
 transform:translateX(-50%);max-width:min(235px,82%);
 padding:7px 12px;border:1px solid #9daea9;
 border-radius:10px;color:#37464d;
 background:#fffdf2f5;box-shadow:0 6px 19px #35464d2b;
 font-size:12px;font-weight:750;line-height:1.35;
 text-align:center;white-space:normal;letter-spacing:.015em;
}
.nc-page.nc-physical-ready #stage #ncPartHint[hidden]{display:none!important}
/* Inspection is a point, not a second tooltip: four subtle corners sit
   around the actual raycast target. No indicators appear before I is used. */
.nc-page.nc-physical-ready #stage #ncKeyboardFocus {
 position:absolute;z-index:12;pointer-events:none;
 width:32px;height:32px;box-sizing:border-box;
 transform:translate(-50%,-50%);
 border:2px solid #3d8f81;border-radius:10px;
 background:radial-gradient(circle,#fafffc20 0%,transparent 70%);
 box-shadow:0 0 0 3px #fbfff9a6,0 0 15px 2px #488f896e;
}
.nc-page.nc-physical-ready #stage #ncKeyboardFocus[hidden]{display:none!important}
html[data-theme="dark"] .nc-page.nc-physical-ready #stage #ncKeyboardFocus{
 border-color:#93e5cc;
 box-shadow:0 0 0 3px #182b2cb9,0 0 17px 3px #93e5cc7a;
}
@media(pointer:coarse){
 .nc-page.nc-physical-ready #stage #ncKeyboardFocus{width:38px;height:38px}
}
@media(prefers-contrast:more){
 .nc-page.nc-physical-ready #stage #ncKeyboardFocus{
  border-width:3px;box-shadow:0 0 0 4px #ffffff;
 }
}
html[data-theme="dark"] .nc-page.nc-physical-ready #stage #ncPartHint{
 background:#323d42f5;color:#f0ead9;border-color:#67777a;
}
/* Purple always means a physically found object can be pocketed.
   This mirrors its in-world emissive halo without marking any puzzle
   actuator as collectible or creating another permanent nameplate. */
.nc-page.nc-physical-ready #stage #ncPartHint.nc-is-pickup:not(.nc-can-use){
 background:#f5eafeed;color:#56277a;border-color:#b45cff;
 box-shadow:0 5px 18px #a347d348,inset 0 0 0 1px #dcb0ff;
}
html[data-theme="dark"] .nc-page.nc-physical-ready #stage #ncPartHint.nc-is-pickup:not(.nc-can-use){
 background:#382445f2;color:#f2dcff;border-color:#cb88ff;
 box-shadow:0 5px 20px #8c36d36d;
}
.nc-page.nc-physical-ready #stage #ncKeyboardFocus.nc-is-pickup{
 border-color:#b45cff;
 background:radial-gradient(circle,#c475ff30 0%,transparent 74%);
 box-shadow:0 0 0 3px #fff8,0 0 17px 3px #b45cff88;
}
html[data-theme="dark"] .nc-page.nc-physical-ready #stage #ncKeyboardFocus.nc-is-pickup{
 border-color:#d29aff;
 box-shadow:0 0 0 3px #21152db9,0 0 18px 4px #b45cff99;
}
@media(prefers-contrast:more){
 .nc-page.nc-physical-ready #stage #ncKeyboardFocus.nc-is-pickup{
  border-width:3px;box-shadow:0 0 0 4px #fff;
 }
}
@media (pointer:coarse){
 .nc-page.nc-physical-ready #stage #ncPartHint{font-size:11px;max-width:185px}
}

/* Item-collected confirmation: a short bright GREEN flash on the
   inventory card itself, independent of mouse hover. The existing hover
   and compatible-target indicators remain unchanged. Only newly collected
   items pulse; items restored from a save do not. */
.nc-page .nc-pocket .nc-item.nc-item-new{
 --nc-arrival-bg:#fff;
 --nc-arrival-border:#d4dfdc;
 position:relative;z-index:1;
 animation:ncPocketCollectedFlash 1.05s ease-out both;
}
html[data-theme="dark"] .nc-page .nc-pocket .nc-item.nc-item-new{
 --nc-arrival-bg:#304047;
 --nc-arrival-border:#53666b;
}
@keyframes ncPocketCollectedFlash{
 0%{
  transform:scale(.98);
  background:var(--nc-arrival-bg);
  border-color:var(--nc-arrival-border);
  box-shadow:0 0 0 0 #4dcf8b00;
 }
 24%{
  transform:scale(1.035);
  background:#c9f6db;
  border-color:#4bbf83;
  box-shadow:0 0 0 5px #5adf9866,0 0 22px 3px #41bf7b75;
 }
 58%{
  transform:scale(1.01);
  background:#e1f8e9;
  border-color:#74cda0;
  box-shadow:0 0 0 8px #65dba920,0 0 12px 1px #62c89144;
 }
 100%{
  transform:scale(1);
  background:var(--nc-arrival-bg);
  border-color:var(--nc-arrival-border);
  box-shadow:0 2px 4px #23414409;
 }
}
@media(prefers-reduced-motion:reduce){
 .nc-page .nc-pocket .nc-item.nc-item-new{
  animation:none;
  background:#dcf7e6;
  border-color:#58bd88;
  box-shadow:0 0 0 2px #56c58955;
 }
 html[data-theme="dark"] .nc-page .nc-pocket .nc-item.nc-item-new{
  background:#34684f;
  border-color:#8bdbaf;
 }
}

.nc-page.nc-physical-ready #stage #ncPartHint.nc-can-use{
 background:#e6f8ecf5;border-color:#80b9a4;color:#315e54;
 box-shadow:0 4px 18px #7ebaab72;
}
html[data-theme="dark"] .nc-page.nc-physical-ready #stage #ncPartHint.nc-can-use{
 background:#284a45f5;border-color:#79b4a4;color:#e8fff1;
}

/* No floor display, shadow pedestal, support halo, or stand silhouette in
   the physical floating mode. The classic illustrated view is untouched. */
.nc-page.nc-physical-ready .nc-stage,
.nc-page.nc-physical-ready .nc-stage-disc,
.nc-page.nc-physical-ready .nc-stage-ring,
.nc-page.nc-physical-ready .nc-silhouette{
 display:none!important;
}
.nc-page.nc-physical-ready .nc-world{
 background:radial-gradient(ellipse at 50% 45%,#fcfffe 0%,#f4f9f8 65%,#eaf1f3 100%);
}
.nc-page.nc-physical-ready .nc-cube-zone #stage canvas{cursor:grab}
.nc-page.nc-physical-ready .nc-cube-zone #stage canvas:active{cursor:grabbing}
html[data-theme="dark"] .nc-page.nc-physical-ready .nc-world,
body[data-theme="dark"].nc-page.nc-physical-ready .nc-world{
 background:radial-gradient(ellipse at 50% 43%,#344146 0%,#253237 74%,#202b32 100%);
}

/* A selected tool has a visible identity, but no compatibility hints:
   finding what fits is still the puzzle, not a glowing target hunt. */
.nc-page .nc-pocket-head .nc-pocket-held{
 display:inline-flex;align-items:center;max-width:min(55vw,220px);
 padding:4px 9px;margin-left:auto;border-radius:999px;
 background:#e8f4ef;color:#39655e;border:1px solid #abc9bd;
 font-size:11px;font-weight:750;line-height:1.35;
 overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
}
.nc-page .nc-pocket-head .nc-pocket-held[hidden]{display:none!important}
.nc-page .nc-pocket .nc-item.nc-selected{
 outline:none;border-width:2px;
 box-shadow:0 2px 8px #53998b24;
}
html[data-theme="dark"] .nc-page .nc-pocket-head .nc-pocket-held{
 background:#2b4944;border-color:#577e74;color:#dcf6e9;
}
@media(max-width:490px){
 .nc-page .nc-pocket-head{flex-wrap:wrap;row-gap:6px}
 .nc-page .nc-pocket-head .nc-pocket-held{max-width:100%;font-size:10px}
}

/* Tactile surface remains keyboard-discernible; finger holds label the hardware. */
.nc-page.nc-physical-ready .nc-cube-zone #stage canvas:focus-visible{
 outline:3px solid #6a9d92;outline-offset:-5px;border-radius:14px;
}
@media(pointer:coarse){
 .nc-page.nc-physical-ready #stage #ncPartHint{
  padding:9px 13px;min-width:92px;box-shadow:0 7px 22px #273b4055;
 }
}

/* The floating object should remain visible behind a single restrained
   inspection toolbar, even at 390px-wide portrait dimensions. */
@media(max-width:700px){
 .nc-page.nc-physical-ready .nc-inspection-controls{
  left:8px;right:8px;bottom:8px;gap:4px;flex-wrap:nowrap;
  justify-content:space-between;
 }
 .nc-page.nc-physical-ready .nc-inspection-controls .nc-rotate-controls{gap:3px}
 .nc-page.nc-physical-ready .nc-inspection-controls .nc-zoom-controls{
  gap:2px;padding:3px;border-radius:12px;
 }
 .nc-page.nc-physical-ready .nc-inspection-controls button{
  min-width:34px;width:34px;height:38px;min-height:38px;
  border-radius:9px;font-size:17px;box-sizing:border-box;
 }
 .nc-page.nc-physical-ready .nc-zoom-controls #ncZoomAmount{
  min-width:34px;font-size:10px;
 }
}
@media(max-width:355px){
 .nc-page.nc-physical-ready .nc-inspection-controls{
  flex-wrap:wrap;justify-content:center;row-gap:5px;
 }
 .nc-page.nc-physical-ready .nc-world{height:clamp(485px,65dvh,620px)}
}
/* Give dark-mode users the same readable contrast as the rest of Crilo. */
html[data-theme="dark"] .nc-page.nc-physical-ready .nc-inspection-controls button,
body[data-theme="dark"].nc-page.nc-physical-ready .nc-inspection-controls button{
 background:#304047!important;color:#e4eee9!important;border-color:#65767b!important;
 box-shadow:0 3px 10px #101c2140;
}
html[data-theme="dark"] .nc-page.nc-physical-ready .nc-inspection-controls .nc-zoom-controls,
body[data-theme="dark"].nc-page.nc-physical-ready .nc-inspection-controls .nc-zoom-controls{
 background:#293940dc!important;border-color:#566e73!important;
}
html[data-theme="dark"] .nc-page.nc-physical-ready .nc-zoom-controls #ncZoomAmount,
body[data-theme="dark"].nc-page.nc-physical-ready .nc-zoom-controls #ncZoomAmount{
 color:#dbe9e5!important;
}
html[data-theme="dark"] .nc-page.nc-physical-ready .nc-inspection-controls button:hover,
html[data-theme="dark"] .nc-page.nc-physical-ready .nc-inspection-controls button:focus-visible{
 background:#435a61!important;border-color:#9cc6b5!important;color:#fff!important;
}
html[data-theme="dark"] .nc-page.nc-physical-ready #ncPanMode[aria-pressed="true"]{
 background:#38675b!important;border-color:#8fc3ad!important;color:#fff!important;
}
.nc-page.nc-physical-ready .nc-inspection-controls button:focus-visible{
 outline:3px solid #80bca8;outline-offset:2px;
}

/* Explicit dark controls for both Classic and real Three.js inspection.
   Page theme is independent of the transient WebGL ready class. */
html[data-theme="dark"] body.nc-page .nc-inspection-controls :is(.nc-rotate-controls,.nc-zoom-controls) button{
 background-color:#304047!important;background-image:none!important;
 color:#e4eee9!important;border-color:#65767b!important;
 /* Do not animate a light control into dark mode while slow WebGL stalls
    paint frames. The actual theme is an accessibility/contrast preference. */
 transition:none!important;
}
html[data-theme="dark"] body.nc-page .nc-inspection-controls .nc-zoom-controls{
 background:#293940dc!important;border-color:#566e73!important;
}
html[data-theme="dark"] body.nc-page .nc-inspection-controls #ncZoomAmount{color:#dbe9e5!important;}
html[data-theme="dark"] body.nc-page .nc-inspection-controls #ncPanMode[aria-pressed="true"]{
 background:#38675b!important;border-color:#8fc3ad!important;color:#fff!important;
}

/* Pocket miniatures share one crafted vector style, not platform-specific emoji. */
.nc-page .nc-pocket .nc-item{gap:8px;min-height:48px;padding:6px 10px;max-width:100%;text-align:left;line-height:1.25}
.nc-page .nc-pocket .nc-item-icon{
 flex:0 0 35px;display:grid;place-items:center;width:35px;height:35px;box-sizing:border-box;
 border-radius:9px;background:linear-gradient(145deg,#ffffff,#f4ebe6);
 border:1px solid #d6c8be;color:#916a5e;box-shadow:inset 0 1px 0 #ffffff,0 2px 5px #26343a10;
}
.nc-page .nc-pocket .nc-item[data-material="metal"] .nc-item-icon{background:linear-gradient(145deg,#fffdf6,#eee0c7);color:#937341;border-color:#d5bf98}
.nc-page .nc-pocket .nc-item[data-material="glass"] .nc-item-icon{background:linear-gradient(145deg,#f8ffff,#e0eff3);color:#518697;border-color:#a9cbd2}
.nc-page .nc-pocket .nc-item[data-material="paper"] .nc-item-icon{background:linear-gradient(145deg,#fffdf8,#f1e6d5);color:#88715f;border-color:#d9c9b5}
.nc-page .nc-pocket .nc-item-art{display:block;width:27px;height:27px;overflow:visible}
.nc-inventory-fly .nc-item-art{display:block;width:30px;height:30px;margin:auto;color:#927763;filter:drop-shadow(0 1px 2px #26364240)}
.nc-page .nc-pocket .nc-item.nc-selected .nc-item-icon{outline:none}
.nc-page .nc-pocket .nc-item:focus-visible{outline:3px solid #78bca5;outline-offset:2px}
html[data-theme="dark"] .nc-page .nc-pocket .nc-item-icon,
html[data-theme="dark"] .nc-page .nc-pocket .nc-item[data-material] .nc-item-icon{
 background:linear-gradient(145deg,#4d575b,#2d3b42);color:#e4c6a4;border-color:#627179;
}
html[data-theme="dark"] .nc-page .nc-pocket .nc-item[data-material="glass"] .nc-item-icon{color:#a6dce4}
@media(max-width:490px){.nc-page .nc-pocket .nc-item{min-height:46px;padding:5px 8px;font-size:11px}.nc-page .nc-pocket .nc-item-icon{flex-basis:33px;width:33px;height:33px}.nc-page .nc-pocket .nc-item-art{width:25px;height:25px}}

/* Slim display tray with legible object icons; no clue or reward spoilers. */
.nc-page .nc-pocket{
 position:relative;margin-top:30px;padding:18px 20px 20px;
 border:1px solid #d6dfdf;border-radius:16px;
 background:linear-gradient(155deg,#fff,#f8fbfa 78%,#f2f7f5);
 box-shadow:0 10px 25px #30474a0b,inset 0 1px 0 #fff;
}
.nc-page .nc-pocket-head{
 display:flex;align-items:center;gap:9px;padding-bottom:12px;margin-bottom:13px;
 border-bottom:1px solid #e5ece9;color:#617b79;letter-spacing:.075em;
}
.nc-page .nc-pocket-label{display:inline-flex;align-items:center;flex-wrap:wrap;gap:9px;min-width:0;}
.nc-page .nc-pocket-count{
 display:inline-flex;align-items:center;border:1px solid #dce7e0;
 border-radius:999px;padding:3px 8px;color:#618076;background:#eef6f1;
 font-size:10px;letter-spacing:.005em;font-weight:750;white-space:nowrap;
}
.nc-page .nc-pocket .nc-inventory{align-items:stretch;gap:8px;}
.nc-page .nc-pocket .nc-item{
 border-color:#d4dfdc;border-radius:10px;background:#fff;
 box-shadow:0 2px 4px #23414409;transition:border-color .16s,background .16s,box-shadow .16s;
}
.nc-page .nc-pocket .nc-item:hover{background:#f6faf8;border-color:#9cbbae;box-shadow:0 3px 10px #50736614;}
.nc-page .nc-pocket .nc-item.nc-selected{background:#eaf7f0;border-color:#70aa92;box-shadow:0 2px 10px #53998b20;}
.nc-page .nc-pocket .nc-item-new{position:relative;z-index:1;}
/* Keep the default pocket quiet. The small gold mark is a nudge that
   something may be useful, not a row of identical call-to-action badges. */
.nc-page .nc-pocket .nc-item.nc-item-reactive::after{
 content:"✦";margin-left:auto;flex:none;
 color:#b39a74;font-size:13px;line-height:1;font-weight:500;
 opacity:.72;text-shadow:none;
}
.nc-page .nc-pocket .nc-item.nc-selected.nc-item-reactive::after{
 opacity:0;
}
.nc-page .nc-pocket .nc-item.nc-item-combine-match{
 border-color:#83b49b;background:#eaf7ee;
 box-shadow:0 0 0 1px #8bc9a37d,0 2px 9px #4b98721c;
}
.nc-page .nc-pocket .nc-item.nc-item-combine-match::after{
 content:"fits";font-size:10px;font-weight:750;letter-spacing:0;
 text-transform:none;text-shadow:none;
 background:#e2f3e8;color:#376d54;
 border:1px solid #a9d2b9;border-radius:999px;
 padding:4px 8px;opacity:1;
}
html[data-theme="dark"] .nc-page .nc-pocket .nc-item.nc-item-reactive::after{
 color:#d8b88c;opacity:.8;
}
html[data-theme="dark"] .nc-page .nc-pocket .nc-item.nc-selected.nc-item-reactive::after{
 opacity:0;
}
.nc-page .nc-pocket .nc-item.nc-item-playable::after{
 content:"♫ play";margin-left:auto;flex:none;
 font-size:10px;font-weight:800;letter-spacing:.035em;text-transform:uppercase;
 color:#376b80;border:1px solid #9ecad6;background:#eaf8fc;
 border-radius:999px;padding:5px 7px;
}
html[data-theme="dark"] .nc-page .nc-pocket .nc-item.nc-item-playable::after{
 color:#bde5f2;border-color:#5f8b9b;background:#2a4755;
}
html[data-theme="dark"] .nc-page .nc-pocket .nc-item.nc-item-combine-match{
 background:#2e584b;border-color:#9dd7bc;
 box-shadow:0 0 0 2px #669b845e,0 3px 15px #142d2599;
}
html[data-theme="dark"] .nc-page .nc-pocket .nc-item.nc-item-combine-match::after{
 color:#dcfae9;background:#315e4d;border-color:#73ab92;opacity:1;
}
/* The green ring appears ONLY at the actively inspected 3D fitting when
   the currently held item satisfies that exact puzzle interaction. */
.nc-page.nc-physical-ready #stage #ncItemFitHalo{
 position:absolute;z-index:8;width:56px;height:56px;
 box-sizing:border-box;transform:translate(-50%,-50%);
 pointer-events:none;border-radius:50%;
 border:2px solid #85d9af;
 background:radial-gradient(circle,#c8f5db29 0%,#8bddac1a 53%,transparent 73%);
 box-shadow:0 0 0 5px #81d6a033,0 0 21px 4px #69d6a177,
  inset 0 0 12px #9ce9bc66;
 animation:ncItemFitPulse 2.1s ease-in-out infinite;
}
.nc-page.nc-physical-ready #stage #ncItemFitHalo[hidden]{display:none!important}
@keyframes ncItemFitPulse{
 0%,100%{opacity:.75;scale:.95}
 50%{opacity:1;scale:1.06}
}
@media(prefers-reduced-motion:reduce){
 .nc-page.nc-physical-ready #stage #ncItemFitHalo{animation:none;opacity:1}
}
@media(pointer:coarse){
 .nc-page.nc-physical-ready #stage #ncItemFitHalo{width:64px;height:64px}
}
/* Held-item green guidance now lives on a real THREE.Sprite parented
   to the physical fitting. No screen-space DOM ring is used: the marker
   cannot drift, jump between different mesh centers, or lag on rotation. */
.nc-page .nc-pocket .nc-empty{display:block;padding:4px 0 1px;letter-spacing:.015em;color:#879b99;}
html[data-theme="dark"] .nc-page .nc-pocket{
 border-color:#4d6769;background:linear-gradient(155deg,#303d40,#263337 90%);
 box-shadow:0 12px 26px #08171b38,inset 0 1px 0 #ffffff10;
}
html[data-theme="dark"] .nc-page .nc-pocket-head{border-color:#42565a;color:#b7d0ca;}
html[data-theme="dark"] .nc-page .nc-pocket-count{color:#bce1d4;border-color:#526f65;background:#315044;}
html[data-theme="dark"] .nc-page .nc-pocket .nc-item{background:#304047;border-color:#53666b;color:#e1eee9;}
html[data-theme="dark"] .nc-page .nc-pocket .nc-item:hover{background:#394f50;border-color:#91b7a6;}
html[data-theme="dark"] .nc-page .nc-pocket .nc-item.nc-selected{background:#31584b;border-color:#91d2b1;}
@media(max-width:490px){
 .nc-page .nc-pocket{padding:13px 12px 16px;margin-top:24px;border-radius:13px;}
 .nc-page .nc-pocket-head{gap:6px;padding-bottom:10px;margin-bottom:11px;}
 .nc-page .nc-pocket-label{gap:7px;}
 .nc-page .nc-pocket-count{font-size:9px;padding:3px 7px;}
}


/* An intentional new-game action, visually distinct from Reset View.
   It works in the physical and accessible Classic modes. */
.nc-page .nc-overline{flex-wrap:wrap;justify-content:flex-start;row-gap:8px}
.nc-page .nc-overline .nc-reset-trigger{
 margin-left:auto;border:1px solid #dfd7d6;border-radius:999px;
 background:#fffaf9;color:#98696e;padding:8px 13px;
 font-size:11px;font-weight:750;line-height:1.25;
 white-space:nowrap;
}
.nc-page .nc-overline .nc-reset-trigger:hover{
 background:#fff1ee;border-color:#caa8a3;color:#854e54;
}
.nc-page .nc-overline .nc-reset-trigger:focus-visible{
 outline:3px solid #b7898b;outline-offset:2px;
}
@media(max-width:540px){
 .nc-page .nc-overline{gap:7px}
 .nc-page .nc-overline .nc-reset-trigger{margin-left:auto}
}

/* Two deliberate actions: open a small dialog, then confirm Reset.
   No other storage is touched and the safe action receives first focus. */
.nc-page #ncModal .nc-modal.nc-reset-dialog{
 width:min(365px,100%);padding:20px 21px 21px;
 border-radius:16px;box-shadow:5px 8px 0 #28303838;
}
.nc-page #ncModal .nc-modal.nc-reset-dialog h2{
 font-size:clamp(23px,4vw,28px);
}
.nc-page #ncModal .nc-reset-actions{
 display:flex;justify-content:flex-end;flex-wrap:wrap;
 align-items:center;gap:9px;margin-top:18px;
}
.nc-page #ncModal .nc-reset-actions button{
 min-height:42px;padding:10px 15px;border-radius:10px;
 font-family:inherit;font-size:12px;font-weight:750;line-height:1.25;cursor:pointer;
}
.nc-page #ncModal #ncCancelCubeReset{
 border:1px solid #cbd7d5;background:#f8fbfa;color:#4e6668;
}
.nc-page #ncModal #ncCancelCubeReset:hover{background:#edf5f2}
.nc-page #ncModal #ncConfirmCubeReset{
 border:1px solid #a66065;background:#aa666a;color:#fff;
}
.nc-page #ncModal #ncConfirmCubeReset:hover{
 background:#8e4c52;border-color:#8e4c52;
}
.nc-page #ncModal .nc-reset-actions button:focus-visible{
 outline:3px solid #6eaea4;outline-offset:2px;
}
html[data-theme="dark"] .nc-page .nc-overline .nc-reset-trigger{
 background:#393c42;color:#f1c8c8;border-color:#71545b;
}
html[data-theme="dark"] .nc-page .nc-overline .nc-reset-trigger:hover{
 background:#503d44;color:#ffe2dc;border-color:#a7797e;
}
html[data-theme="dark"] .nc-page #ncModal .nc-modal.nc-reset-dialog{
 background:#28343a;color:#f1f4f1;border-color:#667b7c;
}
html[data-theme="dark"] .nc-page #ncModal .nc-modal.nc-reset-dialog p{
 color:#c2d0d0;
}
html[data-theme="dark"] .nc-page #ncModal #ncCancelCubeReset{
 background:#34434a;color:#e1efea;border-color:#6a8585;
}
html[data-theme="dark"] .nc-page #ncModal #ncCancelCubeReset:hover{
 background:#42545a;
}

/* The Three.js model owns every reward and character in physical mode.
   Suppress the old 2D sprites, cartoon incident bursts, flying inventory
   silhouettes, floating musical notes, toast pills and duplicate CSS door.
   Keep the actual pocket, journal and real 3D character animation intact. */
body.nc-page.nc-physical-ready #ncAnimationLayer,
body.nc-page.nc-physical-ready #ncDoorScene,
body.nc-page.nc-physical-ready #ncIncident,
body.nc-page.nc-physical-ready #ncFragments,
body.nc-page.nc-physical-ready #ncToast,
body.nc-page.nc-physical-ready .nc-inventory-fly,
body.nc-page.nc-physical-ready .nc-musical-note {
 display:none!important;
}
/* Physical WebGL mode uses the same green collection flash. It no longer
   suppresses the arrival animation just because the 3D object vanished. */

/* Clear pickup and crafting instructions belong with the persistent pocket,
   not in a floating label on top of the 3D mechanism. */
.nc-page .nc-pocket .nc-combine-guide,
.nc-page .nc-pocket .nc-pickup-guide{
 margin:11px 0 0;
 color:#647c76;font-size:12px;line-height:1.55;
 letter-spacing:0;
}
.nc-page .nc-pocket .nc-combine-guide{
 border-top:1px solid #e1ebe6;
 padding-top:12px;
}
.nc-page .nc-pocket .nc-combine-guide strong{color:#456a5d;font-weight:760}
.nc-page .nc-pocket.nc-holding .nc-pickup-guide{display:none!important}
.nc-page .nc-pocket .nc-pickup-guide{
 color:#79918a;margin-top:4px;
}
.nc-page:not(.nc-physical-ready) .nc-pickup-guide{display:none}
html[data-theme="dark"] .nc-page .nc-pocket .nc-combine-guide{
 border-top-color:#455b59;color:#ccdbd5;
}
html[data-theme="dark"] .nc-page .nc-pocket .nc-combine-guide strong{color:#b3e4c9}
html[data-theme="dark"] .nc-page .nc-pocket .nc-pickup-guide{color:#acc7bd}
@media(max-width:490px){
 .nc-page .nc-pocket .nc-combine-guide,
 .nc-page .nc-pocket .nc-pickup-guide{font-size:11px}
}

/* Single supported presentation: the physical Three.js cube.
   The old CSS faces and story buttons remain DOM-only compatibility
   targets for the sixty puzzle events, never an alternate visible game. */
.nc-page.nc-physical-only .nc-world{
 height:clamp(505px,69dvh,690px);
 max-height:none;
}
.nc-page.nc-physical-only .nc-world .nc-cube-zone{
 width:min(860px,100%);
 max-width:100%;
}
.nc-page.nc-physical-only #stage{
 visibility:visible;
 opacity:1;
 pointer-events:auto;
}
.nc-page.nc-physical-only #ncCube,
.nc-page.nc-physical-only #ncSideObjects,
.nc-page.nc-physical-only #ncDoorScene,
.nc-page.nc-physical-only #ncAnimationLayer,
.nc-page.nc-physical-only #ncIncident,
.nc-page.nc-physical-only #ncConstellation,
.nc-page.nc-physical-only .nc-silhouette,
.nc-page.nc-physical-only .nc-stage{
 display:none!important;
}
.nc-page.nc-physical-only #ncRetry3D{
 position:absolute;top:50%;left:50%;z-index:20;
 transform:translate(-50%,-50%);
 background:#f8fbf9;color:#375951;border:1px solid #a6c2b7;
 border-radius:12px;padding:12px 22px;cursor:pointer;font-weight:750;font-size:13px;font-family:inherit;line-height:1.3;
 box-shadow:0 5px 18px #23302b2c;
}
.nc-page.nc-physical-only #ncRetry3D:focus-visible{
 outline:3px solid #76bb9f;outline-offset:3px;
}
html[data-theme="dark"] .nc-page.nc-physical-only #ncRetry3D{
 color:#e5f0eb;background:#31483e;border-color:#769e89;
}
@media(max-width:700px){
 .nc-page.nc-physical-only .nc-world{height:clamp(450px,62dvh,600px)}
 .nc-page.nc-physical-only .nc-world .nc-cube-zone{width:100%}
}

/* Pending physical objects are part of the discovery loop, not a modal.
   The inset metal-chip treatment sits naturally inside the pocket and
   disappears when every revealed object has been collected. */
.nc-page .nc-pocket .nc-awaiting-pickups{
 margin:10px 0 1px;padding:9px 11px;
 border:1px solid #c6d8cb;border-radius:8px;
 color:#486857;background:linear-gradient(115deg,#f6faf6,#edf5ee);
 font-size:11px;line-height:1.5;letter-spacing:.005em;
}
.nc-page .nc-pocket .nc-awaiting-pickups[hidden]{display:none!important}
.nc-page .nc-pocket .nc-awaiting-symbol{
 display:inline-grid;place-items:center;width:20px;height:20px;
 margin-right:4px;vertical-align:middle;
 background:#e1eee1;border:1px solid #bfd2c1;border-radius:50%;
 color:#5a876e;font-size:12px;
}
html[data-theme="dark"] .nc-page .nc-pocket .nc-awaiting-pickups{
 color:#cee2d2;background:linear-gradient(115deg,#2e4640,#354b42);
 border-color:#668777;
}
html[data-theme="dark"] .nc-page .nc-pocket .nc-awaiting-symbol{
 color:#c5e8d4;background:#446653;border-color:#70977a;
}


/* Nothing Here: two independent audio channels. Mechanical samples and the
   CC0 lobby music have separate persisted settings; mobile controls wrap
   without floating over the cube. */
.nc-page .nc-overline .nc-audio-controls{
 display:flex;align-items:center;justify-content:center;
 flex-wrap:wrap;gap:6px;margin-left:auto;
}
.nc-page .nc-overline .nc-audio-toggle{
 display:inline-flex;align-items:center;justify-content:center;gap:5px;
 border:1px solid #c6dcd3;background:#f0f7f1;color:#426456;
 padding:7px 10px;min-height:34px;border-radius:999px;
 font-family:inherit;font-size:11px;font-weight:760;line-height:1.15;
 white-space:nowrap;cursor:pointer;transition:background .18s,border-color .18s,color .18s;
}
.nc-page .nc-overline .nc-audio-toggle:hover{
 border-color:#91b6a6;background:#e7f2ea;
}
.nc-page .nc-overline .nc-audio-toggle.nc-audio-disabled{
 color:#807f82;border-color:#d3d4d3;background:#f1f1ef;
}
.nc-page .nc-overline .nc-audio-toggle.nc-audio-disabled:hover{
 border-color:#b7c2b9;background:#e9eeeb;
}
.nc-page .nc-overline .nc-audio-toggle .nc-audio-state{
 font-weight:800;color:inherit;opacity:.78;
}
.nc-page .nc-overline .nc-audio-ico{font-size:14px;line-height:1}
.nc-page .nc-overline .nc-audio-toggle:focus-visible{
 outline:3px solid #80b79b;outline-offset:2px;
}
.nc-page .nc-overline .nc-audio-controls+.nc-reset-trigger{margin-left:0}
html[data-theme="dark"] .nc-page .nc-overline .nc-audio-toggle{
 background:#30443d;border-color:#507a69;color:#d4ebdf;
}
html[data-theme="dark"] .nc-page .nc-overline .nc-audio-toggle:hover{
 background:#3a5549;border-color:#7fa994;
}
html[data-theme="dark"] .nc-page .nc-overline .nc-audio-toggle.nc-audio-disabled{
 background:#383e43;border-color:#5b6466;color:#b7c2c3;
}
@media(max-width:620px){
 .nc-page .nc-overline{display:flex;flex-wrap:wrap;column-gap:7px;row-gap:8px}
 .nc-page .nc-overline .nc-audio-controls{
  order:3;margin-left:0;width:100%;justify-content:center;
 }
 .nc-page .nc-overline .nc-reset-trigger{margin-left:auto}
 .nc-page .nc-overline .nc-audio-toggle{min-height:38px;flex:1 1 auto;max-width:160px}
}


/* The old dark-only controls set !important backgrounds. An explicit light
   counterpart prevents a stale-looking charcoal zoom button after the user
   switches the page theme, including before WebGL finishes initializing. */
html:not([data-theme="dark"]) body.nc-page .nc-inspection-controls :is(.nc-rotate-controls,.nc-zoom-controls) button,
html[data-theme="light"] body.nc-page.nc-physical-ready .nc-inspection-controls :is(.nc-rotate-controls,.nc-zoom-controls) button{
 background-color:#fffefa!important;background-image:none!important;
 color:#506272!important;border-color:#c5d4d5!important;
}
html:not([data-theme="dark"]) body.nc-page .nc-inspection-controls .nc-zoom-controls,
html[data-theme="light"] body.nc-page.nc-physical-ready .nc-inspection-controls .nc-zoom-controls{
 background:#fffdf9e8!important;border-color:#e2e8e7!important;
}
html:not([data-theme="dark"]) body.nc-page .nc-inspection-controls #ncZoomAmount,
html[data-theme="light"] body.nc-page.nc-physical-ready .nc-inspection-controls #ncZoomAmount{
 color:#506e76!important;
}

/* The found flute opens here in the same pocket. Never cover the 3D box
   with a classic-mode puzzle popup, or make players hunt for invisible keys. */
.nc-page .nc-flute-tray{
 margin:14px 0 2px;padding:14px 15px 13px;
 display:grid;gap:11px;
 border:1px solid #cfdbd5;border-radius:12px;
 background:linear-gradient(145deg,#f6faf7,#eef4f2);
 box-shadow:inset 0 1px 0 #fff,0 2px 10px #3047410a;
 color:#36524d;
}
.nc-page .nc-flute-tray[hidden]{display:none!important}
.nc-page .nc-flute-tray-head{display:flex;align-items:center;justify-content:space-between;gap:15px;}
.nc-page .nc-flute-tray-head>div{display:flex;align-items:baseline;gap:10px;flex-wrap:wrap;}
.nc-page .nc-flute-tray-head strong{font-size:14px;letter-spacing:.01em;color:#2e4d46}
.nc-page .nc-flute-tray-head span{color:#6f8882;font-size:11px;letter-spacing:.02em;}
.nc-page .nc-flute-instructions{margin:0;max-width:650px;font-size:12px;line-height:1.6;color:#546b65;}
.nc-page .nc-flute-tray button{font:inherit;cursor:pointer;}
.nc-page .nc-flute-tray-head button,
.nc-page .nc-flute-bottom button{
 border:1px solid #c6d6d1;border-radius:7px;background:#fff;
 color:#52746b;padding:6px 10px;font-size:11px;font-weight:650;
}
.nc-page .nc-flute-keyboard{
 display:flex;align-items:center;justify-content:center;gap:12px;
 padding:13px;max-width:420px;width:100%;
 margin:0 auto;border:1px solid #9cafa4;border-radius:18px;
 background:linear-gradient(105deg,#8e6f53,#b6976f 30%,#9f815f 70%,#7e644f);
 box-shadow:inset 0 2px 4px #4b382648,inset 0 -2px 3px #eed7af59,0 4px 10px #503f2a20;
}
.nc-page .nc-flute-play-key{
 display:inline-grid;place-items:center;min-width:54px;min-height:54px;
 width:clamp(54px,16vw,63px);height:clamp(54px,16vw,63px);
 padding:0;border-radius:50%;border:3px solid #b8ae91;
 background:radial-gradient(circle at 35% 25%,#fffdf2,#eadfc6 67%,#ccbda1);
 color:#4b554f;font:700 20px/1 Georgia,serif!important;
 box-shadow:inset 0 2px 3px #fff9,0 3px 0 #665746,0 6px 9px #3b312750;
 transition:transform .08s,box-shadow .08s,filter .12s;
 touch-action:manipulation;
}
.nc-page .nc-flute-play-key:hover{filter:brightness(1.05);}
.nc-page .nc-flute-play-key:active{
 transform:translateY(3px);
 box-shadow:inset 0 2px 4px #62503b30,0 1px 0 #665746;
}
.nc-page .nc-flute-tray button:focus-visible{outline:3px solid #4eaa8d;outline-offset:3px;}
.nc-page .nc-flute-bottom{display:flex;align-items:center;justify-content:space-between;gap:10px;}
.nc-page .nc-flute-note-steps{display:flex;align-items:center;gap:6px;min-width:0;}
.nc-page .nc-flute-note-steps i{
 display:block;width:22px;height:5px;border-radius:6px;
 background:#c8d9d0;border:1px solid #b9d0c5;
 transition:background .16s,box-shadow .16s;
}
.nc-page .nc-flute-note-steps i.is-lit{
 background:#7cb7a0;border-color:#4a947a;
 box-shadow:0 0 0 2px #7ab89c26;
}
.nc-page .nc-flute-status{
 min-height:16px;margin:0;font-size:11px;line-height:1.5;color:#627d74;
 font-variant-numeric:tabular-nums;
}
html[data-theme="dark"] .nc-page .nc-flute-tray{
 background:linear-gradient(145deg,#293f3e,#233434);
 border-color:#466361;color:#d8eee5;box-shadow:inset 0 1px 0 #ffffff10;
}
html[data-theme="dark"] .nc-page .nc-flute-tray-head strong{color:#e4f4e9}
html[data-theme="dark"] .nc-page .nc-flute-tray-head span,
html[data-theme="dark"] .nc-page .nc-flute-instructions,
html[data-theme="dark"] .nc-page .nc-flute-status{color:#b6cbc3}
html[data-theme="dark"] .nc-page .nc-flute-tray-head button,
html[data-theme="dark"] .nc-page .nc-flute-bottom button{
 border-color:#54746c;background:#2d4944;color:#d1e8d9;
}
html[data-theme="dark"] .nc-page .nc-flute-note-steps i{background:#4b655b;border-color:#577669}
html[data-theme="dark"] .nc-page .nc-flute-note-steps i.is-lit{background:#8bceb2;border-color:#a4e9cb}
@media(max-width:490px){
 .nc-page .nc-flute-tray{padding:12px;gap:9px}
 .nc-page .nc-flute-keyboard{gap:10px;padding:12px}
 .nc-page .nc-flute-instructions{font-size:11px}
 .nc-page .nc-flute-note-steps i{width:18px}
}
@media(prefers-reduced-motion:reduce){
 .nc-page .nc-flute-play-key,
 .nc-page .nc-flute-note-steps i{transition:none}
}

/* Recent mechanical changes are opt-in, not a popup or a hint over the box.
   The narrator remains the only always-visible game text. */
.nc-page .nc-last-changes{
 max-width:830px;margin:7px auto 0;padding:0 10px;
 color:#647b75;text-align:left;
}
.nc-page .nc-last-changes[hidden],
.nc-page .nc-changes-list[hidden]{display:none!important}
.nc-page .nc-changes-toggle{
 display:inline-flex;align-items:center;gap:7px;padding:5px 7px;
 background:transparent;border:0;border-radius:6px;
 color:#668077;font:650 11px/1.25 system-ui,sans-serif;letter-spacing:.015em;
 cursor:pointer;transition:background .12s,color .12s;
}
.nc-page .nc-changes-toggle:hover{background:#ddece632;color:#496b5c}
.nc-page .nc-changes-toggle:focus-visible{outline:2px solid #679b86;outline-offset:2px}
.nc-page .nc-changes-chevron{display:inline-block;font-size:15px;line-height:.7;transition:transform .15s}
.nc-page .nc-changes-toggle[aria-expanded="true"] .nc-changes-chevron{transform:rotate(180deg)}
.nc-page .nc-changes-list{
 margin:5px 0 5px 2px;padding:9px 12px 10px 25px;
 border-left:2px solid #c7dbd1;
 border-radius:0 7px 7px 0;background:#f4f8f6;
 font-size:11px;line-height:1.55;
}
.nc-page .nc-changes-list li{padding:2px 0 2px 2px}
.nc-page .nc-changes-list li+li{border-top:1px solid #e1ebe6}
.nc-page .nc-flute-scores{margin:-5px 0 0;color:#467963;font-size:11px;font-weight:650;}
html[data-theme="dark"] .nc-page .nc-last-changes{color:#9fbfb3}
html[data-theme="dark"] .nc-page .nc-changes-toggle{color:#b8d3c5}
html[data-theme="dark"] .nc-page .nc-changes-toggle:hover{background:#496a5d40;color:#d5f2e1}
html[data-theme="dark"] .nc-page .nc-changes-list{
 border-left-color:#527966;background:#2b3f3c;color:#d0e2d9;
}
html[data-theme="dark"] .nc-page .nc-changes-list li+li{border-color:#3e5550}
html[data-theme="dark"] .nc-page .nc-flute-scores{color:#9bdec0}
@media(max-width:490px){
 .nc-page .nc-last-changes{margin-top:4px;padding:0 4px}
 .nc-page .nc-changes-list{padding:8px 10px 8px 22px}
}
@media(prefers-reduced-motion:reduce){
 .nc-page .nc-changes-toggle,.nc-page .nc-changes-chevron{transition:none}
}

/* Mechanical progress is readable on demand and never covers the object.
   Only components already exposed by the player's own actions are listed. */
.nc-page .nc-mechanisms{
 max-width:830px;margin:2px auto 7px;padding:0 10px;text-align:left;
 color:#566f65;
}
.nc-page .nc-mechanisms[hidden],
.nc-page .nc-mechanisms-list[hidden]{display:none!important}
.nc-page .nc-mechanisms-toggle{
 display:inline-flex;align-items:center;gap:7px;padding:5px 7px;
 border:0;border-radius:6px;background:transparent;color:#5c766b;
 cursor:pointer;font:650 11px/1.3 system-ui,sans-serif;
 letter-spacing:.015em;
}
.nc-page .nc-mechanisms-toggle:hover{
 background:#ddece632;color:#365b4f;
}
.nc-page .nc-mechanisms-toggle:focus-visible{
 outline:2px solid #679b86;outline-offset:2px;
}
.nc-page .nc-mechanisms-toggle[aria-expanded="true"] .nc-changes-chevron{
 transform:rotate(180deg);
}
.nc-page .nc-mechanisms-list{
 display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,230px),1fr));
 gap:7px;margin:7px 0 6px;padding:0;list-style:none;
}
.nc-page .nc-mechanisms-list li{
 display:flex;flex-direction:column;gap:4px;
 padding:9px 11px;border:1px solid #d8e4dc;border-radius:8px;
 background:#f6f8f5;
 font-size:11px;line-height:1.5;
}
.nc-page .nc-mechanisms-list strong{
 color:#375b4e;font-size:11px;letter-spacing:.025em;
}
.nc-page .nc-mechanisms-list span{color:#597067}
html[data-theme="dark"] .nc-page .nc-mechanisms-toggle{color:#b8d3c5}
html[data-theme="dark"] .nc-page .nc-mechanisms-toggle:hover{
 background:#496a5d40;color:#d5f2e1;
}
html[data-theme="dark"] .nc-page .nc-mechanisms-list li{
 background:#283d38;border-color:#466157;
}
html[data-theme="dark"] .nc-page .nc-mechanisms-list strong{color:#c7e5d5}
html[data-theme="dark"] .nc-page .nc-mechanisms-list span{color:#b9d0c4}
@media(max-width:490px){
 .nc-page .nc-mechanisms{padding:0 4px}
 .nc-page .nc-mechanisms-list{grid-template-columns:1fr}
}

/* The saved light theme must win over an earlier dark-only body attribute.
   Use the complete background shorthand: the original dark rule also used
   background:...!important and could leave charcoal behind on a theme
   switch even after the button text had become light-mode colored. */
html[data-theme="light"] body.nc-page .nc-inspection-controls :is(.nc-rotate-controls,.nc-zoom-controls) button,
html:not([data-theme="dark"]) body.nc-page .nc-inspection-controls :is(.nc-rotate-controls,.nc-zoom-controls) button{
 background:#fffefa!important;
 background-image:none!important;
 color:#506272!important;
 border-color:#c5d4d5!important;
}

/* Keep inventory immediately beneath the playable object after removing
   the two redundant progress sections. Preserve the narrator's accessible
   live feedback, but do not leave a large empty band above the pocket. */
.nc-page.nc-physical-only .nc-narrator{
 margin:2px auto 5px;
 min-height:23px;
}
.nc-page.nc-physical-only .nc-pocket{
 margin-top:7px;
}
@media(max-width:490px){
 .nc-page.nc-physical-only .nc-narrator{margin:2px auto 4px;min-height:21px}
 .nc-page.nc-physical-only .nc-pocket{margin-top:6px}
}

/* The original cube-motion.css shifted each inventory card UP 3px on
   hover. At the bottom 1–3 pixels of the card, the pointer fell out of
   the moved button, causing an endless hover/unhover flicker. Keep the
   button's hitbox physically stationary and use color/shadow feedback. */
.nc-page .nc-pocket .nc-item,
.nc-page .nc-pocket .nc-item:hover,
.nc-page .nc-pocket .nc-item:focus-visible{
 transform:none;
}
.nc-page .nc-pocket .nc-item.nc-selected{
 border-width:1px; /* No height/width jump when clicking a card either. */
}
