div#container 
    div
      each _, i in Array(16)
        input(id='select-square-'+ (i + 1))(type="radio")(name="select-square")
        each _, j in Array(5)
          input(id='select-'+ (j + 1) + '-value-square-' + (i + 1))(type="radio")(name="select-square-" + i)
        each _, j in Array(4)
          input.win(id='select-'+ (j + 1) + '-value-square-' + (i + 1) + '-win')(type="radio")(name="select-square-" + i)

      each _, i in Array(288)
         input(id='generate' + i)(type="radio")(name="generate")

      each _, i in Array(288)
         input(id='solution-' + (i+1))(type="radio")(name="solution")

      div.stopwatch
        div.symbol
        div.symbol
        div.symbol=":"
        div.symbol
        div.symbol
        
      div#gauge-container
        div#gauge
          div#dial
        div#rating
          div#turtle 🐢
          div#feedback
          div#rabbit 🐇

      div.sudoku
        div.grid 
          each _, i in Array(16)
            div
              label(for='select-square-' + (i + 1))
                .circle
                  .context
                    label(for='select-2-value-square-' + (i + 1) + '-win').number.top 2
                    label(for='select-1-value-square-' + (i + 1) + '-win').number.left 1
                    label(for='select-4-value-square-' + (i + 1)  + '-win' ).number.right 4
                    label(for='select-3-value-square-' + (i + 1)  + '-win').number.bottom 3
                    label(for='select-2-value-square-' + (i + 1)).number.top 2
                    label(for='select-1-value-square-' + (i + 1)).number.left 1
                    label(for='select-4-value-square-' + (i + 1)).number.right 4
                    label(for='select-3-value-square-' + (i + 1)).number.bottom 3
                    label(for='select-5-value-square-' + (i + 1)).number.delete
                      i.fas.fa-minus-circle
        div#buttons
          div#generator
            each _, i in Array(288)
              label(for='generate' + i)='Random'

          div#solver
            each _, i in Array(288)
              label(for='solution-' + (i + 1))="Solve"

            label#no-solution="Invalid!"
           
View Compiled
$solutions: ((1,2,3,4,3,4,1,2,2,1,4,3,4,3,2,1),(3,1,2,4,2,4,1,3,1,3,4,2,4,2,3,1),(1,2,3,4,3,4,1,2,2,3,4,1,4,1,2,3),(3,1,2,4,2,4,1,3,4,2,3,1,1,3,4,2),(1,2,3,4,3,4,1,2,4,1,2,3,2,3,4,1),(3,1,2,4,2,4,3,1,1,2,4,3,4,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3,2,1,2,1,4,3,3,2,1,4,1,4,3,2),(2,4,3,1,3,1,4,2,4,2,1,3,1,3,2,4),(4,3,2,1,2,1,4,3,3,4,1,2,1,2,3,4));

#generate {
  display: block;
}

#container {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
  flex-direction: column;
}

.sudoku  {  
  $puzzlesFound: ();
    
  @for $i from 1 through 288 {
    
    $currentPuzzleChecks: ();
    
    @for $j from 1 through 16 {
    
        $solution: nth(nth($solutions, $i), $j);
    
        $variableName: --square-#{$j}-matches-puzzle-#{$i};
        #{$variableName}: max(var(--square-#{$j}-unsolved), var(--square-#{$j}-equals-#{$solution}, 0));

        $currentPuzzleChecks: append($currentPuzzleChecks, var(#{$variableName}), $separator: comma);
      }
    
        --puzzle-#{$i}-found: min(#{$currentPuzzleChecks});

        $puzzlesFound: append($puzzlesFound, var(--puzzle-#{$i}-found), $separator: comma);
  }

  $unsolved-squares: ();

  @for $square from 1 through 16 {
    --square-#{$square}-unsolved: 1;

    $unsolved-squares: append($unsolved-squares, var(--square-#{$square}-unsolved), $separator: comma);
  }

  --solution-found: max(#{$puzzlesFound});
  --any-squares-unsolved: max(#{$unsolved-squares});  
} 

#solver label, #no-solution {
  display: block;
  user-select: none;
  position: absolute;
}

#no-solution {
  z-index: 1;
  color: red;
}

  @for $solution-index from 1 through 288 {
    label[for=solution-#{$solution-index}] {
        cursor: pointer;
        z-index: calc(var(--puzzle-#{$solution-index}-found) * #{$solution-index});
    }


    #solution-#{$solution-index}:checked ~ .sudoku  {
      
        @for $square from 1 through 16 {
          --square-#{$square}-solution: "#{nth(nth($solutions, $solution-index), $square)}";
          --square-#{$square}-color: grey;
          --auto-#{$square}: 1;
      }
    }
  }

* {
  box-sizing: border-box;
}

.grid {
   border: 5px solid;
  display: inline-grid;
  grid-template: repeat(4, max(80px, calc(100vw/8 - 150px))) / repeat(4, max(80px, calc(100vw/8 - 150px)));  
  grid-gap: 1px;
  background-color: var(--grid-color, black);
  
  label {
    display:inline-block;
    width: 100%;
    height: 100%;
  }
  
  > div {
    background: #fff;
  }
  
  > div:nth-child(4n-1) {
    border-left: 5px solid var(--grid-color, black);
  }
  
  > div:nth-child(n+5):nth-child(-n+8) {
    border-bottom: 5px solid var(--grid-color, black);
  }
  
  label::after, label::before {
    flex-direction: column;
    justify-content: center;
    text-align: center;
    display: flex;
    height: 100%;
  }
}

input {
  display: none;
}

label {
  display: none;
}

label[for^=generate] {
  display: block;
  background: blue;
  width: 100px;
  margin-left: 110px;
}

@for $i from 1 through 16 {
  
  
  label[for=select-square-#{$i}]::after {
    --attemptedValue:  max(var(--square-#{$i}-equals-1, 0) * 1, var(--square-#{$i}-equals-2, 0) * 2, var(--square-#{$i}-equals-3, 0) * 3, var(--square-#{$i}-equals-4, 0) * 4);
    counter-reset: attemptedValue var(--attemptedValue);
    content: var(--square-#{$i}-solution, counter(attemptedValue));
    opacity: var(--square-#{$i}-solution, var(--attemptedValue));
    background: var(--square-#{$i}-color, inherit); 
    color: rgb(calc(255 * (1 - var(--solution-found))), 0, 0);
  }

  #select-square-#{$i}:checked ~ * #select-value-#{$i} {
    display: inline-block;
    position: absolute;
    top: 300px;
    
    label {
      display: inline-block;
    }
  }
  
  #select-square-#{$i}:checked ~ * label[for$=select-square-#{$i}] {
    .circle {
      display: block;
      opacity: calc(1 - var(--auto-#{$i}, 0));
      z-index: calc(1 - 2 * var(--auto-#{$i}, 0));
      
      .context {
        animation: bounce-out cubic-bezier(.68,-0.6,.32, 2.5) .5s forwards;
        
      }
    }
  }

  @for $j from 1 through 4 {
    #select-#{$j}-value-square-#{$i}:active ~ .sudoku, #select-#{$j}-value-square-#{$i}-win:active ~ .sudoku {
      animation: none !important;
    }
    
    #select-#{$j}-value-square-#{$i}:checked ~ .sudoku, #select-#{$j}-value-square-#{$i}-win:checked ~ .sudoku  {
 
       animation: shake cubic-bezier(.36,.07,.19,.97) calc((clamp(0, 1 - var(--solution-found), 1)) * 1s) forwards;
       --square-#{$i}-unsolved: 0; 
       --square-#{$i}-equals-#{$j}: 1;
    }
  }

  #select-5-value-square-#{$i}:checked ~ .sudoku {
     --square-#{$i}-unsolved: 1; 
  }
}

@keyframes changeOrder {
  from { z-index: 288;}
  to { z-index: 1; }
}


label[for^=generate] {
  animation: changeOrder 100s infinite linear;
  cursor: pointer;
  display: block;
  position: absolute;
  user-select: none;
  background: blue;
  width: 100px;
  padding: 20px;
  text-align: center;
  color: #fff;
  white-space: nowrap;
}

#select-value {
  position: absolute;
  top: 500px;
}

@for $j from 0 through 287 { 
  
  label[for=generate#{$j}] { 
    animation-delay: #{$j * .35s}; 
  }
  
  label[for=generate#{$j}]:active:after {
    z-index: 300;
    width: 100%;
  }
  
  #generate#{$j}:checked ~ .sudoku { 
     $blockCounts: (1: 2, 2: 2, 3: 3, 4: 2);
     $shuffleSquares: (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16);
    
     @for $square from 1 through 16 {
       $index1: random(16);
       $index2: random(16);
       
       $temp: nth($shuffleSquares, $index1);
       $shuffleSquares: set-nth($shuffleSquares, $index1, nth($shuffleSquares, $index2));
       $shuffleSquares: set-nth($shuffleSquares, $index2, $temp);
     }
    
     @each $square in $shuffleSquares {
       $row: ceil($square/4);
       $column: 1 + ($square - 1) % 4;
       
       $block: if($row < 3, 1, 3) + if($column < 3, 0, 1);
 
       $count: map-get($blockCounts, $block);
       
       $val: nth(nth($solutions, $j + 1), $square);
       
       --square-#{$square}-solution-#{$val}: 1;
       
       @if ($count > 0) {
           $blockCounts: map-merge($blockCounts, ($block: $count - 1));
          --square-#{$square}-unsolved: 0; 
        --square-#{$square}-equals-#{$val}: 1;
       
          @for $other-value from 1 through 4 {
            @if ($other-value != $val) 
            {
              --square-#{$square}-equals-#{$other-value}: 0;   
            }
          }
       
          --square-#{$square}-color: grey;
          --auto-#{$square}: 1;
       }
     } 
  }
}

@keyframes units {
  to {
    transform: translateX(-10ch);
  }
}

@keyframes tens {
  to {
    transform: translateX(-6ch);
  }
}

.stopwatch {
  text-align: center;
  font-family: monospace;
  margin-bottom: 10px;
}

.symbol {
  width: 1ch;
  overflow: hidden;
  display: inline-flex;
  font-size: 5ch;
}

.symbol:nth-child(1)::after {
  animation: tens 3600s steps(6, end) infinite;
  content: '012345';
}

.symbol:nth-child(2)::after {
  animation: units 600s steps(10, end) infinite;
  content: '0123456789';
}

.symbol:nth-child(4)::after {
  animation: tens 60s steps(6, end) infinite;
  content: '012345';
}

.symbol:nth-child(5)::after {
  animation: units 10s steps(10, end) infinite;
  content: '0123456789';
}

input[name=generate]:checked ~ .stopwatch {
  display: block;
}

.stopwatch {
  display: none;
}

input[name=generate]:active ~ .stopwatch .symbol::after {
  animation: none;
}

.grid {  
  margin-left: -8px;
}

.circle {
  background: transparent;
}

#radial-menu {
  display: inline-block;
}

.circle {
  background: transparent;
}


:root {
  --circle-radius: max(60px, calc(100vw/8 - 170px));
  --rotation: 45deg;
}

.circle {
  display: none;
  position: absolute;
  height: var(--circle-radius);
  width: var(--circle-radius);
  border-radius: 50%;
  margin-top: 10px;
  margin-left: 8px;
}

.context {
  position: absolute;
  border: 2.5px dashed gray;
  border-radius: inherit;
  transform: rotate(var(--rotation));
  opacity: 0;
}

.context .number {
  background: #0000ff;
  border-radius: 50%;
  width: 25px;
  height: 25px;
  display: inline-block;
  text-align: center;
  font-size: 20px;
  color: #fff;
  position: absolute;
  transform: rotate(calc(-1 * var(--rotation)));
  cursor: pointer;
  user-select: none;
}

.context .number.top {
  background: green;
  margin-left: auto;
  margin-right: auto;
  left: 0;
  right: 0;
  top: -12.5px;
}

.context .number.left {
  background: orange;
  margin-top: auto;
  margin-bottom: auto;
  top: 0;
  bottom: 0;
  left: -12.5px;
}

.context .number.right {
  background: purple;
  margin-top: auto;
  margin-bottom: auto;
  top: 0;
  bottom: 0;
  right: -12.5px;
}

.context .number.bottom {
  margin-left: auto;
  margin-right: auto;
  left: 0;
  right: 0;
  bottom: -12.5px;
}

.context .delete {
  margin-left: auto;
  left: 0;
  top: 0;
  right: 2px;
  font-size: 14px;
  width: 14px;
  height: 14px;
  color: red;
  background: white;
}

@for $square from 1 through 16 {
  @for $val from 1 through 4 {
    label[for=select-#{$val}-value-square-#{$square}-win] {
      z-index: var(--square-#{$square}-solution-#{$val});
    }
  }
}

.win:checked ~ .win:checked ~ .win:checked ~ .win:checked ~ .win:checked ~ .win:checked ~ .win:checked 
{
  & ~ .stopwatch .symbol::after, 
  & ~ #gauge-container #gauge #dial,
  & ~ #gauge-container #rating #feedback::after {
    animation-play-state: paused; 
  }
} 
  
@keyframes bounce-out {
  0% {
    z-index: -1;
    width: 35%;
    height: 35%;
    margin-left: 50%;
    margin-top: 50%;
    opacity: 0;
  }
  100% {
    z-index: 2;
    opacity: 1;
    width: var(--circle-radius);
    height: var(--circle-radius);
  }
}

[name="generate"]:checked ~ .sudoku .stopwatch {
  display: block;
}

@keyframes shake {
  10%, 90% {
    transform: translate3d(-1px, 0, 0);
  }
  
  20%, 80% {
    transform: translate3d(2px, 0, 0);
  }

  30%, 50%, 70% {
    transform: translate3d(-4px, 0, 0);
  }

  40%, 60% {
    transform: translate3d(4px, 0, 0);
  }
}

[for^="solution-"], #no-solution {
  background: blue;
  width: 100px;
  padding: 20px;
  text-align: center;
  color: #fff;
  white-space: nowrap;
}

#no-solution {
  background: grey;
}

#buttons {
  width: 210px;
  position: absolute;
  left: 50%;
  transform: translate(-50%,-50%);
  margin-top: 10px;
}

#buttons {
  transition: opacity 0.5s;
}

input[name="solution"]:checked ~ .sudoku #buttons  {
  opacity: 0;
  z-index: -1;
}

input[name="solution"]:checked ~ .stopwatch  {
  display: none;
}

.sudoku {
   opacity: calc(1 - var(--solution-found) * (1 - var(--any-squares-unsolved)));
}



#gauge {
  height: 150px;
  overflow: hidden;
}

#dial {
  background: #0000ff80;
  width: 300px;
  height: 300px;
  display: inline-flex;
  border-radius: 50%;
  overflow: hidden;
  animation: rotating linear 300s forwards; 
}

#dial::before {
  background: green;
  content: '';
  width: 50%;
  height:100%;
  display: block;
  justify-self: start;
}

#dial::after {
  background: #fff;
  content: '';
  width: 80%;
  height: 80%;
  display: block;
  justify-self: end;
  align-self: center;
  margin-left: -40%;
  border-radius: 50%;
}

@keyframes rotating {
  from {
    transform: rotate(70deg);
  }
  to {
    transform: rotate(-70deg);
  }
}

@keyframes message {
  to {
    margin-top: -280px;
  }
}

#rating {
  font-size: 30px;
  display: flex;
  width: 300px;
  flex-direction: row;
  justify-content: space-between;
}

#feedback {
  height: 40px;
  font: 20px;
  line-height: 40px;
  text-align: center;
  overflow: hidden;
}

#feedback::after {
  display: inline-block;
  white-space: pre-wrap;
  content: 'Amazing! \A Good! \A Not bad! \A Decent \A Average';
  animation:  message steps(7) 150s forwards; 
}

#gauge-container {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%,-50%);
  z-index: -1;
}
View Compiled

External CSS

  1. https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.2/css/all.min.css

External JavaScript

This Pen doesn't use any external JavaScript resources.