/* ============================= */
/* HARD MOBILE LAYOUT LOCK      */
/* ============================= */

html, body {
  width: 100%;
  overflow-x: hidden;   /* Stops left-right sliding */
  margin: 0;
  padding: 0;
}
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI",
               Roboto, Helvetica, Arial, sans-serif;
  background: #0f172a;
  color: white;
  text-align: center;
  padding: 40px;
}

h1 {
  margin-bottom: 20px;
}

.counter-box {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  box-sizing: border-box;
}


.row {
  display: flex;
  justify-content: space-between;
  font-size: 18px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.row:last-child {
  border-bottom: none;
}

/* Default number color */
.row span:last-child {
  color: white;
  transition: color 0.2s ease;
}

/* Always green */
.always-green {
  color: #00ff88 !important;
  font-weight: 600;
}

/* Green when increasing */
.up {
  color: #00ff88 !important;
  font-weight: 600;
}

/* Red when decreasing */
.down {
  color: #ff4d4d !important;
  font-weight: 600;
}
/* ============================= */
/* WORLD POPULATION HIGHLIGHT   */
/* ============================= */

.world-row {
  font-size: 18px;        /* reduced from 20px */
  font-weight: 600;
  line-height: 1.3;       /* prevents clipping on iOS */
  padding: 10px 0;        /* tighter vertical spacing */
  margin-bottom: 10px;
  border-bottom: 2px solid rgba(0, 255, 136, 0.3);
  background: linear-gradient(
    to right,
    rgba(0, 255, 136, 0.05),
    rgba(0, 0, 0, 0)
  );
  border-radius: 6px;
}


/* Slight glow on the number only */
.world-row span:last-child {
  text-shadow: 0 0 6px rgba(0, 255, 136, 0.25);
}
/* ============================= */
/* SYSTEM-STYLE INFO NOTE       */
/* ============================= */

.info-note {
  max-width: 760px;
  margin: 26px auto 0;
  padding: 0 8px;
  text-align: center;
  font-size: 14.5px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.45);
  font-style: italic;
  letter-spacing: 0.15px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI",
               Roboto, Helvetica, Arial, sans-serif;
}

/* Paragraph spacing */
.info-note p {
  margin-bottom: 10px;
}

/* Subtle emphasis (not bold blog style) */
.info-note strong {
  font-weight: 500;
  color: rgba(255, 255, 255, 0.65);
}

.info-note em {
  font-style: italic;
  color: rgba(255, 255, 255, 0.6);
}
@media (max-width: 480px) {
  h1 {
    font-size: 22px;
    line-height: 1.3;
  }
}
/* ============================= */
/* FULLSCREEN MOBILE FIX        */
/* ============================= */

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
}
.page-wrapper {
  min-height: 100vh;
  width: 100%;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 32px 16px 48px;
  box-sizing: border-box;
  overflow-x: hidden;
}


/* Prevent content from touching edges on mobile */
.counter-box {
  width: 100%;
  max-width: 520px;
}

/* Improve spacing on phones */
@media (max-width: 480px) {
  h1 {
    font-size: 22px;
    line-height: 1.3;
    text-align: center;
  }

  .row {
    font-size: 15px;
    padding: 8px 0;
  }

  .info-note {
    font-size: 13px;
  }
}
.row span {
  max-width: 70%;
  word-wrap: break-word;
}
@media (max-width: 480px) {
  body {
    overflow-x: hidden;
  }
}
h1 {
  margin-top: 20px;
  margin-bottom: 18px;
}

.counter-box {
  margin-top: 10px;
  margin-bottom: 24px;
}

.info-note {
  margin-top: 20px;
}
/* ============================= */
/* MINIMAL STATISTICS (DESKTOP) */
/* ============================= */

@media (min-width: 769px) {

  body {
    background: #0b1120;
  }

  .counter-box {
    background: transparent;
    box-shadow: none;
    border-radius: 0;
    padding: 0;
    max-width: 620px;
  }

  /* WORLD METRIC – PRIMARY */
  .world-row {
    font-size: 22px;
    font-weight: 600;
    padding: 14px 0 16px;
    border-bottom: 1px solid rgba(255,255,255,0.15);
    letter-spacing: 0.2px;
  }

  .world-row span:last-child {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 0.4px;
  }

  /* SECTION LABEL */
  .section-label {
    margin-top: 14px;
    margin-bottom: 6px;
    font-size: 11px;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.45);
  }

  /* DATA ROWS – CLEAN TABLE STYLE */
  .row {
    font-size: 15.5px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
  }

  .row:last-child {
    border-bottom: none;
  }

  .row span:first-child {
    opacity: 0.85;
    letter-spacing: 0.1px;
  }

  .row span:last-child {
    font-weight: 600;
    letter-spacing: 0.3px;
  }

}








