/* Sky background: a light sky with drifting clouds and birds, fixed behind every view.
   Shared by the app (index.html) and the admin board (admin.html); the markup is the .sky element in each.
   It never takes clicks or focus, and stays still for people who ask for reduced motion. */
.sky { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; user-select: none; contain: strict; background: linear-gradient(180deg, #cfe5fb 0%, #e3effc 38%, #f1f7fd 72%, #f8fbfe 100%); }

.cloud { position: absolute; border-radius: 50%; background: radial-gradient(closest-side, rgba(255,255,255,.95), rgba(255,255,255,.55) 55%, rgba(255,255,255,0)); animation: cloud-drift linear infinite; will-change: transform; }
.cloud-1 { top: 6%; left: 0; width: 520px; height: 150px; animation-duration: 240s; animation-delay: -40s; }
.cloud-2 { top: 34%; left: 0; width: 680px; height: 190px; opacity: .8; animation-duration: 320s; animation-delay: -200s; }
.cloud-3 { top: 62%; left: 0; width: 460px; height: 130px; opacity: .7; animation-duration: 280s; animation-delay: -120s; }
.cloud::before, .cloud::after { content: ""; position: absolute; border-radius: 50%; background: inherit; }
.cloud::before { left: 18%; top: -38%; width: 46%; height: 95%; }
.cloud::after { left: 48%; top: -22%; width: 36%; height: 80%; }
@keyframes cloud-drift { from { transform: translateX(-700px); } to { transform: translateX(calc(100vw + 100px)); } }

.flock { position: absolute; inset: 0; }
.bird { position: absolute; top: var(--y); left: 0; width: 26px; height: 13px; animation: bird-fly var(--dur) linear var(--delay) infinite; will-change: transform; }
.bird svg { display: block; width: 100%; height: 100%; overflow: visible; transform: scale(var(--s)); animation: bird-bob calc(var(--flap) * 7) ease-in-out var(--delay) infinite alternate; }
.wing { fill: none; stroke: #5d7594; stroke-width: 2; stroke-linecap: round; opacity: .42; transform-box: view-box; transform-origin: 20px 12px; animation: var(--flap) ease-in-out infinite alternate; }
.wing-l { animation-name: wing-left; }
.wing-r { animation-name: wing-right; }
@keyframes bird-fly { from { transform: translateX(-60px); } to { transform: translateX(calc(100vw + 60px)); } }
@keyframes bird-bob { from { translate: 0 -6px; } to { translate: 0 8px; } }
@keyframes wing-left { from { transform: rotate(14deg); } to { transform: rotate(-24deg); } }
@keyframes wing-right { from { transform: rotate(-14deg); } to { transform: rotate(24deg); } }

@media (prefers-reduced-motion: reduce) {
  .cloud, .bird, .bird svg, .wing { animation: none; }
  .cloud-1 { transform: translateX(8vw); }
  .cloud-2 { transform: translateX(46vw); }
  .cloud-3 { transform: translateX(18vw); }
  .bird { transform: translateX(calc(30vw + var(--y) * 6)); }
}
