:root {
  color-scheme: dark;
  --bg: #06111d;
  --bg-2: #091827;
  --panel: rgba(10, 27, 45, .78);
  --panel-strong: rgba(12, 31, 51, .92);
  --panel-soft: rgba(255,255,255,.045);
  --line: rgba(210, 232, 255, .12);
  --line-strong: rgba(190, 224, 255, .22);
  --text: #f5f8fc;
  --muted: #9fb2c6;
  --soft: #758da6;
  --blue: #6ec5ff;
  --blue-2: #2a8fff;
  --green: #45dfa5;
  --amber: #ffd46d;
  --danger: #ff8290;
  --shadow: 0 28px 80px rgba(0,0,0,.30);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 17px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 72% -10%, rgba(83,151,215,.24), transparent 30%),
    radial-gradient(circle at 20% 25%, rgba(33,100,153,.12), transparent 28%),
    linear-gradient(150deg, #04101c 0%, #071522 47%, #05101b 100%);
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .22;
  background-image:
    linear-gradient(rgba(255,255,255,.016) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.014) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.8), transparent 68%);
}

button, input { font: inherit; }
button { color: inherit; }

.app-shell {
  width: min(1680px, 100%);
  margin: 0 auto;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 20px;
  padding: 18px;
  position: relative;
  z-index: 1;
}

.side-rail {
  position: sticky;
  top: 18px;
  height: calc(100vh - 36px);
  border: 1px solid var(--line);
  border-radius: 28px;
  background: linear-gradient(160deg, rgba(12,31,50,.88), rgba(5,18,31,.82));
  box-shadow: 0 22px 70px rgba(0,0,0,.22);
  backdrop-filter: blur(24px) saturate(135%);
  -webkit-backdrop-filter: blur(24px) saturate(135%);
  padding: 24px 14px 16px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.brand {
  padding: 3px 14px 25px;
  font-family: ui-serif, Georgia, "Times New Roman", serif;
  font-size: 27px;
  line-height: .88;
  letter-spacing: -.03em;
}
.brand span { display: block; font-size: 19px; font-weight: 400; color: #c8d6e4; margin-top: 8px; }
.nav-list { display: grid; gap: 7px; }
.nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 13px;
  color: #a8bacc;
  text-decoration: none;
  font-size: 13px;
  transition: .18s ease;
}
.nav-link:hover,
.nav-link.active {
  color: #f7fbff;
  background: rgba(72,145,211,.12);
  border-color: rgba(119,190,255,.16);
}
.nav-icon { width: 22px; text-align: center; color: #91cfff; font-size: 18px; }
.side-mini {
  margin-top: auto;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 15px;
  background: rgba(4,16,28,.46);
}
.side-mini-location { color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-mini-temp { font-family: ui-serif, Georgia, serif; font-size: 45px; letter-spacing: -.06em; margin: 8px 0 2px; }
.side-mini-text { font-size: 12px; color: #c0cfdd; }
.side-mini-time { font-size: 11px; color: var(--soft); margin-top: 12px; }

.main-content { min-width: 0; padding: 2px 0 24px; }
.mobile-topbar { display: none; }

.card {
  border: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(14,34,55,.84), rgba(7,22,38,.76));
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  backdrop-filter: blur(24px) saturate(135%);
  -webkit-backdrop-filter: blur(24px) saturate(135%);
  overflow: hidden;
}

.hero {
  min-height: 365px;
  position: relative;
  isolation: isolate;
  padding: 28px 30px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background:
    linear-gradient(90deg, rgba(3,15,27,.88) 0%, rgba(5,20,35,.70) 42%, rgba(4,16,28,.28) 72%, rgba(4,16,28,.36) 100%),
    radial-gradient(circle at 76% 35%, rgba(132,178,220,.30), transparent 23%),
    linear-gradient(150deg, #0d2b45, #081726 72%);
}
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: -1;
}
.hero::before {
  width: 430px;
  height: 215px;
  right: 7%;
  top: 54px;
  opacity: .78;
  filter: blur(.3px) drop-shadow(0 20px 32px rgba(0,0,0,.22));
  background:
    radial-gradient(ellipse at 30% 54%, rgba(221,235,248,.82) 0 21%, transparent 22%),
    radial-gradient(ellipse at 48% 42%, rgba(195,216,236,.88) 0 25%, transparent 26%),
    radial-gradient(ellipse at 65% 58%, rgba(171,198,222,.82) 0 24%, transparent 25%),
    radial-gradient(ellipse at 49% 70%, rgba(117,155,187,.78) 0 32%, transparent 33%);
  animation: cloudDrift 10s ease-in-out infinite alternate;
}
.hero::after {
  width: 360px;
  height: 175px;
  right: 10%;
  top: 170px;
  opacity: 0;
  background: repeating-linear-gradient(102deg, transparent 0 18px, rgba(139,207,255,.55) 19px 21px, transparent 22px 34px);
  mask-image: linear-gradient(to bottom, transparent, #000 15%, #000 78%, transparent);
  animation: rainFall 1.1s linear infinite;
}
body[data-weather="rain"] .hero::after,
body[data-weather="storm"] .hero::after { opacity: .75; }
body[data-weather="snow"] .hero::after {
  opacity: .72;
  background: radial-gradient(circle, rgba(255,255,255,.9) 0 2px, transparent 3px) 0 0 / 28px 28px;
  animation-duration: 4.5s;
}
body[data-weather="clear"] .hero::before {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  top: 56px;
  right: 16%;
  background: radial-gradient(circle, #fff4bc 0 18%, #ffd76f 22%, rgba(255,195,62,.32) 52%, transparent 70%);
  filter: drop-shadow(0 0 38px rgba(255,210,105,.30));
}
body[data-weather="storm"] .hero { background: linear-gradient(90deg, rgba(2,10,20,.93), rgba(11,17,34,.65)), radial-gradient(circle at 76% 38%, rgba(108,100,173,.26), transparent 26%), #071522; }
body[data-weather="fog"] .hero::before { filter: blur(15px); opacity: .55; }
@keyframes cloudDrift { from { transform: translate3d(-8px,-3px,0) scale(.98); } to { transform: translate3d(14px,5px,0) scale(1.03); } }
@keyframes rainFall { from { transform: translateY(-8px); } to { transform: translateY(18px); } }

.hero-location {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  padding: 8px 12px;
  border-radius: 999px;
  color: #dae7f2;
  background: rgba(5,18,31,.48);
  border: 1px solid rgba(255,255,255,.09);
  font-size: 13px;
  max-width: 70%;
}
.hero-main { max-width: 540px; padding-top: 24px; }
.hero-line { display: flex; align-items: flex-end; gap: 22px; flex-wrap: wrap; }
.hero-temp {
  font-family: ui-serif, Georgia, "Times New Roman", serif;
  font-size: clamp(84px, 9vw, 140px);
  line-height: .76;
  letter-spacing: -.075em;
  font-weight: 400;
  text-shadow: 0 16px 50px rgba(0,0,0,.28);
}
.hero-copy { padding-bottom: 8px; }
.hero-weather { font-family: ui-serif, Georgia, serif; font-size: 27px; letter-spacing: -.025em; }
.hero-small { margin-top: 7px; color: #c0cfdd; font-size: 14px; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-top: 17px; color: #b7c8d8; font-size: 12px; }
.hero-fact strong { color: #eef6fc; font-weight: 600; }
.hero-status { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; width: min(720px, 100%); margin-top: 24px; }
.pill {
  min-height: 52px;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 16px;
  padding: 9px 13px;
  background: rgba(5,18,31,.56);
  color: #d5e3ee;
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.03);
}
.pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #7890a6; box-shadow: 0 0 0 4px rgba(120,144,166,.08); flex: 0 0 auto; }
.pill.good::before { background: var(--green); box-shadow: 0 0 0 4px rgba(69,223,165,.09), 0 0 12px rgba(69,223,165,.28); }
.pill.warn::before { background: var(--amber); }
.pill.bad::before { background: var(--danger); }

.metric-strip {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}
.metric {
  min-width: 0;
  min-height: 112px;
  padding: 14px 14px 12px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: linear-gradient(150deg, rgba(19,42,66,.78), rgba(9,26,44,.72));
  box-shadow: 0 18px 42px rgba(0,0,0,.13), inset 0 1px 0 rgba(255,255,255,.025);
}
.metric-label { display: flex; align-items: center; gap: 7px; color: #a8bacb; font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.metric-icon { color: #72caff; font-size: 18px; }
.metric-value { margin-top: 10px; font-size: 24px; line-height: 1; font-weight: 600; letter-spacing: -.04em; white-space: nowrap; }
.source { margin-top: 8px; color: #738da6; font-size: 9px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.metric-note { margin-top: 6px; color: #8199af; font-size: 10px; }

.split-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(420px, .95fr);
  gap: 12px;
  margin-top: 12px;
}
.section-card { padding: 17px; }
.section-head { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 13px; }
.section-title { display: flex; align-items: center; gap: 8px; }
.section-title h2 { margin: 0; font-family: ui-serif, Georgia, serif; font-size: 19px; font-weight: 500; letter-spacing: -.02em; }
.section-symbol { color: #8bd4ff; font-size: 18px; }
.section-note { color: #7890a8; font-size: 11px; }

#radar {
  height: 410px;
  border-radius: 17px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.08);
  background: #06101b;
}
.leaflet-control-zoom a { background: rgba(8,25,42,.92) !important; color: #eaf4fc !important; border-color: rgba(255,255,255,.08) !important; }
.leaflet-control-attribution { background: rgba(4,14,24,.72) !important; color: #90a6bb !important; }
.radar-controls { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; margin-top: 11px; }
.radar-play {
  border: 1px solid var(--line);
  background: rgba(8,26,44,.82);
  border-radius: 999px;
  min-height: 34px;
  padding: 0 12px;
  cursor: pointer;
}
.radar-slider { width: 100%; accent-color: #78caff; }
.radar-time { color: #9db1c4; font-size: 11px; min-width: 58px; text-align: right; }
.radar-foot { margin-top: 9px; color: #67829c; font-size: 10px; }

.hourly-card { min-width: 0; }
.scroll-row {
  display: flex;
  overflow-x: auto;
  gap: 7px;
  padding: 2px 1px 9px;
  scrollbar-width: thin;
  scroll-snap-type: x proximity;
}
.hour-item {
  flex: 0 0 92px;
  min-height: 306px;
  padding: 13px 9px;
  border-left: 1px solid rgba(255,255,255,.05);
  text-align: center;
  scroll-snap-align: start;
}
.hour-item:first-child { border-left: 0; border-radius: 14px; background: rgba(91,151,205,.10); }
.hour-time { color: #91a7bc; font-size: 11px; }
.weather-icon { font-size: 31px; line-height: 1; margin: 27px 0 17px; filter: drop-shadow(0 5px 10px rgba(0,0,0,.2)); }
.hour-temp { font-size: 22px; font-weight: 600; letter-spacing: -.04em; }
.hour-rain { margin-top: 14px; color: #69baf0; font-size: 10px; }
.hour-desc { margin-top: 7px; color: #7f95aa; font-size: 9px; line-height: 1.25; min-height: 24px; }

.daily-card { margin-top: 12px; padding: 17px; }
.daily-grid { display: grid; gap: 0; }
.day-row {
  display: grid;
  grid-template-columns: minmax(120px,.9fr) 54px minmax(150px,1.25fr) minmax(100px,.7fr) minmax(80px,.65fr) minmax(115px,.8fr);
  align-items: center;
  gap: 12px;
  min-height: 64px;
  padding: 7px 10px;
  border-top: 1px solid rgba(255,255,255,.055);
}
.day-row:first-child { border-top: 0; }
.day-name { font-size: 13px; color: #f1f6fb; }
.day-date { color: #758ca3; font-size: 10px; margin-top: 3px; text-transform: lowercase; }
.day-icon { font-size: 27px; text-align: center; }
.day-desc { color: #a8bacb; font-size: 12px; }
.day-temp { font-size: 17px; letter-spacing: -.025em; white-space: nowrap; }
.day-rain { color: #77c6f7; font-size: 11px; white-space: nowrap; }
.day-wind { color: #91a6ba; font-size: 11px; white-space: nowrap; }

.error-box {
  display: none;
  border: 1px solid rgba(255,111,126,.24);
  background: rgba(255,76,96,.08);
  color: #ffc1c7;
  border-radius: 15px;
  padding: 13px 15px;
  margin-bottom: 12px;
}
.footer { text-align: center; color: #566f88; font-size: 11px; padding: 22px 6px 4px; }

@media (hover:hover) {
  .metric, .card { transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
  .metric:hover { transform: translateY(-2px); border-color: rgba(140,204,255,.20); }
  .split-grid .card:hover, .daily-card:hover { border-color: rgba(140,204,255,.18); }
}

@media (max-width: 1260px) {
  .app-shell { grid-template-columns: 165px minmax(0,1fr); }
  .metric-strip { grid-template-columns: repeat(4, 1fr); }
  .split-grid { grid-template-columns: 1fr; }
  .hour-item { min-height: 220px; }
}

@media (max-width: 820px) {
  .app-shell { display: block; padding: 12px; }
  .side-rail { display: none; }
  .mobile-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 5px 13px;
  }
  .mobile-brand { font-family: ui-serif, Georgia, serif; font-size: 23px; letter-spacing: -.025em; }
  .mobile-live { display: inline-flex; align-items: center; gap: 7px; color: #b9c9d7; font-size: 11px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 999px; background: rgba(10,27,45,.64); }
  .mobile-live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px rgba(69,223,165,.40); }
  .hero { min-height: 500px; padding: 20px 17px 16px; border-radius: 25px; }
  .hero::before { right: -70px; top: 100px; transform: scale(.8); }
  .hero::after { right: -20px; top: 205px; }
  .hero-location { max-width: 100%; }
  .hero-main { padding-top: 52px; }
  .hero-line { align-items: flex-end; gap: 13px; }
  .hero-temp { font-size: clamp(94px, 29vw, 132px); }
  .hero-weather { font-size: 23px; }
  .hero-status { grid-template-columns: 1fr; margin-top: 20px; }
  .pill { min-height: 45px; }
  .metric-strip { grid-template-columns: repeat(2, 1fr); gap: 9px; }
  .metric { min-height: 105px; }
  .split-grid { grid-template-columns: 1fr; }
  #radar { height: 335px; }
  .hour-item { flex-basis: 78px; min-height: 205px; }
  .weather-icon { font-size: 28px; margin-top: 21px; }
  .daily-card { padding: 14px 12px; }
  .day-row { grid-template-columns: minmax(84px,.9fr) 40px minmax(76px,.65fr) minmax(62px,.55fr); gap: 7px; min-height: 63px; padding: 7px 4px; }
  .day-desc, .day-wind { display: none; }
  .day-temp { font-size: 15px; }
}

@media (max-width: 430px) {
  .app-shell { padding: 8px; }
  .hero { min-height: 515px; }
  .hero::before { right: -105px; top: 110px; }
  .hero-main { padding-top: 60px; }
  .hero-copy { max-width: 44%; }
  .hero-small { font-size: 12px; }
  .hero-facts { gap: 8px 12px; }
  .metric-value { font-size: 21px; }
  .metric-label { font-size: 10px; }
  .section-card { padding: 12px; }
  #radar { height: 290px; }
  .radar-controls { grid-template-columns: auto 1fr; }
  .radar-time { grid-column: 1 / -1; text-align: left; }
  .hour-item { flex-basis: 73px; }
  .daily-card { margin-bottom: 4px; }
}


/* CHIEL_WEER_TABLET_READABILITY_V1 */
@media (pointer: coarse) and (min-width: 821px) and (max-width: 1366px) {
  .nav-link { color: #d6e3ef; font-size: 15px; font-weight: 700; line-height: 1.25; }
  .side-mini-location, .side-mini-text { color: #d8e5f0; font-size: 14px; font-weight: 600; line-height: 1.35; }
  .side-mini-time { color: #b9ccdd; font-size: 13px; font-weight: 600; }
  .hero-location { color: #eef6fc; font-size: 15px; font-weight: 650; }
  .hero-small { color: #d5e3ed; font-size: 16px; font-weight: 600; }
  .hero-facts { color: #cfdeea; font-size: 14px; font-weight: 600; }
  .pill { color: #e3edf5; font-size: 14px; font-weight: 650; }
  .metric-label { color: #d0dfeb; font-size: 13px; font-weight: 650; }
  .metric-value { font-size: 26px; font-weight: 700; }
  .source { color: #aac0d3; font-size: 11px; font-weight: 600; }
  .metric-note { color: #b6cadb; font-size: 12px; font-weight: 600; }
  .section-note { color: #aec3d6; font-size: 13px; font-weight: 600; }
  .radar-time { color: #c2d3e2; font-size: 13px; font-weight: 600; }
  .radar-foot { color: #9fb7cc; font-size: 12px; }
  .hour-time { color: #c3d4e3; font-size: 13px; font-weight: 650; }
  .hour-rain { font-size: 12px; font-weight: 650; }
  .hour-desc { color: #b4c7d8; font-size: 11px; font-weight: 600; line-height: 1.35; }
  .day-name { font-size: 14px; font-weight: 700; }
  .day-date { color: #a9bfd2; font-size: 12px; font-weight: 600; }
  .day-desc { color: #c7d7e4; font-size: 13px; font-weight: 600; }
  .day-temp { font-size: 18px; font-weight: 700; }
  .day-rain, .day-wind { font-size: 12px; font-weight: 650; }
  .footer { color: #9eb5c9; font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Unified CHIEL ecosystem shell */
.chiel-ecosystem-nav{display:flex;align-items:center;gap:6px;overflow-x:auto;scrollbar-width:none;margin:0 0 12px;padding:7px;border:1px solid var(--line);border-radius:14px;background:rgba(5,15,25,.82);backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px);box-shadow:0 14px 40px rgba(0,0,0,.16)}
.chiel-ecosystem-nav::-webkit-scrollbar{display:none}.chiel-ecosystem-nav a{flex:0 0 auto;min-height:36px;display:inline-flex;align-items:center;gap:6px;padding:0 10px;border:1px solid transparent;border-radius:9px;color:#8099ac;text-decoration:none;font-size:9px;font-weight:850;letter-spacing:.02em;white-space:nowrap;transition:.18s ease}
.chiel-ecosystem-nav a:hover,.chiel-ecosystem-nav a:focus-visible{outline:none;color:#e1fbff;border-color:rgba(110,197,255,.23);background:rgba(110,197,255,.07)}.chiel-ecosystem-nav a.active{color:#e7f8ff;border-color:rgba(110,197,255,.35);background:linear-gradient(90deg,rgba(110,197,255,.15),rgba(42,143,255,.08));box-shadow:inset 0 0 18px rgba(110,197,255,.035)}
.chiel-nav-mark{width:24px;height:24px;display:grid;place-items:center;border:1px solid rgba(110,197,255,.26);border-radius:7px;background:rgba(110,197,255,.08);color:#d8f2ff;font-size:10px}
.metric,.card{transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease}.metric:hover,.section-card:hover,.daily-card:hover{transform:translateY(-2px);border-color:rgba(110,197,255,.23);box-shadow:0 23px 58px rgba(0,0,0,.22)}
.pill.good::before{animation:chiel-weather-live 1.8s ease-in-out infinite}@keyframes chiel-weather-live{0%,100%{transform:scale(1)}50%{transform:scale(1.2)}}
@media(max-width:760px){.chiel-ecosystem-nav{margin:0 0 10px;border-radius:12px}.chiel-ecosystem-nav a{min-height:34px;padding-inline:9px;font-size:8px}}
@media(prefers-reduced-motion:reduce){.pill.good::before{animation:none}}


/* CHIEL Weer live weather engine v5 */
:root{
  --weather-drift:14s;
  --weather-drift-slow:18s;
  --weather-drift-fast:10s;
  --weather-wind-speed:5s;
  --weather-rain-opacity:.58;
  --weather-cloud-opacity:.78;
}
.hero::before,.hero::after{display:none}
.weather-scene{position:absolute;inset:0;z-index:0;pointer-events:none;overflow:hidden}
.hero-location,.hero-main,.hero-status{position:relative;z-index:2}
.weather-live-label{position:absolute;right:18px;top:18px;z-index:3;display:inline-flex;align-items:center;gap:7px;padding:7px 10px;border:1px solid rgba(255,255,255,.1);border-radius:999px;background:rgba(4,16,28,.46);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);color:#c6d8e7;font-size:10px;font-weight:850;letter-spacing:.04em}
.weather-live-label i{width:7px;height:7px;border-radius:50%;background:var(--green);box-shadow:0 0 12px rgba(69,223,165,.75);animation:weather-live-pulse 1.8s ease-in-out infinite}
@keyframes weather-live-pulse{0%,100%{transform:scale(1);opacity:.75}50%{transform:scale(1.28);opacity:1}}

.weather-sun,.weather-cloud,.weather-rain,.weather-snow,.weather-lightning,.weather-wind,.weather-fog{position:absolute;opacity:0;transition:opacity .7s ease}
.weather-sun{width:180px;height:180px;right:9%;top:48px;border-radius:50%;background:radial-gradient(circle,#fff8cf 0 12%,#ffe79b 17%,#ffd46d 28%,rgba(255,205,87,.25) 48%,transparent 70%);filter:drop-shadow(0 0 35px rgba(255,214,107,.32));animation:sun-float 8s ease-in-out infinite alternate}
.weather-sun:before,.weather-sun:after,.weather-sun i:before,.weather-sun i:after{content:"";position:absolute;left:50%;top:50%;width:270px;height:2px;transform-origin:center;background:linear-gradient(90deg,transparent,rgba(255,229,155,.42),transparent)}
.weather-sun:before{transform:translate(-50%,-50%) rotate(0deg)}
.weather-sun:after{transform:translate(-50%,-50%) rotate(45deg)}
.weather-sun i:before{transform:translate(-50%,-50%) rotate(90deg)}
.weather-sun i:after{transform:translate(-50%,-50%) rotate(135deg)}
@keyframes sun-float{from{transform:translate3d(-8px,4px,0) scale(.98) rotate(-3deg)}to{transform:translate3d(8px,-5px,0) scale(1.04) rotate(3deg)}}

.weather-cloud{width:360px;height:155px;border-radius:50%;background:
  radial-gradient(ellipse at 27% 56%,rgba(229,239,248,.92) 0 23%,transparent 24%),
  radial-gradient(ellipse at 48% 43%,rgba(211,228,242,.95) 0 28%,transparent 29%),
  radial-gradient(ellipse at 69% 58%,rgba(190,214,233,.9) 0 24%,transparent 25%),
  radial-gradient(ellipse at 49% 73%,rgba(126,164,195,.84) 0 34%,transparent 35%);
  filter:blur(.25px) drop-shadow(0 18px 30px rgba(0,0,0,.22));opacity:0
}
.cloud-one{right:2%;top:46px;animation:cloud-layer-one var(--weather-drift) ease-in-out infinite alternate}
.cloud-two{right:26%;top:102px;transform:scale(.68);filter:blur(.7px) drop-shadow(0 15px 25px rgba(0,0,0,.18));animation:cloud-layer-two var(--weather-drift-slow) ease-in-out infinite alternate}
.cloud-three{right:-10%;top:190px;transform:scale(.48);filter:blur(1.2px);animation:cloud-layer-three var(--weather-drift-fast) ease-in-out infinite alternate}
@keyframes cloud-layer-one{from{transform:translate3d(-22px,-4px,0) scale(1)}to{transform:translate3d(24px,8px,0) scale(1.035)}}
@keyframes cloud-layer-two{from{transform:translate3d(18px,4px,0) scale(.68)}to{transform:translate3d(-26px,-6px,0) scale(.72)}}
@keyframes cloud-layer-three{from{transform:translate3d(-12px,0,0) scale(.48)}to{transform:translate3d(28px,6px,0) scale(.52)}}

.weather-rain{right:0;top:98px;width:58%;height:255px;background:repeating-linear-gradient(104deg,transparent 0 14px,rgba(142,212,255,.62) 15px 17px,transparent 18px 31px);mask-image:linear-gradient(to bottom,transparent 0,#000 11%,#000 83%,transparent 100%);animation:weather-rain-fall .72s linear infinite;opacity:0}
.rain-back{right:8%;filter:blur(.7px);transform:scale(.86);animation-duration:.9s}
.rain-front{right:-3%;top:132px}
@keyframes weather-rain-fall{from{background-position:0 -36px}to{background-position:20px 38px}}

.weather-snow{right:0;top:64px;width:62%;height:300px;background-image:
 radial-gradient(circle,rgba(255,255,255,.9) 0 2px,transparent 2.8px),
 radial-gradient(circle,rgba(220,238,255,.78) 0 1.5px,transparent 2.4px);
background-size:34px 34px,52px 52px;background-position:0 0,18px 10px;opacity:0}
.snow-back{filter:blur(.8px);animation:snow-fall-back 7s linear infinite}
.snow-front{animation:snow-fall-front 4.8s linear infinite}
@keyframes snow-fall-back{from{transform:translate3d(0,-35px,0)}to{transform:translate3d(-25px,70px,0)}}
@keyframes snow-fall-front{from{transform:translate3d(0,-45px,0)}to{transform:translate3d(30px,85px,0)}}

.weather-lightning{right:18%;top:105px;width:85px;height:190px;background:linear-gradient(112deg,transparent 0 42%,rgba(234,244,255,.98) 43% 49%,rgba(117,183,255,.75) 50% 55%,transparent 56%);clip-path:polygon(41% 0,74% 0,56% 35%,78% 35%,30% 100%,41% 54%,19% 54%);filter:drop-shadow(0 0 18px rgba(120,184,255,.92));opacity:0}
body[data-weather="storm"] .weather-lightning{animation:lightning-strike 5.2s infinite}
@keyframes lightning-strike{0%,72%,76%,100%{opacity:0}73%{opacity:1}74%{opacity:.15}75%{opacity:.95}}

.weather-wind{left:44%;width:46%;height:2px;border-radius:999px;background:linear-gradient(90deg,transparent,rgba(188,225,249,.34),transparent);opacity:0;animation:wind-sweep var(--weather-wind-speed) linear infinite}
.wind-one{top:31%}.wind-two{top:45%;animation-delay:-1.7s}
@keyframes wind-sweep{from{transform:translateX(-35%) scaleX(.5);opacity:0}20%{opacity:.5}70%{opacity:.24}to{transform:translateX(70%) scaleX(1.2);opacity:0}}

.weather-fog{inset:0;background:repeating-linear-gradient(180deg,transparent 0 24px,rgba(205,225,238,.08) 25px 46px,transparent 47px 74px);filter:blur(8px);opacity:0;animation:fog-drift 12s ease-in-out infinite alternate}
@keyframes fog-drift{from{transform:translateX(-4%) scale(1.02)}to{transform:translateX(5%) scale(1.06)}}

body[data-weather="clear"] .weather-sun{opacity:1}
body[data-weather="cloudy"] .weather-cloud{opacity:var(--weather-cloud-opacity)}
body[data-weather="rain"] .weather-cloud{opacity:.88}
body[data-weather="rain"] .weather-rain{opacity:var(--weather-rain-opacity)}
body[data-weather="snow"] .weather-cloud{opacity:.76}
body[data-weather="snow"] .weather-snow{opacity:.82}
body[data-weather="storm"] .weather-cloud{opacity:.94;filter:brightness(.65) saturate(.75) drop-shadow(0 20px 30px rgba(0,0,0,.35))}
body[data-weather="storm"] .weather-rain{opacity:.9;animation-duration:.48s}
body[data-weather="storm"] .weather-wind,
body[data-weather="rain"] .weather-wind,
body[data-weather="cloudy"] .weather-wind{opacity:.55}
body[data-weather="fog"] .weather-cloud{opacity:.28;filter:blur(13px)}
body[data-weather="fog"] .weather-fog{opacity:.82}

body[data-weather="clear"] .hero{background:
 linear-gradient(90deg,rgba(4,18,30,.88),rgba(8,29,46,.46) 52%,rgba(44,73,93,.22)),
 radial-gradient(circle at 80% 28%,rgba(255,215,121,.22),transparent 30%),
 linear-gradient(155deg,#123554,#0a1e31 70%)}
body[data-weather="rain"] .hero{background:
 linear-gradient(90deg,rgba(3,13,24,.94),rgba(6,19,33,.67)),
 radial-gradient(circle at 79% 30%,rgba(91,156,207,.17),transparent 28%),
 linear-gradient(150deg,#0b2339,#071521 72%)}
body[data-weather="snow"] .hero{background:
 linear-gradient(90deg,rgba(5,17,29,.92),rgba(13,31,45,.55)),
 radial-gradient(circle at 75% 28%,rgba(201,230,250,.2),transparent 30%),
 linear-gradient(150deg,#183349,#0b1c2b 72%)}
body[data-weather="storm"] .hero{animation:storm-ambient 5.2s infinite}
@keyframes storm-ambient{0%,72%,76%,100%{box-shadow:var(--shadow)}73%{box-shadow:0 0 0 1px rgba(183,220,255,.42),0 0 95px rgba(117,183,255,.16)}74%{box-shadow:var(--shadow)}75%{box-shadow:0 0 0 1px rgba(183,220,255,.26),0 0 70px rgba(117,183,255,.1)}}

.weather-icon,.day-icon{animation:weather-icon-float 4.2s ease-in-out infinite alternate}
.hour-item:nth-child(2n) .weather-icon,.day-row:nth-child(2n) .day-icon{animation-delay:-1.2s}
.hour-item:nth-child(3n) .weather-icon,.day-row:nth-child(3n) .day-icon{animation-delay:-2.1s}
@keyframes weather-icon-float{from{transform:translateY(0) rotate(-1deg)}to{transform:translateY(-5px) rotate(2deg)}}
.metric-icon{display:inline-block;animation:metric-icon-breathe 3.2s ease-in-out infinite}
.metric:nth-child(2n) .metric-icon{animation-delay:-.8s}.metric:nth-child(3n) .metric-icon{animation-delay:-1.6s}
@keyframes metric-icon-breathe{0%,100%{transform:scale(1);opacity:.72}50%{transform:scale(1.12);opacity:1}}
.radar-play{position:relative;overflow:hidden}.radar-play:after{content:"";position:absolute;inset:0;transform:translateX(-120%);background:linear-gradient(90deg,transparent,rgba(126,202,255,.12),transparent);animation:radar-button-scan 3s linear infinite}
@keyframes radar-button-scan{to{transform:translateX(120%)}}

@media(max-width:820px){
 .weather-live-label{right:12px;top:12px;font-size:9px}
 .weather-cloud{right:-34%;top:95px}
 .weather-sun{right:-2%;top:82px;transform:scale(.8)}
 .weather-rain,.weather-snow{width:85%;right:-18%}
 .weather-wind{left:25%;width:80%}
}
@media(max-width:430px){
 .weather-live-label{max-width:48%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
}
@media(prefers-reduced-motion:reduce){
 .weather-live-label i,.weather-sun,.weather-cloud,.weather-rain,.weather-snow,.weather-lightning,.weather-wind,.weather-fog,
 .weather-icon,.day-icon,.metric-icon,.radar-play:after,body[data-weather="storm"] .hero{animation:none!important}
}
