.radial-widget { position:relative;width:100%;aspect-ratio:1;container-type:inline-size;isolation:isolate;color:#d2d2d8;pointer-events:none; }
.wheel-backdrop { position:absolute;inset:0;overflow:hidden;-webkit-mask:url("wheel-petals.svg") center / 100% 100% no-repeat;mask:url("wheel-petals.svg") center / 100% 100% no-repeat;background:linear-gradient(160deg,#ffffff14,#ffffff05),#3a110024;backdrop-filter:blur(16px) saturate(140%) brightness(1.03);-webkit-backdrop-filter:blur(16px) saturate(140%) brightness(1.03); }
.wheel-blades,.wheel-items,.minecraft-models { position:absolute;inset:0;width:100%;height:100%; }
.wheel-sectors path { stroke:#ffffff2e;stroke-width:1;stroke-linejoin:round;shape-rendering:geometricPrecision; }
.wheel-item { position:absolute;width:18%;height:18%;transform:translate(-50%,-50%);text-align:center; }
.wheel-fallback { position:absolute;left:50%;top:50%;width:9.66667cqw;height:9.66667cqw;object-fit:contain;transform:translate(-50%,calc(-50% - 3.33333cqw));image-rendering:pixelated;animation:item-spin 9s linear infinite; }
.wheel-item-label { position:absolute;left:50%;top:calc(50% + 4.33333cqw);transform:translate(-50%,-50%);font-size:2.5cqw;line-height:1.2;white-space:nowrap;font-weight:500;text-shadow:0 1px 3px #0004; }
.wheel-core { position:absolute;inset:33.333333%;border-radius:50%;background:linear-gradient(160deg,#ffffff14,#ffffff05),#3a110030;border:1px solid #ffffff26;backdrop-filter:blur(16px) saturate(140%) brightness(1.03);-webkit-backdrop-filter:blur(16px) saturate(140%) brightness(1.03); }
.wheel-ring { position:absolute;left:-100%;top:-100%;width:300%;height:300%;max-width:none;overflow:visible;animation:wheel-spin 5.142857s linear infinite; }
.wheel-ring circle { fill:none;stroke:#ff7047;stroke-width:2.8;stroke-linecap:round;stroke-dasharray:139.4867 34.8717;transform:rotate(-36deg);transform-origin:300px 300px; }
.wheel-profile { position:absolute;inset:0; }
.wheel-username { position:absolute;top:68%;left:50%;transform:translate(-50%,-50%);font-size:3.333333cqw;color:#f4f4f8;line-height:1.2;font-weight:500; }
.skin-head { position:absolute;left:50%;top:31%;width:12.5cqw;height:12.5cqw;transform:translate(-50%,-50%) rotateX(-8deg) rotateY(-16deg);transform-style:preserve-3d; }
.skin-face { position:absolute;width:100%;height:100%;background-image:url("assets/melaken.png");background-size:800% 800%;image-rendering:pixelated;backface-visibility:hidden;transform-style:preserve-3d; }
.skin-face::after { content:"";position:absolute;inset:-4%;background-image:url("assets/melaken.png");background-size:800% 800%;image-rendering:pixelated; }
.skin-front { background-position:14.285714% 14.285714%;transform:translateZ(6.25cqw); }
.skin-front::after { background-position:71.428571% 14.285714%; }
.skin-side { background-position:28.571429% 14.285714%;transform:rotateY(90deg) translateZ(6.25cqw);filter:brightness(.7); }
.skin-side::after { background-position:85.714286% 14.285714%; }
.skin-top { background-position:14.285714% 0;transform:rotateX(90deg) translateZ(6.25cqw);filter:brightness(.9); }
.skin-top::after { background-position:71.428571% 0; }
.minecraft-models { z-index:2;pointer-events:none;image-rendering:pixelated;animation:models-in .4s ease both; }
@keyframes models-in { from { opacity:0; } }
.has-game-models .skin-head,.has-game-models .wheel-fallback { visibility:hidden;animation:none; }
.is-paused .wheel-ring,.is-paused .wheel-fallback { animation-play-state:paused; }
@keyframes item-spin { to { transform:translate(-50%,calc(-50% - 3.33333cqw)) rotateY(360deg); } }
@keyframes wheel-spin { to { rotate:360deg; } }
@media(prefers-reduced-motion:reduce) { .wheel-ring,.wheel-fallback,.minecraft-models { animation:none; } }
@media(scripting:enabled) {
.radial-widget .wheel-core { animation:core-late .38s var(--ease-expo) 4s both,glass-appear .35s ease-out both; }
.radial-widget :is(.wheel-backdrop,.wheel-blades) { animation:petals-late .42s var(--spring) 4.1s both; }
.landing .radial-widget:not(.has-game-models) :is(.wheel-profile,.wheel-item),.radial-widget:not(.has-game-models) .wheel-profile { animation:text-late .26s var(--ease-expo) 4.2s both; }
.radial-widget:not(.has-game-models) .minecraft-models { opacity:0; }
.radial-widget.has-game-models .wheel-core { animation:core-in .38s var(--ease-expo) .05s both; }
.radial-widget.has-game-models :is(.wheel-backdrop,.wheel-blades) { animation:petals-in .42s var(--spring) .14s both; }
.landing .radial-widget.has-game-models :is(.wheel-profile,.wheel-item) { animation:text-in .26s var(--ease-expo) .24s both; }
.radial-widget.has-game-models .minecraft-models { animation:text-in .26s var(--ease-expo) .24s both; }
}
@keyframes glass-appear { from { opacity:0; } }
@keyframes core-late { from { scale:2.7; } }
@keyframes core-in { from { scale:2.7; } }
@keyframes petals-late { from { opacity:0;scale:.34; } }
@keyframes petals-in { from { opacity:0;scale:.34; } }
@keyframes text-late { from { opacity:0;filter:blur(10px);scale:.7; } }
@keyframes text-in { from { opacity:0;filter:blur(10px);scale:.7; } }
@media(scripting:enabled) and (prefers-reduced-motion:reduce) {
.radial-widget .wheel-core,.radial-widget.has-game-models .wheel-core { animation:none; }
.radial-widget :is(.wheel-backdrop,.wheel-blades),.landing .radial-widget:not(.has-game-models) :is(.wheel-profile,.wheel-item),.radial-widget.has-game-models :is(.wheel-backdrop,.wheel-blades),.landing .radial-widget.has-game-models :is(.wheel-profile,.wheel-item) { animation-name:wheel-part-fade;animation-duration:.3s; }
}
@keyframes wheel-part-fade { from { opacity:0; } }
.wheel-mark { position:absolute;left:50%;top:50%;z-index:4;width:38%;translate:-50% -50%;pointer-events:none; }
.wheel-mark .brand-rig { width:100%;height:auto; }
.wheel-mark :is(.rig-arm,.rig-eyes) { animation:none; }
@media(scripting:none) { .wheel-mark { display:none; } }
@media(scripting:enabled) {
.landing .site-brand .brand-rig { animation:brand-late .3s var(--ease-expo) 4s both; }
.wheel-mark { animation:mark-late .38s var(--ease-expo) 4s both,glass-appear .35s ease-out both; }
html.wheel-ready .landing .site-brand .brand-rig { animation:brand-in .3s var(--ease-expo) both; }
html.wheel-ready .wheel-mark { animation:mark-out .38s var(--ease-expo) .05s both; }
}
@keyframes brand-late { from { opacity:0;filter:blur(8px);scale:.5;width:0;margin-right:-10px; } }
@keyframes brand-in { from { opacity:0;filter:blur(8px);scale:.5;width:0;margin-right:-10px; } }
@keyframes mark-late { to { opacity:0;filter:blur(6px);scale:.37; } }
@keyframes mark-out { to { opacity:0;filter:blur(6px);scale:.37; } }

@media(scripting:enabled) and (prefers-reduced-motion:reduce) {
html.wheel-ready .wheel-mark { animation:mark-fade .3s both; }
}
@keyframes mark-fade { to { opacity:0; } }

