.story-reactions {
    margin: 4px 0 20px;
    max-width: 100%;
}

.reactions-label {
    margin: 0 0 8px;
    color: var(--text-muted, #999);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.story-reactions-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    max-width: 100%;
    min-width: 0;
    padding: 2px 0 4px;
}

.story-reactions-row::-webkit-scrollbar {
    display: none;
}

.reaction-btn {
    position: relative;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-height: 36px;
    padding: 4px 7px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: var(--card-bg, #121212);
    color: var(--text, #fff);
    font: inherit;
    font-size: 0.92rem;
    line-height: 1;
    cursor: pointer;
    touch-action: manipulation;
}

.reaction-btn.is-mine {
    border-color: var(--accent, #ff4d4d);
    box-shadow: inset 0 0 0 1px var(--accent, #ff4d4d);
    background: rgba(255, 77, 77, 0.16);
}

.reaction-count {
    font-variant-numeric: tabular-nums;
    font-size: 0.75rem;
    color: var(--text-muted, #999);
}

.reaction-btn.is-mine .reaction-count {
    color: var(--text, #fff);
}

.story-reactions-status {
    margin-top: 6px;
    font-size: 0.75rem;
    color: var(--text-muted, #999);
}

/* Phone width: emoji and total only, one row that can scroll if text is enlarged. */
@media (max-width: 640px) {
    .reaction-label {
        position: absolute;
        left: 0;
        top: 0;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
    }
}

/* The site uses .dark-mode for the light theme. */
body.dark-mode .reaction-btn {
    border-color: rgba(0, 0, 0, 0.15);
    background: #fff;
}

body.dark-mode .reaction-btn.is-mine {
    background: rgba(227, 27, 35, 0.1);
}

body.dark-mode .reaction-btn.is-mine .reaction-count {
    color: #111;
}
