/* Responsive layout overrides */

@media(max-width:600px) {
    #specials {
        margin-bottom: 32px;
    }

    #specials .special-slide {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        height: 112px;
        min-height: 0;
        display: grid;
        grid-template-columns: 40% minmax(0, 1fr);
        padding: 0;
    }

    #specials .special-slide .row-thumb-wrap {
        grid-column: 1;
        grid-row: 1;
        width: 100%;
        height: 100%;
        min-height: 0;
        aspect-ratio: auto;
    }

    #specials .special-slide .row-name {
        font-size: 17px;
    }

    #specials .special-slide .row-right {
        grid-column: 2;
        text-align: left;
        margin-top: 0;
    }

    #specials .special-slide .row-price {
        font-size: 16px;
    }

    .menu-row {
        grid-template-columns: 1fr;
        gap: 9px;
        padding: 9px;
    }

    .row-right {
        grid-column: auto;
        text-align: left;
        margin-top: 0;
    }

    .row-thumb-wrap {
        width: 100%;
        height: auto;
        aspect-ratio: 1 / 0.74;
    }

    .menu-body {
        padding: 0 0 60px;
    }

    #menuContainer {
        padding: 60px 20px 0;
    }

    .category-section {
        margin-bottom: 58px;
    }
}

@media (max-width: 600px) {

  .cover {
    min-height: 100svh;
    height: 100svh;
    padding: 42px 18px 74px;
    justify-content: center;
  }

  .cover-photo img {
    inset: 14px;
    width: calc(100% - 28px);
    height: calc(100% - 28px);
    object-fit: cover;
    object-position: center;
    filter: brightness(0.38) saturate(0.88);
  }

  .cover-photo::after {
    background:
      linear-gradient(180deg, rgba(8, 8, 6, 0.08) 0%, rgba(8, 8, 6, 0.74) 68%, rgba(8, 8, 6, 0.92) 100%),
      radial-gradient(ellipse 80% 52% at 50% 58%, rgba(255, 229, 0, 0.14) 0%, transparent 72%);
  }

  .cover-frame {
    inset: 14px;
  }

  .cover-logo-fallback {
    width: 82px;
    height: 82px;
    margin-bottom: 26px;
  }

  .cover-pre {
    font-size: 9px;
    letter-spacing: 0.32em;
    margin-bottom: 14px;
  }

  .cover-name {
    max-width: min(100%, 300px);
    font-size: clamp(28px, 8.2vw, 36px);
    line-height: 0.96;
    letter-spacing: 0.025em;
    text-wrap: balance;
  }

  .cover-rule {
    margin: 18px auto 14px;
  }

  .rule-line {
    width: 54px;
  }

  .cover-tagline {
    font-size: 17px;
  }

  .scroll-hint {
    bottom: 24px;
    width: 100%;
    font-size: 8px;
    letter-spacing: 0.26em;
  }

  .category-nav {
    position: sticky;
    top: 0;
    z-index: 50;
    min-height: 44px;
    background: rgba(8, 8, 6, 0.98);
    padding: 0 12px;
    overflow-x: auto;
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 8px;
    margin-bottom: 8px;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
  }

  .category-btn {
    white-space: nowrap;
    font-size: 9px;
    line-height: 42px;
    letter-spacing: 0.1em;
    padding: 0 8px;
    flex-shrink: 0;
    scroll-snap-align: start;
  }

  .menu-body {
    padding-bottom: 36px;
  }

  .menu-search {
    width: calc(100% - 44px);
    max-width: none;
    padding: 8px 0;
  }

  .menu-search input {
    height: 36px;
    border-radius: 18px;
    font-size: 12px;
    letter-spacing: 0.03em;
    padding: 0 14px;
    text-align: center;
    box-shadow: none;
  }

  #menuContainer {
    padding: 18px 12px 0;
  }

  .cat-title {
    font-size: 20px;
    letter-spacing: 0.06em;
    line-height: 1.2;
  }

  .cat-header {
    gap: 14px;
    margin-bottom: 16px;
  }

  .category-section {
    margin-bottom: 34px;
    scroll-margin-top: 64px;
  }

  .category-section:not(#specials) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .category-section:not(#specials) .menu-row {
    grid-template-columns: 1fr;
    align-items: stretch;
    gap: 7px;
    min-height: 0;
    padding: 7px;
    border-radius: 6px;
  }

  .category-section:not(#specials) .row-thumb-wrap {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 0.78;
    border-radius: 5px;
  }

  .category-section:not(#specials) .row-left {
    min-width: 0;
  }

  .category-section:not(#specials) .row-name {
    display: flex;
    align-items: center;
    font-size: 14px;
    line-height: 1.08;
    margin-bottom: 3px;
    overflow-wrap: anywhere;
  }

  .category-section:not(#specials) .row-badges {
    gap: 6px;
  }

  .category-section:not(#specials) .row-desc {
    font-size: 10px;
    line-height: 1.18;
    min-height: 22px;
  }

  .category-section:not(#specials) .row-right {
    grid-column: 1;
    align-self: end;
    justify-self: start;
    text-align: left;
    margin-top: 0;
  }

  .category-section:not(#specials) .row-price {
    font-size: 13px;
  }

  .category-section:not(#specials) .row-badge {
    display: inline-flex;
    font-size: 8px;
    letter-spacing: 0.18em;
    min-height: 22px;
    padding: 6px 9px;
    border-width: 1px;
  }

  .menu-subhead {
    font-size: 12px;
    letter-spacing: 0.08em;
    padding-top: 18px;
    margin-top: 12px;
  }

  #specials {
    margin-top: 6px;
    margin-bottom: 30px;
  }

  .specials-viewport {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .specials-track {
    width: 100%;
    gap: 0;
  }

  #specials .cat-header {
    margin-bottom: 18px;
  }

  #specials .special-slide {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    flex: 0 0 100%;
    height: 112px;
    min-height: 0;
    display: grid;
    grid-template-columns: 40% minmax(0, 1fr);
    padding: 0;
  }

  #specials .special-slide .row-thumb-wrap {
    grid-column: 1;
    grid-row: 1;
    width: 100%;
    height: 100%;
    min-height: 0;
    aspect-ratio: auto;
  }

  #specials .special-slide .row-thumb {
    object-fit: cover;
    object-position: center;
    width: 100%;
    height: 100%;
  }

  #specials .special-slide .row-name {
    font-size: 16px;
    line-height: 1.12;
  }

  #specials .special-slide .row-price {
    font-size: 14px;
  }

  #specials .special-slide .row-right {
    left: 40%;
    bottom: 14px;
    grid-column: 2;
    justify-self: start;
    text-align: left;
    padding: 0 10px;
  }

  #specials .special-slide .row-left {
    grid-column: 2;
    grid-row: 1;
    align-self: center;
    min-width: 0;
    padding: 12px 10px 34px;
  }
}

@media (max-width: 380px) {
  .menu-search {
    width: calc(100% - 44px);
    padding-left: 0;
    padding-right: 0;
  }

  .category-nav {
    padding-left: 8px;
    padding-right: 8px;
  }

  .category-btn {
    font-size: 8px;
    padding: 0 7px;
  }

  .category-section:not(#specials) {
    gap: 8px;
  }

  #specials .special-slide {
    grid-template-columns: 38% minmax(0, 1fr);
  }

  .category-section:not(#specials) .menu-row {
    padding: 6px;
    gap: 6px;
  }

  .category-section:not(#specials) .row-name {
    font-size: 13px;
  }

  .category-section:not(#specials) .row-desc {
    font-size: 9px;
    min-height: 21px;
  }

  .category-section:not(#specials) .row-price {
    font-size: 12px;
  }

  #specials .special-slide {
    height: 104px;
    min-height: 0;
  }

  #specials .special-slide .row-thumb-wrap {
    width: 100%;
    height: 100%;
    min-height: 0;
    aspect-ratio: auto;
  }

  #specials .special-slide .row-right {
    grid-column: 2;
    justify-self: start;
    text-align: left;
    left: 38%;
    padding-right: 8px;
  }

  #specials .special-slide .row-name {
    font-size: 16px;
  }
}

@media (max-width: 600px) {
    .party-promo {
        width: calc(100% - 32px);
        height: 132px;
        min-height: 0;
        margin: 16px auto 4px;
        padding: 0;
        grid-template-columns: 34% minmax(0, 1fr);
        gap: 0;
        border-radius: 20px;
    }

    .party-promo-media {
        height: 100%;
        min-height: 0;
        border-radius: 0;
    }

    .party-promo-media img {
        height: 100%;
        object-fit: cover;
        object-position: center 48%;
    }

    .party-promo-content {
        justify-content: center;
        gap: 7px;
        padding: 11px 13px 11px 14px;
    }

    .party-label {
        font-size: 8px;
        letter-spacing: 0.24em;
        margin-bottom: 8px;
    }

    .party-rule {
        width: 38px;
        height: 1px;
        margin-bottom: 9px;
    }

    .party-promo h2 {
        font-size: clamp(15px, 4.6vw, 19px);
        line-height: 1.1;
        margin-bottom: 0;
    }

    .party-promo p {
        font-size: clamp(9px, 2.9vw, 11px);
        line-height: 1.35;
        margin-bottom: 0;
        padding-left: 9px;
        border-left-width: 1px;
    }

    .party-promo p span {
        padding: 0 2px;
    }

    .party-promo .party-btn {
        min-width: 104px;
        height: 25px;
        padding: 0 9px 0 10px;
        font-size: 9px;
        letter-spacing: 0.04em;
        border-width: 2px;
        border-radius: 7px;
    }

    .party-promo .party-btn::after {
        margin-left: 6px;
        font-size: 11px;
    }

    .party-arrow {
        display: none;
    }
}

@media (max-width: 380px) {
    .party-promo {
        width: calc(100% - 24px);
        height: 122px;
        grid-template-columns: 32% minmax(0, 1fr);
        border-radius: 18px;
    }

    .party-promo-media {
        min-height: 0;
    }

    .party-label {
        letter-spacing: 0.18em;
    }

    .party-promo h2 {
        font-size: 14px;
    }

    .party-promo p {
        font-size: 9px;
    }

    .party-promo .party-btn {
        min-width: 94px;
        height: 23px;
        padding-left: 8px;
        padding-right: 7px;
        font-size: 8px;
    }
}
