/* ======================================================================
   HUECAST v3
   Same idea as 2016: one circle, a gradient and a few words.
   ====================================================================== */

/* Colours come from tokens.css; this file only refers to them */
:root {
  --text-shadow: none;
  --icon: clamp(84px, 24vw, 104px);
  --gutter: max(16px, env(safe-area-inset-left), env(safe-area-inset-right));
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: dark;
}

/* Very light skies (late morning, pale yellow) switch to dark ink */
:root[data-ink="dark"] {
  --ink: var(--ink-dark);
  --ink-soft: var(--ink-dark-soft);
  --ink-faint: var(--ink-dark-faint);
}

*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
}

/* JS tints this to the bottom of the sky, so any area iOS leaves without
   content blends in instead of showing a grey band */
html {
  background: var(--bg);
  transition: background-color 2s ease;
}

body {
  overflow: hidden;
  color: var(--ink);
  font-family: 'Montserrat', system-ui, sans-serif;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior: none;
  user-select: none;
  -webkit-user-select: none;
  transition: color 1.2s ease;
}

/* Everything lives in one fixed box sized to the real screen (JS sets
   --app-h). iOS home-screen apps with a translucent status bar report a
   viewport short by the status bar's height; sizing from 100% or bottom: 0
   left an unpainted strip at the bottom */
.app {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--app-h, 100%);
  overflow: hidden;
}

/* Installed iOS app: iOS doesn't paint fixed elements below the short
   viewport it reports, so make the page itself screen-tall and place the
   app in it instead of pinning it to the viewport */
.is-standalone { height: var(--app-h, 100%); }
.is-standalone body { overflow: visible; touch-action: none; }
.is-standalone .app { position: absolute; }
.is-standalone .search__results { touch-action: pan-y; }

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

:focus-visible {
  outline: 1.5px solid var(--ink);
  outline-offset: 4px;
  border-radius: 6px;
}

/* ======================================================================
   SKY - two gradient layers that cross-fade
   ====================================================================== */
.sky {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(-65deg, var(--bg-raised), var(--bg));
}

.sky__layer,
.sky__darken {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 2s ease;
}

.sky__layer.is-active { opacity: 1; }

.sky__darken { background: var(--veil); }

.scene {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

/* white over light skies turns dark, like the original drops */
:root[data-ink="dark"] .scene { mix-blend-mode: exclusion; }

/* ======================================================================
   TOOLBAR
   ====================================================================== */
.toolbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  padding: max(14px, env(safe-area-inset-top)) var(--gutter) 0;
  transition: opacity 0.35s ease, transform 0.45s var(--ease);
}

/* Clean view (tap the screen): top buttons and the low · now · high row
   slide away, the sky stays */
.is-clean .toolbar {
  opacity: 0;
  transform: translateY(-12px);
  pointer-events: none;
}
.is-clean .timeline__head {
  opacity: 0;
  transform: translateY(6px);
  pointer-events: none;
}

.toolbar__left,
.toolbar__right { display: flex; gap: 4px; }

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

.tool {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  opacity: 0.55;
  transition: opacity 0.2s ease, background-color 0.2s ease;
}

.tool:hover { opacity: 1; background: var(--ink-faint); }
.tool:active { opacity: 1; }

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

.tool.is-busy svg { animation: spin 1s linear infinite; }

/* ======================================================================
   CONTENT
   ====================================================================== */
.content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 72px var(--gutter) 150px;
  text-align: center;
  text-shadow: var(--text-shadow);
  pointer-events: none;
}

.content > * { pointer-events: auto; }

.text-top {
  margin: 0 0 clamp(28px, 6vh, 44px);
  min-height: 1.2em;
  font-size: clamp(14px, 3.6vw, 16px);
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  max-width: 22ch;
}

.text-bottom {
  margin: 10px 0 0;
  min-height: 3em;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.text-bottom > span { display: block; margin-bottom: 6px; }
.text-bottom > span:last-child { color: var(--ink-soft); }
.text-bottom > .is-detail {
  max-width: 34ch;
  margin: 14px auto 0;
  font-size: 10px;
  letter-spacing: 0.04em;
  text-transform: none;
  user-select: text;
  -webkit-user-select: text;
}

.temperature {
  margin-top: clamp(24px, 5vh, 36px);
  font-size: clamp(40px, 11vw, 56px);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  padding: 4px 10px;
}

.temperature sup {
  font-size: 0.5em;
  vertical-align: 0.7em;
  margin-left: 2px;
}

.temperature small {
  font-size: 0.24em;
  font-weight: 600;
  letter-spacing: 0.15em;
  vertical-align: 1.9em;
  margin-left: 2px;
  color: var(--ink-soft);
}

.animate-in { animation: fadeInUp 0.9s var(--ease) both; }
.animate-down { animation: fadeInDown 0.9s var(--ease) both; }

/* Odometer roll for changing numbers (js/roll.js). Clipped vertically
   only, so letter spacing and glows aren't cut */
.roll {
  position: relative;
  display: inline-block;
  white-space: pre;
  vertical-align: bottom;
  clip-path: inset(0 -0.6em);
}

.roll__in { display: inline-block; }

.roll__out {
  position: absolute;
  left: 0;
  top: 0;
}

/* ======================================================================
   SUN & MOON
   ====================================================================== */
.icon-container {
  position: relative;
  width: var(--icon);
  height: var(--icon);
  flex: none;
}

.sun,
.moon,
.loader,
.sun-pulse,
.sun-pulse2x {
  position: absolute;
  inset: 0;
  border-radius: 50%;
}

/* Loader: a thin ring breathing, with the original pulse inside */
.loader {
  box-shadow: inset 0 0 0 1.5px var(--ink-soft);
  animation: breathe 2.4s ease-in-out infinite;
}

.loader::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--ink);
  animation: pulseAnim 2.5s ease-out infinite;
}

/* Error: an empty, dashed circle - nothing to show */
.icon-empty {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1.5px dashed var(--ink-soft);
  animation: popIn 1.2s var(--ease) both;
}

.text-top.is-status {
  font-weight: 600;
  color: var(--ink-soft);
  animation: statusPulse 1.4s ease-in-out infinite alternate;
}

.retry {
  margin-top: clamp(24px, 5vh, 36px);
  padding: 11px 22px;
  border: 1px solid var(--ink-faint);
  border-radius: 22px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  transition: background-color 0.2s ease;
}

.retry:hover { background: var(--ink-faint); }

.sun {
  background: var(--sun);
  animation: popIn 1.2s var(--ease) both;
}

/* Glow as a radial gradient: a 100px box-shadow gets drawn in tiles
   and shows square edges while the pulses animate */
.sun.shining::before {
  content: '';
  position: absolute;
  inset: -110%;
  border-radius: 50%;
  background: radial-gradient(closest-side,
    var(--sun-glow-inner) 30%,
    var(--sun-glow-outer) 55%,
    var(--sun-glow-end) 100%);
  pointer-events: none;
}

/* Behind clouds or fog: dimmer, soft edged, no glow */
.sun.is-veiled {
  background: var(--sun-veiled);
  filter: blur(1.5px);
}

:root[data-ink="dark"] .sun { box-shadow: 0 0 0 1px var(--sun-edge); }

.moon {
  box-shadow: inset 0 0 0 6px var(--sun);
  background: var(--moon-fill);
  animation: popIn 1.2s var(--ease) both, opacityMoon 3s ease-out 1.2s infinite;
}

.sun-pulse,
.sun-pulse2x {
  background: var(--sun);
  animation: pulseAnim 3s ease-out infinite;
}

.sun-pulse2x { animation: pulseAnim2x 2.5s ease-out infinite; }

/* 40°+: a wider, brighter glow */
.sun.is-blazing::before { inset: -150%; }

/* Very cold: ice halo, a thin ring well outside the sun or moon
   (warm inner edge, white, cool outer edge), breathing slowly */
.halo {
  position: absolute;
  inset: -95%;
  border-radius: 50%;
  background: radial-gradient(closest-side,
    transparent 80%, var(--halo-warm) 85%, var(--halo-white) 88.5%, var(--halo-cool) 92%, transparent 96%);
  opacity: var(--halo, 0.8);
  pointer-events: none;
  animation: fadeIn 2s ease both, haloBreathe 7s ease-in-out 2s infinite alternate;
}

@keyframes haloBreathe {
  from { opacity: var(--halo, 0.8); }
  to   { opacity: calc(var(--halo, 0.8) * 0.7); }
}

/* ======================================================================
   TIMELINE - next 24 hours, drag to scrub
   ====================================================================== */
.timeline {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  padding: 0 var(--gutter) max(18px, env(safe-area-inset-bottom));
  animation: fadeInUp 1s var(--ease) 0.4s both;
}

.timeline__head {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: baseline;
  max-width: 560px;
  margin: 0 auto 12px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
  color: var(--ink-soft);
  transition: opacity 0.35s ease, transform 0.45s var(--ease);
}

/* clean view: while dragging, the hour comes back (low/high stay hidden) */
.is-clean .timeline.is-active .timeline__head { opacity: 1; transform: none; }

.timeline__label { color: var(--ink); text-align: center; }
.timeline__range { font-weight: 400; font-size: 9px; letter-spacing: 0.15em; }
.timeline__range:last-child { text-align: right; }

.timeline__track {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: var(--track-h, 70px);
  max-width: 560px;
  margin: 0 auto;
  padding: 14px 0 12px;
  transition: height 0.35s var(--ease);
  touch-action: none;
  cursor: ew-resize;
  position: relative;
}

/* Each bar is a little copy of that hour's sky (background set in JS) */
.timeline__track:focus-visible { outline-color: var(--ink-faint); outline-offset: 6px; }

.bar {
  position: relative;
  flex: var(--w, 1) 1 0;
  min-height: 4px;
  border-radius: 2px;
  box-shadow: inset 0 0 0 1px var(--bar-stroke);
  transform: scaleY(calc(var(--mag, 1) * var(--sel, 1)));
  transition: transform 0.18s var(--ease), flex-grow 0.18s var(--ease), box-shadow 0.25s ease;
  transform-origin: bottom;
}

.bar.is-selected {
  --sel: 1.1;
  box-shadow: inset 0 0 0 1px var(--bar-stroke-selected), 0 0 0 1.5px var(--ink);
}

/* Growing while scrubbing (touch) or hovering (mouse) */
.timeline.is-active { --track-h: 116px; }
.timeline.is-active .timeline__label { transform: scale(1.25); }
.timeline.is-active .timeline__range { opacity: 0; }
.timeline__range { transition: opacity 0.25s ease; }
.timeline__label { transition: transform 0.35s var(--ease); }


/* night hours: a thin line under the bars (gradient built in JS) */
.timeline__track::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: var(--line-b);
  height: 2px;
  background: var(--night, none);
  pointer-events: none;
}

/* Moon (ring) where a night starts, sun (dot) where it ends. Sits on the
   night line, just outside each end so the line runs into it */
.timeline { --line-b: 5px; }

.timeline__night {
  position: relative;
  max-width: 560px;
  height: 0;
  margin: 0 auto;
  pointer-events: none;
}

.night-mark {
  position: absolute;
  top: calc(-1 * var(--line-b) - 4.5px);
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.night-mark--moon {
  box-shadow: inset 0 0 0 1.2px var(--ink-soft);
  transform: translateX(calc(-100% - 2px));
}

.night-mark--sun {
  background: var(--ink-soft);
  transform: translateX(2px);
}

/* precipitation: rain ticks, snow dots */
.bar__wx {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 4px);
  /* undo the bar's scale so the marks don't stretch */
  transform: translateX(-50%) scaleY(calc(1 / (var(--mag, 1) * var(--sel, 1))));
  transform-origin: bottom;
  display: flex;
  align-items: flex-end;
  gap: 2px;
}

.bar__wx i {
  width: 1px;
  height: 6px;
  background: var(--ink-soft);
}

/* snow: dots stacked vertically */
.bar__wx.is-snow { flex-direction: column; align-items: center; }

.bar__wx.is-snow i {
  width: 3px;
  height: 3px;
  border-radius: 50%;
}

.bar__tick {
  position: absolute;
  top: calc(100% + 11px);
  left: 50%;
  transform: translateX(-50%);
  font-size: 8px;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
  white-space: nowrap;
  display: none;
}

/* Switching place: keep the old sky, quiet the controls */
.timeline, .temperature, .text-bottom > span:last-child { transition: opacity 0.3s ease; }
.is-loading .timeline { opacity: 0.3; pointer-events: none; }
.is-loading .temperature,
.is-loading .text-bottom > span:last-child { opacity: 0; }

/* ======================================================================
   OPTIONS MENU (cog)
   ====================================================================== */
.menu {
  position: absolute;
  top: calc(max(14px, env(safe-area-inset-top)) + 50px);
  right: var(--gutter);
  z-index: 9;
  width: min(260px, calc(100% - 2 * var(--gutter)));
  padding: 6px;
  border-radius: 22px;
  background: var(--scrim);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  box-shadow: inset 0 0 0 1px var(--glass-stroke);
  color: var(--on-glass);
  text-shadow: none;
  transform-origin: top right;
  animation: menuIn 0.22s var(--ease) both;
}

.menu[hidden] { display: none; }

.menu__item,
.menu__row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border-radius: 16px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-align: left;
}

.menu__item:hover,
.menu__item:focus-visible { background: var(--glass-row); outline: none; }

.menu__item svg {
  flex: none;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.85;
}

.menu__item[aria-checked="true"] svg { fill: currentColor; }

.menu__item[disabled] { opacity: 0.4; cursor: default; }

.menu__row {
  justify-content: space-between;
  margin-top: 4px;
  box-shadow: 0 -1px 0 var(--glass-row);
  border-radius: 0 0 16px 16px;
}

.seg {
  display: flex;
  padding: 3px;
  border-radius: 14px;
  background: var(--glass);
}

.seg button {
  min-width: 40px;
  padding: 6px 10px;
  border-radius: 11px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  opacity: 0.6;
}

.seg button[aria-pressed="true"] {
  opacity: 1;
  background: var(--glass-hover);
  box-shadow: inset 0 0 0 1px var(--glass-stroke-strong);
}

@keyframes menuIn {
  from { opacity: 0; transform: translateY(-6px) scale(0.96); }
  to   { opacity: 1; transform: none; }
}

/* ======================================================================
   SEARCH
   ====================================================================== */
.search {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: max(14px, env(safe-area-inset-top)) var(--gutter) 24px;
  background: var(--scrim);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  color: var(--on-glass);
  text-shadow: none;
  animation: fadeIn 0.25s ease both;
}

.search[hidden] { display: none; }

.search__form {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  max-width: 520px;
  margin-top: clamp(8px, 8vh, 96px);
  animation: fadeInDown 0.4s var(--ease) both;
}

/* A real input box: rounded, translucent, magnifier inside */
.search__field {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  height: 48px;
  padding: 0 18px;
  border-radius: 24px;
  background: var(--glass);
  box-shadow: inset 0 0 0 1px var(--glass-stroke);
  cursor: text;
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.search__field:focus-within {
  background: var(--glass-hover);
  box-shadow: inset 0 0 0 1px var(--glass-stroke-strong);
}

.search__field svg {
  flex: none;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  opacity: 0.6;
}

.search__input {
  flex: 1;
  min-width: 0;
  height: 100%;
  padding: 0;
  background: none;
  border: 0;
  outline: 0;
  color: var(--on-glass);
  font: inherit;
  font-size: 16px; /* >=16px avoids iOS zoom */
  font-weight: 500;
  letter-spacing: 0.04em;
  user-select: text;
  -webkit-user-select: text;
  -webkit-appearance: none;
  appearance: none;
}

.search__input::placeholder { color: var(--on-glass-placeholder); }
.search__input::-webkit-search-cancel-button,
.search__input::-webkit-search-decoration { -webkit-appearance: none; display: none; }

.search__field,
.search__close {
  height: 48px;
  border-radius: 24px; /* pill field, round X */
  background: var(--glass);
  box-shadow: inset 0 0 0 1px var(--glass-stroke);
}

/* Same box as the input, square */
.search__close {
  flex: none;
  width: 48px;
  color: var(--on-glass);
  opacity: 1;
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.search__close:hover,
.search__close:focus-visible {
  background: var(--glass-hover);
  box-shadow: inset 0 0 0 1px var(--glass-stroke-strong);
}

.search__close svg { width: 18px; height: 18px; stroke-width: 1.8; opacity: 0.8; }

.search__results {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  width: 100%;
  max-width: 520px;
  overflow-y: auto;
}

.search__heading {
  margin: 18px 18px 6px;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--on-glass-soft);
}

.search__heading:first-child { margin-top: 8px; }

/* A place: name + region, with a pin toggle on the right */
.place {
  display: flex;
  align-items: center;
  border-radius: 24px;
  transition: background-color 0.2s ease;
}

.place:hover,
.place:focus-within { background: var(--glass-row); }

.place__go {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  padding: 13px 4px 13px 18px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.place__go:focus-visible { outline: none; }

/* saved picture: a small copy of its sky */
.place__sky {
  flex: none;
  width: 26px;
  height: 34px;
  border-radius: 8px;
  box-shadow: inset 0 0 0 1px var(--glass-stroke);
}

.place__go > span { min-width: 0; }

.place__go svg {
  flex: none;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  opacity: 0.8;
}

.place small {
  display: block;
  margin-top: 4px;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.12em;
  color: var(--on-glass-soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.place__pin {
  flex: none;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-right: 4px;
  border-radius: 50%;
  color: var(--on-glass);
  opacity: 0.45;
  transition: opacity 0.2s ease, background-color 0.2s ease;
}

.place__pin:hover { opacity: 0.9; background: var(--glass); }
.place__pin[aria-pressed="true"] { opacity: 1; }

.place__pin svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linejoin: round;
}

.place__pin[aria-pressed="true"] svg { fill: currentColor; }

.search__empty {
  padding: 14px 18px;
  font-size: 11px;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--on-glass-soft);
}

/* ======================================================================
   MISC
   ====================================================================== */
.toast {
  position: absolute;
  left: 50%;
  top: max(70px, calc(env(safe-area-inset-top) + 56px));
  z-index: 5;
  transform: translateX(-50%);
  max-width: calc(100% - 32px);
  padding: 9px 16px;
  border-radius: 20px;
  background: var(--toast);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--white);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-align: center;
  animation: fadeInDown 0.5s var(--ease) both;
}

.is-demo .timeline { padding-bottom: max(26px, env(safe-area-inset-bottom)); }

.domlog {
  position: absolute;
  bottom: 4px;
  width: 100%;
  z-index: 4;
  text-align: center;
  font-size: 8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  pointer-events: none;
}

/* Short landscape phones: tighten everything */
@media (max-height: 500px) {
  .content { padding-top: 48px; padding-bottom: 110px; }
  .text-top { margin-bottom: 18px; }
  .temperature { margin-top: 14px; font-size: 36px; }
  .text-bottom { min-height: 0; }
  .timeline__track { padding-bottom: 10px; }
  .timeline { --line-b: 3px; }
  .timeline { --track-h: 54px; }
  .timeline.is-active { --track-h: 76px; }
  .timeline__head { margin-bottom: 4px; }
  :root { --icon: 72px; }
}

@media (min-width: 900px) {
  .bar__tick { display: block; }
  .timeline__track { padding-bottom: 26px; }
  .timeline { --line-b: 19px; }
  .timeline { --track-h: 84px; }
  .timeline.is-active { --track-h: 130px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .sun-pulse, .sun-pulse2x { display: none; }
}

/* ======================================================================
   ANIMATIONS (kept from the original)
   ====================================================================== */
@keyframes pulseAnim {
  0%   { transform: scale(0);   opacity: 0; }
  45%  { transform: scale(0.9); opacity: 0.5; }
  100% { transform: scale(1.4); opacity: 0; }
}

@keyframes pulseAnim2x {
  0%   { transform: scale(0);   opacity: 0; }
  45%  { transform: scale(0.9); opacity: 0.5; }
  100% { transform: scale(2.4); opacity: 0; }
}

@keyframes opacityMoon {
  0%   { opacity: 1; }
  50%  { opacity: 0.9; }
  60%  { opacity: 0.6; }
  100% { opacity: 1; }
}

@keyframes popIn {
  from { transform: scale(0.6); opacity: 0; }
  to   { transform: scale(1);   opacity: 1; }
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

@keyframes fadeInUp {
  from { opacity: 0; transform: translate3d(0, 16px, 0); }
  to   { opacity: 1; transform: none; }
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translate3d(0, -16px, 0); }
  to   { opacity: 1; transform: none; }
}

.toast { animation-name: toastIn; }
@keyframes toastIn {
  from { opacity: 0; transform: translate(-50%, -12px); }
  to   { opacity: 1; transform: translate(-50%, 0); }
}

@keyframes spin { to { transform: rotate(360deg); } }

@keyframes breathe {
  0%, 100% { transform: scale(0.94); opacity: 0.6; }
  50%      { transform: scale(1);    opacity: 1; }
}

@keyframes statusPulse {
  from { opacity: 0.45; }
  to   { opacity: 1; }
}
