/* R11: opaque reading surfaces, English cover art, and engraving with depth. */
:root{--header:#241a3d}
html[data-theme=light]{--header:#ded0ef}
/* The ornament belongs to the page, not inside a reading panel. */
.sculpted main>section:not(.hero-carousel)::before{
 background-image:url('assets/ornament-r11.svg');background-size:1180px 901.4px;background-position:17px 29px;opacity:.32;
}
html[data-theme=light] .sculpted main>section:not(.hero-carousel)::before{opacity:.39}
html[data-theme=dark] .sculpted main>section:not(.hero-carousel)::before{opacity:.28}
.intro-shell::after,.lore-showcase::after,.game-stage.r6-stage::after,.sculpted .footer::before{content:none;background-image:none}
/* A solid last layer prevents page graphics from bleeding through any card. */
.topbar,.navlinks{background-color:var(--header);backdrop-filter:none}
:is(.sculpted,.lore-r9) :is(.intro-shell,.book,.book-copy,.portal-card,.hero-card,.sound-strip,.community,.community form,
.lore-workbench,.lore-heading,.lore-showcase,.lore-panel,.lore-console,.lore-fact,.lore-relation,
.reader-tools,.reader-transcript,.play-gate,.kit-card,.kit-downloads a,.video-card,.video-empty,
.world-note,.world-main,.world-foot>div,.faq-list details,.filterbar,dialog){background-color:var(--surface);opacity:1}
.book-copy{background:linear-gradient(145deg,var(--panel-top),var(--panel-bottom)) var(--surface)}
.book .en-comic-cover{display:block;aspect-ratio:1601/2400;object-fit:contain;width:100%;height:auto;background:#f8e8c9}
.portal-card.comic .en-comic-cover{aspect-ratio:1601/2400;object-fit:contain;background:transparent}
.story-cover-mini.en-comic-cover{aspect-ratio:1601/2400;object-fit:contain;height:auto}
/* Never lay the page engraving on top of the opaque footer or menu. */
.footer{background-color:var(--panel-bottom)}
@media(max-width:700px){
 .sculpted main>section:not(.hero-carousel)::before{background-size:900px 687.5px;background-position:-43px 21px}
}
@media(forced-colors:active){
 .sculpted main>section:not(.hero-carousel)::before{display:none}
 .intro-shell,.book,.book-copy,.portal-card,.hero-card,.community,.lore-workbench,.lore-panel,.reader-tools,.reader-transcript{background:Canvas;color:CanvasText}
}
