:root {
  color-scheme: dark;
  --bg: #07152b;
  --panel: #112746;
  --panel2: #18375d;
  --text: #f6f9ff;
  --muted: #a5b4ce;
  --cyan: #55ceff;
  --blue: #527fff;
  --green: #74dfaa;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font: 15px/1.4 system-ui, -apple-system, "Segoe UI", sans-serif;
  background: radial-gradient(circle at 80% 0%, #17375f 0, var(--bg) 40%);
}
.shell { width: min(760px, 100%); margin: auto; padding: 18px 14px 40px; }
.eyebrow, .section-title { color: var(--cyan); text-transform: uppercase; letter-spacing: .09em; font-weight: 700; font-size: 12px; }
.topline { display: flex; justify-content: space-between; align-items: center; color: var(--muted); }
h1 { margin: 10px 0 16px; font-size: clamp(28px, 8vw, 46px); line-height: 1.08; }
.hero { display: block; }
.card { background: linear-gradient(145deg, var(--panel2), var(--panel)); border: 1px solid #28466d; border-radius: 22px; padding: 17px; box-shadow: 0 12px 35px #020a1880; }
.temperature { font-size: clamp(52px, 18vw, 92px); line-height: .95; font-weight: 650; letter-spacing: -.05em; }
.current-card { display: grid; grid-template-columns: minmax(120px, 1fr) minmax(150px, 1.2fr); align-items: center; gap: 15px 20px; }
.current-weather { display: flex; align-items: center; justify-content: flex-start; gap: 12px; }
.current-icon { font-size: 58px; line-height: 1; }
.weather-svg { display: inline-block; width: 1.9em; height: 1.9em; vertical-align: middle; object-fit: contain; }
.current-icon .weather-svg { width: 76px; height: 76px; }
.tick-icon .weather-svg { width: 45px; height: 45px; }
.hour .icon .weather-svg { width: 48px; height: 48px; }
.current-state { display: block; font-size: 22px; text-transform: lowercase; }
.current-weather .rain { display: block; margin-top: 5px; font-size: 18px; }
.current-details { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 5px 20px; padding-top: 12px; border-top: 1px solid #315175; color: var(--muted); }
.muted { color: var(--muted); }
.radar-state { font-size: 18px; font-weight: 650; margin: 6px 0; }
.good { color: var(--green); } .wet { color: var(--cyan); }
section { margin-top: 25px; }
.section-head { display: flex; justify-content: space-between; margin-bottom: 10px; color: var(--muted); }
.ten-minute { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(93px, 1fr); gap: 8px; overflow-x: auto; padding-bottom: 4px; scroll-snap-type: x proximity; }
.tick { scroll-snap-align: start; background: #102441; border-radius: 17px; padding: 13px 10px; min-height: 158px; text-align: center; }
.tick-icon { display: block; min-height: 42px; margin-top: 7px; font-size: 30px; line-height: 42px; }
.tick-temp { display: block; font-size: 20px; margin: 1px 0 3px; }
.tick .rain { display: block; }
.rain { color: var(--cyan); font-weight: 700; }
.hours { display: grid; gap: 8px; }
.hour { display: grid; grid-template-columns: 58px 40px 1fr auto; align-items: center; gap: 9px; background: #102441; border-radius: 17px; padding: 12px 14px; }
.hour-time { font-weight: 650; }.icon { font-size: 25px; }.hour-temp { font-size: 20px; font-weight: 700; }
.hour-details { text-align: right; font-size: 13px; color: var(--muted); }
.days { display: grid; gap: 8px; }
.day { display: grid; grid-template-columns: 58px 46px minmax(90px, 1fr) auto 58px; align-items: center; gap: 9px; background: #102441; border-radius: 17px; padding: 12px 14px; }
.day-date, .day-weather, .day-temp { display: grid; }
.day-date small, .day-weather small, .day-temp small { color: var(--muted); }
.day-icon { font-size: 28px; line-height: 1; }
.day-icon .weather-svg { width: 48px; height: 48px; }
.day-weather strong { text-transform: lowercase; }
.day-temp { text-align: right; font-size: 17px; }
.day-temp strong { font-size: 21px; }
.models { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.metric { background: #102441; border-radius: 16px; padding: 13px; }
.metric strong { display: block; font-size: 20px; margin-top: 5px; }
.footer { text-align: center; color: var(--muted); margin-top: 25px; font-size: 12px; }
.loading, .error { padding: 40px 20px; text-align: center; color: var(--muted); }
@media (max-width: 430px) {
  .models { grid-template-columns: 1fr; }
  .day { grid-template-columns: 52px 40px minmax(75px, 1fr) auto 52px; gap: 6px; padding: 11px 10px; }
  .day-weather small { display: none; }
}
