.npw-wrap {
	--npw-accent: #7c3aed;
	max-width: 460px;
	margin: 1.5em auto;
	text-align: center;
	font-family: inherit;
}
.npw-wrap .npw-heading { margin: 0 0 .25em; font-size: 1.6em; line-height: 1.2; }
.npw-wrap .npw-sub { margin: 0 0 1.2em; opacity: .75; }

.npw-stage {
	position: relative;
	width: min(100%, 420px);
	aspect-ratio: 1;
	margin: 0 auto;
}
.npw-wheel {
	width: 100%; height: 100%;
	display: block;
	border-radius: 50%;
	box-shadow: 0 12px 34px rgba(0,0,0,.22);
	transform: rotate(0deg);
	will-change: transform;
}
.npw-pointer {
	position: absolute; top: -6px; left: 50%;
	z-index: 2;
	width: 0; height: 0;
	transform: translateX(-50%);
	border-left: 18px solid transparent;
	border-right: 18px solid transparent;
	border-top: 34px solid var(--npw-accent);
	filter: drop-shadow(0 3px 3px rgba(0,0,0,.3));
}
.npw-spin {
	position: absolute; top: 50%; left: 50%;
	z-index: 2;
	width: 26%; aspect-ratio: 1;
	transform: translate(-50%, -50%);
	border-radius: 50%;
	border: 5px solid #fff;
	background: var(--npw-accent);
	color: #fff;
	font: inherit; font-weight: 800;
	font-size: clamp(.85rem, 3.6vw, 1.15rem);
	letter-spacing: .06em;
	cursor: pointer;
	box-shadow: 0 4px 14px rgba(0,0,0,.3);
	transition: transform .15s ease, filter .15s ease;
	padding: 0;
	line-height: 1.1;
}
.npw-spin:hover:not(:disabled) { transform: translate(-50%, -50%) scale(1.06); filter: brightness(1.08); }
.npw-spin:disabled { cursor: default; filter: saturate(.6); }
.npw-spin:focus-visible { outline: 3px solid var(--npw-accent); outline-offset: 4px; }

.npw-result {
	margin-top: 1.4em;
	display: flex; flex-direction: column; align-items: center; gap: .6em;
	animation: npw-pop .45s ease;
}
.npw-result[hidden], .npw-result [hidden] { display: none !important; }
.npw-result p { margin: 0; }
.npw-note { font-size: .95em; opacity: .8; }
.npw-label { font-size: clamp(1.5rem, 6vw, 2.2rem); font-weight: 800; line-height: 1.1; color: var(--npw-accent); }
.npw-message { font-size: 1rem; max-width: 34ch; }
.npw-code-row { display: flex; align-items: stretch; gap: .5em; flex-wrap: wrap; justify-content: center; margin-top: .2em; }
.npw-code {
	display: inline-flex; align-items: center;
	padding: .55em 1em;
	border: 2px dashed var(--npw-accent);
	border-radius: 10px;
	font-size: 1.2em; font-weight: 700; letter-spacing: .08em;
	background: #fff; color: #222;
	user-select: all; -webkit-user-select: all;
}
.npw-btn,
.npw-wrap a.npw-btn {
	display: inline-block;
	padding: .7em 1.4em;
	border: 0; border-radius: 999px;
	background: var(--npw-accent); color: #fff !important;
	font: inherit; font-weight: 700; font-size: 1em;
	text-decoration: none !important;
	cursor: pointer;
	box-shadow: 0 4px 12px rgba(0,0,0,.15);
	transition: transform .15s ease, filter .15s ease;
}
.npw-btn:hover { transform: translateY(-1px); filter: brightness(1.08); }
.npw-btn:focus-visible { outline: 3px solid var(--npw-accent); outline-offset: 3px; }

@keyframes npw-pop { from { opacity: 0; transform: translateY(8px) scale(.97); } to { opacity: 1; transform: none; } }

.npw-confetti { position: fixed; inset: 0; pointer-events: none; z-index: 999999; }
