:root {
    --sea: #6fa4c5;
    --sea-deep: #155a82;
    --coral: #ff6269;
    --paper: #f4f7fd;
    --ink: #14324a;
    --muted: #61809b;
}

* { box-sizing: border-box; }
html, body { width: 100%; height: 100%; margin: 0; overflow: hidden; }
body {
    display: grid;
    place-items: center;
    background: #dfe6ef;
    color: var(--ink);
    font-family: "Plus Jakarta Sans", sans-serif;
}

.screen {
    position: relative;
    width: min(100vw, 177.7778vh);
    height: min(100vh, 56.25vw);
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background:
        radial-gradient(circle at 68% 66%, color-mix(in srgb, var(--sea) 9%, transparent) 0 9%, transparent 9.2%),
        var(--paper);
    box-shadow: 0 24px 70px #17334a22;
}

.topbar {
    height: 13.5%;
    padding: 0 4.8%;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    background: var(--sea);
    color: white;
}
.brand { display: flex; align-items: center; gap: .7vw; }
.brand img { width: 12vw; max-height: 5.8vh; object-fit: contain; object-position: left center; }
.brand strong { font-family: "Bricolage Grotesque"; font-size: 1.2vw; letter-spacing: .22em; }
.wave-mark { font-size: 3.2vw; line-height: .6; transform: rotate(180deg); }
.brand-center { display: flex; flex-direction: column; align-items: center; line-height: 1.1; }
.brand-center strong { font-family: "Luckiest Guy", cursive; font-size: 1.6vw; letter-spacing: .08em; }
.brand-center span { margin-top: .35vw; font-size: .75vw; font-weight: 600; opacity: .95; }
.header-title { justify-self: end; max-width: 25vw; overflow: hidden; color: white; font: 700 .85vw/1.2 "Bricolage Grotesque", sans-serif; letter-spacing: .08em; text-align: right; text-overflow: ellipsis; text-transform: uppercase; white-space: pre-line; }

.menu {
    height: 86.5%;
    padding: 1% 4.8% 1.1%;
    display: grid;
    grid-template-rows: 28% minmax(0, 1fr) 13%;
    gap: 1.5%;
}
.menu--no-featured { grid-template-rows: minmax(0, 1fr) 13%; }
.menu--compact-three-rows { grid-template-rows: 26% minmax(0, 1fr) 22%; }
.menu--no-featured.menu--compact-three-rows { grid-template-rows: minmax(0, 1fr) 22%; }

.featured {
    display: grid;
    grid-template-columns: 33.5% 1fr;
    gap: 2%;
    padding: 1.2%;
    border: 1px solid color-mix(in srgb, var(--sea) 18%, transparent);
    border-radius: 2.8vw;
    background: #e8f1ff;
    box-shadow: 0 .2vw .6vw #31638410;
    min-height: 0;
}
.featured-image {
    position: relative;
    min-height: 0;
    border-radius: 2vw;
    background-position: center;
    background-size: cover;
    overflow: hidden;
}
.featured-image > span {
    position: absolute;
    left: 3.5%;
    top: 8%;
    padding: .42vw .8vw;
    border-radius: 999px;
    background: var(--coral);
    color: white;
    font: 800 .64vw/1 "Bricolage Grotesque", sans-serif;
    letter-spacing: .05em;
}
.featured-copy { align-self: center; min-width: 0; }
.featured-copy h1 {
    margin: 0;
    font: 400 2.15vw/1 "Luckiest Guy", cursive;
    color: var(--sea-deep);
    text-transform: uppercase;
}
.featured-copy .subtitle { margin: .55vw 0; font-size: .9vw; font-style: italic; color: #202b33; }
.featured-meta { display: flex; align-items: center; gap: 1.5vw; }
.featured-meta b, .price {
    font-family: "Work Sans", sans-serif;
    font-variant-numeric: tabular-nums;
}
.featured-meta b {
    flex: none;
    padding: .65vw 1.1vw;
    border-radius: 999px;
    background: #b62530;
    color: white;
    font-size: 1.2vw;
    box-shadow: 0 .2vw .4vw #63101820;
}
.featured-meta p { margin: 0; font-size: .82vw; color: #121d25; }

.card-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    grid-template-rows: repeat(2, minmax(0, 1fr));
    gap: 2.8% 1.5%;
    min-height: 0;
}
.card-grid--1, .card-grid--2, .card-grid--3, .card-grid--4, .card-grid--5 {
    grid-template-rows: minmax(0, 1fr);
}
.card-grid--11 {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    grid-template-rows: repeat(2, minmax(0, 1fr));
}
.menu-card {
    position: relative;
    min-width: 0;
    min-height: 0;
    padding: .6vw .55vw .35vw;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: white;
    border: 1px solid #dae2ea;
    border-radius: 2.7vw;
    box-shadow: 0 .16vw .35vw #274f6a12;
}
.price {
    position: absolute;
    z-index: 2;
    right: -.45vw;
    top: -.45vw;
    width: 3.05vw;
    height: 3.05vw;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: white;
    background: var(--coral);
    font-size: .78vw;
    box-shadow: 0 .16vw .3vw #283b4a33;
}
.price--blue { background: #22678d; }
.food-image {
    width: 5.3vw;
    height: 5.3vw;
    flex: none;
    border: .18vw solid #e4ecf5;
    border-radius: 50%;
    background-position: center;
    background-size: cover;
}
.menu-card h2, .compact-item h2 {
    margin: .35vw 0 .08vw;
    max-width: 100%;
    overflow: hidden;
    color: #075982;
    font: 800 .75vw/1.08 "Bricolage Grotesque", sans-serif;
    text-transform: uppercase;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.menu-card p, .compact-item p {
    max-width: 100%;
    margin: 0;
    overflow: hidden;
    color: var(--muted);
    font-size: .63vw;
    line-height: 1.2;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.empty { grid-column: 1 / -1; display: grid; place-items: center; color: var(--muted); }

.compact-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-template-rows: repeat(2, minmax(0, 1fr));
    gap: 9% 1%;
    min-height: 0;
}
.compact-grid--1, .compact-grid--2, .compact-grid--3, .compact-grid--4 {
    grid-template-rows: minmax(0, 1fr);
}
.compact-grid--9, .compact-grid--10, .compact-grid--11, .compact-grid--12 {
    grid-template-rows: repeat(3, minmax(0, 1fr));
}
.compact-item {
    min-width: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: .65vw;
    padding: .3vw .9vw;
    border: 1px solid #dbe2e9;
    border-radius: 999px;
    background: white;
    box-shadow: 0 .12vw .28vw #274f6a0c;
}
.compact-item h2 { margin: 0; font-size: .66vw; }
.compact-item p { margin-top: .08vw; font-size: .55vw; color: #3f4c57; }
.compact-item b { color: var(--coral); font: 700 .62vw "Work Sans"; }

.image-placeholder {
    background:
        radial-gradient(circle at 35% 38%, #ffd181 0 12%, transparent 12.5%),
        radial-gradient(circle at 55% 58%, #ed7359 0 17%, transparent 17.5%),
        radial-gradient(circle at 70% 36%, #77a85a 0 10%, transparent 10.5%),
        linear-gradient(135deg, #e2f0f2, #c2dbe5);
}
.image-placeholder--small { filter: saturate(.85); }
.refresh-note {
    position: absolute;
    right: 1.2vw;
    bottom: 1vw;
    padding: .4vw .7vw;
    border-radius: 999px;
    background: #17334add;
    color: white;
    font-size: .65vw;
    opacity: 0;
    transform: translateY(.4vw);
    transition: .25s ease;
}
body.is-refreshing .refresh-note { opacity: 1; transform: none; }
body.is-refreshing .screen { opacity: .92; }

@media (max-aspect-ratio: 4/3) {
    .screen { box-shadow: none; }
}
@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; }
}
