/* ═══ ОВЕРЛЕЙ ИГРЫ ═══════════════════════════════════════ */
.trash-game-overlay {
	position: fixed;
	inset: 0;
	background: linear-gradient(135deg, #0f1419 0%, #1a2332 100%);
	z-index: 10000;
	display: flex;
	flex-direction: column;
	overflow: hidden;
}

.trash-game-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 20, 35, 0.85);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.trash-game {
	display: flex;
	flex-direction: column;
	width: 100%;
	height: 100%;
	font-family: 'Inter', system-ui, sans-serif;
	color: #fff;
}

/* ═══ ХЕДЕР — УЛУЧШЕННЫЙ ═══════════════════════════════ */
.trash-header {
	flex-shrink: 0;
	padding: 14px 20px;
	background: 
		linear-gradient(180deg,
			rgba(0, 0, 0, 0.45) 0%,
			rgba(0, 0, 0, 0.25) 100%);
	border-bottom: 1px solid rgba(120, 220, 150, 0.15);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
	position: relative;
	z-index: 10;
}

/* Лёгкая подсветка по низу хедера — разделительная линия */
.trash-header::after {
	content: '';
	position: absolute;
	left: 20%;
	right: 20%;
	bottom: -1px;
	height: 1px;
	background: linear-gradient(90deg,
		transparent 0%,
		rgba(120, 220, 150, 0.4) 50%,
		transparent 100%);
}

.trash-stats {
	display: flex;
	gap: 24px;
	align-items: center;
	flex-wrap: wrap;
}

.trash-stat-item {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	font-weight: 600;
}

.trash-stat-icon { font-size: 18px; }

.trash-stat-value {
	font-variant-numeric: tabular-nums;
	color: rgba(255, 255, 255, 0.95);
}

.trash-stat-hits { color: rgba(120, 220, 150, 1); }
.trash-stat-wind { color: rgba(255, 180, 80, 1); }

.trash-admin-mode {
	padding: 4px 10px;
	background: rgba(255, 100, 100, 0.2);
	border: 1px solid rgba(255, 100, 100, 0.4);
	border-radius: 6px;
	font-size: 12px;
	color: #ff9090;
	margin-left: auto;
}

/* ═══ ИГРОВОЕ ПОЛЕ — АТМОСФЕРНЫЙ ФОН ═══════════════════ */
.trash-game-field {
	flex: 1;
	position: relative;
	overflow: hidden;

	/* Многослойный фон: сияние сверху + снизу + базовый градиент */
	background:
		radial-gradient(ellipse 90% 45% at 50% 0%,
			rgba(120, 220, 150, 0.18), transparent 65%),
		radial-gradient(ellipse 80% 35% at 50% 100%,
			rgba(80, 140, 110, 0.14), transparent 70%),
		radial-gradient(ellipse at 30% 40%,
			rgba(60, 80, 120, 0.15), transparent 60%),
		linear-gradient(180deg,
			#253142 0%,
			#1e2838 40%,
			#18212e 100%);
}

/* ─── Слой 1: летающие частицы пыли ─────────────────── */
.trash-game-field::before {
	content: '';
	position: absolute;
	inset: 0;
	background-image:
		radial-gradient(circle at 10% 20%, rgba(255, 255, 255, 0.06) 1.5px, transparent 2px),
		radial-gradient(circle at 80% 10%, rgba(120, 220, 150, 0.09) 2px, transparent 2.5px),
		radial-gradient(circle at 30% 60%, rgba(255, 255, 255, 0.05) 1px, transparent 1.5px),
		radial-gradient(circle at 90% 70%, rgba(120, 220, 150, 0.07) 1.5px, transparent 2px),
		radial-gradient(circle at 20% 85%, rgba(255, 255, 255, 0.05) 2px, transparent 2.5px),
		radial-gradient(circle at 65% 35%, rgba(120, 220, 150, 0.06) 1px, transparent 1.5px),
		radial-gradient(circle at 45% 15%, rgba(255, 255, 255, 0.04) 1.5px, transparent 2px),
		radial-gradient(circle at 55% 80%, rgba(120, 220, 150, 0.05) 1px, transparent 1.5px);
	animation: trashFieldDustFloat 25s ease-in-out infinite;
	pointer-events: none;
	z-index: 1;
}

@keyframes trashFieldDustFloat {
	0%, 100% { transform: translate(0, 0);        opacity: 0.7; }
	25%      { transform: translate(5px, -10px);  opacity: 1;   }
	50%      { transform: translate(-8px, 5px);   opacity: 0.8; }
	75%      { transform: translate(3px, 8px);    opacity: 0.9; }
}

/* ─── Слой 2: виньетка (затемнение по краям) ────────── */
.trash-game-field::after {
	content: '';
	position: absolute;
	inset: 0;
	background: radial-gradient(
		ellipse 110% 85% at 50% 50%,
		transparent 35%,
		rgba(0, 0, 0, 0.4) 100%
	);
	pointer-events: none;
	z-index: 2;
}

/* Canvas и все игровые элементы — поверх декора */
.trash-canvas,
.trash-instruction,
.trash-exit-btn,
.trash-score-popup {
	position: relative;  /* или absolute где было — сохрани ваш */
	z-index: 3;
}

/* Для кнопки выхода и попапов — явный z-index поверх декораций */
.trash-exit-btn    { z-index: 10; }
.trash-instruction { z-index: 5; }
.trash-score-popup { z-index: 6; }

.trash-canvas {
	display: block;
	width: 100%;
	height: 100%;
	cursor: grab;
	touch-action: none;
}

.trash-canvas:active { cursor: grabbing; }

.trash-instruction {
	position: absolute;
	top: 16px;
	left: 50%;
	transform: translateX(-50%);
	padding: 6px 14px;
	background: rgba(0, 0, 0, 0.5);
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 20px;
	font-size: 12px;
	color: rgba(255, 255, 255, 0.7);
	z-index: 5;
	pointer-events: none;
}

.trash-exit-btn {
	position: absolute;
	top: 16px;
	right: 16px;
	padding: 8px 14px;
	background: rgba(255, 100, 100, 0.15);
	border: 1px solid rgba(255, 100, 100, 0.35);
	border-radius: 8px;
	color: #ff8080;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	z-index: 10;
	transition: all 0.2s ease;
}

.trash-exit-btn:hover {
	background: rgba(255, 100, 100, 0.25);
	color: #ffaaaa;
}

/* ═══ ПОПАП ПРИ ПОПАДАНИИ ═══════════════════════════════ */
.trash-score-popup {
	position: absolute;
	font-size: 28px;
	font-weight: 800;
	color: #7adc96;
	text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
	pointer-events: none;
	animation: trashScorePop 1s ease-out forwards;
	transform: translate(-50%, -50%);
	z-index: 6;
}

@keyframes trashScorePop {
	0%   { opacity: 1; transform: translate(-50%, -50%) scale(0.6); }
	30%  { opacity: 1; transform: translate(-50%, -70%) scale(1.2); }
	100% { opacity: 0; transform: translate(-50%, -120%) scale(1); }
}

/* ═══ ЭКРАН РЕЗУЛЬТАТОВ ═════════════════════════════════ */
.trash-results {
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
}

.trash-results-content {
	max-width: 480px;
	width: 100%;
	padding: 32px 28px;
	background: rgba(20, 28, 42, 0.95);
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 16px;
	text-align: center;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.trash-results-content h2 {
	margin: 0 0 20px;
	font-size: 24px;
	font-weight: 700;
	color: #fff;
}

.trash-final-score {
	margin: 20px 0;
	padding: 20px;
	background: rgba(255, 255, 255, 0.04);
	border-radius: 12px;
}

.trash-score-label {
	font-size: 13px;
	color: rgba(255, 255, 255, 0.5);
	text-transform: uppercase;
	letter-spacing: 0.05em;
	margin-bottom: 8px;
}

.trash-score-number {
	font-size: 48px;
	font-weight: 800;
	color: #7adc96;
	font-variant-numeric: tabular-nums;
}

.trash-score-max {
	font-size: 24px;
	color: rgba(255, 255, 255, 0.3);
	font-weight: 500;
}

.trash-results-message {
	font-size: 14px;
	color: rgba(255, 255, 255, 0.7);
	margin: 16px 0 20px;
	line-height: 1.5;
}

/* ═══ ПЛАШКИ НАГРАД ══════════════════════════════════════ */
.trash-rewards {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	justify-content: center;
	margin: 20px 0;
}

.trash-reward-tag {
	padding: 8px 14px;
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 8px;
	font-size: 13px;
	font-weight: 600;
	color: rgba(255, 255, 255, 0.9);
}

.trash-reward-morale {
	background: rgba(150, 100, 255, 0.15);
	border-color: rgba(150, 100, 255, 0.35);
	color: #c8a8ff;
}

/* ═══ КНОПКИ ═════════════════════════════════════════════ */
.trash-results-buttons {
	display: flex;
	gap: 10px;
	justify-content: center;
	margin-top: 24px;
	flex-wrap: wrap;
}

.trash-btn-primary,
.trash-btn-secondary {
	padding: 12px 22px;
	border: none;
	border-radius: 10px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.2s ease;
	font-family: inherit;
}

.trash-btn-primary {
	background: linear-gradient(135deg, #5a8fdc, #4a7cc4);
	color: #fff;
	box-shadow: 0 4px 14px rgba(90, 143, 220, 0.35);
}

.trash-btn-primary:hover {
	transform: translateY(-1px);
	box-shadow: 0 6px 20px rgba(90, 143, 220, 0.5);
}

.trash-btn-secondary {
	background: rgba(255, 255, 255, 0.08);
	color: rgba(255, 255, 255, 0.85);
	border: 1px solid rgba(255, 255, 255, 0.15);
}

.trash-btn-secondary:hover {
	background: rgba(255, 255, 255, 0.14);
}

/* ═══ МОДАЛКА (ТАБЛИЦА ЛИДЕРОВ) ═════════════════════════ */
.trash-modal-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.7);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 10001;
	backdrop-filter: blur(4px);
	animation: trashFadeIn 0.2s ease;
}

@keyframes trashFadeIn {
	from { opacity: 0; }
	to   { opacity: 1; }
}

.trash-modal {
	width: 90%;
	max-width: 480px;
	max-height: 85vh;
	background: linear-gradient(135deg, #1a2332, #0f1419);
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 16px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
	display: flex;
	flex-direction: column;
	overflow: hidden;
}

.trash-modal-header {
	padding: 18px 22px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.trash-modal-header h3 {
	margin: 0;
	font-size: 17px;
	font-weight: 700;
	color: #fff;
}

.trash-modal-body {
	padding: 18px 22px;
	overflow-y: auto;
	color: rgba(255, 255, 255, 0.85);
	font-size: 14px;
	line-height: 1.5;
}

.trash-modal-footer {
	padding: 14px 22px;
	border-top: 1px solid rgba(255, 255, 255, 0.08);
	display: flex;
	gap: 10px;
	justify-content: flex-end;
}

/* ═══ СПИСОК ЛИДЕРОВ ════════════════════════════════════ */
.trash-leaderboard-loading,
.trash-leaderboard-empty {
	padding: 24px;
	text-align: center;
	color: rgba(255, 255, 255, 0.5);
	font-style: italic;
}

.trash-leaderboard-list {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.trash-lb-row {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 12px;
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid rgba(255, 255, 255, 0.06);
	border-radius: 10px;
	transition: background 0.15s ease;
}

.trash-lb-row:hover { background: rgba(255, 255, 255, 0.07); }

.trash-lb-row-top1 { background: linear-gradient(135deg, rgba(255, 215, 0, 0.12), transparent); border-color: rgba(255, 215, 0, 0.35); }
.trash-lb-row-top2 { background: linear-gradient(135deg, rgba(192, 192, 192, 0.1),  transparent); border-color: rgba(192, 192, 192, 0.3); }
.trash-lb-row-top3 { background: linear-gradient(135deg, rgba(205, 127, 50, 0.1),  transparent); border-color: rgba(205, 127, 50, 0.3); }

.trash-lb-rank {
	flex-shrink: 0;
	width: 36px;
	font-size: 18px;
	font-weight: 700;
	text-align: center;
	color: rgba(255, 255, 255, 0.8);
}

.trash-lb-avatar {
	flex-shrink: 0;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	object-fit: cover;
	background: rgba(255, 255, 255, 0.05);
	border: 1px solid rgba(255, 255, 255, 0.1);
}

.trash-lb-info {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.trash-lb-name {
	font-size: 14px;
	font-weight: 600;
	color: #fff;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.trash-lb-class {
	font-size: 11px;
	color: rgba(255, 255, 255, 0.45);
}

.trash-lb-score {
	flex-shrink: 0;
	font-size: 20px;
	font-weight: 800;
	color: #7adc96;
	font-variant-numeric: tabular-nums;
}

/* ═══ АДАПТИВ ═══════════════════════════════════════════ */
@media (max-width: 600px) {
	.trash-header    { padding: 10px 14px; }
	.trash-stats     { gap: 14px; }
	.trash-stat-item { font-size: 13px; }
	.trash-stat-icon { font-size: 16px; }

	.trash-admin-mode {
		font-size: 11px;
		padding: 3px 8px;
	}

	.trash-instruction {
		font-size: 11px;
		padding: 5px 10px;
		top: 10px;
	}

	.trash-exit-btn {
		top: 10px;
		right: 10px;
		padding: 6px 10px;
		font-size: 12px;
	}

	.trash-results-content {
		padding: 22px 18px;
		border-radius: 14px;
	}

	.trash-results-content h2   { font-size: 20px; }
	.trash-score-number         { font-size: 38px; }
	.trash-score-max            { font-size: 20px; }

	.trash-results-buttons {
		flex-direction: column;
	}

	.trash-btn-primary,
	.trash-btn-secondary {
		width: 100%;
	}

	.trash-modal {
		width: 94%;
		max-height: 90vh;
	}

	.trash-modal-header { padding: 14px 16px; }
	.trash-modal-body   { padding: 14px 16px; }
	.trash-modal-footer { padding: 12px 16px; }

	.trash-lb-row      { padding: 8px 10px; gap: 10px; }
	.trash-lb-rank     { width: 28px; font-size: 15px; }
	.trash-lb-avatar   { width: 32px; height: 32px; }
	.trash-lb-name     { font-size: 13px; }
	.trash-lb-class    { font-size: 10px; }
	.trash-lb-score    { font-size: 18px; }
}

@media (max-width: 380px) {
	.trash-stats {
		gap: 10px;
	}
	.trash-stat-item {
		font-size: 12px;
	}
}

/* ═══ ПОДДЕРЖКА ВЫСОТЫ МОБИЛЬНЫХ БРАУЗЕРОВ ═══════════════ */
@supports (height: 100dvh) {
	.trash-game-overlay {
		height: 100dvh;
	}
}


/* Это новый блок, который будет внутри оверлея */
.trash-game-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    max-width: 450px; /* Например, ширина как у мобильного */
    max-height: 800px; /* И высота */
    background: #1a2333;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    overflow: hidden; /* Важно, чтобы canvas не вылезал */
}

/* ═══ НОВЫЙ HUD: иконка-изображение и таймер ═══════════ */
.trash-stat-icon-img {
	width: 22px;
	height: 22px;
	object-fit: contain;
	filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.4));
}

.trash-stat-hits {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 20px;
	font-weight: 800;
	color: #7adc96;
	padding: 6px 14px;
	background: rgba(120, 220, 150, 0.1);
	border: 1px solid rgba(120, 220, 150, 0.3);
	border-radius: 8px;
	text-shadow: 0 0 10px rgba(120, 220, 150, 0.35);
	transition: all 0.2s ease;
}

/* Анимация "пинка" при попадании */
.trash-stat-hits.trash-stat-hits-bump {
	animation: trashHitsBump 0.4s ease;
}

@keyframes trashHitsBump {
	0%   { transform: scale(1);    background: rgba(120, 220, 150, 0.1); }
	40%  { transform: scale(1.15); background: rgba(120, 220, 150, 0.3); box-shadow: 0 0 20px rgba(120, 220, 150, 0.5); }
	100% { transform: scale(1);    background: rgba(120, 220, 150, 0.1); }
}

.trash-stat-timer {
	margin-left: auto;
	padding: 8px 16px;
	background: linear-gradient(180deg,
		rgba(90, 143, 220, 0.2) 0%,
		rgba(90, 143, 220, 0.12) 100%);
	border: 1px solid rgba(90, 143, 220, 0.4);
	border-radius: 10px;
	font-size: 16px;
	font-weight: 800;
	color: #8fb8ee;
	font-variant-numeric: tabular-nums;
	text-shadow: 0 0 8px rgba(143, 184, 238, 0.3);
	box-shadow: 
		0 4px 12px rgba(90, 143, 220, 0.2),
		inset 0 1px 0 rgba(255, 255, 255, 0.1);
	transition: all 0.2s ease;
}

.trash-stat-timer-urgent {
	background: rgba(255, 80, 80, 0.2);
	border-color: rgba(255, 80, 80, 0.5);
	color: #ff9090;
	animation: trashTimerPulse 1s infinite;
}

@keyframes trashTimerPulse {
	0%, 100% { transform: scale(1); }
	50%      { transform: scale(1.08); }
}

.trash-admin-mode {
	margin-left: 12px;   /* ← было auto, теперь рядом с таймером */
}

/* Подпись под финальным счётом */
.trash-score-sublabel {
	font-size: 12px;
	color: rgba(255, 255, 255, 0.4);
	margin-top: 4px;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

@media (max-width: 600px) {
	.trash-stat-icon-img { width: 20px; height: 20px; }
	.trash-stat-hits     { font-size: 18px; }
	.trash-stat-timer    { font-size: 13px; padding: 5px 10px; }
}

/* ═══════════════════════════════════════════════════════
   ИНТРО / КУЛДАУН ПОПАП
   ═══════════════════════════════════════════════════════ */

.trash-intro-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.85);
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
	z-index: 10000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	animation: trashIntroFadeIn 0.3s ease;
}

@keyframes trashIntroFadeIn {
	from { opacity: 0; }
	to   { opacity: 1; }
}

.trash-intro-modal {
	width: 100%;
	max-width: 440px;
	background: linear-gradient(180deg, #2a3547 0%, #1e2838 100%);
	border: 1px solid rgba(120, 220, 150, 0.2);
	border-radius: 18px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6),
	            0 0 40px rgba(120, 220, 150, 0.1);
	overflow: hidden;
	animation: trashIntroSlideUp 0.4s cubic-bezier(0.2, 0.8, 0.3, 1.1);
	position: relative;  /* ← для частиц */
}

/* ─── Плавающие частицы мусора на фоне ───────────────── */
.trash-intro-modal::before {
	content: '';
	position: absolute;
	inset: 0;
	background-image:
		radial-gradient(circle at 15% 25%, rgba(255, 255, 255, 0.04) 1.5px, transparent 2px),
		radial-gradient(circle at 75% 15%, rgba(120, 220, 150, 0.06) 2px, transparent 2.5px),
		radial-gradient(circle at 40% 70%, rgba(255, 255, 255, 0.03) 1px, transparent 1.5px),
		radial-gradient(circle at 85% 85%, rgba(120, 220, 150, 0.05) 1.5px, transparent 2px),
		radial-gradient(circle at 25% 90%, rgba(255, 255, 255, 0.04) 2px, transparent 2.5px),
		radial-gradient(circle at 60% 40%, rgba(120, 220, 150, 0.04) 1px, transparent 1.5px);
	background-size: 100% 100%;
	animation: trashIntroBgFloat 20s ease-in-out infinite;
	pointer-events: none;
	z-index: 0;
}

/* ─── Лёгкая зеленоватая дымка по центру ─────────────── */
.trash-intro-modal::after {
	content: '';
	position: absolute;
	inset: 0;
	background:
		radial-gradient(ellipse 80% 50% at 50% 30%, rgba(120, 220, 150, 0.08), transparent 70%),
		radial-gradient(ellipse 60% 40% at 50% 80%, rgba(120, 220, 150, 0.04), transparent 70%);
	pointer-events: none;
	z-index: 0;
}

@keyframes trashIntroBgFloat {
	0%, 100% { transform: translateY(0) translateX(0); opacity: 0.8; }
	33%      { transform: translateY(-8px) translateX(3px); opacity: 1; }
	66%      { transform: translateY(4px) translateX(-4px); opacity: 0.7; }
}

/* Контент поверх декора */
.trash-intro-header,
.trash-intro-body,
.trash-intro-footer {
	position: relative;
	z-index: 1;
}

@keyframes trashIntroSlideUp {
	from { opacity: 0; transform: translateY(40px) scale(0.95); }
	to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ─── Шапка ─────────────────────────────────────────── */
.trash-intro-header {
	padding: 28px 24px 20px;
	text-align: center;
	background: radial-gradient(ellipse at top, rgba(120, 220, 150, 0.15), transparent 70%);
}

/* ─── Иконка в шапке (картинка мусорки) ──────────────── */
.trash-intro-icon-img {
	width: 96px;
	height: 96px;
	object-fit: contain;
	margin-bottom: 12px;
	filter: drop-shadow(0 6px 14px rgba(120, 220, 150, 0.4));
	animation: trashIntroIconBounce 2s ease-in-out infinite;
	user-select: none;
	-webkit-user-drag: none;
}

/* Оставляем старый класс для совместимости (кулдаун-модалка его использует) */
.trash-intro-icon {
	font-size: 56px;
	line-height: 1;
	margin-bottom: 12px;
	filter: drop-shadow(0 4px 12px rgba(255, 180, 80, 0.5));
	animation: trashIntroIconBounce 2s ease-in-out infinite;
}

@keyframes trashIntroIconBounce {
	0%, 100% { transform: translateY(0); }
	50%      { transform: translateY(-6px); }
}

.trash-intro-title {
	margin: 0 0 6px;
	font-size: 24px;
	font-weight: 800;
	color: #ffffff;
	letter-spacing: -0.02em;
}

.trash-intro-subtitle {
	font-size: 14px;
	color: rgba(255, 255, 255, 0.55);
}

/* ─── Тело ─────────────────────────────────────────── */
.trash-intro-body {
	padding: 8px 24px 20px;
}

/* Правила */
.trash-intro-rules {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin-bottom: 20px;
}

.trash-intro-rule {
	display: flex;
	align-items: center;
	padding: 12px 14px;
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid rgba(255, 255, 255, 0.06);
	border-radius: 12px;
}

.trash-intro-rule-icon {
	font-size: 24px;
	line-height: 1;
	flex-shrink: 0;
}

.trash-intro-rule-text {
	font-size: 14px;
	color: rgba(255, 255, 255, 0.85);
	line-height: 1.4;
	width: 100%;
	text-align: center;   /* ← текст по центру, выглядит чище без иконок */
}

.trash-intro-rule-text strong {
	color: #7adc96;
	font-weight: 700;
}

/* Награды */
.trash-intro-rewards {
	padding: 16px;
	background: linear-gradient(135deg, rgba(120, 220, 150, 0.08), rgba(120, 220, 150, 0.02));
	border: 1px solid rgba(120, 220, 150, 0.2);
	border-radius: 12px;
	margin-bottom: 16px;
}

.trash-intro-rewards-title {
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: rgba(120, 220, 150, 0.8);
	font-weight: 700;
	margin-bottom: 10px;
	text-align: center;
}

.trash-intro-rewards-list {
	display: flex;
	gap: 8px;
	justify-content: center;
	flex-wrap: wrap;
	margin-bottom: 8px;
}

.trash-intro-reward-tag {
	padding: 6px 14px;
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 20px;
	font-size: 13px;
	font-weight: 600;
	color: rgba(255, 255, 255, 0.9);
}

.trash-intro-reward-morale {
	background: rgba(90, 143, 220, 0.2);
	border-color: rgba(90, 143, 220, 0.4);
	color: #8fb8ee;
}

.trash-intro-rewards-hint {
	font-size: 12px;
	text-align: center;
	color: rgba(255, 255, 255, 0.5);
}

/* Предупреждение о кулдауне */
.trash-intro-warning {
	padding: 10px 14px;
	background: rgba(255, 180, 80, 0.08);
	border: 1px solid rgba(255, 180, 80, 0.2);
	border-radius: 10px;
	font-size: 12px;
	color: rgba(255, 200, 120, 0.9);
	text-align: center;
}

/* ─── Футер ────────────────────────────────────────── */
.trash-intro-footer {
	display: flex;
	gap: 10px;
	padding: 16px 24px 24px;
}

.trash-intro-footer .trash-btn-secondary,
.trash-intro-footer .trash-btn-primary {
	flex: 1;
}

.trash-intro-start-btn {
	font-size: 16px;
	font-weight: 700;
	box-shadow: 0 4px 16px rgba(120, 220, 150, 0.3);
	animation: trashIntroBtnGlow 2s ease-in-out infinite;
}

@keyframes trashIntroBtnGlow {
	0%, 100% { box-shadow: 0 4px 16px rgba(120, 220, 150, 0.3); }
	50%      { box-shadow: 0 4px 24px rgba(120, 220, 150, 0.55); }
}

/* ═══ КУЛДАУН ВАРИАНТ ═════════════════════════════════ */
.trash-cooldown-modal .trash-intro-header {
	background: radial-gradient(ellipse at top, rgba(255, 180, 80, 0.18), transparent 70%);
}

.trash-cooldown-icon {
	filter: drop-shadow(0 4px 12px rgba(255, 180, 80, 0.5)) !important;
}

.trash-cooldown-timer {
	display: flex;
	justify-content: center;
	align-items: flex-start;
	gap: 8px;
	margin: 10px 0 24px;
	padding: 20px 10px;
	background: rgba(0, 0, 0, 0.25);
	border-radius: 14px;
	border: 1px solid rgba(255, 255, 255, 0.06);
}

.trash-cooldown-digit {
	display: flex;
	flex-direction: column;
	align-items: center;
	min-width: 72px;
}

.trash-cooldown-value {
	font-size: 42px;
	font-weight: 800;
	color: #ffb850;
	font-variant-numeric: tabular-nums;
	line-height: 1;
	text-shadow: 0 2px 8px rgba(255, 180, 80, 0.3);
}

.trash-cooldown-label {
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: rgba(255, 255, 255, 0.5);
	margin-top: 6px;
}

.trash-cooldown-separator {
	font-size: 38px;
	font-weight: 800;
	color: rgba(255, 180, 80, 0.4);
	line-height: 1;
	padding-top: 2px;
	animation: trashCooldownBlink 1s infinite;
}

@keyframes trashCooldownBlink {
	0%, 100% { opacity: 1; }
	50%      { opacity: 0.3; }
}

.trash-cooldown-next {
	text-align: center;
	font-size: 13px;
	color: rgba(255, 255, 255, 0.6);
	padding: 10px 14px;
	background: rgba(255, 255, 255, 0.03);
	border-radius: 10px;
}

.trash-cooldown-next strong {
	color: #ffd280;
	font-weight: 700;
}

/* ═══ АВТОСКРЫТИЕ ПОДСКАЗКИ В ИГРЕ ══════════════════════ */
.trash-instruction {
	transition: opacity 0.5s ease, transform 0.5s ease;
}

.trash-instruction-hidden {
	opacity: 0;
	transform: translateY(-10px);
	pointer-events: none;
}

/* ═══ АДАПТИВ ═══════════════════════════════════════════ */
@media (max-width: 480px) {
	.trash-intro-title     { font-size: 20px; }
	.trash-intro-icon      { font-size: 48px; }
	.trash-intro-icon-img  { width: 80px; height: 80px; }
	.trash-intro-rule-text { font-size: 13px; }
	.trash-intro-start-icon { width: 22px; height: 22px; }
	.trash-cooldown-value  { font-size: 34px; }
	.trash-cooldown-digit  { min-width: 60px; }
	.trash-cooldown-separator { font-size: 30px; }
}

/* ─── Кнопка "Начать игру" с картинкой мусора ────────── */
.trash-intro-start-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	font-size: 16px;
	font-weight: 700;
	box-shadow: 0 4px 16px rgba(120, 220, 150, 0.3);
	animation: trashIntroBtnGlow 2s ease-in-out infinite;
}

.trash-intro-start-icon {
	width: 26px;
	height: 26px;
	object-fit: contain;
	filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.35));
	user-select: none;
	-webkit-user-drag: none;
	animation: trashIntroStartIconWiggle 1.2s ease-in-out infinite;
}

@keyframes trashIntroStartIconWiggle {
	0%, 100% { transform: rotate(-6deg); }
	50%      { transform: rotate(6deg);  }
}

/* Перезаписываем старое правило, чтобы анимация свечения осталась */
@keyframes trashIntroBtnGlow {
	0%, 100% { box-shadow: 0 4px 16px rgba(120, 220, 150, 0.3); }
	50%      { box-shadow: 0 4px 24px rgba(120, 220, 150, 0.55); }
}

/* ═══════════════════════════════════════════════════════
   КНОПКА-ИКОНКА (🏆) В ФУТЕРЕ ИНТРО
   ═══════════════════════════════════════════════════════ */
.trash-intro-footer-3btn {
	gap: 8px;
}

.trash-intro-footer-3btn .trash-btn-secondary,
.trash-intro-footer-3btn .trash-btn-primary {
	flex: 1;
}

.trash-btn-icon {
	flex: 0 0 48px !important;   /* ← фиксированная ширина — только иконка */
	padding: 12px !important;
	font-size: 18px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.trash-btn-icon:hover {
	background: rgba(255, 215, 0, 0.15);
	border-color: rgba(255, 215, 0, 0.35);
	color: #ffd86b;
	transform: translateY(-1px);
}

/* ═══════════════════════════════════════════════════════
   МОДАЛКА ЛИДЕРБОРДА — ПОВЕРХ ИНТРО/КУЛДАУНА
   ═══════════════════════════════════════════════════════ */
.trash-modal-overlay-top {
	z-index: 10002 !important;   /* выше intro-overlay (10000) */
}

/* Скроллируемый список лидеров — увеличиваем высоту */
.trash-modal-overlay-top .trash-leaderboard-list {
	max-height: 60vh;
	overflow-y: auto;
	padding-right: 4px;
}

/* Тонкий скроллбар */
.trash-modal-overlay-top .trash-leaderboard-list::-webkit-scrollbar {
	width: 4px;
}
.trash-modal-overlay-top .trash-leaderboard-list::-webkit-scrollbar-thumb {
	background: rgba(120, 220, 150, 0.3);
	border-radius: 2px;
}
.trash-modal-overlay-top .trash-leaderboard-list::-webkit-scrollbar-track {
	background: transparent;
}

/* ═══════════════════════════════════════════════════════
   АДАПТИВ — на узких экранах кнопки в столбик
   ═══════════════════════════════════════════════════════ */
@media (max-width: 380px) {
	.trash-intro-footer-3btn {
		flex-wrap: wrap;
	}
	.trash-intro-footer-3btn .trash-btn-icon {
		flex: 0 0 44px !important;
	}
}
