.custom-reaction-wrapper {
    margin: 2.25rem 0 1.5rem;
    padding: 0;
}
.custom-reaction-wrapper .reaction-wrapper-title {
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    margin-bottom: 1.25rem;
    text-transform: uppercase;
    text-align: center;
    color: var(--bs-heading-color, #1e293b);
}
.custom-reaction-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
    justify-content: center;
}
.custom-reaction-grid .reaction-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    background: var(--bs-tertiary-bg, #f8fafc);
    border: 1.5px solid var(--bs-border-color, rgba(226, 232, 240, 0.9));
    border-radius: 20px;
    padding: 14px 12px 12px;
    width: 108px;
    min-height: 146px;
    cursor: pointer;
    transition: all 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    position: relative;
    user-select: none;
    text-decoration: none;
}
.custom-reaction-grid .reaction-btn:hover {
    background: var(--bs-body-bg, #ffffff);
    border-color: var(--active-color, #f59e0b);
    box-shadow: 0 8px 24px var(--shadow-color, rgba(245, 158, 11, 0.32));
    transform: translateY(-4px);
}
.custom-reaction-grid .reaction-btn.active {
    background: var(--bs-body-bg, #ffffff);
    border-color: var(--active-color, #f59e0b);
    box-shadow: 0 8px 24px var(--shadow-color, rgba(245, 158, 11, 0.38));
}
.custom-reaction-grid .reaction-btn.step-shake {
    animation: reactionShake 0.4s ease-in-out;
}
@keyframes reactionShake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-6px); }
    40%, 80% { transform: translateX(6px); }
}
.custom-reaction-grid .reaction-svg-box {
    width: 74px;
    height: 74px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.custom-reaction-grid .reaction-svg-box svg {
    width: 100%;
    height: 100%;
    max-height: 74px;
    display: block;
}
.custom-reaction-grid .reaction-btn:hover .reaction-svg-box {
    transform: scale(1.12);
}
.custom-reaction-grid .reaction-label {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--bs-heading-color, #334155);
    margin-bottom: 4px;
    text-align: center;
    white-space: nowrap;
    line-height: 1.2;
}
.custom-reaction-grid .reaction-count {
    font-size: 12px;
    font-weight: 600;
    color: var(--bs-secondary-color, #64748b);
    background: var(--bs-secondary-bg, rgba(241, 245, 249, 0.95));
    padding: 2px 10px;
    border-radius: 12px;
    min-width: 26px;
    text-align: center;
    transition: all 0.25s ease;
}
.custom-reaction-grid .reaction-btn.active .reaction-count {
    background: var(--active-color, #f59e0b);
    color: #ffffff;
    box-shadow: 0 2px 8px var(--shadow-color, rgba(245, 158, 11, 0.45));
}
@media (max-width: 576px) {
    .custom-reaction-grid {
        gap: 10px;
        justify-content: center;
    }
    .custom-reaction-grid .reaction-btn {
        width: 92px;
        min-height: 126px;
        padding: 10px 8px 8px;
    }
    .custom-reaction-grid .reaction-svg-box {
        width: 58px;
        height: 58px;
    }
    .custom-reaction-grid .reaction-svg-box svg {
        max-height: 58px;
    }
    .custom-reaction-grid .reaction-label {
        font-size: 12px;
    }
}
/* Dark Mode Support */
[data-theme="dark"] .reaction-wrapper-title,
[data-bs-theme="dark"] .reaction-wrapper-title,
.dark-mode .reaction-wrapper-title {
    color: #f8fafc !important;
}

[data-theme="dark"] .custom-reaction-grid .reaction-btn,
[data-bs-theme="dark"] .custom-reaction-grid .reaction-btn,
.dark-mode .custom-reaction-grid .reaction-btn,
body.dark-mode .custom-reaction-grid .reaction-btn {
    background: #18181B !important;
    background-color: #18181B !important;
    border: 1.5px solid var(--vr-border-color, #334155) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25) !important;
}

[data-theme="dark"] .custom-reaction-grid .reaction-btn:hover,
[data-bs-theme="dark"] .custom-reaction-grid .reaction-btn:hover,
.dark-mode .custom-reaction-grid .reaction-btn:hover,
body.dark-mode .custom-reaction-grid .reaction-btn:hover {
    background: #27272A !important;
    background-color: #27272A !important;
    border-color: var(--active-color, #f59e0b) !important;
    box-shadow: 0 8px 24px var(--shadow-color, rgba(245, 158, 11, 0.32)) !important;
}

[data-theme="dark"] .custom-reaction-grid .reaction-btn.active,
[data-bs-theme="dark"] .custom-reaction-grid .reaction-btn.active,
.dark-mode .custom-reaction-grid .reaction-btn.active,
body.dark-mode .custom-reaction-grid .reaction-btn.active {
    background: #27272A !important;
    background-color: #27272A !important;
    border-color: var(--active-color, #f59e0b) !important;
    box-shadow: 0 8px 24px var(--shadow-color, rgba(245, 158, 11, 0.38)) !important;
}

[data-theme="dark"] .custom-reaction-grid .reaction-label,
[data-bs-theme="dark"] .custom-reaction-grid .reaction-label,
.dark-mode .custom-reaction-grid .reaction-label,
body.dark-mode .custom-reaction-grid .reaction-label,
[data-theme="dark"] .reaction-emoji-label,
[data-bs-theme="dark"] .reaction-emoji-label,
.dark-mode .reaction-emoji-label {
    color: #f1f5f9 !important;
    font-weight: 700 !important;
}

[data-theme="dark"] .custom-reaction-grid .reaction-btn:hover .reaction-label,
[data-bs-theme="dark"] .custom-reaction-grid .reaction-btn:hover .reaction-label,
.dark-mode .custom-reaction-grid .reaction-btn:hover .reaction-label,
[data-theme="dark"] .custom-reaction-grid .reaction-btn.active .reaction-label,
[data-bs-theme="dark"] .custom-reaction-grid .reaction-btn.active .reaction-label,
.dark-mode .custom-reaction-grid .reaction-btn.active .reaction-label {
    color: #ffffff !important;
}

[data-theme="dark"] .custom-reaction-grid .reaction-count,
[data-bs-theme="dark"] .custom-reaction-grid .reaction-count,
.dark-mode .custom-reaction-grid .reaction-count,
body.dark-mode .custom-reaction-grid .reaction-count,
[data-theme="dark"] .reaction-emoji-count,
[data-bs-theme="dark"] .reaction-emoji-count,
.dark-mode .reaction-emoji-count {
    background: #111113 !important;
    color: #d4d4d8 !important;
    border: 1px solid var(--vr-border-color, #334155) !important;
}

[data-theme="dark"] .custom-reaction-grid .reaction-btn.active .reaction-count,
[data-bs-theme="dark"] .custom-reaction-grid .reaction-btn.active .reaction-count,
.dark-mode .custom-reaction-grid .reaction-btn.active .reaction-count,
body.dark-mode .custom-reaction-grid .reaction-btn.active .reaction-count {
    background: var(--active-color, #f59e0b) !important;
    color: #ffffff !important;
    border-color: var(--active-color, #f59e0b) !important;
}

/* Character Sticker Text High-Contrast Colors in Dark Mode */
[data-theme="dark"] .clip-yum-text path,
[data-bs-theme="dark"] .clip-yum-text path,
.dark-mode .clip-yum-text path {
    fill: #fde047 !important;
    filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.7));
}

[data-theme="dark"] .clip-craving-text path,
[data-bs-theme="dark"] .clip-craving-text path,
.dark-mode .clip-craving-text path {
    fill: #bef264 !important;
    filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.7));
}

[data-theme="dark"] .clip-makeit-text path,
[data-bs-theme="dark"] .clip-makeit-text path,
.dark-mode .clip-makeit-text path {
    fill: #fdba74 !important;
    filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.7));
}

[data-theme="dark"] .clip-keeper-text path,
[data-bs-theme="dark"] .clip-keeper-text path,
.dark-mode .clip-keeper-text path {
    fill: #fca5a5 !important;
    filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.7));
}

[data-theme="dark"] .clip-musttry-text path,
[data-bs-theme="dark"] .clip-musttry-text path,
.dark-mode .clip-musttry-text path {
    fill: #fed7aa !important;
    filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.7));
}

/* Floating Global Toast */
.recipe-global-toast {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translate(-50%, -24px) scale(0.95);
    background: #0f172a;
    color: #ffffff;
    padding: 11px 22px;
    border-radius: 9999px;
    font-size: 13.5px;
    font-weight: 600;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
    z-index: 999999;
    opacity: 0;
    visibility: hidden;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease, visibility 0.2s ease;
    pointer-events: none;
    display: flex;
    align-items: center;
    gap: 9px;
    max-width: calc(100vw - 32px);
}
.recipe-global-toast.show {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0) scale(1);
    pointer-events: auto;
}