
/* Public gift announcement (broadcast when a gift is sent) */
.gift_announce{
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 4px;
}
.gift_announce_name{
	font-weight: bold;
}
.gift_announce_icon{
	color: #f5a623;
	margin: 0 2px;
}
.gift_announce_item{
	display: inline-flex;
	align-items: center;
	gap: 4px;
	margin-inline-start: 4px;
}
.gift_announce_img{
	width: 22px;
	height: 22px;
}
.gift_announce_title{
	font-weight: bold;
}

/* Big gift popup — shown briefly for everyone when a gift is sent */
#gift_big_popup_layer{
	position: fixed;
	top: 15%;
	left: 50%;
	transform: translateX(-50%);
	z-index: 99999;
	pointer-events: none;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
}
.gift_big_popup{
	background: rgba(0,0,0,0.75);
	border-radius: 14px;
	padding: 16px 26px;
	text-align: center;
	color: #fff;
	box-shadow: 0 0 25px rgba(245,166,35,0.6);
	opacity: 0;
	transform: scale(0.6);
	animation: gift_big_popup_in 0.4s ease forwards;
}
.gift_big_popup_hide{
	animation: gift_big_popup_out 0.5s ease forwards;
}
.gift_big_popup_names{
	font-size: 14px;
	margin-bottom: 6px;
	font-weight: bold;
}
.gift_big_popup_img{
	width: 110px;
	height: 110px;
	object-fit: contain;
}
.gift_big_popup_title{
	margin-top: 6px;
	font-size: 15px;
	font-weight: bold;
	color: #f5a623;
}
@keyframes gift_big_popup_in{
	from{ opacity: 0; transform: scale(0.6); }
	to{ opacity: 1; transform: scale(1); }
}
@keyframes gift_big_popup_out{
	from{ opacity: 1; transform: scale(1); }
	to{ opacity: 0; transform: scale(0.8); }
}

/* Telegram-style spoiler text: ||hidden text|| -> floating blurred overlay, tap to reveal */
.spoiler_text{
	position: relative;
	display: inline-block;
	border-radius: 4px;
	padding: 0 2px;
	cursor: pointer;
	overflow: hidden;
	color: transparent;
}
.spoiler_text *{
	color: transparent;
}
.spoiler_text::before{
	content: "";
	position: absolute;
	top: -20%;
	left: -50%;
	width: 200%;
	height: 140%;
	background-image:
		radial-gradient(circle at 20% 30%, rgba(180,180,180,0.9) 0 2px, transparent 3px),
		radial-gradient(circle at 55% 65%, rgba(140,140,140,0.9) 0 2px, transparent 3px),
		radial-gradient(circle at 80% 20%, rgba(200,200,200,0.9) 0 2px, transparent 3px),
		radial-gradient(circle at 35% 85%, rgba(150,150,150,0.9) 0 2px, transparent 3px),
		radial-gradient(circle at 65% 40%, rgba(190,190,190,0.9) 0 2px, transparent 3px);
	background-size: 14px 14px;
	background-color: rgba(40,40,40,0.92);
	filter: blur(1.5px);
	animation: spoiler_float 1.4s linear infinite;
}
@keyframes spoiler_float{
	0%{ transform: translate(0, 0); }
	100%{ transform: translate(-14px, -10px); }
}
.spoiler_text.spoiler_revealed{
	color: inherit;
	cursor: text;
	overflow: visible;
}
.spoiler_text.spoiler_revealed *{
	color: inherit;
}
.spoiler_text.spoiler_revealed::before{
	content: none;
}
/* ستاره‌ی چرخان کاربر ویژه - می‌چرخه، چند ثانیه می‌ایسته، دوباره می‌چرخه */
.star_vip_badge{
	display: inline-block;
	width: 14px;
	height: 14px;
	vertical-align: middle;
	margin: 0 3px;
	animation: star_vip_spin 4s ease-in-out infinite;
}
@keyframes star_vip_spin{
	0%   { transform: rotate(0deg); }
	15%  { transform: rotate(360deg); }
	100% { transform: rotate(360deg); }
}
@keyframes boom_buzz_shake_kf{
	0%   { transform: translate(0, 0) rotate(0deg); }
	10%  { transform: translate(-8px, -4px) rotate(-2deg); }
	20%  { transform: translate(8px, 4px) rotate(2deg); }
	30%  { transform: translate(-8px, 4px) rotate(-2deg); }
	40%  { transform: translate(8px, -4px) rotate(2deg); }
	50%  { transform: translate(-6px, 2px) rotate(-1deg); }
	60%  { transform: translate(6px, -2px) rotate(1deg); }
	70%  { transform: translate(-4px, 2px) rotate(-1deg); }
	80%  { transform: translate(4px, -2px) rotate(1deg); }
	90%  { transform: translate(-2px, 0) rotate(0deg); }
	100% { transform: translate(0, 0) rotate(0deg); }
}
.boom_buzz_shake{
	animation: boom_buzz_shake_kf 0.6s ease-in-out;
}
.buzz_message{
	color: #ffcc00 !important;
	font-weight: bold;
	border: 2px solid #ffcc00;
	border-radius: 10px;
	box-shadow: 0 0 6px 2px rgba(255, 170, 0, 0.7), 0 0 12px 4px rgba(255, 102, 0, 0.4);
	text-shadow: 0 0 4px rgba(255, 140, 0, 0.9);
}