/* Nivel de busqueda. El badge copia el de Black Friday (.ht-black-friday-badge):
   fondo negro, borde blanco, contorno negro y letra dorada. */

.ht-wanted-host {
	position: relative;
}

.ht-wanted-badge {
	position: absolute;
	top: calc(100% - 7px);
	left: 50%;
	z-index: 3;
	display: inline-flex;
	gap: 1px;
	margin: 0;
	padding: 2px 5px;
	transform: translateX(-50%);
	background: #111;
	border: 2px solid #fff;
	border-radius: 4px;
	box-shadow: 0 0 0 2px #000;
	color: #6b6b6b;
	font-size: 0.6rem;
	line-height: 1.2;
	white-space: nowrap;
	cursor: pointer;
}

.ht-wanted-badge:hover,
.ht-wanted-badge:focus {
	background: #222;
	outline: none;
}

.ht-wanted-badge .is-on {
	color: #ffd54a;
}

.ht-wanted-badge.is-floating {
	position: fixed;
	top: auto;
	left: auto;
	right: 12px;
	bottom: 12px;
	z-index: 99980;
	transform: none;
	font-size: 0.8rem;
	padding: 4px 7px;
}

/* Con todas las estrellas, luces de sirena */
.ht-wanted-badge.is-max {
	animation: ht-wanted-siren 1s steps(1) infinite;
}

@keyframes ht-wanted-siren {
	0% { box-shadow: 0 0 0 2px #000, 0 0 8px 2px rgba(229, 57, 53, 0.9); }
	50% { box-shadow: 0 0 0 2px #000, 0 0 8px 2px rgba(30, 136, 229, 0.9); }
}

.ht-wanted-badge.is-up {
	animation: ht-wanted-up 0.9s ease-out;
}

.ht-wanted-badge.is-down {
	animation: ht-wanted-down 0.9s ease-out;
}

.ht-wanted-badge.is-max.is-up {
	animation: ht-wanted-up 0.9s ease-out, ht-wanted-siren 1s steps(1) 0.9s infinite;
}

@keyframes ht-wanted-up {
	0% { transform: translateX(-50%) scale(1); }
	30% { transform: translateX(-50%) scale(1.35); background: #3a2f00; }
	100% { transform: translateX(-50%) scale(1); }
}

@keyframes ht-wanted-down {
	0%, 100% { transform: translateX(-50%); }
	20% { transform: translateX(calc(-50% - 4px)); background: #3a0000; }
	40% { transform: translateX(calc(-50% + 4px)); }
	60% { transform: translateX(calc(-50% - 3px)); }
	80% { transform: translateX(calc(-50% + 2px)); }
}

/* Estrellas junto al nombre en el chat */
.ht-wanted-chat {
	display: inline-block;
	margin-left: 3px;
	color: #f5b800;
	font-size: 0.7em;
	letter-spacing: -1px;
	vertical-align: 1px;
	text-shadow: 0 0 1px #000;
	white-space: nowrap;
}

/* Ventana */
.ht-wanted-modal {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	background: rgba(0, 0, 0, 0.55);
}

.ht-wanted-modal__box {
	width: 100%;
	max-width: 420px;
	max-height: calc(100vh - 32px);
	overflow: auto;
	background: #fff;
	border: 2px solid #fff;
	border-radius: 4px;
	box-shadow: 0 0 0 2px #000, 0 10px 30px rgba(0, 0, 0, 0.4);
	font-family: 'Ubuntu', sans-serif;
	color: #333;
}

.ht-wanted-modal__band {
	position: relative;
	padding: 8px 36px 8px 12px;
	background: linear-gradient(180deg, rgb(0, 104, 145) 50%, rgb(0, 88, 123) 5%);
	border-bottom: 2px solid rgb(0 2 2 / 32%);
	color: #fff;
	font-weight: bold;
	text-align: center;
	text-shadow: 1px 1px rgba(0, 0, 0, 0.6);
}

.ht-wanted-modal__close {
	position: absolute;
	right: 8px;
	top: 50%;
	transform: translateY(-50%);
	border: 0;
	background: none;
	color: #fff;
	font-size: 14px;
	cursor: pointer;
	text-shadow: 1px 1px rgba(0, 0, 0, 0.6);
}

.ht-wanted-modal__body {
	padding: 14px 16px 16px;
	font-size: 13px;
	line-height: 1.45;
}

.ht-wanted-modal__body p {
	margin: 6px 0;
}

/* Nivel: estrellas y multiplicador en el mismo recuadro oscuro */
.ht-wanted-modal__hero {
	padding: 10px 8px 8px;
	background: #111;
	border-radius: 4px;
	box-shadow: 0 0 0 2px #000;
	text-align: center;
}

.ht-wanted-modal__stars {
	display: flex;
	justify-content: center;
	gap: 6px;
	color: #555;
	font-size: 28px;
}

.ht-wanted-modal__stars .is-on {
	color: #ffd54a;
	text-shadow: 0 0 6px rgba(255, 213, 74, 0.6);
}

.ht-wanted-modal__mult {
	margin-top: 6px;
	color: #ffd54a;
	font-size: 12px;
	font-weight: bold;
	letter-spacing: 0.3px;
}

.ht-wanted-modal__progress {
	height: 8px;
	margin: 10px 0 0;
	background: #e3e3e3;
	border-radius: 4px;
	box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.15);
	overflow: hidden;
}

.ht-wanted-modal__progress span {
	display: block;
	height: 100%;
	width: 0;
	background: linear-gradient(180deg, #eeab14 50%, rgb(213, 151, 11) 5%);
	transition: width 0.4s;
}

.ht-wanted-modal__body .ht-wanted-modal__next {
	margin: 6px 0 0;
	font-weight: bold;
	text-align: center;
}

/* Cuenta atras: franja roja como los avisos de la web */
.ht-wanted-modal__body .ht-wanted-modal__decay {
	margin: 10px 0 0;
	padding: 6px 10px;
	background: #fdecea;
	border-radius: 4px;
	box-shadow: inset 0 0 0 1px #f3b8b3;
	color: #b3261e;
	font-size: 12px;
	text-align: center;
}

/* Lo de hoy y la caducidad */
.ht-wanted-modal__tiles {
	display: flex;
	gap: 8px;
	margin-top: 10px;
}

.ht-wanted-modal__tile {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 3px;
	min-width: 0;
	padding: 7px 9px;
	background: #f4f8fa;
	border-radius: 4px;
	box-shadow: inset 0 0 0 1px #dbe5ea;
}

.ht-wanted-modal__tile-label {
	color: #6b7a82;
	font-size: 11px;
}

.ht-wanted-modal__tile-value {
	display: flex;
	align-items: center;
	gap: 4px;
	color: #333;
	font-size: 14px;
}

.ht-wanted-modal__tile-value.is-small {
	font-size: 12px;
	font-weight: bold;
	color: #b26a00;
}

.ht-wanted-modal__tile-value b {
	font-size: 16px;
}

.ht-wanted-modal__tile-bar {
	height: 5px;
	background: #e1e8ec;
	border-radius: 3px;
	overflow: hidden;
}

.ht-wanted-modal__tile-bar span {
	display: block;
	height: 100%;
	width: 0;
	background: #2e9e5b;
}

.ht-wanted-modal__tile-value img,
.ht-wanted-prizes img {
	vertical-align: middle;
}

/* Al final: como funciona (plegado) y el interruptor de efectos */
.ht-wanted-modal__how {
	margin-top: 12px;
	color: #666;
	font-size: 12px;
}

.ht-wanted-modal__how summary {
	cursor: pointer;
	color: #00688f;
	font-weight: bold;
}

.ht-wanted-modal__body .ht-wanted-modal__effects {
	margin: 8px 0 0;
	text-align: center;
}

.ht-wanted-modal__effects-toggle {
	padding: 0;
	border: 0;
	background: none;
	color: #888;
	font-family: inherit;
	font-size: 11px;
	text-decoration: underline;
	cursor: pointer;
}

.ht-wanted-modal__subtitle {
	margin: 14px 0 6px;
	padding: 4px 8px;
	background: linear-gradient(180deg, #eeab14 50%, rgb(213, 151, 11) 5%);
	border-radius: 3px;
	color: #fff;
	font-weight: bold;
	font-size: 12px;
	text-align: center;
	text-shadow: 1px 1px rgba(0, 0, 0, 0.5);
}

.ht-wanted-rank__legend {
	margin: 0 0 4px;
	text-align: right;
	color: #777;
	font-size: 11px;
}

.ht-wanted-rank__legend i:last-of-type {
	margin-left: 6px;
}

/* Top 25: la lista se desplaza por dentro para no alargar la ventana */
.ht-wanted-rank {
	max-height: 260px;
	margin: 0;
	padding: 0;
	overflow-y: auto;
	list-style: none;
}

.ht-wanted-rank li {
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 3px 4px;
	border-bottom: 1px solid #eee;
}

.ht-wanted-rank li.is-me {
	background: #fff6d6;
}

.ht-wanted-rank__pos {
	width: 20px;
	font-weight: bold;
	text-align: right;
}

.ht-wanted-rank__name {
	flex: 1;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	font-weight: bold;
}

.ht-wanted-rank__score {
	color: #555;
	white-space: nowrap;
	font-size: 12px;
}

.ht-wanted-rank__you {
	text-align: center;
	font-weight: bold;
}

.ht-wanted-prizes {
	margin: 0;
	padding: 0;
	list-style: none;
}

.ht-wanted-prizes li {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 3px 4px;
	border-bottom: 1px solid #eee;
}

.ht-wanted-prizes li span:last-child {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-weight: bold;
}

/* Nombre con icono y estilo (ht_get_display_name): el icono a la altura de la linea */
.ht-wanted-rank__name img {
	max-height: 20px;
	width: auto;
	vertical-align: middle;
}

/* La web se pone tensa: barra de luces de sirena sobre la barra superior
   desde 4 estrellas (mas rapida con todas). Mitad roja y mitad azul que se
   encienden por turnos; sin captar clics, el menu se sigue leyendo. */
.ht-wanted-siren {
	display: none;
	position: absolute;
	inset: 0;
	z-index: 20;
	pointer-events: none;
}

.ht-heat-1 .ht-wanted-siren,
.ht-heat-2 .ht-wanted-siren {
	display: block;
	animation: ht-wanted-lightbar 1.6s steps(1) infinite;
}

.ht-heat-2 .ht-wanted-siren {
	animation-duration: 0.7s;
}

.ht-heat-1 #main-nav,
.ht-heat-2 #main-nav {
	animation: ht-wanted-navglow 1.6s steps(1) infinite;
}

.ht-heat-2 #main-nav {
	animation-duration: 0.7s;
}

@keyframes ht-wanted-lightbar {
	0% { background: linear-gradient(90deg, rgba(255, 40, 40, 0.42) 0%, rgba(255, 40, 40, 0.18) 35%, rgba(0, 0, 0, 0) 50%, rgba(40, 120, 255, 0.06) 100%); }
	50% { background: linear-gradient(90deg, rgba(255, 40, 40, 0.06) 0%, rgba(0, 0, 0, 0) 50%, rgba(40, 120, 255, 0.18) 65%, rgba(40, 120, 255, 0.45) 100%); }
}

@keyframes ht-wanted-navglow {
	0% { box-shadow: 0 4px 18px 2px rgba(255, 40, 40, 0.6); }
	50% { box-shadow: 0 4px 18px 2px rgba(40, 120, 255, 0.6); }
}

/* Quien pide menos movimiento: el tinte fijo, sin parpadeo ni foco. */
.ht-heat-calm .ht-wanted-siren,
.ht-heat-calm #main-nav {
	animation: none;
}

.ht-heat-calm .ht-wanted-siren {
	background: linear-gradient(90deg, rgba(255, 40, 40, 0.25), rgba(0, 0, 0, 0) 50%, rgba(40, 120, 255, 0.25));
}

/* Foco del helicoptero (con todas las estrellas) */
.ht-wanted-searchlight {
	position: fixed;
	inset: 0;
	z-index: 99970;
	pointer-events: none;
	opacity: 0;
}
