/*
  YellowOrGreen — responsive.css
  Breakpoint-specific adjustments. Mobile isn't a shrunk desktop layout:
  the ball shrinks further, buttons stack, and spacing tightens so the
  whole court + ball + poll composition still fits without scrolling.
*/

/* Tablet ---------------------------------------------------------------- */
@media (max-width: 991.98px) {
  .ball-img {
    width: clamp(130px, 26vw, 210px);
  }

  .poll-card {
    width: min(520px, 94vw);
  }
}

/* Mobile ------------------------------------------------------------------ */
@media (max-width: 575.98px) {
  .site-header {
    padding: 0.85rem 1rem;
  }

  .hero {
    gap: 0.65rem;
    padding-top: 0.25rem;
  }

  .headline {
    font-size: clamp(1.4rem, 6.6vw, 1.9rem);
    margin-bottom: 0.2rem;
  }

  .subhead {
    font-size: 0.95rem;
  }

  .ball-img {
    width: clamp(96px, 30vw, 150px);
  }

  .poll-card {
    width: 94vw;
    border-radius: var(--radius-md);
    padding: 1rem;
  }

  .poll-options {
    grid-template-columns: 1fr;
    gap: 0.7rem;
  }

  .poll-heading {
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
  }

  .option-percent {
    font-size: 1.5rem;
  }
}

/* Very small mobile --------------------------------------------------------- */
@media (max-width: 359.98px) {
  .headline {
    font-size: 1.25rem;
  }

  .ball-img {
    width: 84px;
  }

  .poll-card {
    padding: 0.85rem;
  }

  .vote-btn {
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
  }
}

/* Short viewports (landscape phones / small laptops): trim vertical rhythm
   so the hero still fits without scrolling. */
@media (max-height: 700px) {
  .site-header {
    padding: 0.6rem 1rem;
  }

  .hero {
    gap: 0.5rem;
  }

  .ball-img {
    width: clamp(90px, 16vw, 150px);
  }

  .poll-card {
    padding: 1rem 1.25rem;
  }

  .poll-options {
    gap: 0.6rem;
  }
}

/* No horizontal scrolling, ever. */
html, body {
  max-width: 100%;
  overflow-x: hidden;
}
