/* pws-watch: dashboard weather visuals and dial styling. */

:root {
  --ink: #17202a;
  --muted: #64717f;
  --line: #d6dde2;
  --panel: rgba(255, 255, 255, 0.92);
  --surface: #eef3f2;
  --blue: #2f80ed;
  --green: #0f7a5a;
  --amber: #f5a524;
  --red: #e5484d;
  --violet: #7c5cff;
  --cyan: #22b8cf;
  --uv: #c8d400;
  --shadow: 0 18px 48px rgba(27, 39, 51, 0.13);
}

body {
  min-height: 100vh;
  background:
    linear-gradient(115deg, rgba(15, 122, 90, 0.1), transparent 28%),
    linear-gradient(245deg, rgba(39, 100, 201, 0.1), transparent 32%),
    linear-gradient(90deg, rgba(23, 32, 42, 0.045) 1px, transparent 1px),
    linear-gradient(0deg, rgba(23, 32, 42, 0.035) 1px, transparent 1px),
    linear-gradient(135deg, #f4f7f4 0%, #e8f0f2 43%, #f6f1e9 100%);
  background-size: auto, auto, 42px 42px, 42px 42px, auto;
}

.shell {
  width: min(1280px, calc(100vw - 24px));
  padding: 14px 0 28px;
}

header {
  align-items: center;
  margin-bottom: 10px;
}

h1 {
  font-size: clamp(30px, 3.7vw, 48px);
  font-weight: 900;
}

.subhead {
  min-height: 18px;
  color: #52616f;
  font-weight: 700;
}

.primary-button {
  min-width: 108px;
  min-height: 42px;
  background: linear-gradient(135deg, #17202a, #0f5f70);
  box-shadow: 0 12px 24px rgba(23, 32, 42, 0.18);
  font-weight: 850;
}

.primary-button.icon-only {
  min-width: 42px;
}

.settings {
  position: relative;
  z-index: 30;
  align-items: start;
  grid-template-columns: minmax(220px, 320px) 136px minmax(360px, 1fr);
  justify-content: start;
  gap: 10px;
  margin-bottom: 10px;
  padding: 10px;
  border-color: rgba(23, 32, 42, 0.13);
  background: rgba(255, 255, 255, 0.76);
  backdrop-filter: blur(18px);
}

label {
  color: #536271;
  font-size: 11px;
  letter-spacing: 0.06em;
}

input,
select {
  min-height: 40px;
  border-color: rgba(23, 32, 42, 0.16);
  background: rgba(255, 255, 255, 0.9);
  font-weight: 800;
}

input:focus,
select:focus,
button:focus-visible {
  outline: 3px solid rgba(39, 100, 201, 0.23);
  outline-offset: 2px;
}

.icon {
  display: inline-block;
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  color: currentColor;
  vertical-align: -0.18em;
}

.icon.small {
  width: 14px;
  height: 14px;
}

.label-with-icon {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  min-width: 0;
}

.notice {
  position: fixed;
  z-index: 60;
  top: 14px;
  right: 14px;
  max-width: min(360px, calc(100vw - 28px));
  margin: 0;
  border-left: 4px solid currentColor;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow);
}

.hero-grid {
  grid-template-columns: minmax(300px, 0.72fr) minmax(0, 1.78fr);
  gap: 12px;
}

.panel {
  position: relative;
  overflow: hidden;
  border-color: rgba(23, 32, 42, 0.13);
  background: var(--panel);
  backdrop-filter: blur(18px);
  box-shadow:
    0 18px 38px rgba(23, 32, 42, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

#currentPanel {
  min-height: 350px;
  padding: 18px;
  --humidity-deg: 0deg;
  --pressure-deg: 0deg;
  --uv-deg: 0deg;
  --temperature-deg: 0deg;
  --temperature-color: #8a96a3;
  --wind-deg: 0deg;
  background:
    linear-gradient(120deg, rgba(0, 147, 168, 0.1), transparent 42%),
    repeating-linear-gradient(135deg, rgba(23, 32, 42, 0.035) 0 1px, transparent 1px 12px),
    linear-gradient(180deg, rgba(23, 32, 42, 0.04), rgba(255, 255, 255, 0)),
    rgba(255, 255, 255, 0.92);
}

#currentPanel::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 6px;
  background: linear-gradient(180deg, var(--green), var(--cyan), var(--amber));
}

.current-top,
.telemetry-core,
.temp,
.weather-brief,
.weather-warning-pill,
.dial-module,
.metrics {
  position: relative;
  z-index: 1;
}

.station-name {
  font-size: 24px;
  font-weight: 900;
}

.station-meta {
  font-size: 14px;
  font-weight: 700;
}

.freshness {
  min-height: 30px;
  padding: 0 12px;
  border-radius: 8px;
  letter-spacing: 0.04em;
}

.temp {
  display: flex;
  align-items: start;
  gap: 6px;
  font-size: clamp(74px, 8vw, 112px);
  letter-spacing: 0;
}

.temp-row {
  display: flex;
  align-items: center;
  gap: clamp(10px, 2vw, 18px);
  min-width: 0;
}

.temp-decimal {
  margin-left: -3px;
  margin-top: 0.12em;
  font-size: 0.42em;
  line-height: 1;
}

.telemetry-core {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(148px, 0.55fr);
  gap: 16px;
  align-items: center;
}

.temp-stack {
  min-width: 0;
}

.temp small {
  margin-top: 10px;
  color: var(--muted);
  font-size: 30px;
}

.weather-visual {
  position: relative;
  flex: 0 0 auto;
  width: clamp(62px, 8vw, 92px);
  aspect-ratio: 1.08;
  border: 1px solid rgba(23, 32, 42, 0.1);
  border-radius: 22px;
  background:
    radial-gradient(circle at 24% 22%, rgba(255, 255, 255, 0.9), transparent 34%),
    linear-gradient(150deg, rgba(255, 255, 255, 0.8), rgba(232, 240, 241, 0.68));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.85),
    0 16px 28px rgba(23, 32, 42, 0.1);
  overflow: hidden;
}

.weather-visual span {
  position: absolute;
  display: none;
}

.weather-sun {
  inset: 15% auto auto 14%;
  width: 38%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, #ffe889 0 44%, #f7a92f 45% 100%);
  box-shadow:
    0 0 0 7px rgba(247, 169, 47, 0.16),
    0 0 24px rgba(247, 169, 47, 0.35);
}

.weather-moon {
  inset: 14% auto auto 16%;
  width: 37%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #f8fbff;
  box-shadow:
    inset -10px -3px 0 #c7d4e2,
    0 0 0 7px rgba(111, 141, 177, 0.16),
    0 0 24px rgba(111, 141, 177, 0.28);
}

.weather-cloud {
  right: 12%;
  bottom: 25%;
  width: 62%;
  height: 28%;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffffff, #dce6eb);
  box-shadow:
    inset 0 -1px 0 rgba(23, 32, 42, 0.08),
    0 8px 16px rgba(23, 32, 42, 0.12);
}

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

.weather-cloud::before {
  left: 14%;
  width: 42%;
  aspect-ratio: 1;
}

.weather-cloud::after {
  right: 12%;
  width: 50%;
  aspect-ratio: 1;
}

.weather-cloud-secondary {
  right: 30%;
  bottom: 37%;
  width: 48%;
  height: 22%;
  opacity: 0.72;
  transform: scale(0.82);
}

.weather-rain {
  bottom: 10%;
  width: 4px;
  height: 18%;
  border-radius: 999px;
  background: linear-gradient(180deg, #8cc4ff, #2f80ed);
  transform: rotate(12deg);
}

.weather-rain-a {
  left: 39%;
}

.weather-rain-b {
  left: 52%;
  height: 22%;
}

.weather-rain-c {
  left: 65%;
}

.weather-bolt {
  left: 55%;
  bottom: 5%;
  width: 18%;
  height: 34%;
  background: #f7a92f;
  clip-path: polygon(50% 0, 18% 45%, 46% 45%, 30% 100%, 82% 34%, 54% 34%);
  filter: drop-shadow(0 3px 5px rgba(161, 92, 7, 0.25));
}

.weather-wind {
  right: 13%;
  top: 47%;
  width: 58%;
  height: 3px;
  border-radius: 999px;
  background: #16805d;
  box-shadow:
    -10px 12px 0 rgba(22, 128, 93, 0.72),
    8px -12px 0 rgba(22, 128, 93, 0.45);
}

.weather-fog {
  left: 17%;
  bottom: 22%;
  width: 66%;
  height: 3px;
  border-radius: 999px;
  background: rgba(100, 113, 127, 0.7);
  box-shadow:
    0 10px 0 rgba(100, 113, 127, 0.5),
    0 20px 0 rgba(100, 113, 127, 0.36);
}

.weather-snow {
  left: 36%;
  bottom: 10%;
  width: 7px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #ffffff;
  box-shadow:
    13px 6px 0 rgba(255, 255, 255, 0.9),
    26px 0 0 rgba(255, 255, 255, 0.72);
}

.weather-visual--clear .weather-sun,
.weather-visual--partly-cloudy .weather-sun,
.weather-visual--clear-night .weather-moon,
.weather-visual--partly-cloudy-night .weather-moon,
.weather-visual--partly-cloudy-night .weather-cloud,
.weather-visual--partly-cloudy .weather-cloud,
.weather-visual--cloudy .weather-cloud,
.weather-visual--cloudy .weather-cloud-secondary,
.weather-visual--rain .weather-cloud,
.weather-visual--rain .weather-rain,
.weather-visual--storm .weather-cloud,
.weather-visual--storm .weather-rain,
.weather-visual--storm .weather-bolt,
.weather-visual--snow .weather-cloud,
.weather-visual--snow .weather-snow,
.weather-visual--fog .weather-fog,
.weather-visual--wind .weather-wind,
.weather-visual--wind .weather-cloud,
.weather-visual--unknown .weather-cloud {
  display: block;
}

.weather-visual--clear {
  background:
    radial-gradient(circle at 28% 26%, rgba(255, 232, 137, 0.42), transparent 46%),
    linear-gradient(145deg, #f7fbff, #dcecff);
}

.weather-visual--clear-night,
.weather-visual--partly-cloudy-night {
  background:
    radial-gradient(circle at 28% 26%, rgba(199, 212, 226, 0.34), transparent 46%),
    linear-gradient(145deg, #eef4fb, #cbd7e5);
}

.weather-visual--rain,
.weather-visual--storm {
  background: linear-gradient(145deg, #eef4f8, #c9d7e1);
}

.weather-visual--snow {
  background: linear-gradient(145deg, #f8fbff, #dbe9f7);
}

.weather-renderer-tabs {
  display: inline-flex;
  justify-self: end;
  gap: 4px;
  padding: 4px;
  border: 1px solid rgba(23, 32, 42, 0.13);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.weather-renderer-tabs[hidden] {
  display: none !important;
}

.weather-renderer-tabs button {
  min-height: 30px;
  padding: 0 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 11px;
  font-weight: 900;
}

.weather-renderer-tabs button.active {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.94);
  box-shadow:
    inset 0 0 0 1px rgba(23, 32, 42, 0.08),
    0 8px 16px rgba(23, 32, 42, 0.08);
}

.weather-renderer-panel[hidden] {
  display: none !important;
}

.atmo-dial {
  position: relative;
  width: min(100%, 214px);
  aspect-ratio: 1;
  justify-self: end;
  border: 1px solid rgba(23, 32, 42, 0.12);
  border-radius: 50%;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(233, 241, 241, 0.78)),
    rgba(255, 255, 255, 0.82);
  box-shadow:
    inset 0 0 0 10px rgba(255, 255, 255, 0.64),
    inset 0 0 32px rgba(0, 147, 168, 0.1),
    0 18px 32px rgba(23, 32, 42, 0.1);
}

.dial-ring {
  position: absolute;
  z-index: 1;
  border-radius: 50%;
  --ring-sweep: 270deg;
  background:
    conic-gradient(from 0deg, var(--ring-color) var(--ring-deg), rgba(23, 32, 42, 0.075) 0 var(--ring-sweep), transparent 0);
  -webkit-mask: radial-gradient(circle, transparent 60%, #000 61%);
  mask: radial-gradient(circle, transparent 60%, #000 61%);
}

.dial-ring.temperature-ring {
  inset: 10px;
  --ring-color: var(--temperature-color);
  --ring-deg: var(--temperature-deg);
}

.dial-ring.humidity-ring {
  inset: 27px;
  --ring-color: #22b8cf;
  --ring-deg: var(--humidity-deg);
}

.dial-ring.pressure-ring {
  inset: 44px;
  --ring-color: #7c5cff;
  --ring-deg: var(--pressure-deg);
}

.dial-ring.uv-ring {
  inset: 61px;
  --ring-color: #c8d400;
  --ring-deg: var(--uv-deg);
  -webkit-mask: radial-gradient(circle, transparent 66%, #000 67%);
  mask: radial-gradient(circle, transparent 66%, #000 67%);
}

.wind-needle {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  width: 5px;
  height: 58%;
  border-radius: 999px;
  background: linear-gradient(180deg, #f7fcff 0 54%, rgba(247, 252, 255, 0.2) 54% 100%);
  box-shadow:
    0 0 0 1px rgba(5, 20, 29, 0.4),
    0 0 18px rgba(124, 229, 255, 0.28);
  transform: translate(-50%, -50%) rotate(var(--wind-deg));
  transform-origin: 50% 50%;
  transition: transform 300ms ease;
}

.wind-needle::before {
  content: "";
  position: absolute;
  top: -4px;
  left: 50%;
  width: 12px;
  height: 12px;
  border-radius: 999px 999px 999px 2px;
  background:
    radial-gradient(circle at 34% 32%, rgba(255, 255, 255, 0.9), transparent 34%),
    linear-gradient(145deg, #d9f1f7, #f7fcff);
  box-shadow:
    0 0 0 1px rgba(5, 20, 29, 0.52),
    0 0 10px rgba(124, 229, 255, 0.28);
  transform: translateX(-50%) rotate(45deg);
}

.dial-center {
  position: absolute;
  z-index: 3;
  inset: 50%;
  display: grid;
  width: 72px;
  min-height: 72px;
  place-items: center;
  padding: 10px;
  border: 1px solid rgba(23, 32, 42, 0.1);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.84);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 10px 20px rgba(23, 32, 42, 0.12);
  color: var(--ink);
  text-align: center;
  transform: translate(-50%, -50%);
}

.dial-center strong {
  font-size: 17px;
  line-height: 1;
}

.dial-center span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  line-height: 1.1;
  text-transform: uppercase;
}

.dial-warning {
  position: absolute;
  right: 21px;
  bottom: 34px;
  z-index: 4;
  display: none;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-items: center;
  padding: 0;
  border: 1px solid color-mix(in srgb, var(--warning-color), transparent 42%);
  border-radius: 50%;
  background: color-mix(in srgb, var(--warning-color), white 86%);
  box-shadow:
    0 8px 16px rgba(23, 32, 42, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
  color: var(--warning-color);
  place-items: center;
}

.dial-warning.visible {
  display: grid;
}

.dial-warning .icon {
  width: 17px;
  height: 17px;
  color: var(--warning-color);
}

.dial-warning strong,
.dial-warning span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.dial-axis {
  position: absolute;
  z-index: 4;
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border: 1px solid rgba(23, 32, 42, 0.08);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 5px 12px rgba(23, 32, 42, 0.08);
  color: rgba(23, 32, 42, 0.42);
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
  pointer-events: none;
}

.dial-axis.north {
  top: -2px;
  left: 50%;
  transform: translateX(-50%);
}

.dial-axis.east {
  top: 50%;
  right: -2px;
  transform: translateY(-50%);
}

.dial-axis.south {
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
}

.dial-axis.west {
  top: 50%;
  left: -2px;
  transform: translateY(-50%);
}

.dial-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 5px 8px;
  padding: 6px 8px;
  border: 1px solid rgba(23, 32, 42, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--muted);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.dial-legend span {
  display: inline-flex;
  gap: 5px;
  align-items: center;
}

.dial-legend span::before {
  content: "";
  width: 12px;
  height: 5px;
  border-radius: 999px;
  background: currentColor;
}

.dial-legend .tmp {
  color: #f5a524;
}

.dial-legend .hum {
  color: #22b8cf;
}

.dial-legend .prs {
  color: #7c5cff;
}

.dial-legend .uvl {
  color: #c8d400;
}

.dial-legend .wnd {
  color: #6b7280;
}

.glance-panel {
  display: grid;
  grid-template-columns: repeat(3, 112px);
  justify-content: center;
  gap: 10px;
  width: min(100%, 356px);
  justify-self: end;
  align-items: start;
}

.glance-wind-dial,
.glance-gauge {
  position: relative;
  border: 1px solid rgba(23, 32, 42, 0.1);
  background:
    radial-gradient(circle at 50% 58%, rgba(23, 32, 42, 0.08), transparent 54%),
    radial-gradient(circle at 36% 26%, rgba(255, 255, 255, 0.92), transparent 42%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(241, 247, 247, 0.7)),
    rgba(255, 255, 255, 0.78);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    inset 0 -12px 24px rgba(23, 32, 42, 0.06),
    0 12px 22px rgba(23, 32, 42, 0.08);
}

.glance-wind-dial {
  width: 112px;
  aspect-ratio: 1;
  border-radius: 50%;
  color: var(--ink);
  text-align: center;
  overflow: hidden;
}

.glance-wind-track {
  position: absolute;
  inset: 13px;
  border-radius: 50%;
  background:
    repeating-conic-gradient(from -1deg, rgba(23, 32, 42, 0.2) 0 2deg, transparent 2deg 15deg),
    conic-gradient(from 180deg, rgba(229, 231, 235, 0.16), rgba(229, 231, 235, 0.02), rgba(229, 231, 235, 0.16));
  -webkit-mask: radial-gradient(circle, transparent 64%, #000 65%);
  mask: radial-gradient(circle, transparent 64%, #000 65%);
}

.glance-wind-needle {
  position: absolute;
  z-index: 4;
  top: 50%;
  left: 50%;
  width: 3px;
  height: 74%;
  border-radius: 999px;
  background:
    linear-gradient(180deg, transparent 0 17%, rgba(247, 252, 255, 0.92) 17% 49%, rgba(247, 252, 255, 0.14) 49% 62%, transparent 62% 100%);
  filter: drop-shadow(0 0 7px rgba(124, 229, 255, 0.22));
  transform: translate(-50%, -50%) rotate(var(--glance-wind-deg, 0deg));
  transform-origin: 50% 50%;
  transition: transform 300ms ease;
}

.glance-wind-needle::before {
  content: "";
  position: absolute;
  top: 5px;
  left: 50%;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background:
    radial-gradient(circle at 34% 32%, rgba(255, 255, 255, 0.9), transparent 34%),
    linear-gradient(145deg, #d9f1f7, #f7fcff);
  box-shadow:
    0 0 0 1px rgba(5, 20, 29, 0.42),
    0 0 8px rgba(124, 229, 255, 0.26);
  transform: translateX(-50%);
}

.glance-wind-needle::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #f7fcff;
  box-shadow:
    0 0 0 1px rgba(5, 20, 29, 0.38),
    0 0 7px rgba(124, 229, 255, 0.22);
  transform: translate(-50%, -50%);
}

.glance-wind-center {
  position: absolute;
  z-index: 3;
  inset: 50%;
  display: grid;
  width: 64px;
  min-height: 64px;
  place-items: center;
  padding: 8px;
  border: 1px solid rgba(23, 32, 42, 0.1);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.84);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 10px 20px rgba(23, 32, 42, 0.12);
  transform: translate(-50%, -50%);
}

.glance-wind-dial .dial-axis {
  width: 19px;
  height: 19px;
  font-size: 9px;
}

.glance-wind-dial .dial-axis.north {
  top: -1px;
}

.glance-wind-dial .dial-axis.east {
  right: -1px;
}

.glance-wind-dial .dial-axis.south {
  bottom: -1px;
}

.glance-wind-dial .dial-axis.west {
  left: -1px;
}

.glance-wind-center span,
.glance-gauge-face > span {
  font-size: 8px;
  font-weight: 950;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.glance-wind-center span {
  color: var(--muted);
}

.glance-wind-center strong {
  font-size: 23px;
  line-height: 1;
}

.glance-wind-center small,
.glance-gauge small {
  color: var(--muted);
  font-size: 8px;
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: 0.02em;
  max-width: 84%;
  text-align: center;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.glance-metrics {
  display: contents;
}

.glance-gauge {
  display: grid;
  width: 112px;
  aspect-ratio: 1;
  min-height: 0;
  place-items: center;
  row-gap: 2px;
  padding: 0;
  border-radius: 50%;
  color: currentColor;
  font-size: initial;
  font-weight: initial;
  line-height: 1;
  text-align: center;
  overflow: hidden;
}

.glance-gauge::before {
  content: "";
  position: absolute;
  inset: 11px;
  z-index: 1;
  border-radius: 50%;
  background:
    repeating-conic-gradient(from -2deg, rgba(23, 32, 42, 0.22) 0 2deg, transparent 2deg 22deg),
    conic-gradient(from 0deg, rgba(23, 32, 42, 0.16), rgba(23, 32, 42, 0.02), rgba(23, 32, 42, 0.16));
  -webkit-mask: radial-gradient(circle, transparent 69%, #000 70%);
  mask: radial-gradient(circle, transparent 69%, #000 70%);
}

.glance-gauge-arc {
  position: absolute;
  z-index: 1;
  inset: 8px;
  border-radius: 50%;
  background:
    conic-gradient(from 0deg, currentColor var(--glance-deg, 0deg), rgba(23, 32, 42, 0.08) 0 270deg, transparent 0);
  -webkit-mask: radial-gradient(circle, transparent 63%, #000 64%);
  mask: radial-gradient(circle, transparent 63%, #000 64%);
}

.glance-gauge-arc-feels {
  inset: 16px;
  opacity: 0.9;
  background:
    conic-gradient(from 0deg, color-mix(in srgb, currentColor, white 34%) var(--glance-feels-deg, 0deg), rgba(245, 165, 36, 0.11) 0 270deg, transparent 0);
  filter: drop-shadow(0 0 5px color-mix(in srgb, currentColor, transparent 62%));
  -webkit-mask: radial-gradient(circle, transparent 65%, #000 66%);
  mask: radial-gradient(circle, transparent 65%, #000 66%);
}

.glance-temp-anchor {
  position: absolute;
  z-index: 3;
  top: 50%;
  left: 50%;
  display: grid;
  width: 13px;
  height: 13px;
  place-items: center;
  border-radius: 999px;
  background: #f5a524;
  color: #071017;
  font-size: 8px;
  font-weight: 950;
  line-height: 1;
  letter-spacing: 0;
  box-shadow:
    0 0 0 1px rgba(255, 232, 170, 0.72),
    0 0 0 3px rgba(5, 20, 29, 0.34),
    0 0 9px rgba(245, 165, 36, 0.38);
  transform:
    translate(-50%, -50%)
    rotate(var(--glance-temp-high-deg, 0deg))
    translateY(-48px)
    rotate(calc(-1 * var(--glance-temp-high-deg, 0deg)));
  transform-origin: 50% 50%;
}

.glance-temp-anchor.low {
  background: rgba(226, 241, 247, 0.96);
  color: #162631;
  box-shadow:
    0 0 0 1px color-mix(in srgb, currentColor, rgba(5, 20, 29, 0.45) 48%),
    0 0 7px rgba(226, 241, 247, 0.28);
  transform:
    translate(-50%, -50%)
    rotate(var(--glance-temp-low-deg, 0deg))
    translateY(-48px)
    rotate(calc(-1 * var(--glance-temp-low-deg, 0deg)));
}

.glance-temp-anchor[hidden] {
  display: none;
}

.glance-gauge::after {
  content: "";
  position: absolute;
  inset: 25px;
  z-index: 1;
  border: 1px solid rgba(23, 32, 42, 0.07);
  border-radius: 50%;
  background:
    radial-gradient(circle at 36% 28%, rgba(255, 255, 255, 0.62), transparent 38%),
    rgba(255, 255, 255, 0.42);
}

.glance-gauge-face {
  position: absolute;
  z-index: 2;
  inset: 25px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 1px;
  min-width: 0;
  color: currentColor;
  line-height: 1;
  pointer-events: none;
  text-align: center;
}

.glance-gauge-face strong,
.glance-gauge-face small {
  z-index: 2;
}

.glance-gauge strong {
  color: currentColor;
  font-size: 21px;
  font-weight: 950;
  line-height: 0.98;
  letter-spacing: 0;
  white-space: nowrap;
}

.glance-pressure strong {
  font-size: 20px;
}

.glance-gauge.glance-temp {
  color: #f5a524;
}

.glance-gauge.glance-temp::before {
  background:
    repeating-conic-gradient(from 132deg, rgba(245, 165, 36, 0.74) 0 3deg, transparent 3deg 24deg),
    conic-gradient(from 0deg, rgba(245, 165, 36, 0.3), transparent 210deg, rgba(245, 165, 36, 0.22));
}

.glance-gauge.glance-humidity {
  color: #22b8cf;
}

.glance-gauge.glance-humidity::before {
  background:
    repeating-conic-gradient(from 132deg, rgba(34, 184, 207, 0.68) 0 2deg, transparent 2deg 18deg),
    conic-gradient(from 0deg, rgba(34, 184, 207, 0.26), transparent 210deg, rgba(34, 184, 207, 0.22));
}

.glance-gauge.glance-pressure {
  color: #7c5cff;
}

.glance-gauge.glance-pressure::before {
  background:
    repeating-conic-gradient(from 132deg, rgba(124, 92, 255, 0.78) 0 2deg, transparent 2deg 12deg),
    conic-gradient(from 0deg, rgba(124, 92, 255, 0.28), transparent 210deg, rgba(124, 92, 255, 0.22));
}

.glance-gauge.glance-uv {
  color: #c8d400;
}

.glance-gauge.glance-uv::before {
  background:
    repeating-conic-gradient(from 132deg, rgba(200, 212, 0, 0.78) 0 6deg, transparent 6deg 24deg),
    conic-gradient(from 0deg, rgba(200, 212, 0, 0.28), transparent 210deg, rgba(200, 212, 0, 0.22));
}
