:root {
  color-scheme: dark;
  --bg: #07101c;
  --bg-deep: #040a12;
  --panel: rgba(16, 29, 45, 0.78);
  --panel-solid: #101d2d;
  --panel-light: rgba(255, 255, 255, 0.055);
  --line: rgba(255, 255, 255, 0.095);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #f5f8fc;
  --muted: #91a0b4;
  --muted-strong: #b9c4d2;
  --lime: #b9ff66;
  --lime-deep: #8ee43d;
  --cyan: #63d7ff;
  --violet: #8878ff;
  --amber: #ffc866;
  --danger: #ff7a8a;
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
  --font: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 50% -20%, rgba(58, 92, 124, 0.22), transparent 38%),
    linear-gradient(180deg, var(--bg), var(--bg-deep));
  color: var(--text);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.ambient {
  position: fixed;
  z-index: -1;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  filter: blur(110px);
  opacity: 0.09;
  pointer-events: none;
  will-change: transform, opacity;
}

.ambient-one {
  top: 18%;
  left: -260px;
  background: var(--cyan);
  animation: ambientOne 16s ease-in-out infinite;
}

.ambient-two {
  right: -250px;
  bottom: 18%;
  background: var(--violet);
  animation: ambientTwo 19s ease-in-out infinite;
}

.app-shell {
  width: min(1440px, calc(100% - 44px));
  margin: 0 auto;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 92px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(185, 255, 102, 0.35);
  border-radius: 14px;
  background: rgba(185, 255, 102, 0.08);
  box-shadow: inset 0 0 24px rgba(185, 255, 102, 0.04);
}

.brand-mark svg {
  width: 25px;
  fill: none;
  stroke: var(--lime);
  stroke-linecap: round;
  stroke-width: 1.8;
}

.brand:hover .brand-mark svg {
  animation: brandOrbit 900ms cubic-bezier(0.22, 1, 0.36, 1);
}

.brand > span:last-child {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand strong {
  font-size: 16px;
  letter-spacing: 0.19em;
}

.brand small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.29em;
}

.top-actions,
.api-link,
.unit-toggle {
  display: flex;
  align-items: center;
}

.top-actions {
  gap: 10px;
}

.protocol-pill {
  display: flex;
  min-height: 42px;
  align-items: center;
  gap: 9px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.025);
  transition: border-color 220ms ease, background 220ms ease, transform 220ms ease;
}

.protocol-pill:hover {
  transform: translateY(-1px);
}

.protocol-pill > span:last-child {
  display: flex;
  min-width: 55px;
  flex-direction: column;
}

.protocol-pill strong {
  color: var(--muted-strong);
  font-size: 9px;
  letter-spacing: 0.08em;
  line-height: 1.1;
}

.protocol-pill small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 8px;
  line-height: 1.1;
  white-space: nowrap;
}

.protocol-pill.h3 {
  border-color: rgba(185, 255, 102, 0.28);
  background: rgba(185, 255, 102, 0.055);
}

.protocol-pill.h3 strong {
  color: var(--lime);
}

.protocol-pill.fallback {
  border-color: rgba(255, 200, 102, 0.22);
}

.protocol-signal {
  display: flex;
  height: 16px;
  align-items: flex-end;
  gap: 2px;
}

.protocol-signal i {
  width: 3px;
  border-radius: 3px;
  background: var(--muted);
  transform-origin: bottom;
}

.protocol-signal i:nth-child(1) { height: 5px; }
.protocol-signal i:nth-child(2) { height: 9px; animation-delay: 120ms; }
.protocol-signal i:nth-child(3) { height: 14px; animation-delay: 240ms; }

.protocol-pill.checking .protocol-signal i {
  animation: signalSearch 1s ease-in-out infinite alternate;
}

.protocol-pill.h3 .protocol-signal i {
  background: var(--lime);
  box-shadow: 0 0 8px rgba(185, 255, 102, 0.45);
  animation: signalLive 2.2s ease-in-out infinite;
}

.protocol-pill.fallback .protocol-signal i {
  background: var(--amber);
}

.api-link {
  gap: 8px;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 13px;
  color: var(--muted-strong);
  font-size: 13px;
  transition: 180ms ease;
}

.api-link:hover {
  border-color: var(--line-strong);
  background: var(--panel-light);
  color: var(--text);
}

.live-dot,
.pulse-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 4px rgba(185, 255, 102, 0.09), 0 0 16px rgba(185, 255, 102, 0.7);
}

.unit-toggle {
  position: relative;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.025);
  cursor: pointer;
}

.unit-option {
  display: grid;
  width: 39px;
  height: 34px;
  place-items: center;
  border-radius: 9px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  transition: 180ms ease;
}

.unit-option.active {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.15);
}

.hero-card {
  position: relative;
  min-height: 550px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 78% 48%, rgba(185, 255, 102, 0.12), transparent 22%),
    linear-gradient(120deg, rgba(24, 43, 64, 0.96), rgba(12, 23, 38, 0.98));
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  isolation: isolate;
  transition: background 600ms ease;
}

.hero-card::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(90deg, black, transparent 80%);
  content: "";
}

.hero-card::after {
  position: absolute;
  z-index: 4;
  top: -30%;
  bottom: -30%;
  left: -34%;
  width: 18%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.045), transparent);
  content: "";
  pointer-events: none;
  transform: rotate(17deg);
  animation: heroSheen 11s ease-in-out infinite;
}

.hero-card.weather-cloud {
  background:
    radial-gradient(circle at 79% 43%, rgba(151, 174, 202, 0.16), transparent 27%),
    linear-gradient(120deg, rgba(31, 47, 66, 0.98), rgba(15, 27, 42, 0.98));
}

.hero-card.weather-rain,
.hero-card.weather-storm {
  background:
    radial-gradient(circle at 80% 42%, rgba(99, 215, 255, 0.1), transparent 27%),
    linear-gradient(120deg, rgba(22, 40, 59, 0.98), rgba(9, 20, 33, 0.99));
}

.hero-card.weather-snow {
  background:
    radial-gradient(circle at 80% 42%, rgba(220, 244, 255, 0.16), transparent 28%),
    linear-gradient(120deg, rgba(35, 55, 73, 0.98), rgba(14, 27, 42, 0.99));
}

.hero-card.weather-night {
  background:
    radial-gradient(circle at 78% 38%, rgba(136, 120, 255, 0.17), transparent 22%),
    linear-gradient(120deg, rgba(20, 29, 55, 0.99), rgba(8, 16, 31, 0.99));
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.16fr) minmax(380px, 0.84fr);
  min-height: 550px;
}

.hero-copy {
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px 40px 42px 54px;
}

.eyebrow-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(630px, 100%);
  margin-bottom: 33px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--lime);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.pulse-dot {
  width: 6px;
  height: 6px;
  animation: pulse 2s ease-in-out infinite;
}

.updated {
  color: var(--muted);
  font-size: 12px;
}

.location-heading p {
  margin: 0;
  color: var(--muted-strong);
  font-size: 13px;
  letter-spacing: 0.04em;
}

.location-heading h1 {
  max-width: 720px;
  margin: 7px 0 0;
  overflow: hidden;
  font-size: clamp(34px, 4vw, 57px);
  font-weight: 620;
  letter-spacing: -0.045em;
  line-height: 1.05;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.location-heading .local-clock {
  display: inline-block;
  margin: 10px 0 0;
  color: var(--lime);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.12em;
}

.current-reading {
  display: flex;
  align-items: center;
  gap: 27px;
  margin: 25px 0 32px;
}

.temperature {
  display: flex;
  align-items: flex-start;
  font-size: clamp(72px, 8vw, 110px);
  font-variant-numeric: tabular-nums;
  font-weight: 300;
  letter-spacing: -0.075em;
  line-height: 0.88;
}

.temperature sup {
  margin: 7px 0 0 7px;
  color: var(--lime);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0;
}

.condition-block {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding-left: 26px;
  border-left: 1px solid var(--line-strong);
}

.condition-block strong {
  font-size: 18px;
  font-weight: 650;
}

.condition-block span {
  color: var(--muted);
  font-size: 13px;
}

.condition-block b {
  color: var(--muted-strong);
  font-weight: 600;
}

.search {
  position: relative;
  display: flex;
  align-items: center;
  width: min(630px, 100%);
  min-height: 57px;
  padding: 6px 6px 6px 18px;
  border: 1px solid var(--line-strong);
  border-radius: 17px;
  background: rgba(5, 13, 23, 0.48);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
  backdrop-filter: blur(14px);
}

.search:focus-within {
  border-color: rgba(185, 255, 102, 0.46);
  box-shadow: 0 0 0 4px rgba(185, 255, 102, 0.06);
}

.search > svg {
  flex: 0 0 auto;
  width: 20px;
  fill: none;
  stroke: var(--muted);
  stroke-linecap: round;
  stroke-width: 1.7;
}

.search input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  padding: 0 13px;
  background: transparent;
  color: var(--text);
  font-size: 16px;
}

.search input::placeholder {
  color: #76869b;
}

.locate-button,
.search-button {
  border: 0;
  cursor: pointer;
}

.locate-button {
  display: grid;
  width: 41px;
  height: 41px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 11px;
  background: transparent;
  color: var(--muted);
  transition: 180ms ease;
}

.locate-button:hover {
  background: var(--panel-light);
  color: var(--text);
}

.locate-button.attention {
  background: rgba(185, 255, 102, 0.1);
  color: var(--lime);
  box-shadow: 0 0 0 1px rgba(185, 255, 102, 0.2), 0 0 22px rgba(185, 255, 102, 0.12);
  animation: locateAttention 1.8s ease-in-out infinite;
}

.locate-button[aria-busy="true"] {
  background: rgba(105, 224, 255, 0.08);
  color: var(--cyan);
}

.locate-button[aria-busy="true"] svg {
  animation: brandOrbit 1.2s linear infinite;
}

.locate-button svg {
  width: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
}

@keyframes locateAttention {
  0%,
  100% {
    box-shadow: 0 0 0 1px rgba(185, 255, 102, 0.18), 0 0 16px rgba(185, 255, 102, 0.08);
  }
  50% {
    box-shadow: 0 0 0 4px rgba(185, 255, 102, 0.08), 0 0 28px rgba(185, 255, 102, 0.2);
  }
}

.search-button {
  min-height: 43px;
  padding: 0 18px;
  border-radius: 11px;
  background: var(--lime);
  color: #13200d;
  font-size: 13px;
  font-weight: 750;
  transition: 180ms ease;
}

.search-button:hover {
  background: #c8ff87;
  transform: translateY(-1px);
}

.suggestions {
  position: fixed;
  z-index: 1000;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 7px;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: rgba(10, 21, 34, 0.98);
  box-shadow: 0 24px 55px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(18px);
  scrollbar-color: rgba(185, 255, 102, 0.35) transparent;
  scrollbar-width: thin;
}

.suggestion {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 11px 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.suggestion:hover,
.suggestion:focus-visible {
  outline: 0;
  background: rgba(255, 255, 255, 0.07);
}

.suggestion strong,
.suggestion span {
  display: block;
}

.suggestion strong {
  font-size: 13px;
}

.suggestion span,
.suggestion small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
}

.suggestion small {
  flex: 0 0 auto;
}

.quick-cities {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 15px;
  color: var(--muted);
  font-size: 11px;
}

.quick-cities span {
  margin-right: 2px;
}

.quick-cities button {
  padding: 5px 9px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--muted-strong);
  font-size: 11px;
  cursor: pointer;
}

.quick-cities button:hover {
  border-color: var(--line);
  background: var(--panel-light);
  color: var(--text);
}

.recent-searches {
  width: min(630px, 100%);
  margin-top: 12px;
}

.recent-searches[hidden] {
  display: none;
}

.recent-searches-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 10px;
}

.recent-searches-head button {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 10px;
  cursor: pointer;
}

.recent-searches-head button:hover {
  color: var(--text);
}

.recent-searches-list {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding: 1px 1px 7px;
  scrollbar-color: rgba(185, 255, 102, 0.24) transparent;
  scrollbar-width: thin;
}

.history-chip {
  display: flex;
  min-width: max-content;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.025);
  color: var(--muted-strong);
  font-size: 10px;
  cursor: pointer;
  transition: 160ms ease;
}

.history-chip::before {
  color: var(--lime);
  content: "↺";
}

.history-chip small {
  max-width: 120px;
  overflow: hidden;
  color: var(--muted);
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.history-chip:hover {
  border-color: rgba(185, 255, 102, 0.2);
  background: rgba(185, 255, 102, 0.06);
  color: var(--text);
}

.weather-stage {
  position: relative;
  min-height: 100%;
  overflow: hidden;
  transform-style: preserve-3d;
  transition: transform 280ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.weather-stage::before {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 350px;
  height: 350px;
  border: 1px solid rgba(255, 255, 255, 0.045);
  border-radius: 50%;
  content: "";
  transform: translate(-50%, -50%);
}

.stage-orbit {
  position: absolute;
  top: 50%;
  left: 50%;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.orbit-one {
  width: 455px;
  height: 455px;
}

.orbit-two {
  width: 545px;
  height: 545px;
  border-style: dashed;
  opacity: 0.45;
  animation: rotate 70s linear infinite;
}

.sun-orb,
.moon-orb {
  position: absolute;
  top: 135px;
  left: 50%;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  transform: translateX(-40%);
  transition: 500ms ease;
}

.sun-orb {
  background: radial-gradient(circle at 37% 32%, #eaffbd, var(--lime) 43%, #89d83c 75%);
  box-shadow:
    0 0 75px rgba(185, 255, 102, 0.38),
    0 0 160px rgba(185, 255, 102, 0.13),
    inset -20px -20px 40px rgba(72, 113, 31, 0.22);
  animation: sunBreathe 5.5s ease-in-out infinite;
}

.moon-orb {
  display: none;
  background: radial-gradient(circle at 38% 32%, #faf7ff, #c7cdf5 52%, #7c82b6 100%);
  box-shadow: 0 0 80px rgba(157, 167, 255, 0.25);
  animation: moonBreathe 6.5s ease-in-out infinite;
}

.weather-night .sun-orb {
  display: none;
}

.weather-night .moon-orb {
  display: block;
}

.cloud {
  position: absolute;
  top: 255px;
  left: 50%;
  width: 255px;
  height: 76px;
  border-radius: 54px;
  background: linear-gradient(180deg, #f8fbff, #aebdce);
  filter: drop-shadow(0 22px 25px rgba(0, 0, 0, 0.19));
  opacity: 0;
  transform: translateX(-30%);
  transition: opacity 500ms ease;
}

.cloud-front {
  animation: cloudFloat 7s ease-in-out infinite;
}

.particle-field,
.wind-streams {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.particle-field i {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(225, 245, 255, 0.75);
  box-shadow: 0 0 9px rgba(185, 255, 102, 0.4);
  opacity: 0;
  animation: particleDrift 7s linear infinite;
}

.particle-field i:nth-child(1) { left: 12%; top: 18%; animation-delay: -1s; }
.particle-field i:nth-child(2) { left: 27%; top: 68%; animation-delay: -4.7s; scale: 0.7; }
.particle-field i:nth-child(3) { left: 41%; top: 13%; animation-delay: -2.4s; scale: 1.4; }
.particle-field i:nth-child(4) { left: 55%; top: 78%; animation-delay: -5.1s; }
.particle-field i:nth-child(5) { left: 68%; top: 22%; animation-delay: -3.2s; scale: 0.65; }
.particle-field i:nth-child(6) { left: 82%; top: 61%; animation-delay: -0.8s; }
.particle-field i:nth-child(7) { left: 91%; top: 30%; animation-delay: -6.2s; scale: 1.2; }
.particle-field i:nth-child(8) { left: 18%; top: 86%; animation-delay: -2.8s; }
.particle-field i:nth-child(9) { left: 35%; top: 45%; animation-delay: -5.8s; scale: 0.6; }
.particle-field i:nth-child(10) { left: 61%; top: 53%; animation-delay: -1.7s; }
.particle-field i:nth-child(11) { left: 74%; top: 88%; animation-delay: -4s; scale: 1.35; }
.particle-field i:nth-child(12) { left: 95%; top: 82%; animation-delay: -3.8s; }

.wind-streams {
  opacity: 0.18;
  mask-image: linear-gradient(90deg, transparent, black 20%, black 80%, transparent);
}

.wind-streams i {
  position: absolute;
  right: -25%;
  width: 150px;
  height: 1px;
  border-radius: 50%;
  background: linear-gradient(90deg, transparent, rgba(185, 255, 102, 0.78), transparent);
  animation: windStream 6s linear infinite;
}

.wind-streams i:nth-child(1) { top: 31%; }
.wind-streams i:nth-child(2) {
  top: 58%;
  width: 220px;
  animation-delay: -2s;
  animation-duration: 7.8s;
}
.wind-streams i:nth-child(3) {
  top: 77%;
  width: 110px;
  animation-delay: -4.3s;
  animation-duration: 5.4s;
}

.cloud::before,
.cloud::after {
  position: absolute;
  bottom: 24px;
  border-radius: 50%;
  background: inherit;
  content: "";
}

.cloud::before {
  left: 45px;
  width: 88px;
  height: 88px;
}

.cloud::after {
  right: 36px;
  width: 112px;
  height: 112px;
}

.cloud-back {
  top: 212px;
  left: 43%;
  opacity: 0;
  scale: 0.72;
  filter: blur(1px);
}

.weather-cloud .cloud,
.weather-rain .cloud,
.weather-snow .cloud,
.weather-storm .cloud {
  opacity: 1;
}

.weather-cloud .cloud-back,
.weather-rain .cloud-back,
.weather-snow .cloud-back,
.weather-storm .cloud-back {
  opacity: 0.42;
}

.weather-cloud .sun-orb {
  transform: translateX(-17%) scale(0.86);
  opacity: 0.78;
}

.weather-rain .sun-orb,
.weather-snow .sun-orb,
.weather-storm .sun-orb {
  opacity: 0.14;
  filter: saturate(0.2);
}

.rain-lines,
.snow-dots {
  position: absolute;
  top: 344px;
  left: 55%;
  display: flex;
  gap: 25px;
  opacity: 0;
  transform: translateX(-20%);
}

.rain-lines i {
  width: 3px;
  height: 34px;
  border-radius: 5px;
  background: linear-gradient(transparent, var(--cyan));
  transform: rotate(14deg);
  animation: rain 1.2s linear infinite;
}

.rain-lines i:nth-child(2) {
  animation-delay: -0.35s;
}

.rain-lines i:nth-child(3) {
  animation-delay: -0.7s;
}

.rain-lines i:nth-child(4) {
  animation-delay: -0.95s;
}

.weather-rain .rain-lines,
.weather-storm .rain-lines {
  opacity: 1;
}

.snow-dots {
  gap: 28px;
}

.snow-dots i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #e9f8ff;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.45);
  animation: snow 2s ease-in-out infinite;
}

.snow-dots i:nth-child(2),
.snow-dots i:nth-child(5) {
  animation-delay: -0.6s;
}

.snow-dots i:nth-child(3) {
  animation-delay: -1.2s;
}

.weather-snow .snow-dots {
  opacity: 1;
}

.lightning {
  position: absolute;
  top: 319px;
  left: 56%;
  width: 31px;
  height: 78px;
  background: var(--amber);
  clip-path: polygon(47% 0, 100% 0, 68% 40%, 100% 40%, 16% 100%, 40% 53%, 10% 53%);
  filter: drop-shadow(0 0 16px rgba(255, 200, 102, 0.85));
  opacity: 0;
}

.weather-storm .lightning {
  opacity: 1;
  animation: flash 3.2s step-end infinite;
}

.stage-caption {
  position: absolute;
  right: 36px;
  bottom: 28px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.stage-caption span {
  color: var(--lime);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.24em;
}

.stage-caption small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 10px;
  font-variant-numeric: tabular-nums;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  margin: 14px 0;
}

.metric-card {
  display: grid;
  grid-template-columns: 39px 1fr;
  min-width: 0;
  min-height: 110px;
  align-items: center;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(14, 26, 41, 0.76);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025);
  backdrop-filter: blur(12px);
  transition: 180ms ease;
}

.metric-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
}

.motion-ready .reveal {
  opacity: 0;
  transform: translateY(22px) scale(0.985);
}

.motion-ready .reveal.in-view {
  animation: revealUp 700ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: var(--reveal-delay, 0ms);
}

.value-pop {
  animation: valuePop 520ms cubic-bezier(0.2, 1.4, 0.4, 1);
}

.metric-card > small {
  grid-column: 1 / -1;
  margin-top: -5px;
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.metric-card div:nth-child(2) {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.metric-card span {
  color: var(--muted);
  font-size: 10px;
}

.metric-card strong {
  margin-top: 5px;
  overflow: hidden;
  font-size: 16px;
  font-variant-numeric: tabular-nums;
  font-weight: 650;
  letter-spacing: -0.02em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.metric-icon {
  display: grid;
  width: 39px;
  height: 39px;
  place-items: center;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
}

.metric-icon svg {
  width: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

.humidity-icon {
  color: var(--cyan);
}

.wind-icon {
  color: #8faeff;
}

.rain-icon {
  color: #69e0ff;
}

.visibility-icon {
  color: #cab5ff;
}

.pressure-icon {
  color: var(--amber);
}

.aqi-icon {
  color: var(--lime);
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 14px;
}

.panel {
  min-width: 0;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--panel);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025);
  backdrop-filter: blur(14px);
}

.hourly-panel {
  grid-column: 1 / -1;
}

.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.panel-heading.compact {
  margin-bottom: 17px;
}

.section-kicker {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.section-kicker.accent {
  color: var(--lime);
}

.panel h2,
.api-section h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 630;
  letter-spacing: -0.025em;
}

.panel-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 10px;
}

.legend-dot {
  width: 6px;
  height: 6px;
  margin-left: 8px;
  border-radius: 50%;
}

.temperature-dot {
  background: var(--lime);
}

.precipitation-dot {
  background: var(--cyan);
}

.panel-chip,
.sun-status {
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted-strong);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hourly-track {
  display: grid;
  grid-auto-columns: minmax(92px, 1fr);
  grid-auto-flow: column;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 1px 12px;
  scrollbar-color: rgba(255, 255, 255, 0.16) transparent;
  scrollbar-width: thin;
}

.hour-card {
  position: relative;
  min-height: 164px;
  overflow: hidden;
  padding: 15px 12px;
  border: 1px solid transparent;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.026);
  text-align: center;
  animation: forecastIn 560ms cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: var(--delay, 0ms);
}

.hour-card:first-child {
  border-color: rgba(185, 255, 102, 0.18);
  background: rgba(185, 255, 102, 0.065);
}

.hour-card .hour-time {
  color: var(--muted);
  font-size: 10px;
  font-variant-numeric: tabular-nums;
}

.hour-card:first-child .hour-time {
  color: var(--lime);
  font-weight: 700;
}

.weather-glyph {
  display: grid;
  height: 46px;
  margin: 9px 0 4px;
  place-items: center;
  font-family: "Segoe UI Symbol", sans-serif;
  font-size: 29px;
  line-height: 1;
  text-shadow: 0 5px 15px rgba(0, 0, 0, 0.25);
}

.hour-card strong {
  display: block;
  font-size: 18px;
  font-variant-numeric: tabular-nums;
  font-weight: 620;
}

.rain-chance {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin-top: 9px;
  color: var(--cyan);
  font-size: 10px;
}

.rain-chance::before {
  width: 5px;
  height: 7px;
  border-radius: 5px 5px 5px 1px;
  background: var(--cyan);
  content: "";
  transform: rotate(35deg);
}

.daily-list {
  display: flex;
  flex-direction: column;
}

.daily-row {
  display: grid;
  grid-template-columns: 66px 34px minmax(92px, 1fr) 105px 42px;
  align-items: center;
  gap: 11px;
  min-height: 57px;
  border-top: 1px solid rgba(255, 255, 255, 0.055);
  animation: forecastIn 560ms cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: var(--delay, 0ms);
}

.daily-row:first-child {
  border-top: 0;
}

.daily-day {
  font-size: 12px;
  font-weight: 600;
}

.daily-glyph {
  font-size: 20px;
  text-align: center;
}

.daily-condition {
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.temp-range {
  position: relative;
  height: 4px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.07);
}

.temp-range i {
  position: absolute;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--cyan), var(--lime), var(--amber));
  box-shadow: 0 0 8px rgba(185, 255, 102, 0.25);
}

.daily-temps {
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.daily-temps b {
  font-weight: 650;
}

.daily-temps span {
  margin-left: 4px;
  color: var(--muted);
}

.daylight-panel,
.atmosphere-panel {
  min-height: 280px;
}

.daylight-panel {
  position: relative;
  display: flex;
  overflow: hidden;
  flex-direction: column;
  isolation: isolate;
}

.daylight-panel::before {
  position: absolute;
  z-index: -1;
  right: -110px;
  bottom: -150px;
  width: 330px;
  height: 330px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 200, 102, 0.08), transparent 67%);
  content: "";
  pointer-events: none;
}

.atmosphere-panel {
  grid-column: 1 / -1;
}

.sun-arc {
  position: relative;
  height: 125px;
  overflow: hidden;
  margin: 4px 0 10px;
}

.arc-line {
  position: absolute;
  right: 5%;
  bottom: -82px;
  left: 5%;
  height: 190px;
  border: 1px dashed rgba(255, 255, 255, 0.16);
  border-radius: 50% 50% 0 0;
}

.horizon {
  position: absolute;
  right: 2%;
  bottom: 11px;
  left: 2%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-strong), transparent);
}

.sun-progress {
  position: absolute;
  bottom: 7px;
  left: 5%;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 16px rgba(255, 200, 102, 0.65), 0 0 40px rgba(255, 200, 102, 0.18);
  transform: translateX(-50%);
  transition: left 700ms ease, bottom 700ms ease;
}

.sun-times {
  display: grid;
  grid-template-columns: 1fr 1.4fr 1fr;
  gap: 12px;
}

.sun-times > div {
  display: flex;
  flex-direction: column;
}

.sun-times > div:last-child {
  align-items: flex-end;
}

.sun-times .daylight-total {
  align-items: center;
}

.sun-times span,
.air-details span {
  color: var(--muted);
  font-size: 9px;
}

.sun-times strong {
  margin-top: 4px;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.solar-details {
  margin-top: 18px;
  padding-top: 17px;
  border-top: 1px solid rgba(255, 255, 255, 0.065);
}

.solar-progress-card {
  padding: 13px 15px 14px;
  border: 1px solid rgba(255, 200, 102, 0.13);
  border-radius: 14px;
  background:
    linear-gradient(115deg, rgba(255, 200, 102, 0.075), transparent 58%),
    rgba(255, 255, 255, 0.022);
}

.solar-progress-copy {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.solar-progress-copy span {
  color: var(--muted-strong);
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.04em;
}

.solar-progress-copy strong {
  color: var(--amber);
  font-size: 16px;
  font-variant-numeric: tabular-nums;
  font-weight: 650;
}

.solar-progress-track {
  height: 4px;
  overflow: hidden;
  margin-top: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.065);
}

.solar-progress-track i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--cyan), var(--lime), var(--amber));
  box-shadow: 0 0 13px rgba(255, 200, 102, 0.5);
  transition: width 800ms cubic-bezier(0.22, 1, 0.36, 1);
}

.solar-stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin-top: 9px;
}

.solar-stat {
  position: relative;
  display: flex;
  min-height: 67px;
  overflow: hidden;
  flex-direction: column;
  justify-content: center;
  padding: 11px 13px;
  border: 1px solid rgba(255, 255, 255, 0.065);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.022);
}

.solar-stat::after {
  position: absolute;
  top: -22px;
  right: -22px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--solar-glow, rgba(185, 255, 102, 0.07));
  content: "";
  filter: blur(2px);
}

.solar-stat > span {
  color: var(--muted);
  font-size: 9px;
}

.solar-stat strong {
  margin-top: 4px;
  font-size: 15px;
  font-variant-numeric: tabular-nums;
  font-weight: 630;
  letter-spacing: -0.02em;
}

.solar-stat small {
  margin-top: 3px;
  color: rgba(161, 177, 192, 0.62);
  font-size: 8px;
}

.remaining-stat {
  --solar-glow: rgba(105, 224, 255, 0.11);
}

.sunshine-stat {
  --solar-glow: rgba(255, 200, 102, 0.12);
}

.uv-stat {
  --solar-glow: rgba(202, 181, 255, 0.11);
}

.tomorrow-stat {
  --solar-glow: rgba(185, 255, 102, 0.1);
}

.aqi-layout {
  display: grid;
  grid-template-columns: 150px 1fr;
  align-items: center;
  gap: 25px;
  min-height: 175px;
}

.aqi-gauge {
  display: grid;
  width: 142px;
  height: 142px;
  place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, var(--panel-solid) 59%, transparent 60%),
    conic-gradient(var(--lime) var(--aqi-progress, 0%), rgba(255, 255, 255, 0.07) 0);
  box-shadow: inset 0 0 28px rgba(0, 0, 0, 0.23);
}

.aqi-gauge > div {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.aqi-gauge strong {
  font-size: 35px;
  font-variant-numeric: tabular-nums;
  font-weight: 430;
  letter-spacing: -0.05em;
}

.aqi-gauge span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.air-details {
  display: flex;
  flex-direction: column;
}

.air-details > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 45px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.air-details > div:last-child {
  border-bottom: 0;
}

.air-details strong {
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

@media (min-width: 851px) {
  .atmosphere-panel {
    min-height: 246px;
  }

  .atmosphere-panel .aqi-layout {
    grid-template-columns: 164px minmax(0, 1fr);
    gap: 38px;
    min-height: 154px;
  }

  .atmosphere-panel .air-details {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
  }

  .atmosphere-panel .air-details > div {
    min-height: 112px;
    align-items: flex-start;
    flex-direction: column;
    justify-content: space-between;
    padding: 19px;
    border: 1px solid rgba(255, 255, 255, 0.075);
    border-radius: 16px;
    background:
      linear-gradient(145deg, rgba(105, 224, 255, 0.055), transparent 60%),
      rgba(255, 255, 255, 0.025);
  }

  .atmosphere-panel .air-details > div:last-child {
    border-bottom: 1px solid rgba(255, 255, 255, 0.075);
  }

  .atmosphere-panel .air-details span {
    font-size: 10px;
    letter-spacing: 0.08em;
  }

  .atmosphere-panel .air-details strong {
    font-size: clamp(17px, 1.55vw, 23px);
    letter-spacing: -0.025em;
  }
}

.api-section {
  display: grid;
  grid-template-columns: 0.76fr 1.24fr;
  gap: 55px;
  align-items: center;
  margin: 14px 0 0;
  padding: 58px;
  border: 1px solid rgba(185, 255, 102, 0.13);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 8% 70%, rgba(185, 255, 102, 0.08), transparent 25%),
    rgba(10, 20, 32, 0.88);
  box-shadow: var(--shadow);
}

.api-section h2 {
  margin-top: 8px;
  font-size: clamp(29px, 3vw, 45px);
  font-weight: 570;
  letter-spacing: -0.045em;
  line-height: 1.08;
}

.api-intro > p {
  max-width: 470px;
  margin: 19px 0 22px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}

.api-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.api-badges span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted-strong);
  font-size: 9px;
  font-weight: 650;
  letter-spacing: 0.06em;
}

.api-badges i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--lime);
}

.openapi-button {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 25px;
  color: var(--lime);
  font-size: 12px;
  font-weight: 700;
}

.openapi-button svg {
  width: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
  transition: transform 180ms ease;
}

.openapi-button:hover svg {
  transform: translateX(4px);
}

.code-card {
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 19px;
  background: #07101a;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.34);
}

.code-topbar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  min-height: 50px;
  align-items: center;
  padding: 0 17px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
}

.traffic-lights {
  display: flex;
  gap: 6px;
}

.traffic-lights i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ff6f79;
}

.traffic-lights i:nth-child(2) {
  background: var(--amber);
}

.traffic-lights i:nth-child(3) {
  background: var(--lime);
}

.code-tabs {
  display: flex;
  align-self: stretch;
  gap: 20px;
}

.code-tabs button {
  position: relative;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 10px;
  cursor: pointer;
}

.code-tabs button.active {
  color: var(--text);
}

.code-tabs button.active::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--lime);
  content: "";
}

.copy-button {
  display: flex;
  justify-self: end;
  align-items: center;
  gap: 5px;
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  font-size: 9px;
  cursor: pointer;
}

.copy-button:hover {
  color: var(--text);
}

.copy-button svg {
  width: 12px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
}

.code-card pre {
  min-height: 230px;
  margin: 0;
  overflow: auto;
  padding: 30px;
  color: #d9e5f4;
  font: 12px/1.9 "Cascadia Code", "SFMono-Regular", Consolas, monospace;
  tab-size: 2;
  white-space: pre-wrap;
}

.code-card code .keyword {
  color: #c9a5ff;
}

.code-card code .string {
  color: #c9f58b;
}

.code-card code .property {
  color: #78d7ff;
}

.code-card code .comment {
  color: #61758c;
}

.code-response {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 45px;
  padding: 0 18px;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.018);
}

.code-response span,
.code-response strong {
  color: var(--muted);
  font-size: 8px;
  letter-spacing: 0.11em;
}

.code-response span {
  display: flex;
  align-items: center;
  gap: 7px;
}

.code-response strong {
  color: var(--lime);
}

footer {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 40px;
  align-items: center;
  min-height: 150px;
  padding: 30px 12px;
  color: var(--muted);
}

.footer-brand {
  display: flex;
  flex-direction: column;
}

.footer-brand strong {
  color: var(--text);
  font-size: 14px;
}

.footer-brand span {
  margin-top: 6px;
  font-size: 10px;
}

footer p {
  margin: 0;
  font-size: 10px;
  line-height: 1.8;
  text-align: right;
}

footer a {
  color: var(--muted-strong);
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.2);
  text-underline-offset: 3px;
}

.loading-bar {
  position: fixed;
  z-index: 100;
  top: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--lime);
  box-shadow: 0 0 12px var(--lime);
  opacity: 0;
  transition: width 350ms ease, opacity 250ms ease;
}

.loading-bar.active {
  width: 72%;
  opacity: 1;
}

.loading-bar.complete {
  width: 100%;
  opacity: 0;
}

.toast {
  position: fixed;
  z-index: 110;
  right: 24px;
  bottom: 24px;
  padding: 11px 15px;
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  background: rgba(12, 24, 38, 0.96);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.35);
  font-size: 11px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: 180ms ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.location-consent {
  position: fixed;
  z-index: 130;
  right: 24px;
  bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  width: min(470px, calc(100% - 48px));
  gap: 12px 14px;
  padding: 16px;
  border: 1px solid rgba(185, 255, 102, 0.24);
  border-radius: 18px;
  background: rgba(9, 20, 33, 0.97);
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.46), 0 0 0 1px rgba(255, 255, 255, 0.025) inset;
  backdrop-filter: blur(22px);
  opacity: 0;
  transform: translateY(14px) scale(0.98);
  transition: opacity 220ms ease, transform 220ms ease;
}

.location-consent[hidden] {
  display: none;
}

.location-consent.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.location-consent-icon {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 14px;
  background: rgba(185, 255, 102, 0.1);
  color: var(--lime);
  box-shadow: 0 0 22px rgba(185, 255, 102, 0.08);
}

.location-consent-icon svg {
  width: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
}

.location-consent-copy {
  align-self: center;
}

.location-consent-copy strong {
  display: block;
  font-size: 14px;
  letter-spacing: -0.01em;
}

.location-consent-copy p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
}

.location-consent-actions {
  display: flex;
  grid-column: 1 / -1;
  justify-content: flex-end;
  gap: 8px;
}

.location-consent-actions button {
  min-height: 38px;
  padding: 0 14px;
  border: 0;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.location-consent-later {
  background: rgba(255, 255, 255, 0.055);
  color: var(--muted-strong);
}

.location-consent-allow {
  background: var(--lime);
  color: #13200d;
  box-shadow: 0 8px 24px rgba(185, 255, 102, 0.16);
}

.error-banner {
  position: fixed;
  z-index: 120;
  right: 24px;
  bottom: 24px;
  display: grid;
  grid-template-columns: 1fr auto;
  width: min(390px, calc(100% - 48px));
  padding: 16px;
  border: 1px solid rgba(255, 122, 138, 0.3);
  border-radius: 14px;
  background: rgba(46, 18, 27, 0.97);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.error-banner[hidden] {
  display: none;
}

.error-banner strong,
.error-banner span {
  display: block;
}

.error-banner strong {
  font-size: 12px;
}

.error-banner span {
  grid-column: 1;
  margin-top: 5px;
  color: #d7aab1;
  font-size: 10px;
}

.error-banner button {
  grid-row: 1 / span 2;
  grid-column: 2;
  align-self: center;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  background: transparent;
  font-size: 10px;
  cursor: pointer;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.55;
    transform: scale(0.85);
  }
}

@keyframes ambientOne {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); opacity: 0.08; }
  50% { transform: translate3d(90px, -45px, 0) scale(1.15); opacity: 0.13; }
}

@keyframes ambientTwo {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); opacity: 0.08; }
  50% { transform: translate3d(-75px, 35px, 0) scale(1.12); opacity: 0.12; }
}

@keyframes brandOrbit {
  0% { transform: rotate(0deg) scale(1); }
  55% { transform: rotate(150deg) scale(1.08); }
  100% { transform: rotate(180deg) scale(1); }
}

@keyframes signalSearch {
  from { opacity: 0.3; transform: scaleY(0.45); }
  to { opacity: 1; transform: scaleY(1); }
}

@keyframes signalLive {
  0%, 100% { opacity: 0.65; }
  50% { opacity: 1; filter: brightness(1.45); }
}

@keyframes heroSheen {
  0%, 72% { left: -34%; opacity: 0; }
  78% { opacity: 1; }
  92% { left: 118%; opacity: 0.8; }
  100% { left: 118%; opacity: 0; }
}

@keyframes sunBreathe {
  0%, 100% {
    box-shadow: 0 0 75px rgba(185, 255, 102, 0.38), 0 0 160px rgba(185, 255, 102, 0.13), inset -20px -20px 40px rgba(72, 113, 31, 0.22);
  }
  50% {
    box-shadow: 0 0 105px rgba(185, 255, 102, 0.48), 0 0 210px rgba(185, 255, 102, 0.18), inset -20px -20px 40px rgba(72, 113, 31, 0.16);
  }
}

@keyframes moonBreathe {
  0%, 100% { box-shadow: 0 0 70px rgba(157, 167, 255, 0.22); }
  50% { box-shadow: 0 0 110px rgba(157, 167, 255, 0.34); }
}

@keyframes cloudFloat {
  0%, 100% { transform: translateX(-30%) translateY(0); }
  50% { transform: translateX(-27%) translateY(-9px); }
}

@keyframes particleDrift {
  0% { opacity: 0; transform: translate3d(0, 24px, 0); }
  18% { opacity: 0.7; }
  75% { opacity: 0.35; }
  100% { opacity: 0; transform: translate3d(18px, -70px, 0); }
}

@keyframes windStream {
  from { transform: translateX(0) scaleX(0.5); opacity: 0; }
  20% { opacity: 1; }
  80% { opacity: 0.75; }
  to { transform: translateX(-650px) scaleX(1.2); opacity: 0; }
}

@keyframes revealUp {
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes valuePop {
  0% { opacity: 0.35; transform: translateY(7px) scale(0.94); }
  60% { opacity: 1; transform: translateY(-2px) scale(1.035); }
  100% { transform: translateY(0) scale(1); }
}

@keyframes forecastIn {
  from { opacity: 0; transform: translateY(13px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes rotate {
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

@keyframes rain {
  0% {
    opacity: 0;
    transform: translateY(-10px) rotate(14deg);
  }
  30% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateY(25px) rotate(14deg);
  }
}

@keyframes snow {
  0%,
  100% {
    opacity: 0.25;
    transform: translateY(-5px);
  }
  50% {
    opacity: 1;
    transform: translate(8px, 22px);
  }
}

@keyframes flash {
  0%,
  88%,
  94%,
  100% {
    opacity: 0;
  }
  89%,
  92% {
    opacity: 1;
  }
}

@media (max-width: 1120px) {
  .hero-grid {
    grid-template-columns: 1.25fr 0.75fr;
  }

  .hero-copy {
    padding-left: 38px;
  }

  .weather-stage {
    transform: translateX(-3%);
  }

  .metric-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .api-section {
    gap: 38px;
    padding: 42px;
  }
}

@media (max-width: 850px) {
  .app-shell {
    width: min(100% - 28px, 760px);
  }

  .topbar {
    height: 78px;
  }

  .protocol-pill small {
    display: none;
  }

  .protocol-pill > span:last-child {
    min-width: auto;
  }

  .hero-grid {
    display: block;
  }

  .hero-copy {
    min-height: 590px;
    padding: 42px 30px;
  }

  .weather-stage {
    position: absolute;
    top: -40px;
    right: -65px;
    width: 400px;
    height: 400px;
    opacity: 0.36;
    pointer-events: none;
  }

  .stage-caption {
    display: none;
  }

  .sun-orb,
  .moon-orb {
    top: 100px;
    width: 130px;
    height: 130px;
  }

  .cloud {
    top: 210px;
    scale: 0.8;
  }

  .cloud-back {
    top: 165px;
    scale: 0.58;
  }

  .rain-lines,
  .snow-dots {
    top: 294px;
  }

  .lightning {
    top: 268px;
  }

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

  .hourly-panel {
    grid-column: auto;
  }

  .api-section {
    grid-template-columns: 1fr;
    padding: 38px 30px;
  }

  .api-intro > p {
    max-width: none;
  }

  footer {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  footer p {
    text-align: left;
  }
}

@media (max-width: 580px) {
  .app-shell {
    width: min(100% - 18px, 520px);
  }

  .api-link {
    width: 42px;
    padding: 0;
    justify-content: center;
    font-size: 0;
  }

  .protocol-pill {
    width: 42px;
    min-height: 42px;
    justify-content: center;
    padding: 0;
  }

  .protocol-pill > span:last-child {
    display: none;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .hero-card {
    min-height: 0;
    border-radius: 23px;
  }

  .hero-copy {
    min-height: 570px;
    padding: 30px 20px;
  }

  .eyebrow-row {
    margin-bottom: 29px;
  }

  .updated {
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .location-heading h1 {
    font-size: 38px;
  }

  .temperature {
    font-size: 82px;
  }

  .current-reading {
    gap: 16px;
  }

  .condition-block {
    padding-left: 16px;
  }

  .search {
    padding-left: 14px;
  }

  .search-button {
    padding: 0 12px;
    font-size: 11px;
  }

  .quick-cities {
    flex-wrap: wrap;
  }

  .quick-cities span {
    width: 100%;
  }

  .location-consent {
    right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    width: calc(100% - 24px);
    padding: 14px;
    border-radius: 16px;
  }

  .metric-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .metric-card {
    padding: 14px;
  }

  .panel {
    padding: 21px 17px;
    border-radius: 19px;
  }

  .panel-meta {
    display: none;
  }

  .daily-row {
    grid-template-columns: 55px 28px minmax(60px, 1fr) 40px;
  }

  .daily-condition {
    display: none;
  }

  .aqi-layout {
    grid-template-columns: 120px 1fr;
    gap: 18px;
  }

  .aqi-gauge {
    width: 118px;
    height: 118px;
  }

  .api-section {
    padding: 32px 18px;
    border-radius: 22px;
  }

  .code-topbar {
    grid-template-columns: auto 1fr auto;
  }

  .traffic-lights {
    display: none;
  }

  .code-tabs {
    gap: 13px;
  }

  .code-card pre {
    min-height: 260px;
    padding: 22px 17px;
    font-size: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
