.swwc-wheel-wrapper {
	max-width: 480px;
	margin: 0 auto;
	text-align: center;
	padding: 20px 10px 30px;
	box-sizing: border-box;
}

.swwc-title {
	margin-bottom: 4px;
	font-size: 1.6em;
}

.swwc-subtitle {
	margin-top: 0;
	margin-bottom: 20px;
	color: #666;
}

.swwc-wheel-stage {
	position: relative;
	width: 100%;
	max-width: 420px;
	aspect-ratio: 1 / 1;
	margin: 0 auto 24px;
}

.swwc-wheel-stage canvas {
	width: 100%;
	height: 100%;
	border-radius: 50%;
	border: 6px solid var(--swwc-border-color, #222);
	box-shadow: 0 6px 18px rgba(0,0,0,0.2);
	background: var(--swwc-bg-color, #fff);
	transition: transform 5s cubic-bezier(0.17, 0.67, 0.12, 0.99);
}

.swwc-pointer {
	position: absolute;
	top: -6px;
	left: 50%;
	transform: translateX(-50%);
	width: 0;
	height: 0;
	border-left: 16px solid transparent;
	border-right: 16px solid transparent;
	border-top: 28px solid var(--swwc-pointer-color, #222);
	z-index: 5;
	filter: drop-shadow(0 2px 2px rgba(0,0,0,0.3));
}

.swwc-spin-btn {
	display: inline-block;
	padding: 14px 36px;
	font-size: 1.1em;
	font-weight: 700;
	border: none;
	border-radius: 999px;
	cursor: pointer;
	background: var(--swwc-button-bg, #e63946);
	color: var(--swwc-button-text, #fff);
	transition: transform 0.15s ease, opacity 0.2s ease;
}

.swwc-spin-btn:hover:not(:disabled) {
	transform: translateY(-2px);
}

.swwc-spin-btn:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

.swwc-wheel-wrapper {
	position: relative;
}

.swwc-already-note {
	margin-top: 14px;
	color: #666;
	font-size: 0.95em;
}

/* Overlay shown directly on top of the wheel/button area so the result is
   impossible to miss, instead of a small note below the button. */
.swwc-overlay {
	position: absolute;
	inset: 0;
	z-index: 50;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	box-sizing: border-box;
	background: rgba(20, 20, 20, 0.72);
	backdrop-filter: blur(2px);
	border-radius: 16px;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.25s ease;
}

.swwc-overlay.is-visible {
	opacity: 1;
	visibility: visible;
}

.swwc-overlay-card {
	background: #ffffff;
	color: #222222;
	border-radius: 16px;
	padding: 30px 26px;
	max-width: 320px;
	width: 100%;
	text-align: center;
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
	transform: scale(0.85);
	transition: transform 0.25s ease;
}

.swwc-overlay.is-visible .swwc-overlay-card {
	transform: scale(1);
}

.swwc-overlay-icon {
	font-size: 44px;
	line-height: 1;
	margin-bottom: 10px;
}

.swwc-overlay-text {
	font-size: 1.15em;
	font-weight: 700;
	line-height: 1.4;
	margin-bottom: 20px;
}

.swwc-overlay-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	justify-content: center;
}

.swwc-overlay-btn {
	display: inline-block;
	padding: 10px 22px;
	border-radius: 999px;
	font-weight: 700;
	text-decoration: none;
	border: none;
	cursor: pointer;
	font-size: 0.95em;
}

.swwc-overlay-btn-primary {
	background: var(--swwc-button-bg, #e63946);
	color: var(--swwc-button-text, #fff);
}

.swwc-overlay-btn-secondary {
	background: #eeeeee;
	color: #333333;
}

.swwc-overlay-error .swwc-overlay-icon::before {
	content: "⚠️";
}
