/* ================================
   КОМАНДА — сітка карток учасників, живий статус, «Хочеш допомагати»
   ================================ */
.tm-online-now {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-top: 4px;
	padding: 6px 14px;
	border-radius: 100px;
	background: rgba(74, 222, 128, 0.08);
	border: 1px solid rgba(74, 222, 128, 0.25);
	color: #86efac;
	font-size: 13px;
	font-weight: 700;
}

.tm-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #22c55e;
	box-shadow: 0 0 10px #22c55e;
}

.tm-join {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	flex-wrap: wrap;
	max-width: 1080px;
	margin: 30px auto 50px;
}

.tm-join-title {
	margin: 0 0 4px;
	font-size: 20px;
	color: #fff;
}

.tm-join-text {
	margin: 0;
	font-size: 14px;
	color: rgba(255, 255, 255, 0.62);
}

.tm-join-btn {
	padding: 13px 26px;
}

/* ---------- Групи й сітка ---------- */
.tm-group {
	max-width: 1080px;
	margin: 10px auto 26px;
}

.tm-group-title {
	margin: 0 0 14px;
	font-size: 13px;
	font-weight: 800;
	letter-spacing: 2px;
	text-transform: uppercase;
	color: var(--accent);
}

.tm-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(250px, 100%), 1fr));
	gap: 18px;
}

/* ---------- Картка учасника ---------- */
.tm-card {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	padding: 22px 20px 20px;
	transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.tm-card:hover {
	transform: translateY(-4px);
	border-color: rgba(167, 139, 250, 0.4);
	box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45), 0 0 30px rgba(167, 139, 250, 0.12);
}

.tm-card.is-online {
	border-color: rgba(74, 222, 128, 0.3);
}

.tm-status {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	max-width: 100%;
	padding: 5px 12px;
	border-radius: 100px;
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid rgba(255, 255, 255, 0.1);
	color: rgba(255, 255, 255, 0.6);
	font-size: 12px;
	font-weight: 700;
}

.tm-status.is-online {
	background: rgba(74, 222, 128, 0.08);
	border-color: rgba(74, 222, 128, 0.28);
	color: #86efac;
}

.tm-status-dot {
	flex: none;
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: #6b7280;
}

.tm-status.is-online .tm-status-dot {
	background: #22c55e;
	box-shadow: 0 0 8px #22c55e;
}

.tm-skin {
	position: relative;
	display: flex;
	align-items: flex-end;
	justify-content: center;
	width: 100%;
	height: 200px;
	margin: 14px 0 10px;
}

.tm-skin-glow {
	position: absolute;
	left: 50%;
	bottom: 10px;
	width: 150px;
	height: 150px;
	transform: translateX(-50%);
	border-radius: 50%;
	background: radial-gradient(circle, rgba(167, 139, 250, 0.22) 0%, transparent 70%);
}

.tm-card.is-online .tm-skin-glow {
	background: radial-gradient(circle, rgba(74, 222, 128, 0.18) 0%, transparent 70%);
}

.tm-skin-img,
.tm-skin-canvas {
	position: relative;
	height: 190px;
	width: auto;
	filter: drop-shadow(0 14px 22px rgba(0, 0, 0, 0.6));
	transition: transform 0.3s ease;
}

/* текстура 16×32 збільшується без розмиття */
.tm-skin-canvas {
	width: 95px;
	image-rendering: pixelated;
}

.tm-card:hover .tm-skin-img,
.tm-card:hover .tm-skin-canvas {
	transform: scale(1.04);
}

.tm-name {
	margin: 0;
	font-size: 20px;
	line-height: 1.25;
	font-weight: 800;
	color: #fff;
	overflow-wrap: anywhere;
}

.tm-role {
	margin-top: 8px;
	padding: 4px 12px;
	border-radius: 100px;
	background: rgba(167, 139, 250, 0.1);
	border: 1px solid rgba(167, 139, 250, 0.3);
	color: #c4b5fd;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.5px;
}

.tm-bio {
	/* опис займає вільне місце, тож кнопки «Копіювати» стоять на одному рівні в усіх картках */
	flex-grow: 1;
	margin: 12px 0 0;
	font-size: 13.5px;
	line-height: 1.55;
	color: rgba(255, 255, 255, 0.62);
}

/* кнопка внизу картки: нік + «Копіювати» */
.tm-copy {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	width: 100%;
	margin-top: auto;
	padding: 10px 14px;
	border-radius: 12px;
	background: rgba(0, 0, 0, 0.2);
	border: 1px solid rgba(255, 255, 255, 0.08);
	color: #fff;
	font: inherit;
	cursor: pointer;
	transition: border-color 0.2s, background 0.2s;
}

.tm-bio + .tm-copy,
.tm-role + .tm-copy {
	margin-top: 16px;
}

.tm-copy:hover {
	border-color: rgba(167, 139, 250, 0.4);
	background: rgba(167, 139, 250, 0.08);
}

.tm-copy-nick {
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	font-family: 'JetBrains Mono', ui-monospace, monospace;
	font-size: 13px;
	font-weight: 700;
}

.tm-copy-label {
	flex: none;
	font-size: 12px;
	font-weight: 700;
	color: #c4b5fd;
}

.tm-copy.is-done {
	border-color: rgba(74, 222, 128, 0.4);
}

.tm-copy.is-done .tm-copy-label {
	color: #86efac;
}

.tm-empty {
	max-width: 1080px;
	margin: 10px auto;
	text-align: center;
	color: var(--muted);
}

@media (max-width: 480px) {
	.tm-skin {
		height: 170px;
	}

	.tm-skin-img,
	.tm-skin-canvas {
		height: 160px;
	}

	.tm-skin-canvas {
		width: 80px;
	}
}

