:root {
	--ring: rgba(139, 148, 158, 0.38);
}

.wheel-item-input {
	width: 100%;
	border: 1px solid #30363d;
	background: #0d1117;
	color: #c9d1d9;
	border-radius: 0.75rem;
	padding: 0.75rem 1rem;
	font-size: 1rem;
	outline: none;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.wheel-item-input::placeholder {
	color: #8b949e;
}

.wheel-item-input:focus {
	border-color: #1f6feb;
	box-shadow: 0 0 0 4px rgba(31, 111, 235, 0.25);
}

#itemsContainer input {
	width: 100%;
	border: 1px solid #30363d !important;
	background: #0d1117 !important;
	color: #c9d1d9 !important;
	border-radius: 0.75rem;
	padding: 0.75rem 1rem;
	font-size: 1rem;
	outline: none;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

#itemsContainer input::placeholder {
	color: #8b949e !important;
}

#itemsContainer input:focus {
	border-color: #1f6feb !important;
	box-shadow: 0 0 0 4px rgba(31, 111, 235, 0.25) !important;
}

:where(.ui-wheel-of-fortune) {
	--_items: 12;
	all: unset;
	aspect-ratio: 1 / 1;
	container-type: inline-size;
	direction: ltr;
	display: grid;
	position: relative;
	width: 100%;
	user-select: none;
	touch-action: none;
	cursor: grab;
}

:where(.ui-wheel-of-fortune).is-dragging {
	cursor: grabbing;
}

:where(.ui-wheel-of-fortune)::after {
	aspect-ratio: 1 / cos(30deg);
	background-color: crimson;
	clip-path: polygon(0 0, 100% 50%, 0 100%);
	content: "";
	height: clamp(14px, 2.7vmin, 26px);
	height: 4cqi;
	position: absolute;
	place-self: center start;
	scale: 1.4;
	z-index: 5;
	transform: translateY(0%);
    margin-left: -0.8em;
}

:where(.ui-wheel-of-fortune) > * {
	position: absolute;
}

:where(.ui-wheel-of-fortune) > button {
	aspect-ratio: 1 / 1;
	background: rgba(22, 27, 34, 0.86);
	border: 0;
	border-radius: 50%;
	color: #c9d1d9;
	cursor: pointer;
	font-size: clamp(16px, 3.2vmin, 32px);
	font-size: 2.8cqi;
	font-weight: 500;
	place-self: center;
	width: clamp(64px, 14vmin, 100px);
	width: 8cqi;
	line-height: 1;
	letter-spacing: 0.01em;
	z-index: 6;
	box-shadow: 0 0 0 1px rgba(139, 148, 158, 0.24) inset;
}

#fortuneWheel > #spinBtn {
	display: grid;
	place-items: center;
	background-color: rgba(13, 17, 23, 0.86);
	backdrop-filter: blur(1px);
	-webkit-backdrop-filter: blur(1px);
	border-radius: 9999px;
	box-shadow:
		0 0 0 1px rgba(139, 148, 158, 0.35) inset,
		0 0 0 1px rgba(48, 54, 61, 0.66);
}

:where(.ui-wheel-of-fortune) > button:disabled {
	opacity: 0.8;
	cursor: not-allowed;
}

:where(.ui-wheel-of-fortune) > ul {
	all: unset;
	clip-path: inset(0 0 0 0 round 50%);
	display: grid;
	inset: 0;
	place-content: center start;
	border: 0;
	border-radius: 50%;
	overflow: hidden;
	background: #0d1117;
	box-shadow:
		0 0 0 1px var(--ring),
		0 16px 34px rgba(1, 4, 9, 0.6);
}

:where(.ui-wheel-of-fortune) > ul > li {
	align-content: center;
	aspect-ratio: 1 / calc(2 * tan(180deg / var(--_items)));
	background: linear-gradient(
		120deg,
		hsl(calc(360deg / var(--_items) * var(--_idx) - 18deg), 78%, 82%) 0%,
		hsl(calc(360deg / var(--_items) * var(--_idx)), 73%, 72%) 52%,
		hsl(calc(360deg / var(--_items) * var(--_idx) + 22deg), 67%, 60%) 100%
	);
	clip-path: polygon(0% 0%, 100% 50%, 0% 100%);
	display: grid;
	font-size: clamp(0.5em, 1.5vmin, 1em)
	font-size: 2.8cqi;
	font-weight: 501;
	grid-area: 1 / -1;
	padding-left: 3ch;
	rotate: calc(360deg / var(--_items) * (var(--_idx) - 1));
	transform-origin: center right;
	width: 50cqi;
	color: #101820;
	text-shadow: 0 1px 0 rgba(255, 255, 255, 0.22);
}
