/* Small, staggered ambient details stay inside the illustrated window. */
.card-window { overflow:hidden; }
.scene-atmosphere { position:absolute; inset:4%; pointer-events:none; z-index:2; overflow:hidden; border-radius:45% 45% 5% 5%; }
.scene-atmosphere::before { content:''; position:absolute; inset:10% -30% 15%; background:radial-gradient(ellipse at 35% 60%,#f6c7ea30,transparent 52%),radial-gradient(ellipse at 65% 40%,#ffe4ac25,transparent 50%); animation:scene-mist 15s ease-in-out infinite; animation-play-state:paused; }
.scene-atmosphere i { position:absolute; left:calc(13% + var(--i)*14%); top:calc(28% + var(--i)*8%); width:3px; height:3px; border-radius:50%; background:#fff0bd; box-shadow:0 0 7px 2px #ffe7ad60; opacity:0; animation:scene-spark 12s ease-in-out infinite; animation-delay:calc(var(--i)*-2s); animation-play-state:paused; }
.card-face[data-motion-theme="water"] .scene-atmosphere::before { background:repeating-linear-gradient(175deg,transparent 0 24px,#ffecca22 25px,transparent 27px 45px); inset:56% -20% 0; }
.card-face[data-motion-theme="light"] .scene-atmosphere::before { background:conic-gradient(from 15deg at 50% 25%,transparent,#ffe5ad28,transparent 22%,#ffe5ad18,transparent 55%,#ffe5ad25,transparent); }
html[data-card-motion="on"] .card-face.motion-visible .scene-atmosphere::before,
html[data-card-motion="on"] .card-face.motion-visible .scene-atmosphere i { animation-play-state:running; }
html[data-card-motion="off"] .scene-atmosphere { display:none; }
@keyframes scene-mist { 0%,100% { transform:translate(-3%,2%) scale(.98); opacity:.35; } 50% { transform:translate(3%,-2%) scale(1.06); opacity:.85; } }
@keyframes scene-spark { 0%,65%,100% { transform:translate(0,7px) scale(.6); opacity:0; } 78% { opacity:.85; } 92% { transform:translate(5px,-12px) scale(1.2); opacity:0; } }
@media(prefers-reduced-motion:reduce) { .scene-atmosphere { display:none; } }
