.stories-section {
    margin-bottom: var(--margin-xl);
}

.stories-row {
    display: flex;
    gap: var(--gap-md);
    overflow-x: auto;
    padding-bottom: var(--padding-sm);
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.stories-row::-webkit-scrollbar {
    display: none;
}

.story-item {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--gap-sm);
    scroll-snap-align: start;
}

/* Ring wrapper – positions the SVG ring */
.story-ring {
    position: relative;
    width: 88px;
    height: 88px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* SVG ring – sits behind the button */
.story-ring-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 88px;
    height: 88px;
    z-index: 0;
}

/* The actual circle stroke transitions on hover */
.ring-circle {
    transition: stroke 0.25s ease;
}

/* Image button */
.story-circle {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--color-surface-muted);
    cursor: pointer;
    position: relative;
    z-index: 1;
    border: none;
    padding: 0;
    transition: transform 0.2s ease;
}

.story-circle:hover {
    transform: scale(1.05);
}

.story-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.story-logo {
    position: absolute;
    bottom: 5px;
    right: 5px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--color-primary-600);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 10px;
    font-weight: var(--font-weight-bold);
    box-shadow: 0 0 0 2px var(--color-surface-muted);
}

.story-label {
    font-size: var(--font-size-xs);
    color: var(--color-text-primary);
    text-align: center;
    line-height: var(--line-height-sm);
}