/* ==========================================================================
   What to Eat — Ferris Wheel picker
   Page chrome is theme-aware (var(--theme-*)); the ferris-wheel scene uses
   fixed "physical" colours (food shouldn't invert in dark mode) with a
   dark-sky override so it sits nicely on dark themes.
   ========================================================================== */
.page-what-to-eat-picker {
    --wte-primary: #e8590c;
    --wte-grad: linear-gradient(135deg, #f97316, #e8590c);
    --wte-ink: var(--theme-text, #1f2430);
    /* ⚠️ --theme-muted, NOT --theme-text-muted: the latter is not defined
       anywhere in themes.css, so it silently fell back to the literal on every
       theme and this copy never adapted. */
    --wte-muted: var(--theme-muted, #6b7280);
    --wte-surface: var(--theme-surface, #ffffff);
    --wte-border: var(--theme-border, #e5e7eb);
    --wte-sky: #dcecfa;
    --wte-cloud: #ffffff;
    --wte-ground: #cdb894;
}
body[data-theme="dark"].page-what-to-eat-picker,
body[data-theme="gaming"].page-what-to-eat-picker,
body[data-theme="crypto"].page-what-to-eat-picker,
body[data-theme="studio"].page-what-to-eat-picker,
body[data-theme="high-contrast"].page-what-to-eat-picker {
    --wte-sky: #10263a;
    --wte-cloud: #274863;
    --wte-ground: #3a4a5a;
}

/* ---- Ambient backdrop (subtle branded glow, like the gold-standard pages) - */
.page-what-to-eat-picker::before {
    content: ""; position: fixed; inset: 0; z-index: -2; pointer-events: none;
    background:
        radial-gradient(1100px 560px at 6% -6%, rgba(232, 89, 12, 0.09), transparent 60%),
        radial-gradient(950px 520px at 96% 2%, rgba(249, 115, 22, 0.07), transparent 62%),
        radial-gradient(880px 640px at 50% 108%, rgba(232, 89, 12, 0.05), transparent 60%);
}

/* ---- Stage + wheel ------------------------------------------------------- */
.page-what-to-eat-picker .wte-stage { position: relative; max-width: 560px; margin: 0 auto; }
.page-what-to-eat-picker .wte-stage-wrap { position: relative; }
.page-what-to-eat-picker .wte-map,
.page-what-to-eat-picker #wteStage { display: block; }
.page-what-to-eat-picker .wte-svg { width: 100%; height: auto; display: block; max-height: 60vh; }
.page-what-to-eat-picker .wte-sky { fill: var(--wte-sky); }
.page-what-to-eat-picker .wte-cloud { fill: var(--wte-cloud); opacity: .8; }
.page-what-to-eat-picker .wte-ground { fill: var(--wte-ground); opacity: .55; }
.page-what-to-eat-picker .wte-hl { transition: opacity .2s ease; }
.page-what-to-eat-picker .wte-hl.is-on { animation: wtePulse 1s ease-in-out infinite; }
@keyframes wtePulse { 0%,100%{ opacity:1 } 50%{ opacity:.35 } }
.page-what-to-eat-picker .wte-lbl {
    font: 800 11px var(--bs-body-font-family, sans-serif); text-anchor: middle;
    paint-order: stroke; stroke: #fff; stroke-width: 3px; stroke-linejoin: round; fill: #2b2b2b;
}
.page-what-to-eat-picker .wte-plate-txt {
    font: 700 10px var(--bs-body-font-family, sans-serif); text-anchor: middle; fill: #5b6470;
}
body[data-theme].page-what-to-eat-picker .wte-lbl { stroke: #101820; fill: #f0f4f8; }

/* ---- Pick button --------------------------------------------------------- */
.page-what-to-eat-picker .wte-pick-btn {
    display: block; width: 100%; border: 0; border-radius: 12px; padding: 0.95rem 1rem; margin-top: 0.5rem;
    font-size: 1.1rem; font-weight: 800; letter-spacing: .02em; color: #fff; background: var(--wte-grad);
    cursor: pointer; box-shadow: 0 12px 26px -12px rgba(232,89,12,.85); transition: transform .12s ease, filter .12s ease;
}
.page-what-to-eat-picker .wte-pick-btn:hover:not(:disabled) { transform: translateY(-2px); }
.page-what-to-eat-picker .wte-pick-btn:disabled { filter: grayscale(.3) opacity(.75); cursor: default; }
.page-what-to-eat-picker .wte-pick-btn.is-busy { animation: wteBusy .9s ease-in-out infinite; }
@keyframes wteBusy { 50% { filter: brightness(1.12); } }

/* ---- Hop / spin duration slider ----------------------------------------- */
.page-what-to-eat-picker .wte-duration { margin: 0.9rem 0 0.35rem; }
.page-what-to-eat-picker .wte-duration > label {
    display: flex; align-items: center; gap: .35rem; font-size: .85rem; font-weight: 600; color: var(--wte-muted); margin-bottom: .4rem;
}
.page-what-to-eat-picker .wte-duration-val { margin-left: auto; font-weight: 800; color: var(--wte-primary); font-variant-numeric: tabular-nums; }
.page-what-to-eat-picker .wte-range { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 999px; background: rgba(120,120,120,.25); outline: none; cursor: pointer; }
.page-what-to-eat-picker .wte-range::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 18px; height: 18px; border-radius: 50%; background: var(--wte-grad); border: 2px solid #fff; box-shadow: 0 2px 6px -1px rgba(232,89,12,.7); }
.page-what-to-eat-picker .wte-range::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: #e8590c; border: 2px solid #fff; }
.page-what-to-eat-picker .wte-range-ends { display: flex; justify-content: space-between; font-size: .72rem; color: var(--wte-muted); opacity: .75; margin-top: .25rem; }

/* ---- Winner result bar (shared layout — identity only here) ------------- */
.page-what-to-eat-picker .wsp-result {
    --wsp-result-accent: var(--wte-primary);
    --wsp-result-grad: var(--wte-grad);
    --wsp-result-btn-ink: #ffffff;
    --wsp-result-plate: #fcebe2;
    --wsp-result-tint: rgba(232, 89, 12, .08);
}

.page-what-to-eat-picker .wte-count { text-align: center; font-size: .9rem; color: var(--wte-muted); margin: .5rem 0 .25rem; }
.page-what-to-eat-picker .wte-count.is-warn { color: var(--wte-primary); font-weight: 700; }
.page-what-to-eat-picker .wte-status { text-align: center; font-size: .85rem; color: var(--wte-muted); min-height: 1rem; }
.page-what-to-eat-picker .wte-effects { display: flex; gap: 1.2rem; justify-content: center; margin-top: .75rem; }
.page-what-to-eat-picker .wte-effects label { font-size: .85rem; color: var(--wte-muted); display: inline-flex; align-items: center; gap: .35rem; }

/* ---- Winner reveal (dish art inside the shared #winnerModal) ------------- */
.page-what-to-eat-picker .wte-modal-img { width: 148px; height: 148px; display: inline-block; }
.wte-modal-img { width: 148px; height: 148px; display: inline-block; }
.wte-modal-emoji { font-size: 72px; line-height: 1; }

/* ---- Dish picker grid (settings) ---------------------------------------- */
.page-what-to-eat-picker .wte-dish-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: .5rem; }
.page-what-to-eat-picker .wte-dish {
    border: 2px solid var(--wte-border); background: var(--wte-surface); border-radius: 12px; padding: .4rem .2rem .3rem;
    cursor: pointer; text-align: center; transition: transform .1s ease, border-color .1s ease, box-shadow .1s ease; opacity: .55;
}
.page-what-to-eat-picker .wte-dish img { width: 58px; height: 58px; display: block; margin: 0 auto .1rem; object-fit: contain; }
.page-what-to-eat-picker .wte-dish span { font-size: .68rem; font-weight: 600; color: var(--wte-ink); display: block; line-height: 1.1; }
.page-what-to-eat-picker .wte-dish:hover { transform: translateY(-2px); border-color: var(--wte-primary); }
.page-what-to-eat-picker .wte-dish.is-on { opacity: 1; border-color: var(--wte-primary); box-shadow: 0 6px 16px -10px rgba(232,89,12,.8); }
.page-what-to-eat-picker .wte-custom-row { display: flex; gap: .4rem; margin-top: .6rem; }
.page-what-to-eat-picker .wte-custom-row input {
    flex: 1 1 auto; border: 1px solid var(--wte-border); border-radius: 10px; padding: .5rem .7rem; font-size: .9rem;
    background: var(--wte-surface); color: var(--wte-ink);
}
.page-what-to-eat-picker .wte-custom-row button { border: 0; border-radius: 10px; padding: .5rem .9rem; font-weight: 700; color: #fff; background: var(--wte-grad); cursor: pointer; }

/* ---- SEO content section (.wte-content) --------------------------------- */
.page-what-to-eat-picker .wte-content {
    color: var(--wte-ink);
    background: linear-gradient(180deg, #ffffff 0%, #fff5ee 100%);
    padding: 3.5rem 0 3.75rem; margin-top: 1rem;
    border-top: 1px solid var(--wte-border);
}
body[data-theme].page-what-to-eat-picker .wte-content { background: var(--theme-bg); }
.page-what-to-eat-picker .wte-inner { max-width: 860px; margin: 0 auto; padding: 0 1rem; }
.page-what-to-eat-picker .wte-content h2,
.page-what-to-eat-picker .wte-content h3 { color: var(--wte-ink); }
.page-what-to-eat-picker .wte-content p,
.page-what-to-eat-picker .wte-content li { color: var(--wte-muted); }
.page-what-to-eat-picker .wte-content strong { color: var(--wte-ink); }
.page-what-to-eat-picker .wte-content em { color: var(--wte-ink); font-style: italic; }
.page-what-to-eat-picker .wte-content a { color: var(--wte-primary); text-decoration: underline; text-underline-offset: 2px; font-weight: 600; }
.page-what-to-eat-picker .wte-content a:hover { color: #b3450a; }

.page-what-to-eat-picker .wte-kicker {
    display: inline-block; font-size: .72rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
    color: #fff; background: var(--wte-grad); border-radius: 999px; padding: .3rem .85rem; margin-bottom: .85rem;
}
.page-what-to-eat-picker .wte-lead { font-size: 1.2rem; line-height: 1.7; color: var(--wte-ink); }
.page-what-to-eat-picker .wte-section { margin-top: 3rem; }
.page-what-to-eat-picker .wte-list { margin: .4rem 0 0; padding-left: 1.15rem; }

/* Numbered step cards (3-up, wraps on small screens) */
.page-what-to-eat-picker .wte-steps {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: .9rem; margin-top: 1.4rem;
}
.page-what-to-eat-picker .wte-step {
    display: flex; gap: .75rem; align-items: flex-start;
    background: var(--wte-surface); border: 1px solid var(--wte-border); border-radius: 14px; padding: 1rem 1.05rem;
    box-shadow: 0 10px 24px -18px rgba(232,89,12,.6);
}
.page-what-to-eat-picker .wte-step-num {
    flex: none; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%;
    font-weight: 800; color: #fff; background: var(--wte-grad);
}
.page-what-to-eat-picker .wte-step-body { min-width: 0; }
.page-what-to-eat-picker .wte-step-title { font-weight: 800; color: var(--wte-ink); margin-bottom: .15rem; }
.page-what-to-eat-picker .wte-step-body p { font-size: .9rem; margin: 0; }

/* Callout panel (the "fair every spin" block) */
.page-what-to-eat-picker .wte-callout {
    background: var(--wte-surface); border: 1px solid var(--wte-border); border-left: 4px solid var(--wte-primary);
    border-radius: 14px; padding: 1.4rem 1.5rem;
}
.page-what-to-eat-picker .wte-callout p { margin-bottom: 0; }

/* FAQ accordion — theme-aware */
.page-what-to-eat-picker .wte-content .accordion { margin-top: 1rem; border-radius: 14px; overflow: hidden; border: 1px solid var(--wte-border); }
.page-what-to-eat-picker .wte-content .accordion-item { border: 0; border-bottom: 1px solid var(--wte-border); background: var(--wte-surface); }
.page-what-to-eat-picker .wte-content .accordion-item:last-child { border-bottom: 0; }
.page-what-to-eat-picker .wte-content .accordion-button { font-weight: 700; color: var(--wte-ink); background: var(--wte-surface); }
.page-what-to-eat-picker .wte-content .accordion-button:not(.collapsed) { color: var(--wte-primary); background: var(--wte-surface); box-shadow: none; }
.page-what-to-eat-picker .wte-content .accordion-body { color: var(--wte-muted); }

@media (max-width: 767.98px) {
    .page-what-to-eat-picker .wte-steps { grid-template-columns: 1fr; }
    .page-what-to-eat-picker .wte-h2 { font-size: 1.6rem; }
}

@media (prefers-reduced-motion: reduce) {
    .page-what-to-eat-picker .wte-hl.is-on { animation: none; }
    .page-what-to-eat-picker .wte-pick-btn { transition: none; }
}


/* ---- High-contrast -------------------------------------------------------
   HC sets --theme-muted: #1f2937, which is right on its WHITE cards and
   unreadable on its BLACK body (measured 1.43:1). So the content section's
   copy goes light, and every white-surfaced component inside it is restored
   to dark with a more specific selector. Must stay LAST in the file:
   equal-specificity declarations are resolved by source order. */
body[data-theme="high-contrast"].page-what-to-eat-picker .wte-content p,
body[data-theme="high-contrast"].page-what-to-eat-picker .wte-content li {
    color: rgba(255, 255, 255, .84);
}
body[data-theme="high-contrast"].page-what-to-eat-picker .wte-step-body p,
body[data-theme="high-contrast"].page-what-to-eat-picker .wte-step-title,
body[data-theme="high-contrast"].page-what-to-eat-picker .wte-step strong,
body[data-theme="high-contrast"].page-what-to-eat-picker .wte-callout p,
body[data-theme="high-contrast"].page-what-to-eat-picker .wte-callout li,
body[data-theme="high-contrast"].page-what-to-eat-picker .wte-callout strong {
    color: #1f2937;
}
