﻿/* Responsive navigation, content, deck, and reward modal adjustments. */

@media (max-width: 768px) {
  .nav-logo img {
    display: block;
    max-width: 100%;
    height: 30px;
    object-fit: contain;
    object-position: left center;
  }

  nav {
    padding: 0 12px;
  }

  nav .wrapper {
    padding: 0;
    gap: 12px;
  }

  .nav-logo {
    flex: 0 1 min(58vw, 190px);
    min-width: 0;
    margin-left: 0;
  }

  .toggler {
    position: relative;
    z-index: 9999;
    display: flex;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    padding: 6px;
    border-radius: 5px;
  }

  .toggler span,
  .toggler span::before,
  .toggler span::after {
    position: absolute;
    width: 32px;
    height: 3px;
    border-radius: 999px;
    background: var(--color-main);
    transition: 0.3s;
  }

  .toggler span {
    position: relative;
  }

  .toggler span::before {
    content: "";
    top: -10px;
    left: 0;
  }

  .toggler span::after {
    content: "";
    bottom: -10px;
    left: 0;
  }

  .toggler.active span {
    background: transparent;
  }

  .toggler.active span::before {
    top: 0;
    transform: rotate(45deg);
  }

  .toggler.active span::after {
    top: 0;
    transform: rotate(-45deg);
  }

  nav .menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
    background: #111111f2;
  }

  nav .menu.active {
    display: flex;
  }

  nav .menu-item a {
    padding: 0.75rem 1rem;
  }

  .first-section {
    min-height: auto;
    padding: 4rem 1rem;
  }

  .first-section .wrapper {
    margin: 0 auto;
  }

  .first-section .subtitle {
    font-size: clamp(0.8rem, 4vw, 29px);
  }
}

@media (max-width: 720px) {

  .content p,
  #promo-codes p {
    font-size: 16px;
  }

  #important-info .wrapper,
  #promo-codes.wrapper {
    padding-inline: 10px;
  }

  #important-info .content-limit,
  #promo-codes.wrapper .content-limit {
    padding-inline: 12px;
  }

  .combo-deck-app .shell {
    width: min(100vw - 20px, 1480px);
    padding-top: 16px;
  }

  .combo-deck-app .hero {
    grid-template-columns: 1fr;
  }

  .combo-deck-app .actions {
    justify-content: flex-start;
  }

  .combo-deck-app .deck {
    grid-template-columns: repeat(auto-fill, minmax(118px, 1fr));
  }

  .combo-deck-app .slot-row {
    grid-template-columns: repeat(2, minmax(116px, 1fr));
  }

  .combo-deck-app .reward-dialog {
    padding: 14px;
  }

  .combo-deck-app .reward-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .combo-deck-app .reward-head {
    flex-direction: row;
    align-items: flex-start;
  }

  .combo-deck-app .reward-row {
    grid-template-columns: 1fr;
  }

  .combo-deck-app .reward-items {
    justify-content: flex-start;
  }

  .combo-deck-app .promo-copy {
    width: 100%;
    flex: 1 1 auto;
    justify-content: space-between;
  }

  .combo-deck-app .champ-card {
    height: 188px;
    grid-template-rows: 138px 50px;
  }

  .combo-deck-app .champ-art {
    height: 100%;
  }
}

@media (max-width: 480px) {
  .ytblink {
    height: 150px;
  }
}