:root{--demo-bg:#100f15;--demo-cream:#fff2db;--demo-purple:#bb86ff;--demo-line:#ffffff26}
.demo-nav{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 24px;background:var(--demo-bg);border-bottom:1px solid var(--demo-line);font:600 14px/1.4 system-ui;color:var(--demo-cream)}
.demo-nav a{padding:10px 0}.demo-theme-choices{display:flex;flex-wrap:wrap;gap:8px}.demo-theme-choices button{min-height:44px;border:1px solid var(--demo-line);border-radius:8px;padding:10px 14px;background:transparent;font:600 14px system-ui}.demo-theme-choices button[aria-pressed="true"]{color:var(--demo-bg);background:var(--demo-cream)}
.demo-options{display:flex;flex-wrap:wrap;gap:8px;align-items:center}.demo-options>[data-demo-motion]{min-height:44px;border:1px solid var(--demo-line);border-radius:8px;padding:10px 14px;background:transparent;font:600 14px system-ui}
.showcase-playing .topbar,.showcase-playing #menu-button,.showcase-playing #game-menu,.showcase-playing #start-menu,.showcase-playing .candidate-tools{display:none!important}
.showcase-playing .workspace{padding-top:20px}.showcase-playing .bottom-bar{height:auto;min-height:48px;padding:12px 24px}.showcase-playing .about-links{font-size:12px}
.showcase-preview{height:100dvh;min-height:0;overflow:hidden}
.showcase-preview .topbar,.showcase-preview .demo-nav,.showcase-preview .controls,.showcase-preview .bottom-bar,.showcase-preview .stage-bottom,.showcase-preview .stage-index,.showcase-preview .stage-side-label,.showcase-preview .stage-tools,.showcase-preview #orbit-controls,.showcase-preview .reward-overlay,.showcase-preview #cell-picker{display:none!important}
.showcase-preview .workspace{display:block;max-width:none;margin:0;padding:0;height:100dvh}
.showcase-preview .stage-shell{border:0;border-radius:0;box-shadow:none;height:100dvh}
.showcase-preview .stage-top{height:84px;padding:24px 28px 4px}
.showcase-preview .stage-top h1{font-size:38px;margin-top:8px}.showcase-preview .stage-top h1 span{font-size:26px}.showcase-preview .stage-top .eyebrow{font-size:10px}
.showcase-preview .stage{height:calc(100dvh - 84px);min-height:0!important}
.showcase-preview .orientation{display:none}
.showcase-preview .cube-wrap{grid-template-rows:minmax(0,1fr);grid-template-columns:minmax(0,1fr)}
.showcase-preview:not([data-showcase-ready]) .cube{transition:none!important}
/* The original Moon ground plate also contains an Earth. Reveal only its
   lower landing scene so the live sky plate remains the single Earth. */
body[data-theme="lunar"] .stage:before{-webkit-mask-image:linear-gradient(transparent calc(100% - 250px),#000 calc(100% - 205px));mask-image:linear-gradient(transparent calc(100% - 250px),#000 calc(100% - 205px))}
body.showcase-playing[data-theme="lunar"].flat-view .ambient{background:#000}
@media(max-width:540px){.demo-nav{padding:10px 16px;display:block}.demo-nav>a{display:inline-block}.demo-theme-choices{gap:6px}.demo-theme-choices button{padding-inline:11px}.showcase-playing .workspace{padding-inline:8px}.showcase-playing .bottom-bar{padding:12px 16px;gap:12px}.showcase-preview .stage-top{padding-inline:20px}}

.showcase-preview .solved-review{display:none!important}.first-solve .panel-map,.first-solve #map-panel{display:none}.first-solve .workspace{padding-top:18px}.first-solve .stage-shell{max-width:100%}
