/* Durak Social — community live layer (status, online, highlights).
 * Additive; scoped to .durak-social. No neon / dashboard noise.
 */

.durak-social .ds-livebar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.45rem 0.7rem;
	padding: 0.5rem 1.25rem;
	border-bottom: 1px solid color-mix(in srgb, var(--ds-border) 85%, transparent);
	background: color-mix(in srgb, var(--ds-surface) 88%, var(--ds-cream));
}

.durak-social .ds-livebar[hidden] {
	display: none;
}

.durak-social .ds-livebar__chip {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	max-width: 100%;
	min-height: 32px;
	padding: 0.2rem 0.75rem;
	border-radius: var(--ds-radius-pill);
	border: 1px solid color-mix(in srgb, var(--ds-border) 80%, transparent);
	background: var(--ds-elevated);
	color: var(--ds-ink);
	font-size: 0.8rem;
	font-weight: 600;
	line-height: 1.25;
	white-space: nowrap;
}

.durak-social .ds-livebar__chip.is-calm,
.durak-social .ds-livebar__chip.is-growing {
	white-space: normal;
	font-weight: 550;
	color: var(--ds-subtle);
}

.durak-social .ds-livebar__dot {
	flex: 0 0 auto;
	width: 0.5rem;
	height: 0.5rem;
	border-radius: 50%;
	background: #2f9e6b;
	box-shadow: 0 0 0 3px color-mix(in srgb, #2f9e6b 18%, transparent);
}

.durak-social .ds-livebar__count {
	font-variant-numeric: tabular-nums;
	font-weight: 750;
}

.durak-social .ds-online-rail {
	display: none;
	gap: 0.7rem;
	padding: 0.15rem 0 0.35rem;
	overflow-x: auto;
	overflow-y: hidden;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: thin;
}

.durak-social .ds-online-rail__item {
	flex: 0 0 auto;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.3rem;
	width: 4.6rem;
	padding: 0.15rem;
	border: 0;
	background: transparent;
	color: inherit;
	cursor: pointer;
	text-align: center;
}

.durak-social .ds-online-rail__item:focus-visible {
	outline: 2px solid var(--ds-orange);
	outline-offset: 2px;
	border-radius: 0.7rem;
}

.durak-social .ds-online-rail__name {
	max-width: 100%;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	font-size: 0.72rem;
	font-weight: 650;
}

.durak-social .ds-online-rail__meta {
	max-width: 100%;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	font-size: 0.64rem;
	color: var(--ds-subtle);
}

.durak-social .ds-person__avatar-wrap {
	position: relative;
	display: inline-flex;
}

.durak-social .ds-sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.durak-social .ds-highlights {
	margin-top: 1rem;
	padding-top: 0.85rem;
	border-top: 1px solid color-mix(in srgb, var(--ds-border) 80%, transparent);
}

.durak-social .ds-highlights[hidden],
.durak-social .ds-newfaces[hidden],
.durak-social .ds-community-atdurak[hidden] {
	display: none;
}

.durak-social .ds-highlights__list,
.durak-social .ds-newfaces__list {
	list-style: none;
	margin: 0.55rem 0 0;
	padding: 0;
	display: grid;
	gap: 0.55rem;
}

.durak-social .ds-highlight-card {
	display: flex;
	align-items: center;
	gap: 0.65rem;
	width: 100%;
	padding: 0.45rem 0.15rem;
	border: 0;
	background: transparent;
	color: inherit;
	text-align: start;
	cursor: pointer;
	border-radius: 0.75rem;
}

.durak-social .ds-highlight-card:focus-visible,
.durak-social .ds-highlight-card:hover {
	background: color-mix(in srgb, var(--ds-orange-soft) 45%, transparent);
}

.durak-social .ds-highlight-card__label {
	display: block;
	font-size: 0.72rem;
	font-weight: 700;
	color: var(--ds-orange-deep);
}

.durak-social .ds-highlight-card__name {
	display: block;
	font-size: 0.86rem;
	font-weight: 650;
}

.durak-social .ds-highlight-card__meta {
	display: block;
	font-size: 0.74rem;
	color: var(--ds-subtle);
}

.durak-social .ds-empty--actions .ds-empty__actions,
.durak-social .ds-empty__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.45rem;
	margin-top: 0.75rem;
}

.durak-social .ds-official-topic {
	margin: 0.35rem 0 0.65rem;
	padding: 0.75rem 0.9rem;
	border-radius: 0.9rem;
	border: 1px solid color-mix(in srgb, var(--ds-border) 80%, transparent);
	background: color-mix(in srgb, var(--ds-cream) 70%, var(--ds-elevated));
}

.durak-social .ds-official-topic__label {
	display: inline-block;
	margin-bottom: 0.25rem;
	font-size: 0.68rem;
	font-weight: 750;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--ds-subtle);
}

.durak-social .ds-checkin-cta {
	margin-top: 0.65rem;
}

.durak-social .ds-people-dialog__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 0.45rem;
	max-height: min(60vh, 28rem);
	overflow: auto;
}

.durak-social .ds-pulse-card[data-type="online"] .ds-pulse-card__title,
.durak-social .ds-pulse-card[data-type="official_topic"] .ds-pulse-card__sub {
	font-weight: 650;
}

@media (max-width: 1099px) {
	.durak-social .ds-livebar {
		padding: 0.45rem 0.85rem;
	}

	.durak-social .ds-online-rail.is-ready {
		display: flex;
		margin: 0.75rem 0 0.25rem;
	}
}

@media (min-width: 1100px) {
	.durak-social .ds-livebar {
		justify-content: flex-start;
	}

	.durak-social .ds-livebar__chip.is-calm,
	.durak-social .ds-livebar__chip.is-growing {
		border-color: transparent;
		background: transparent;
		padding-inline: 0.15rem;
	}
}

html[dir="rtl"] .durak-social .ds-livebar,
html[dir="rtl"] .durak-social .ds-online-rail,
html[dir="rtl"] .durak-social .ds-highlight-card,
html[dir="rtl"] .durak-social .ds-empty__actions {
	direction: rtl;
}

html[dir="rtl"] .durak-social .ds-official-topic__label,
html[dir="rtl"] .durak-social .ds-pulse-section__title {
	letter-spacing: 0;
	text-transform: none;
}
