/* ===== PulseChain day counter + PLS weather widget ===== */
#plsWeather {
  position: fixed;
  top: 92px;
  left: 24px;
  z-index: 1200;
  width: 178px;
  padding: 10px 12px 11px;
  border-radius: 14px;
  background: rgba(6, 10, 14, 0.72);
  border: 1px solid rgba(0, 255, 65, 0.28);
  box-shadow: 0 6px 26px rgba(0, 0, 0, 0.55), inset 0 0 22px rgba(0, 255, 65, 0.05);
  backdrop-filter: blur(7px);
  font-family: var(--font-main);
  color: #e8f6ee;
  cursor: help;
  transition: transform 0.25s ease, border-color 0.25s ease;
}
#plsWeather:hover { transform: translateY(-2px); border-color: rgba(0, 255, 65, 0.55); }

.wx-top {
  display: flex;
  align-items: center;
  gap: 10px;
}
.wx-day-block { line-height: 1.05; }
.wx-day-label {
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #7fe3a3;
  opacity: 0.85;
}
.wx-day-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 0 12px rgba(0, 255, 65, 0.45);
}
.wx-day-sub {
  font-size: 0.58rem;
  color: #9db4a8;
  margin-top: 1px;
}

/* --- scene --- */
.wx-scene {
  position: relative;
  width: 58px;
  height: 50px;
  flex: 0 0 58px;
  overflow: hidden;
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(10, 24, 38, 0.9), rgba(4, 10, 16, 0.5));
}

/* sun */
.wx-sun {
  position: absolute;
  top: 9px;
  left: 19px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 32%, #fff6c4, #ffd24a 55%, #ff9a1f 100%);
  box-shadow: 0 0 14px rgba(255, 190, 60, 0.75);
  animation: wxSunPulse 3.4s ease-in-out infinite;
}
.wx-sun::before {
  content: '';
  position: absolute;
  inset: -13px;
  border-radius: 50%;
  background: repeating-conic-gradient(from 0deg, rgba(255, 205, 80, 0.55) 0deg 6deg, transparent 6deg 30deg);
  mask: radial-gradient(circle, transparent 52%, #000 54%, #000 100%);
  -webkit-mask: radial-gradient(circle, transparent 52%, #000 54%, #000 100%);
  animation: wxSpin 22s linear infinite;
}
@keyframes wxSunPulse {
  0%, 100% { box-shadow: 0 0 12px rgba(255, 190, 60, 0.6); }
  50%      { box-shadow: 0 0 22px rgba(255, 205, 90, 0.95); }
}
@keyframes wxSpin { to { transform: rotate(360deg); } }

/* cloud */
.wx-cloud {
  position: absolute;
  width: 32px;
  height: 12px;
  border-radius: 12px;
  background: linear-gradient(180deg, #e9eef3, #b9c4ce);
  animation: wxDrift 6s ease-in-out infinite alternate;
}
.wx-cloud::before,
.wx-cloud::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  background: inherit;
}
.wx-cloud::before { width: 15px; height: 15px; top: -8px; left: 5px; }
.wx-cloud::after  { width: 11px; height: 11px; top: -6px; left: 17px; }
.wx-cloud.small { width: 22px; height: 9px; top: 26px; left: 4px; opacity: 0.85; }
.wx-cloud.main  { top: 18px; left: 12px; }
.wx-cloud.dark  { background: linear-gradient(180deg, #9aa7b3, #5d6a76); }
.wx-cloud.storm { background: linear-gradient(180deg, #7c8794, #414c58); }
@keyframes wxDrift {
  from { transform: translateX(-3px); }
  to   { transform: translateX(3px); }
}

/* rain */
.wx-drop {
  position: absolute;
  width: 2px;
  height: 8px;
  border-radius: 2px;
  background: linear-gradient(180deg, rgba(120, 210, 255, 0.2), #6fd0ff);
  animation: wxFall 0.9s linear infinite;
}
@keyframes wxFall {
  0%   { transform: translateY(0); opacity: 0; }
  15%  { opacity: 1; }
  100% { transform: translateY(22px); opacity: 0; }
}

/* lightning */
.wx-bolt {
  position: absolute;
  top: 28px;
  left: 26px;
  width: 10px;
  height: 16px;
  background: #ffe14d;
  clip-path: polygon(55% 0, 15% 55%, 45% 55%, 25% 100%, 85% 42%, 52% 42%, 78% 0);
  filter: drop-shadow(0 0 6px rgba(255, 225, 77, 0.9));
  animation: wxFlash 2.6s ease-in-out infinite;
}
@keyframes wxFlash {
  0%, 62%, 100% { opacity: 0; }
  66%, 72%      { opacity: 1; }
  69%           { opacity: 0.25; }
}

/* --- bottom row --- */
.wx-bottom {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-top: 8px;
  padding-top: 7px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
}
.wx-pls-label {
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  color: #9db4a8;
}
.wx-pls-chg { font-size: 0.92rem; font-weight: 700; }
.wx-pls-chg.up { color: #00ff77; }
.wx-pls-chg.down { color: #ff5b5b; }
.wx-pls-chg.flat { color: #cfd8d3; }
.wx-mood {
  margin-top: 5px;
  font-size: 0.6rem;
  color: #8fa79a;
  line-height: 1.25;
}

@media (max-width: 1500px) {
  #plsWeather { width: 158px; top: 86px; left: 8px; padding: 8px 9px 9px; }
  .wx-day-value { font-size: 1.25rem; }
  .wx-scene { width: 50px; height: 44px; flex-basis: 50px; }
}
@media (max-width: 900px) {
  #plsWeather {
    position: static;
    width: min(320px, 92%);
    margin: 88px auto 0;
  }
}

/* keep the widget clear of the fixed left token rail on desktop */
@media (min-width: 901px) {
  #plsWeather { left: 236px; }
}
