/* README — sky-island.css: the Sky Island (sky-island.js; the app's sky_island.rs): the performance's box at the top
   (the speaker's portrait, name, the line, the credit, Chapters / Skip ahead, the chapters' list) and the flights over
   the screen (the fly-up from Tampere through the clouds to the island; the fall into Näsijärvi and its splash). */
.rl-sky { position: absolute; left: 50%; top: 70px; transform: translateX(-50%); width: min(820px, calc(100% - 24px)); z-index: 15; color: #e6edf3; }
.rl-sky-box { display: flex; gap: 12px; padding: 12px; border-radius: 14px; background: rgba(8,8,13,.82); border: 1px solid rgba(232,200,96,.55); box-shadow: 0 10px 30px rgba(0,0,0,.5); cursor: pointer; }
.rl-sky-pic { flex: 0 0 84px; height: 84px; border-radius: 10px; overflow: hidden; background: #1a1a2a; border: 1.5px solid rgba(232,200,96,.8); }
.rl-sky-pic img { width: 100%; height: auto; display: block; transform: scale(1.8); transform-origin: 50% 8%; }
.rl-sky-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.rl-sky-name { color: #e8c860; font-weight: 700; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
.rl-sky-line { font-size: 16px; line-height: 1.35; animation: rl-sky-in .26s ease-out; }
.rl-sky-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.rl-sky-credit { font-size: 11px; color: rgba(200,200,210,.9); }
.rl-sky-btns { display: flex; gap: 8px; }
.rl-sky-btn { height: 34px; padding: 0 16px; border-radius: 17px; color: #fff; font-weight: 700; font-size: 14px; cursor: pointer; }
.rl-sky-btn.rl-sky-chapter { background: rgba(210,168,255,.35); border: 1px solid #d2a8ff; }
.rl-sky-btn.rl-sky-skip { background: rgba(88,166,255,.35); border: 1px solid #58a6ff; }
.rl-sky-list { margin: 6px 0 0 auto; width: min(300px, 100%); max-height: calc(100vh - 260px); overflow: auto; padding: 6px; border-radius: 12px; background: rgba(8,8,13,.92); border: 1px solid rgba(210,168,255,.6); display: flex; flex-direction: column; gap: 4px; }
.rl-sky-ch { text-align: left; padding: 6px 10px; border-radius: 8px; border: 0; color: #fff; background: rgba(210,168,255,.12); font-size: 13px; cursor: pointer; }
.rl-sky-ch.on { background: rgba(210,168,255,.35); font-weight: 700; }
@keyframes rl-sky-in { from { opacity: .35; } to { opacity: 1; } }
@media (max-width: 560px) { .rl-sky { top: 64px; } .rl-sky-pic { flex-basis: 64px; height: 64px; } .rl-sky-line { font-size: 14px; } .rl-sky-btn { padding: 0 12px; } }
/* The flights. */
.rl-sky-fly { position: fixed; inset: 0; z-index: 70; overflow: hidden; pointer-events: none; opacity: 1; transition: opacity .45s; animation: rl-sky-sky var(--len) linear forwards; background: linear-gradient(#9cc8f0, #e8f2fc); }
.rl-sky-fly.down { animation-direction: reverse; }
.rl-sky-fly.out { opacity: 0; }
@keyframes rl-sky-sky { from { background: linear-gradient(#9cc8f0, #e8f2fc); } to { background: linear-gradient(#3a6ab8, #b8d8f4); } }
.rl-sky-clouds i { position: absolute; top: -20%; width: calc(var(--s) * 2); height: calc(var(--s) * .7); border-radius: 999px; background: rgba(255,255,255,.8); animation: rl-sky-cloud 1.4s linear infinite; animation-delay: var(--d); }
.rl-sky-fly.down .rl-sky-clouds i { animation-direction: reverse; }
@keyframes rl-sky-cloud { from { transform: translateY(-20vh); } to { transform: translateY(130vh); } }
.rl-sky-town { position: absolute; left: 0; right: 0; bottom: 0; height: 28vh; background: linear-gradient(#4a6a3a, #3a5a2a); animation: rl-sky-sink var(--len) ease-in forwards; }
.rl-sky-town::before { content: ""; position: absolute; left: 0; right: 0; top: -60px; height: 60px; background: repeating-linear-gradient(90deg, #b8583a 0 40px, #8a8478 40px 90px, transparent 90px 120px); }
@keyframes rl-sky-sink { to { transform: translateY(120vh); } }
.rl-sky-isle { position: absolute; left: 8%; right: 8%; top: -40vh; height: 18vh; border-radius: 18px; background: #ece6da; border: 3px solid #c4baa6; animation: rl-sky-isle var(--len) ease-out forwards; }
.rl-sky-isle::before { content: ""; position: absolute; left: 20px; right: 20px; bottom: 100%; height: 12vh; background: repeating-linear-gradient(90deg, #f4f0e6 0 16px, transparent 16px 9%); border-top: 20px solid #b8583a; }
@keyframes rl-sky-isle { 0%, 55% { transform: translateY(0); } 85%, 100% { transform: translateY(55vh); } }
.rl-sky-lake { position: absolute; left: 0; right: 0; bottom: 0; height: 30vh; background: linear-gradient(#3a6a9a, #24507a); border-top: 14px solid #d8c89a; transform: translateY(100%); animation: rl-sky-rise var(--len) ease-in forwards; }
@keyframes rl-sky-rise { to { transform: translateY(0); } }
.rl-sky-splash { position: absolute; left: 50%; bottom: 12vh; width: 40px; height: 12px; margin-left: -20px; border-radius: 50%; border: 5px solid #fff; opacity: 0; animation: rl-sky-splash var(--len) ease-out forwards; }
@keyframes rl-sky-splash { 0%, 72% { opacity: 0; transform: scale(1); } 76% { opacity: 1; } 100% { opacity: 0; transform: scale(14); } }
.rl-sky-who { position: absolute; left: 50%; top: 50%; display: flex; gap: 2vw; transform: translate(-50%, 60vh); animation: rl-sky-up var(--len) cubic-bezier(.2,.8,.3,1) forwards; }
.rl-sky-fly.down .rl-sky-who { animation-name: rl-sky-down; animation-timing-function: ease-in; }
.rl-sky-who img { height: 34vh; width: auto; }
.rl-sky-fly.up .rl-sky-who img { filter: drop-shadow(0 30px 12px rgba(255,140,40,.8)); }
.rl-sky-fly.down .rl-sky-who img { animation: rl-sky-spin 1.2s linear infinite; }
@keyframes rl-sky-up { from { transform: translate(-50%, 60vh); } 60%, to { transform: translate(-50%, -50%); } }
@keyframes rl-sky-down { from { transform: translate(-50%, -110vh); } 80%, to { transform: translate(-50%, 10vh); } }
@keyframes rl-sky-spin { to { transform: rotate(360deg); } }
