/* One reusable, text-free gold frame. Nine-slice borders reserve space for
   the four symbols and never intercept clicks or cover reading content. */
body :is(dialog,.destination-panel,.destination-card,.library-world,
.sky-highlights,.sky-selection,.scene-toolbar,.sky-screen-actions,.sky-view-controls,
.book-learning-rail,.book-learn-link,.book-supplement-card,.learning-library-card,
.learning-guide-card,.learning-original-card,.learning-supplement-card,
.explorer-profile,.explorer-story-card,.explorer-empty,.explorer-notes,
.star-profile-fact,.learning-question,.learning-idea,.learning-figure,
.science-details,.toast) {
  border: 18px solid transparent !important;
  border-image: url('./assets/interface/celestial-box-frame.svg') 24 / 18px / 0 stretch !important;
  border-radius: 0;
  box-sizing: border-box;
  background-clip: padding-box;
}
body dialog { border-image-width: 26px !important; border-width: 26px !important; }
/* Replace the old competing ornaments inside the main world panel. */
body .destination-panel { background-image: linear-gradient(120deg,#0b2730f5,#06151ce8); }
body .destination-panel::before { display: none; }
/* The navigation frame and original printed book artwork remain their own
   structures; only the containing reader window receives the new frame. */

/* Home controls float over the sky without surrounding frame lines. */
body.sky-mode :is(.sky-screen-actions,.sky-view-controls,.sky-layers,.sky-fullscreen-bar) {
  border: 0 !important;
  border-image: none !important;
  box-shadow: none !important;
}
