:root {
  --font-ui: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Display", system-ui, sans-serif;

  --text-primary: rgba(255, 255, 255, 1);
  --text-secondary: rgba(255, 255, 255, 0.88);
  --text-tertiary: rgba(255, 255, 255, 0.70);

  --glass-bg: rgba(255, 255, 255, 0.12);
  --glass-bg-strong: rgba(255, 255, 255, 0.16);
  --glass-stroke: rgba(255, 255, 255, 0.2);
  --glass-stroke-strong: rgba(255, 255, 255, 0.25);

  --shadow-lg:
    0 40px 100px rgba(0, 0, 0, 0.24),
    0 12px 30px rgba(0, 0, 0, 0.16);
  --shadow-card:
    0 18px 44px rgba(0, 0, 0, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);

  --radius-xl: 34px;
  --radius-lg: 28px;
  --radius-md: 22px;
  --radius-pill: 999px;

  --bg-1: #08142b;
  --bg-2: #132a52;
  --bg-3: #1d4274;
  --bg-4: #33619e;

  --accent-blue: #b3d8ff;
  --accent-cyan: #d4ecff;
  --accent-sun: #ffe38d;

  --motion-fast: 220ms cubic-bezier(0.22, 1, 0.36, 1);
  --motion-base: 420ms cubic-bezier(0.22, 1, 0.36, 1);
  --motion-slow: 900ms cubic-bezier(0.22, 1, 0.36, 1);

  --parallax-x: 0px;
  --parallax-y: 0px;
}

* {
  box-sizing: border-box;
}

html {
  height: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100%;
  font-family: var(--font-ui);
  color: var(--text-primary);
  overflow-y: auto;
  overflow-x: hidden;
  background:
    radial-gradient(
      1200px 800px at 15% 8%,
      rgba(131, 180, 255, 0.18),
      transparent 42%
    ),
    radial-gradient(
      1000px 700px at 86% 16%,
      rgba(90, 130, 255, 0.2),
      transparent 40%
    ),
    linear-gradient(
      180deg,
      #060b15 0%,
      #081225 24%,
      #0b1730 58%,
      #0b1832 100%
    );
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.04),
      rgba(255, 255, 255, 0.01) 22%,
      transparent 54%
    );
  z-index: 0;
}

.app {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: 100vh;
  overflow: visible;
  background:
    radial-gradient(
      900px 520px at 50% -8%,
      rgba(188, 225, 255, 0.16),
      transparent 56%
    ),
    radial-gradient(
      560px 320px at 82% 10%,
      rgba(106, 164, 255, 0.18),
      transparent 50%
    ),
    linear-gradient(
      180deg,
      var(--bg-1) 0%,
      var(--bg-2) 22%,
      var(--bg-3) 62%,
      var(--bg-4) 100%
    );
  transition: background var(--motion-slow);
}

.app.theme-rain {
  --bg-1: #071224;
  --bg-2: #10203f;
  --bg-3: #18355f;
  --bg-4: #29517f;
}

.app.theme-night {
  --bg-1: #050d1a;
  --bg-2: #0b1730;
  --bg-3: #12284b;
  --bg-4: #173864;
}

.app.theme-sunny {
  --bg-1: #2E79C1;
  --bg-2: #4A96D4;
  --bg-3: #65AFE3;
  --bg-4: #7BC5F0;
}

.app.theme-cloudy {
  --bg-1: #385a7b;
  --bg-2: #52779a;
  --bg-3: #6d90b1;
  --bg-4: #84a7c4;
}

.bg-scene {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.sky-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      760px 400px at 50% 14%,
      rgba(255, 255, 255, 0.12),
      transparent 58%
    ),
    radial-gradient(
      320px 220px at 80% 11%,
      rgba(186, 223, 255, 0.18),
      transparent 58%
    );
  transform:
    translate3d(
      calc(var(--parallax-x) * 0.25),
      calc(var(--parallax-y) * 0.25),
      0
    );
  transition: transform var(--motion-slow);
  mix-blend-mode: screen;
}

.sun {
  position: absolute;
  top: 88px;
  right: 120px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background:
    radial-gradient(
      circle at 50% 50%,
      rgba(255, 247, 197, 0.98) 0%,
      rgba(255, 227, 134, 0.96) 38%,
      rgba(255, 216, 96, 0.42) 58%,
      rgba(255, 216, 96, 0) 80%
    );
  opacity: 0;
  transform:
    translate3d(
      calc(var(--parallax-x) * 0.34),
      calc(var(--parallax-y) * 0.2),
      0
    )
    scale(0.94);
  transition:
    opacity var(--motion-slow),
    transform var(--motion-slow);
  animation: sunPulse 8s ease-in-out infinite;
}

.app.theme-sunny .sun {
  opacity: 1;
  transform:
    translate3d(
      calc(var(--parallax-x) * 0.34),
      calc(var(--parallax-y) * 0.2),
      0
    )
    scale(1);
}

.moon {
  position: absolute;
  top: 88px;
  right: 126px;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background:
    radial-gradient(
      circle at 34% 36%,
      rgba(255, 255, 255, 0.96) 0%,
      rgba(216, 231, 255, 0.92) 42%,
      rgba(216, 231, 255, 0.14) 70%,
      transparent 86%
    );
  box-shadow:
    0 0 50px rgba(182, 216, 255, 0.16),
    0 0 100px rgba(182, 216, 255, 0.08);
  opacity: 0;
  transform:
    translate3d(
      calc(var(--parallax-x) * 0.22),
      calc(var(--parallax-y) * 0.16),
      0
    )
    scale(0.95);
  transition:
    opacity var(--motion-slow),
    transform var(--motion-slow);
}

.moon::after {
  content: "";
  position: absolute;
  top: 16px;
  left: 22px;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: rgba(8, 18, 34, 0.96);
}

.app.theme-night .moon {
  opacity: 1;
  transform:
    translate3d(
      calc(var(--parallax-x) * 0.22),
      calc(var(--parallax-y) * 0.16),
      0
    )
    scale(1);
}

.stars {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity var(--motion-slow);
}

.app.theme-night .stars {
  opacity: 0.8;
}

.star {
  position: absolute;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  box-shadow:
    0 0 6px rgba(255, 255, 255, 0.6),
    0 0 14px rgba(165, 203, 255, 0.24);
  animation: twinkle 5.2s ease-in-out infinite;
}

.star:nth-child(1) { top: 96px; left: 10%; animation-delay: 0.2s; }
.star:nth-child(2) { top: 128px; left: 18%; animation-delay: 1.1s; }
.star:nth-child(3) { top: 76px; left: 28%; animation-delay: 2.2s; }
.star:nth-child(4) { top: 140px; left: 42%; animation-delay: 0.9s; }
.star:nth-child(5) { top: 80px; left: 58%; animation-delay: 2.8s; }
.star:nth-child(6) { top: 130px; left: 72%; animation-delay: 1.8s; }
.star:nth-child(7) { top: 94px; left: 84%; animation-delay: 3.3s; }
.star:nth-child(8) { top: 174px; left: 64%; animation-delay: 1.4s; }

.cloud-layer {
  position: absolute;
  inset: 0;
  overflow: hidden;
  opacity: 0.95;
}

.cloud {
  position: absolute;
  border-radius: 999px;
  background:
    radial-gradient(
      circle at 30% 35%,
      rgba(255, 255, 255, 0.34),
      rgba(255, 255, 255, 0.18) 40%,
      rgba(255, 255, 255, 0.06) 70%,
      transparent 84%
    );
  filter: blur(14px);
  mix-blend-mode: screen;
  transform:
    translate3d(
      calc(var(--parallax-x) * 0.16),
      calc(var(--parallax-y) * 0.1),
      0
    );
}

.cloud.c1 {
  top: 86px;
  left: -5%;
  width: 380px;
  height: 150px;
  opacity: 0.56;
  animation: cloudDriftA 30s linear infinite;
}

.cloud.c2 {
  top: 160px;
  right: -4%;
  width: 460px;
  height: 170px;
  opacity: 0.45;
  animation: cloudDriftB 36s linear infinite;
}

.cloud.c3 {
  top: 250px;
  left: 18%;
  width: 340px;
  height: 130px;
  opacity: 0.28;
  animation: cloudDriftC 42s linear infinite;
}

.rain-layer {
  position: absolute;
  inset: -8% 0 0;
  overflow: hidden;
  opacity: 0;
  transition: opacity var(--motion-slow);
  mask-image: linear-gradient(
    180deg,
    rgba(0, 0, 0, 1),
    rgba(0, 0, 0, 0.94) 68%,
    rgba(0, 0, 0, 0.26) 92%,
    transparent 100%
  );
}

.app.theme-rain .rain-layer {
  opacity: 0.92;
}

.rain-drop {
  position: absolute;
  width: 1.8px;
  height: 30px;
  border-radius: 999px;
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0),
      rgba(215, 235, 255, 0.82),
      rgba(255, 255, 255, 0.12)
    );
  transform: rotate(8deg);
  animation: rainfall linear infinite;
}

.mist {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -20px;
  height: 240px;
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0),
      rgba(255, 255, 255, 0.04) 30%,
      rgba(255, 255, 255, 0.08) 60%,
      rgba(255, 255, 255, 0.02) 100%
    );
  filter: blur(28px);
  opacity: 0.52;
  transform:
    translate3d(
      calc(var(--parallax-x) * -0.1),
      calc(var(--parallax-y) * -0.06),
      0
    );
}

.main-layout {
  width: 100%;
  max-width: 1800px;
  margin: 0 auto;
  min-height: 100vh;
  padding: 56px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
  position: relative;
  z-index: 2;
}

.glass-panel {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.15),
      rgba(255, 255, 255, 0.08)
    );
  border: 1px solid var(--glass-stroke);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(32px) saturate(150%);
  -webkit-backdrop-filter: blur(32px) saturate(150%);
}

.glass-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.05),
      rgba(255, 255, 255, 0.015) 40%,
      transparent 80%
    );
  pointer-events: none;
}

.glass-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  pointer-events: none;
}

.left-panel {
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 48px;
  min-width: 0;
}

.topbar {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.searchbox {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 84px;
  padding: 0 32px;
  border-radius: var(--radius-pill);
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.14),
      rgba(255, 255, 255, 0.08)
    );
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow:
    0 12px 24px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(32px) saturate(150%);
  -webkit-backdrop-filter: blur(32px) saturate(150%);
}

.searchbox input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 30px;
  letter-spacing: -0.01em;
}

.searchbox input::placeholder {
  color: var(--text-tertiary);
}

.action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 84px;
  min-height: 84px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.14),
      rgba(255, 255, 255, 0.07)
    );
  box-shadow:
    0 12px 24px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  cursor: pointer;
  transition:
    transform var(--motion-fast),
    border-color var(--motion-fast),
    background var(--motion-fast);
  backdrop-filter: blur(32px) saturate(150%);
  -webkit-backdrop-filter: blur(32px) saturate(150%);
}

.action-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.22);
}

.hero {
  position: relative;
  padding-top: 28px;
  padding-bottom: 26px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transform:
    translate3d(
      calc(var(--parallax-x) * 0.08),
      calc(var(--parallax-y) * 0.06),
      0
    );
  transition: transform var(--motion-slow);
}

.hero-location {
  order: 2;
  font-size: clamp(48px, 4vw, 68px);
  line-height: 1;
  letter-spacing: 0;
  font-weight: 400;
  margin: 4px 0 0 0;
}

.hero-subtitle {
  order: 1;
  margin-top: 0;
  font-size: 30px;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  text-transform: uppercase;
  font-weight: 600;
}

.hero-temp {
  order: 3;
  margin-top: 8px;
  font-size: clamp(160px, 14vw, 240px);
  line-height: 0.88;
  letter-spacing: -0.05em;
  font-weight: 200;
  font-optical-sizing: auto;
  text-shadow: none;
}

.hero-condition {
  order: 4;
  margin-top: 12px;
  font-size: 44px;
  letter-spacing: -0.02em;
  color: var(--text-secondary);
  font-weight: 500;
}

.hero-minmax {
  order: 5;
  margin-top: 8px;
  font-size: 30px;
  color: var(--text-secondary);
  letter-spacing: 0;
}

.hero-minmax strong {
  color: var(--text-primary);
  font-weight: 500;
}

.content-stack {
  display: flex;
  flex-direction: column;
  gap: 48px;
  min-height: 0;
}

.card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: rgba(0, 0, 0, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: none;
  backdrop-filter: blur(28px) saturate(120%);
  -webkit-backdrop-filter: blur(28px) saturate(120%);
}

.card::before {
  display: none;
}

.card-body {
  position: relative;
  padding: 38px 38px 32px;
  z-index: 1;
}

.section-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  color: var(--text-tertiary);
  text-transform: uppercase;
  font-size: 18px;
  font-weight: 650;
  letter-spacing: 0.09em;
}

.precip-title {
  font-size: 32px;
  letter-spacing: -0.03em;
  margin: 0 0 24px;
}

.precip-chart {
  position: relative;
  padding-top: 12px;
  padding-bottom: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.precip-grid-line {
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
}

.precip-grid-line.l1 { top: 30px; }
.precip-grid-line.l2 { top: 62px; }
.precip-grid-line.l3 { top: 94px; }

.precip-bars {
  position: relative;
  height: 112px;
  display: flex;
  align-items: flex-end;
  gap: 4px;
}

.precip-bar {
  flex: 1;
  min-width: 4px;
  border-radius: 999px 999px 6px 6px;
  background:
    linear-gradient(
      180deg,
      rgba(162, 210, 255, 0.96),
      rgba(214, 235, 255, 0.84)
    );
  box-shadow: 0 1px 8px rgba(176, 214, 255, 0.16);
  animation: barBreathe 4.8s ease-in-out infinite;
  transform-origin: bottom center;
}

.precip-axis {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  margin-top: 18px;
  font-size: 20px;
  color: var(--text-tertiary);
}

.precip-axis span:first-child {
  color: var(--text-primary);
  font-weight: 700;
}

.precip-summary {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
  font-size: 24px;
  line-height: 1.35;
  letter-spacing: -0.02em;
}

.bottom-grid {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.hourly-card,
.daily-card {
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.scroll-container {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
}

.scroll-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.3s ease;
  pointer-events: none;
}

.scroll-container:hover .scroll-arrow {
  opacity: 1;
  pointer-events: auto;
}

.scroll-arrow:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-50%) scale(1.1);
}

.scroll-arrow.prev { left: 8px; }
.scroll-arrow.next { right: 8px; }

.hourly-scroll {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(110px, 1fr);
  gap: 0;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  padding-bottom: 4px;
  scroll-behavior: smooth;
}

.hourly-scroll::-webkit-scrollbar {
  display: none;
}

.hour-item {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 16px 14px 18px;
}

.hour-item:first-child {
  padding-left: 24px;
}

.hour-time {
  font-size: 22px;
  color: var(--text-secondary);
  font-weight: 560;
  letter-spacing: -0.02em;
}

.hour-item.now .hour-time {
  color: var(--text-primary);
  font-weight: 700;
}

.hour-pop {
  min-height: 20px;
  font-size: 20px;
  color: var(--accent-cyan);
  font-weight: 650;
}

.hour-temp {
  font-size: 34px;
  letter-spacing: -0.05em;
  font-weight: 430;
}

.daily-list {
  display: grid;
  gap: 0;
}

.day-row {
  display: grid;
  grid-template-columns: 1.15fr 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 32px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.day-row:last-child {
  border-bottom: none;
  padding-bottom: 2px;
}

.day-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.day-name {
  min-width: 150px;
  font-size: 26px;
  letter-spacing: -0.025em;
}

.day-pop {
  font-size: 20px;
  color: var(--accent-cyan);
  font-weight: 650;
}

.day-range {
  position: relative;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}

.day-range-fill {
  position: absolute;
  top: 0;
  bottom: 0;
  border-radius: inherit;
  background:
    linear-gradient(
      90deg,
      rgba(132, 183, 255, 0.96),
      rgba(216, 235, 255, 0.92)
    );
  box-shadow: 0 0 12px rgba(167, 209, 255, 0.22);
}

.day-temps {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 28px;
  letter-spacing: -0.03em;
}

.day-min {
  width: 18px;
  text-align: right;
  color: var(--text-tertiary);
}

.day-max {
  width: 22px;
  text-align: right;
  color: var(--text-primary);
  font-weight: 600;
}

.right-panel {
  display: flex;
  flex-direction: column;
  gap: 48px;
  min-width: 0;
  margin-top: 160px; /* Align with precipitation card height dynamically */
}

.overview-card {
  padding: 48px;
  min-height: 280px;
  display: grid;
  align-content: start;
  gap: 20px;
}

.overview-title {
  font-size: 20px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-tertiary);
  font-weight: 650;
}

.overview-city {
  font-size: clamp(60px, 5vw, 90px);
  line-height: 1;
  letter-spacing: -0.055em;
  font-weight: 600;
}

.overview-condition {
  font-size: 32px;
  color: var(--text-secondary);
  letter-spacing: -0.03em;
}

.overview-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-height: 64px;
  padding: 0 24px;
  border-radius: var(--radius-pill);
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.12),
      rgba(255, 255, 255, 0.06)
    );
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 24px;
  color: var(--text-secondary);
}

.chip strong {
  color: var(--text-primary);
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  min-height: 0;
}

.metric-card {
  padding: 40px;
  display: grid;
  align-content: start;
  gap: 18px;
}

.metric-top {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--text-tertiary);
  text-transform: uppercase;
  font-size: 18px;
  font-weight: 650;
  letter-spacing: 0.08em;
}

.metric-value {
  font-size: 72px;
  line-height: 0.95;
  letter-spacing: -0.04em;
  font-weight: 450;
}

.metric-sub {
  font-size: 26px;
  line-height: 1.34;
  color: var(--text-secondary);
  letter-spacing: -0.02em;
}

.metric-foot {
  margin-top: auto;
  font-size: 20px;
  color: var(--text-tertiary);
}

.meter {
  position: relative;
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}

.meter-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 50%;
  border-radius: inherit;
}

.humidity-fill {
  background:
    linear-gradient(
      90deg,
      rgba(118, 186, 255, 0.96),
      rgba(196, 225, 255, 0.96)
    );
}

.uv-fill {
  background:
    linear-gradient(
      90deg,
      #78c8ff,
      #9ddcff 28%,
      #ffe57b 58%,
      #ffb25c 80%,
      #ff7272
    );
}

.pressure-fill {
  background:
    linear-gradient(
      90deg,
      rgba(146, 179, 255, 0.9),
      rgba(225, 236, 255, 0.94)
    );
}

.visibility-fill {
  background:
    linear-gradient(
      90deg,
      rgba(171, 222, 255, 0.72),
      rgba(255, 255, 255, 0.92)
    );
}

.wind-visual {
  position: relative;
  width: 66px;
  height: 66px;
  margin-top: 2px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background:
    radial-gradient(
      circle at 50% 50%,
      rgba(255, 255, 255, 0.08),
      rgba(255, 255, 255, 0.025)
    );
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.wind-visual::before,
.wind-visual::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  background: rgba(255, 255, 255, 0.08);
  transform: translate(-50%, -50%);
  border-radius: 999px;
}

.wind-visual::before {
  width: 1px;
  height: 52px;
}

.wind-visual::after {
  width: 52px;
  height: 1px;
}

.wind-arrow {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 2px;
  height: 24px;
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.98),
      rgba(189, 221, 255, 0.56)
    );
  border-radius: 999px;
  transform-origin: center 20px;
}

.wind-arrow::before {
  content: "";
  position: absolute;
  top: -6px;
  left: 50%;
  width: 10px;
  height: 10px;
  transform: translateX(-50%) rotate(45deg);
  border-top: 2px solid rgba(255, 255, 255, 0.94);
  border-left: 2px solid rgba(255, 255, 255, 0.94);
  box-sizing: border-box;
}

.footer-note {
  position: absolute;
  right: 32px;
  bottom: 28px;
  color: rgba(255, 255, 255, 0.36);
  font-size: 15px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.icon-weather,
.icon-s,
.icon-xs {
  display: block;
}

.icon-s {
  width: 24px;
  height: 24px;
}

.icon-xs {
  width: 18px;
  height: 18px;
}

@keyframes sunPulse {
  0%, 100% {
    transform:
      translate3d(
        calc(var(--parallax-x) * 0.34),
        calc(var(--parallax-y) * 0.2),
        0
      )
      scale(1);
  }
  50% {
    transform:
      translate3d(
        calc(var(--parallax-x) * 0.34),
        calc(var(--parallax-y) * 0.2),
        0
      )
      scale(1.05);
  }
}

@keyframes twinkle {
  0%, 100% { opacity: 0.35; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.5); }
}

@keyframes rainfall {
  0% {
    transform: translate3d(0, -14vh, 0) rotate(8deg);
    opacity: 0;
  }
  8% {
    opacity: 0.56;
  }
  100% {
    transform: translate3d(-18px, 120vh, 0) rotate(8deg);
    opacity: 0;
  }
}

@keyframes cloudDriftA {
  0% { transform: translateX(-24px); }
  50% { transform: translateX(24px); }
  100% { transform: translateX(-24px); }
}

@keyframes cloudDriftB {
  0% { transform: translateX(0); }
  50% { transform: translateX(-38px); }
  100% { transform: translateX(0); }
}

@keyframes cloudDriftC {
  0% { transform: translateX(0); }
  50% { transform: translateX(18px); }
  100% { transform: translateX(0); }
}

@keyframes barBreathe {
  0%, 100% { transform: scaleY(1); }
  50% { transform: scaleY(0.96); }
}

@media (max-width: 1280px) {
  .main-layout {
    grid-template-columns: 1fr;
    overflow-y: auto;
  }

  .right-panel,
  .left-panel {
    min-height: auto;
  }

  .bottom-grid {
    grid-template-columns: 1fr;
  }

  body {
    overflow: auto;
  }

  .app {
    min-height: 100vh;
    height: auto;
  }
}

@media (max-width: 760px) {
  .main-layout {
    padding: 16px;
    gap: 16px;
  }

  .left-panel {
    padding: 18px;
  }

  .hero-temp {
    font-size: 92px;
  }

  .metrics-grid {
    grid-template-columns: 1fr;
  }

  .bottom-grid {
    gap: 16px;
  }

  .day-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .day-left {
    justify-content: space-between;
  }
}

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