:root {
	--asw-bg: #FFF9FC;
	--asw-card: #FFFFFF;
	--asw-lilac: #B58BFF;
	--asw-lilac-soft: #EAD9FF;
	--asw-pink: #FF7DBA;
	--asw-pink-soft: #FFE6F1;
	--asw-text: #2E2434;
	--asw-text-soft: #6E6178;
	--asw-accent: #7C5CFF;
	--asw-gold: #F5D06F;
}

#asw-root, #asw-root * { box-sizing: border-box; }
#asw-root { font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; }

.asw-overlay {
	position: fixed; inset: 0; background: rgba(46,36,52,0.45);
	display: flex; align-items: center; justify-content: center;
	z-index: 999999; padding: 20px;
}
/*
 * Belt-and-suspenders: an author rule that sets `display` always beats the
 * browser's own `[hidden] { display: none }` rule, no matter its
 * specificity, so anything toggled via the `hidden` attribute needs its own
 * explicit override here too. The JS below controls visibility with
 * inline `style.display` instead (which wins over both), so this is only
 * a safety net for the instant before JS runs.
 */
.asw-overlay[hidden], .asw-launcher[hidden], .asw-code-row[hidden] { display: none; }
.asw-modal {
	width: 460px; max-width: 100%; background: var(--asw-card);
	border-radius: 28px; position: relative; overflow: hidden;
	box-shadow: 0 20px 44px -16px rgba(124,92,255,0.45);
	padding: 50px 40px 32px; text-align: center;
	max-height: 88vh; overflow-y: auto;
}
.asw-blob { position: absolute; border-radius: 50%; filter: blur(6px); opacity: .8; }
.asw-blob-a { width: 220px; height: 220px; background: var(--asw-pink-soft); top: -90px; left: -80px; }
.asw-blob-b { width: 200px; height: 200px; background: var(--asw-lilac-soft); bottom: -90px; right: -70px; }
.asw-modal-inner { position: relative; }

.asw-close {
	position: absolute; top: 12px; right: 12px; width: 42px; height: 42px;
	border-radius: 50%; background: linear-gradient(135deg, var(--asw-pink), var(--asw-accent)); color: #fff;
	font-size: 20px; line-height: 1; border: none; cursor: pointer;
	display: flex; align-items: center; justify-content: center;
	box-shadow: 0 8px 16px -6px rgba(124,92,255,0.6);
	z-index: 5; pointer-events: auto; touch-action: manipulation;
}
.asw-eyebrow {
	font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: 13px;
	letter-spacing: 2px; text-transform: uppercase; color: var(--asw-lilac); margin-bottom: 6px;
}
.asw-heading { margin: 0 0 10px; font-family: 'Cormorant Garamond', serif; font-weight: 700; font-size: 34px; color: var(--asw-text); }
.asw-sub { margin: 0 0 22px; font-size: 14px; color: var(--asw-text-soft); line-height: 1.55; }

.asw-wheel-wrap { width: 330px; height: 330px; margin: 0 auto 22px; position: relative; max-width: 100%; }
.asw-pointer-gem {
	position: absolute; top: -2px; left: 50%; transform: translateX(-50%);
	width: 0; height: 0; border-left: 13px solid transparent; border-right: 13px solid transparent;
	border-top: 20px solid var(--asw-accent); z-index: 3;
	filter: drop-shadow(0 2px 2px rgba(0,0,0,.18));
}
.asw-wheel {
	width: 320px; height: 320px; margin: 5px; border-radius: 50%; position: relative;
	box-shadow: inset 0 0 0 8px #fff, 0 10px 30px -12px rgba(124,92,255,0.4);
}
.asw-seg { position: absolute; top: 50%; left: 50%; width: 0; height: 0; }
.asw-seg-label {
	position: absolute; top: 0; left: 0; width: 76px; text-align: center;
	font-family: 'Outfit', sans-serif; font-weight: 700; font-size: 11.5px; line-height: 1.2;
	text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}
.asw-hub {
	position: absolute; top: 50%; left: 50%; width: 72px; height: 72px; margin: -36px 0 0 -36px;
	border-radius: 50%; background: linear-gradient(135deg, var(--asw-pink), var(--asw-accent));
	display: flex; align-items: center; justify-content: center; color: #fff;
	z-index: 2; box-shadow: 0 8px 18px -6px rgba(124,92,255,0.6);
}

.asw-sr-only { position: absolute; left: -9999px; }
.asw-input-row { display: flex; gap: 8px; margin-bottom: 10px; }
.asw-cc {
	display: flex; align-items: center; padding: 0 12px; border-radius: 14px;
	border: 1px solid rgba(46,36,52,0.14); font-size: 14px; color: var(--asw-text-soft);
}
#asw-mobile {
	flex: 1; min-width: 0; box-sizing: border-box; padding: 14px 18px; border-radius: 14px;
	border: 1px solid rgba(46,36,52,0.14); font-size: 14px; color: var(--asw-text); outline: none;
}
.asw-error { font-size: 12px; color: #E85A86; margin: -2px 0 12px; text-align: left; }

.asw-spin-btn, .asw-shop-btn {
	width: 100%; padding: 16px 0; border: none; border-radius: 999px;
	background: linear-gradient(90deg, var(--asw-pink), var(--asw-lilac));
	color: #fff; font-family: 'Outfit', sans-serif; font-weight: 700; font-size: 15px;
	letter-spacing: .5px; text-transform: uppercase; cursor: pointer;
	box-shadow: 0 14px 28px -10px rgba(124,92,255,0.55);
	touch-action: manipulation;
}
.asw-spin-btn:disabled { opacity: .7; cursor: not-allowed; }
.asw-terms { font-size: 11px; color: var(--asw-text-soft); margin-top: 14px; }

.asw-result-label { font-family: 'Outfit', sans-serif; font-weight: 700; font-size: 27px; color: var(--asw-text); margin-bottom: 6px; }
.asw-result-sub { font-size: 13px; color: var(--asw-text-soft); margin-bottom: 18px; }
.asw-code-row { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 10px; }
.asw-code {
	border: 1.5px dashed var(--asw-lilac); border-radius: 14px; padding: 11px 22px;
	font-family: 'Outfit', sans-serif; font-weight: 700; letter-spacing: 2px;
	color: var(--asw-accent); background: var(--asw-bg);
}
.asw-copy-btn {
	width: 42px; height: 42px; border: none; border-radius: 50%;
	background: var(--asw-pink-soft); color: var(--asw-accent);
	display: flex; align-items: center; justify-content: center; cursor: pointer;
	touch-action: manipulation;
}
.asw-copied-msg { font-size: 12px; color: var(--asw-accent); margin-bottom: 14px; }
.asw-shop-btn { margin-top: 4px; }

.asw-launcher { position: fixed; z-index: 999998; display: flex; flex-direction: column; align-items: center; }
.asw-glow {
	position: absolute; top: -8px; left: 50%; transform: translateX(-50%);
	width: 94px; height: 94px; border-radius: 50%;
	background: radial-gradient(circle, var(--asw-gold) 0%, var(--asw-pink) 45%, rgba(255,125,186,0) 75%);
	filter: blur(7px); animation: asw-glow 2.6s ease-in-out infinite;
}
.asw-sparkle { position: absolute; color: var(--asw-gold); animation: asw-twinkle 1.9s ease-in-out infinite; }
.asw-sparkle-1 { top: 2px; left: 2px; font-size: 15px; }
.asw-sparkle-2 { bottom: 10px; left: -10px; font-size: 10px; color: #fff; animation-delay: .5s; }
.asw-sparkle-3 { top: 16px; right: -12px; font-size: 12px; color: var(--asw-pink); animation-delay: 1s; }
.asw-launcher-btn {
	position: relative; width: 72px; height: 72px; border-radius: 50%; background: #fff;
	border: 3px solid var(--asw-gold); box-shadow: 0 14px 28px -8px rgba(124,92,255,0.55);
	display: flex; align-items: center; justify-content: center; padding: 0; cursor: pointer;
	animation: asw-bounce 2.2s ease-in-out infinite; z-index: 1; touch-action: manipulation;
}
.asw-launcher-spin { transform-origin: 32px 32px; animation: asw-wheelspin 9s linear infinite; }
.asw-caption {
	margin-top: 6px; background: var(--asw-text); color: #fff; font-size: 11px; font-weight: 600;
	padding: 5px 11px; border-radius: 999px; white-space: nowrap; box-shadow: 0 6px 14px -6px rgba(46,36,52,0.4);
}

@keyframes asw-bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
@keyframes asw-wheelspin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes asw-glow { 0%, 100% { transform: translateX(-50%) scale(.9); opacity: .55; } 50% { transform: translateX(-50%) scale(1.18); opacity: .9; } }
@keyframes asw-twinkle { 0%, 100% { opacity: .15; transform: scale(.6); } 50% { opacity: 1; transform: scale(1.2); } }

@media (max-width: 480px) {
	.asw-overlay { padding: 16px; }
	.asw-modal {
		width: 100%; max-width: 330px; max-height: 76vh;
		padding: 48px 22px 22px; border-radius: 24px;
	}
	.asw-eyebrow { font-size: 11px; }
	.asw-heading { font-size: 24px; margin-bottom: 7px; }
	.asw-sub { font-size: 12.5px; margin-bottom: 16px; }
	.asw-wheel-wrap { width: 196px; height: 196px; margin-bottom: 16px; }
	.asw-wheel { width: 190px; height: 190px; margin: 3px; }
	.asw-pointer-gem { border-left-width: 9px; border-right-width: 9px; border-top-width: 14px; }
	.asw-hub { width: 42px; height: 42px; margin: -21px 0 0 -21px; }
	.asw-hub svg { width: 18px; height: 18px; }
	.asw-seg-label { font-size: 8.5px; width: 52px; }
	.asw-cc, #asw-mobile { font-size: 12.5px; padding: 12px 14px; }
	.asw-spin-btn, .asw-shop-btn { padding: 14px 0; font-size: 13.5px; }
	.asw-terms { font-size: 10px; }
	.asw-close { top: 10px; right: 10px; }
	.asw-launcher-btn { width: 60px; height: 60px; }
	.asw-launcher-btn svg { width: 44px; height: 44px; }
}
