/* 15 · Finale, late night: the city goes to sleep; every number is in place. One page with the footer. */
.ks.finale { --sky1: #0C1B2E; --sky2: #06141C; background: linear-gradient(180deg, #0C1B2E 0%, #0A1A2C 70%, #06141C 100%); }

/* sky: two star fields that twinkle, and the moon */
.ks .fi-sky { position: absolute; inset: 0; pointer-events: none; }
.ks .fi-stars { position: absolute; inset: 0 0 40%; opacity: .7; transition: opacity 1.6s var(--ease); }
.ks .fi-stars.s1 { background-image: radial-gradient(1.4px 1.4px at 12% 18%, #fff 50%, transparent 52%), radial-gradient(1.2px 1.2px at 28% 42%, #fff 50%, transparent 52%), radial-gradient(1.6px 1.6px at 46% 12%, #fff 50%, transparent 52%), radial-gradient(1.1px 1.1px at 63% 30%, #fff 50%, transparent 52%), radial-gradient(1.5px 1.5px at 78% 16%, #fff 50%, transparent 52%), radial-gradient(1.2px 1.2px at 91% 44%, #fff 50%, transparent 52%), radial-gradient(1.3px 1.3px at 6% 52%, #fff 50%, transparent 52%), radial-gradient(1.1px 1.1px at 37% 64%, #fff 50%, transparent 52%); animation: fi-twinkle 3.4s ease-in-out infinite alternate; }
.ks .fi-stars.s2 { background-image: radial-gradient(1px 1px at 20% 30%, #CFE8FF 50%, transparent 52%), radial-gradient(1px 1px at 54% 48%, #CFE8FF 50%, transparent 52%), radial-gradient(1.2px 1.2px at 70% 8%, #CFE8FF 50%, transparent 52%), radial-gradient(1px 1px at 86% 28%, #CFE8FF 50%, transparent 52%), radial-gradient(1px 1px at 33% 8%, #CFE8FF 50%, transparent 52%), radial-gradient(1px 1px at 97% 60%, #CFE8FF 50%, transparent 52%); animation: fi-twinkle 4.6s 1.1s ease-in-out infinite alternate; }
.ks .fi-moon { position: absolute; top: 70px; inset-inline-end: 7%; width: 86px; height: 86px; border-radius: 50%; background: radial-gradient(circle at 36% 36%, #FFFBEA, #F3E3B5 70%); box-shadow: 0 0 60px 18px rgba(255, 240, 200, .16), 0 0 140px 50px rgba(160, 190, 255, .08); transition: box-shadow 1.6s var(--ease); }
.ks .fi-moon::after { content: ""; position: absolute; inset: 0; border-radius: 50%; transform: translateX(22px) translateY(-8px); background: #0E1D31; opacity: .92; }
.ks[dir="rtl"] .fi-moon::after { transform: translateX(-22px) translateY(-8px); }

/* copy and phone */
.ks .fi-grid { position: absolute; inset: 0; z-index: 3; }
.ks .fi-copy { position: absolute; inset-inline-start: 96px; top: 104px; width: 640px; }
.ks .fi-h2 { font-size: 56px; }
.ks .fi-get { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 26px; margin-top: 26px; }
.ks .fi-btn { min-height: 58px; padding: 0 28px; font-size: 18px; border-radius: 16px; }
.ks .fi-btn svg { width: 22px; height: 22px; }
.ks[dir="rtl"] .fi-btn svg { transform: scaleX(-1); }
.ks .fi-qr { display: flex; align-items: center; gap: 14px; padding: 10px 18px 10px 10px; border-radius: 18px; background: rgba(255,255,255,.06); box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); }
.ks[dir="rtl"] .fi-qr { padding: 10px 10px 10px 18px; }
.ks .fi-qr img { width: 92px; height: 92px; padding: 7px; border-radius: 12px; background: #fff; }
.ks .fi-qr span { max-width: 10em; font-size: 14px; font-weight: 700; line-height: 1.4; color: #C9DCE2; }

.ks .fi-phone-col { position: absolute; inset-inline-end: 300px; top: 86px; }
.ks .fi-phone { --pz: .56; position: relative; z-index: 2; transform: rotate(-3deg); animation: fi-float 7s ease-in-out infinite alternate; }
.ks .fi-shot { display: block; width: 100%; height: 100%; object-fit: cover; }
.ks[dir="rtl"] .fi-phone { transform: rotate(3deg); animation-name: fi-float-rtl; }
.ks .fi-glow { position: absolute; top: 60px; left: 50%; width: 520px; height: 620px; margin-left: -260px; border-radius: 50%; background: radial-gradient(closest-side, rgba(11,186,216,.30), rgba(11,186,216,0)); transition: opacity 1.4s; }

/* the rooftops */
.ks .fi-city { position: absolute; left: -200px; right: -200px; bottom: 0; z-index: 2; height: 380px; pointer-events: none; }
.ks .fi-roofs { position: absolute; inset: 0; width: 100%; height: 100%; }
.ks[dir="rtl"] .fi-roofs { transform: scaleX(-1); }
.ks .fi-w { animation: fi-win 11s ease-in-out infinite; animation-delay: calc(var(--d, 0s) * -7); }
@keyframes fi-win { 0%, 70%, 100% { opacity: 1 } 78%, 92% { opacity: .35 } }
.ks .fi-room { transition: opacity 1s var(--ease); }
.ks .fi-ring { transition: stroke 1s; }
.ks .fi-phoneglow { fill: #7FE3F2; opacity: 0; filter: blur(16px); transition: opacity 1s var(--ease); }
.ks .fi-noor { transition: filter 1s var(--ease); }

/* footer */
.ks.fi-foot { position: relative; z-index: 3; background: #06141C; border-top: 1px solid rgba(255,255,255,.08); color: #C9DCE2; scroll-snap-align: end; }
.ks .fi-foot-in { max-width: 1248px; margin: 0 auto; padding: 30px 48px 34px; }
.ks .fi-f1 { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.ks .fi-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; min-height: 44px; }
.ks .fi-brand img { width: 34px; height: 34px; }
.ks .fi-brand b { font-size: 22px; font-weight: 900; letter-spacing: -.01em; }
.ks .fi-tag { margin: 0; flex: 1; font-size: 15px; font-weight: 600; color: #9FB6BF; }
.ks .fi-langs { display: flex; gap: 6px; }
.ks .fi-langs a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 10px; text-decoration: none; font-size: 14px; font-weight: 700; color: #C9DCE2; box-shadow: inset 0 0 0 1px rgba(255,255,255,.14); }
.ks .fi-langs a[lang="ckb"] { font-family: 'Rabar', 'Lama Sans', sans-serif; }
.ks .fi-langs a.on { background: #fff; color: #06141C; box-shadow: none; }
.ks .fi-links { display: flex; flex-wrap: wrap; gap: 4px 6px; margin-top: 14px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.08); }
.ks .fi-links a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 10px; margin-inline-start: -10px; margin-inline-end: 10px; border-radius: 8px; text-decoration: none; font-size: 14.5px; font-weight: 700; color: #E6F1F4; }
.ks .fi-links a:hover { background: rgba(255,255,255,.06); }
.ks .fi-legal { display: flex; flex-wrap: wrap; gap: 6px 26px; margin: 14px 0 0; font-size: 13px; color: #8FA6B0; }
.ks .fi-legal a { color: #C9DCE2; }

@keyframes fi-twinkle { from { opacity: .45 } to { opacity: .95 } }
@keyframes fi-float { from { transform: rotate(-3deg) translateY(0) } to { transform: rotate(-2deg) translateY(-12px) } }
@keyframes fi-float-rtl { from { transform: rotate(3deg) translateY(0) } to { transform: rotate(2deg) translateY(-12px) } }

/* narrow screens */
html.kp-narrow .ks.finale .kframe { padding: 88px 20px 0; }
html.kp-narrow .ks .fi-grid, html.kp-narrow .ks .fi-copy, html.kp-narrow .ks .fi-phone-col, html.kp-narrow .ks .fi-city { position: relative; inset: auto; width: auto; }
html.kp-narrow .ks .fi-h2 { font-size: 40px; }
html.kp-narrow .ks .fi-get { flex-direction: column; align-items: stretch; }
html.kp-narrow .ks .fi-qr { align-self: flex-start; }
html.kp-narrow .ks .fi-phone-col { display: flex; justify-content: center; margin-top: 28px; }
html.kp-narrow .ks .fi-city { height: 220px; margin: -120px -20px 0; }
html.kp-narrow .ks .fi-foot-in { padding: 26px 20px 30px; }
html.kp-narrow .ks .fi-f1 { flex-direction: column; align-items: flex-start; }
html.kp-narrow .ks .fi-moon { top: 16px; width: 40px; height: 40px; inset-inline-end: 7%; }

/* footer links and language buttons are at least 48 px to tap */
.ks .fi-brand, .ks .fi-links a { min-height: 48px; display: inline-flex; align-items: center; }
.ks .fi-langs a, .ks .fi-langs button { min-height: 48px; display: inline-flex; align-items: center; }
