/* ==========================================================================
   MA YVE GRILL | MENU "KINSHASA EDITORIAL"  (menu-editorial-v8.css)
   v8: KILLED the legacy menu-experience.css min-height (calc(-200px+100vh))
   that stretched every small category into a giant void; white category
   title now FULLY visible and snug above the first dish card; giant FRENCH
   word enlarged again so its lower edge tucks a little behind the first
   card (the requested layering); section padding + dish gaps tightened.
   Requires template v2.3.1 + menu-editorial-v3.js + spice-quiz-v3.js.
   v7: EXPLICIT two-column markup (.menu-menugrid__col, Family Packs top
   right); quiz gold button hover keeps its gradient (readable).
   v6: TWO-COLUMN magazine flow with horizontal editorial cards; rail pills
   wrap + center (no cut-off); "Ma Yve Lab" game panels; full Spice Master
   Quiz skin (modal, answers, results).
   v5: faster Ken Burns (13s) shared by hero + catering strip; warm glows
   lifted; gold footer separator with slow left-to-right light sweep.
   v4: Ken Burns hero, JS-pinned rail, floating giant type, 3D-tilt cards,
   stronger darkroom, photo-backed catering, warm ambient glows.
   v3: THE GRID FIX | Astra 4.x renders .ast-container as display:grid;
   as a grid item, <main> shrank to ~1200px. display:block ends it.
   Plus: charcoal header + footer for this template, admin-bar rail offset.
   v2: full-bleed container override. Everything else identical to v1.
   ========================================================================== */

/* --------------------------------------------------------------------------
   -1. FULL-BLEED OVERRIDE (Astra boxed container -> full width, charcoal)
   -------------------------------------------------------------------------- */
body.page-template-template-menu-editorial-php {
    background: #141210;
}
body.page-template-template-menu-editorial-php .site-content,
body.page-template-template-menu-editorial-php #content,
body.page-template-template-menu-editorial-php .ast-container,
body.page-template-template-menu-editorial-php .site-content > .ast-container {
    max-width: 100% !important;
    width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    background: transparent;
}

/* THE GRID FIX: Astra 4.x makes .ast-container display:grid | as a grid item
   <main> is sized by track logic (~1200px). Block layout restores full width. */
body.page-template-template-menu-editorial-php .site-content > .ast-container {
    display: block !important;
}

body.page-template-template-menu-editorial-php #primary,
body.page-template-template-menu-editorial-php #primary .entry-content,
body.page-template-template-menu-editorial-php #primary article,
body.page-template-template-menu-editorial-php .ast-article-single {
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    background: transparent;
}
/* Hide Astra's printed page title/featured-image if any leak through */
body.page-template-template-menu-editorial-php .entry-header,
body.page-template-template-menu-editorial-php .ast-single-post .entry-title,
body.page-template-template-menu-editorial-php .post-thumb-img-content {
    display: none !important;
}

/* --------------------------------------------------------------------------
   0. CANVAS
   -------------------------------------------------------------------------- */
.menu-page--editorial {
    background:
        radial-gradient(ellipse 55% 32% at 88% 6%, rgba(232, 89, 12, 0.14), transparent 70%),
        radial-gradient(ellipse 48% 30% at 6% 44%, rgba(255, 179, 71, 0.09), transparent 70%),
        radial-gradient(ellipse 60% 36% at 78% 78%, rgba(192, 64, 0, 0.12), transparent 70%),
        #141210;
    color: #FAF0E6;
    font-family: inherit;
}
.menu-page--editorial h1,
.menu-page--editorial h2,
.menu-page--editorial h3 {
    font-family: 'Playfair Display', 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
}

/* --------------------------------------------------------------------------
   1. CINEMATIC HERO
   -------------------------------------------------------------------------- */
.menu-page--editorial .menu-hero {
    position: relative;
    min-height: 78vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    isolation: isolate;
}
.menu-page--editorial .menu-hero__bg {
    position: absolute;
    inset: -7%;
    z-index: -2;
    background-size: cover;
    background-position: center 40%;
    animation: mgKenBurns 13s ease-in-out infinite alternate;
    will-change: transform;
}
@keyframes mgKenBurns {
    0%   { transform: scale(1.03) translate(0%, 0%); }
    100% { transform: scale(1.22) translate(-2.6%, -3.2%); }
}
.menu-page--editorial .menu-hero__veil {
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(ellipse 90% 70% at 50% 52%, rgba(20, 18, 16, 0.82) 0%, rgba(20, 18, 16, 0.55) 48%, rgba(20, 18, 16, 0.28) 100%),
        linear-gradient(180deg, rgba(20, 18, 16, 0.55) 0%, rgba(20, 18, 16, 0.18) 34%, rgba(20, 18, 16, 0.30) 68%, #141210 100%);
}
.menu-page--editorial .menu-hero__content {
    max-width: 880px;
    padding: 140px 24px 90px;
}
.menu-page--editorial .menu-hero__eyebrow {
    margin: 0 0 18px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.34em;
    text-transform: uppercase;
    color: #FFB347;
}
.menu-page--editorial .menu-hero__title {
    margin: 0 0 22px;
    font-size: clamp(3.4rem, 8.5vw, 6.8rem);
    font-weight: 700;
    line-height: 1.02;
    letter-spacing: 0.01em;
    color: #FAF0E6;
    text-shadow: 0 6px 40px rgba(0, 0, 0, 0.55);
}
.menu-page--editorial .menu-hero__subtitle {
    max-width: 620px;
    margin: 0 auto;
    font-size: clamp(1rem, 1.6vw, 1.15rem);
    line-height: 1.75;
    color: rgba(250, 240, 230, 0.88);
}
.menu-page--editorial .menu-hero .menu-page__decorative-line {
    width: 74px;
    height: 3px;
    margin: 30px auto 0;
    border-radius: 2px;
    background: linear-gradient(90deg, #C04000, #FFB347);
}
.menu-page--editorial .menu-hero__scrollcue {
    position: absolute;
    left: 50%;
    bottom: 26px;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}
.menu-page--editorial .menu-hero__scrollcue-text {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: rgba(255, 179, 71, 0.75);
}
.menu-page--editorial .menu-hero__scrollcue-ring {
    width: 26px;
    height: 26px;
    border: 1.5px solid rgba(255, 179, 71, 0.55);
    border-radius: 50%;
    animation: mgCueRing 2s ease-out infinite;
}
@keyframes mgCueRing {
    0%   { transform: scale(0.6); opacity: 0.9; }
    70%  { transform: scale(1.25); opacity: 0; }
    100% { transform: scale(1.25); opacity: 0; }
}
.menu-page--editorial .menu-hero__scrollcue-arrow {
    color: #FFB347;
    margin-top: -22px;
    animation: mgCueBob 1.4s ease-in-out infinite;
}
@keyframes mgCueBob {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(5px); }
}

/* --------------------------------------------------------------------------
   2. STICKY CATEGORY RAIL (pills + search)
   -------------------------------------------------------------------------- */
.menu-page--editorial .menu-rail {
    position: sticky;
    top: 0;
    z-index: 900;
    background: rgba(20, 18, 16, 0.88);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255, 179, 71, 0.16);
    transition: box-shadow 0.3s ease;
}
.menu-page--editorial .menu-rail.is-stuck {
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.45);
}
.menu-page--editorial .menu-rail__inner {
    max-width: 1360px;
    margin: 0 auto;
    padding: 13px 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px 18px;
    flex-wrap: wrap;
}
.menu-page--editorial .menu-page__category-nav {
    display: flex;
    gap: 9px;
    flex-wrap: wrap;
    justify-content: center;
    overflow-x: visible;
    padding: 2px;
    max-width: 100%;
}
.menu-page--editorial .menu-page__category-nav::-webkit-scrollbar { display: none; }
.menu-page--editorial .menu-page__category-pill {
    flex: 0 0 auto;
    padding: 9px 18px;
    border-radius: 999px;
    border: 1px solid rgba(250, 240, 230, 0.22);
    background: transparent;
    color: rgba(250, 240, 230, 0.82);
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
.menu-page--editorial .menu-page__category-pill:hover {
    border-color: #FFB347;
    color: #FFB347;
    transform: translateY(-2px);
}
.menu-page--editorial .menu-page__category-pill--active,
.menu-page--editorial .menu-page__category-pill--active:hover {
    background: linear-gradient(135deg, #C04000 0%, #E8590C 100%);
    border-color: transparent;
    color: #FFF4E0;
    box-shadow: 0 6px 18px rgba(192, 64, 0, 0.38);
    transform: none;
}
.menu-page--editorial .menu-page__search {
    position: relative;
    flex: 0 1 260px;
    min-width: 200px;
}
.menu-page--editorial .menu-page__search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 179, 71, 0.65);
    pointer-events: none;
}
.menu-page--editorial .menu-page__search-input {
    width: 100%;
    padding: 11px 16px 11px 40px;
    border-radius: 999px;
    border: 1px solid rgba(250, 240, 230, 0.18);
    background: rgba(250, 240, 230, 0.06);
    color: #FAF0E6;
    font-size: 14px;
    outline: none;
    transition: border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
    box-sizing: border-box;
}
.menu-page--editorial .menu-page__search-input::placeholder { color: rgba(250, 240, 230, 0.45); }
.menu-page--editorial .menu-page__search-input:focus {
    border-color: #FFB347;
    background: rgba(250, 240, 230, 0.09);
    box-shadow: 0 0 0 3px rgba(255, 179, 71, 0.15);
}

/* --------------------------------------------------------------------------
   3. CATEGORY SECTIONS + GIANT EDITORIAL TYPE
   -------------------------------------------------------------------------- */
.menu-page--editorial .menu-menugrid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: clamp(44px, 5vw, 76px);
    align-items: start;
    max-width: 1420px;
    margin: 0 auto;
    padding: 0 28px;
}
.menu-page--editorial .menu-menugrid.mg-filtered {
    grid-template-columns: 1fr;
    max-width: 860px;
}
.menu-page--editorial .menu-menugrid.mg-filtered .menu-menugrid__col {
    display: contents;
}
.menu-page--editorial .menu-category {
    position: relative;
    display: block;        /* legacy menu-experience.css sets display:flex */
    min-height: 0;         /* legacy sets calc(-200px + 100vh): the giant voids */
    max-width: none;       /* legacy menu-page-fix.css caps at 1200px */
    margin: 0;
    padding: 46px 4px 50px;
}
.menu-page--editorial .menu-category__giant {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
    width: 100%;
    text-align: left;
    pointer-events: none;
    user-select: none;
    overflow: hidden;
    line-height: 1;
    transform: translateY(var(--mg-giant-y, 0px));
    transition: transform 0.15s linear;
}
.menu-page--editorial .menu-category__giant-word {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(3.9rem, 6.4vw, 6.2rem);
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    white-space: nowrap;
    color: rgba(255, 179, 71, 0.13);
    -webkit-text-stroke: 1.5px rgba(255, 179, 71, 0.58);
    text-stroke: 1.5px rgba(255, 179, 71, 0.58);
    text-shadow: 0 0 46px rgba(255, 179, 71, 0.16);
    animation: mgGiantDrift 16s ease-in-out infinite alternate;
}
@keyframes mgGiantDrift {
    0%   { transform: translateX(-1.4%); }
    100% { transform: translateX(1.4%); }
}
.menu-page--editorial .menu-category__giant-word--fr { display: none; }
html[lang="fr"] .menu-page--editorial .menu-category__giant-word--en { display: none; }
html[lang="fr"] .menu-page--editorial .menu-category__giant-word--fr { display: inline; }
.menu-page--editorial .menu-category__heading {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 22px;
    margin-top: clamp(28px, 2.4vw, 38px);
    margin-bottom: 10px;
}
.menu-page--editorial .menu-category__title {
    position: static;   /* legacy menu-experience.css sets absolute + top:-40px */
    top: auto;
    left: auto;
    margin: 0;
    padding-bottom: 0;  /* legacy menu-page-fix.css adds padding + border */
    border-bottom: 0;
    opacity: 1;         /* legacy menu-experience.css fades it to 0.15 */
    font-size: clamp(1.7rem, 2.4vw, 2.25rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: 0.01em;
    color: #FAF0E6;
    white-space: nowrap;
}
.menu-page--editorial .menu-category__rule {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, rgba(255, 179, 71, 0.55), rgba(255, 179, 71, 0.05));
}


/* v9: breathing room restored + extra air for the first section in each column
   so the giant word and title never feel cut by the category rail above */
.menu-page--editorial .menu-menugrid__col > .menu-category:first-child {
    padding-top: clamp(72px, 7vw, 96px);
}
@media (max-width: 768px) {
    .menu-page--editorial .menu-menugrid__col > .menu-category:first-child {
        padding-top: 58px;
    }
}

/* --------------------------------------------------------------------------
   4. DISH GRID + PHOTO-FIRST CARDS
   -------------------------------------------------------------------------- */
.menu-page--editorial .menu-category__dishes {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: clamp(-14px, -0.4vw, 0px);
}
.menu-page--editorial .dish-card {
    position: relative;
    display: flex;
    flex-direction: column;
    transform-style: preserve-3d;
    will-change: transform;
    display: grid;
    grid-template-columns: 158px 1fr;
    align-items: stretch;
    background: #1E1915;
    border: 1px solid rgba(255, 179, 71, 0.13);
    border-radius: 18px;
    overflow: hidden;
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
                box-shadow 0.45s ease,
                border-color 0.45s ease;
}
.menu-page--editorial .dish-card:hover {
    border-color: rgba(255, 179, 71, 0.55);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.55),
                0 0 0 1px rgba(255, 179, 71, 0.22),
                0 12px 40px rgba(232, 89, 12, 0.18);
}

/* Scroll-reveal initial state (JS-gated so no-JS users see everything) */
html.mg-darkroom .menu-page--editorial .dish-card {
    opacity: 0;
    transform: translateY(28px);
}
html.mg-darkroom .menu-page--editorial .dish-card.is-revealed {
    opacity: 1;
    transform: translateY(0);
}


/* --- Image --- */
.menu-page--editorial .dish-card__image-wrapper {
    position: relative;
    min-height: 148px;
    height: 100%;
    overflow: hidden;
    background: #171310;
}
.menu-page--editorial .dish-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1),
                filter 2s ease;
}
.menu-page--editorial .dish-card:hover .dish-card__image {
    transform: scale(1.06);
}

/* Darkroom developing effect (JS-gated) */
html.mg-darkroom .menu-page--editorial .dish-card__image--darkroom {
    filter: grayscale(0.95) sepia(0.30) brightness(0.60) contrast(1.08);
}
html.mg-darkroom .menu-page--editorial .dish-card__image--darkroom.is-developed {
    filter: grayscale(0) sepia(0) brightness(1) contrast(1);
}

/* Sheen sweep on hover */
.menu-page--editorial .dish-card__image-sheen {
    position: absolute;
    inset: 0;
    background: linear-gradient(115deg, transparent 32%, rgba(255, 233, 184, 0.16) 50%, transparent 68%);
    transform: translateX(-110%);
    transition: transform 0.9s ease;
    pointer-events: none;
}
.menu-page--editorial .dish-card:hover .dish-card__image-sheen {
    transform: translateX(110%);
}

/* Placeholder (products without a photo yet) */
.menu-page--editorial .dish-card__image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(circle at 30% 25%, rgba(232, 89, 12, 0.32), transparent 60%),
        linear-gradient(150deg, #3A1503 0%, #1E1915 78%);
}
.menu-page--editorial .dish-card__placeholder-text {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 74px;
    font-weight: 700;
    color: rgba(255, 179, 71, 0.5);
}

/* --- Info block --- */
.menu-page--editorial .dish-card__info {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 16px 18px 16px;
    flex: 1;
}
.menu-page--editorial .dish-card__namerow {
    display: flex;
    align-items: baseline;
    gap: 10px;
}
.menu-page--editorial .dish-card__name {
    margin: 0;
    font-size: 1.12rem;
    font-weight: 700;
    line-height: 1.25;
    color: #FAF0E6;
}
.menu-page--editorial .dish-card__leader {
    flex: 1;
    min-width: 20px;
    border-bottom: 2px dotted rgba(255, 179, 71, 0.38);
    transform: translateY(-5px);
}
.menu-page--editorial .dish-card__price {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.28rem;
    font-weight: 700;
    color: #FFB347;
    white-space: nowrap;
}
.menu-page--editorial .dish-card__price .woocommerce-Price-currencySymbol {
    font-size: 0.82em;
    margin-right: 1px;
}
.menu-page--editorial .dish-card__description {
    margin: 0;
    font-size: 0.86rem;
    line-height: 1.55;
    color: rgba(250, 240, 230, 0.68);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* --- Add to Cart --- */
.menu-page--editorial .dish-card__add {
    margin-top: auto;
    align-self: flex-start;
    padding: 9px 20px;
    border: none;
    border-radius: 999px;
    background: linear-gradient(135deg, #C04000 0%, #E8590C 100%);
    color: #FFF4E0;
    font-size: 12.5px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    cursor: pointer;
    transition: filter 0.25s ease, box-shadow 0.3s ease, transform 0.2s ease;
    will-change: transform;
}
.menu-page--editorial .dish-card__add:hover {
    filter: brightness(1.12);
    box-shadow: 0 10px 26px rgba(232, 89, 12, 0.4);
}
.menu-page--editorial .dish-card__add.added {
    background: linear-gradient(135deg, #2E7D32 0%, #43A047 100%);
}
.menu-page--editorial .dish-card__add.added::after {
    content: '  ✓';
    font-weight: 900;
}
.menu-page--editorial .dish-card__add.loading {
    opacity: 0.65;
    pointer-events: none;
}
.menu-page--editorial a.added_to_cart {
    display: block;
    text-align: center;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #FFB347;
    text-decoration: none;
    margin-top: -4px;
}
.menu-page--editorial a.added_to_cart:hover { text-decoration: underline; }

/* --------------------------------------------------------------------------
   5. NO-RESULTS NOTE (created by menu-page-fix.js)
   -------------------------------------------------------------------------- */
.menu-page--editorial .menu-page__no-results {
    max-width: 640px;
    margin: 40px auto 70px;
    padding: 34px 30px;
    text-align: center;
    font-size: 1.05rem;
    color: rgba(250, 240, 230, 0.75);
    border: 1px dashed rgba(255, 179, 71, 0.35);
    border-radius: 16px;
}

/* --------------------------------------------------------------------------
   6. CATERING STRIP
   -------------------------------------------------------------------------- */
.menu-page--editorial .menu-catering {
    position: relative;
    margin-top: 90px;
    padding: 110px 24px;
    border-top: 1px solid rgba(255, 179, 71, 0.28);
    border-bottom: 1px solid rgba(255, 179, 71, 0.28);
    text-align: center;
    overflow: hidden;
    isolation: isolate;
}
.menu-page--editorial .menu-catering__bg {
    position: absolute;
    inset: -7%;
    z-index: -2;
    background-size: cover;
    background-position: center 30%;
    opacity: 0.5;
    animation: mgKenBurns 15s ease-in-out infinite alternate;
    will-change: transform;
}
.menu-page--editorial .menu-catering__veil {
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(ellipse 75% 100% at 50% 45%, rgba(20, 18, 16, 0.55) 0%, rgba(20, 18, 16, 0.86) 100%),
        linear-gradient(180deg, #141210 0%, transparent 18%, transparent 82%, #141210 100%);
}
.menu-page--editorial .menu-catering__badge {
    display: inline-block;
    margin: 0 0 20px;
    padding: 8px 20px;
    border-radius: 999px;
    border: 1px solid rgba(255, 179, 71, 0.5);
    background: rgba(255, 179, 71, 0.12);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #FFB347;
}
.menu-page--editorial .menu-catering__inner { max-width: 760px; margin: 0 auto; }
.menu-page--editorial .menu-catering__eyebrow {
    margin: 0 0 16px;
    font-size: 11.5px;
    font-weight: 800;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: #FFB347;
}
.menu-page--editorial .menu-catering__title {
    margin: 0 0 18px;
    font-size: clamp(1.9rem, 4.4vw, 3.1rem);
    font-weight: 700;
    line-height: 1.15;
    color: #FAF0E6;
}
.menu-page--editorial .menu-catering__text {
    margin: 0 auto 34px;
    max-width: 560px;
    font-size: 1.02rem;
    line-height: 1.75;
    color: rgba(250, 240, 230, 0.75);
}
.menu-page--editorial .menu-catering__cta {
    display: inline-block;
    padding: 16px 42px;
    border-radius: 999px;
    border: 2px solid #FFB347;
    background: #FFB347;
    color: #2A1200;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    text-decoration: none;
    transition: background 0.3s ease, color 0.3s ease, box-shadow 0.3s ease, transform 0.2s ease;
    will-change: transform;
}
.menu-page--editorial .menu-catering__cta:hover {
    background: #FFE9B8;
    border-color: #FFE9B8;
    box-shadow: 0 16px 40px rgba(255, 179, 71, 0.45);
}

/* --------------------------------------------------------------------------
   7. PLATE GAME + QUIZ BANDS (existing JS renders inside)
   -------------------------------------------------------------------------- */
.menu-page--editorial .menu-page__plate-game,
.menu-page--editorial .menu-page__quiz {
    max-width: 1200px;
    margin: 0 auto;
    padding: 90px 24px 30px;
    text-align: center;
}
.menu-page--editorial .plate-game__title,
.menu-page--editorial .quiz__title {
    margin: 0 0 14px;
    font-size: clamp(1.8rem, 3.6vw, 2.6rem);
    font-weight: 700;
    color: #FAF0E6;
}
.menu-page--editorial .plate-game__description,
.menu-page--editorial .quiz__description {
    margin: 0 auto 36px;
    max-width: 560px;
    font-size: 0.98rem;
    line-height: 1.7;
    color: rgba(250, 240, 230, 0.68);
}
.menu-page--editorial .plate-game__canvas,
.menu-page--editorial .quiz__stage {
    min-height: 120px;
}

/* --------------------------------------------------------------------------
   8. MAGNETIC TARGETS get a smooth return
   -------------------------------------------------------------------------- */
.menu-page--editorial .mg-magnetic {
    transition: transform 0.18s ease-out, filter 0.25s ease, box-shadow 0.3s ease,
                background 0.3s ease, color 0.3s ease;
}

/* --------------------------------------------------------------------------
   9. RESPONSIVE
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
    .menu-page--editorial .menu-rail__inner { justify-content: center; }
    .menu-page--editorial .menu-page__search { flex: 1 1 100%; max-width: 520px; }
}
@media (max-width: 1024px) {
    .menu-page--editorial .menu-menugrid { grid-template-columns: 1fr; max-width: 780px; padding: 0 22px; }
}
@media (max-width: 768px) {
    .menu-page--editorial .menu-hero { min-height: 52vh; }
    .menu-page--editorial .menu-hero__content { padding: 120px 20px 80px; }
    .menu-page--editorial .menu-rail__inner { padding: 12px 16px; gap: 12px; }
    .menu-page--editorial .menu-category { padding: 36px 2px 40px; }
    .menu-page--editorial .menu-category__giant { top: 0; }
    .menu-page--editorial .menu-category__heading { margin-top: 24px; margin-bottom: 8px; }
    .menu-page--editorial .menu-category__dishes { margin-top: -4px; gap: 12px; }
    .menu-page--editorial .dish-card { grid-template-columns: 118px 1fr; }
    .menu-page--editorial .dish-card__image-wrapper { min-height: 128px; }
    .menu-page--editorial .menu-catering { padding: 70px 20px; margin-top: 60px; }
}



/* --------------------------------------------------------------------------
   11. DISH PHOTO LIGHTBOX | quick peek, instant close
   -------------------------------------------------------------------------- */
.menu-page--editorial .dish-card__image-wrapper { cursor: zoom-in; }
.menu-page--editorial .dish-card__image-wrapper::after {
    content: "";
    position: absolute;
    right: 10px;
    bottom: 10px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background-color: rgba(18, 13, 10, 0.74);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FFC26B' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cpath d='M15.5 15.5 21 21'/%3E%3C/svg%3E");
    background-position: center;
    background-repeat: no-repeat;
    background-size: 16px 16px;
    border: 1px solid rgba(255, 179, 71, 0.55);
    opacity: 0;
    transform: scale(0.7);
    transition: opacity 0.25s ease, transform 0.25s ease;
    pointer-events: none;
    z-index: 3;
}
.menu-page--editorial .dish-card__image-wrapper:hover::after {
    opacity: 1;
    transform: scale(1);
}

.mg-lightbox {
    position: fixed;
    inset: 0;
    z-index: 2100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(12, 9, 7, 0.92);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    opacity: 0;
    transition: opacity 0.22s ease;
    cursor: zoom-out;
}
.mg-lightbox.is-open { opacity: 1; }
.mg-lightbox__figure {
    margin: 0;
    position: relative;
    cursor: default;
    text-align: center;
}
.mg-lightbox__img {
    display: inline-block;
    max-width: min(520px, 86vw);
    max-height: 64vh;
    width: auto;
    height: auto;
    border-radius: 18px;
    border: 1px solid rgba(255, 179, 71, 0.45);
    box-shadow: 0 40px 90px rgba(0, 0, 0, 0.65),
                0 0 0 6px rgba(255, 179, 71, 0.08);
    transform: scale(0.92);
    transition: transform 0.26s cubic-bezier(0.22, 1, 0.36, 1);
}
.mg-lightbox.is-open .mg-lightbox__img { transform: scale(1); }
.mg-lightbox__caption {
    display: flex;
    align-items: baseline;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px 14px;
    margin-top: 16px;
}
.mg-lightbox__name {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.35rem;
    font-weight: 700;
    color: #FAF0E6;
}
.mg-lightbox__price {
    font-weight: 700;
    font-size: 0.95rem;
    color: #2C1810;
    background: linear-gradient(135deg, #FFC26B 0%, #F0960F 100%);
    padding: 3px 12px;
    border-radius: 999px;
}
.mg-lightbox__close {
    position: absolute;
    top: -14px;
    right: -14px;
    width: 40px;
    height: 40px;
    padding: 0;                 /* Astra buttons carry 15px 30px padding */
    box-sizing: border-box;
    flex: none;
    border-radius: 50%;
    background: linear-gradient(135deg, #FFC26B 0%, #F0960F 100%);
    border: 2px solid #FFF3E0;
    color: #2C1810;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.55);
    transition: transform 0.2s ease, filter 0.2s ease;
    z-index: 2101;
}
.mg-lightbox__close:hover { filter: brightness(1.12); transform: rotate(90deg); }
.mg-lightbox__close svg { width: 15px; height: 15px; }
body.mg-lightbox-lock { overflow: hidden; }
@media (max-width: 768px) {
    .mg-lightbox__img { max-height: 58vh; }
    .mg-lightbox__close { width: 36px; height: 36px; top: -12px; right: -10px; }
    .mg-lightbox__name { font-size: 1.15rem; }
}

/* --------------------------------------------------------------------------
   10. REDUCED MOTION
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    .menu-page--editorial *,
    .menu-page--editorial *::before,
    .menu-page--editorial *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    html.mg-darkroom .menu-page--editorial .dish-card { opacity: 1; transform: none; }
    html.mg-darkroom .menu-page--editorial .dish-card__image--darkroom { filter: none; }
}

/* --------------------------------------------------------------------------
   11. CHARCOAL SITE HEADER on the Menu template (matches the editorial canvas)
   -------------------------------------------------------------------------- */
body.page-template-template-menu-editorial-php .site-header .main-header-bar,
body.page-template-template-menu-editorial-php .site-header .ast-primary-header-bar,
body.page-template-template-menu-editorial-php .ast-main-header-wrap {
    background: rgba(20, 18, 16, 0.97) !important;
    border-bottom: 1px solid rgba(255, 179, 71, 0.18) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}
body.page-template-template-menu-editorial-php .site-header,
body.page-template-template-menu-editorial-php .site-header .site-title,
body.page-template-template-menu-editorial-php .site-header .site-title a {
    color: #FAF0E6 !important;
}
body.page-template-template-menu-editorial-php .site-header .site-title a {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 700;
    letter-spacing: 0.01em;
}
body.page-template-template-menu-editorial-php .site-header .main-header-menu .menu-link,
body.page-template-template-menu-editorial-php .site-header .ast-header-custom-item,
body.page-template-template-menu-editorial-php .site-header .ast-header-custom-item a {
    color: rgba(250, 240, 230, 0.82) !important;
}
body.page-template-template-menu-editorial-php .site-header .main-header-menu .menu-link:hover,
body.page-template-template-menu-editorial-php .site-header .main-header-menu .current-menu-item > .menu-link,
body.page-template-template-menu-editorial-php .site-header .main-header-menu .current_page_item > .menu-link {
    color: #FFB347 !important;
}
body.page-template-template-menu-editorial-php .site-header .menu-toggle,
body.page-template-template-menu-editorial-php .site-header .menu-toggle .ast-icon,
body.page-template-template-menu-editorial-php .site-header .menu-toggle svg {
    color: #FAF0E6 !important;
    fill: #FAF0E6 !important;
}

/* --------------------------------------------------------------------------
   12. CHARCOAL SITE FOOTER on the Menu template
   -------------------------------------------------------------------------- */
body.page-template-template-menu-editorial-php .site-footer,
body.page-template-template-menu-editorial-php .site-footer .ast-builder-grid-row-container,
body.page-template-template-menu-editorial-php .site-footer .site-below-footer-wrap,
body.page-template-template-menu-editorial-php .site-footer .site-primary-footer-wrap {
    background: #141210 !important;
    color: rgba(250, 240, 230, 0.72) !important;
    border-top: 1px solid rgba(255, 179, 71, 0.18) !important;
}
body.page-template-template-menu-editorial-php .site-footer a {
    color: #FFB347 !important;
}
body.page-template-template-menu-editorial-php .site-footer a:hover {
    color: #FFE9B8 !important;
}

/* --------------------------------------------------------------------------
   13. STICKY RAIL OFFSET below the WP admin bar (logged-in only)
   -------------------------------------------------------------------------- */
body.admin-bar .menu-page--editorial .menu-rail {
    top: 32px;
}
@media (max-width: 782px) {
    body.admin-bar .menu-page--editorial .menu-rail { top: 46px; }
}

/* --------------------------------------------------------------------------
   14. RAIL FIXED MODE (JS pins it under the custom mg-header)
   -------------------------------------------------------------------------- */
.menu-page--editorial .menu-rail.is-fixed {
    position: fixed;
    left: 0;
    right: 0;
    top: 0; /* JS sets the exact px below the fixed header */
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5);
}
.menu-rail__placeholder {
    display: none;
}
.menu-rail__placeholder.is-active {
    display: block;
}

/* --------------------------------------------------------------------------
   15. LUXE TOUCHES | price shimmer + ember underline on section titles
   -------------------------------------------------------------------------- */
.menu-page--editorial .dish-card__price {
    background: linear-gradient(100deg, #FFB347 30%, #FFE9B8 50%, #FFB347 70%);
    background-size: 220% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.menu-page--editorial .dish-card:hover .dish-card__price {
    animation: mgPriceShimmer 1.6s linear infinite;
}
@keyframes mgPriceShimmer {
    0%   { background-position: 120% 0; }
    100% { background-position: -120% 0; }
}

/* ==========================================================================
   FOOTER GOLD SEPARATOR | thin gold line with a slow light beam
   sweeping left -> right (matches the header ember line, but living).
   ========================================================================== */
.mg-footer-separator {
    position: relative;
    height: 3px;
    overflow: hidden;
    background: linear-gradient(90deg,
        rgba(255, 179, 71, 0.05) 0%,
        rgba(255, 179, 71, 0.28) 50%,
        rgba(255, 179, 71, 0.05) 100%);
}
.mg-footer-separator__beam {
    position: absolute;
    top: -2px;
    bottom: -2px;
    left: -38%;
    width: 34%;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(255, 179, 71, 0.55) 32%,
        #FFE3B0 50%,
        rgba(255, 179, 71, 0.55) 68%,
        transparent 100%);
    filter: blur(1px);
    box-shadow: 0 0 18px 4px rgba(255, 179, 71, 0.45);
    animation: mgFooterSweep 7.5s linear infinite;
    will-change: left;
}
@keyframes mgFooterSweep {
    0%   { left: -38%; opacity: 0; }
    6%   { opacity: 1; }
    94%  { opacity: 1; }
    100% { left: 104%; opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
    .mg-footer-separator__beam { animation: none; opacity: 0.4; left: 33%; }
}

/* ==========================================================================
   11. THE MA YVE LAB | game panels (Plate Builder CTA + Spice Quiz)
   ========================================================================== */
.menu-page--editorial .menu-lab {
    position: relative;
    padding: 104px 24px 96px;
    text-align: center;
}
.menu-page--editorial .menu-lab__inner { max-width: 1120px; margin: 0 auto; }
.menu-page--editorial .menu-lab__eyebrow {
    display: inline-block;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: #FFB347;
    margin-bottom: 14px;
}
.menu-page--editorial .menu-lab__title {
    margin: 0 0 14px;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(2.1rem, 4vw, 3.3rem);
    font-weight: 700;
    color: #FAF0E6;
}
.menu-page--editorial .menu-lab__sub {
    margin: 0 auto 52px;
    max-width: 660px;
    font-size: 1rem;
    line-height: 1.7;
    color: rgba(250, 240, 230, 0.66);
}
.menu-page--editorial .menu-lab__panels {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}
.menu-page--editorial .menu-lab-panel {
    position: relative;
    padding: 46px 38px 42px;
    background: linear-gradient(165deg, #211A15 0%, #171310 100%);
    border: 1px solid rgba(255, 179, 71, 0.22);
    border-radius: 24px;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
                border-color 0.4s ease,
                box-shadow 0.4s ease;
}
.menu-page--editorial .menu-lab-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 70% 55% at 50% 0%, rgba(255, 179, 71, 0.10), transparent 70%);
    pointer-events: none;
}
.menu-page--editorial .menu-lab-panel:hover {
    transform: translateY(-7px);
    border-color: rgba(255, 179, 71, 0.55);
    box-shadow: 0 26px 60px -18px rgba(255, 179, 71, 0.22);
}
.menu-page--editorial .menu-lab-panel__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 84px;
    height: 84px;
    margin-bottom: 22px;
    border-radius: 50%;
    border: 1px solid rgba(255, 179, 71, 0.45);
    background: rgba(255, 179, 71, 0.08);
    color: #FFB347;
}
.menu-page--editorial .menu-lab-panel__title {
    margin: 0 0 12px;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.7rem;
    font-weight: 700;
    color: #FAF0E6;
}
.menu-page--editorial .menu-lab-panel__text {
    margin: 0 0 28px;
    font-size: 0.95rem;
    line-height: 1.7;
    color: rgba(250, 240, 230, 0.68);
}
.menu-page--editorial .menu-lab-panel__btn {
    display: inline-block;
    padding: 14px 34px;
    border-radius: 999px;
    border: 1.5px solid rgba(255, 179, 71, 0.65);
    background: transparent;
    color: #FFB347;
    font-size: 12.5px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}
.menu-page--editorial .menu-lab-panel__btn:hover {
    background: rgba(255, 179, 71, 0.14);
    box-shadow: 0 10px 30px -10px rgba(255, 179, 71, 0.45);
}
.menu-page--editorial .menu-lab-panel__btn--gold {
    background: linear-gradient(135deg, #FFB347 0%, #E8890C 100%);
    border-color: transparent;
    color: #2C1810;
}
.menu-page--editorial .menu-lab-panel__btn--gold:hover {
    background: linear-gradient(135deg, #FFC26B 0%, #F0960F 100%);
    color: #2C1810;
    filter: brightness(1.08);
    box-shadow: 0 14px 36px -10px rgba(255, 179, 71, 0.55);
}
@media (max-width: 900px) {
    .menu-page--editorial .menu-lab__panels { grid-template-columns: 1fr; }
}

/* ==========================================================================
   12. SPICE MASTER QUIZ | full skin (engine renders into #quiz-root)
   The engine's floating button stays hidden: the Lab panel opens the modal.
   ========================================================================== */
#quiz-root .quiz-float-btn { display: none; }

#quiz-root .quiz-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(12, 9, 7, 0.78);
    backdrop-filter: blur(6px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
}
#quiz-root .quiz-overlay.open { opacity: 1; pointer-events: auto; }

#quiz-root .quiz-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    right: auto;   /* legacy interactive-features.css sets inset:0, cancel it */
    bottom: auto;
    align-items: stretch;
    justify-content: flex-start;
    z-index: 2001;
    width: min(580px, calc(100vw - 32px));
    max-height: min(760px, calc(100vh - 48px));
    display: flex;
    flex-direction: column;
    background: linear-gradient(170deg, #241C16 0%, #171310 100%);
    border: 1px solid rgba(255, 179, 71, 0.35);
    border-radius: 24px;
    box-shadow: 0 40px 110px -20px rgba(0, 0, 0, 0.75),
                0 0 90px -30px rgba(255, 179, 71, 0.35);
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, -46%) scale(0.95);
    transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
#quiz-root .quiz-modal.open {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, -50%) scale(1);
}

#quiz-root .quiz-modal-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px 24px;
    border-bottom: 1px solid rgba(255, 179, 71, 0.18);
}
#quiz-root .quiz-avatar {
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255, 179, 71, 0.5);
    background-color: rgba(255, 179, 71, 0.10);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64' fill='none' stroke='%23FFB347' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M32 6c2 8-8 12-8 22a12 12 0 0 0 24 0c0-6-4-9-4-14 4 3 8 8 8 14a20 20 0 1 1-40 0C12 18 24 14 32 6z'/%3E%3C/svg%3E");
    background-size: 24px 24px;
    background-position: center;
    background-repeat: no-repeat;
    font-size: 0; /* hides the engine's emoji | SVG per PFCA standard */
}
#quiz-root .quiz-modal-header h2 {
    margin: 0;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.45rem;
    font-weight: 700;
    color: #FAF0E6;
}
#quiz-root .quiz-close {
    margin-left: auto;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid rgba(255, 179, 71, 0.35);
    background: transparent;
    color: #FFB347;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    transition: background 0.25s ease, transform 0.25s ease;
}
#quiz-root .quiz-close:hover { background: rgba(255, 179, 71, 0.14); transform: rotate(90deg); }

#quiz-root .quiz-modal-body {
    padding: 26px 26px 22px;
    overflow-y: auto;
}
#quiz-root .quiz-modal-body.animate-in { animation: mgQuizIn 0.4s ease; }
@keyframes mgQuizIn {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

#quiz-root .quiz-question { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 22px; padding: 0; text-align: left; }
#quiz-root .quiz-q-num {
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, #FFB347, #E8890C);
    color: #2C1810;
    font-weight: 800;
    font-size: 0.95rem;
}
#quiz-root .quiz-q-text {
    margin: 4px 0 0;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.22rem;
    line-height: 1.45;
    color: #FAF0E6;
}
#quiz-root .quiz-answers { display: grid; gap: 10px; padding: 0; }
#quiz-root .quiz-answer-btn {
    display: flex;
    align-items: center;
    gap: 13px;
    width: 100%;
    padding: 13px 16px;
    text-align: left;
    background: rgba(255, 179, 71, 0.05);
    border: 1px solid rgba(255, 179, 71, 0.20);
    border-radius: 14px;
    color: #FAF0E6;
    font-size: 0.98rem;
    cursor: pointer;
    transition: border-color 0.25s ease, background 0.25s ease, transform 0.2s ease, opacity 0.25s ease;
}
#quiz-root .quiz-answer-btn:hover:not(:disabled) {
    border-color: rgba(255, 179, 71, 0.6);
    background: rgba(255, 179, 71, 0.11);
    transform: translateX(4px);
}
#quiz-root .quiz-answer-btn:disabled { cursor: default; }
#quiz-root .quiz-badge {
    flex: 0 0 auto;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    border: 1px solid rgba(255, 179, 71, 0.45);
    color: #FFB347;
    font-weight: 800;
    font-size: 0.85rem;
}
#quiz-root .quiz-answer-btn.correct {
    border-color: rgba(88, 196, 110, 0.85);
    background: rgba(88, 196, 110, 0.16);
}
#quiz-root .quiz-answer-btn.correct .quiz-badge { border-color: rgba(88, 196, 110, 0.9); color: #7EDB97; }
#quiz-root .quiz-answer-btn.wrong {
    border-color: rgba(224, 82, 62, 0.85);
    background: rgba(224, 82, 62, 0.14);
}
#quiz-root .quiz-answer-btn.wrong .quiz-badge { border-color: rgba(224, 82, 62, 0.9); color: #F08673; }
#quiz-root .quiz-answer-btn.dimmed { opacity: 0.42; }

/* --- Results --- */
#quiz-root .quiz-results { text-align: center; padding: 6px 0 4px; }
#quiz-root .quiz-score-ring {
    width: 108px;
    height: 108px;
    margin: 0 auto 18px;
    display: flex;
    align-items: baseline;
    justify-content: center;
    padding-top: 30px;
    border-radius: 50%;
    border: 2px solid rgba(255, 179, 71, 0.65);
    background: radial-gradient(circle at 50% 32%, rgba(255, 179, 71, 0.16), rgba(255, 179, 71, 0.04));
    box-shadow: 0 0 44px -8px rgba(255, 179, 71, 0.4);
}
#quiz-root .quiz-score-num {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 2.6rem;
    font-weight: 800;
    color: #FFB347;
}
#quiz-root .quiz-score-den { font-size: 1.1rem; color: rgba(250, 240, 230, 0.6); }
#quiz-root .quiz-result-title {
    margin: 0 0 8px;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.55rem;
    color: #FAF0E6;
}
#quiz-root .quiz-result-subtitle {
    margin: 0 auto 20px;
    max-width: 400px;
    font-size: 0.92rem;
    line-height: 1.6;
    color: rgba(250, 240, 230, 0.68);
}
#quiz-root .quiz-discount-box {
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: center;
    margin: 0 auto 18px;
    padding: 16px 20px;
    max-width: 320px;
    border: 1.5px dashed rgba(255, 179, 71, 0.6);
    border-radius: 16px;
    background: rgba(255, 179, 71, 0.07);
}
#quiz-root .quiz-discount-label {
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(250, 240, 230, 0.6);
}
#quiz-root .quiz-discount-code {
    font-size: 1.7rem;
    font-weight: 800;
    letter-spacing: 0.22em;
    color: #FFB347;
}
#quiz-root .quiz-discount-value { font-size: 0.9rem; font-weight: 700; color: #FAF0E6; }
#quiz-root .quiz-copy-btn,
#quiz-root .quiz-restart-btn {
    display: inline-block;
    margin: 4px 6px 0;
    padding: 12px 26px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    cursor: pointer;
    transition: filter 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}
#quiz-root .quiz-copy-btn {
    border: none;
    background: linear-gradient(135deg, #FFB347 0%, #E8890C 100%);
    color: #2C1810;
}
#quiz-root .quiz-copy-btn:hover { filter: brightness(1.08); box-shadow: 0 10px 28px -8px rgba(255, 179, 71, 0.5); }
#quiz-root .quiz-restart-btn {
    border: 1px solid rgba(255, 179, 71, 0.5);
    background: transparent;
    color: #FFB347;
}
#quiz-root .quiz-restart-btn:hover { background: rgba(255, 179, 71, 0.12); }

/* --- Footer / progress --- */
#quiz-root .quiz-modal-footer {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 24px 20px;
    border-top: 1px solid rgba(255, 179, 71, 0.18);
}
#quiz-root .quiz-progress-bar {
    flex: 1;
    height: 6px;
    border-radius: 999px;
    background: rgba(255, 179, 71, 0.14);
    overflow: hidden;
}
#quiz-root .quiz-progress-fill {
    height: 100%;
    width: 0;
    border-radius: 999px;
    background: linear-gradient(90deg, #E8890C, #FFB347);
    box-shadow: 0 0 12px rgba(255, 179, 71, 0.6);
    transition: width 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
#quiz-root .quiz-progress-text { font-size: 0.85rem; font-weight: 700; color: #FFB347; }

/* --- v6.1 compact pass: whole quiz fits without scrolling --- */
#quiz-root .quiz-modal-body { padding: 20px 24px 14px; }
#quiz-root .quiz-question { margin-bottom: 16px; }
#quiz-root .quiz-answers { gap: 9px; }
#quiz-root .quiz-answer-btn { padding: 11px 14px; }
#quiz-root .quiz-results { padding: 0; }
#quiz-root .quiz-score-ring { width: 88px; height: 88px; padding-top: 25px; margin-bottom: 12px; }
#quiz-root .quiz-score-num { font-size: 2.1rem; }
#quiz-root .quiz-result-title { font-size: 1.35rem; margin-bottom: 6px; }
#quiz-root .quiz-result-subtitle { margin-bottom: 14px; font-size: 0.88rem; }
#quiz-root .quiz-discount-box { padding: 12px 18px; margin-bottom: 12px; }
#quiz-root .quiz-discount-code { font-size: 1.45rem; }
#quiz-root .quiz-copy-btn, #quiz-root .quiz-restart-btn { padding: 10px 22px; }
#quiz-root .quiz-modal-footer { padding: 12px 24px 15px; }
