/**
 * The Spin The Wheel — Page Module: food-decider.css
 * Domain: thespinthewheel.com/food-decider-wheel
 * High-performance, zero bloat, mobile-first responsive design
 */

/* ==========================================================================
   1. Wheel Stage & Layout Aliases (Anti-Disconnection Guard)
   ========================================================================== */
.wheel-app-container,
.app-container {
    max-width: 1320px;
    margin: 1.5rem auto 3rem auto;
    padding: 0 1.25rem;
    width: 100%;
    box-sizing: border-box;
}

.wheel-stage-grid,
.wheel-workspace-grid {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 2rem;
    align-items: start;
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
}

@media (max-width: 992px) {
    .wheel-stage-grid,
    .wheel-workspace-grid {
        grid-template-columns: 100%;
        gap: 1.5rem;
    }
}

.wheel-canvas-card,
.wheel-stage-card {
    background-color: var(--bg-surface, #111827);
    border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.08));
    border-radius: var(--radius-xl, 1rem);
    padding: 1.75rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: var(--shadow-glow, 0 10px 30px rgba(0, 0, 0, 0.5));
    min-height: 560px;
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .wheel-app-container,
    .app-container {
        padding: 0 0.75rem;
        margin: 1rem auto 2rem auto;
    }
    .wheel-canvas-card,
    .wheel-stage-card {
        padding: 1.25rem 0.75rem;
        min-height: auto;
    }
}

@media (max-width: 480px) {
    .wheel-app-container,
    .app-container {
        padding: 0 0.5rem;
    }
    .wheel-canvas-card,
    .wheel-stage-card {
        padding: 1rem 0.5rem;
    }
}

.wheel-canvas-wrapper,
.wheel-canvas-container {
    position: relative;
    width: 100%;
    max-width: min(480px, 100%);
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    user-select: none;
    margin: 0 auto;
    min-width: 0;
    box-sizing: border-box;
}

#wheelCanvas {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    border-radius: 50%;
    filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.6));
    cursor: pointer;
    display: block;
    box-sizing: border-box;
}

/* Pointer Needle */
.wheel-pointer {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 38px;
    height: 48px;
    z-index: 10;
    pointer-events: none;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.7));
    transition: transform 0.08s ease;
}

.wheel-pointer svg {
    width: 100%;
    height: 100%;
    display: block;
}

/* Center SPIN Button */
.wheel-spin-hub,
.center-spin-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 82px;
    height: 82px;
    border-radius: 50%;
    background: radial-gradient(circle, #ffffff 0%, #e2e8f0 100%);
    border: 5px solid var(--bg-surface, #111827);
    color: #0f172a;
    font-weight: 800;
    font-size: 1.05rem;
    letter-spacing: 0.05em;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6), 0 0 15px rgba(255, 255, 255, 0.3);
    z-index: 5;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.wheel-spin-hub:hover:not(:disabled),
.center-spin-btn:hover:not(:disabled) {
    transform: translate(-50%, -50%) scale(1.08);
    box-shadow: 0 0 25px rgba(99, 102, 241, 0.7), 0 4px 25px rgba(0, 0, 0, 0.8);
    background: #ffffff;
}

.wheel-spin-hub:active:not(:disabled),
.center-spin-btn:active:not(:disabled) {
    transform: translate(-50%, -50%) scale(0.95);
}

.wheel-spin-hub:disabled,
.center-spin-btn:disabled {
    opacity: 0.85;
    cursor: not-allowed;
}

.hub-text {
    pointer-events: none;
}

/* Controls Card */
.wheel-controls-card,
.controls-card {
    background-color: var(--bg-surface, #111827);
    border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.08));
    border-radius: var(--radius-xl, 1rem);
    padding: 1.5rem;
    box-shadow: var(--shadow-soft, 0 4px 20px rgba(0, 0, 0, 0.25));
    display: flex;
    flex-direction: column;
    gap: 1.15rem;
}

/* Quick Action Buttons Under Canvas */
.wheel-stage-actions,
.wheel-quick-toolbar {
    margin-top: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    width: 100%;
}

.stage-action-btn,
.tool-chip-btn {
    background-color: var(--bg-card, rgba(255, 255, 255, 0.04));
    border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.1));
    color: var(--text-secondary, #94a3b8);
    padding: 0.45rem 0.85rem;
    border-radius: var(--radius-full, 9999px);
    font-size: 0.825rem;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: all 0.15s ease;
    min-height: 40px;
    text-decoration: none;
}

.stage-action-btn:hover,
.tool-chip-btn:hover {
    color: var(--text-primary, #ffffff);
    background-color: var(--bg-card-hover, rgba(255, 255, 255, 0.08));
    border-color: var(--border-accent, #6366f1);
}

/* ==========================================================================
   2. Active Cuisine Banner & Presets
   ========================================================================== */
.active-cuisine-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(22, 31, 48, 0.75);
    border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.1));
    padding: 0.65rem 1rem;
    border-radius: var(--radius-md, 0.5rem);
    margin-bottom: 0.85rem;
    width: 100%;
    max-width: 480px;
}
.cuisine-banner-left {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.cuisine-badge-icon {
    font-size: 1.25rem;
}
.cuisine-badge-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-primary, #ffffff);
}
.cuisine-item-count {
    font-size: 0.775rem;
    color: var(--text-accent, #38bdf8);
    background: rgba(56, 189, 248, 0.12);
    padding: 0.2rem 0.65rem;
    border-radius: var(--radius-full, 9999px);
    font-weight: 600;
}
.cuisine-banner-right {
    display: flex;
    align-items: center;
}

.control-section-box {
    background: var(--bg-card, rgba(255, 255, 255, 0.02));
    border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.07));
    border-radius: var(--radius-lg, 0.75rem);
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.section-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.control-label {
    font-size: 0.775rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary, #94a3b8);
}

.control-hint {
    font-size: 0.75rem;
    color: var(--text-accent, #38bdf8);
    font-weight: 600;
}

.preset-chips-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
}

@media (max-width: 480px) {
    .preset-chips-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.35rem;
    }
}

.slice-chip {
    background-color: var(--bg-surface, #1e293b);
    border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.1));
    color: var(--text-secondary, #cbd5e1);
    padding: 0.45rem 0.25rem;
    border-radius: var(--radius-md, 0.5rem);
    cursor: pointer;
    transition: all 0.15s ease;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    text-align: center;
    line-height: 1.15;
    gap: 0.25rem;
}

.slice-chip .chip-icon {
    font-size: 1.15rem;
    line-height: 1;
}

.slice-chip .chip-label {
    font-size: 0.72rem;
    font-weight: 600;
    white-space: nowrap;
}

.slice-chip:hover {
    color: var(--text-primary, #ffffff);
    border-color: var(--border-accent, #6366f1);
    background-color: var(--bg-card-hover, rgba(255, 255, 255, 0.08));
}

.slice-chip.active {
    color: #ffffff;
    background: var(--primary, #6366f1);
    border-color: var(--primary, #6366f1);
    box-shadow: 0 2px 10px rgba(99, 102, 241, 0.4);
}

/* Dietary & Macro Toggles */
.dietary-toggle-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.diet-toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.75rem;
    background: var(--bg-surface, #1e293b);
    border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.1));
    border-radius: var(--radius-full, 9999px);
    color: var(--text-secondary, #cbd5e1);
    font-size: 0.775rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    min-height: 36px;
}

.diet-icon {
    font-size: 0.95rem;
    line-height: 1;
}

.diet-toggle-btn:hover {
    color: var(--text-primary, #ffffff);
    border-color: var(--border-accent, #6366f1);
}

.diet-toggle-btn.active {
    background: rgba(16, 185, 129, 0.15);
    border-color: var(--accent-emerald, #10b981);
    color: var(--accent-emerald, #10b981);
    font-weight: 600;
}

.diet-toggle-btn[data-diet="high-protein"].active {
    background: rgba(56, 189, 248, 0.15);
    border-color: #38bdf8;
    color: #38bdf8;
}

.diet-toggle-btn[data-diet="under-500"].active {
    background: rgba(245, 158, 11, 0.15);
    border-color: #f59e0b;
    color: #f59e0b;
}

/* Dining Modality / Style Pills */
.modality-pills-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.45rem;
}

.modality-pill {
    padding: 0.5rem 0.65rem;
    background: var(--bg-surface, #1e293b);
    border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.1));
    color: var(--text-secondary, #cbd5e1);
    border-radius: var(--radius-sm, 0.375rem);
    font-size: 0.775rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
    text-align: center;
    min-height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modality-pill:hover {
    color: var(--text-primary, #ffffff);
    background: var(--bg-card-hover, rgba(255, 255, 255, 0.08));
}

.modality-pill.active {
    color: #ffffff;
    background: var(--primary, #6366f1);
    border-color: var(--primary, #6366f1);
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.35);
}

/* Decision Mechanics Pills */
.mode-pills-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.45rem;
}

.mode-pill {
    padding: 0.5rem 0.65rem;
    background: var(--bg-surface, #1e293b);
    border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.1));
    color: var(--text-secondary, #cbd5e1);
    border-radius: var(--radius-sm, 0.375rem);
    font-size: 0.775rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
    text-align: center;
    min-height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mode-pill:hover {
    color: var(--text-primary, #ffffff);
    background: var(--bg-card-hover, rgba(255, 255, 255, 0.08));
}

.mode-pill.active {
    color: #ffffff;
    background: var(--primary, #6366f1);
    border-color: var(--primary, #6366f1);
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.35);
}

/* Custom Food Entries Textarea */
.food-entries-textarea {
    width: 100%;
    background: var(--bg-input, #0b0f17);
    border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.1));
    border-radius: var(--radius-sm, 0.375rem);
    color: var(--text-primary, #ffffff);
    padding: 0.75rem;
    font-size: 0.85rem;
    font-family: inherit;
    line-height: 1.5;
    resize: vertical;
}

.food-entries-textarea:focus {
    outline: none;
    border-color: var(--primary, #6366f1);
}

.textarea-actions-row {
    display: flex;
    gap: 0.5rem;
}

.tool-sub-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.45rem 0.75rem;
    background: var(--primary, #6366f1);
    border: none;
    border-radius: var(--radius-sm, 0.375rem);
    color: #ffffff;
    font-size: 0.775rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
    min-height: 34px;
}

.tool-sub-btn:hover {
    background: var(--primary-hover, #4f46e5);
}

.tool-sub-btn.secondary {
    background: var(--bg-surface, #1e293b);
    border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.1));
    color: var(--text-secondary, #cbd5e1);
}

.tool-sub-btn.secondary:hover {
    background: var(--bg-card-hover, rgba(255, 255, 255, 0.08));
    color: var(--text-primary, #ffffff);
}

/* Settings Box */
.wheel-settings-box {
    background: var(--bg-card, rgba(255, 255, 255, 0.02));
    border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.07));
    border-radius: var(--radius-lg, 0.75rem);
    padding: 0.85rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.setting-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.825rem;
    color: var(--text-secondary, #cbd5e1);
}

.toggle-switch {
    width: 38px;
    height: 22px;
    accent-color: var(--primary, #6366f1);
    cursor: pointer;
}

/* Primary Action Button */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.85rem 1.25rem;
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    border: none;
    border-radius: var(--radius-md, 0.5rem);
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.4);
    transition: all 0.2s ease;
    min-height: 48px;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 22px rgba(99, 102, 241, 0.55);
    background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1rem;
    background: var(--bg-surface, #1e293b);
    border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.1));
    border-radius: var(--radius-sm, 0.375rem);
    color: var(--text-secondary, #cbd5e1);
    font-size: 0.825rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
}

.btn-secondary:hover {
    background: var(--bg-card-hover, rgba(255, 255, 255, 0.08));
    color: var(--text-primary, #ffffff);
}

/* ==========================================================================
   3. Breadcrumbs & SHA-256 Pre-Spin Verification
   ========================================================================== */
.tool-breadcrumbs {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.825rem;
    color: var(--text-secondary, #94a3b8);
    margin-bottom: 0.85rem;
}

.tool-breadcrumbs a {
    color: var(--text-secondary, #94a3b8);
    text-decoration: none;
    transition: color 0.15s ease;
}

.tool-breadcrumbs a:hover {
    color: var(--text-primary, #ffffff);
}

.crumb-separator {
    color: var(--text-muted, #64748b);
}

.crumb-current {
    color: var(--text-primary, #ffffff);
    font-weight: 600;
}

.sha256-verify-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.08));
    border-radius: var(--radius-md, 0.5rem);
    padding: 0.5rem 0.85rem;
    margin-bottom: 1.25rem;
    font-size: 0.8rem;
}

.sha256-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--accent-emerald, #10b981);
    font-weight: 700;
}

.sha256-hash-display {
    font-family: monospace;
    color: var(--text-accent, #38bdf8);
    font-size: 0.775rem;
    background: rgba(56, 189, 248, 0.08);
    padding: 0.2rem 0.55rem;
    border-radius: var(--radius-sm, 0.375rem);
    border: 1px solid rgba(56, 189, 248, 0.2);
    word-break: break-all;
}

/* ==========================================================================
   4. Couple Battle & Group Tally Cards
   ========================================================================== */
.couple-battle-card {
    display: none;
    background: rgba(99, 102, 241, 0.08);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: var(--radius-md, 0.5rem);
    padding: 0.85rem 1rem;
    margin-top: 0.85rem;
    text-align: left;
    width: 100%;
    max-width: 480px;
}

.couple-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.4rem;
}

.couple-turn-badge {
    display: inline-flex;
    align-items: center;
    font-size: 0.775rem;
    font-weight: 700;
    color: #818cf8;
    background: rgba(99, 102, 241, 0.18);
    padding: 0.25rem 0.65rem;
    border-radius: var(--radius-full, 9999px);
}

.couple-prompt-text {
    font-size: 0.825rem;
    color: var(--text-secondary, #cbd5e1);
    line-height: 1.4;
    margin-bottom: 0.6rem;
}

.couple-veto-chips-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    max-height: 120px;
    overflow-y: auto;
}

.couple-chip,
.couple-veto-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.65rem;
    background: var(--bg-card, #1e293b);
    border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.15));
    border-radius: var(--radius-sm, 0.375rem);
    color: var(--text-primary, #ffffff);
    font-size: 0.775rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
}

.couple-chip:hover:not(:disabled),
.couple-veto-chip:hover:not(:disabled) {
    background: rgba(244, 63, 94, 0.15);
    border-color: var(--accent-rose, #f43f5e);
    color: var(--accent-rose, #f43f5e);
}

.couple-chip.vetoed-p1 {
    background: rgba(244, 63, 94, 0.25);
    border-color: #f43f5e;
    color: #fda4af;
    text-decoration: line-through;
}

.couple-chip.vetoed-p2 {
    background: rgba(234, 88, 12, 0.25);
    border-color: #ea580c;
    color: #fdba74;
    text-decoration: line-through;
}

.couple-chip:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

/* Recipe Ingredients Checklist Box */
.recipe-ingredients-box {
    background: var(--bg-surface, #1e293b);
    border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.1));
    border-radius: var(--radius-md, 0.5rem);
    padding: 0.85rem;
    margin: 0.75rem 0;
}

.recipe-ingredient-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0;
    font-size: 0.825rem;
    color: var(--text-primary, #ffffff);
    border-bottom: 1px dashed rgba(255, 255, 255, 0.06);
}

.recipe-ingredient-item:last-child {
    border-bottom: none;
}

.recipe-ingredient-checkbox {
    accent-color: var(--accent-emerald, #10b981);
    cursor: pointer;
    width: 15px;
    height: 15px;
}

.compromise-active-notice {
    font-size: 0.825rem;
    font-weight: 600;
    color: #34d399;
    padding: 0.5rem;
    background: rgba(16, 185, 129, 0.12);
    border-radius: var(--radius-sm, 0.375rem);
    width: 100%;
}

.group-tally-board {
    display: none;
    background: rgba(245, 158, 11, 0.08);
    border: 1px solid rgba(245, 158, 11, 0.25);
    border-radius: var(--radius-md, 0.5rem);
    padding: 0.85rem 1rem;
    margin-top: 0.85rem;
    text-align: left;
    width: 100%;
    max-width: 480px;
}

.tally-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.tally-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: #f59e0b;
}

.tally-list-wrap {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    max-height: 140px;
    overflow-y: auto;
}

.tally-item-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.35rem 0.6rem;
    background: var(--bg-card, #1e293b);
    border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.08));
    border-radius: var(--radius-sm, 0.375rem);
    font-size: 0.8rem;
}

.tally-rank {
    font-weight: 600;
    color: var(--text-primary, #ffffff);
}

.tally-count {
    font-weight: 700;
    color: #f59e0b;
    background: rgba(245, 158, 11, 0.15);
    padding: 0.1rem 0.45rem;
    border-radius: var(--radius-full, 9999px);
}

/* Veto Ledger Tray */
.drawn-ledger-tray {
    background: var(--bg-card, rgba(255, 255, 255, 0.02));
    border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.08));
    border-radius: var(--radius-md, 0.5rem);
    padding: 0.75rem 1rem;
    margin-top: 1rem;
    width: 100%;
    max-width: 480px;
}

.ledger-tray-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.4rem;
}

.ledger-title-group {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.775rem;
    font-weight: 700;
    color: var(--text-secondary, #cbd5e1);
}

.ledger-reset-link {
    background: transparent;
    border: none;
    color: var(--text-accent, #38bdf8);
    font-size: 0.75rem;
    cursor: pointer;
    text-decoration: underline;
}

.drawn-chips-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    max-height: 100px;
    overflow-y: auto;
}

.drawn-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.25rem 0.55rem;
    background: var(--bg-surface, #1e293b);
    border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.1));
    border-radius: var(--radius-full, 9999px);
    font-size: 0.75rem;
    color: var(--text-primary, #ffffff);
}

.drawn-chip.vetoed {
    border-color: rgba(244, 63, 94, 0.4);
    background: rgba(244, 63, 94, 0.1);
}

.drawn-chip-order {
    font-size: 0.7rem;
    color: var(--accent-rose, #f43f5e);
    font-weight: 700;
}

/* ==========================================================================
   5. Winner Modal & Actionable Local Handoff
   ========================================================================== */
.winner-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    padding: 1rem;
}

.winner-modal-backdrop.show {
    opacity: 1;
    pointer-events: auto;
}

.winner-modal-content {
    background: var(--bg-surface, #111827);
    border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.15));
    border-radius: var(--radius-xl, 1rem);
    padding: 2rem 1.75rem;
    max-width: 480px;
    width: 100%;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
    transform: scale(0.95);
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    max-height: 90vh;
    overflow-y: auto;
}

.winner-modal-backdrop.show .winner-modal-content {
    transform: scale(1);
}

.winner-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-accent, #38bdf8);
    background: rgba(56, 189, 248, 0.12);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full, 9999px);
    margin-bottom: 0.5rem;
}

.winner-food-emoji {
    font-size: 3.5rem;
    margin: 0.35rem 0;
    line-height: 1;
}

.winner-name-display {
    font-size: 2.2rem;
    font-weight: 900;
    letter-spacing: 0.03em;
    color: var(--text-primary, #ffffff);
    margin-bottom: 0.25rem;
    word-break: break-word;
}

.winner-subtext {
    font-size: 0.85rem;
    color: var(--text-secondary, #94a3b8);
    margin-bottom: 1rem;
}

.actionable-handoff-box {
    background: var(--bg-card, rgba(255, 255, 255, 0.03));
    border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.1));
    border-radius: var(--radius-md, 0.5rem);
    padding: 0.85rem;
    margin: 0.85rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.maps-btn,
.handoff-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: #0ea5e9;
    color: #ffffff;
    text-decoration: none;
    padding: 0.75rem 1.25rem;
    border-radius: var(--radius-sm, 0.375rem);
    font-size: 0.9rem;
    font-weight: 700;
    box-shadow: 0 4px 14px rgba(14, 165, 233, 0.35);
    transition: transform 0.15s ease, background 0.15s ease;
}

.maps-btn:hover,
.handoff-btn:hover {
    background: #0284c7;
    transform: translateY(-1px);
}

.delivery-links-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}

.handoff-sub-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 0.75rem;
    background: var(--bg-surface, #1e293b);
    border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.1));
    border-radius: var(--radius-sm, 0.375rem);
    color: var(--text-primary, #ffffff);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}

.handoff-sub-btn:hover {
    background: var(--bg-card-hover, rgba(255, 255, 255, 0.08));
    border-color: var(--text-accent, #38bdf8);
}

.gut-check-card {
    background: rgba(244, 63, 94, 0.08);
    border: 1px solid rgba(244, 63, 94, 0.25);
    border-radius: var(--radius-md, 0.5rem);
    padding: 0.75rem 0.85rem;
    margin-top: 0.75rem;
    text-align: left;
}

.gut-check-header {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--accent-rose, #f43f5e);
    font-size: 0.825rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.gut-check-prompt {
    font-size: 0.775rem;
    color: var(--text-secondary, #cbd5e1);
    line-height: 1.4;
    margin-bottom: 0.65rem;
}

.gut-check-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}

.gut-check-btn {
    padding: 0.45rem 0.65rem;
    border-radius: var(--radius-sm, 0.375rem);
    font-size: 0.775rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.gut-check-btn.accept {
    background: rgba(16, 185, 129, 0.2);
    color: var(--accent-emerald, #10b981);
    border: 1px solid rgba(16, 185, 129, 0.35);
}

.gut-check-btn.accept:hover {
    background: rgba(16, 185, 129, 0.3);
}

.gut-check-btn.veto {
    background: rgba(244, 63, 94, 0.2);
    color: var(--accent-rose, #f43f5e);
    border: 1px solid rgba(244, 63, 94, 0.35);
}

.gut-check-btn.veto:hover {
    background: rgba(244, 63, 94, 0.3);
}

.modal-btn-group {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
}

.embed-code-textarea {
    width: 100%;
    background: var(--bg-input, #0b0f17);
    border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.1));
    border-radius: var(--radius-sm, 0.375rem);
    color: #38bdf8;
    font-family: monospace;
    font-size: 0.775rem;
    padding: 0.75rem;
    resize: none;
    line-height: 1.4;
    margin-bottom: 1rem;
}

/* ==========================================================================
   6. Related Tools Switcher & Editorial Section
   ========================================================================= */
.tool-switcher-section {
    max-width: 1320px;
    margin: 3rem auto 2rem auto;
    padding: 0 1.25rem;
}

.switcher-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
}

.switcher-heading {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text-primary, #ffffff);
}

.switcher-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.25rem;
}

.switcher-card {
    background: var(--bg-surface, #111827);
    border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.08));
    border-radius: var(--radius-lg, 0.75rem);
    padding: 1.25rem;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    transition: all 0.2s ease;
}

.switcher-card:hover {
    transform: translateY(-2px);
    border-color: var(--text-accent, #38bdf8);
    box-shadow: var(--shadow-glow, 0 10px 30px rgba(0, 0, 0, 0.5));
}

.switcher-card-icon {
    font-size: 1.75rem;
}

.switcher-card-name {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary, #ffffff);
}

.switcher-card-desc {
    font-size: 0.825rem;
    color: var(--text-secondary, #94a3b8);
    line-height: 1.5;
}

.editorial-container {
    max-width: 1100px;
    margin: 2rem auto 4rem auto;
    padding: 0 1.25rem;
}

.editorial-header {
    margin-bottom: 2rem;
    text-align: left;
}

.editorial-title {
    font-size: 2rem;
    font-weight: 900;
    line-height: 1.3;
    color: var(--text-primary, #ffffff);
    margin-bottom: 1rem;
}

.editorial-lead {
    font-size: 1.05rem;
    color: var(--text-secondary, #94a3b8);
    line-height: 1.7;
}

.editorial-content {
    display: flex;
    flex-direction: column;
    gap: 2.25rem;
}

.editorial-block h2 {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text-primary, #ffffff);
    margin-bottom: 0.75rem;
}

.editorial-block p {
    font-size: 0.95rem;
    color: var(--text-secondary, #cbd5e1);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.code-block-wrapper {
    background: #0b0f17;
    border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.08));
    border-radius: var(--radius-md, 0.5rem);
    padding: 1rem;
    overflow-x: auto;
    margin: 1rem 0;
    max-width: 100%;
    box-sizing: border-box;
    -webkit-overflow-scrolling: touch;
}

.code-block-wrapper pre {
    margin: 0;
    padding: 0;
    max-width: 100%;
    overflow-x: auto;
    white-space: pre-wrap;
    word-break: break-all;
    -webkit-overflow-scrolling: touch;
}

.code-block-wrapper pre code {
    font-family: monospace;
    font-size: 0.825rem;
    color: #38bdf8;
    word-break: break-all;
}

.table-responsive {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: var(--radius-md, 0.5rem);
    border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.08));
    margin: 1.5rem 0;
    box-sizing: border-box;
}

.editorial-block {
    max-width: 100%;
    overflow-wrap: break-word;
    word-break: break-word;
    box-sizing: border-box;
}

.faq-accordion-list {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.faq-item {
    background: var(--bg-card, rgba(255, 255, 255, 0.02));
    border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.08));
    border-radius: var(--radius-md, 0.5rem);
    padding: 1rem 1.25rem;
}

.callout-box {
    border-radius: var(--radius-sm, 0.375rem);
}

.callout-box.note {
    background: rgba(56, 189, 248, 0.08);
    border-left: 4px solid var(--text-accent, #38bdf8);
    padding: 1.1rem 1.35rem;
    border-radius: 0 var(--radius-sm, 0.375rem) var(--radius-sm, 0.375rem) 0;
    margin: 1.5rem 0;
}

.code-block-wrapper pre code.language-javascript {
    color: #38bdf8;
    font-family: monospace;
}

@media (max-width: 640px) {
    .delivery-links-row, 
    .gut-check-actions, 
    .mode-pills-row,
    .modal-btn-group {
        grid-template-columns: 1fr;
        flex-direction: column;
    }
    .editorial-title {
        font-size: 1.5rem;
    }
}
