:root {
  /* COLORS */
  --bg: linear-gradient(180deg, #1d1c1c, #000000);
  --card-bg: #222222;
  --text-white: #ffffff;
  --text-muted: #636363;
  --accent: #59A6F7;
  --accent-pink: #e673c6;

  /* FONT SIZE TOKENS */
  --fs-location-min: 16px;
  --fs-location-max: 19px;

  --fs-title-min: 26px;
  --fs-title-max: 38px;

  --fs-tomorrow-min: 48px;
  --fs-tomorrow-max: 77px;

  --fs-metric-value-min: 36px;
  --fs-metric-value-max: 64px;

  --fs-metric-label-min: 14px;
  --fs-metric-label-max: 22px;

  --fs-others-label-min: 10px;
  --fs-others-label-max: 20px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* GLOBAL RESET + SAFE AREA FIX */
html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  overscroll-behavior: none;
  font-family: "Inter", system-ui, sans-serif;
  height: 100%;
  min-height: 100%;
}

/* FULL SCREEN + NO WHITE BARS ON SAFARI */
body {
  /* prevents white top/bottom bars */
  min-height: 100vh;
  min-height: -webkit-fill-available;

  /* keep your existing layout padding */
  padding-left: 24px;
  padding-right: 24px;
  background: var(--bg);
}

/* PAGE LAYOUT */
.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(32px, 6vw, 60px);
  background: var(--bg);
}

.header {
  text-align: center;
}

/* HEADER TEXT */

.location {
  font-size: clamp(var(--fs-location-min), 3vw, var(--fs-location-max));
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.04em;
}

.title {
  font-size: clamp(var(--fs-title-min), 6vw, var(--fs-title-max));
  font-weight: 700;
  color: var(--text-white);
  margin-top: -5px;
  letter-spacing: -0.04em;
}

.subtitle {
  font-size: clamp(var(--fs-title-min), 6vw, var(--fs-title-max));
  font-weight: 700;
  color: var(--text-muted);
  margin-top: -5px;
  letter-spacing: -0.04em;
}

/* CARD */

.card {
  width: 100%;
  max-width: 780px;
  background: var(--card-bg);
  border-radius: 20px;
  padding: clamp(24px, 5vw, 36px);
  display: flex;
  flex-direction: column;
  gap: clamp(24px, 5vw, 36px);
  position: relative;
}

/* TOMORROW */

.current {
  text-align: center;
  display: flex;
  flex-direction: column;
}

.current-percent {
  font-size: clamp(var(--fs-tomorrow-min), 12vw, var(--fs-tomorrow-max));
  font-weight: 700;
  color: var(--text-white);
  letter-spacing: -0.04em;
}

.current-label {
  font-size: clamp(var(--fs-tomorrow-min), 10vw, var(--fs-tomorrow-max));
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: -0.02em;
  margin-top: clamp(-20px, -4vw, -30px);
}

.others {
  position: absolute;  /* << frees layout, floats it */
  top: 1;
  right: 0;
  margin-left: auto;
  align-self: flex-start;
  display: flex;
  width: clamp(80px, 27vw, 225px);
  margin-top: 32px;
  margin-right: 24px;
}

.others-amount {
  font-size: clamp(var(--fs-others-label-min), 2.5vw, var(--fs-others-label-max));
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: -0.02em;
  margin-top: clamp(-20px, -4vw, -30px);
  text-align: center;
}

/* DIVIDER */

.line {
  width: 100%;
  max-width: 690px;
  height: 5px;

  background: linear-gradient(
    90deg,
    var(--accent) 0%,
    var(--accent-pink) 50%,
    var(--accent) 100%
  );
  background-size: 200% 100%;
  animation: slideDivider 3s linear infinite;

  margin: 0 auto;
  border-radius: 10px;
}

@keyframes slideDivider {
  0%   { background-position: 0% center; }
  100% { background-position: -200% center; }
}

.forecast-label {
  font-size: clamp(var(--fs-metric-label-min), 3vw, var(--fs-metric-label-max));
  font-weight: 700;
  background: var(--text-white);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: -0.04em;
  text-align: center;
  margin-top: -5px;
}

/* METRICS */

.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(12px, 3vw, 18px);
  margin-top: -15px;
}

.metric {
  text-align: center;
}

.metric-value {
  font-size: clamp(var(--fs-metric-value-min), 8vw, var(--fs-metric-value-max));
  font-weight: 700;
  color: var(--text-white);
  letter-spacing: -0.04em;
}

.metric-label {
  font-size: clamp(var(--fs-metric-label-min), 3.5vw, var(--fs-metric-label-max));
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: -0.02em;
  margin-top: 4px;
}

/* DISCLAIMER */
.disclaimer {
  font-size: clamp(10px, 2.5vw, 14px);
  font-weight: 399;
  color: var(--text-muted);
  text-align: center;
  margin-top: -10px;
  margin-bottom: -10px;
}

/* MOBILE */

@media (max-width: 600px) {
  .metrics {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 24px;
  }
}