/*
 * Écran plein du déblocage d'un badge (app/features/unlock.js, playUnlock).
 * <dialog class="unlock-layer"> > .unlock-step (une par étape) ; l'étape reçoit .ready
 * quand un toucher peut passer à la suite, .leaving quand elle s'en va.
 *
 *   badge     0 → 1,6 s silhouette qui se charge et tourne, 1,68 s éclat, puis textes
 *   palier    barre de progression, cadeau qui tremble, 1,7 s il éclate sur la récompense,
 *             puis textes et boosters gagnés
 *   final     trophée qui tombe, 0,7 s éclat, feu d'artifice en boucle, bilan en cascade
 * Le JS lance confettis et vibration au moment de l'éclat (burstMs).
 */

.unlock-layer {
	position: fixed;
	inset: 0;
	width: 100%;
	max-width: none;
	height: 100%;
	max-height: none;
	margin: 0;
	padding: 0;
	border: none;
	box-sizing: border-box;
	background: radial-gradient(circle at 50% 42%, rgba(45, 30, 45, 0.98), rgba(5, 5, 10, 0.99));
	color: #fff;
	outline: none;
	overflow: hidden;
	cursor: pointer;
	opacity: 0;
	transition: opacity 0.3s ease;
	-webkit-tap-highlight-color: transparent;
}

.unlock-layer::backdrop {
	background: transparent;
}

.unlock-layer.open {
	opacity: 1;
}

/* Étape */

.unlock-step {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 1rem;
	padding: 1.5rem;
	box-sizing: border-box;
	text-align: center;
	animation: unlock-step-in 0.35s ease-out both;
}

.unlock-step.leaving {
	pointer-events: none;
	animation: unlock-step-out 0.35s ease-in both;
}

@keyframes unlock-step-in {
	from {
		opacity: 0;
		transform: translateY(1.5rem);
	}

	to {
		opacity: 1;
		transform: none;
	}
}

@keyframes unlock-step-out {
	to {
		opacity: 0;
		transform: translateY(-1.5rem) scale(0.96);
	}
}

/* Textes */

/* Centrés, titres compris (css/main.css aligne les h1-h6 à gauche) */
.unlock-kicker,
.unlock-name,
.unlock-description,
.unlock-hint {
	position: relative;
	z-index: 2;
	width: auto;
	max-width: 32rem;
	margin: 0;
	text-align: center;
	text-wrap: balance;
}

.unlock-kicker {
	color: var(--ColorPrimary);
	font-weight: 800;
	letter-spacing: 0.15em;
	text-transform: uppercase;
}

.unlock-name {
	font-size: 2rem;
	line-height: 1.15;
}

.unlock-description {
	opacity: 0.85;
}

.unlock-hint {
	margin-top: 1rem;
	font-size: 0.85rem;
	opacity: 0;
	transition: opacity 0.4s ease;
}

.unlock-step.ready .unlock-hint {
	opacity: 0.6;
	animation: unlock-hint 2s ease-in-out 0.4s infinite;
}

/* Entrée des textes après l'éclat, par étape */
.unlock-step-badge .unlock-kicker { animation: unlock-text 0.5s ease-out 1.75s both; }
.unlock-step-badge .unlock-name { animation: unlock-text 0.5s ease-out 1.9s both; }
.unlock-step-badge .unlock-description { animation: unlock-text 0.5s ease-out 2.05s both; }

.unlock-step-reward .unlock-kicker { animation: unlock-text 0.4s ease-out 0.1s both; }
.unlock-step-reward .unlock-name { animation: unlock-text 0.5s ease-out 1.85s both; }
.unlock-step-reward .unlock-description { animation: unlock-text 0.5s ease-out 2s both; }

.unlock-step-completed .unlock-kicker { animation: unlock-text 0.4s ease-out 0.75s both; }
.unlock-step-completed .unlock-name { animation: unlock-text 0.5s ease-out 0.9s both; }
.unlock-step-completed .unlock-description { animation: unlock-text 0.5s ease-out 1.05s both; }

@keyframes unlock-text {
	from {
		opacity: 0;
		transform: translateY(0.75rem);
	}

	to {
		opacity: 1;
		transform: none;
	}
}

@keyframes unlock-hint {
	0%,
	100% {
		opacity: 0.6;
	}

	50% {
		opacity: 0.25;
	}
}

/* Boutons : visibles une fois l'étape prête */
.unlock-actions {
	position: relative;
	z-index: 2;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.75rem;
	width: 100%;
	max-width: 24rem;
	margin-top: 0.5rem;
	opacity: 0;
	transform: translateY(0.75rem);
	pointer-events: none;
	transition: opacity 0.4s ease, transform 0.4s ease;
}

.unlock-step.ready .unlock-actions {
	opacity: 1;
	transform: none;
	pointer-events: auto;
}

.unlock-actions .btn {
	flex: 1 1 10rem;
	width: auto;
	justify-content: center;
}

/* css/main.css masque le texte des boutons sous 650px : ici il reste visible */
.unlock-actions .btn span {
	display: inline;
	width: auto;
}

/* Effets d'éclat, centrés sur leur parent (badge, cadeau, trophée), derrière lui */

.unlock-fx {
	position: absolute;
	top: 50%;
	left: 50%;
	z-index: 0;
	width: 0;
	height: 0;
	pointer-events: none;
}

.unlock-fx > * {
	position: absolute;
	top: 50%;
	left: 50%;
	border-radius: 50%;
}

/* Rayons : halo qui se charge, éclate, puis tourne lentement jusqu'à la fin de l'étape */
.unlock-rays {
	--size: max(40rem, 130vmax);
	width: var(--size);
	height: var(--size);
	margin: calc(var(--size) / -2) 0 0 calc(var(--size) / -2);
	opacity: 0;
	-webkit-mask-image: radial-gradient(circle, #000 10%, transparent 55%);
	mask-image: radial-gradient(circle, #000 10%, transparent 55%);
	animation: unlock-rays 2.4s ease-out both;
}

.unlock-rays::before {
	content: '';
	position: absolute;
	inset: 0;
	border-radius: 50%;
	/* Couleur pleine et opacité réduite : color-mix() n'existe pas avant iOS 16.2 */
	background: repeating-conic-gradient(from 0deg, var(--ColorPrimary) 0deg 5deg, transparent 5deg 18deg);
	opacity: 0.55;
	animation: unlock-spin 30s linear infinite;
}

@keyframes unlock-rays {
	0% {
		opacity: 0;
		transform: scale(0.4);
	}

	68% {
		opacity: 0.3;
		transform: scale(0.75);
	}

	72% {
		opacity: 1;
		transform: scale(1.1);
	}

	100% {
		opacity: 0.55;
		transform: scale(1);
	}
}

@keyframes unlock-spin {
	to {
		transform: rotate(360deg);
	}
}

.unlock-flash {
	width: 28rem;
	height: 28rem;
	margin: -14rem 0 0 -14rem;
	background: radial-gradient(circle, #fff 0%, rgba(255, 255, 255, 0.6) 30%, transparent 65%);
	opacity: 0;
	animation: unlock-flash 0.6s ease-out 1.62s both;
}

@keyframes unlock-flash {
	0% {
		opacity: 0;
		transform: scale(0.4);
	}

	25% {
		opacity: 1;
	}

	100% {
		opacity: 0;
		transform: scale(1.8);
	}
}

.unlock-shockwave {
	width: 18rem;
	height: 18rem;
	margin: -9rem 0 0 -9rem;
	border: 0.4rem solid var(--ColorPrimary);
	box-sizing: border-box;
	opacity: 0;
	animation: unlock-shockwave 0.9s cubic-bezier(0.2, 0.7, 0.3, 1) 1.68s both;
}

/* 0 % invisible : avec fill both, cette image s'affiche pendant le délai */
@keyframes unlock-shockwave {
	0% {
		opacity: 0;
		transform: scale(0.4);
	}

	1% {
		opacity: 1;
		transform: scale(0.4);
	}

	100% {
		opacity: 0;
		transform: scale(3);
		border-width: 0.05rem;
	}
}

/* Étincelles : 12 traits projetés en étoile (angle et longueur par :nth-child) */
.unlock-sparks,
.unlock-firework {
	width: 0;
	height: 0;
}

.unlock-sparks > span,
.unlock-firework > span {
	--angle: 0deg;
	--distance: 13rem;
	--start: 6rem;
	position: absolute;
	top: -0.75rem;
	left: -0.2rem;
	width: 0.4rem;
	height: 1.5rem;
	border-radius: 99px;
	background: linear-gradient(var(--ColorPrimary), #fff);
	opacity: 0;
	animation: unlock-spark 0.9s cubic-bezier(0.1, 0.8, 0.3, 1) 1.68s both;
}

:is(.unlock-sparks, .unlock-firework) > span:nth-child(1) { --angle: 0deg; }
:is(.unlock-sparks, .unlock-firework) > span:nth-child(2) { --angle: 30deg; --distance: 11rem; }
:is(.unlock-sparks, .unlock-firework) > span:nth-child(3) { --angle: 60deg; }
:is(.unlock-sparks, .unlock-firework) > span:nth-child(4) { --angle: 90deg; --distance: 12rem; }
:is(.unlock-sparks, .unlock-firework) > span:nth-child(5) { --angle: 120deg; }
:is(.unlock-sparks, .unlock-firework) > span:nth-child(6) { --angle: 150deg; --distance: 10.5rem; }
:is(.unlock-sparks, .unlock-firework) > span:nth-child(7) { --angle: 180deg; }
:is(.unlock-sparks, .unlock-firework) > span:nth-child(8) { --angle: 210deg; --distance: 12rem; }
:is(.unlock-sparks, .unlock-firework) > span:nth-child(9) { --angle: 240deg; }
:is(.unlock-sparks, .unlock-firework) > span:nth-child(10) { --angle: 270deg; --distance: 11rem; }
:is(.unlock-sparks, .unlock-firework) > span:nth-child(11) { --angle: 300deg; }
:is(.unlock-sparks, .unlock-firework) > span:nth-child(12) { --angle: 330deg; --distance: 10.5rem; }

@keyframes unlock-spark {
	0% {
		opacity: 0;
		transform: rotate(var(--angle)) translateY(calc(var(--start) * -1)) scaleY(1.4);
	}

	1% {
		opacity: 1;
		transform: rotate(var(--angle)) translateY(calc(var(--start) * -1)) scaleY(1.4);
	}

	100% {
		opacity: 0;
		transform: rotate(var(--angle)) translateY(calc(var(--distance) * -1)) scaleY(0.3);
	}
}

/* Étape 1 : badge */

.unlock-badge {
	position: relative;
	isolation: isolate;
	width: min(18rem, 70vw);
	aspect-ratio: 1;
	margin: 1.5rem 0;
	cursor: grab;
}

.unlock-badge-logo {
	position: relative;
	z-index: 1;
	width: 100%;
	height: 100%;
	transform-style: preserve-3d;
	-webkit-transform-style: preserve-3d;
	will-change: transform;
}

.unlock-badge-logo > img,
.unlock-badge-logo > video {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
	/* Même contexte 3D que le conteneur sur Safari/iOS : sinon la <video> reste figée dans sa
	   propre couche pendant que le conteneur tourne */
	transform: translate3d(0, 0, 0);
	-webkit-transform: translate3d(0, 0, 0);
	pointer-events: none;
}

/* Deux copies du badge superposées : la silhouette blanche (filtre fixe) puis le badge en
   couleurs qui apparaît à l'éclat. Seules l'opacité et la rotation sont animées. Safari ne
   dessine pas le filtre d'un élément dont l'opacité est animée (calque calculé par la carte
   graphique) : l'opacité est sur le <span>, le filtre sur l'image qu'il contient */
.unlock-badge-logo > .unlock-badge-silhouette,
.unlock-badge-logo > .unlock-badge-color {
	position: absolute;
	inset: 0;
}

.unlock-badge-logo > .unlock-badge-silhouette {
	display: block;
	opacity: 0;
}

.unlock-badge-silhouette > :is(img, video) {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
	filter: brightness(0) invert(1) drop-shadow(0 0 1rem var(--ColorPrimary));
	pointer-events: none;
}

/* Zoom et opacité d'arrivée sur un conteneur à part (.unlock-badge-spin) ; la rotation
   (charge puis au doigt) est posée par le JS sur .unlock-badge-logo */
.unlock-badge-spin {
	position: relative;
	z-index: 1;
	width: 100%;
	height: 100%;
}

.unlock-step-badge:not(.ready) .unlock-badge-spin {
	animation: unlock-badge-spin 2.4s both;
}

/* Safari ignore les filtres dans une scène 3D (preserve-3d et translate3d, utiles à la
   rotation au doigt d'un badge vidéo) : le temps de l'arrivée, jusqu'à ce que la silhouette
   filtrée ait disparu (.spun, app/features/unlock.js), le badge est rendu à plat */
.unlock-step-badge:not(.spun) .unlock-badge-logo {
	transform-style: flat;
	-webkit-transform-style: flat;
}

.unlock-step-badge:not(.spun) .unlock-badge-logo > :is(img, video) {
	transform: none;
	-webkit-transform: none;
}

.unlock-step-badge:not(.ready) .unlock-badge-silhouette {
	animation: unlock-badge-silhouette 2.4s both;
}

.unlock-step-badge:not(.ready) .unlock-badge-color {
	animation: unlock-badge-color 2.4s both;
}

/* Arrivée et rebond de l'éclat. Les tours de la charge sont pilotés en JS (chargeSpin,
   app/features/unlock.js) : Safari ne montre pas une rotation animée en CSS */
@keyframes unlock-badge-spin {
	0% {
		scale: 0.4;
		opacity: 0;
		animation-timing-function: cubic-bezier(0.2, 0.8, 0.3, 1.2);
	}

	15% {
		scale: 1;
		opacity: 1;
	}

	68% {
		scale: 0.92;
		animation-timing-function: cubic-bezier(0.2, 0.9, 0.3, 1);
	}

	72% {
		scale: 1.3;
		animation-timing-function: cubic-bezier(0.3, 0, 0.3, 1);
	}

	84% {
		scale: 0.94;
	}

	100% {
		scale: 1;
		opacity: 1;
	}
}

@keyframes unlock-badge-silhouette {
	0%,
	68% {
		opacity: 0.85;
	}

	76%,
	100% {
		opacity: 0;
	}
}

@keyframes unlock-badge-color {
	0%,
	68% {
		opacity: 0;
	}

	72%,
	100% {
		opacity: 1;
	}
}

/* Étape 2 : palier */

.unlock-progress {
	position: relative;
	z-index: 2;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.4rem;
	width: min(20rem, 80vw);
	animation: unlock-text 0.4s ease-out 0.2s both;
}

.unlock-progress-track {
	width: 100%;
	height: 0.6rem;
	border-radius: 99px;
	background: rgba(255, 255, 255, 0.12);
	overflow: hidden;
}

/* --from et --to (0 à 1) posés par le JS : de l'ancien palier au nouveau */
.unlock-progress-bar {
	display: block;
	width: 100%;
	height: 100%;
	border-radius: inherit;
	background: linear-gradient(90deg, var(--ColorPrimary), #fff);
	transform-origin: left;
	animation: unlock-progress 0.9s cubic-bezier(0.3, 0, 0.2, 1) 0.4s both;
}

@keyframes unlock-progress {
	from {
		transform: scaleX(var(--from, 0));
	}

	to {
		transform: scaleX(var(--to, 1));
	}
}

.unlock-progress-label {
	width: auto;
	margin: 0;
	font-size: 0.85rem;
	font-weight: 700;
	opacity: 0.8;
}

.unlock-gift {
	position: relative;
	isolation: isolate;
	display: flex;
	align-items: center;
	justify-content: center;
	width: min(14rem, 60vw);
	aspect-ratio: 1;
	margin: 1rem 0;
}

/* Cadeau : arrive, tremble de plus en plus fort, puis éclate */
.unlock-gift-box {
	position: absolute;
	z-index: 1;
	color: var(--ColorPrimary);
	font-size: 7rem;
	/* text-shadow (icône de police) : Safari ne dessine pas filter sur un élément animé */
	text-shadow: 0 0 1.5rem var(--ColorPrimary);
	animation: unlock-gift-box 1.8s both;
}

@keyframes unlock-gift-box {
	0% {
		opacity: 0;
		transform: scale(0.3);
	}

	20% {
		opacity: 1;
		transform: scale(1);
	}

	45% { transform: rotate(0); }
	52% { transform: rotate(-8deg); }
	59% { transform: rotate(8deg); }
	66% { transform: rotate(-12deg) scale(1.05); }
	73% { transform: rotate(12deg) scale(1.08); }
	80% { transform: rotate(-16deg) scale(1.12); }
	87% { transform: rotate(16deg) scale(1.16); }

	94% {
		opacity: 1;
		transform: scale(1.35);
	}

	100% {
		opacity: 0;
		transform: scale(1.8);
	}
}

/* Récompense : jaillit du cadeau */
.unlock-reward-image {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	border: 0.5rem solid var(--ColorPrimary);
	border-radius: 50%;
	box-sizing: border-box;
	background: var(--ColorContainer, #222);
	overflow: hidden;
	box-shadow: 0 0 2rem var(--ColorPrimary);
	animation: unlock-pop 0.7s cubic-bezier(0.2, 0.9, 0.3, 1.3) 1.7s both;
}

.unlock-reward-image > img,
.unlock-reward-image > video {
	width: 100%;
	height: 100%;
	object-fit: cover;
	pointer-events: none;
}

.unlock-reward-image > i {
	color: var(--ColorPrimary);
	font-size: 5rem;
}

@keyframes unlock-pop {
	0% {
		opacity: 0;
		transform: scale(0.2);
	}

	60% {
		opacity: 1;
		transform: scale(1.12);
	}

	100% {
		opacity: 1;
		transform: scale(1);
	}
}

/* Boosters gagnés */
.unlock-boosters {
	position: relative;
	z-index: 2;
	display: flex;
	align-items: center;
	gap: 0.9rem;
	margin-top: 0.25rem;
	padding: 0.6rem 1.1rem;
	border-radius: 99px;
	background: rgba(255, 255, 255, 0.08);
	animation: unlock-text 0.5s ease-out 2.25s both;
}

.unlock-boosters strong {
	width: auto;
	font-size: 1.1rem;
}

.unlock-boosters-packs {
	position: relative;
	display: flex;
	width: auto;
}

.unlock-boosters-pack {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 1.9rem;
	height: 2.6rem;
	border-radius: 0.3rem;
	background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.25) 0 3px, transparent 3px 6px) top / 100% 18% no-repeat, var(--ColorPrimary);
	color: #1b1b1b;
	font-size: 0.85rem;
	box-shadow: 0 3px 8px rgba(0, 0, 0, 0.4);
	animation: unlock-pack 0.5s cubic-bezier(0.2, 0.9, 0.3, 1.3) both;
}

.unlock-boosters-pack + .unlock-boosters-pack {
	margin-left: -0.9rem;
}

.unlock-boosters-pack:nth-child(1) { animation-delay: 2.35s; }
.unlock-boosters-pack:nth-child(2) { animation-delay: 2.45s; }
.unlock-boosters-pack:nth-child(3) { animation-delay: 2.55s; }

@keyframes unlock-pack {
	from {
		opacity: 0;
		transform: translateX(-1.5rem) rotate(-20deg);
	}

	to {
		opacity: 1;
		transform: none;
	}
}

/* Étape 3 : final */

.unlock-step-completed .unlock-fx > * {
	animation-delay: 0.7s;
}

.unlock-step-completed .unlock-rays {
	animation-delay: 0s;
	animation-duration: 1s;
}

.unlock-trophy {
	position: relative;
	isolation: isolate;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 10rem;
	aspect-ratio: 1;
	margin: 0.5rem 0;
}

.unlock-trophy-icon {
	position: relative;
	z-index: 1;
	color: #ffc93c;
	font-size: 7rem;
	text-shadow: 0 0 2rem rgba(255, 201, 60, 0.6);
	animation: unlock-trophy 0.9s cubic-bezier(0.3, 0, 0.3, 1) both;
}

@keyframes unlock-trophy {
	0% {
		opacity: 0;
		transform: translateY(-60vh) rotate(-20deg);
	}

	60% {
		opacity: 1;
		transform: translateY(0) rotate(0) scale(1.15, 0.85);
	}

	80% {
		transform: translateY(-0.75rem) scale(0.95, 1.05);
	}

	100% {
		opacity: 1;
		transform: none;
	}
}

/* Feu d'artifice : trois gerbes qui éclatent en boucle autour du trophée */
.unlock-fireworks {
	position: absolute;
	inset: 0;
	z-index: 0;
	pointer-events: none;
}

.unlock-firework {
	position: absolute;
}

.unlock-firework:nth-child(1) { top: 22%; left: 20%; }
.unlock-firework:nth-child(2) { top: 15%; left: 78%; }
.unlock-firework:nth-child(3) { top: 40%; left: 55%; }

.unlock-firework > span {
	--distance: 5.5rem;
	--start: 0.5rem;
	width: 0.25rem;
	height: 0.9rem;
	animation: unlock-spark-loop 2.4s cubic-bezier(0.1, 0.8, 0.3, 1) infinite both;
}

.unlock-firework:nth-child(1) > span { animation-delay: 0.9s; background: linear-gradient(#ffc93c, #fff); }
.unlock-firework:nth-child(2) > span { animation-delay: 1.5s; background: linear-gradient(var(--ColorPrimary), #fff); }
.unlock-firework:nth-child(3) > span { animation-delay: 2.1s; background: linear-gradient(#6fd3ff, #fff); }

@keyframes unlock-spark-loop {
	0% {
		opacity: 0;
		transform: rotate(var(--angle)) translateY(calc(var(--start) * -1)) scaleY(1.4);
	}

	1% {
		opacity: 1;
		transform: rotate(var(--angle)) translateY(calc(var(--start) * -1)) scaleY(1.4);
	}

	40% {
		opacity: 0;
		transform: rotate(var(--angle)) translateY(calc(var(--distance) * -1)) scaleY(0.3);
	}

	100% {
		opacity: 0;
		transform: rotate(var(--angle)) translateY(calc(var(--distance) * -1)) scaleY(0.3);
	}
}

/* Bilan : quatre tuiles en cascade */
.unlock-stats {
	position: relative;
	z-index: 2;
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 0.6rem;
	width: min(24rem, 100%);
	margin: 0.5rem 0 0;
	padding: 0;
	list-style: none;
}

.unlock-stats li {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 0.15rem;
	padding: 0.8rem 0.5rem;
	border-radius: 0.9rem;
	background: rgba(255, 255, 255, 0.07);
	animation: unlock-pop 0.5s cubic-bezier(0.2, 0.9, 0.3, 1.3) both;
}

.unlock-stats li:nth-child(1) { animation-delay: 1.3s; }
.unlock-stats li:nth-child(2) { animation-delay: 1.45s; }
.unlock-stats li:nth-child(3) { animation-delay: 1.6s; }
.unlock-stats li:nth-child(4) { animation-delay: 1.75s; }

.unlock-stats strong {
	width: auto;
	font-size: 1.35rem;
	font-weight: 800;
}

.unlock-stats span {
	width: auto;
	font-size: 0.8rem;
	opacity: 0.7;
}

/* Petits écrans en hauteur : le final doit tenir sans défiler */
@media (max-height: 700px) {
	.unlock-step {
		gap: 0.6rem;
	}

	.unlock-trophy {
		width: 7rem;
	}

	.unlock-trophy-icon {
		font-size: 5rem;
	}

	.unlock-name {
		font-size: 1.6rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.unlock-step-badge:not(.ready) .unlock-badge-spin {
		animation: unlock-fade 0.6s ease-out both;
	}

	.unlock-step-badge:not(.ready) :is(.unlock-badge-silhouette, .unlock-badge-color) {
		animation: none;
	}

	.unlock-sparks,
	.unlock-shockwave,
	.unlock-flash,
	.unlock-fireworks,
	.unlock-gift-box {
		display: none;
	}

	.unlock-step,
	.unlock-step.leaving,
	.unlock-rays,
	.unlock-rays::before,
	.unlock-step :is(.unlock-kicker, .unlock-name, .unlock-description, .unlock-progress, .unlock-boosters, .unlock-boosters-pack, .unlock-reward-image, .unlock-trophy-icon, .unlock-stats li),
	.unlock-step.ready .unlock-hint {
		animation: none;
	}

	.unlock-progress-bar {
		animation: none;
		transform: scaleX(var(--to, 1));
	}

	.unlock-rays {
		opacity: 0.4;
	}
}

@keyframes unlock-fade {
	from {
		opacity: 0;
	}

	to {
		opacity: 1;
	}
}
