/* Fixed WebGL world (world3d.js). Everything here applies only once html.world-on is set. */
.world-gl { position: fixed; inset: 0; z-index: 0; width: 100%; height: 100%; display: block; pointer-events: none; opacity: 0; transition: opacity 1.2s ease; }
.world-on .world-gl { opacity: 1; }
.world-on main, .world-on .footer { position: relative; z-index: 1; }
.world-on body { background: #000; }

/* Let the world show through the sections; cards turn to dark glass. */
.world-on .example-section,
.world-on .registration-section { background: transparent; }
.world-on .ticker { background: #000000b8; }
.world-on .details { background: radial-gradient(70% 80% at 50% 50%, #0c1200b0, #000000a6 75%); }
.world-on .details > .pixels,
.world-on .closing::before,
.world-on .ambient-canvas { display: none; }
.world-on .stat-card,
.world-on .episode { background: linear-gradient(180deg, #0b1000d9, #000000e6 80%); }
.world-on .brief { background: #0a0a0acc; }
.world-on .draft { background: linear-gradient(160deg, #1b2400d1, #0a0d00d9 70%); }
.world-on .faq-list details { background: #0a0a0ad9; }
.world-on .registration-card { background: #0a0a0aeb; }
.world-on .footer { box-shadow: 0 0 0 100vmax #000000d9; clip-path: inset(0 -100vmax); }

/* Legibility over moving light. */
.world-on .section-heading, .world-on .registration-copy, .world-on .closing > p { position: relative; }
.world-on .section-heading::before { content: ""; position: absolute; z-index: -1; inset: -60px -12%; pointer-events: none; background: radial-gradient(50% 50% at 50% 50%, #000000cc, #00000080 55%, transparent 78%); }
.world-on .compare-plain { background: #0b0b0bf0; }
.world-on .learn-card, .world-on .lib-card:not(.lib-wide) { background: linear-gradient(180deg, #0c0f05f0, #050505f2 70%); }
.world-on main > section:not(.hero) h2,
.world-on .section-sub,
.world-on .registration-copy,
.world-on .closing > p { text-shadow: 0 2px 18px #000, 0 0 40px #000; }
.world-on main > section:not(.hero) h2 .accent,
.world-on .closing > p strong { text-shadow: none; filter: drop-shadow(0 2px 14px #000); }

@media (prefers-reduced-motion: reduce) {
  .world-gl { transition: none; }
}
@media print {
  .world-gl { display: none; }
}
