/* Decorative, non-interactive and entirely absent unless enabled. */
.dice-leaves-enabled { isolation: isolate; }
.dice-seasonal-leaves { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.dice-seasonal-leaves[hidden], .dice-leaves-toggle[hidden] { display: none; }
.dice-seasonal-leaves.is-paused i { animation-play-state: paused; }
.dice-leaves-toggle { color: inherit; background: transparent; border: 0; padding: 8px; cursor: pointer; font: inherit; }
.dice-seasonal-leaves i { position: absolute; top: -32px; left: 8%; width: 13px; height: 9px; border-radius: 90% 8% 90% 8%; background: #b76a35; opacity: .48; animation: dice-leaf-fall 17s linear infinite; }
.dice-seasonal-leaves i:nth-child(2) { left: 21%; background: #c79b4d; animation-duration: 21s; animation-delay: -7s; }
.dice-seasonal-leaves i:nth-child(3) { left: 35%; background: #b25230; animation-duration: 19s; animation-delay: -13s; }
.dice-seasonal-leaves i:nth-child(4) { left: 48%; animation-duration: 24s; animation-delay: -3s; }
.dice-seasonal-leaves i:nth-child(5) { left: 61%; background: #c79b4d; animation-duration: 20s; animation-delay: -16s; }
.dice-seasonal-leaves i:nth-child(6) { left: 74%; background: #b25230; animation-duration: 23s; animation-delay: -9s; }
.dice-seasonal-leaves i:nth-child(7) { left: 85%; animation-duration: 18s; animation-delay: -4s; }
.dice-seasonal-leaves i:nth-child(8) { left: 95%; background: #c79b4d; animation-duration: 25s; animation-delay: -18s; }
/* Owner-approved leaves v2; scope to leaves so snow and sparkles retain their original positions. */
.dice-seasonal-leaves[data-kind="leaves"] i { left: 4%; width: 15px; height: 11px; background: #E8711A; opacity: .68; }
.dice-seasonal-leaves[data-kind="leaves"] i:nth-child(2)  { left: 11%; background: #F28C28; animation-duration: 21s; animation-delay: -7s; }
.dice-seasonal-leaves[data-kind="leaves"] i:nth-child(3)  { left: 18%; background: #D9561E; animation-duration: 19s; animation-delay: -13s; }
.dice-seasonal-leaves[data-kind="leaves"] i:nth-child(4)  { left: 26%; background: #F5A03A; animation-duration: 24s; animation-delay: -3s; }
.dice-seasonal-leaves[data-kind="leaves"] i:nth-child(5)  { left: 33%; background: #E8711A; animation-duration: 20s; animation-delay: -16s; }
.dice-seasonal-leaves[data-kind="leaves"] i:nth-child(6)  { left: 40%; background: #D9561E; animation-duration: 23s; animation-delay: -9s; }
.dice-seasonal-leaves[data-kind="leaves"] i:nth-child(7)  { left: 47%; background: #F28C28; animation-duration: 18s; animation-delay: -4s; }
.dice-seasonal-leaves[data-kind="leaves"] i:nth-child(8)  { left: 54%; background: #F5A03A; animation-duration: 25s; animation-delay: -18s; }
.dice-seasonal-leaves[data-kind="leaves"] i:nth-child(9)  { left: 61%; background: #E8711A; animation-duration: 22s; animation-delay: -11s; }
.dice-seasonal-leaves[data-kind="leaves"] i:nth-child(10) { left: 68%; background: #D9561E; animation-duration: 19s; animation-delay: -1s; }
.dice-seasonal-leaves[data-kind="leaves"] i:nth-child(11) { left: 75%; background: #F28C28; animation-duration: 21s; animation-delay: -14s; }
.dice-seasonal-leaves[data-kind="leaves"] i:nth-child(12) { left: 82%; background: #F5A03A; animation-duration: 24s; animation-delay: -6s; }
.dice-seasonal-leaves[data-kind="leaves"] i:nth-child(13) { left: 89%; background: #E8711A; animation-duration: 18s; animation-delay: -10s; }
.dice-seasonal-leaves[data-kind="leaves"] i:nth-child(14) { left: 96%; background: #D9561E; animation-duration: 23s; animation-delay: -20s; }
@media (max-width: 600px) { .dice-seasonal-leaves[data-kind="leaves"] i:nth-child(n+11) { display: none; } }
.dice-seasonal-leaves:not([data-kind="leaves"]) i:nth-child(n+9) { display: none; }
@keyframes dice-leaf-fall { from { transform: translate3d(0, -4vh, 0) rotate(0deg); } to { transform: translate3d(-55px, 110vh, 0) rotate(460deg); } }
@media (prefers-reduced-motion: reduce) { .dice-seasonal-leaves { display: none; } }
/* Snow and sparkles share the same eight-particle, behind-content layer. */
.dice-seasonal-leaves[data-kind="snow"] i { width: 14px; height: 14px; border-radius: 0; background: transparent; opacity: .62; animation-name: dice-snow-fall; }
.dice-seasonal-leaves[data-kind="snow"] i:nth-child(even) { background: transparent; }
.dice-seasonal-leaves[data-kind="snow"] i::before { content: '❄'; color: #8eb6d1; font: normal 14px/1 sans-serif; }
.dice-seasonal-leaves[data-kind="snow"] i:nth-child(even)::before { color: #e2f3ff; }
.dice-seasonal-leaves[data-kind="sparkles"] i { width: 11px; height: 11px; border-radius: 0; background: #c5a95b; opacity: .55; clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%); animation-name: dice-sparkle-fall; }
.dice-seasonal-leaves[data-kind="sparkles"] i:nth-child(even) { background: #c4cbd4; }
.dice-seasonal-leaves[data-kind="sparkles"].is-burst i { animation: dice-sparkle-burst 2.4s ease-out 1 both; }
@keyframes dice-snow-fall { from { transform: translate3d(0, -4vh, 0); } to { transform: translate3d(-28px, 110vh, 0); } }
@keyframes dice-sparkle-fall { from { transform: translate3d(0, -4vh, 0) rotate(0deg); } to { transform: translate3d(-30px, 110vh, 0) rotate(180deg); } }
@keyframes dice-sparkle-burst { from { transform: translate3d(0, 4vh, 0) scale(.7); opacity: .2; } to { transform: translate3d(-20px, 32vh, 0) scale(1); opacity: .42; } }
