/* Combos: narrow-screen rules, motion preferences and keyframes. Loaded last of the browse styles so these overrides keep their place in the cascade. */
/* Mobile navigation icon for the Combos link (outline icon, not Phosphor). */
.mobile-nav svg.combos-nav-icon {
  fill: none;
  stroke: currentColor;
}

@media (max-width: 700px) {
  .mobile-nav:has([data-combos-nav]:not([hidden])) {
    grid-template-columns: repeat(5, 1fr);
    max-width: 560px;
  }
}

@media (max-width: 960px) {
  .combos-page .cb-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .combos-page .cb-slip {
    display: none;
  }

  .combos-page .cb-bar {
    display: flex;
  }

  .combos-page .cb-has-picks .cb-pad {
    padding-bottom: 104px;
  }
}

@media (max-width: 760px) {
  .combos-page .cb-herogrid {
    grid-template-columns: minmax(0, 1fr);
  }

  /* The artwork on the right is for wide screens only. */
  .combos-page .cb-heroartwrap {
    display: none;
  }

  .combos-page .cb-h {
    font-size: 28px;
    line-height: 34px;
  }

  .combos-page .cb-hero {
    padding: 22px 18px 18px;
  }
}

@media (max-width: 700px) {
  /* The app drops its main padding here; keep the design's gutter. */
  .combos-page .cb-root {
    padding-inline: 24px;
  }

  .combos-page .cb-bar {
    bottom: calc(98px + env(safe-area-inset-bottom));
  }

  .combos-page .cb-toast {
    bottom: 170px;
  }

  .combos-page .cb-has-picks .cb-pad {
    padding-bottom: 180px;
  }
}

@media (max-width: 600px) {
  .combos-page .cb-root {
    padding-inline: 16px;
  }
}

@media (hover: none) {
  .combos-page .cb-root button:hover,
  .combos-page .cb-layer button:hover {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .combos-page *,
  .combos-page *::before,
  .combos-page *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

@keyframes cb-float {
  50% {
    transform: translateY(-7px);
  }
}

@keyframes cb-pulse {
  0% {
    opacity: 0.7;
    transform: scale(0.8);
  }
  100% {
    opacity: 0;
    transform: scale(1.7);
  }
}

@keyframes cb-twinkle {
  50% {
    opacity: 0.3;
    transform: scale(0.4);
  }
}

@keyframes cb-shimmer {
  to {
    background-position: -200% 0;
  }
}

@keyframes cb-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes cb-sheet {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes cb-toast {
  from {
    opacity: 0;
    transform: translate(-50%, 10px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}
