div+css实现哈利波特蛇怪和扫帚摇色子游戏代码
代码语言:html
所属分类:游戏
代码描述:div+css实现哈利波特蛇怪和扫帚摇色子游戏代码,可以多人一起玩耍。
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <style> @charset "UTF-8"; /***** dice animation */ @import url("https://fonts.googleapis.com/css?family=Dosis|Roboto"); @keyframes changeOrder { from { z-index: 6; } to { z-index: 1; } } @-webkit-keyframes changeOrder { from { z-index: 6; } to { z-index: 1; } } input { display: none; } body { font-size: 16px; font-family: Dosis, Roboto, Arial, Verdana, sans-serif; padding: 0; margin: 0; border: 0; background: #8526; } .scrim { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.75); z-index: 999; } .scrim .box { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); -webkit-transform: translate(-50%, -50%); background: white; border-radius: 3px; box-shadow: 0 1.5em 0.5em -1em rgba(0, 0, 0, 0.25); width: 70%; max-width: 375px; } .scrim .box > div { padding: 1rem; } .scrim .box h1 { font-family: "Harry Potter"; text-shadow: 0 -2px #741, 0 -1px #741, -1px -1px #741, 1px -1px #741, -1px -2px #741, 1px -2px #741, -2px -2px #741, 2px -2px #741, -4px -2px #741, 4px -2px #741; margin-top: 0; margin-bottom: 0; font-size: 1.75rem; font-weight: 400; text-align: center; height: 2.5rem; line-height: 2.35rem; background: #741; color: white; border-radius: 3px 3px 0px 0px; } .scrim .box h2 { margin-top: 1rem; margin-bottom: 0.15rem; font-size: 1.3rem; } .scrim .box h2:first-child { margin-top: 0; } .scrim .box p:first-child { margin-top: 0; } .scrim .box p:last-child { margin-bottom: 0; } .flex { display: flex; } .flex > label, .flex > div { flex: 1; margin-left: 0.3rem; } .flex > label:first-child, .flex > div:first-child { margin-left: 0; } /** start screen: configuration **/ #options { background: rgba(0, 0, 0, 0); } #options .option-players label, #options label.option-start { display: block; margin-top: 0.5rem; color: white; background: rgba(0, 150, 48, 0.6); text-align: center; padding: 6px; transition: background 0.5s, color 0.5s; box-sizing: border-box; border: 2px solid transparent; border-radius: 3px; cursor: pointer; } #options .option-players label:hover, #options label.option-start:hover { background: rgba(220, 220, 0, 0.7); color: black; } #options .option-players label:active, #options label.option-start:active { border: 2px solid rgba(0, 0, 0, 0.1); } #options .option-players label.option-start, #options label.option-start.option-start { background: #741; color: white; margin-top: 2rem; } #options .option-players label.option-start:hover, #options label.option-start.option-start:hover { background: #61370e; } #options .option-colors label { height: 2rem; opacity: 0.6; margin-bottom: 0.3rem; cursor: pointer; transition: opacity 0.5s; } #options .option-colors label:hover { opacity: 0.8; } #options .option-colors label span { box-sizing: border-box; width: 2rem; margin-left: 0.3rem; border-radius: 3px; display: inline-block; padding: 3px; font-size: 0.7rem; border: 1px solid #222; } #options .option-colors label span:first-child { width: 2rem; height: 2rem; border: 0; } #options .option-colors label span:first-child::before { content: ""; display: block; width: 100%; height: 100%; background: radial-gradient(farthest-side, #0000 40%, #321a 0 50%, #0000 0); } #options .option-colors label:nth-child(1) span:nth-child(2) { background: linear-gradient(69deg, #0000 30%, #da8 0 70%, #0000 0) no-repeat 27% 20%/10% 7%, conic-gradient(at 90% 100%, #0000 320deg, #da8 0 350deg, #0000 0) no-repeat 25% 27%/10% 7%, radial-gradient(farthest-side, #fff 90%, #0000 0) no-repeat 22% 50%/5% 5%, radial-gradient(farthest-side, #fff 90%, #0000 0) no-repeat 72% 50%/5% 5%, radial-gradient(farthest-side, #000 90%, #0000 0) no-repeat 20% 55%/20% 20%, radial-gradient(farthest-side, #000 90%, #0000 0) no-repeat 80% 55%/20% 20%, linear-gradient(to right, #000 7%, #0000 0 43%, #000 0 57%, #0000 0 93%, #000 0) no-repeat 0 52%/100% 2.5%, radial-gradient(circle at 25% 50%, #0000 22%, #000 0 25%, #0000 0) no-repeat 0 52%/100% 40%, radial-gradient(circle at 75% 50%, #0000 22%, #000 0 25%, #0000 0) no-repeat 0 52%/100% 40%, repeating-linear-gradient(to right, brown 0 20%, gold 0 40%) no-repeat 0 100%/100% 25%, linear-gradient(#0000 73%, #000 0 90%, #0000 0) no-repeat, radial-gradient(farthest-side, #642 99.9%, #0000 0) no-repeat -52% -60%/52% 60%, radial-gradient(farthest-side, #642 99.9%, #0000 0) no-repeat 300% -58%/90% 56%, radial-gradient(farthest-side, #fca 99.9%, #0000 0) no-repeat 320% -50%/90% 55%, radial-gradient(farthest-side, #642 99.9%, #0000 0) no-repeat 500% -52%/95% 55%, linear-gradient(#fca 0 0); } #options .option-colors label:nth-child(1) span:nth-child(3) { background: linear-gradient(5deg, #0000 40%, #ffe 0 70%, #0000 0) no-repeat 15% 30%/30% 5%, linear-gradient(-5deg, #0000 40%, #ffe 0 70%, #0000 0) no-repeat 85% 30%/30% 5%, radial-gradient(farthest-side, #fff 90%, #0000 0) no-repeat 24% 45%/5% 5%, radial-gradient(farthest-side, #fff 90%, #0000 0) no-repeat 70% 45%/5% 5%, radial-gradient(farthest-side, #333 90%, #0000 0) no-repeat 23% 50%/20% 20%, radial-gradient(farthest-side, #333 90%, #0000 0) no-repeat 77% 50%/20% 20%, repeating-linear-gradient(to right, green 0 20%, #eee 0 40%) no-repeat 0 100%/100% 25%, linear-gradient(#0000 73%, #000 0 90%, #0000 0) no-repeat, radial-gradient(farthest-side, #ffe 99.9%, #0000 0) no-repeat -300% -70%/90% 50%, radial-gradient(farthest-side, #ffe 99.9%, #0000 0) no-repeat 400% -70%/90% 50%, linear-gradient(#f8d8b8 0 0); } #options .option-colors label:nth-child(1) span:nth-child(4) { background: radial-gradient(farthest-side, #fff 90%, #0000 0) no-repeat 24% 45%/5% 5%, radial-gradient(farthest-side, #fff 90%, #0000 0) no-repeat 70% 45%/5% 5%, radial-gradient(farthest-side, #111 90%, #0000 0) no-repeat 23% 50%/20% 20%, radial-gradient(farthest-side, #111 90%, #0000 0) no-repeat 77% 50%/20% 20%, repeating-linear-gradient(to right, #203aa0 0 20%, #b94 0 40%) no-repeat 0 100%/100% 25%, linear-gradient(#0000 73%, #000 0 90%, #0000 0) no-repeat, radial-gradient(farthest-side, #432 99.9%, #0000 0) no-repeat -300% -70%/90% 50%, radial-gradient(farthest-side, #432 99.9%, #0000 0) no-repeat 400% -70%/90% 50%, radial-gradient(farthest-side, #ffe8b8 99.9%, #0000 0) no-repeat -350% -65%/90% 50%, radial-gradient(farthest-side, #ffe8b8 99.9%, #0000 0) no-repeat 450% -65%/90% 50%, radial-gradient(farthest-side, #432 99.9%, #0000 0) no-repeat 200% -55%/80% 48%, radial-gradient(farthest-side, #432 99.9%, #0000 0) no-repeat -150% -55%/86% 47%, radial-gradient(circle at 100% 0%, #0000 0 35%, #432 0 40%, #0000 0 50%, #432 0 55%, #0000 0 65%, #432 0 70%, #0000 0) no-repeat 13.5% 45%/20% 10%, radial-gradient(circle at 0% 0%, #0000 0 35%, #432 0 40%, #0000 0 50%, #432 0 55%, #0000 0 65%, #432 0 70%, #0000 0) no-repeat 87% 45%/20% 10%, linear-gradient(#ffe8b8 0 0); } #options .option-colors label:nth-child(1) span:nth-child(5) { background: radial-gradient(farthest-side, #fff 90%, #0000 0) no-repeat 24% 48%/5% 5%, radial-gradient(farthest-side, #fff 90%, #0000 0) no-repeat 70% 48%/5% 5%, radial-gradient(farthest-side, #111 90%, #0000 0) no-repeat 23% 53%/20% 20%, radial-gradient(farthest-side, #111 90%, #0000 0) no-repeat 77% 53%/20% 20%, repeating-linear-gradient(to right, #222 0 20%, #fd0 0 40%) no-repeat 0 100%/100% 25%, linear-gradient(#0000 73%, #000 0 90%, #0000 0), radial-gradient(farthest-side, #111 99.9%, #0000 0) no-repeat -250% -70%/90% 50%, radial-gradient(farthest-side, #111 99.9%, #0000 0) no-repeat 300% -70%/90% 50%, radial-gradient(farthest-side, #963 99.9%, #0000 0) no-repeat -350% -65%/90% 50%, radial-gradient(farthest-side, #963 99.9%, #0000 0) no-repeat 450% -65%/90% 50%, radial-gradient(farthest-side, #111 99.9%, #0000 0) no-repeat 200% -55%/80% 48%, radial-gradient(farthest-side, #111 99.9%, #0000 0) no-repeat -150% -55%/86% 47%, radial-gradient(farthest-side at 52% 120%, #0000 70%, #111 0 99%, #0000 0) no-repeat 18% 32%/30% 10%, radial-gradient(farthest-side at 49% 120%, #0000 70%, #111 0 99%, #0000 0) no-repeat 82% 32%/30% 10%, linear-gradient(#963 0 0); } #options .option-colors label:nth-child(2) span:nth-child(2) { background: linear-gradient(5deg, #0000 40%, #ffe 0 70%, #0000 0) no-repeat 15% 30%/30% 5%, linear-gradient(-5deg, #0000 40%, #ffe 0 70%, #0000 0) no-repeat 85% 30%/30% 5%, radial-gradient(farthest-side, #fff 90%, #0000 0) no-repeat 24% 45%/5% 5%, radial-gradient(farthest-side, #fff 90%, #0000 0) no-repeat 70% 45%/5% 5%, radial-gradient(farthest-side, #333 90%, #0000 0) no-repeat 23% 50%/20% 20%, radial-gradient(farthest-side, #333 90%, #0000 0) no-repeat 77% 50%/20% 20%, repeating-linear-gradient(to right, green 0 20%, #eee 0 40%) no-repeat 0 100%/100% 25%, linear-gradient(#0000 73%, #000 0 90%, #0000 0) no-repeat, radial-gradient(farthest-side, #ffe 99.9%, #0000 0) no-repeat -300% -70%/90% 50%, radial-gradient(farthest-side, #ffe 99.9%, #0000 0) no-repeat 400% -70%/90% 50%, linear-gradient(#f8d8b8 0 0); } #options .option-colors label:nth-child(2) span:nth-child(3) { background: radial-gradient(farthest-side, #fff 90%, #0000 0) no-repeat 24% 45%/5% 5%, radial-gradient(farthest-side, #fff 90%, #0000 0) no-repeat 70% 45%/5% 5%, radial-gradient(farthest-side, #111 90%, #0000 0) no-repeat 23% 50%/20% 20%, radial-gradient(farthest-side, #111 90%, #0000 0) no-repeat 77% 50%/20% 20%, repeating-linear-gradient(to right, #203aa0 0 20%, #b94 0 40%) no-repeat 0 100%/100% 25%, linear-gradient(#0000 73%, #000 0 90%, #0000 0) no-repeat, radial-gradient(farthest-side, #432 99.9%, #0000 0) no-repeat -300% -70%/90% 50%, radial-gradient(farthest-side, #432 99.9%, #0000 0) no-repeat 400% -70%/90% 50%, radial-gradient(farthest-side, #ffe8b8 99.9%, #0000 0) no-repeat -350% -65%/90% 50%, radial-gradient(farthest-side, #ffe8b8 99.9%, #0000 0) no-repeat 450% -65%/90% 50%, radial-gradient(farthest-side, #432 99.9%, #0000 0) no-repeat 200% -55%/80% 48%, radial-gradient(farthest-side, #432 99.9%, #0000 0) no-repeat -150% -55%/86% 47%, radial-gradient(circle at 100% 0%, #0000 0 35%, #432 0 40%, #0000 0 50%, #432 0 55%, #0000 0 65%, #432 0 70%, #0000 0) no-repeat 13.5% 45%/20% 10%, radial-gradient(circle at 0% 0%, #0000 0 35%, #432 0 40%, #0000 0 50%, #432 0 55%, #0000 0 65%, #432 0 70%, #0000 0) no-repeat 87% 45%/20% 10%, linear-gradient(#ffe8b8 0 0); } #options .option-colors label:nth-child(2) span:nth-child(4) { background: radial-gradient(farthest-side, #fff 90%, #0000 0) no-repeat 24% 48%/5% 5%, radial-gradient(farthest-side, #fff 90%, #0000 0) no-repeat 70% 48%/5% 5%, radial-gradient(farthest-side, #111 90%, #0000 0) no-repeat 23% 53%/20% 20%, radial-gradient(farthest-side, #111 90%, #0000 0) no-repeat 77% 53%/20% 20%, repeating-linear-gradient(to right, #222 0 20%, #fd0 0 40%) no-repeat 0 100%/100% 25%, linear-gradient(#0000 73%, #000 0 90%, #0000 0), radial-gradient(farthest-side, #111 99.9%, #0000 0) no-repeat -250% -70%/90% 50%, radial-gradient(farthest-side, #111 99.9%, #0000 0) no-repeat 300% -70%/90% 50%, radial-gradient(farthest-side, #963 99.9%, #0000 0) no-repeat -350% -65%/90% 50%, radial-gradient(farthest-side, #963 99.9%, #0000 0) no-repeat 450% -65%/90% 50%, radial-gradient(farthest-side, #111 99.9%, #0000 0) no-repeat 200% -55%/80% 48%, radial-gradient(farthest-side, #111 99.9%, #0000 0) no-repeat -150% -55%/86% 47%, radial-gradient(farthest-side at 52% 120%, #0000 70%, #111 0 99%, #0000 0) no-repeat 18% 32%/30% 10%, radial-gradient(farthest-side at 49% 120%, #0000 70%, #111 0 99%, #0000 0) no-repeat 82% 32%/30% 10%, linear-gradient(#963 0 0); } #options .option-colors label:nth-child(2) span:nth-child(5) { background: linear-gradient(69deg, #0000 30%, #da8 0 70%, #0000 0) no-repeat 27% 20%/10% 7%, conic-gradient(at 90% 100%, #0000 320deg, #da8 0 350deg, #0000 0) no-repeat 25% 27%/10% 7%, radial-gradient(farthest-side, #fff 90%, #0000 0) no-repeat 22% 50%/5% 5%, radial-gradient(farthest-side, #fff 90%, #0000 0) no-repeat 72% 50%/5% 5%, radial-gradient(farthest-side, #000 90%, #0000 0) no-repeat 20% 55%/20% 20%, radial-gradient(farthest-side, #000 90%, #0000 0) no-repeat 80% 55%/20% 20%, linear-gradient(to right, #000 7%, #0000 0 43%, #000 0 57%, #0000 0 93%, #000 0) no-repeat 0 52%/100% 2.5%, radial-gradient(circle at 25% 50%, #0000 22%, #000 0 25%, #0000 0) no-repeat 0 52%/100% 40%, radial-gradient(circle at 75% 50%, #0000 22%, #000 0 25%, #0000 0) no-repeat 0 52%/100% 40%, repeating-linear-gradient(to right, brown 0 20%, gold 0 40%) no-repeat 0 100%/100% 25%, linear-gradient(#0000 73%, #000 0 90%, #0000 0) no-repeat, radial-gradient(farthest-side, #642 99.9%, #0000 0) no-repeat -52% -60%/52% 60%, radial-gradient(farthest-side, #642 99.9%, #0000 0) no-repeat 300% -58%/90% 56%, radial-gradient(farthest-side, #fca 99.9%, #0000 0) no-repeat 320% -50%/90% 55%, radial-gradient(farthest-side, #642 99.9%, #0000 0) no-repeat 500% -52%/95% 55%, linear-gradient(#fca 0 0); } #options .option-colors label:nth-child(3) span:nth-child(2) { background: radial-gradient(farthest-side, #fff 90%, #0000 0) no-repeat 24% 45%/5% 5%, radial-gradient(farthest-side, #fff 90%, #0000 0) no-repeat 70% 45%/5% 5%, radial-gradient(farthest-side, #111 90%, #0000 0) no-repeat 23% 50%/20% 20%, radial-gradient(farthest-side, #111 90%, #0000 0) no-repeat 77% 50%/20% 20%, repeating-linear-gradient(to right, #203aa0 0 20%, #b94 0 40%) no-repeat 0 100%/100% 25%, linear-gradient(#0000 73%, #000 0 90%, #0000 0) no-repeat, radial-gradient(farthest-side, #432 99.9%, #0000 0) no-repeat -300% -70%/90% 50%, radial-gradient(farthest-side, #432 99.9%, #0000 0) no-repeat 400% -70%/90% 50%, radial-gradient(farthest-side, #ffe8b8 99.9%, #0000 0) no-repeat -350% -65%/90% 50%, radial-gradient(farthest-side, #ffe8b8 99.9%, #0000 0) no-repeat 450% -65%/90% 50%, radial-gradient(farthest-side, #432 99.9%, #0000 0) no-repeat 200% -55%/80% 48%, radial-gradient(farthest-side, #432 99.9%, #0000 0) no-repeat -150% -55%/86% 47%, radial-gradient(circle at 100% 0%, #0000 0 35%, #432 0 40%, #0000 0 50%, #432 0 55%, #0000 0 65%, #432 0 70%, #0000 0) no-repeat 13.5% 45%/20% 10%, radial-gradient(circle at 0% 0%, #0000 0 35%, #432 0 40%, #0000 0 50%, #432 0 55%, #0000 0 65%, #432 0 70%, #0000 0) no-repeat 87% 45%/20% 10%, linear-gradient(#ffe8b8 0 0); } #options .option-colors label:nth-child(3) span:nth-child(3) { background: radial-gradient(farthest-side, #fff 90%, #0000 0) no-repeat 24% 48%/5% 5%, radial-gradient(farthest-side, #fff 90%, #0000 0) no-repeat 70% 48%/5% 5%, radial-gradient(farthest-side, #111 90%, #0000 0) no-repeat 23% 53%/20% 20%, radial-gradient(farthest-side, #111 90%, #0000 0) no-repeat 77% 53%/20% 20%, repeating-linear-gradient(to right, #222 0 20%, #fd0 0 40%) no-repeat 0 100%/100% 25%, linear-gradient(#0000 73%, #000 0 90%, #0000 0), radial-gradient(farthest-side, #111 99.9%, #0000 0) no-repeat -250% -70%/90% 50%, radial-gradient(farthest-side, #111 99.9%, #0000 0) no-repeat 300% -70%/90% 50%, radial-gradient(farthest-side, #963 99.9%, #0000 0) no-repeat -350% -65%/90% 50%, radial-gradient(farthest-side, #963 99.9%, #0000 0) no-repeat 450% -65%/90% 50%, radial-gradient(farthest-side, #111 99.9%, #0000 0) no-repeat 200% -55%/80% 48%, radial-gradient(farthest-side, #111 99.9%, #0000 0) no-repeat -150% -55%/86% 47%, radial-gradient(farthest-side at 52% 120%, #0000 70%, #111 0 99%, #0000 0) no-repeat 18% 32%/30% 10%, radial-gradient(farthest-side at 49% 120%, #0000 70%, #111 0 99%, #0000 0) no-repeat 82% 32%/30% 10%, linear-gradient(#963 0 0); } #options .option-colors label:nth-child(3) span:nth-child(4) { background: linear-gradient(69deg, #0000 30%, #da8 0 70%, #0000 0) no-repeat 27% 20%/10% 7%, conic-gradient(at 90% 100%, #0000 320deg, #da8 0 350deg, #0000 0) no-repeat 25% 27%/10% 7%, radial-gradient(farthest-side, #fff 90%, #0000 0) no-repeat 22% 50%/5% 5%, radial-gradient(farthest-side, #fff 90%, #0000 0) no-repeat 72% 50%/5% 5%, radial-gradient(farthest-side, #000 90%, #0000 0) no-repeat 20% 55%/20% 20%, radial-gradient(farthest-side, #000 90%, #0000 0) no-repeat 80% 55%/20% 20%, linear-gradient(to right, #000 7%, #0000 0 43%, #000 0 57%, #0000 0 93%, #000 0) no-repeat 0 52%/100% 2.5%, radial-gradient(circle at 25% 50%, #0000 22%, #000 0 25%, #0000 0) no-repeat 0 52%/100% 40%, radial-gradient(circle at 75% 50%, #0000 22%, #000 0 25%, #0000 0) no-repeat 0 52%/100% 40%, repeating-linear-gradient(to right, brown 0 20%, gold 0 40%) no-repeat 0 100%/100% 25%, linear-gradient(#0000 73%, #000 0 90%, #0000 0) no-repeat, radial-gradient(farthest-side, #642 99.9%, #0000 0) no-repeat -52% -60%/52% 60%, radial-gradient(farthest-side, #642 99.9%, #0000 0) no-repeat 300% -58%/90% 56%, radial-gradient(farthest-side, #fca 99.9%, #0000 0) no-repeat 320% -50%/90% 55%, radial-gradient(farthest-side, #642 99.9%, #0000 0) no-repeat 500% -52%/95% 55%, linear-gradient(#fca 0 0); } #options .option-colors label:nth-child(3) span:nth-child(5) { background: linear-gradient(5deg, #0000 40%, #ffe 0 70%, #0000 0) no-repeat 15% 30%/30% 5%, linear-gradient(-5deg, #0000 40%, #ffe 0 70%, #0000 0) no-repeat 85% 30%/30% 5%, radial-gradient(farthest-side, #fff 90%, #0000 0) no-repeat 24% 45%/5% 5%, radial-gradient(farthest-side, #fff 90%, #0000 0) no-repeat 70% 45%/5% 5%, radial-gradient(farthest-side, #333 90%, #0000 0) no-repeat 23% 50%/20% 20%, radial-gradient(farthest-side, #333 90%, #0000 0) no-repeat 77% 50%/20% 20%, repeating-linear-gradient(to right, green 0 20%, #eee 0 40%) no-repeat 0 100%/100% 25%, linear-gradient(#0000 73%, #000 0 90%, #0000 0) no-repeat, radial-gradient(farthest-side, #ffe 99.9%, #0000 0) no-repeat -300% -70%/90% 50%, radial-gradient(farthest-side, #ffe 99.9%, #0000 0) no-repeat 400% -70%/90% 50%, linear-gradient(#f8d8b8 0 0); } #options .option-colors label:nth-child(4) span:nth-child(2) { background: radial-gradient(farthest-side, #fff 90%, #0000 0) no-repeat 24% 48%/5% 5%, radial-gradient(farthest-side, #fff 90%, #0000 0) no-repeat 70% 48%/5% 5%, radial-gradient(farthest-side, #111 90%, #0000 0) no-repeat 23% 53%/20% 20%, radial-gradient(farthest-side, #111 90%, #0000 0) no-repeat 77% 53%/20% 20%, repeating-linear-gradient(to right, #222 0 20%, #fd0 0 40%) no-repeat 0 100%/100% 25%, linear-gradient(#0000 73%, #000 0 90%, #0000 0), radial-gradient(farthest-side, #111 99.9%, #0000 0) no-repeat -250% -70%/90% 50%, radial-gradient(farthest-side, #111 99.9%, #0000 0) no-repeat 300% -70%/90% 50%, radial-gradient(farthest-side, #963 99.9%, #0000 0) no-repeat -350% -65%/90% 50%, radial-gradient(farthest-side, #963 99.9%, #0000 0) no-repeat 450% -65%/90% 50%, radial-gradient(farthest-side, #111 99.9%, #0000 0) no-repeat 200% -55%/80% 48%, radial-gradient(farthest-side, #111 99.9%, #0000 0) no-repeat -150% -55%/86% 47%, radial-gradient(farthest-side at 52% 120%, #0000 70%, #111 0 99%, #0000 0) no-repeat 18% 32%/30% 10%, radial-gradient(farthest-side at 49% 120%, #0000 70%, #111 0 99%, #0000 0) no-repeat 82% 32%/30% 10%, linear-gradient(#963 0 0); } #options .option-colors label:nth-child(4) span:nth-child(3) { background: linear-gradient(69deg, #0000 30%, #da8 0 70%, #0000 0) no-repeat 27% 20%/10% 7%, conic-gradient(at 90% 100%, #0000 320deg, #da8 0 350deg, #0000 0) no-repeat 25% 27%/10% 7%, radial-gradient(farthest-side, #fff 90%, #0000 0) no-repeat 22% 50%/5% 5%, radial-gradient(farthest-side, #fff 90%, #0000 0) no-repeat 72% 50%/5% 5%, radial-gradient(farthest-side, #000 90%, #0000 0) no-repeat 20% 55%/20% 20%, radial-gradient(farthest-side, #000 90%, #0000 0) no-repeat 80% 55%/20% 20%, linear-gradient(to right, #000 7%, #0000 0 43%, #000 0 57%, #0000 0 93%, #000 0) no-repeat 0 52%/100% 2.5%, radial-gradient(circle at 25% 50%, #0000 22%, #000 0 25%, #0000 0) no-repeat 0 52%/100% 40%, radial-gradient(circle at 75% 50%, #0000 22%, #000 0 25%, #0000 0) no-repeat 0 52%/100% 40%, repeating-linear-gradient(to right, brown 0 20%, gold 0 40%) no-repeat 0 100%/100% 25%, linear-gradient(#0000 73%, #000 0 90%, #0000 0) no-repeat, radial-gradient(farthest-side, #642 99.9%, #0000 0) no-repeat -52% -60%/52% 60%, radial-gradient(farthest-side, #642 99.9%, #0000 0) no-repeat 300% -58%/90% 56%, radial-gradient(farthest-side, #fca 99.9%, #0000 0) no-repeat 320% -50%/90% 55%, radial-gradient(farthest-side, #642 99.9%, #0000 0) no-repeat 500% -52%/95% 55%, linear-gradient(#fca 0 0); } #options .option-colors label:nth-child(4) span:nth-child(4) { background: linear-gradient(5deg, #0000 40%, #ffe 0 70%, #0000 0) no-repeat 15% 30%/30% 5%, linear-gradient(-5deg, #0000 40%, #ffe 0 70%, #0000 0) no-repeat 85% 30%/30% 5%, radial-gradient(farthest-side, #fff 90%, #0000 0) no-repeat 24% 45%/5% 5%, radial-gradient(farthest-side, #fff 90%, #0000 0) no-repeat 70% 45%/5% 5%, radial-gradient(farthest-side, #333 90%, #0000 0) no-repeat 23% 50%/20% 20%, radial-gradient(farthest-side, #333 90%, #0000 0) no-repeat 77% 50%/20% 20%, repeating-linear-gradient(to right, green 0 20%, #eee 0 40%) no-repeat 0 100%/100% 25%, linear-gradient(#0000 73%, #000 0 90%, #0000 0) no-repeat, radial-gradient(farthest-side, #ffe 99.9%, #0000 0) no-repeat -300% -70%/90% 50%, radial-gradient(farthest-side, #ffe 99.9%, #0000 0) no-repeat 400% -70%/90% 50%, linear-gradient(#f8d8b8 0 0); } #options .option-colors label:nth-child(4) span:nth-child(5) { background: radial-gradient(farthest-side, #fff 90%, #0000 0) no-repeat 24% 45%/5% 5%, radial-gradient(farthest-side, #fff 90%, #0000 0) no-repeat 70% 45%/5% 5%, radial-gradient(farthest-side, #111 90%, #0000 0) no-repeat 23% 50%/20% 20%, radial-gradient(farthest-side, #111 90%, #0000 0) no-repeat 77% 50%/20% 20%, repeating-linear-gradient(to right, #203aa0 0 20%, #b94 0 40%) no-repeat 0 100%/100% 25%, linear-gradient(#0000 73%, #000 0 90%, #0000 0) no-repeat, radial-gradient(farthest-side, #432 99.9%, #0000 0) no-repeat -300% -70%/90% 50%, radial-gradient(farthest-side, #432 99.9%, #0000 0) no-repeat 400% -70%/90% 50%, radial-gradient(farthest-side, #ffe8b8 99.9%, #0000 0) no-repeat -350% -65%/90% 50%, radial-gradient(farthest-side, #ffe8b8 99.9%, #0000 0) no-repeat 450% -65%/90% 50%, radial-gradient(farthest-side, #432 99.9%, #0000 0) no-repeat 200% -55%/80% 48%, radial-gradient(farthest-side, #432 99.9%, #0000 0) no-repeat -150% -55%/86% 47%, radial-gradient(circle at 100% 0%, #0000 0 35%, #432 0 40%, #0000 0 50%, #432 0 55%, #0000 0 65%, #432 0 70%, #0000 0) no-repeat 13.5% 45%/20% 10%, radial-gradient(circle at 0% 0%, #0000 0 35%, #432 0 40%, #0000 0 50%, #432 0 55%, #0000 0 65%, #432 0 70%, #0000 0) no-repeat 87% 45%/20% 10%, linear-gradient(#ffe8b8 0 0); } #game-time:checked ~ #options, [name=show-instructions]:checked ~ #options { display: none; } #players1:checked ~ #options label[for=players1] { background: #009630; border: 2px solid rgba(0, 0, 0, 0.1); color: white; } #players1:checked ~ #options label[for^=colors] span:nth-child(3) { display: none; } #players1:checked ~ #options label[for^=colors] span:nth-child(4) { display: none; } #players1:checked ~ #options label[for^=colors] span:nth-child(5) { display: none; } #colors1:checked ~ #options label[for=colors1] { opacity: 1; border: 0; } #colors1:checked ~ #options label[for=colors1] span { border: 1px solid #222; } #colors1:checked ~ #options label[for=colors1] span:first-child { border: 2px solid transparent; } #colors1:checked ~ #options label[for=colors1] span:first-child::before { background: radial-gradient(farthest-side, black 99%, #0000 0) no-repeat 35% 60%/15% 15%, radial-gradient(farthest-side, black 99%, #0000 0) no-repeat 65% 60%/15% 15%, radial-gradient(farthest-side at 50% 0, black 99%, #0000 0) no-repeat 50% 80%/20% 10%, conic-gradient(at 50% -20%, #0000 162deg, indianred 0 198deg, #0000 0) no-repeat 50% 0%/100% 85%, radial-gradient(farthest-side, indianred 99%, #0000 0) no-repeat 0% 100%/100% 20%; } #players2:checked ~ #options label[for=players2] { background: #009630; border: 2px solid rgba(0, 0, 0, 0.1); color: white; } #players2:checked ~ #options label[for^=colors] span:nth-child(4) { display: none; } #players2:checked ~ #options label[for^=colors] span:nth-child(5) { display: none; } #colors2:checked ~ #options label[for=colors2] { opacity: 1; border: 0; } #colors2:checked ~ #options label[for=colors2] span { border: 1px solid #222; } #colors2:checked ~ #options label[for=colors2] span:first-child { border: 2px solid transparent; } #colors2:checked ~ #options label[for=colors2] span:first-child::before { background: radial-gradient(farthest-side, black 99%, #0000 0) no-repeat 35% 60%/15% 15%, radial-gradient(farthest-side, black 99%, #0000 0) no-repeat 65% 60%/15% 15%, radial-gradient(farthest-side at 50% 0, black 99%, #0000 0) no-repeat 50% 80%/20% 10%, conic-gradient(at 50% -20%, #0000 162deg, indianred 0 198deg, #0000 0) no-repeat 50% 0%/100% 85%, radial-gradient(farthest-side, indianred 99%, #0000 0) no-repeat 0% 100%/100% 20%; } #players3:checked ~ #options label[for=players3] { background: #009630; border: 2px solid rgba(0, 0, 0, 0.1); color: white; } #players3:checked ~ #options label[for^=colors] span:nth-child(5) { display: none; } #colors3:checked ~ #options label[for=colors3] { opacity: 1; border: 0; } #colors3:checked ~ #options label[for=colors3] span { border: 1px solid #222; } #colors3:checked ~ #options label[for=colors3] span:first-child { border: 2px solid transparent; } #colors3:checked ~ #options label[for=colors3] span:first-child::before { background: radial-gradient(farthest-side, black 99%, #0000 0) no-repeat 35% 60%/15% 15%, radial-gradient(farthest-side, black 99%, #0000 0) no-repeat 65% 60%/15% 15%, radial-gradient(farthest-side at 50% 0, black 99%, #0000 0) no-repeat 50% 80%/20% 10%, conic-gradient(at 50% -20%, #0000 162deg, indianred 0 198deg, #0000 0) no-repeat 50% 0%/100% 85%, radial-gradient(farthest-side, indianred 99%, #0000 0) no-repeat 0% 100%/100% 20%; } #players4:checked ~ #options label[for=players4] { background: #009630; border: 2px solid rgba(0, 0, 0, 0.1); color: white; } #colors4:checked ~ #options label[for=colors4] { opacity: 1; border: 0; } #colors4:checked ~ #options label[for=colors4] span { border: 1px solid #222; } #colors4:checked ~ #options label[for=colors4] span:first-child { border: 2px solid transparent; } #colors4:checked ~ #options label[for=colors4] span:first-child::before { background: radial-gradient(farthest-side, black 99%, #0000 0) no-repeat 35% 60%/15% 15%, radial-gradient(farthest-side, black 99%, #0000 0) no-repeat 65% 60%/15% 15%, radial-gradient(farthest-side at 50% 0, black 99%, #0000 0) no-repeat 50% 80%/20% 10%, conic-gradient(at 50% -20%, #0000 162deg, indianred 0 198deg, #0000 0) no-repeat 50% 0%/100% 85%, radial-gradient(farthest-side, indianred 99%, #0000 0) no-repeat 0% 100%/100% 20%; } #colors1:checked ~ #game #piece-player-1 { background: linear-gradient(69deg, #0000 30%, #da8 0 70%, #0000 0) no-repeat 27% 20%/10% 7%, conic-gradient(at 90% 100%, #0000 320deg, #da8 0 350deg, #0000 0) no-repeat 25% 27%/10% 7%, radial-gradient(farthest-side, #fff 90%, #0000 0) no-repeat 22% 50%/5% 5%, radial-gradient(farthest-side, #fff 90%, #0000 0) no-repeat 72% 50%/5% 5%, radial-gradient(farthest-side, #000 90%, #0000 0) no-repeat 20% 55%/20% 20%, radial-gradient(farthest-side, #000 90%, #0000 0) no-repeat 80% 55%/20% 20%, linear-gradient(to right, #000 7%, #0000 0 43%, #000 0 57%, #0000 0 93%, #000 0) no-repeat 0 52%/100% 2.5%, radial-gradient(circle at 25% 50%, #0000 22%, #000 0 25%, #0000 0) no-repeat 0 52%/100% 40%, radial-gradient(circle at 75% 50%, #0000 22%, #000 0 25%, #0000 0) no-repeat 0 52%/100% 40%, repeating-linear-gradient(to right, brown 0 20%, gold 0 40%) no-repeat 0 100%/100% 25%, linear-gradient(#0000 73%, #000 0 90%, #0000 0) no-repeat, radial-gradient(farthest-side, #642 99.9%, #0000 0) no-repeat -52% -60%/52% 60%, radial-gradient(farthest-side, #642 99.9%, #0000 0) no-repeat 300% -58%/90% 56%, radial-gradient(farthest-side, #fca 99.9%, #0000 0) no-repeat 320% -50%/90% 55%, radial-gradient(farthest-side, #642 99.9%, #0000 0) no-repeat 500% -52%/95% 55%, linear-gradient(#fca 0 0); } #colors1:checked ~ #game #piece-player-2 { background: linear-gradient(5deg, #0000 40%, #ffe 0 70%, #0000 0) no-repeat 15% 30%/30% 5%, linear-gradient(-5deg, #0000 40%, #ffe 0 70%, #0000 0) no-repeat 85% 30%/30% 5%, radial-gradient(farthest-side, #fff 90%, #0000 0) no-repeat 24% 45%/5% 5%, radial-gradient(farthest-side, #fff 90%, #0000 0) no-repeat 70% 45%/5% 5%, radial-gradient(farthest-side, #333 90%, #0000 0) no-repeat 23% 50%/20% 20%, radial-gradient(farthest-side, #333 90%, #0000 0) no-repeat 77% 50%/20% 20%, repeating-linear-gradient(to right, green 0 20%, #eee 0 40%) no-repeat 0 100%/100% 25%, linear-gradient(#0000 73%, #000 0 90%, #0000 0) no-repeat, radial-gradient(farthest-side, #ffe 99.9%, #0000 0) no-repeat -300% -70%/90% 50%, radial-gradient(farthest-side, #ffe 99.9%, #0000 0) no-repeat 400% -70%/90% 50%, linear-gradient(#f8d8b8 0 0); } #colors1:checked ~ #game #piece-player-3 { background: radial-gradient(farthest-side, #fff 90%, #0000 0) no-repeat 24% 45%/5% 5%, radial-gradient(farthest-side, #fff 90%, #0000 0) no-repeat 70% 45%/5% 5%, radial-gradient(farthest-side, #111 90%, #0000 0) no-repeat 23% 50%/20% 20%, radial-gradient(farthest-side, #111 90%, #0000 0) no-repeat 77% 50%/20% 20%, repeating-linear-gradient(to right, #203aa0 0 20%, #b94 0 40%) no-repeat 0 100%/100% 25%, linear-gradient(#0000 73%, #000 0 90%, #0000 0) no-repeat, radial-gradient(farthest-side, #432 99.9%, #0000 0) no-repeat -300% -70%/90% 50%, radial-gradient(farthest-side, #432 99.9%, #0000 0) no-repeat 400% -70%/90% 50%, radial-gradient(farthest-side, #ffe8b8 99.9%, #0000 0) no-repeat -350% -65%/90% 50%, radial-gradient(farthest-side, #ffe8b8 99.9%, #0000 0) no-repeat 450% -65%/90% 50%, radial-gradient(farthest-side, #432 99.9%, #0000 0) no-repeat 200% -55%/80% 48%, radial-gradient(farthest-side, #432 99.9%, #0000 0) no-repeat -150% -55%/86% 47%, radial-gradient(circle at 100% 0%, #0000 0 35%, #432 0 40%, #0000 0 50%, #432 0 55%, #0000 0 65%, #432 0 70%, #0000 0) no-repeat 13.5% 45%/20% 10%, radial-gradient(circle at 0% 0%, #0000 0 35%, #432 0 40%, #0000 0 50%, #432 0 55%, #0000 0 65%, #432 0 70%, #0000 0) no-repeat 87% 45%/20% 10%, linear-gradient(#ffe8b8 0 0); } #colors1:checked ~ #game #piece-player-4 { background: radial-gradient(farthest-side, #fff 90%, #0000 0) no-repeat 24% 48%/5% 5%, radial-gradient(farthest-side, #fff 90%, #0000 0) no-repeat 70% 48%/5% 5%, radial-gradient(farthest-side, #111 90%, #0000 0) no-repeat 23% 53%/20% 20%, radial-gradient(farthest-side, #111 90%, #0000 0) no-repeat 77% 53%/20% 20%, repeating-linear-gradient(to right, #222 0 20%, #fd0 0 40%) no-repeat 0 100%/100% 25%, linear-gradient(#0000 73%, #000 0 90%, #0000 0), radial-gradient(farthest-side, #111 99.9%, #0000 0) no-repeat -250% -70%/90% 50%, radial-gradient(farthest-side, #111 99.9%, #0000 0) no-repeat 300% -70%/90% 50%, radial-gradient(farthest-side, #963 99.9%, #0000 0) no-repeat -350% -65%/90% 50%, radial-gradient(farthest-side, #963 99.9%, #0000 0) no-repeat 450% -65%/90% 50%, radial-gradient(farthest-side, #111 99.9%, #0000 0) no-repeat 200% -55%/80% 48%, radial-gradient(farthest-side, #111 99.9%, #0000 0) no-repeat -150% -55%/86% 47%, radial-gradient(farthest-side at 52% 120%, #0000 70%, #111 0 99%, #0000 0) no-repeat 18% 32%/30% 10%, radial-gradient(farthest-side at 49% 120%, #0000 70%, #111 0 99%, #0000 0) no-repeat 82% 32%/30% 10%, linear-gradient(#963 0 0); } #colors2:checked ~ #game #piece-player-1 { background: linear-gradient(5deg, #0000 40%, #ffe 0 70%, #0000 0) no-repeat 15% 30%/30% 5%, linear-gradient(-5deg, #0000 40%, #ffe 0 70%, #0000 0) no-repeat 85% 30%/30% 5%, radial-gradient(farthest-side, #fff 90%, #0000 0) no-repeat 24% 45%/5% 5%, radial-gradient(farthest-side, #fff 90%, #0000 0) no-repeat 70% 45%/5% 5%, radial-gradient(farthest-side, #333 90%, #0000 0) no-repeat 23% 50%/20% 20%, radial-gradient(farthest-side, #333 90%, #0000 0) no-repeat 77% 50%/20% 20%, repeating-linear-gradient(to right, green 0 20%, #eee 0 40%) no-repeat 0 100%/100% 25%, linear-gradient(#0000 73%, #000 0 90%, #0000 0) no-repeat, radial-gradient(farthest-side, #ffe 99.9%, #0000 0) no-repeat -300% -70%/90% 50%, radial-gradient(farthest-side, #ffe 99.9%, #0000 0) no-repeat 400% -70%/90% 50%, linear-gradient(#f8d8b8 0 0); } #colors2:checked ~ #game #piece-player-2 { background: radial-gradient(farthest-side, #fff 90%, #0000 0) no-repeat 24% 45%/5% 5%, radial-gradient(farthest-side, #fff 90%, #0000 0) no-repeat 70% 45%/5% 5%, radial-gradient(farthest-side, #111 90%, #0000 0) no-repeat 23% 50%/20% 20%, radial-gradient(farthest-side, #111 90%, #0000 0) no-repeat 77% 50%/20% 20%, repeating-linear-gradient(to right, #203aa0 0 20%, #b94 0 40%) no-repeat 0 100%/100% 25%, linear-gradient(#0000 73%, #000 0 90%, #0000 0) no-repeat, radial-gradient(farthest-side, #432 99.9%, #0000 0) no-repeat -300% -70%/90% 50%, radial-gradient(farthest-side, #432 99.9%, #0000 0) no-repeat 400% -70%/90% 50%, radial-gradient(farthest-side, #ffe8b8 99.9%, #0000 0) no-repeat -350% -65%/90% 50%, radial-gradient(farthest-side, #ffe8b8 99.9%, #0000 0) no-repeat 450% -65%/90% 50%, radial-gradient(farthest-side, #432 99.9%, #0000 0) no-repeat 200% -55%/80% 48%, radial-gradient(farthest-side, #432 99.9%, #0000 0) no-repeat -150% -55%/86% 47%, radial-gradient(circle at 100% 0%, #0000 0 35%, #432 0 40%, #0000 0 50%, #432 0 55%, #0000 0 65%, #432 0 70%, #0000 0) no-repeat 13.5% 45%/20% 10%, radial-gradient(circle at 0% 0%, #0000 0 35%, #432 0 40%, #0000 0 50%, #432 0 55%, #0000 0 65%, #432 0 70%, #0000 0) no-repeat 87% 45%/20% 10%, linear-gradient(#ffe8b8 0 0); } #colors2:checked ~ #game #piece-player-3 { background: radial-gradient(farthest-side, #fff 90%, #0000 0) no-repeat 24% 48%/5% 5%, radial-gradient(farthest-side, #fff 90%, #0000 0) no-repeat 70% 48%/5% 5%, radial-gradient(farthest-side, #111 90%, #0000 0) no-repeat 23% 53%/20% 20%, radial-gradient(farthest-side, #111 90%, #0000 0) no-repeat 77% 53%/20% 20%, repeating-linear-gradient(to right, #222 0 20%, #fd0 0 40%) no-repeat 0 100%/100% 25%, linear-gradient(#0000 73%, #000 0 90%, #0000 0), radial-gradient(farthest-side, #111 99.9%, #0000 0) no-repeat -250% -70%/90% 50%, radial-gradient(farthest-side, #111 99.9%, #0000 0) no-repeat 300% -70%/90% 50%, radial-gradient(farthest-side, #963 99.9%, #0000 0) no-repeat -350% -65%/90% 50%, radial-gradient(farthest-side, #963 99.9%, #0000 0) no-repeat 450% -65%/90% 50%, radial-gradient(farthest-side, #111 99.9%, #0000 0) no-repeat 200% -55%/80% 48%, radial-gradient(farthest-side, #111 99.9%, #0000 0) no-repeat -150% -55%/86% 47%, radial-gradient(farthest-side at 52% 120%, #0000 70%, #111 0 99%, #0000 0) no-repeat 18% 32%/30% 10%, radial-gradient(farthest-side at 49% 120%, #0000 70%, #111 0 99%, #0000 0) no-repeat 82% 32%/30% 10%, linear-gradient(#963 0 0); } #colors2:checked ~ #game #piece-player-4 { background: linear-gradient(69deg, #0000 30%, #da8 0 70%, #0000 0) no-repeat 27% 20%/10% 7%, conic-gradient(at 90% 100%, #0000 320deg, #da8 0 350deg, #0000 0) no-repeat 25% 27%/10% 7%, radial-gradient(farthest-side, #fff 90%, #0000 0) no-repeat 22% 50%/5% 5%, radial-gradient(farthest-side, #fff 90%, #0000 0) no-repeat 72% 50%/5% 5%, radial-gradient(farthest-side, #000 90%, #0000 0) no-repeat 20% 55%/20% 20%, radial-gradient(farthest-side, #000 90%, #0000 0) no-repeat 80% 55%/20% 20%, linear-gradient(to right, #000 7%, #0000 0 43%, #000 0 57%, #0000 0 93%, #000 0) no-repeat 0 52%/100% 2.5%, radial-gradient(circle at 25% 50%, #0000 22%, #000 0 25%, #0000 0) no-repeat 0 52%/100% 40%, radial-gradient(circle at 75% 50%, #0000 22%, #000 0 25%, #0000 0) no-repeat 0 52%/100% 40%, repeating-linear-gradient(to right, brown 0 20%, gold 0 40%) no-repeat 0 100%/100% 25%, linear-gradient(#0000 73%, #000 0 90%, #0000 0) no-repeat, radial-gradient(farthest-side, #642 99.9%, #0000 0) no-repeat -52% -60%/52% 60%, radial-gradient(farthest-side, #642 99.9%, #0000 0) no-repeat 300% -58%/90% 56%, radial-gradient(farthest-side, #fca 99.9%, #0000 0) no-repeat 320% -50%/90% 55%, radial-gradient(farthest-side, #642 99.9%, #0000 0) no-repeat 500% -52%/95% 55%, linear-gradient(#fca 0 0); } #colors3:checked ~ #game #piece-player-1 { background: radial-gradient(farthest-side, #fff 90%, #0000 0) no-repeat 24% 45%/5% 5%, radial-gradient(farthest-side, #fff 90%, #0000 0) no-repeat 70% 45%/5% 5%, radial-gradient(farthest-side, #111 90%, #0000 0) no-repeat 23% 50%/20% 20%, radial-gradient(farthest-side, #111 90%, #0000 0) no-repeat 77% 50%/20% 20%, repeating-linear-gradient(to right, #203aa0 0 20%, #b94 0 40%) no-repeat 0 100%/100% 25%, linear-gradient(#0000 73%, #000 0 90%, #0000 0) no-repeat, radial-gradient(farthest-side, #432 99.9%, #0000 0) no-repeat -300% -70%/90% 50%, radial-gradient(farthest-side, #432 99.9%, #0000 0) no-repeat 400% -70%/90% 50%, radial-gradient(farthest-side, #ffe8b8 99.9%, #0000 0) no-repeat -350% -65%/90% 50%, radial-gradient(farthest-side, #ffe8b8 99.9%, #0000 0) no-repeat 450% -65%/90% 50%, radial-gradient(farthest-side, #432 99.9%, #0000 0) no-repeat 200% -55%/80% 48%, radial-gradient(farthest-side, #432 99.9%, #0000 0) no-repeat -150% -55%/86% 47%, radial-gradient(circle at 100% 0%, #0000 0 35%, #432 0 40%, #0000 0 50%, #432 0 55%, #0000 0 65%, #432 0 70%, #0000 0) no-repeat 13.5% 45%/20% 10%, radial-gradient(circle at 0% 0%, #0000 0 35%, #432 0 40%, #0000 0 50%, #432 0 55%, #0000 0 65%, #432 0 70%, #0000 0) no-repeat 87% 45%/20% 10%, linear-gradient(#ffe8b8 0 0); } #colors3:checked ~ #game #piece-player-2 { background: radial-gradient(farthest-side, #fff 90%, #0000 0) no-repeat 24% 48%/5% 5%, radial-gradient(farthest-side, #fff 90%, #0000 0) no-repeat 70% 48%/5% 5%, radial-gradient(farthest-side, #111 90%, #0000 0) no-repeat 23% 53%/20% 20%, radial-gradient(farthest-side, #111 90%, #0000 0) no-repeat 77% 53%/20% 20%, repeating-linear-gradient(to right, #222 0 20%, #fd0 0 40%) no-repeat 0 100%/100% 25%, linear-gradient(#0000 73%, #000 0 90%, #0000 0), radial-gradient(farthest-side, #111 99.9%, #0000 0) no-repeat -250% -70%/90% 50%, radial-gradient(farthest-side, #111 99.9%, #0000 0) no-repeat 300% -70%/90% 50%, radial-gradient(farthest-side, #963 99.9%, #0000 0) no-repeat -350% -65%/90% 50%, radial-gradient(farthest-side, #963 99.9%, #0000 0) no-repeat 450% -65%/90% 50%, radial-gradient(farthest-side, #111 99.9%, #0000 0) no-repeat 200% -55%/80% 48%, radial-gradient(farthest-side, #111 99.9%, #0000 0) no-repeat -150% -55%/86% 47%, radial-gradient(farthest-side at 52% 120%, #0000 70%, #111 0 99%, #0000 0) no-repeat 18% 32%/30% 10%, radial-gradient(farthest-side at 49% 120%, #0000 70%, #111 0 99%, #0000 0) no-repeat 82% 32%/30% 10%, linear-gradient(#963 0 0); } #colors3:checked ~ #game #piece-player-3 { background: linear-gradient(69deg, #0000 30%, #da8 0 70%, #0000 0) no-repeat 27% 20%/10% 7%, conic-gradient(at 90% 100%, #0000 320deg, #da8 0 350deg, #0000 0) no-repeat 25% 27%/10% 7%, radial-gradient(farthest-side, #fff 90%, #0000 0) no-repeat 22% 50%/5% 5%, radial-gradient(farthest-side, #fff 90%, #0000 0) no-repeat 72% 50%/5% 5%, radial-gradient(farthest-side, #000 90%, #0000 0) no-repeat 20% 55%/20% 20%, radial-gradient(farthest-side, #000 90%, #0000 0) no-repeat 80% 55%/20% 20%, linear-gradient(to right, #000 7%, #0000 0 43%, #000 0 57%, #0000 0 93%, #000 0) no-repeat 0 52%/100% 2.5%, radial-gradient(circle at 25% 50%, #0000 22%, #000 0 25%, #0000 0) no-repeat 0 52%/100% 40%, radial-gradient(circle at 75% 50%, #0000 22%, #000 0 25%, #0000 0) no-repeat 0 52%/100% 40%, repeating-linear-gradient(to right, brown 0 20%, gold 0 40%) no-repeat 0 100%/100% 25%, linear-gradient(#0000 73%, #000 0 90%, #0000 0) no-repeat, radial-gradient(farthest-side, #642 99.9%, #0000 0) no-repeat -52% -60%/52% 60%, radial-gradient(farthest-side, #642 99.9%, #0000 0) no-repeat 300% -58%/90% 56%, radial-gradient(farthest-side, #fca 99.9%, #0000 0) no-repeat 320% -50%/90% 55%, radial-gradient(farthest-side, #642 99.9%, #0000 0) no-repeat 500% -52%/95% 55%, linear-gradient(#fca 0 0); } #colors3:checked ~ #game #piece-player-4 { background: linear-gradient(5deg, #0000 40%, #ffe 0 70%, #0000 0) no-repeat 15% 30%/30% 5%, linear-gradient(-5deg, #0000 40%, #ffe 0 70%, #0000 0) no-repeat 85% 30%/30% 5%, radial-gradient(farthest-side, #fff 90%, #0000 0) no-repeat 24% 45%/5% 5%, radial-gradient(farthest-side, #fff 90%, #0000 0) no-repeat 70% 45%/5% 5%, radial-gradient(farthest-side, #333 90%, #0000 0) no-repeat 23% 50%/20% 20%, radial-gradient(farthest-side, #333 90%, #0000 0) no-repeat 77% 50%/20% 20%, repeating-linear-gradient(to right, green 0 20%, #eee 0 40%) no-repeat 0 100%/100% 25%, linear-gradient(#0000 73%, #000 0 90%, #0000 0) no-repeat, radial-gradient(farthest-side, #ffe 99.9%, #0000 0) no-repeat -300% -70%/90% 50%, radial-gradient(farthest-side, #ffe 99.9%, #0000 0) no-repeat 400% -70%/90% 50%, linear-gradient(#f8d8b8 0 0); } #colors4:checked ~ #game #piece-player-1 { background: radial-gradient(farthest-side, #fff 90%, #0000 0) no-repeat 24% 48%/5% 5%, radial-gradient(farthest-side, #fff 90%, #0000 0) no-repeat 70% 48%/5% 5%, radial-gradient(farthest-side, #111 90%, #0000 0) no-repeat 23% 53%/20% 20%, radial-gradient(farthest-side, #111 90%, #0000 0) no-repeat 77% 53%/20% 20%, repeating-linear-gradient(to right, #222 0 20%, #fd0 0 40%) no-repeat 0 100%/100% 25%, linear-gradient(#0000 73%, #000 0 90%, #0000 0), radial-gradient(farthest-side, #111 99.9%, #0000 0) no-repeat -250% -70%/90% 50%, radial-gradient(farthest-side, #111 99.9%, #0000 0) no-repeat 300% -70%/90% 50%, radial-gradient(farthest-side, #963 99.9%, #0000 0) no-repeat -350% -65%/90% 50%, radial-gradient(farthest-side, #963 99.9%, #0000 0) no-repeat 450% -65%/90% 50%, radial-gradient(farthest-side, #111 99.9%, #0000 0) no-repeat 200% -55%/80% 48%, radial-gradient(farthest-side, #111 99.9%, #0000 0) no-repeat -150% -55%/86% 47%, radial-gradient(farthest-side at 52% 120%, #0000 70%, #111 0 99%, #0000 0) no-repeat 18% 32%/30% 10%, radial-gradient(farthest-side at 49% 120%, #0000 70%, #111 0 99%, #0000 0) no-repeat 82% 32%/30% 10%, linear-gradient(#963 0 0); } #colors4:checked ~ #game #piece-player-2 { background: linear-gradient(69deg, #0000 30%, #da8 0 70%, #0000 0) no-repeat 27% 20%/10% 7%, conic-gradient(at 90% 100%, #0000 320deg, #da8 0 350deg, #0000 0) no-repeat 25% 27%/10% 7%, radial-gradient(farthest-side, #fff 90%, #0000 0) no-repeat 22% 50%/5% 5%, radial-gradient(farthest-side, #fff 90%, #0000 0) no-repeat 72% 50%/5% 5%, radial-gradient(farthest-side, #000 90%, #0000 0) no-repeat 20% 55%/20% 20%, radial-gradient(farthest-side, #000 90%, #0000 0) no-repeat 80% 55%/20% 20%, linear-gradient(to right, #000 7%, #0000 0 43%, #000 0 57%, #0000 0 93%, #000 0) no-repeat 0 52%/100% 2.5%, radial-gradient(circle at 25% 50%, #0000 22%, #000 0 25%, #0000 0) no-repeat 0 52%/100% 40%, radial-gradient(circle at 75% 50%, #0000 22%, #000 0 25%, #0000 0) no-repeat 0 52%/100% 40%, repeating-linear-gradient(to right, brown 0 20%, gold 0 40%) no-repeat 0 100%/100% 25%, linear-gradient(#0000 73%, #000 0 90%, #0000 0) no-repeat, radial-gradient(farthest-side, #642 99.9%, #0000 0) no-repeat -52% -60%/52% 60%, radial-gradient(farthest-side, #642 99.9%, #0000 0) no-repeat 300% -58%/90% 56%, radial-gradient(farthest-side, #fca 99.9%, #0000 0) no-repeat 320% -50%/90% 55%, radial-gradient(farthest-side, #642 99.9%, #0000 0) no-repeat 500% -52%/95% 55%, linear-gradient(#fca 0 0); } #colors4:checked ~ #game #piece-player-3 { background: linear-gradient(5deg, #0000 40%, #ffe 0 70%, #0000 0) no-repeat 15% 30%/30% 5%, linear-gradient(-5deg, #0000 40%, #ffe 0 70%, #0000 0) no-repeat 85% 30%/30% 5%, radial-gradient(farthest-side, #fff 90%, #0000 0) no-repeat 24% 45%/5% 5%, radial-gradient(farthest-side, #fff 90%, #0000 0) no-repeat 70% 45%/5% 5%, radial-gradient(farthest-side, #333 90%, #0000 0) no-repeat 23% 50%/20% 20%, radial-gradient(farthest-side, #333 90%, #0000 0) no-repeat 77% 50%/20% 20%, repeating-linear-gradient(to right, green 0 20%, #eee 0 40%) no-repeat 0 100%/100% 25%, linear-gradient(#0000 73%, #000 0 90%, #0000 0) no-repeat, radial-gradient(farthest-side, #ffe 99.9%, #0000 0) no-repeat -300% -70%/90% 50%, radial-gradient(farthest-side, #ffe 99.9%, #0000 0) no-repeat 400% -70%/90% 50%, linear-gradient(#f8d8b8 0 0); } #colors4:checked ~ #game #piece-player-4 { background: radial-gradient(farthest-side, #fff 90%, #0000 0) no-repeat 24% 45%/5% 5%, radial-gradient(farthest-side, #fff 90%, #0000 0) no-repeat 70% 45%/5% 5%, radial-gradient(farthest-side, #111 90%, #0000 0) no-repeat 23% 50%/20% 20%, radial-gradient(farthest-side, #111 90%, #0000 0) no-repeat 77% 50%/20% 20%, repeating-linear-gradient(to right, #203aa0 0 20%, #b94 0 40%) no-repeat 0 100%/100% 25%, linear-gradient(#0000 73%, #000 0 90%, #0000 0) no-repeat, radial-gradient(farthest-side, #432 99.9%, #0000 0) no-repeat -300% -70%/90% 50%, radial-gradient(farthest-side, #432 99.9%, #0000 0) no-repeat 400% -70%/90% 50%, radial-gradient(farthest-side, #ffe8b8 99.9%, #0000 0) no-repeat -350% -65%/90% 50%, radial-gradient(farthest-side, #ffe8b8 99.9%, #0000 0) no-repeat 450% -65%/90% 50%, radial-gradient(farthest-side, #432 99.9%, #0000 0) no-repeat 200% -55%/80% 48%, radial-gradient(farthest-side, #432 99.9%, #0000 0) no-repeat -150% -55%/86% 47%, radial-gradient(circle at 100% 0%, #0000 0 35%, #432 0 40%, #0000 0 50%, #432 0 55%, #0000 0 65%, #432 0 70%, #0000 0) no-repeat 13.5% 45%/20% 10%, radial-gradient(circle at 0% 0%, #0000 0 35%, #432 0 40%, #0000 0 50%, #432 0 55%, #0000 0 65%, #432 0 70%, #0000 0) no-repeat 87% 45%/20% 10%, linear-gradient(#ffe8b8 0 0); } /** info pop-up **/ #info { display: none; } #info .box { width: 75%; max-width: none; } #info .box p:last-child { text-align: right; } #info .box #close-button { display: inline-block; background: #396; border-radius: 3px; color: white; padding: 6px 1rem; cursor: pointer; transition: background 0.5s; } #info .box #close-button:hover { background: #2d8659; } #show-info:checked ~ #info { display: block; } /** Instructions **/ #instructions { position: fixed; z-index: 9999; background-color: rgba(0, 0, 0, 0.01); top: 0; left: 0; width: 100%; height: 100%; display: none; } #instructions #go-to-game { position: absolute; bottom: 1rem; right: 1rem; font-size: 1rem; z-index: 3; color: white; cursor: pointer; } #instructions #step { display: none; position: absolute; box-shadow: 0 0 50px calc(200vmax) rgba(0, 0, 0, 0.85), inset 0 0 4px 0 black; transform: translate(-1rem, -1rem); border-radius: 100%; z-index: 1; top: 0; left: 1rem; width: calc(100px + 2rem); height: calc(6rem); transition: all 0.75s; } #instructions #step div { position: absolute; bottom: -0.5rem; line-height: 1.1rem; font-size: 1rem; color: rgba(255, 255, 255, 0.8); left: 1rem; width: 80vmin; transform: translate(0, 100%); -webkit-transform: translate(0, 100%); } #instructions #step div label { display: none; font-weight: bold; cursor: pointer; text-decoration: underline; } #instructions #step div label:hover { text-decoration: none; } #instructions #step div label:not([for=game-time])::before { content: "Next ›"; } [name=show-instructions]:checked ~ #instructions, [name=show-instructions]:checked ~ #game, [name=show-instructions]:checked ~ #action, [name=show-instructions]:checked ~ #instructions #step { display: block; } #show-instructions-1:checked ~ #instructions label[for=show-instructions-2] { display: inline-block; } #show-instructions-2:checked ~ #instructions label[for=show-instructions-3] { display: inline-block; } #show-instructions-3:checked ~ #instructions label[for=show-instructions-4] { display: inline-block; } #show-instructions-4:checked ~ #instructions label[for=show-instructions-5] { display: inline-block; } #show-instructions-5:checked ~ #instructions label[for=game-time] { display: inline-block; } #show-instructions-1:checked ~ #instructions #step { top: 0; left: 1rem; width: calc(100px + 2rem); height: calc(6rem); } #show-instructions-1:checked ~ #instructions #step div::before { content: "This area indicates whose turn it is at any given moment."; } #show-instructions-2:checked ~ #instructions #step { top: 6rem; left: 1rem; width: 5rem; height: 5rem; } #show-instructions-2:checked ~ #instructions #step div::before { content: "The active player clicks here to roll the dice."; } #show-instructions-3:checked ~ #instructions #step { top: 50%; left: 50%; width: 30vw; height: 30vw; max-width: 500px; max-height: 500px; transform: translate(-50%, -50%); -webkit-transform: translate(-50%, -50%); } #show-instructions-3:checked ~ #instructions #step div { transform: translate(-20vmin, 100%); -webkit-transform: translate(-20vmin, 100%); left: 0; } #show-instructions-3:checked ~ #instructions #step div::before { content: "The player's piece will advance on the board once the dice is rolled. If the piece falls on a tile with a basilisk's head, it will fall down to the basilisk's tail. If it falls on a broom's bottom, it will go up to the top."; } #show-instructions-4:checked ~ #instructions #step { top: 0; left: calc(100px + 2rem); width: calc(100px + 2rem); height: calc(6rem); } #show-instructions-4:checked ~ #instructions #step div::before { content: "After that, click on the button to go to the next player's turn."; } #show-instructions-5:checked ~ #instructions #step { top: 0; left: calc(100vw - 100px - 1rem); width: calc(100px + 2rem); height: calc(6rem); } #show-instructions-5:checked ~ #instructions #step div { left: auto; right: 0rem; } #show-instructions-5:checked ~ #instructions #step div::before { content: "If you want more information during the game, click on this button."; } #game-time:checked ~ #instructions { display: none; } /** game screen: board, dice, messages **/ .dice { position: absolute; display: none; visibility: visible; top: 6rem; left: 1rem; width: 3rem; height: 3rem; background: white; border-radius: 3px; box-shadow: 0 1.5em 0.5em -1em rgba(0, 0, 0, 0.042); z-index: 1; } .dice::before { content: ""; display: block; height: 100%; width: 100%; font-size: 0.8rem; box-sizing: border-box; cursor: pointer; padding-top: 0.5rem; background-repeat: no-repeat; background-position: center center; } #turn1:checked ~ .game-time:checked ~ [name=cb-player1]:checked + label + input + label, #turn1:checked ~ .game-time:checked ~ [name=cb-player1]:checked + label + input + label + input + label, #turn1:checked ~ .game-time:checked ~ [name=cb-player1]:checked + label + input + label + input + label + input + label, #turn1:checked ~ .game-time:checked ~ [name=cb-player1]:checked + label + input + label + input + label + input + label + input + label, #turn1:checked ~ .game-time:checked ~ [name=cb-player1]:checked + label + input + label + input + label + input + label + input + label + input + label, #turn1:checked ~ .game-time:checked ~ [name=cb-player1]:checked + label + input + label + input + label + input + label + input + label + input + label + input + label { display: block; left: 1rem; text-align: center; animation: changeOrder 0.6s infinite; -webkit-animation: changeOrder 0.6s infinite; } #turn2:checked ~ .game-time:checked ~ [name=cb-player2]:checked + label + input + label, #turn2:checked ~ .game-time:checked ~ [name=cb-player2]:checked + label + input + label + input + label, #turn2:checked ~ .game-time:checked ~ [name=cb-player2]:checked + label + input + label + input + label + input + label, #turn2:checked ~ .game-time:checked ~ [name=cb-player2]:checked + label + input + label + input + label + input + label + input + label, #turn2:checked ~ .game-time:checked ~ [name=cb-player2]:checked + label + input + label + input + label + input + label + input + label + input + label, #turn2:checked ~ .game-time:checked ~ [name=cb-player2]:checked + label + input + label + input + label + input + label + input + label + input + label + input + label { display: block; left: 1rem; text-align: center; animation: changeOrder 0.6s infinite; -webkit-animation: changeOrder 0.6s infinite; } #turn3:checked ~ .game-time:checked ~ [name=cb-player3]:checked + label + input + label, #turn3:checked ~ .game-time:checked ~ [name=cb-player3]:checked + label + input + label + input + label, #turn3:checked ~ .game-time:checked ~ [name=cb-player3]:checked + label + input + label + input + label + input + label, #turn3:checked ~ .game-time:checked ~ [name=cb-player3]:checked + label + input + label + input + label + input + label + input + label, #turn3:checked ~ .game-time:checked ~ [name=cb-player3]:checked + label + input + label + input + label + input + label + input + label + input + label, #turn3:checked ~ .game-time:checked ~ [name=cb-player3]:checked + label + input + label + input + label + input + label + input + label + input + label + input + label { display: block; left: 1rem; text-align: center; animation: changeOrder 0.6s infinite; -webkit-animation: changeOrder 0.6s infinite; } #turn4:checked ~ .game-time:checked ~ [name=cb-player4]:checked + label + input + label, #turn4:checked ~ .game-time:checked ~ [name=cb-player4]:checked + label + input + label + input + label, #turn4:checked ~ .game-time:checked ~ [name=cb-player4]:checked + label + input + label + input + label + input + label, #turn4:checked ~ .game-time:checked ~ [name=cb-player4]:checked + label + input + label + input + label + input + label + input + label, #turn4:checked ~ .game-time:checked ~ [name=cb-player4]:checked + label + input + label + input + label + input + label + input + label + input + label, #turn4:checked ~ .game-time:checked ~ [name=cb-player4]:checked + label + input + label + input + label + input + label + input + label + input + label + input + label { display: block; left: 1rem; text-align: center; animation: changeOrder 0.6s infinite; -webkit-animation: changeOrder 0.6s infinite; } #turn1:checked ~ [name=cb-player1]:checked + label + input + label { animation-delay: 0s !important; } #turn1:checked ~ [name=cb-player1]:checked + label + input + label + input + label { animation-delay: -0.1s !important; } #turn1:checked ~ [name=cb-player1]:checked + label + input + label + input + label + input + label { animation-delay: -0.2s !important; } #turn1:checked ~ [name=cb-player1]:checked + label + input + label + input + label + input + label + input + label { animation-delay: -0.3s !important; } #turn1:checked ~ [name=cb-player1]:checked + label + input + label + input + label + input + label + input + label + input + label { animation-delay: -0.4s !important; } #turn1:checked ~ [name=cb-player1]:checked + label + input + label + input + label + input + label + input + label + input + label + input + label { animation-delay: -0.5s !important; } #turn2:checked ~ [name=cb-player2]:checked + label + input + label { animation-delay: 0s !important; } #turn2:checked ~ [name=cb-player2]:checked + label + input + label + input + label { animation-delay: -0.1s !important; } #turn2:checked ~ [name=cb-player2]:checked + label + input + label + input + label + input + label { animation-delay: -0.2s !important; } #turn2:checked ~ [name=cb-player2]:checked + label + input + label + input + label + input + label + input + label { animation-delay: -0.3s !important; } #turn2:checked ~ [name=cb-player2]:checked + label + input + label + input + label + input + label + input + label + input + label { animation-delay: -0.4s !important; } #turn2:checked ~ [name=cb-player2]:checked + label + input + label + input + label + input + label + input + label + input + label + input + label { animation-delay: -0.5s !important; } #turn3:checked ~ [name=cb-player3]:checked + label + input + label { animation-delay: 0s !important; } #turn3:checked ~ [name=cb-player3]:checked + label + input + label + input + label { animation-delay: -0.1s !important; } #turn3:checked ~ [name=cb-player3]:checked + label + input + label + input + label + input + label { animation-delay: -0.2s !important; } #turn3:checked ~ [name=cb-player3]:checked + label + input + label + input + label + input + label + input + label { animation-delay: -0.3s !important; } #turn3:checked ~ [name=cb-player3]:checked + label + input + label + input + label + input + label + input + label + input + label { animation-delay: -0.4s !important; } #turn3:checked ~ [name=cb-player3]:checked + label + input + label + input + label + input + label + input + label + input + label + input + label { animation-delay: -0.5s !important; } #turn4:checked ~ [name=cb-player4]:checked + label + input + label { animation-delay: 0s !important; } #turn4:checked ~ [name=cb-player4]:checked + label + input + label + input + label { animation-delay: -0.1s !important; } #turn4:checked ~ [name=cb-player4]:checked + label + input + label + input + label + input + label { animation-delay: -0.2s !important; } #turn4:checked ~ [name=cb-player4]:checked + label + input + label + input + label + input + label + input + label { animation-delay: -0.3s !important; } #turn4:checked ~ [name=cb-player4]:checked + label + input + label + input + label + input + label + input + label + input + label { animation-delay: -0.4s !important; } #turn4:checked ~ [name=cb-player4]:checked + label + input + label + input + label + input + label + input + label + input + label + input + label { animation-delay: -0.5s !important; } #turn1:checked ~ [name=cb-player1]:checked + label + input + label::before { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'><circle cx='50' cy='50' r='8' /></svg>"); } #turn1:checked ~ [name=cb-player1]:checked + label + input + label + input + label::before { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'><circle cx='23' cy='77' r='8' /><circle cx='77' cy='23' r='8' /></svg>"); } #turn1:checked ~ [name=cb-player1]:checked + label + input + label + input + label + input + label::before { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'><circle cx='23' cy='77' r='8' /><circle cx='77' cy='23' r='8' /><circle cx='50' cy='50' r='8' /></svg>"); } #turn1:checked ~ [name=cb-player1]:checked + label + input + label + input + label + input + label + input + label::before { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'><circle cx='23' cy='23' r='8' /><circle cx='77' cy='23' r='8' /><circle cx='77' cy='77' r='8' /><circle cx='23' cy='77' r='8' /></svg>"); } #turn1:checked ~ [name=cb-player1]:checked + label + input + label + input + label + input + label + input + label + input + label::before { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'><circle cx='23' cy='23' r='8' /><circle cx='77' cy='23' r='8' /><circle cx='77' cy='77' r='8' /><circle cx='23' cy='77' r='8' /><circle cx='50' cy='50' r='8' /></svg>"); } #turn1:checked ~ [name=cb-player1]:checked + label + input + label + input + label + input + label + input + label + input + label + input + label::before { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'><circle cx='23' cy='23' r='8' /><circle cx='77' cy='23' r='8' /><circle cx='77' cy='77' r='8' /><circle cx='23' cy='77' r='8' /><circle cx='23' cy='50' r='8' /><circle cx='77' cy='50' r='8' /></svg>"); } #turn2:checked ~ [name=cb-player2]:checked + label + input + label::before { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'><circle cx='50' cy='50' r='8' /></svg>"); } #turn2:checked ~ [name=cb-player2]:checked + label + input + label + input + label::before { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'><circle cx='23' cy='77' r='8' /><circle cx='77' cy='23' r='8' /></svg>"); } #turn2:checked ~ [name=cb-player2]:checked + label + input + label + input + label + input + label::before { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'><circle cx='23' cy='77' r='8' /><circle cx='77' cy='23' r='8' /><circle cx='50' cy='50' r='8' /></svg>"); } #turn2:checked ~ [name=cb-player2]:checked + label + input + label + input + label + input + label + input + label::before { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'><circle cx='23' cy='23' r='8' /><circle cx='77' cy='23' r='8' /><circle cx='77' cy='77' r='8' /><circle cx='23' cy='77' r='8' /></svg>"); } #turn2:checked ~ [name=cb-player2]:checked + label + input + label + input + label + input + label + input + label + input + label::before { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'><circle cx='23' cy='23' r='8' /><circle cx='77' cy='23' r='8' /><circle cx='77' cy='77' r='8' /><circle cx='23' cy='77' r='8' /><circle cx='50' cy='50' r='8' /></svg>"); } #turn2:checked ~ [name=cb-player2]:checked + label + input + label + input + label + input + label + input + label + input + label + input + label::before { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'><circle cx='23' cy='23' r='8' /><circle cx='77' cy='23' r='8' /><circle cx='77' cy='77' r='8' /><circle cx='23' cy='77' r='8' /><circle cx='23' cy='50' r='8' /><circle cx='77' cy='50' r='8' /></svg>"); } #turn3:checked ~ [name=cb-player3]:checked + label + input + label::before { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'><circle cx='50' cy='50' r='8' /></svg>"); } #turn3:checked ~ [name=cb-player3]:checked + label + input + label + input + label::before { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'><circle cx='23' cy='77' r='8' /><circle cx='77' cy='23' r='8' /></svg>"); } #turn3:checked ~ [name=cb-player3]:checked + label + input + label + input + label + input + label::before { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'><circle cx='23' cy='77' r='8' /><circle cx='77' cy='23' r='8' /><circle cx='50' cy='50' r='8' /></svg>"); } #turn3:checked ~ [name=cb-player3]:checked + label + input + label + input + label + input + label + input + label::before { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'><circle cx='23' cy='23' r='8' /><circle cx='77' cy='23' r='8' /><circle cx='77' cy='77' r='8' /><circle cx='23' cy='77' r='8' /></svg>"); } #turn3:checked ~ [name=cb-player3]:checked + label + input + label + input + label + input + label + input + label + input + label::before { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'><circle cx='23' cy='23' r='8' /><circle cx='77' cy='23' r='8' /><circle cx='77' cy='77' r='8' /><circle cx='23' cy='77' r='8' /><circle cx='50' cy='50' r='8' /></svg>"); } #turn3:checked ~ [name=cb-player3]:checked + label + input + label + input + label + input + label + input + label + input + label + input + label::before { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'><circle cx='23' cy='23' r='8' /><circle cx='77' cy='23' r='8' /><circle cx='77' cy='77' r='8' /><circle cx='23' cy='77' r='8' /><circle cx='23' cy='50' r='8' /><circle cx='77' cy='50' r='8' /></svg>"); } #turn4:checked ~ [name=cb-player4]:checked + label + input + label::before { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'><circle cx='50' cy='50' r='8' /></svg>"); } #turn4:checked ~ [name=cb-player4]:checked + label + input + label + input + label::before { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'><circle cx='23' cy='77' r='8' /><circle cx='77' cy='23' r='8' /></svg>"); } #turn4:checked ~ [name=cb-player4]:checked + label + input + label + input + label + input + label::before { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'><circle cx='23' cy='77' r='8' /><circle cx='77' cy='23' r='8' /><circle cx='50' cy='50' r='8' /></svg>"); } #turn4:checked ~ [name=cb-player4]:checked + label + input + label + input + label + input + label + input + label::before { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'><circle cx='23' cy='23' r='8' /><circle cx='77' cy='23' r='8' /><circle cx='77' cy='77' r='8' /><circle cx='23' cy='77' r='8' /></svg>"); } #turn4:checked ~ [name=cb-player4]:checked + label + input + label + input + label + input + label + input + label + input + label::before { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'><circle cx='23' cy='23' r='8' /><circle cx='77' cy='23' r='8' /><circle cx='77' cy='77' r='8' /><circle cx='23' cy='77' r='8' /><circle cx='50' cy='50' r='8' /></svg>"); } #turn4:checked ~ [name=cb-player4]:checked + label + input + label + input + label + input + label + input + label + input + label + input + label::before { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'><circle cx='23' cy='23' r='8' /><circle cx='77' cy='23' r='8' /><circle cx='77' cy='77' r='8' /><circle cx='23' cy='77' r='8' /><circle cx='23' cy='50' r='8' /><circle cx='77' cy='50' r='8' /></svg>"); } label.dice:active { position: static !important; margin-left: 50px !important; background: none !important; font-size: 0; } label.dice:active::before { content: ""; position: absolute; top: 0; right: -50px; left: 0; bottom: 0; z-index: 200; } #game { display: none; } #game .tab { position: absolute; top: 0; background: white; border-radius: 0 0 3px 3px; box-shadow: 0 1.5em 0.5em -1em rgba(0, 0, 0, 0.25); z-index: 9; float: left; margin-left: 1rem; } #game .tab::before { text-align: center; display: block; padding: 6px 16px; color: white; background: #741; height: 0.7rem; line-height: 0.7rem; font-size: 0.75rem; font-weight: bold; white-space: nowrap; text-transform: uppercase; font-size: 0.95rem; } #game .tab::after, #game .tab#player-info span { display: block; text-align: center; padding: 6px 16px; height: 2rem; line-height: 1.9rem; white-space: nowrap; } #game .tab#player-info { min-width: 100px; } #game .tab#player-info::before { content: "Turn"; } #game .tab#player-info span { font-weight: bolder; } #game .tab#player-info span::before { content: "● "; } #game .tab#player-info span::after { content: " 1"; font-weight: bolder; } #game .tab#dice { cursor: pointer; } #game .tab#dice::before { content: "Dice"; } #game .tab#dice::after { content: "Roll"; } #game .tab#more-info { cursor: pointer; left: auto; right: 1rem; width: 100px; z-index: 1; } #game .tab#more-info::before { content: "About"; } #game .tab#more-info::after { content: "More info"; } #game .tab#action { cursor: pointer; left: calc(100px + 1rem); width: 100px; } #game .tab#action::before { content: "Action"; } #game .tab#action::after { content: "Next player"; } #game .tab#action label { position: absolute; top: 0; left: 0; bottom: 0; right: 0; cursor: pointer; } #game #board { width: 70%; max-width: 500px; border: 3px solid #741; border-radius: 6px; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); -webkit-transform: translate(-50%, -50%); background: white; margin-top: 2.5rem; box-shadow: 0 1.5em 0.5em -1em rgba(0, 0, 0, 0.25); } #game #board .tile { float: left; width: 10%; position: relative; height: 0; padding-top: 10%; box-sizing: border-box; border-left: 1px solid rgba(0, 0, 0, 0.1); border-right: 1px solid rgba(0, 0, 0, 0.1); border-top: 1px solid black; border-bottom: 1px solid black; background: #cee8d7; } #game #board .tile::before { content: attr(data-index); position: absolute; top: 0rem; left: 0.15rem; font-size: 0.66rem; } #game #board .tile.tile6::before, #game #board .tile.tile12::before, #game #board .tile.tile18::before, #game #board .tile.tile22::before, #game #board .tile.tile23::before, #game #board .tile.tile28::before, #game #board .tile.tile30::before, #game #board .tile.tile34::before, #game #board .tile.tile36::before, #game #board .tile.tile39::before, #game #board .tile.tile55::before, #game #board .tile.tile79::before { left: auto; right: 0.15rem; } #game #board .tile.tile52::before { top: auto; bottom: 0rem; } #game #board .tile.tile76::before { left: 0.6rem; } #game #board .tile1 { border-bottom: 1px solid transparent; } #game #board .tile91 { border-top: 1px solid transparent; } #game #board .tile10 { border-top: 1px solid rgba(0, 0, 0, 0.1); } #game #board .tile11 { border-bottom: 1px solid rgba(0, 0, 0, 0.1); } #game #board .tile2 { border-bottom: 1px solid transparent; } #game #board .tile92 { border-top: 1px solid transparent; } #game #board .tile20 { border-top: 1px solid rgba(0, 0, 0, 0.1); } #game #board .tile21 { border-bottom: 1px solid rgba(0, 0, 0, 0.1); } #game #board .tile3 { border-bottom: 1px solid transparent; } #game #board .tile93 { border-top: 1px solid transparent; } #game #board .tile30 { border-top: 1px solid rgba(0, 0, 0, 0.1); } #game #board .tile31 { border-bottom: 1px solid rgba(0, 0, 0, 0.1); } #game #board .tile4 { border-bottom: 1px solid transparent; } #game #board .tile94 { border-top: 1px solid transparent; } #game #board .tile40 { border-top: 1px solid rgba(0, 0, 0, 0.1); } #game #board .tile41 { border-bottom: 1px solid rgba(0, 0, 0, 0.1); } #game #board .tile5 { border-bottom: 1px solid transparent; } #game #board .tile95 { border-top: 1px solid transparent; } #game #board .tile50 { border-top: 1px solid rgba(0, 0, 0, 0.1); } #game #board .tile51 { border-bottom: 1px solid rgba(0, 0, 0, 0.1); } #game #board .tile6 { border-bottom: 1px solid transparent; } #game #board .tile96 { border-top: 1px solid transparent; } #game #board .tile60 { border-top: 1px solid rgba(0, 0, 0, 0.1); } #game #board .tile61 { border-bottom: 1px solid rgba(0, 0, 0, 0.1); } #game #board .tile7 { border-bottom: 1px solid transparent; } #game #board .tile97 { border-top: 1px solid transparent; } #game #board .tile70 { border-top: 1px solid rgba(0, 0, 0, 0.1); } #game #board .tile71 { border-bottom: 1px solid rgba(0, 0, 0, 0.1); } #game #board .tile8 { border-bottom: 1px solid transparent; } #game #board .tile98 { border-top: 1px solid transparent; } #game #board .tile80 { border-top: 1px solid rgba(0, 0, 0, 0.1); } #game #board .tile81 { border-bottom: 1px solid rgba(0, 0, 0, 0.1); } #game #board .tile9 { border-bottom: 1px solid transparent; } #game #board .tile99 { border-top: 1px solid transparent; } #game #board .tile90 { border-top: 1px solid rgba(0, 0, 0, 0.1); } #game #board .tile91 { border-bottom: 1px solid rgba(0, 0, 0, 0.1); } #game #board .tile10 { border-bottom: 1px solid transparent; } #game #board .tile100 { border-top: 1px solid transparent; } #game #board .tile100 { border-top: 1px solid rgba(0, 0, 0, 0.1); } #game #board .tile101 { border-bottom: 1px solid rgba(0, 0, 0, 0.1); } #game #board .tile1, #game #board .tile15, #game #board .tile24, #game #board .tile38, #game #board .tile49, #game #board .tile55, #game #board .tile65, #game #board .tile76, #game #board .tile86, #game #board .tile94 { background: #fadbe5; } #game #board .tile2, #game #board .tile16, #game #board .tile23, #game #board .tile35, #game #board .tile42, #game #board .tile56, #game #board .tile64, #game #board .tile79, #game #board .tile87, #game #board .tile93 { background: #ecf3ff; } #game #board .tile3, #game #board .tile18, #game #board .tile26, #game #board .tile33, #game #board .tile41, #game #board .tile58, #game #board .tile68, #game #board .tile78, #game #board .tile81, #game #board .tile96 { background: #feeadb; } #game #board .tile4, #game #board .tile11, #game #board .tile29, #game #board .tile40, #game #board .tile47, #game #board .tile51, #game #board .tile61, #game #board .tile77, #game #board .tile88, #game #board .tile99 { background: #eee2ef; } #game #board .tile5, #game #board .tile19, #game #board .tile27, #game #board .tile32, #game #board .tile44, #game #board .tile59, #game #board .tile69, #game #board .tile80, #game #board .tile89, #game #board .tile97 { background: #bbe7f8; } #game #board .tile6, #game #board .tile20, #game #board .tile28, #game #board .tile31, #game #board .tile45, #game #board .tile60, #game #board .tile70, #game #board .tile75, #game #board .tile85, #game #board .tile98 { background: #fffcdb; } #game #board .tile7, #game #board .tile13, #game #board .tile21, #game #board .tile36, #game #board .tile50, #game #board .tile53, #game #board .tile63, #game #board .tile74, #game #board .tile84, #game #board .tile91 { background: #d2effe; } #game #board .tile8, #game #board .tile12, #game #board .tile30, #game #board .tile39, #game #board .tile46, #game #board .tile52, #game #board .tile62, #game #board .tile73, #game #board .tile90, #game #board .tile100 { background: #f3ddb2; } #game #board .tile9, #game #board .tile14, #game #board .tile22, #game #board .tile37, #game #board .tile48, #game #board .tile54, #game #board .tile66, #game #board .tile72, #game #board .tile83, #game #board .tile96 { background: #fac5b8; } #action label { display: none; } #players1:checked ~ #turn1:checked ~ #game-time:checked ~ #game #action { display: none; } #players1:checked ~ #turn1:checked ~ #game #turn-changer1 { display: block; } #players2:checked ~ #turn1:checked ~ #game #turn-changer2 { display: block; } #players3:checked ~ #turn1:checked ~ #game #turn-changer2 { display: block; } #players4:checked ~ #turn1:checked ~ #game #turn-changer2 { display: block; } #players2:checked ~ #turn2:checked ~ #game #turn-changer1 { display: block; } #players3:checked ~ #turn2:checked ~ #game #turn-changer3 { display: block; } #players4:checked ~ #turn2:checked ~ #game #turn-changer3 { display: block; } #players3:checked ~ #turn3:checked ~ #game #turn-changer1 { display: block; } #players4:checked ~ #turn3:checked ~ #game #turn-changer4 { display: block; } #players4:checked ~ #turn4:checked ~ #game #turn-changer1 { display: block; } #turn1:checked ~ #colors1:checked ~ #game #player-info span::before { color: linear-gradient(69deg, #0000 30%, #da8 0 70%, #0000 0) no-repeat 27% 20%/10% 7%, conic-gradient(at 90% 100%, #0000 320deg, #da8 0 350deg, #0000 0) no-repeat 25% 27%/10% 7%, radial-gradient(farthest-side, #fff 90%, #0000 0) no-repeat 22% 50%/5% 5%, radial-gradient(farthest-side, #fff 90%, #0000 0) no-repeat 72% 50%/5% 5%, radial-gradient(farthest-side, #000 90%, #0000 0) no-repeat 20% 55%/20% 20%, radial-gradient(farthest-side, #000 90%, #0000 0) no-repeat 80% 55%/20% 20%, linear-gradient(to right, #000 7%, #0000 0 43%, #000 0 57%, #0000 0 93%, #000 0) no-repeat 0 52%/100% 2.5%, radial-gradient(circle at 25% 50%, #0000 22%, #000 0 25%, #0000 0) no-repeat 0 52%/100% 40%, radial-gradient(circle at 75% 50%, #0000 22%, #000 0 25%, #0000 0) no-repeat 0 52%/100% 40%, repeating-linear-gradient(to right, brown 0 20%, gold 0 40%) no-repeat 0 100%/100% 25%, linear-gradient(#0000 73%, #000 0 90%, #0000 0) no-repeat, radial-gradient(farthest-side, #642 99.9%, #0000 0) no-repeat -52% -60%/52% 60%, radial-gradient(farthest-side, #642 99.9%, #0000 0) no-repeat 300% -58%/90% 56%, radial-gradient(farthest-side, #fca 99.9%, #0000 0) no-repeat 320% -50%/90% 55%, radial-gradient(farthest-side, #642 99.9%, #0000 0) no-repeat 500% -52%/95% 55%, linear-gradient(#fca 0 0); } #turn2:checked ~ #colors1:checked ~ #game #player-info span::before { color: linear-gradient(5deg, #0000 40%, #ffe 0 70%, #0000 0) no-repeat 15% 30%/30% 5%, linear-gradient(-5deg, #0000 40%, #ffe 0 70%, #0000 0) no-repeat 85% 30%/30% 5%, radial-gradient(farthest-side, #fff 90%, #0000 0) no-repeat 24% 45%/5% 5%, radial-gradient(farthest-side, #fff 90%, #0000 0) no-repeat 70% 45%/5% 5%, radial-gradient(farthest-side, #333 90%, #0000 0) no-repeat 23% 50%/20% 20%, radial-gradient(farthest-side, #333 90%, #0000 0) no-repeat 77% 50%/20% 20%, repeating-linear-gradient(to right, green 0 20%, #eee 0 40%) no-repeat 0 100%/100% 25%, linear-gradient(#0000 73%, #000 0 90%, #0000 0) no-repeat, radial-gradient(farthest-side, #ffe 99.9%, #0000 0) no-repeat -300% -70%/90% 50%, radial-gradient(farthest-side, #ffe 99.9%, #0000 0) no-repeat 400% -70%/90% 50%, linear-gradient(#f8d8b8 0 0); } #turn3:checked ~ #colors1:checked ~ #game #player-info span::before { color: radial-gradient(farthest-side, #fff 90%, #0000 0) no-repeat 24% 45%/5% 5%, radial-gradient(farthest-side, #fff 90%, #0000 0) no-repeat 70% 45%/5% 5%, radial-gradient(farthest-side, #111 90%, #0000 0) no-repeat 23% 50%/20% 20%, radial-gradient(farthest-side, #111 90%, #0000 0) no-repeat 77% 50%/20% 20%, repeating-linear-gradient(to right, #203aa0 0 20%, #b94 0 40%) no-repeat 0 100%/100% 25%, linear-gradient(#0000 73%, #000 0 90%, #0000 0) no-repeat, radial-gradient(farthest-side, #432 99.9%, #0000 0) no-repeat -300% -70%/90% 50%, radial-gradient(farthest-side, #432 99.9%, #0000 0) no-repeat 400% -70%/90% 50%, radial-gradient(farthest-side, #ffe8b8 99.9%, #0000 0) no-repeat -350% -65%/90% 50%, radial-gradient(farthest-side, #ffe8b8 99.9%, #0000 0) no-repeat 450% -65%/90% 50%, radial-gradient(farthest-side, #432 99.9%, #0000 0) no-repeat 200% -55%/80% 48%, radial-gradient(farthest-side, #432 99.9%, #0000 0) no-repeat -150% -55%/86% 47%, radial-gradient(circle at 100% 0%, #0000 0 35%, #432 0 40%, #0000 0 50%, #432 0 55%, #0000 0 65%, #432 0 70%, #0000 0) no-repeat 13.5% 45%/20% 10%, radial-gradient(circle at 0% 0%, #0000 0 35%, #432 0 40%, #0000 0 50%, #432 0 55%, #0000 0 65%, #432 0 70%, #0000 0) no-repeat 87% 45%/20% 10%, linear-gradient(#ffe8b8 0 0); } #turn4:checked ~ #colors1:checked ~ #game #player-info span::before { color: radial-gradient(farthest-side, #fff 90%, #0000 0) no-repeat 24% 48%/5% 5%, radial-gradient(farthest-side, #fff 90%, #0000 0) no-repeat 70% 48%/5% 5%, radial-gradient(farthest-side, #111 90%, #0000 0) no-repeat 23% 53%/20% 20%, radial-gradient(farthest-side, #111 90%, #0000 0) no-repeat 77% 53%/20% 20%, repeating-linear-gradient(to right, #222 0 20%, #fd0 0 40%) no-repeat 0 100%/100% 25%, linear-gradient(#0000 73%, #000 0 90%, #0000 0), radial-gradient(farthest-side, #111 99.9%, #0000 0) no-repeat -250% -70%/90% 50%, radial-gradient(farthest-side, #111 99.9%, #0000 0) no-repeat 300% -70%/90% 50%, radial-gradient(farthest-side, #963 99.9%, #0000 0) no-repeat -350% -65%/90% 50%, radial-gradient(farthest-side, #963 99.9%, #0000 0) no-repeat 450% -65%/90% 50%, radial-gradient(farthest-side, #111 99.9%, #0000 0) no-repeat 200% -55%/80% 48%, radial-gradient(farthest-side, #111 99.9%, #0000 0) no-repeat -150% -55%/86% 47%, radial-gradient(farthest-side at 52% 120%, #0000 70%, #111 0 99%, #0000 0) no-repeat 18% 32%/30% 10%, radial-gradient(farthest-side at 49% 120%, #0000 70%, #111 0 99%, #0000 0) no-repeat 82% 32%/30% 10%, linear-gradient(#963 0 0); } #turn1:checked ~ #colors2:checked ~ #game #player-info span::before { color: linear-gradient(5deg, #0000 40%, #ffe 0 70%, #0000 0) no-repeat 15% 30%/30% 5%, linear-gradient(-5deg, #0000 40%, #ffe 0 70%, #0000 0) no-repeat 85% 30%/30% 5%, radial-gradient(farthest-side, #fff 90%, #0000 0) no-repeat 24% 45%/5% 5%, radial-gradient(farthest-side, #fff 90%, #0000 0) no-repeat 70% 45%/5% 5%, radial-gradient(farthest-side, #333 90%, #0000 0) no-repeat 23% 50%/20% 20%, radial-gradient(farthest-side, #333 90%, #0000 0) no-repeat 77% 50%/20% 20%, repeating-linear-gradient(to right, green 0 20%, #eee 0 40%) no-repeat 0 100%/100% 25%, linear-gradient(#0000 73%, #000 0 90%, #0000 0) no-repeat, radial-gradient(farthest-side, #ffe 99.9%, #0000 0) no-repeat -300% -70%/90% 50%, radial-gradient(farthest-side, #ffe 99.9%, #0000 0) no-repeat 400% -70%/90% 50%, linear-gradient(#f8d8b8 0 0); } #turn2:checked ~ #colors2:checked ~ #game #player-info span::before { color: radial-gradient(farthest-side, #fff 90%, #0000 0) no-repeat 24% 45%/5% 5%, radial-gradient(farthest-side, #fff 90%, #0000 0) no-repeat 70% 45%/5% 5%, radial-gradient(farthest-side, #111 90%, #0000 0) no-repeat 23% 50%/20% 20%, radial-gradient(farthest-side, #111 90%, #0000 0) no-repeat 77% 50%/20% 20%, repeating-linear-gradient(to right, #203aa0 0 20%, #b94 0 40%) no-repeat 0 100%/100% 25%, linear-gradient(#0000 73%, #000 0 90%, #0000 0) no-repeat, radial-gradient(farthest-side, #432 99.9%, #0000 0) no-repeat -300% -70%/90% 50%, radial-gradient(farthest-side, #432 99.9%, #0000 0) no-repeat 400% -70%/90% 50%, radial-gradient(farthest-side, #ffe8b8 99.9%, #0000 0) no-repeat -350% -65%/90% 50%, radial-gradient(farthest-side, #ffe8b8 99.9%, #0000 0) no-repeat 450% -65%/90% 50%, radial-gradient(farthest-side, #432 99.9%, #0000 0) no-repeat 200% -55%/80% 48%, radial-gradient(farthest-side, #432 99.9%, #0000 0) no-repeat -150% -55%/86% 47%, radial-gradient(circle at 100% 0%, #0000 0 35%, #432 0 40%, #0000 0 50%, #432 0 55%, #0000 0 65%, #432 0 70%, #0000 0) no-repeat 13.5% 45%/20% 10%, radial-gradient(circle at 0% 0%, #0000 0 35%, #432 0 40%, #0000 0 50%, #432 0 55%, #0000 0 65%, #432 0 70%, #0000 0) no-repeat 87% 45%/20% 10%, linear-gradient(#ffe8b8 0 0); } #turn3:checked ~ #colors2:checked ~ #game #player-info span::before { color: radial-gradient(farthest-side, #fff 90%, #0000 0) no-repeat 24% 48%/5% 5%, radial-gradient(farthest-side, #fff 90%, #0000 0) no-repeat 70% 48%/5% 5%, radial-gradient(farthest-side, #111 90%, #0000 0) no-repeat 23% 53%/20% 20%, radial-gradient(farthest-side, #111 90%, #0000 0) no-repeat 77% 53%/20% 20%, repeating-linear-gradient(to right, #222 0 20%, #fd0 0 40%) no-repeat 0 100%/100% 25%, linear-gradient(#0000 73%, #000 0 90%, #0000 0), radial-gradient(farthest-side, #111 99.9%, #0000 0) no-repeat -250% -70%/90% 50%, radial-gradient(farthest-side, #111 99.9%, #0000 0) no-repeat 300% -70%/90% 50%, radial-gradient(farthest-side, #963 99.9%, #0000 0) no-repeat -350% -65%/90% 50%, radial-gradient(farthest-side, #963 99.9%, #0000 0) no-repeat 450% -65%/90% 50%, radial-gradient(farthest-side, #111 99.9%, #0000 0) no-repeat 200% -55%/80% 48%, radial-gradient(farthest-side, #111 99.9%, #0000 0) no-repeat -150% -55%/86% 47%, radial-gradient(farthest-side at 52% 120%, #0000 70%, #111 0 99%, #0000 0) no-repeat 18% 32%/30% 10%, radial-gradient(farthest-side at 49% 120%, #0000 70%, #111 0 99%, #0000 0) no-repeat 82% 32%/30% 10%, linear-gradient(#963 0 0); } #turn4:checked ~ #colors2:checked ~ #game #player-info span::before { color: linear-gradient(69deg, #0000 30%, #da8 0 70%, #0000 0) no-repeat 27% 20%/10% 7%, conic-gradient(at 90% 100%, #0000 320deg, #da8 0 350deg, #0000 0) no-repeat 25% 27%/10% 7%, radial-gradient(farthest-side, #fff 90%, #0000 0) no-repeat 22% 50%/5% 5%, radial-gradient(farthest-side, #fff 90%, #0000 0) no-repeat 72% 50%/5% 5%, radial-gradient(farthest-side, #000 90%, #0000 0) no-repeat 20% 55%/20% 20%, radial-gradient(farthest-side, #000 90%, #0000 0) no-repeat 80% 55%/20% 20%, linear-gradient(to right, #000 7%, #0000 0 43%, #000 0 57%, #0000 0 93%, #000 0) no-repeat 0 52%/100% 2.5%, radial-gradient(circle at 25% 50%, #0000 22%, #000 0 25%, #0000 0) no-repeat 0 52%/100% 40%, radial-gradient(circle at 75% 50%, #0000 22%, #000 0 25%, #0000 0) no-repeat 0 52%/100% 40%, repeating-linear-gradient(to right, brown 0 20%, gold 0 40%) no-repeat 0 100%/100% 25%, linear-gradient(#0000 73%, #000 0 90%, #0000 0) no-repeat, radial-gradient(farthest-side, #642 99.9%, #0000 0) no-repeat -52% -60%/52% 60%, radial-gradient(farthest-side, #642 99.9%, #0000 0) no-repeat 300% -58%/90% 56%, radial-gradient(farthest-side, #fca 99.9%, #0000 0) no-repeat 320% -50%/90% 55%, radial-gradient(farthest-side, #642 99.9%, #0000 0) no-repeat 500% -52%/95% 55%, linear-gradient(#fca 0 0); } #turn1:checked ~ #colors3:checked ~ #game #player-info span::before { color: radial-gradient(farthest-side, #fff 90%, #0000 0) no-repeat 24% 45%/5% 5%, radial-gradient(farthest-side, #fff 90%, #0000 0) no-repeat 70% 45%/5% 5%, radial-gradient(farthest-side, #111 90%, #0000 0) no-repeat 23% 50%/20% 20%, radial-gradient(farthest-side, #111 90%, #0000 0) no-repeat 77% 50%/20% 20%, repeating-linear-gradient(to right, #203aa0 0 20%, #b94 0 40%) no-repeat 0 100%/100% 25%, linear-gradient(#0000 73%, #000 0 90%, #0000 0) no-repeat, radial-gradient(farthest-side, #432 99.9%, #0000 0) no-repeat -300% -70%/90% 50%, radial-gradient(farthest-side, #432 99.9%, #0000 0) no-repeat 400% -70%/90% 50%, radial-gradient(farthest-side, #ffe8b8 99.9%, #0000 0) no-repeat -350% -65%/90% 50%, radial-gradient(farthest-side, #ffe8b8 99.9%, #0000 0) no-repeat 450% -65%/90% 50%, radial-gradient(farthest-side, #432 99.9%, #0000 0) no-repeat 200% -55%/80% 48%, radial-gradient(farthest-side, #432 99.9%, #0000 0) no-repeat -150% -55%/86% 47%, radial-gradient(circle at 100% 0%, #0000 0 35%, #432 0 40%, #0000 0 50%, #432 0 55%, #0000 0 65%, #432 0 70%, #0000 0) no-repeat 13.5% 45%/20% 10%, radial-gradient(circle at 0% 0%, #0000 0 35%, #432 0 40%, #0000 0 50%, #432 0 55%, #0000 0 65%, #432 0 70%, #0000 0) no-repeat 87% 45%/20% 10%, linear-gradient(#ffe8b8 0 0); } #turn2:checked ~ #colors3:checked ~ #game #player-info span::before { color: radial-gradient(farthest-side, #fff 90%, #0000 0) no-repeat 24% 48%/5% 5%, radial-gradient(farthest-side, #fff 90%, #0000 0) no-repeat 70% 48%/5% 5%, radial-gradient(farthest-side, #111 90%, #0000 0) no-repeat 23% 53%/20% 20%, radial-gradient(farthest-side, #111 90%, #0000 0) no-repeat 77% 53%/20% 20%, repeating-linear-gradient(to right, #222 0 20%, #fd0 0 40%) no-repeat 0 100%/100% 25%, linear-gradient(#0000 73%, #000 0 90%, #0000 0), radial-gradient(farthest-side, #111 99.9%, #0000 0) no-repeat -250% -70%/90% 50%, radial-gradient(farthest-side, #111 99.9%, #0000 0) no-repeat 300% -70%/90% 50%, radial-gradient(farthest-side, #963 99.9%, #0000 0) no-repeat -350% -65%/90% 50%, radial-gradient(farthest-side, #963 99.9%, #0000 0) no-repeat 450% -65%/90% 50%, radial-gradient(farthest-side, #111 99.9%, #0000 0) no-repeat 200% -55%/80% 48%, radial-gradient(farthest-side, #111 99.9%, #0000 0) no-repeat -150% -55%/86% 47%, radial-gradient(farthest-side at 52% 120%, #0000 70%, #111 0 99%, #0000 0) no-repeat 18% 32%/30% 10%, radial-gradient(farthest-side at 49% 120%, #0000 70%, #111 0 99%, #0000 0) no-repeat 82% 32%/30% 10%, linear-gradient(#963 0 0); } #turn3:checked ~ #colors3:checked ~ #game #player-info span::before { color: linear-gradient(69deg, #0000 30%, #da8 0 70%, #0000 0) no-repeat 27% 20%/10% 7%, conic-gradient(at 90% 100%, #0000 320deg, #da8 0 350deg, #0000 0) no-repeat 25% 27%/10% 7%, radial-gradient(farthest-side, #fff 90%, #0000 0) no-repeat 22% 50%/5% 5%, radial-gradient(farthest-side, #fff 90%, #0000 0) no-repeat 72% 50%/5% 5%, radial-gradient(farthest-side, #000 90%, #0000 0) no-repeat 20% 55%/20% 20%, radial-gradient(farthest-side, #000 90%, #0000 0) no-repeat 80% 55%/20% 20%, linear-gradient(to right, #000 7%, #0000 0 43%, #000 0 57%, #0000 0 93%, #000 0) no-repeat 0 52%/100% 2.5%, radial-gradient(circle at 25% 50%, #0000 22%, #000 0 25%, #0000 0) no-repeat 0 52%/100% 40%, radial-gradient(circle at 75% 50%, #0000 22%, #000 0 25%, #0000 0) no-repeat 0 52%/100% 40%, repeating-linear-gradient(to right, brown 0 20%, gold 0 40%) no-repeat 0 100%/100% 25%, linear-gradient(#0000 73%, #000 0 90%, #0000 0) no-repeat, radial-gradient(farthest-side, #642 99.9%, #0000 0) no-repeat -52% -60%/52% 60%, radial-gradient(farthest-side, #642 99.9%, #0000 0) no-repeat 300% -58%/90% 56%, radial-gradient(farthest-side, #fca 99.9%, #0000 0) no-repeat 320% -50%/90% 55%, radial-gradient(farthest-side, #642 99.9%, #0000 0) no-repeat 500% -52%/95% 55%, linear-gradient(#fca 0 0); } #turn4:checked ~ #colors3:checked ~ #game #player-info span::before { color: linear-gradient(5deg, #0000 40%, #ffe 0 70%, #0000 0) no-repeat 15% 30%/30% 5%, linear-gradient(-5deg, #0000 40%, #ffe 0 70%, #0000 0) no-repeat 85% 30%/30% 5%, radial-gradient(farthest-side, #fff 90%, #0000 0) no-repeat 24% 45%/5% 5%, radial-gradient(farthest-side, #fff 90%, #0000 0) no-repeat 70% 45%/5% 5%, radial-gradient(farthest-side, #333 90%, #0000 0) no-repeat 23% 50%/20% 20%, radial-gradient(farthest-side, #333 90%, #0000 0) no-repeat 77% 50%/20% 20%, repeating-linear-gradient(to right, green 0 20%, #eee 0 40%) no-repeat 0 100%/100% 25%, linear-gradient(#0000 73%, #000 0 90%, #0000 0) no-repeat, radial-gradient(farthest-side, #ffe 99.9%, #0000 0) no-repeat -300% -70%/90% 50%, radial-gradient(farthest-side, #ffe 99.9%, #0000 0) no-repeat 400% -70%/90% 50%, linear-gradient(#f8d8b8 0 0); } #turn1:checked ~ #colors4:checked ~ #game #player-info span::before { color: radial-gradient(farthest-side, #fff 90%, #0000 0) no-repeat 24% 48%/5% 5%, radial-gradient(farthest-side, #fff 90%, #0000 0) no-repeat 70% 48%/5% 5%, radial-gradient(farthest-side, #111 90%, #0000 0) no-repeat 23% 53%/20% 20%, radial-gradient(farthest-side, #111 90%, #0000 0) no-repeat 77% 53%/20% 20%, repeating-linear-gradient(to right, #222 0 20%, #fd0 0 40%) no-repeat 0 100%/100% 25%, linear-gradient(#0000 73%, #000 0 90%, #0000 0), radial-gradient(farthest-side, #111 99.9%, #0000 0) no-repeat -250% -70%/90% 50%, radial-gradient(farthest-side, #111 99.9%, #0000 0) no-repeat 300% -70%/90% 50%, radial-gradient(farthest-side, #963 99.9%, #0000 0) no-repeat -350% -65%/90% 50%, radial-gradient(farthest-side, #963 99.9%, #0000 0) no-repeat 450% -65%/90% 50%, radial-gradient(farthest-side, #111 99.9%, #0000 0) no-repeat 200% -55%/80% 48%, radial-gradient(farthest-side, #111 99.9%, #0000 0) no-repeat -150% -55%/86% 47%, radial-gradient(farthest-side at 52% 120%, #0000 70%, #111 0 99%, #0000 0) no-repeat 18% 32%/30% 10%, radial-gradient(farthest-side at 49% 120%, #0000 70%, #111 0 99%, #0000 0) no-repeat 82% 32%/30% 10%, linear-gradient(#963 0 0); } #turn2:checked ~ #colors4:checked ~ #game #player-info span::before { color: linear-gradient(69deg, #0000 30%, #da8 0 70%, #0000 0) no-repeat 27% 20%/10% 7%, conic-gradient(at 90% 100%, #0000 320deg, #da8 0 350deg, #0000 0) no-repeat 25% 27%/10% 7%, radial-gradient(farthest-side, #fff 90%, #0000 0) no-repeat 22% 50%/5% 5%, radial-gradient(farthest-side, #fff 90%, #0000 0) no-repeat 72% 50%/5% 5%, radial-gradient(farthest-side, #000 90%, #0000 0) no-repeat 20% 55%/20% 20%, radial-gradient(farthest-side, #000 90%, #0000 0) no-repeat 80% 55%/20% 20%, linear-gradient(to right, #000 7%, #0000 0 43%, #000 0 57%, #0000 0 93%, #000 0) no-repeat 0 52%/100% 2.5%, radial-gradient(circle at 25% 50%, #0000 22%, #000 0 25%, #0000 0) no-repeat 0 52%/100% 40%, radial-gradient(circle at 75% 50%, #0000 22%, #000 0 25%, #0000 0) no-repeat 0 52%/100% 40%, repeating-linear-gradient(to right, brown 0 20%, gold 0 40%) no-repeat 0 100%/100% 25%, linear-gradient(#0000 73%, #000 0 90%, #0000 0) no-repeat, radial-gradient(farthest-side, #642 99.9%, #0000 0) no-repeat -52% -60%/52% 60%, radial-gradient(farthest-side, #642 99.9%, #0000 0) no-repeat 300% -58%/90% 56%, radial-gradient(farthest-side, #fca 99.9%, #0000 0) no.........完整代码请登录后点击上方下载按钮下载查看
网友评论0