/* The test.html breakfast table, fixed behind the whole page. The header and hero are opaque, so it is
   revealed as the menu scrolls in and stays visible behind the menu, reviews, location and footer.
   Active only with .has-menu-scene, so without JavaScript or WebGL the page looks as before. */
.menu-scene {
    display: none;
}

.has-menu-scene .menu-scene {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    /* Negative z-index paints above the body background but below every section and card. */
    z-index: -1;
    height: 100vh;
    height: 100lvh;
    overflow: hidden;
    background: #f3eee5;
    pointer-events: none;
}

.menu-scene__view {
    position: absolute;
    inset: 0;
}

.menu-scene__view canvas {
    display: block;
    width: 100%;
    height: 100%;
}

/* Sections that painted their own backdrop let the table show through instead. */
.has-menu-scene .reviews,
.has-menu-scene .location-section {
    background: transparent;
}

.has-menu-scene .section-heading--menu h2 {
    text-shadow: 0 1px 14px rgba(243, 238, 229, 0.95), 0 0 2px rgba(243, 238, 229, 0.9);
}

/* Running text over food needs a calm surface to stay readable. */
.has-menu-scene .reviews-header,
.has-menu-scene .location-heading {
    padding: 18px 22px;
    border-radius: var(--radius);
    background: rgba(243, 238, 229, 0.8);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

.has-menu-scene .menu-accordion__item {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.55);
    box-shadow: 0 16px 44px rgba(43, 43, 43, 0.16);
}

/* Category rows are windows onto the table: the cover photo fades in towards the right edge, the rest
   stays see-through, and a soft shade sits only behind the title. */
.has-menu-scene .menu-accordion__summary {
    --cover-opacity: 0.92;
    background: linear-gradient(90deg, rgba(34, 22, 13, 0.64), rgba(34, 22, 13, 0.3) 45%, rgba(34, 22, 13, 0.06) 80%);
}

.has-menu-scene .menu-accordion__summary::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--cover-image, none) center / cover no-repeat;
    opacity: var(--cover-opacity);
    -webkit-mask-image: linear-gradient(90deg, transparent 10%, rgba(0, 0, 0, 0.55) 45%, #000 80%);
    mask-image: linear-gradient(90deg, transparent 10%, rgba(0, 0, 0, 0.55) 45%, #000 80%);
}

.has-menu-scene .menu-accordion__title {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.45), 0 8px 24px rgba(0, 0, 0, 0.5);
}

.has-menu-scene .menu-accordion__chevron {
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.55));
}

.has-menu-scene .menu-accordion__panel {
    background: rgba(255, 252, 246, 0.24);
}

.has-menu-scene .menu-product,
.has-menu-scene .menu-category__note,
.has-menu-scene .status-text,
.has-menu-scene .review-card {
    background: rgba(255, 255, 255, 0.72);
    border-color: rgba(255, 255, 255, 0.65);
    -webkit-backdrop-filter: blur(10px) saturate(1.15);
    backdrop-filter: blur(10px) saturate(1.15);
}

.has-menu-scene .menu-category__note {
    margin: 0 0 14px;
    padding: 0.7rem 1rem;
    border-radius: var(--radius);
}

.has-menu-scene .site-footer {
    background: rgba(17, 17, 17, 0.62);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}

/* Every blurred surface over a live canvas is re-blurred on each frame, which phones cannot afford;
   denser tints read just as well there. */
@media (max-width: 760px), (pointer: coarse) {
    .has-menu-scene .menu-product,
    .has-menu-scene .menu-category__note,
    .has-menu-scene .status-text,
    .has-menu-scene .review-card {
        background: rgba(255, 255, 255, 0.84);
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
    }

    .has-menu-scene .reviews-header,
    .has-menu-scene .location-heading {
        background: rgba(243, 238, 229, 0.9);
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
    }

    .has-menu-scene .site-footer {
        background: rgba(17, 17, 17, 0.7);
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
    }
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .has-menu-scene .menu-product,
    .has-menu-scene .menu-category__note,
    .has-menu-scene .status-text,
    .has-menu-scene .review-card {
        background: rgba(255, 255, 255, 0.84);
    }

    .has-menu-scene .site-footer {
        background: rgba(17, 17, 17, 0.7);
    }
}
