:root {
    --menu-bg: #0b0f13;
    --menu-panel: #11171d;
    --menu-panel-dark: #0d1318;
    --menu-green: #79c41f;
    --menu-gold: #f2b84b;
    --menu-white: #ffffff;
    --menu-muted: #b8c0c8;
}

html,
body {
    min-height: 100%;
    margin: 0;
    background: var(--menu-bg);
    color: var(--menu-white);
    font-family: Arial, Helvetica, sans-serif;
}

body {
    overflow-x: hidden;
}

.menu-board {
    min-height: 100vh;
    padding: 1rem;
    background:
        radial-gradient(circle at top center, rgba(121, 196, 31, 0.05), transparent 30%),
        linear-gradient(135deg, rgba(242, 184, 75, 0.05), transparent 34%),
        var(--menu-bg);
}

.demo-panel {
    overflow: hidden;
    height: 100%;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 0.5rem;
    background: linear-gradient(180deg, var(--menu-panel), var(--menu-panel-dark));
    box-shadow: 0 20px 65px rgba(0, 0, 0, 0.18);
}

.menu-sidebar {
    min-height: calc(100vh - 2rem);
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 2rem;
}

.brand-mark {
    position: relative;
    width: 58px;
    height: 48px;
    flex: 0 0 auto;
    border: 4px solid var(--menu-green);
}

.brand-mark::before {
    content: "";
    position: absolute;
    inset: 9px;
    border: 3px solid var(--menu-green);
}

.brand-name {
    font-size: 1.6rem;
    line-height: 1;
    font-weight: 700;
}

.brand-byline {
    margin-top: 0.25rem;
}

.brand-byline span,
.heading,
.section-kicker,
.food-price,
.price-list strong,
.hours-time {
    color: var(--menu-green);
}

.heading,
.section-kicker {
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0;
}

.heading {
    font-size: 1.35rem;
}

.section-kicker {
    margin-bottom: 0.35rem;
    font-size: 0.85rem;
}

.section-rule {
    border-bottom: 1px solid rgba(121, 196, 31, 0.65);
}

.nav-menu {
    gap: 0.35rem;
}

.nav-menu .nav-link {
    color: var(--menu-white);
    padding: 0.78rem 1rem;
    border-radius: 0.45rem;
    background: rgba(255, 255, 255, 0.02);
    text-align: left;
}

.nav-menu .nav-link:hover,
.nav-menu .nav-link:focus {
    color: var(--menu-white);
    background: rgba(121, 196, 31, 0.16);
}

.nav-menu .nav-link.active {
    color: var(--menu-bg);
    background: var(--menu-green);
    font-weight: 700;
}

.qr-title {
    color: var(--menu-green);
    font-size: 1.35rem;
    line-height: 1.2;
    font-weight: 700;
    text-transform: uppercase;
}

.qr-subtitle {
    margin-bottom: 1rem;
    font-size: 1.15rem;
}

.qr-box {
    width: min(100%, 245px);
    padding: 0.7rem;
    border-radius: 0.45rem;
    aspect-ratio: 1;
    background: #ffffff;
}

.qr-box img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.qr-copy {
    max-width: 250px;
    margin-top: 1rem;
    color: var(--menu-muted);
    line-height: 1.45;
}

.menu-view {
    min-height: calc(100vh - 2rem);
}

.menu-view.is-active {
    animation: menuViewFadeIn 280ms ease-out;
}

@keyframes menuViewFadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.feature-card {
    position: relative;
    min-height: 315px;
    overflow: hidden;
    border-radius: 0.5rem;
    background: #05080a;
}

.feature-card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        90deg,
        rgba(5, 8, 10, 0.95),
        rgba(5, 8, 10, 0.65) 35%,
        rgba(5, 8, 10, 0.05) 70%
    );
}

.feature-backgrounds,
.feature-background {
    position: absolute;
    inset: 0;
}

.feature-background {
    background-image: var(--feature-bg);
    background-position: center center;
    background-size: cover;
    opacity: 0;
    transform: scale(1);
    transition: opacity 1500ms ease;
}

.feature-background.is-active {
    opacity: 1;
    animation: menuFeatureBackgroundZoom 7600ms ease-out forwards;
}

@keyframes menuFeatureBackgroundZoom {
    from {
        transform: scale(1.055);
    }

    to {
        transform: scale(1);
    }
}

.feature-content {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    z-index: 2;
    width: 42%;
    min-width: 270px;
    min-height: 250px;
}

.feature-copy {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transform: translateX(-18px);
    transition: opacity 850ms ease, transform 1000ms cubic-bezier(0.22, 1, 0.36, 1);
}

.feature-copy.is-active {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0);
}

.feature-title {
    margin-bottom: 1rem;
    font-size: 3.35rem;
    line-height: 1;
    font-weight: 700;
    letter-spacing: 0;
}

.feature-text {
    max-width: 340px;
    font-size: 1.05rem;
    line-height: 1.45;
}

.price {
    margin-top: 0.7rem;
    color: var(--menu-green);
    font-size: 1.8rem;
    font-weight: 700;
}

.category-title {
    margin: 0;
    font-size: 2.35rem;
    line-height: 1;
    font-weight: 700;
    letter-spacing: 0;
}

.category-count {
    flex: 0 0 auto;
    color: var(--menu-muted);
    font-size: 1rem;
}

.food-card {
    height: 100%;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 0.5rem;
    background: #0d1318;
}

.food-card img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.food-card-body {
    padding: 0.75rem 0.8rem 0.9rem;
}

.food-card-large .food-card-body {
    min-height: 138px;
}

.home-popular-products .food-card img {
    height: clamp(112px, 15vh, 175px);
    aspect-ratio: auto;
}

.home-popular-products .food-card-body {
    padding: 0.65rem 0.75rem 0.75rem;
}

.home-popular-products .food-card-medium .food-card-body {
    min-height: 90px;
}

.home-popular-products .food-name {
    font-size: 1rem;
}

.home-popular-products .food-description {
    display: -webkit-box;
    margin-top: 0.4rem;
    overflow: hidden;
    font-size: 0.86rem;
    line-height: 1.25;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.home-favorites .food-card img {
    height: clamp(72px, 9vh, 118px);
    aspect-ratio: auto;
}

.home-favorites .food-card-body {
    padding: 0.5rem 0.6rem 0.58rem;
}

.home-favorites .food-name,
.home-favorites .food-price {
    font-size: 0.9rem;
}

.category-products .food-card img {
    height: clamp(78px, 11.5vh, 145px);
    aspect-ratio: auto;
}

.category-products .food-card-body {
    padding: 0.55rem 0.65rem 0.65rem;
}

.category-products .food-card-large .food-card-body {
    min-height: 84px;
}

.category-products .food-name {
    font-size: 0.95rem;
}

.category-products .food-price {
    font-size: 0.95rem;
}

.category-products .food-description {
    display: -webkit-box;
    margin-top: 0.4rem;
    overflow: hidden;
    font-size: 0.82rem;
    line-height: 1.25;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.food-name {
    font-size: 1.05rem;
    line-height: 1.15;
    font-weight: 700;
}

.food-price {
    flex: 0 0 auto;
    font-weight: 700;
}

.food-description {
    margin: 0.65rem 0 0;
    color: var(--menu-muted);
    font-size: 0.95rem;
    line-height: 1.35;
}

.price-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.price-list li {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.45rem 0;
}

.divider {
    height: 1px;
    margin: 1.2rem 0;
    background: rgba(121, 196, 31, 0.65);
}

.hours {
    text-align: center;
}

.hours-time {
    font-size: 3.6rem;
    line-height: 1;
    font-weight: 700;
}

.hours-label {
    font-size: 1.6rem;
    font-weight: 700;
    text-transform: uppercase;
}

.menu-scroll-top {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    z-index: 20;
    display: none;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 64px;
    height: 64px;
    border: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--menu-green), var(--menu-gold));
    color: var(--menu-bg);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.34);
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0;
}

.menu-scroll-icon {
    position: relative;
    display: block;
    width: 18px;
    height: 30px;
    border-left: 5px solid var(--menu-bg);
    border-radius: 4px;
}

.menu-scroll-icon::before {
    content: "";
    position: absolute;
    top: -2px;
    left: -12px;
    width: 20px;
    height: 20px;
    border-top: 5px solid var(--menu-bg);
    border-left: 5px solid var(--menu-bg);
    transform: rotate(45deg);
}

@media (max-width: 1199.98px) {
    .feature-title {
        font-size: 2.8rem;
    }
}

@media (max-width: 991.98px) {
    .menu-sidebar,
    .menu-view {
        min-height: auto;
    }

    [data-menu-content] {
        scroll-margin-top: 0.75rem;
    }

    .feature-content {
        width: 60%;
    }

    .qr-box {
        width: 180px;
    }

    .qr-area {
        display: none;
    }

    .menu-scroll-top {
        display: flex;
        right: 1rem;
        left: 1rem;
        width: auto;
        height: 58px;
        border-radius: 0.5rem;
        opacity: 0;
        pointer-events: none;
        transform: translateY(12px);
        transition: opacity 180ms ease, transform 180ms ease;
    }

    .menu-scroll-top.is-visible {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }
}

@media (max-width: 767.98px) {
    .feature-card {
        min-height: 430px;
    }

    .feature-content {
        width: calc(100% - 3rem);
        min-width: 0;
    }
}

@media (max-width: 575.98px) {
    .menu-board {
        padding: 0.65rem;
    }

    .brand-name {
        font-size: 1.35rem;
    }

    .feature-title,
    .category-title {
        font-size: 2.25rem;
    }

    .hours-time {
        font-size: 2.55rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .menu-view.is-active,
    .feature-background.is-active {
        animation: none;
    }

    .feature-background,
    .feature-copy {
        transform: none;
        transition: none;
    }
}
