/* ==========================================================================
   Responsive. The base styles are the 1440px design; these blocks adapt it
   for laptops, tablets and phones.
   ========================================================================== */

/* Laptop */
@media (max-width: 1280px) {
  :root {
    --content-gutter: 64px;
    --section-padding: 112px;
  }

  .tour__tickets { grid-template-columns: repeat(3, 1fr); }
}

/* Tablet */
@media (max-width: 1024px) {
  :root {
    --content-gutter: 40px;
    --section-padding: 96px;
  }

  .hero { min-height: 820px; padding-top: 140px; }

  /* The singer photo moves above the copy instead of sitting behind it */
  .breakout-moment__image {
    position: relative;
    left: 0;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
  }

  .breakout-moment__fade {
    top: 0;
    left: 0;
    width: 100%;
    height: calc(100vw * 3 / 4);
    background: linear-gradient(180deg, rgba(5, 5, 7, 0) 50%, var(--color-night) 100%);
  }

  .breakout-moment__layout { min-height: 0; padding-block: 0; }

  .breakout-moment__copy { max-width: 720px; }

  .breakout-moment::before { display: none; }

  .rewards__bento { grid-template-columns: 1fr; }

  .stages__timeline::before { left: 32px; }

  .stage,
  .stage--reversed {
    grid-template-columns: 64px 1fr;
    grid-template-areas:
      "node media"
      ". body";
    column-gap: 32px;
    row-gap: 24px;
    align-items: start;
  }

  .program-card { padding: 36px; }

  .vote-dial__ring { width: 220px; height: 220px; }

  .vote-dial__number { font-size: 90px; }
}

/* Large phone */
@media (max-width: 768px) {
  :root {
    --content-gutter: 20px;
    --section-padding: 72px;
  }

  .section-header { margin-bottom: 40px; }

  .hero { min-height: 0; padding: 120px var(--content-gutter) 48px; }

  .stat-chip { padding: 10px 18px; gap: 8px; }

  .stat-chip__number { font-size: 28px; }

  .ticker { height: 52px; }

  .ticker__item { font-size: 22px; }

  .partners__band { padding-block: 40px; }

  .partners__logos { gap: 24px 40px; }

  .partners__logo { height: 34px; max-width: 140px; }

  .partners__logo--simplatask { height: 56px; }

  .video-player__play { width: 80px; height: 80px; font-size: 32px; }

  .rewards__total { padding: 28px; }

  .rewards__tiles,
  .program__grid,
  .entry__info,
  .voting__grid,
  .qualify__panels { grid-template-columns: 1fr; }

  .reward-tile { min-height: 0; }

  .reward-tile__title { font-size: 26px; }

  .rewards__strip { font-size: 26px; }

  .breakout-moment__feature {
    grid-template-columns: 1fr 150px;
    gap: 16px;
    padding-left: 20px;
  }

  .breakout-moment__quote { font-size: 28px; }

  .teaser__play { width: 40px; height: 40px; font-size: 16px; }

  .stages__timeline::before { left: 24px; }

  .stage,
  .stage--reversed {
    grid-template-columns: 48px 1fr;
    column-gap: 16px;
  }

  .number-node { width: 48px; height: 48px; font-size: 22px; }

  .tour__tickets { grid-template-columns: repeat(2, 1fr); gap: 14px; }

  .ticket { padding: 18px; gap: 12px; }

  .ticket__city { font-size: 19px; padding-bottom: 12px; }

  .ticket__days { font-size: 48px; }

  .tour__finale { padding: 28px; }

  .judge__portrait { width: 220px; height: 220px; padding: 6px; }

  .entry__stage { height: auto; padding-block: 40px; }

  .laptop__lid { padding: 8px; border-width: 2px; border-radius: 14px; }

  .laptop__base { height: 12px; }

  .laptop__base::before { width: 60px; height: 4px; }

  .laptop__notch { width: 50px; height: 8px; }

  .laptop__play { width: 64px; height: 64px; font-size: 26px; }


  /* The stepper turns vertical; its line follows the nodes down the left edge */
  .stepper {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .stepper::before {
    top: 0;
    bottom: 0;
    left: 23px;
    right: auto;
    width: 2px;
    height: auto;
    background: var(--gradient-orange-blue-vertical);
  }

  .stepper__step {
    display: grid;
    grid-template-columns: 48px 1fr;
    column-gap: 20px;
    row-gap: 10px;
    padding-inline: 0;
    text-align: left;
    align-items: start;
  }

  .stepper__step .number-node { grid-row: span 6; }

  .stepper__step > :not(.number-node) { grid-column: 2; }

  .stepper__step .arrow-link { justify-self: start; }

  .info-card,
  .rules-panel { padding: 28px; }

  .info-card__title,
  .rules-panel__title { font-size: 28px; }

  .site-footer__inner {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .site-footer__powered { justify-self: center; }
}

/* Phone */
@media (max-width: 420px) {
  .tour__tickets { grid-template-columns: 1fr 1fr; gap: 10px; }

  .ticket { padding: 14px; }

  .ticket__city { font-size: 16px; }

  .ticket__month { font-size: 12px; letter-spacing: 1.4px; }

  .ticket__days { font-size: 40px; }

  .ticket__select { padding: 10px 12px; font-size: 13px; }

  .ticket__button { gap: 6px; padding: 12px 8px; font-size: 11px; letter-spacing: 0.5px; }

  .ticket__button .icon { font-size: 14px; }

  .vote-dial__ring { width: 200px; height: 200px; }
}
