.slide-scene { isolation: isolate; }
.slide-scene .scene-body { position: relative; z-index: 2; }
.ambient-layer { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.ambient-leaf { position: absolute; width: 1.15cqw; height: .58cqw; border-radius: 90% 12% 90% 12%; background: var(--green); opacity: .14; transform: rotate(var(--leaf-rotate, 18deg)); }
.ambient-leaf::after { content: ''; position: absolute; left: 8%; top: 48%; width: 84%; border-top: 1px solid currentColor; opacity: .35; }
.ambient-squirrel { position: absolute; left: -7cqw; bottom: var(--squirrel-bottom, 2.2cqw); font-size: 2.3cqw; opacity: 0; filter: grayscale(1); }
.ambient-squirrel::before { content: '🐿'; }
.ambient-glow { position: absolute; width: 28cqw; height: 28cqw; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--accent) 18%, transparent), transparent 68%); opacity: .5; }
.ambient-dust { position: absolute; width: .32cqw; height: .32cqw; border-radius: 50%; background: var(--gold); opacity: .2; }
.ambient-pulse { position: absolute; width: 2cqw; height: 2cqw; border: 1px solid var(--series-1); border-radius: 50%; opacity: .18; }
.deck-mode .slide-scene:not([hidden]) .ambient-leaf { animation: ambient-leaf-drift var(--ambient-duration, 15s) ease-in-out var(--ambient-delay, 0s) infinite alternate; }
.deck-mode .slide-scene:not([hidden]) .ambient-squirrel { animation: ambient-squirrel-run var(--squirrel-duration, 26s) linear var(--squirrel-delay, 4s) infinite; }
.deck-mode .slide-scene:not([hidden]) .ambient-glow { animation: ambient-breathe var(--ambient-duration, 9s) ease-in-out var(--ambient-delay, 0s) infinite alternate; }
.deck-mode .slide-scene:not([hidden]) .ambient-dust { animation: ambient-dust-rise var(--ambient-duration, 12s) ease-in-out var(--ambient-delay, 0s) infinite; }
.deck-mode .slide-scene:not([hidden]) .ambient-pulse { animation: ambient-pulse-out var(--ambient-duration, 4.5s) ease-out var(--ambient-delay, 0s) infinite; }
@keyframes ambient-leaf-drift { from { translate: 0 0; rotate: -4deg; } to { translate: var(--ambient-x, 1.8cqw) var(--ambient-y, .9cqw); rotate: 13deg; } }
@keyframes ambient-squirrel-run { 0%, 67% { translate: 0 0; opacity: 0; } 70% { opacity: .22; } 82% { opacity: .22; } 86%, 100% { translate: 112cqw 0; opacity: 0; } }
@keyframes ambient-breathe { from { scale: .92; opacity: .25; } to { scale: 1.08; opacity: .58; } }
@keyframes ambient-dust-rise { 0% { translate: 0 2cqw; opacity: 0; } 20%, 65% { opacity: .22; } 100% { translate: var(--ambient-x, .8cqw) -5cqw; opacity: 0; } }
@keyframes ambient-pulse-out { from { scale: .75; opacity: .22; } to { scale: 2.6; opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .ambient-layer * { animation: none !important; } .ambient-squirrel { display: none; } }
@media print { .ambient-layer * { animation: none !important; } .ambient-squirrel { display: none; } }

/* Real-time canvas layers (core/fx.js). The reader shows each slide's static fallback art instead. */
.fx-canvas, .fx-canvas-front { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.fx-canvas { z-index: 1; }
.fx-canvas-front { z-index: 3; }
.read-mode .fx-canvas, .read-mode .fx-canvas-front { display: none; }
.deck-mode .fx-live .fx-fallback { display: none; }
.deck-mode .fx-live .ambient-layer .ambient-leaf, .deck-mode .fx-live .ambient-layer .ambient-squirrel { display: none; }
