/* Native reading is the baseline. JavaScript earns enhanced controls only after
   its first route is usable; a missing or failed script never removes content. */
body:not(.app-ready) .enter-button,
body:not(.app-ready) [data-enhanced-navigation],
body:not(.app-ready) .quality-label,
body:not(.app-ready) .motion-button,
body:not(.app-ready) .sound-button,
body:not(.app-ready) .world-grid { display: none !important; }
#startup-fallback[hidden],
#startup-navigation[hidden] { display: none !important; }
#world-dialog:not([open]) { display: none; }

#startup-navigation a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 0;
  color: #c4d4df;
  font-size: 14px;
}
#startup-navigation a:hover { color: #fff; }
#startup-fallback {
  position: relative;
  max-width: 1120px;
  margin: 0 auto;
  padding: 32px 24px;
}
#startup-fallback > p { margin: 12px 0 24px; }
.no-script-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
  gap: 28px;
}
#startup-fallback article { min-width: 0; padding: 24px; background: #102235; border: 1px solid #92c6df55; }
#startup-fallback h3 { font-size: 24px; line-height: 1.4; scroll-margin-top: 150px; }
#startup-fallback article p { font-size: 15px; margin: 15px 0; }
#startup-fallback article a, #startup-fallback .brook-shelf-source a { text-decoration: underline; display: inline-block; min-height: 44px; padding: 10px 0; }
#startup-fallback img { width: 100%; height: auto; }
@media (max-width: 720px) {
  .site-header #startup-navigation { display: grid; grid-template-columns: 1fr 1fr; gap: 0; padding-inline: 12px; background: #07121f; }
  #startup-navigation a { justify-content: center; font-size: 14px; min-width: 44px; }
  #startup-fallback h3 { scroll-margin-top: 180px; }
  #startup-fallback { padding: 24px 0; }
}
