/* ==========================================================================
   Breakfast Picker — Ferris Wheel (standalone page)
   Shares ferris-wheel-engine.js (config prefix 'brk' → #brkStage, .brk-hl…).
   "Sunrise" identity: golden amber + sunrise orange. The ferris scene uses fixed
   physical colours (a dawn sky) with a dark override; page chrome + content follow
   the site theme (var --theme-*).
   ========================================================================== */
.page-breakfast-picker {
    --brk-primary: #d98e04;
    --brk-primary-2: #b06f08;
    --brk-accent: #f97316;
    --brk-accent-2: #ea580c;
    --brk-grad: linear-gradient(135deg, #f59e0b, #d97706);
    --brk-amber-grad: linear-gradient(135deg, #fbbf24, #d97706);
    --brk-ink: var(--theme-text, #2c2110);
    /* ⚠️ --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. */
    --brk-muted: var(--theme-muted, #6b5a3c);
    --brk-surface: var(--theme-surface, #ffffff);
    --brk-soft: var(--theme-surface, #fff6e6);
    --brk-soft-2: var(--theme-surface, #fdead0);
    --brk-border: var(--theme-border, #f0dcb8);
    --brk-ring: rgba(217, 142, 4, 0.24);
    --brk-sky: #ffe6c4;
    --brk-cloud: #ffffff;
    --brk-ground: #e6cea0;
}
body[data-theme="dark"].page-breakfast-picker,
body[data-theme="gaming"].page-breakfast-picker,
body[data-theme="crypto"].page-breakfast-picker,
body[data-theme="studio"].page-breakfast-picker,
body[data-theme="high-contrast"].page-breakfast-picker {
    --brk-sky: #2a2012;
    --brk-cloud: #4a3a20;
    --brk-ground: #3a2f1a;
    --brk-soft: var(--theme-surface, #2c2110);
    --brk-soft-2: var(--theme-surface, #3a2c16);
}

/* ---- Ambient backdrop ---------------------------------------------------- */
.page-breakfast-picker::before {
    content: ""; position: fixed; inset: 0; z-index: -2; pointer-events: none;
    background:
        radial-gradient(1100px 560px at 6% -6%, rgba(245, 158, 11, 0.11), transparent 60%),
        radial-gradient(950px 520px at 96% 2%, rgba(249, 115, 22, 0.08), transparent 62%),
        radial-gradient(880px 640px at 50% 108%, rgba(217, 142, 4, 0.05), transparent 60%);
}

/* ---- Stage + wheel ------------------------------------------------------- */
.page-breakfast-picker .brk-stage { position: relative; max-width: 560px; margin: 0 auto; }
.page-breakfast-picker .brk-stage-wrap { position: relative; }
.page-breakfast-picker #brkStage { display: block; }
.page-breakfast-picker .brk-svg { width: 100%; height: auto; display: block; max-height: 60vh; }
.page-breakfast-picker .brk-sky { fill: var(--brk-sky); }
.page-breakfast-picker .brk-cloud { fill: var(--brk-cloud); opacity: .8; }
.page-breakfast-picker .brk-ground { fill: var(--brk-ground); opacity: .55; }
.page-breakfast-picker .brk-hl { transition: opacity .2s ease; }
.page-breakfast-picker .brk-hl.is-on { animation: brkPulse 1s ease-in-out infinite; }
@keyframes brkPulse { 0%,100%{ opacity:1 } 50%{ opacity:.35 } }
.page-breakfast-picker .brk-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: #3a2c14;
}
.page-breakfast-picker .brk-plate-txt { font: 700 10px var(--bs-body-font-family, sans-serif); text-anchor: middle; fill: #6b5a3c; }
body[data-theme].page-breakfast-picker .brk-lbl { stroke: #201810; fill: #fff6e6; }

/* ---- Pick button --------------------------------------------------------- */
/* ---- Start control, CENTRED ON THE STAGE (batch 16c ruling) --------------
   Replaces .brk-pick-btn, which sat below the winner bar and was pushed past
   the fold in fullscreen once Phase 5 reserved --wsp-zen-bar-h. Uses this
   page's own --brk-grad so the palette is unchanged. .brk-pick-btn is left in
   place: #brkPickBtnSettings in the panel is a different element. */
.page-breakfast-picker .brk-start-overlay {
    position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 3;
    display: inline-flex; align-items: center; gap: .5rem; border: 0; border-radius: 999px;
    padding: .8rem 2.1rem; font-size: 1.05rem; font-weight: 800; letter-spacing: .02em;
    color: #fff; background: var(--brk-grad); cursor: pointer;
    box-shadow: 0 12px 30px -8px rgba(0, 0, 0, .45);
    animation: brkOverlayPop 1.7s ease-in-out infinite;
}
.page-breakfast-picker .brk-start-overlay:hover { filter: brightness(1.08); }
.page-breakfast-picker .brk-start-overlay[hidden] { display: none; }
@keyframes brkOverlayPop { 0%,100% { transform: translate(-50%,-50%) scale(1); } 50% { transform: translate(-50%,-50%) scale(1.05); } }
@media (prefers-reduced-motion: reduce) {
    .page-breakfast-picker .brk-start-overlay { animation: none; }
}

.page-breakfast-picker .brk-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(--brk-grad);
    cursor: pointer; box-shadow: 0 12px 26px -12px rgba(217,142,4,.85); transition: transform .12s ease, filter .12s ease;
}
.page-breakfast-picker .brk-pick-btn:hover:not(:disabled) { transform: translateY(-2px); }
.page-breakfast-picker .brk-pick-btn:disabled { filter: grayscale(.3) opacity(.75); cursor: default; }
.page-breakfast-picker .brk-pick-btn.is-busy { animation: brkBusy .9s ease-in-out infinite; }
@keyframes brkBusy { 50% { filter: brightness(1.12); } }

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

/* ---- Winner result bar (shared layout — identity only here) ------------- */
.page-breakfast-picker .wsp-result {
    --wsp-result-accent: var(--brk-primary);
    --wsp-result-grad: var(--brk-grad);
    --wsp-result-btn-ink: #ffffff;
    --wsp-result-plate: #faf1e1;
    --wsp-result-tint: rgba(217, 142, 4, .08);
}

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

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

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

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

/* method box */
.page-breakfast-picker .brk-method { margin-top: 1.5rem; border: 1px solid var(--brk-border); border-radius: 16px; background: var(--brk-soft); overflow: hidden; }
.page-breakfast-picker .brk-method-row { display: flex; gap: 1rem; align-items: flex-start; padding: 1rem 1.2rem; border-bottom: 1px solid var(--brk-border); }
.page-breakfast-picker .brk-method-row:last-child { border-bottom: 0; }
.page-breakfast-picker .brk-method-row > div { color: var(--brk-muted); line-height: 1.55; }
.page-breakfast-picker .brk-method-row strong { color: var(--brk-ink); }
.page-breakfast-picker .brk-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(--brk-grad); }
.page-breakfast-picker .brk-method-row:nth-child(even) .brk-method-n { color: #5a3a00; background: var(--brk-amber-grad); }

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

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

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

@media (max-width: 767.98px) { .page-breakfast-picker .brk-content { padding: 2.5rem 0; } }
@media (prefers-reduced-motion: reduce) {
    .page-breakfast-picker .brk-hl.is-on { animation: none; }
    .page-breakfast-picker .brk-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-breakfast-picker .brk-content p,
body[data-theme="high-contrast"].page-breakfast-picker .brk-content li {
    color: rgba(255, 255, 255, .84);
}
body[data-theme="high-contrast"].page-breakfast-picker .brk-step p,
body[data-theme="high-contrast"].page-breakfast-picker .brk-step strong,
body[data-theme="high-contrast"].page-breakfast-picker .brk-method-row > div,
body[data-theme="high-contrast"].page-breakfast-picker .brk-method-row strong,
body[data-theme="high-contrast"].page-breakfast-picker .brk-table thead th,
body[data-theme="high-contrast"].page-breakfast-picker .brk-table tbody td,
body[data-theme="high-contrast"].page-breakfast-picker .brk-table tbody strong {
    color: #1f2937;
}
