/* ======================================================
 * Card 41 – Polar Night Orb
 * Cool, icy blues / greys.
 * ==================================================== */

.mw-card.card-41.mw41-shell {
  box-sizing: border-box;
  width: 100%;
  margin: 1.75rem auto;
  display: block;   /* not flex – acts like a normal block */
  clear: both;      /* forces each card onto its own row */
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.mw41-circle {
  position: relative;
  width: 100%;         /* fill the shell width */
  max-width: 340px;    /* but never grow beyond 340px */
  margin: 0 auto;      /* center inside the shell */
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  padding: 12px;
  /* keep the rest of your background + box-shadow as-is */
  background:
    radial-gradient(circle at 20% 0%, rgba(255, 255, 255, 0.2), transparent 55%),
    conic-gradient(
      from 210deg,
      #020513 0deg,
      #15213e 80deg,
      #243c63 150deg,
      #4f7ba5 220deg,
      #9ec3f0 290deg,
      #020513 360deg
    );
  box-shadow:
    0 18px 34px rgba(0, 0, 0, 0.75),
    0 0 24px rgba(79, 123, 165, 0.6),
    0 0 18px rgba(158, 195, 240, 0.55);
}

.mw41-inner {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  padding: 1.2rem 1.5rem 1.1rem;
  background:
    radial-gradient(circle at 20% 0%, rgba(203, 226, 255, 0.3), rgba(5, 10, 26, 0.98));
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(184, 209, 246, 0.45);
  color: #f7fbff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}

.mw41-inner::after {
  content: "";
  position: absolute;
  inset: -30%;
  background: radial-gradient(circle at 0 0, rgba(255, 255, 255, 0.28), transparent 60%);
  mix-blend-mode: screen;
  opacity: 0.0;
  animation: mw41-sheen 9s ease-in-out infinite;
}

@keyframes mw41-sheen {
  0% { opacity: 0; transform: translate3d(-15%, -15%, 0); }
  25% { opacity: 0.45; }
  60% { opacity: 0.15; transform: translate3d(20%, 20%, 0); }
  100% { opacity: 0; transform: translate3d(25%, 25%, 0); }
}

/* top */
.mw41-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.25rem;
  padding-top: 0.1rem;
  margin-bottom: 0.25rem;
  z-index: 1;
}

.mw41-location {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
}

.mw41-city {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-shadow: 0 0 6px rgba(158, 195, 240, 0.9);
}

.mw41-date {
  font-size: 0.8rem;
  opacity: 0.94;
}

.mw41-clock {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 0.75rem;
  opacity: 0.9;
}

.mw41-clock-label {
  text-transform: uppercase;
  letter-spacing: 0.13em;
  font-size: 0.7rem;
  opacity: 0.8;
}

.mw41-clock-time {
  margin-top: 0.12rem;
  font-size: 1rem;
  font-weight: 600;
}

/* middle */
.mw41-middle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.1rem;
  margin-top: 0.45rem;
  margin-bottom: 0.4rem;
}

.mw41-icon-wrap {
  font-size: 3.6rem;
  text-shadow:
    0 0 10px rgba(158, 195, 240, 0.9),
    0 0 18px rgba(79, 123, 165, 0.8);
}

.mw41-temp-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.22rem;
}

.mw41-temp-main {
  font-size: 3.4rem;
  font-weight: 600;
  line-height: 1;
}

.mw41-unit {
  margin-left: 0.1rem;
  font-size: 1.4rem;
}

.mw41-feels {
  font-size: 0.8rem;
  opacity: 0.9;
}

.mw41-desc {
  font-size: 0.84rem;
  opacity: 0.96;
}

/* hi / lo */
.mw41-ring-row {
  margin: 0.4rem auto 0.6rem;
  width: 88%;
  display: flex;
  justify-content: space-between;
  gap: 1.2rem;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  position: relative;
  color: #f3f7ff;
}

.mw41-ring-row::before {
  content: "";
  position: absolute;
  inset-inline: 6%;
  top: 50%;
  height: 1px;
  transform: translateY(-50%);
  background: linear-gradient(
    90deg,
    rgba(184, 209, 246, 0),
    rgba(184, 209, 246, 0.7),
    rgba(184, 209, 246, 0)
  );
  opacity: 0.7;
}

.mw41-ring-item {
  position: relative;
  padding-inline: 0;
  background: none;
}

.mw41-hi,
.mw41-lo {
  font-weight: 600;
  color: #e2eeff;
}

/* bottom */
.mw41-bottom {
  position: relative;
  margin-top: auto;
  padding-top: 0.4rem;
  padding-bottom: 0.35rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.85rem;
  color: #f7fbff;
  z-index: 1;
}

.mw41-bottom::before {
  content: "";
  position: absolute;
  inset-inline: -10%;
  bottom: -8%;
  height: 120%;
  background: radial-gradient(circle at 50% 100%, rgba(2, 5, 19, 0.9), transparent 65%);
  opacity: 0.98;
  pointer-events: none;
  z-index: 0;
}

.mw41-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.45rem 1.1rem;
  max-width: 90%;
  margin-inline: auto;
}

.mw41-row-small {
  font-size: 0.82rem;
  opacity: 1;
}

.mw41-stat {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  white-space: nowrap;
}

.mw41-stat i {
  font-size: 0.95rem;
}

.mw41-updated {
  margin-top: 0.25rem;
  font-size: 0.8rem;
  opacity: 1;
  text-align: center;
  position: relative;
  z-index: 2;
}

.mw41-ago {
  margin-left: 0.25rem;
  opacity: 0.9;
}

@media (max-width: 420px) {
  .mw41-inner {
    padding: 1rem 1.15rem 0.85rem;
  }

  .mw41-middle {
    gap: 0.85rem;
  }

  .mw41-temp-main {
    font-size: 3rem;
  }

  .mw41-ring-row {
    width: 92%;
    font-size: 0.85rem;
  }

  .mw41-row {
    gap: 0.35rem 0.8rem;
    max-width: 94%;
  }

  .mw41-stat {
    font-size: 0.8rem;
  }
}
