/* ==========================================================================
   World Cuisine Picker — Revolving Table (standalone page)
   Shares revolving-table-engine.js (config prefix 'wcp' → #wcpStage, .wcp-hl…).
   "Spice market" identity: terracotta + saffron gold. The table/food use fixed
   "physical" colours; page chrome + content follow the site theme (var --theme-*).
   ========================================================================== */
.page-world-cuisine-picker {
    --wcp-primary: #c2410c;
    --wcp-primary-2: #9a3412;
    --wcp-accent: #ca8a04;
    --wcp-accent-2: #a16207;
    --wcp-grad: linear-gradient(135deg, #ea580c, #9a3412);
    --wcp-gold-grad: linear-gradient(135deg, #f59e0b, #a16207);
    --wcp-ink: var(--theme-text, #2a1a12);
    /* ⚠️ --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. */
    --wcp-muted: var(--theme-muted, #6b5347);
    --wcp-surface: var(--theme-surface, #ffffff);
    --wcp-soft: var(--theme-surface, #fdf1ea);
    --wcp-soft-2: var(--theme-surface, #fbe3d5);
    --wcp-border: var(--theme-border, #f0d6c6);
    --wcp-ring: rgba(194, 65, 12, 0.22);
}
body[data-theme="dark"].page-world-cuisine-picker,
body[data-theme="gaming"].page-world-cuisine-picker,
body[data-theme="crypto"].page-world-cuisine-picker,
body[data-theme="studio"].page-world-cuisine-picker,
body[data-theme="high-contrast"].page-world-cuisine-picker {
    --wcp-soft: var(--theme-surface, #2a1a12);
    --wcp-soft-2: var(--theme-surface, #3a251a);
}

/* ---- Ambient backdrop ---------------------------------------------------- */
.page-world-cuisine-picker::before {
    content: ""; position: fixed; inset: 0; z-index: -2; pointer-events: none;
    background:
        radial-gradient(1100px 560px at 6% -6%, rgba(194, 65, 12, 0.10), transparent 60%),
        radial-gradient(950px 520px at 96% 2%, rgba(202, 138, 4, 0.08), transparent 62%),
        radial-gradient(880px 640px at 50% 108%, rgba(154, 52, 18, 0.05), transparent 60%);
}

/* ---- Stage + revolving table -------------------------------------------- */
.page-world-cuisine-picker .wcp-stage { position: relative; max-width: 560px; margin: 0 auto; }
.page-world-cuisine-picker .wcp-stage-wrap { position: relative; }
.page-world-cuisine-picker #wcpStage { display: block; }
.page-world-cuisine-picker .wcp-svg { width: 100%; height: auto; display: block; max-height: 74vh; }
.page-world-cuisine-picker .wcp-hl { transition: opacity .2s ease; }
.page-world-cuisine-picker .wcp-hl.is-on { animation: wcpPulse 1s ease-in-out infinite; }
@keyframes wcpPulse { 0%,100%{ opacity:1 } 50%{ opacity:.35 } }
.page-world-cuisine-picker .wcp-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: #3a271c;
}
.page-world-cuisine-picker .wcp-plate-txt { font: 700 10px var(--bs-body-font-family, sans-serif); text-anchor: middle; fill: #6b5347; }

/* ---- Centre spin button (the globe) ------------------------------------- */
.page-world-cuisine-picker .wcp-center { cursor: pointer; outline: none; -webkit-tap-highlight-color: transparent; transform-box: fill-box; transform-origin: center; transition: transform .14s ease; }
.page-world-cuisine-picker .wcp-center:focus, .page-world-cuisine-picker .wcp-center:focus-visible { outline: none; }
.page-world-cuisine-picker .wcp-center:hover { transform: scale(1.06); }
.page-world-cuisine-picker .wcp-center:active { transform: scale(0.97); }
.page-world-cuisine-picker .wcp-center:focus-visible .wcp-center-ring { stroke-width: 5; opacity: 1; }
.page-world-cuisine-picker .wcp-center-ring { animation: wcpCenterPulse 2.2s ease-in-out infinite; }
@keyframes wcpCenterPulse { 0%,100% { opacity: .35; stroke-width: 3; } 50% { opacity: 1; stroke-width: 4.5; } }
.page-world-cuisine-picker .wcp-center.is-busy { cursor: default; }
.page-world-cuisine-picker .wcp-center.is-busy .wcp-center-ring { animation: none; opacity: .25; }

/* ---- Pick button --------------------------------------------------------- */
.page-world-cuisine-picker .wcp-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(--wcp-grad);
    cursor: pointer; box-shadow: 0 12px 26px -12px rgba(194,65,12,.85); transition: transform .12s ease, filter .12s ease;
}
.page-world-cuisine-picker .wcp-pick-btn:hover:not(:disabled) { transform: translateY(-2px); }
.page-world-cuisine-picker .wcp-pick-btn:disabled { filter: grayscale(.3) opacity(.75); cursor: default; }
.page-world-cuisine-picker .wcp-pick-btn.is-busy { animation: wcpBusy .9s ease-in-out infinite; }
@keyframes wcpBusy { 50% { filter: brightness(1.12); } }

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

/* ---- Winner result bar (shared layout — identity only here) ------------- */
.page-world-cuisine-picker .wsp-result {
    --wsp-result-accent: var(--wcp-primary);
    --wsp-result-grad: var(--wcp-grad);
    --wsp-result-btn-ink: #ffffff;
    --wsp-result-plate: #f8e8e2;
    --wsp-result-tint: rgba(194, 65, 12, .08);
}

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

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

/* ---- Cuisine picker grid (settings) ------------------------------------- */
.page-world-cuisine-picker .wcp-dish-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: .5rem; }
.page-world-cuisine-picker .wcp-dish {
    border: 2px solid var(--wcp-border); background: var(--wcp-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-world-cuisine-picker .wcp-dish img { width: 58px; height: 58px; display: block; margin: 0 auto .1rem; object-fit: contain; }
.page-world-cuisine-picker .wcp-dish span { font-size: .66rem; font-weight: 600; color: var(--wcp-ink); display: block; line-height: 1.15; }
.page-world-cuisine-picker .wcp-dish:hover { transform: translateY(-2px); border-color: var(--wcp-primary); }
.page-world-cuisine-picker .wcp-dish.is-on { opacity: 1; border-color: var(--wcp-primary); box-shadow: 0 6px 16px -10px rgba(194,65,12,.8); }
.page-world-cuisine-picker .wcp-custom-row { display: flex; gap: .4rem; margin-top: .6rem; }
.page-world-cuisine-picker .wcp-custom-row input { flex: 1 1 auto; border: 1px solid var(--wcp-border); border-radius: 10px; padding: .5rem .7rem; font-size: .9rem; background: var(--wcp-surface); color: var(--wcp-ink); }
.page-world-cuisine-picker .wcp-custom-row button { border: 0; border-radius: 10px; padding: .5rem .9rem; font-weight: 700; color: #fff; background: var(--wcp-grad); cursor: pointer; }

/* ================= SEO CONTENT (.wcp-content + .content-guide) ============ */
.page-world-cuisine-picker .wcp-content { color: var(--wcp-ink); background: linear-gradient(180deg, #ffffff 0%, #fdf1ea 100%); padding: 3.5rem 0 3.75rem; margin-top: 1rem; border-top: 1px solid var(--wcp-border); }
body[data-theme].page-world-cuisine-picker .wcp-content { background: var(--theme-bg); }
.page-world-cuisine-picker .wcp-inner { max-width: 860px; margin: 0 auto; padding: 0 1rem; }
.page-world-cuisine-picker .wcp-content h2, .page-world-cuisine-picker .wcp-content h3 { color: var(--wcp-ink); }
.page-world-cuisine-picker .wcp-content p, .page-world-cuisine-picker .wcp-content li { color: var(--wcp-muted); }
.page-world-cuisine-picker .wcp-content strong { color: var(--wcp-ink); }
.page-world-cuisine-picker .wcp-content em { color: var(--wcp-ink); font-style: italic; }
.page-world-cuisine-picker .wcp-content a { color: var(--wcp-primary); text-decoration: underline; text-underline-offset: 2px; font-weight: 600; }
.page-world-cuisine-picker .wcp-content a:hover { color: var(--wcp-accent-2); }
.page-world-cuisine-picker .wcp-kicker { display: inline-block; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: #fff; background: var(--wcp-grad); border-radius: 999px; padding: 0.3rem 0.8rem; margin-bottom: 0.85rem; }
.page-world-cuisine-picker .wcp-lead { font-size: 1.2rem; line-height: 1.7; color: var(--wcp-ink); }
.page-world-cuisine-picker .wcp-section { margin-top: 3rem; }
.page-world-cuisine-picker .wcp-list { margin: .4rem 0 0; padding-left: 1.15rem; }

/* "Make it a cuisine night" method box */
.page-world-cuisine-picker .wcp-method { margin-top: 1.5rem; border: 1px solid var(--wcp-border); border-radius: 16px; background: var(--wcp-soft); overflow: hidden; }
.page-world-cuisine-picker .wcp-method-row { display: flex; gap: 1rem; align-items: flex-start; padding: 1rem 1.2rem; border-bottom: 1px solid var(--wcp-border); }
.page-world-cuisine-picker .wcp-method-row:last-child { border-bottom: 0; }
.page-world-cuisine-picker .wcp-method-row > div { color: var(--wcp-muted); line-height: 1.55; }
.page-world-cuisine-picker .wcp-method-row strong { color: var(--wcp-ink); }
.page-world-cuisine-picker .wcp-method-n { flex-shrink: 0; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; font-size: 0.9rem; font-weight: 800; color: #fff; background: var(--wcp-grad); }
.page-world-cuisine-picker .wcp-method-row:nth-child(even) .wcp-method-n { color: #422006; background: var(--wcp-gold-grad); }

/* Steps */
.page-world-cuisine-picker .wcp-steps { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; gap: 0.9rem; }
.page-world-cuisine-picker .wcp-step { display: flex; gap: 1rem; align-items: flex-start; background: var(--wcp-soft); border: 1px solid var(--wcp-border); border-radius: 14px; padding: 1.05rem 1.2rem; }
.page-world-cuisine-picker .wcp-step p { margin: 0.1rem 0 0; }
.page-world-cuisine-picker .wcp-step-num { flex-shrink: 0; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; font-weight: 800; color: #fff; background: var(--wcp-grad); }

/* "Where to start" signature table (.wcp-ctab avoids clash with the SVG .wcp-table) */
.page-world-cuisine-picker .wcp-ctab-wrap { margin-top: 1.5rem; overflow-x: auto; border: 1px solid var(--wcp-border); border-radius: 14px; }
.page-world-cuisine-picker .wcp-ctab { width: 100%; border-collapse: collapse; min-width: 520px; background: var(--wcp-surface); }
.page-world-cuisine-picker .wcp-ctab th, .page-world-cuisine-picker .wcp-ctab td { text-align: left; padding: 0.8rem 1rem; border-bottom: 1px solid var(--wcp-border); font-size: 0.95rem; }
.page-world-cuisine-picker .wcp-ctab thead th { background: var(--wcp-soft-2); color: var(--wcp-ink); font-weight: 800; font-size: 0.82rem; letter-spacing: 0.03em; text-transform: uppercase; }
.page-world-cuisine-picker .wcp-ctab tbody tr:last-child td { border-bottom: 0; }
.page-world-cuisine-picker .wcp-ctab td:first-child { font-weight: 800; color: var(--wcp-primary); white-space: nowrap; }
.page-world-cuisine-picker .wcp-note { margin-top: 0.9rem; font-size: 0.95rem; color: var(--wcp-muted); }

/* FAQ accordion */
.page-world-cuisine-picker .wcp-content .accordion { margin-top: 1.5rem; border-radius: 14px; overflow: hidden; border: 1px solid var(--wcp-border); }
.page-world-cuisine-picker .wcp-content .accordion-item { border: 0; border-bottom: 1px solid var(--wcp-border); background: var(--wcp-surface); }
.page-world-cuisine-picker .wcp-content .accordion-item:last-child { border-bottom: 0; }
.page-world-cuisine-picker .wcp-content .accordion-button { font-weight: 700; color: var(--wcp-ink); background: var(--wcp-surface); }
.page-world-cuisine-picker .wcp-content .accordion-button:not(.collapsed) { color: var(--wcp-primary); background: var(--wcp-soft); box-shadow: none; }
.page-world-cuisine-picker .wcp-content .accordion-button:focus { box-shadow: 0 0 0 0.2rem var(--wcp-ring); }
.page-world-cuisine-picker .wcp-content .accordion-body { color: var(--wcp-muted); }

@media (max-width: 767.98px) { .page-world-cuisine-picker .wcp-content { padding: 2.5rem 0; } }
@media (prefers-reduced-motion: reduce) {
    .page-world-cuisine-picker .wcp-hl.is-on { animation: none; }
    .page-world-cuisine-picker .wcp-pick-btn, .page-world-cuisine-picker .wcp-center { transition: none; }
    .page-world-cuisine-picker .wcp-center-ring { animation: none; opacity: .8; }
}


/* ---- 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-world-cuisine-picker .wcp-content p,
body[data-theme="high-contrast"].page-world-cuisine-picker .wcp-content li {
    color: rgba(255, 255, 255, .84);
}
body[data-theme="high-contrast"].page-world-cuisine-picker .wcp-step p,
body[data-theme="high-contrast"].page-world-cuisine-picker .wcp-step strong,
body[data-theme="high-contrast"].page-world-cuisine-picker .wcp-method-row > div,
body[data-theme="high-contrast"].page-world-cuisine-picker .wcp-method-row strong,
body[data-theme="high-contrast"].page-world-cuisine-picker .wcp-ctab thead th,
body[data-theme="high-contrast"].page-world-cuisine-picker .wcp-ctab tbody td,
body[data-theme="high-contrast"].page-world-cuisine-picker .wcp-ctab tbody strong {
    color: #1f2937;
}
