/* /styles/share/boot-guards.css
   ChoiceSpin — Early boot guards (v1)
   - Prevents last-wheel flash on / when importing a copied wheel
   - Prevents editor flash on /w/<id> before share-route CSS loads
*/

/* ================
   Share route flash guard
   (moved from inline <style> in index.html)
   ================ */
html.sc-share-route .site-header,
html.sc-share-route .hero__content,
html.sc-share-route .info,
html.sc-share-route .faq-metrics,
html.sc-share-route .site-footer{
  display: none !important;
}

/* ================
   Import boot (hide stale editor until snapshot applied)
   ================ */
html.sc-import-booting body{
  visibility: hidden;
}

/* Optional micro-loader so it doesn't look "blank" */
html.sc-import-booting body::before{
  content: "";
  position: fixed;
  inset: 0;
  visibility: visible;
  background: #111;
}

/* Light theme fallback (very quick, but nicer) */
@media (prefers-color-scheme: light){
  html.sc-import-booting body::before{ background: #fff; }
}
