/* WDigitalShop — ventana de bienvenida con cupón (diseños: regalo, neón, ticket, galaxia, Free Fire). */

.wdsw {
	--wdsw-accent: #6438ee;
	--wdsw-accent-2: #a996f7;
	--wdsw-bg: #120f26;
	--wdsw-bg-2: #1c1740;
	--wdsw-text: #f5f5f6;
	--wdsw-muted: #b6b3cc;
	--wdsw-ease: cubic-bezier(0.16, 1, 0.3, 1);
	--wdsw-head: "Estedad", "Inter", system-ui, sans-serif;
	--wdsw-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	place-items: center;
	padding: 16px;
	font-family: var(--wdsw-body);
	color: var(--wdsw-text);
	-webkit-font-smoothing: antialiased;
}

.wdsw *,
.wdsw *::before,
.wdsw *::after {
	box-sizing: border-box;
}

html.wdsw-lock {
	overflow: hidden;
}

.wdsw__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(6, 5, 18, 0.72);
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
	opacity: 0;
	transition: opacity 0.35s ease;
}

.wdsw__card {
	position: relative;
	width: min(460px, 100%);
	max-height: calc(100dvh - 32px);
	overflow: hidden auto;
	overscroll-behavior: contain;
	border-radius: 22px;
	background: radial-gradient(120% 80% at 50% 0%, var(--wdsw-bg-2), var(--wdsw-bg) 70%);
	border: 1px solid rgba(169, 150, 247, 0.22);
	box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.03) inset;
	opacity: 0;
	transform: translateY(24px) scale(0.94);
	transition: opacity 0.45s var(--wdsw-ease), transform 0.6s var(--wdsw-ease);
	scrollbar-width: thin;
}

.wdsw.is-open .wdsw__backdrop {
	opacity: 1;
}

.wdsw.is-open .wdsw__card {
	opacity: 1;
	transform: none;
}

.wdsw.is-leaving .wdsw__backdrop {
	opacity: 0;
}

.wdsw.is-leaving .wdsw__card {
	opacity: 0;
	transform: translateY(18px) scale(0.96);
	transition-duration: 0.3s;
}

/* Vista previa del panel: dentro de la página, sin fondo oscuro. */
.wdsw--inline {
	position: relative;
	inset: auto;
	z-index: auto;
	padding: 0;
}

.wdsw--inline .wdsw__backdrop {
	display: none;
}

.wdsw--inline .wdsw__card {
	max-height: none;
}

.wdsw__fx {
	position: absolute;
	inset: 0;
	pointer-events: none;
	overflow: hidden;
	border-radius: inherit;
}

.wdsw__close {
	position: absolute;
	top: 12px;
	right: 12px;
	z-index: 3;
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 1px solid rgba(255, 255, 255, 0.14);
	border-radius: 50%;
	background: rgba(10, 8, 24, 0.55);
	color: #fff;
	cursor: pointer;
	transition: background 0.2s, transform 0.2s;
}

.wdsw__close:hover {
	background: rgba(255, 255, 255, 0.14);
	transform: rotate(90deg);
}

.wdsw__card:focus {
	outline: none;
}

.wdsw__close:focus-visible,
.wdsw__copy:focus-visible,
.wdsw__cta:focus-visible,
.wdsw__have:focus-visible,
.wdsw__later:focus-visible {
	outline: 3px solid #ffd166;
	outline-offset: 3px;
}

.wdsw__body {
	position: relative;
	z-index: 2;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	padding: 34px 28px 24px;
	text-align: center;
}

.wdsw__logos {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 26px;
	animation: wdsw-rise 0.6s var(--wdsw-ease) both 0.1s;
}

.wdsw__logo {
	width: auto;
	height: 24px;
	max-width: 170px;
	object-fit: contain;
}

.wdsw__kicker {
	margin: 2px 0 0;
	padding: 5px 12px;
	border-radius: 999px;
	background: rgba(169, 150, 247, 0.14);
	border: 1px solid rgba(169, 150, 247, 0.3);
	color: #d9d0ff;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	animation: wdsw-rise 0.6s var(--wdsw-ease) both 0.18s;
}

.wdsw__title {
	margin: 0;
	font-family: var(--wdsw-head);
	font-size: clamp(22px, 5.2vw, 28px);
	font-weight: 800;
	line-height: 1.15;
	letter-spacing: -0.01em;
	color: #fff;
	text-wrap: balance;
	animation: wdsw-rise 0.6s var(--wdsw-ease) both 0.24s;
}

.wdsw__deal {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	margin: 2px 0;
	animation: wdsw-pop 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) both 0.38s;
}

.wdsw__pct {
	font-family: var(--wdsw-head);
	font-size: clamp(56px, 16vw, 78px);
	font-weight: 900;
	line-height: 0.9;
	letter-spacing: -0.04em;
	background: linear-gradient(180deg, #ffffff 10%, var(--wdsw-accent-2) 100%);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	filter: drop-shadow(0 6px 22px rgba(100, 56, 238, 0.55));
}

.wdsw__off {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 2px;
	font-size: 13px;
	font-weight: 800;
	letter-spacing: 0.1em;
	text-align: left;
	color: #e8e3ff;
}

.wdsw__off strong {
	font-size: 18px;
	letter-spacing: 0.06em;
}

.wdsw__text {
	max-width: 36ch;
	margin: 0;
	color: var(--wdsw-muted);
	font-size: 15px;
	line-height: 1.5;
	animation: wdsw-rise 0.6s var(--wdsw-ease) both 0.46s;
}

.wdsw__code {
	display: grid;
	grid-template-columns: 1fr auto;
	grid-template-areas: "label btn" "value btn";
	align-items: center;
	column-gap: 12px;
	width: 100%;
	padding: 10px 10px 10px 16px;
	border: 2px dashed rgba(169, 150, 247, 0.55);
	border-radius: 14px;
	background: rgba(255, 255, 255, 0.04);
	text-align: left;
	animation: wdsw-rise 0.6s var(--wdsw-ease) both 0.54s;
}

.wdsw__code-label {
	grid-area: label;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--wdsw-muted);
}

.wdsw__code-value {
	grid-area: value;
	overflow-wrap: anywhere;
	font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
	font-size: 20px;
	font-weight: 800;
	letter-spacing: 0.06em;
	color: #fff;
}

.wdsw__copy {
	grid-area: btn;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 44px;
	padding: 0 14px;
	border: 0;
	border-radius: 10px;
	background: rgba(169, 150, 247, 0.18);
	color: #fff;
	font: 700 14px/1 var(--wdsw-body);
	cursor: pointer;
	transition: background 0.2s, transform 0.15s;
}

.wdsw__copy:hover {
	background: rgba(169, 150, 247, 0.3);
}

.wdsw__copy:active {
	transform: scale(0.96);
}

.wdsw__copy.is-done {
	background: #1f9d63;
}

.wdsw__actions {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 10px;
	width: 100%;
	animation: wdsw-rise 0.6s var(--wdsw-ease) both 0.62s;
}

.wdsw__cta {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 54px;
	padding: 0 22px;
	overflow: hidden;
	border-radius: 14px;
	background: linear-gradient(135deg, var(--wdsw-accent), #8b5cff);
	box-shadow: 0 12px 30px rgba(100, 56, 238, 0.45);
	color: #fff;
	font: 800 16px/1.1 var(--wdsw-body);
	text-decoration: none;
	transition: transform 0.2s, box-shadow 0.2s;
}

.wdsw__cta::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.35) 50%, transparent 70%);
	transform: translateX(-120%);
	animation: wdsw-shine 3.2s ease-in-out infinite 1.4s;
}

.wdsw__cta i {
	font-style: normal;
	transition: transform 0.2s;
}

.wdsw__cta:hover {
	transform: translateY(-2px);
	box-shadow: 0 16px 36px rgba(100, 56, 238, 0.55);
	color: #fff;
}

.wdsw__cta:hover i {
	transform: translateX(4px);
}

.wdsw__sub {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.wdsw__have,
.wdsw__later {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 0 6px;
	border: 0;
	background: none;
	color: #d9d0ff;
	font: 600 14px/1 var(--wdsw-body);
	text-decoration: underline;
	text-underline-offset: 3px;
	cursor: pointer;
}

.wdsw__later {
	color: var(--wdsw-muted);
	text-decoration: none;
}

.wdsw__live {
	margin: 0;
	min-height: 0;
	color: #7ee2a8;
	font-size: 13px;
	font-weight: 700;
}

.wdsw__live:empty {
	display: none;
}

.wdsw__terms {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 6px;
	margin: 2px 0 0;
	padding: 0;
	list-style: none;
}

.wdsw__terms li {
	padding: 4px 10px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.06);
	color: var(--wdsw-muted);
	font-size: 12px;
	line-height: 1.4;
}

.wdsw__auto {
	margin: 0;
	color: #8f8ba8;
	font-size: 12px;
	line-height: 1.45;
}

/* ---------------- Regalo ---------------- */

.wdsw--regalo .wdsw__body {
	padding-top: 108px;
}

.wdsw-gift {
	position: absolute;
	top: 12px;
	left: 50%;
	width: 112px;
	transform: translateX(-50%);
	animation: wdsw-gift-in 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) both 0.1s;
}

.wdsw-gift svg {
	display: block;
	width: 100%;
	overflow: visible;
}

.wdsw-gift__lid {
	transform-origin: 20% 54px;
	animation: wdsw-lid 4.5s var(--wdsw-ease) infinite 0.7s;
}

.wdsw-gift::after {
	content: "";
	position: absolute;
	left: 50%;
	top: 30%;
	width: 160px;
	height: 160px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(255, 209, 102, 0.55), transparent 65%);
	transform: translate(-50%, -50%) scale(0);
	animation: wdsw-burst 4.5s ease-out infinite 0.7s;
	z-index: -1;
}

.wdsw-confetti {
	position: absolute;
	top: 60px;
	left: calc(var(--x) * 1%);
	width: 7px;
	height: 12px;
	border-radius: 2px;
	background: hsl(calc(var(--i) * 40), 90%, 65%);
	opacity: 0;
	transform: rotate(var(--r));
	animation: wdsw-confetti 4.5s ease-in infinite;
	animation-delay: calc(0.75s + var(--i) * 0.03s);
}

/* ---------------- Neón ---------------- */

.wdsw--neon .wdsw__card {
	background: #07061a;
	border: 0;
	isolation: isolate;
}

.wdsw-neon__ring {
	position: absolute;
	inset: -50%;
	background: conic-gradient(from 0deg, transparent 0 55%, #00e5ff 65%, var(--wdsw-accent) 75%, #ff3ea5 85%, transparent 95%);
	animation: wdsw-spin 4s linear infinite;
}

.wdsw-neon__ring::after {
	content: "";
	position: absolute;
	inset: calc(50% + 0px);
}

.wdsw--neon .wdsw__fx::after {
	content: "";
	position: absolute;
	inset: 2px;
	border-radius: 20px;
	background: radial-gradient(120% 80% at 50% 0%, #17123a, #07061a 70%);
}

.wdsw-neon__grid {
	position: absolute;
	inset: 2px;
	z-index: 1;
	border-radius: 20px;
	background-image: linear-gradient(rgba(0, 229, 255, 0.08) 1px, transparent 1px), linear-gradient(90deg, rgba(0, 229, 255, 0.08) 1px, transparent 1px);
	background-size: 28px 28px;
	-webkit-mask-image: linear-gradient(to top, #000, transparent 60%);
	mask-image: linear-gradient(to top, #000, transparent 60%);
	animation: wdsw-grid 3s linear infinite;
}

.wdsw-neon__beam {
	position: absolute;
	z-index: 1;
	left: -40%;
	top: calc(18% + var(--i) * 20%);
	width: 40%;
	height: 2px;
	background: linear-gradient(90deg, transparent, #00e5ff, transparent);
	box-shadow: 0 0 12px #00e5ff;
	animation: wdsw-beam 3.4s ease-in-out infinite;
	animation-delay: calc(var(--i) * 0.8s);
}

.wdsw--neon .wdsw__title {
	text-shadow: 0 0 10px rgba(0, 229, 255, 0.65), 0 0 28px rgba(100, 56, 238, 0.8);
	animation: wdsw-rise 0.6s var(--wdsw-ease) both 0.24s, wdsw-flicker 5s linear infinite 1.2s;
}

.wdsw--neon .wdsw__pct {
	background: linear-gradient(180deg, #ffffff, #00e5ff);
	-webkit-background-clip: text;
	background-clip: text;
	filter: drop-shadow(0 0 16px rgba(0, 229, 255, 0.7));
}

.wdsw--neon .wdsw__code {
	border-color: rgba(0, 229, 255, 0.6);
	box-shadow: 0 0 18px rgba(0, 229, 255, 0.15) inset;
}

.wdsw--neon .wdsw__cta {
	background: linear-gradient(135deg, #00b8d9, var(--wdsw-accent) 60%, #ff3ea5);
	box-shadow: 0 0 24px rgba(0, 229, 255, 0.45);
}

/* ---------------- Ticket ---------------- */

.wdsw--ticket .wdsw__card {
	background: linear-gradient(160deg, #2a1a7a, #120f26 65%);
	-webkit-mask: radial-gradient(circle 16px at 0 58%, transparent 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle 16px at 100% 58%, transparent 98%, #000) right / 51% 100% no-repeat;
	mask: radial-gradient(circle 16px at 0 58%, transparent 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle 16px at 100% 58%, transparent 98%, #000) right / 51% 100% no-repeat;
	border: 0;
	transform: translateY(-40px) rotate(-6deg) scale(0.9);
}

.wdsw--ticket.is-open .wdsw__card {
	animation: wdsw-ticket 0.9s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.wdsw--ticket .wdsw__code {
	border-style: dashed;
	border-width: 2px 0;
	border-radius: 0;
	background: transparent;
}

.wdsw--ticket .wdsw__pct {
	animation: wdsw-stamp 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) both 0.5s;
}

.wdsw-ticket__shine {
	position: absolute;
	inset: 0;
	background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, 0.12) 50%, transparent 65%);
	background-size: 250% 100%;
	animation: wdsw-sweep 3.6s ease-in-out infinite 1s;
}

/* ---------------- Galaxia ---------------- */

.wdsw--galaxia .wdsw__card {
	background: radial-gradient(80% 60% at 80% 0%, rgba(118, 81, 241, 0.45), transparent 60%), radial-gradient(70% 60% at 0% 100%, rgba(255, 62, 165, 0.22), transparent 60%), #0a0820;
	backdrop-filter: blur(4px);
}

.wdsw-star {
	position: absolute;
	left: var(--x);
	top: var(--y);
	width: var(--s);
	height: var(--s);
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 0 6px #fff;
	animation: wdsw-twinkle 2.8s ease-in-out infinite;
	animation-delay: var(--d);
}

.wdsw-orbit {
	position: absolute;
	top: -90px;
	right: -90px;
	width: 260px;
	height: 260px;
	border: 1px solid rgba(169, 150, 247, 0.25);
	border-radius: 50%;
	animation: wdsw-spin 14s linear infinite;
}

.wdsw-orbit i {
	position: absolute;
	top: 50%;
	left: -6px;
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: #c9bdfb;
	box-shadow: 0 0 18px #a996f7;
}

.wdsw-orbit i + i {
	top: -5px;
	left: 50%;
	width: 8px;
	height: 8px;
	background: #ff7ac6;
	box-shadow: 0 0 14px #ff3ea5;
}

/* ---------------- Free Fire ---------------- */

.wdsw--freefire {
	--wdsw-accent: #ff6a00;
	--wdsw-accent-2: #ffc23d;
}

.wdsw--freefire .wdsw__card {
	background: linear-gradient(180deg, #1a0d05 0%, #120806 55%, #2a0c02 100%);
	border: 1px solid rgba(255, 140, 0, 0.45);
	box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 40px rgba(255, 106, 0, 0.25);
}

.wdsw.wdsw--freefire.is-open .wdsw__card {
	animation: wdsw-ff-in 0.7s cubic-bezier(0.2, 1.4, 0.4, 1) both;
}

.wdsw-ff__flames {
	position: absolute;
	left: -10%;
	right: -10%;
	bottom: -30px;
	height: 55%;
	background: radial-gradient(60% 70% at 20% 100%, rgba(255, 90, 0, 0.75), transparent 70%), radial-gradient(50% 80% at 55% 100%, rgba(255, 170, 0, 0.6), transparent 70%), radial-gradient(55% 65% at 90% 100%, rgba(255, 60, 0, 0.7), transparent 70%);
	filter: blur(14px);
	transform-origin: bottom;
	animation: wdsw-flame 1.6s ease-in-out infinite alternate;
}

.wdsw-ff__slash {
	position: absolute;
	top: 0;
	left: -20%;
	width: 140%;
	height: 120px;
	background: repeating-linear-gradient(-55deg, rgba(255, 140, 0, 0.12) 0 10px, transparent 10px 26px);
	transform: skewY(-8deg);
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 30%, #000 70%, transparent);
	mask-image: linear-gradient(90deg, transparent, #000 30%, #000 70%, transparent);
	animation: wdsw-slash 6s linear infinite;
}

.wdsw-ember {
	position: absolute;
	bottom: -10px;
	left: var(--x);
	width: var(--s);
	height: var(--s);
	border-radius: 50%;
	background: #ffcf5c;
	box-shadow: 0 0 8px #ff8a00, 0 0 16px #ff5a00;
	opacity: 0;
	animation: wdsw-ember var(--t) linear infinite;
	animation-delay: var(--d);
}

.wdsw-ff__gem {
	position: absolute;
	left: var(--x);
	top: var(--y);
	width: 30px;
	filter: drop-shadow(0 0 10px rgba(127, 227, 255, 0.8));
	animation: wdsw-gem 3.2s ease-in-out infinite;
	animation-delay: var(--d);
}

.wdsw-ff__gem svg {
	display: block;
	width: 100%;
	height: auto;
}

.wdsw__ff-logo {
	width: auto;
	height: 30px;
	max-width: 190px;
	object-fit: contain;
	filter: drop-shadow(0 2px 10px rgba(255, 140, 0, 0.6));
}

.wdsw--freefire .wdsw__logo {
	height: 20px;
}

.wdsw__x {
	color: #ffb347;
	font-size: 18px;
	font-weight: 700;
}

.wdsw--freefire .wdsw__kicker {
	background: rgba(255, 106, 0, 0.16);
	border-color: rgba(255, 140, 0, 0.5);
	color: #ffd29a;
}

.wdsw--freefire .wdsw__title {
	font-style: italic;
	text-transform: uppercase;
	letter-spacing: 0.01em;
	text-shadow: 0 3px 0 #7a1d00, 0 0 24px rgba(255, 106, 0, 0.6);
}

.wdsw--freefire .wdsw__pct {
	position: relative;
	font-style: italic;
	background: linear-gradient(180deg, #fff6c9 0%, #ffc23d 40%, #ff6a00 75%, #d62a00 100%);
	-webkit-background-clip: text;
	background-clip: text;
	filter: drop-shadow(0 4px 0 #5a1500) drop-shadow(0 0 24px rgba(255, 106, 0, 0.75));
	animation: wdsw-ff-pulse 2.4s ease-in-out infinite 1.2s;
}

.wdsw--freefire .wdsw__off {
	color: #ffe2b8;
}

.wdsw--freefire .wdsw__off strong {
	padding: 2px 8px;
	border-radius: 6px;
	background: linear-gradient(90deg, #3a7bff, #7fe3ff);
	color: #071430;
	font-style: italic;
	transform: skewX(-8deg);
}

.wdsw--freefire .wdsw__text {
	color: #e9cfb5;
}

.wdsw--freefire .wdsw__code {
	border-color: rgba(255, 170, 0, 0.75);
	background: rgba(255, 106, 0, 0.08);
	clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
	border-radius: 0;
}

.wdsw--freefire .wdsw__code-value {
	color: #ffd166;
}

.wdsw--freefire .wdsw__copy {
	background: rgba(255, 170, 0, 0.2);
}

.wdsw--freefire .wdsw__cta {
	background: linear-gradient(135deg, #ffb000, #ff6a00 55%, #e02a00);
	box-shadow: 0 10px 30px rgba(255, 90, 0, 0.5);
	clip-path: polygon(12px 0, 100% 0, calc(100% - 12px) 100%, 0 100%);
	border-radius: 0;
	color: #1a0700;
	font-style: italic;
	text-transform: uppercase;
	letter-spacing: 0.02em;
}

.wdsw--freefire .wdsw__cta:hover {
	color: #1a0700;
	box-shadow: 0 14px 36px rgba(255, 90, 0, 0.65);
}

.wdsw--freefire .wdsw__have {
	color: #ffd29a;
}

.wdsw--freefire .wdsw__terms li {
	background: rgba(255, 140, 0, 0.1);
	color: #e9cfb5;
}

.wdsw--freefire .wdsw__auto {
	color: #b08a6c;
}

.wdsw--freefire .wdsw__close {
	border-color: rgba(255, 140, 0, 0.4);
}

/* ---------------- Aviso tras crear la cuenta ---------------- */

.wdsw-toast {
	position: fixed;
	left: 50%;
	bottom: max(16px, env(safe-area-inset-bottom));
	z-index: 100000;
	display: grid;
	grid-template-columns: auto 1fr auto auto;
	align-items: center;
	gap: 12px;
	width: min(560px, calc(100% - 32px));
	padding: 12px 12px 12px 14px;
	border: 1px solid rgba(169, 150, 247, 0.35);
	border-radius: 16px;
	background: #151233;
	box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
	color: #f5f5f6;
	font-family: "Inter", system-ui, sans-serif;
	opacity: 0;
	transform: translate(-50%, 30px);
	transition: opacity 0.4s, transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.wdsw-toast.is-open {
	opacity: 1;
	transform: translate(-50%, 0);
}

.wdsw-toast__badge {
	display: grid;
	place-items: center;
	width: 54px;
	height: 54px;
	border-radius: 14px;
	background: linear-gradient(135deg, #6438ee, #a996f7);
	font-weight: 900;
	font-size: 17px;
}

.wdsw-toast--freefire {
	border-color: rgba(255, 140, 0, 0.5);
	background: #1a0d05;
}

.wdsw-toast--freefire .wdsw-toast__badge {
	background: linear-gradient(135deg, #ffb000, #e02a00);
	color: #1a0700;
	font-style: italic;
}

.wdsw-toast__body {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
	font-size: 14px;
}

.wdsw-toast__code {
	font-family: ui-monospace, Consolas, monospace;
	font-weight: 800;
	letter-spacing: 0.05em;
	color: #ffd166;
}

.wdsw-toast__body small {
	color: #b6b3cc;
	font-size: 12px;
	line-height: 1.35;
}

.wdsw-toast__copy,
.wdsw-toast__close {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 44px;
	padding: 0 12px;
	border: 0;
	border-radius: 10px;
	background: rgba(169, 150, 247, 0.18);
	color: #fff;
	font: 700 13px/1 "Inter", system-ui, sans-serif;
	cursor: pointer;
}

.wdsw-toast__copy.is-done {
	background: #1f9d63;
}

.wdsw-toast__close {
	width: 44px;
	justify-content: center;
	padding: 0;
	background: transparent;
}

/* ---------------- Móvil: hoja desde abajo ---------------- */

@media (max-width: 560px) {
	.wdsw:not(.wdsw--inline) {
		align-items: end;
		padding: 0;
	}

	.wdsw:not(.wdsw--inline) .wdsw__card {
		width: 100%;
		max-height: 94dvh;
		border-radius: 22px 22px 0 0;
		padding-bottom: env(safe-area-inset-bottom);
		transform: translateY(100%);
	}

	.wdsw:not(.wdsw--inline).is-open .wdsw__card {
		transform: none;
	}

	.wdsw--ticket:not(.wdsw--inline) .wdsw__card {
		-webkit-mask: none;
		mask: none;
	}

	.wdsw.wdsw--ticket.is-open:not(.wdsw--inline) .wdsw__card,
	.wdsw.wdsw--freefire.is-open:not(.wdsw--inline) .wdsw__card {
		animation: wdsw-sheet 0.55s var(--wdsw-ease) both;
	}

	.wdsw__body {
		gap: 10px;
		padding: 28px 18px 20px;
	}

	.wdsw--regalo .wdsw__body {
		padding-top: 92px;
	}

	.wdsw__logos {
		max-width: 100%;
		padding: 0 40px;
		gap: 8px;
	}

	.wdsw__logos img {
		min-width: 0;
		flex: 0 1 auto;
	}

	.wdsw__ff-logo {
		height: 22px;
		max-width: 52%;
	}

	.wdsw--freefire .wdsw__logo {
		height: 16px;
		max-width: 40%;
	}

	.wdsw-gift {
		width: 92px;
	}

	.wdsw__code-value {
		font-size: 18px;
	}

	.wdsw__text {
		font-size: 14px;
	}

	.wdsw-toast {
		grid-template-columns: auto 1fr auto;
	}

	.wdsw-toast__copy {
		grid-column: 1 / -1;
		justify-content: center;
	}

	.wdsw-toast__close {
		grid-row: 1;
		grid-column: 3;
	}
}

@media (max-height: 640px) and (min-width: 561px) {
	.wdsw__body {
		gap: 8px;
		padding-top: 24px;
	}

	.wdsw--regalo .wdsw__body {
		padding-top: 84px;
	}

	.wdsw-gift {
		width: 80px;
	}

	.wdsw__pct {
		font-size: 54px;
	}
}

/* ---------------- Animaciones ---------------- */

@keyframes wdsw-rise {
	from { opacity: 0; transform: translateY(14px); }
	to { opacity: 1; transform: none; }
}

@keyframes wdsw-pop {
	from { opacity: 0; transform: scale(0.4) rotate(-6deg); }
	to { opacity: 1; transform: none; }
}

@keyframes wdsw-shine {
	0%, 60% { transform: translateX(-120%); }
	100% { transform: translateX(120%); }
}

@keyframes wdsw-gift-in {
	from { opacity: 0; transform: translateX(-50%) translateY(-30px) scale(0.5); }
	to { opacity: 1; transform: translateX(-50%); }
}

@keyframes wdsw-lid {
	0%, 6% { transform: none; }
	14% { transform: translateY(-26px) rotate(-18deg); }
	55% { transform: translateY(-26px) rotate(-18deg); }
	68%, 100% { transform: none; }
}

@keyframes wdsw-burst {
	0%, 8% { transform: translate(-50%, -50%) scale(0); opacity: 0; }
	16% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
	45%, 100% { transform: translate(-50%, -50%) scale(1.4); opacity: 0; }
}

@keyframes wdsw-confetti {
	0%, 10% { opacity: 0; transform: translateY(0) rotate(var(--r)); }
	16% { opacity: 1; }
	55% { opacity: 1; }
	70%, 100% { opacity: 0; transform: translateY(170px) rotate(calc(var(--r) + 540deg)); }
}

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

@keyframes wdsw-grid {
	to { background-position: 0 28px, 0 0; }
}

@keyframes wdsw-beam {
	0% { transform: translateX(0); opacity: 0; }
	20% { opacity: 1; }
	80% { opacity: 1; }
	100% { transform: translateX(400%); opacity: 0; }
}

@keyframes wdsw-flicker {
	0%, 18%, 22%, 25%, 53%, 57%, 100% { opacity: 1; }
	20%, 24%, 55% { opacity: 0.55; }
}

@keyframes wdsw-ticket {
	from { opacity: 0; transform: translateY(-60px) rotate(-8deg) scale(0.9); }
	to { opacity: 1; transform: none; }
}

@keyframes wdsw-stamp {
	from { opacity: 0; transform: scale(2.2) rotate(-12deg); }
	to { opacity: 1; transform: rotate(-3deg); }
}

@keyframes wdsw-sweep {
	0% { background-position: 150% 0; }
	60%, 100% { background-position: -100% 0; }
}

@keyframes wdsw-twinkle {
	0%, 100% { opacity: 0.25; transform: scale(0.8); }
	50% { opacity: 1; transform: scale(1.2); }
}

@keyframes wdsw-ff-in {
	0% { opacity: 0; transform: scale(1.25) rotate(2deg); filter: brightness(2); }
	60% { opacity: 1; transform: scale(0.98) rotate(-0.5deg); filter: brightness(1.2); }
	75% { transform: translateX(-4px); }
	85% { transform: translateX(3px); }
	100% { transform: none; filter: none; }
}

@keyframes wdsw-flame {
	from { transform: scaleY(0.9) translateY(4px); opacity: 0.85; }
	to { transform: scaleY(1.12); opacity: 1; }
}

@keyframes wdsw-slash {
	to { background-position: 260px 0; }
}

@keyframes wdsw-ember {
	0% { opacity: 0; transform: translate(0, 0) scale(1); }
	10% { opacity: 1; }
	100% { opacity: 0; transform: translate(var(--w), -420px) scale(0.3); }
}

@keyframes wdsw-gem {
	0%, 100% { transform: translateY(0) rotate(-8deg); }
	50% { transform: translateY(-12px) rotate(8deg); }
}

@keyframes wdsw-ff-pulse {
	0%, 100% { transform: scale(1); }
	50% { transform: scale(1.06); }
}

@keyframes wdsw-sheet {
	from { transform: translateY(100%); }
	to { transform: none; }
}

/* Sin animaciones si el dispositivo lo pide: todo se ve, quieto. */
@media (prefers-reduced-motion: reduce) {
	.wdsw *,
	.wdsw *::before,
	.wdsw *::after,
	.wdsw__card,
	.wdsw-toast {
		animation: none !important;
		transition: none !important;
	}

	.wdsw-confetti,
	.wdsw-ember,
	.wdsw-neon__beam {
		display: none;
	}

	.wdsw__card,
	.wdsw.is-open .wdsw__card {
		opacity: 1;
		transform: none;
	}
}
