/* Vostok Taxi — the weather and the time on the first screen, and what falls from the sky over it (2026-12-04).
 * Markup: views/site/_weather.php. Behaviour: web/js/weather.js. */

/* The row above the heading: the "now working" badge and, beside it, the weather. */
.vk-hero-top { display:flex; flex-wrap:wrap; align-items:center; gap:10px 12px; margin-bottom:26px; }

/* --- the pill ------------------------------------------------------------- */
.vk-wx { display:inline-flex; align-items:center; gap:10px; min-height:46px; max-width:100%; padding:5px 6px 5px 6px;
  background:#fff; border:1px solid #E2E0D8; border-radius:999px; color:#1C1B17;
  font-family:Manrope,'Manrope Fallback',system-ui,sans-serif; box-shadow:0 6px 18px rgba(28,27,23,.05); }
.vk-wx--bare { padding-left:16px; }
.vk-wx__icon { flex:none; display:grid; place-items:center; width:34px; height:34px; border-radius:50%; background:#F7F6F2; color:#4A463C; }
.vk-wx__now { display:inline-flex; align-items:center; gap:9px; min-width:0; }
.vk-wx__temp { font-size:20px; font-weight:800; line-height:1; letter-spacing:-.03em; font-variant-numeric:tabular-nums; white-space:nowrap; }
.vk-wx__words { display:flex; flex-direction:column; min-width:0; line-height:1.2; }
.vk-wx__label { font-size:12.5px; font-weight:700; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.vk-wx__place { font-size:10.5px; font-weight:600; letter-spacing:.02em; color:#8A8577; white-space:nowrap; }
.vk-wx__clock { flex:none; display:inline-flex; align-items:center; height:34px; margin-left:2px; padding:0 12px; border-radius:999px;
  background:#1C1B17; color:#FFED00; font-family:'JetBrains Mono',ui-monospace,monospace; font-size:14px; font-weight:700;
  letter-spacing:.04em; font-variant-numeric:tabular-nums; }
.vk-wx__clock i { margin:0 1px; font-style:normal; animation:vk-wx-blink 1s steps(1) infinite; }
@keyframes vk-wx-blink { 50% { opacity:.25 } }

/* A narrow phone: the pill takes the row, the clock stays at its right end. */
@media (max-width:420px) {
  .vk-wx { width:100%; }
  .vk-wx__now { flex:1; }
}

/* --- the icon, each part moving by itself ----------------------------------- */
.wi { display:block; overflow:visible; }
.wi * { transform-box:view-box; }
.wi-sun { stroke:#C9A700; }
.wi-sun circle { fill:rgba(255,237,0,.55); transform-origin:16px 16px; animation:vk-wi-pulse 3.2s ease-in-out infinite; }
.wi-rays { transform-origin:16px 16px; animation:vk-wi-spin 16s linear infinite; }
.wi-sun--small circle, .wi-sun--small .wi-rays { transform-origin:11px 11px; }
.wi-moon { stroke:#5E6E8C; fill:rgba(94,110,140,.14); transform-origin:16px 16px; animation:vk-wi-rock 5s ease-in-out infinite alternate; }
.wi-stars path { stroke:#C9A700; animation:vk-wi-twinkle 2.4s ease-in-out infinite; }
.wi-stars path:nth-child(2) { animation-delay:1.1s; }
.wi-cloud { stroke:#4A463C; fill:#fff; animation:vk-wi-drift 6s ease-in-out infinite alternate; }
.wi-cloud--back { fill:none; opacity:.55; animation-duration:8s; animation-direction:alternate-reverse; }
.wi-drops path { stroke:#3E7CC0; animation:vk-wi-fall 1.1s linear infinite; }
.wi-drops path:nth-child(2), .wi-flakes path:nth-child(2) { animation-delay:.35s; }
.wi-drops path:nth-child(3), .wi-flakes path:nth-child(3) { animation-delay:.7s; }
.wi-flakes path { stroke:#6F8FBC; stroke-width:2.8; animation:vk-wi-fall 2.6s linear infinite; }
.wi-bolt { stroke:#C9A700; fill:rgba(255,237,0,.6); animation:vk-wi-flash 2.8s ease-in-out infinite; }
.wi-fog path { stroke:#8A8577; animation:vk-wi-drift 4s ease-in-out infinite alternate; }
.wi-fog path:nth-child(2) { animation-direction:alternate-reverse; }
@keyframes vk-wi-spin { to { transform:rotate(360deg) } }
@keyframes vk-wi-pulse { 50% { transform:scale(1.1) } }
@keyframes vk-wi-rock { from { transform:rotate(-7deg) } to { transform:rotate(7deg) } }
@keyframes vk-wi-twinkle { 0%, 100% { opacity:.25 } 50% { opacity:1 } }
@keyframes vk-wi-drift { from { transform:translateX(-1.2px) } to { transform:translateX(1.6px) } }
@keyframes vk-wi-fall { 0% { transform:translateY(-2px); opacity:0 } 25% { opacity:1 } 100% { transform:translateY(5px); opacity:0 } }
@keyframes vk-wi-flash { 0%, 58%, 100% { opacity:.35 } 62%, 70% { opacity:1 } 66% { opacity:.5 } }

/* --- snow and rain over the first screen ------------------------------------
 * Two sheets: one behind the words and the phone, where most of it falls, and a thin one in front, a few large
 * flakes or drops, for depth. Neither takes a click. They are shown only while something falls. */
.vk-sky { position:absolute; inset:0; width:100%; height:100%; pointer-events:none; opacity:0; transition:opacity 1.2s ease; }
.vk-sky.is-on { opacity:1; }
.vk-sky--front { z-index:2; }
/* The sheet behind is also the weather's light: a shade cooler from above while it snows, greyer while it rains.
   On the page's pale ground that is what lets a white flake be seen at all. */
.vk-sky[data-sky="back"][data-fall="snow"] { background:linear-gradient(180deg, rgba(120,146,190,.20) 0%, rgba(120,146,190,.08) 55%, rgba(120,146,190,0) 100%); }
.vk-sky[data-sky="back"][data-fall="rain"] { background:linear-gradient(180deg, rgba(78,100,138,.22) 0%, rgba(78,100,138,.09) 60%, rgba(78,100,138,0) 100%); }
.vk-sky[data-sky="back"][data-fall="sleet"] { background:linear-gradient(180deg, rgba(98,122,164,.21) 0%, rgba(98,122,164,.08) 58%, rgba(98,122,164,0) 100%); }

@media (prefers-reduced-motion:reduce) {
  .vk-sky { display:none; }
  .wi *, .vk-wx__clock i { animation:none !important; }
}
