.cr-top-rating {
	padding: 48px 0;
}

.cr-rating-table {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin: 28px 0;
}

:root {
	--tw-accent:      var(--cr-accent-gold);
	--tw-accent-h:    var(--cr-accent-gold-light);
	--tw-accent-2:    var(--cr-accent-red);
	--tw-bg:          var(--cr-bg-card);
	--tw-bg-hover:    var(--cr-bg-card-hover);
	--tw-border:      var(--cr-border);
	--tw-border-h:    var(--cr-accent-gold);
	--tw-text:        var(--cr-text-primary);
	--tw-muted:       var(--cr-text-muted);
	--tw-star:        var(--cr-accent-gold);
	--tw-star-empty:  var(--cr-text-muted);
	--tw-radius:      var(--cr-radius-md);
}

/* ── Строка ── */
.tw-row {
	display: grid;
	grid-template-columns: 42px 120px minmax(0,1fr) minmax(0,2fr) 120px 170px;
	align-items: center;
	gap: 20px;
	background: var(--tw-bg);
	border: 1.5px solid var(--tw-border);
	border-radius: var(--tw-radius);
	padding: 18px 22px;
	margin-bottom: 12px;
	box-shadow: var(--cr-shadow-card);
	/* transition only background/border-color, not box-shadow: animating
	   box-shadow forces a repaint (not just composite) on every row.
	   No will-change here on purpose — with 10-15 rows on the page,
	   will-change promotes every single one to its own GPU compositor
	   layer permanently (not just during the hover transition), which
	   costs more memory/compositing overhead during scroll than the
	   occasional repaint it was meant to avoid. The shadow still swaps
	   instantly on :hover, it just isn't animated or pre-promoted. */
	transition: background .2s, border-color .2s;
}
.tw-row:hover {
	background: var(--tw-bg-hover);
	border-color: var(--tw-border-h);
	box-shadow: var(--cr-shadow-card-lg);
}

/* ── Номер ── */
.tw-rank-badge, .tw-rank {
	width: 42px;
	height: 42px;
	border-radius: 50%;
	background: var(--tw-accent);
	color: var(--cr-bg-darker);
	font-size: 17px;
	font-weight: 800;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	box-shadow: var(--cr-shadow-glow-gold);
	line-height: 1;
}
.tw-rank-badge--1, .tw-rank--1 { background: var(--cr-accent-gold); box-shadow: var(--cr-shadow-glow-gold); }
.tw-rank-badge--2, .tw-rank--2 { background: #c9cdd6; box-shadow: 0 0 22px rgba(201, 205, 214, 0.3); }
.tw-rank-badge--3, .tw-rank--3 { background: #c98a4b; box-shadow: 0 0 22px rgba(201, 138, 75, 0.3); }

/* ── Логотип ── */
.tw-logo {
	display: block;
	width: 120px;
	height: 120px;
	aspect-ratio: 1 / 1;
	border-radius: 10px;
	overflow: hidden;
	background: var(--cr-bg-darker);
	text-decoration: none;
	cursor: pointer;
	flex-shrink: 0;
	transition: opacity .15s, transform .15s;
}
.tw-logo:hover {
	opacity: .88;
	transform: scale(1.03);
}
.tw-logo img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	display: block;
}

/* ── Название ── */
.tw-name {
	font-size: 18px;
	font-weight: 700;
	color: var(--tw-text);
	line-height: 1.3;
}

/* ── Бонус ── */
.tw-bonus {
	font-size: 18px;
	font-weight: 700;
	color: var(--tw-accent);
	line-height: 1.45;
}
.tw-bonus-note {
	font-size: 13px;
	font-weight: 400;
	color: var(--tw-muted);
	margin-top: 4px;
	line-height: 1.4;
}

/* ── Рейтинг ── */
.tw-rating {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
}
.tw-stars {
	display: inline-block;
	position: relative;
	font-size: 22px;
	letter-spacing: 2px;
	line-height: 1;
}
.tw-stars::before {
	content: "★★★★★";
	color: var(--tw-star-empty);
}
.tw-stars::after {
	content: "★★★★★";
	color: var(--tw-star);
	position: absolute;
	left: 0; top: 0;
	width: var(--fill, 100%);
	overflow: hidden;
	white-space: nowrap;
}
.tw-score {
	font-size: 16px;
	font-weight: 700;
	color: var(--tw-text);
}

/* ── Действия ── */
.tw-actions {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 8px;
}

/* ── Кнопка ── */
.tw-btn {
	display: block;
	text-align: center;
	text-decoration: none;
	border-radius: 8px;
	padding: 14px 18px;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.2;
	cursor: pointer;
	transition: background .15s, transform .12s;
	white-space: nowrap;
	box-sizing: border-box;
	font-family: inherit;
}
.tw-btn--primary {
	background: var(--tw-accent);
	color: var(--cr-bg-darker) !important;
	border: none;
	box-shadow: var(--cr-shadow-glow-gold);
}
.tw-btn--primary:hover {
	background: var(--tw-accent-h);
	transform: translateY(-2px);
	box-shadow: var(--cr-shadow-glow-gold);
	color: var(--cr-bg-darker) !important;
	text-decoration: none;
}
.tw-btn--primary:active {
	transform: translateY(0);
}

/* ── Иконки оплаты ── */
.tw-payment-icons {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 5px;
	flex-wrap: wrap;
}
.tw-pay-icon {
	font-size: 11px;
	font-weight: 700;
	padding: 2px 6px;
	border-radius: 4px;
	line-height: 1.5;
	border: 1px solid currentColor;
	letter-spacing: .02em;
	opacity: .65;
	transition: opacity .15s;
}
.tw-pay-icon:hover { opacity: 1; }
.tw-pay-icon--visa  { color: #1a1f71; }
.tw-pay-icon--mc    { color: #eb001b; }
.tw-pay-icon--btc   { color: #f7931a; }
.tw-pay-icon--mbway { color: #006600; }

/* ── Дисклеймер ── */
.tw-disclaimer {
	color: var(--tw-muted);
	font-size: 12px;
	margin: -8px 4px 10px;
	line-height: 1.4;
}

/* ── Планшет ≤ 960px ── */
@media (max-width: 960px) {
	.tw-row {
		grid-template-columns: 38px 100px minmax(0,1fr) minmax(0,1.6fr) 160px;
		gap: 14px;
		padding: 16px;
	}
	.tw-logo { width: 100px; height: 100px; }
	.tw-rating { display: none; }
}

/* ── Мобильный ≤ 600px ── */
@media (max-width: 600px) {
	.tw-row {
		grid-template-columns: 36px 70px minmax(0,1fr);
		grid-template-rows: auto auto auto;
		gap: 8px 10px;
		padding: 12px;
	}
	.tw-rank-badge, .tw-rank,
	.tw-row > *:first-child {
		width: 36px;
		height: 36px;
		font-size: 15px;
		align-self: center;
	}
	.tw-logo { width: 70px; height: 70px; border-radius: 8px; }
	.tw-name { font-size: 15px; font-weight: 700; align-self: center; }
	.tw-rating { display: none; }
	.tw-bonus {
		grid-column: 1 / -1;
		font-size: 14px;
		font-weight: 700;
		color: var(--tw-accent);
		border-top: 1px solid var(--tw-border);
		padding-top: 8px;
	}
	.tw-actions {
		grid-column: 1 / -1;
		flex-direction: column;
		align-items: center;
		gap: 8px;
	}
	.tw-btn--primary {
		width: 100%;
		padding: 14px;
		font-size: 16px;
		text-align: center;
	}
	.tw-payment-icons {
		justify-content: center;
		width: 100%;
	}
	.tw-pay-icon { font-size: 10px; padding: 2px 5px; }
}
