* {
  border: 0;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  font-size: calc(16px + (20 - 16) * (100vw - 320px)/(1280 - 320));
}

body, button {
  color: #f2f2f2;
  font: bold 1em/1.5 Comfortaa, sans-serif;
  text-align: center;
  text-transform: uppercase;
}

body {
  background: #041644;
}

.machine {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 0.25em;
  box-shadow: -0.25em 0 0 rgba(0, 0, 0, 0.25) inset, 0.25em 0 0 rgba(255, 255, 255, 0.2) inset, 0 3.5em 0 inset, -1em 0 0 inset, 0 -18em 0 inset, 1em 0 0 inset, 0 -22em 0 rgba(128, 128, 128, 0.3) inset;
  color: #0b46da;
  display: flex;
  justify-content: center;
  align-content: flex-start;
  flex-wrap: wrap;
  margin: 1.5em auto 1em auto;
  width: 18em;
  height: 34.5em;
}
.machine input {
  position: fixed;
  top: -1.5em;
  left: -1.5em;
}
.machine input:checked ~ .machine__btn {
  filter: brightness(75%);
  -webkit-filter: brightness(75%);
}
.machine input:checked ~ .machine__btn:nth-child(6) {
  animation: flash 1s 6s steps(1) infinite;
  visibility: hidden;
}
.machine input:checked ~ .machine__btn:nth-child(7) {
  animation: disappear 1s 5s steps(1) forwards;
  visibility: visible;
}
.machine input:checked ~ .machine__btn:nth-child(n + 2):nth-child(-n + 5):active ~ .machine__window .machine__crane-z {
  transform: translateZ(-11.49em);
}
.machine input:checked ~ .machine__btn:nth-child(n + 2):nth-child(-n + 5):active ~ .machine__window .machine__crane-x {
  transform: translateX(0.01em);
}
.machine input:checked ~ .machine__btn:nth-child(n + 2):nth-child(-n + 5):active ~ .machine__window .machine__crane-claw {
  animation-name: swingClaw2;
  animation-duration: 0s;
}
.machine input:checked ~ .machine__window .machine__crane-z, .machine input:checked ~ .machine__window .machine__crane-x {
  transition: transform 2s 2.75s linear;
}
.machine input:checked ~ .machine__window .machine__crane-z {
  transform: translateZ(-11.49em);
}
.machine input:checked ~ .machine__window .machine__crane-x {
  transform: translateX(0.01em);
}
.machine input:checked ~ .machine__window .machine__crane-arm, .machine input:checked ~ .machine__window .machine__crane-claw, .machine input:checked ~ .machine__window .machine__crane-claw .machine__prize, .machine input:checked ~ .machine__window .machine__crane-finger, .machine input:checked ~ .machine__window .machine__crane-palm {
  animation-duration: 5s;
}
.machine input:checked ~ .machine__window .machine__crane-arm, .machine input:checked ~ .machine__window .machine__crane-claw, .machine input:checked ~ .machine__window .machine__crane-finger, .machine input:checked ~ .machine__window .machine__crane-palm {
  animation-timing-function: linear;
}
.machine input:checked ~ .machine__window .machine__crane-arm {
  animation-name: lowerArm;
}
.machine input:checked ~ .machine__window .machine__crane-claw {
  animation-name: swingClaw2;
}
.machine input:checked ~ .machine__window .machine__crane-claw .machine__prize {
  animation-name: liftPrize;
  animation-timing-function: ease-in;
}
.machine input:checked ~ .machine__window .machine__crane-finger:first-child {
  animation-name: grabA;
}
.machine input:checked ~ .machine__window .machine__crane-finger:nth-child(2) {
  animation-name: grabB;
}
.machine input:checked ~ .machine__window .machine__crane-finger:nth-child(3) {
  animation-name: grabC;
}
.machine input:checked ~ .machine__window .machine__crane-palm {
  animation-name: raisePalm;
}
.machine input:focus ~ .machine__btn:nth-child(6) {
  filter: brightness(125%);
  -webkit-filter: brightness(125%);
}
.machine, .machine__btn, .machine__window, .machine__crane-z, .machine__crane-claw {
  position: relative;
}
.machine__roof, .machine__window {
  width: 16rem;
}
.machine__roof, .machine__btn span {
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}
.machine__btn {
  background: #5583f6;
  border-radius: 50%;
  box-shadow: 0 0.375em 0 #255ff4;
  color: #171717;
  cursor: pointer;
  display: block;
  margin: 0 0.125em;
  width: 3em;
  height: 2.25em;
  z-index: 1;
}
.machine__btn:active {
  box-shadow: 0 0 0 #255ff4;
  transform: translateY(0.375em);
}
.machine__btn:active ~ .machine__window .machine__crane-z, .machine__btn:active ~ .machine__window .machine__crane-x {
  transition: transform 2s linear;
}
.machine__btn:focus {
  filter: brightness(125%);
  -webkit-filter: brightness(125%);
  outline: transparent;
}
.machine__btn--red {
  background: #f45757;
  box-shadow: 0 0.375em 0 #f22626;
}
.machine__btn--red:active {
  box-shadow: 0 0 0 #f22626;
}
.machine__btn:nth-child(7), .machine__btn span {
  position: absolute;
}
.machine__btn:nth-child(7) {
  top: 17.5em;
  right: 0.875em;
  visibility: hidden;
}
.machine__btn span {
  display: inline-block;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.machine__btn:nth-child(2):active ~ .machine__window .machine__crane-claw, .machine__btn:nth-child(4):active ~ .machine__window .machine__crane-claw {
  animation: swingClaw1 1s linear infinite reverse;
}
.machine__btn:nth-child(3):active ~ .machine__window .machine__crane-claw, .machine__btn:nth-child(5):active ~ .machine__window .machine__crane-claw {
  animation: swingClaw1 1s linear infinite;
}
.machine__btn:nth-child(2):active ~ .machine__window .machine__crane-x {
  transform: translateX(0.01em);
}
.machine__btn:nth-child(3):active ~ .machine__window .machine__crane-x {
  transform: translateX(11.5em);
}
.machine__btn:nth-child(4):active ~ .machine__window .machine__crane-z {
  transform: translateZ(-11.49em);
}
.machine__btn:nth-child(5):active ~ .machine__window .machine__crane-z {
  transform: translateZ(-0.01em);
}
.machine__roof {
  background: #f2b926;
  color: #3c2c01;
  cursor: default;
  font-size: 1.25em;
  height: 2rem;
  margin: 0.75rem;
  padding-top: 0.2rem;
  order: -2;
}
.machine__window {
  box-shadow: 0.25em 0 0 rgba(255, 255, 255, 0.2), -0.25em 0 0 rgba(0, 0, 0, 0.25);
  height: 13em;
  order: -1;
  overflow: hidden;
  margin-bottom: 1em;
  perspective: 40em;
  z-index: -1;
}
.machine__crane-finger, .machine__crane-palm, .machine__prizes, .machine__prize {
  position: absolute;
}
.machine__crane-z, .machine__crane-x {
  transition: transform 10000s linear;
}
.machine__crane-z {
  left: 0.75em;
  transform: translateZ(-11.5em);
  z-index: -3;
}
.machine__crane-x {
  width: 3em;
  height: 14em;
  transform: translateX(0);
}
.machine__crane-arm {
  background: linear-gradient(#969696, #969696) 50% 0/0.25em 100%;
  margin: auto;
  width: 100%;
  height: 8em;
  transform: translateY(-8em);
}
.machine__crane-claw {
  background: linear-gradient(#969696, #969696) 50% 1em/1.5em 0.25em, linear-gradient(-80deg, rgba(150, 150, 150, 0) 38%, #969696 41% 64%, rgba(150, 150, 150, 0) 67%) 0.25em 1em/1em 2em, linear-gradient(80deg, rgba(150, 150, 150, 0) 38%, #969696 41% 64%, rgba(150, 150, 150, 0) 67%) 1.75em 1em/1em 2em, linear-gradient(#636363, #636363) 50% 0/1em 0.75em, linear-gradient(#575757, #575757) 50% 0.75em/0.75em 1.5em, linear-gradient(#969696, #969696) 50% 2.25em/0.5em 0.5em;
  transform-origin: 50% 0;
  top: 8em;
  width: 100%;
  height: 6em;
}
.machine__crane-arm, .machine__crane-claw {
  background-repeat: no-repeat;
}
.machine__crane-finger {
  color: #969696;
  top: 3em;
  width: 1.5em;
  height: 3em;
}
.machine__crane-finger:first-child, .machine__crane-finger:nth-child(3) {
  border-top: 0.25em solid;
}
.machine__crane-finger:first-child {
  border-radius: 100% 0 0 100%/35% 0 0 50%;
  border-left: 0.5em solid;
  left: 0;
  transform: rotate(30deg);
  transform-origin: 100% 0;
}
.machine__crane-finger:nth-child(2) {
  background: #7d7d7d;
  border-radius: 0 0 50% 50%/0 0 100% 100%;
  left: calc(50% - 0.25em);
  width: 0.5em;
  transform: scaleY(0.67);
  transform-origin: 50% 0;
}
.machine__crane-finger:nth-child(3) {
  border-radius: 0 100% 100% 0/0 35% 50% 0;
  border-right: 0.5em solid;
  right: 0;
  transform: rotate(-30deg);
  transform-origin: 0 0;
}
.machine__crane-palm {
  background: #a3a3a3;
  border-radius: 0.25em;
  top: 2.75em;
  left: calc(50% - 0.625em);
  width: 1.25em;
  height: 0.5em;
}
.machine__prizes {
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
}
.machine__prizes .machine__prize {
  opacity: 1;
}
.machine__prizes .machine__prize:nth-child(1) {
  background: #d52a7e;
  top: 11.3em;
  left: 13.1em;
}
.machine__prizes .machine__prize:nth-child(2) {
  background: #d52abc;
  top: 9.3em;
  left: 2.3em;
}
.machine__prizes .machine__prize:nth-child(3) {
  background: #6f2ad5;
  top: 10.5em;
  left: 3.9em;
}
.machine__prizes .machine__prize:nth-child(4) {
  background: #aed52a;
  top: 11.8em;
  left: 9.7em;
}
.machine__prizes .machine__prize:nth-child(5) {
  background: #d5382a;
  top: 9.3em;
  left: 6em;
}
.machine__prizes .machine__prize:nth-child(6) {
  background: #882ad5;
  top: 9.2em;
  left: 0.6em;
}
.machine__prizes .machine__prize:nth-child(7) {
  background: #2ad533;
  top: 10.5em;
  left: 11em;
}
.machine__prizes .machine__prize:nth-child(8) {
  background: #2a6fd5;
  top: 10.4em;
  left: 12.3em;
}
.machine__prizes .machine__prize:nth-child(9) {
  background: #2a9dd5;
  top: 8.4em;
  left: 3.7em;
}
.machine__prizes .machine__prize:nth-child(10) {
  background: #2ad53c;
  top: 9.5em;
  left: 0.8em;
}
.machine__prizes .machine__prize:nth-child(11) {
  background: #d52ace;
  top: 10.2em;
  left: 10.9em;
}
.machine__prizes .machine__prize:nth-child(12) {
  background: #d5542a;
  top: 8.4em;
  left: 10.4em;
}
.machine__prizes .machine__prize:nth-child(13) {
  background: #d5742a;
  top: 11.1em;
  left: 3.9em;
}
.machine__prizes .machine__prize:nth-child(14) {
  background: #bcd52a;
  top: 9.4em;
  left: 12.2em;
}
.machine__prizes .machine__prize:nth-child(15) {
  background: #d52a75;
  top: 10.8em;
  left: 6.4em;
}
.machine__prizes .machine__prize:nth-child(16) {
  background: #3c2ad5;
  top: 8.8em;
  left: 6.5em;
}
.machine__prizes .machine__prize:nth-child(17) {
  background: #a02ad5;
  top: 10.1em;
  left: 7.6em;
}
.machine__prizes .machine__prize:nth-child(18) {
  background: #2acbd5;
  top: 10.7em;
  left: 0.3em;
}
.machine__prizes .machine__prize:nth-child(19) {
  background: #2ad534;
  top: 11.6em;
  left: 11.1em;
}
.machine__prizes .machine__prize:nth-child(20) {
  background: #2ad3d5;
  top: 10.4em;
  left: 11.1em;
}
.machine__prizes .machine__prize:nth-child(21) {
  background: #832ad5;
  top: 10.9em;
  left: 7.6em;
}
.machine__prizes .machine__prize:nth-child(22) {
  background: #d52ab9;
  top: 8.7em;
  left: 6.3em;
}
.machine__prizes .machine__prize:nth-child(23) {
  background: #d52a84;
  top: 10.3em;
  left: 8.4em;
}
.machine__prizes .machine__prize:nth-child(24) {
  background: #be2ad5;
  top: 9.5em;
  left: 6.4em;
}
.machine__prizes .machine__prize:nth-child(25) {
  background: #932ad5;
  top: 10.1em;
  left: 10.5em;
}
.machine__prizes .machine__prize:nth-child(26) {
  background: #d5b92a;
  top: 9.4em;
  left: 1.6em;
}
.machine__prizes .machine__prize:nth-child(27) {
  background: #752ad5;
  top: 10.8em;
  left: 11.2em;
}
.machine__prizes .machine__prize:nth-child(28) {
  background: #d56f2a;
  top: 8.4em;
  left: 5.5em;
}
.machine__prizes .machine__prize:nth-child(29) {
  background: #d53f2a;
  top: 8.5em;
  left: 1.1em;
}
.machine__prizes .machine__prize:nth-child(30) {
  background: #d52a47;
  top: 11.4em;
  left: 2.9em;
}
.machine__prizes .machine__prize:nth-child(31) {
  background: #d52a8f;
  top: 10.7em;
  left: 3.4em;
}
.machine__prizes .machine__prize:nth-child(32) {
  background: #d52a7c;
  top: 8.8em;
  left: 11em;
}
.machine__prizes .machine__prize:nth-child(33) {
  background: #2ad5d4;
  top: 12em;
  left: 5.3em;
}
.machine__prizes .machine__prize:nth-child(34) {
  background: #73d52a;
  top: 9.6em;
  left: 12.1em;
}
.machine__prizes .machine__prize:nth-child(35) {
  background: #d58c2a;
  top: 10.9em;
  left: 2.8em;
}
.machine__prizes .machine__prize:nth-child(36) {
  background: #d02ad5;
  top: 10.9em;
  left: 12.1em;
}
.machine__prizes .machine__prize:nth-child(37) {
  background: #d52c2a;
  top: 10.9em;
  left: 8.8em;
}
.machine__prizes .machine__prize:nth-child(38) {
  background: #b4d52a;
  top: 8.1em;
  left: 0.8em;
}
.machine__prizes .machine__prize:nth-child(39) {
  background: #d5c12a;
  top: 9.3em;
  left: 10.1em;
}
.machine__prizes .machine__prize:nth-child(40) {
  background: #d5ae2a;
  top: 9.2em;
  left: 5.5em;
}
.machine__prizes .machine__prize:nth-child(41) {
  background: #c3d52a;
  top: 11em;
  left: 3.1em;
}
.machine__prizes .machine__prize:nth-child(42) {
  background: #2acfd5;
  top: 8.2em;
  left: 10.3em;
}
.machine__prizes .machine__prize:nth-child(43) {
  background: #9d2ad5;
  top: 10.5em;
  left: 6.4em;
}
.machine__prizes .machine__prize:nth-child(44) {
  background: #4b2ad5;
  top: 11.8em;
  left: 8.5em;
}
.machine__prizes .machine__prize:nth-child(45) {
  background: #2a4fd5;
  top: 11.2em;
  left: 11.4em;
}
.machine__prizes .machine__prize:nth-child(46) {
  background: #73d52a;
  top: 10.5em;
  left: 0.7em;
}
.machine__prizes .machine__prize:nth-child(47) {
  background: #2aa7d5;
  top: 11.1em;
  left: 5.8em;
}
.machine__prizes .machine__prize:nth-child(48) {
  background: #d52a45;
  top: 8.2em;
  left: 1.8em;
}
.machine__prizes .machine__prize:nth-child(49) {
  background: #d5ab2a;
  top: 11.6em;
  left: 0.5em;
}
.machine__prizes .machine__prize:nth-child(50) {
  background: #432ad5;
  top: 9.7em;
  left: 1.8em;
}
.machine__prizes .machine__prize:nth-child(51) {
  background: #46d52a;
  top: 10.5em;
  left: 7em;
}
.machine__prizes .machine__prize:nth-child(52) {
  background: #2a31d5;
  top: 8.6em;
  left: 9.5em;
}
.machine__prizes .machine__prize:nth-child(53) {
  background: #d5702a;
  top: 10.9em;
  left: 5.8em;
}
.machine__prizes .machine__prize:nth-child(54) {
  background: #d5c42a;
  top: 8.7em;
  left: 3.2em;
}
.machine__prizes .machine__prize:nth-child(55) {
  background: #2ad55f;
  top: 11.8em;
  left: 9.4em;
}
.machine__prizes .machine__prize:nth-child(56) {
  background: #982ad5;
  top: 9.5em;
  left: 13.3em;
}
.machine__prizes .machine__prize:nth-child(57) {
  background: #2ac1d5;
  top: 10.3em;
  left: 8.2em;
}
.machine__prizes .machine__prize:nth-child(58) {
  background: #2aa4d5;
  top: 8.8em;
  left: 6em;
}
.machine__prizes .machine__prize:nth-child(59) {
  background: #2ad588;
  top: 10.7em;
  left: 8.5em;
}
.machine__prizes .machine__prize:nth-child(60) {
  background: #d55e2a;
  top: 11.6em;
  left: 13.3em;
}
.machine__prizes:nth-child(3) {
  z-index: -4;
}
.machine__prizes:nth-child(3) .machine__prize:nth-child(1) {
  background: #2a4dd5;
  top: 11.9em;
  left: 7.4em;
}
.machine__prizes:nth-child(3) .machine__prize:nth-child(2) {
  background: #2a82d5;
  top: 11em;
  left: 12.3em;
}
.machine__prizes:nth-child(3) .machine__prize:nth-child(3) {
  background: #d5ac2a;
  top: 10.8em;
  left: 4.4em;
}
.machine__prizes:nth-child(3) .machine__prize:nth-child(4) {
  background: #2aced5;
  top: 10.9em;
  left: 5.7em;
}
.machine__prizes:nth-child(3) .machine__prize:nth-child(5) {
  background: #d58f2a;
  top: 10.2em;
  left: 4.6em;
}
.machine__prizes:nth-child(3) .machine__prize:nth-child(6) {
  background: #d5852a;
  top: 10.7em;
  left: 13.7em;
}
.machine__prizes:nth-child(3) .machine__prize:nth-child(7) {
  background: #d5ab2a;
  top: 10em;
  left: 5.4em;
}
.machine__prizes:nth-child(3) .machine__prize:nth-child(8) {
  background: #872ad5;
  top: 8.9em;
  left: 9.8em;
}
.machine__prizes:nth-child(3) .machine__prize:nth-child(9) {
  background: #2ad5d3;
  top: 9.1em;
  left: 13.4em;
}
.machine__prizes:nth-child(3) .machine__prize:nth-child(10) {
  background: #d5932a;
  top: 10.9em;
  left: 6.1em;
}
.machine__prizes:nth-child(3) .machine__prize:nth-child(11) {
  background: #2ad579;
  top: 9.8em;
  left: 5em;
}
.machine__prizes:nth-child(3) .machine__prize:nth-child(12) {
  background: #2ad52d;
  top: 8.1em;
  left: 11.2em;
}
.machine__prizes:nth-child(3) .machine__prize:nth-child(13) {
  background: #2ad5c5;
  top: 8.3em;
  left: 12.7em;
}
.machine__prizes:nth-child(3) .machine__prize:nth-child(14) {
  background: #2ad5c2;
  top: 8.8em;
  left: 9.7em;
}
.machine__prizes:nth-child(3) .machine__prize:nth-child(15) {
  background: #a0d52a;
  top: 10.5em;
  left: 0.6em;
}
.machine__prizes:nth-child(3) .machine__prize:nth-child(16) {
  background: #89d52a;
  top: 9.5em;
  left: 12.5em;
}
.machine__prizes:nth-child(3) .machine__prize:nth-child(17) {
  background: #d52ab9;
  top: 8.2em;
  left: 8.5em;
}
.machine__prizes:nth-child(3) .machine__prize:nth-child(18) {
  background: #d55c2a;
  top: 8.8em;
  left: 13.2em;
}
.machine__prizes:nth-child(3) .machine__prize:nth-child(19) {
  background: #c3d52a;
  top: 9.7em;
  left: 4.1em;
}
.machine__prizes:nth-child(3) .machine__prize:nth-child(20) {
  background: #2ad562;
  top: 8.3em;
  left: 12.4em;
}
.machine__prizes:nth-child(3) .machine__prize:nth-child(21) {
  background: #d5a92a;
  top: 11.7em;
  left: 8.4em;
}
.machine__prizes:nth-child(3) .machine__prize:nth-child(22) {
  background: #d52a7a;
  top: 8.3em;
  left: 7.1em;
}
.machine__prizes:nth-child(3) .machine__prize:nth-child(23) {
  background: #5dd52a;
  top: 9.8em;
  left: 8.2em;
}
.machine__prizes:nth-child(3) .machine__prize:nth-child(24) {
  background: #2ad57d;
  top: 8em;
  left: 2em;
}
.machine__prizes:nth-child(3) .machine__prize:nth-child(25) {
  background: #c22ad5;
  top: 10.5em;
  left: 11.2em;
}
.machine__prizes:nth-child(3) .machine__prize:nth-child(26) {
  background: #d52abd;
  top: 10.4em;
  left: 12.1em;
}
.machine__prizes:nth-child(3) .machine__prize:nth-child(27) {
  background: #d5982a;
  top: 10.7em;
  left: 1.7em;
}
.machine__prizes:nth-child(3) .machine__prize:nth-child(28) {
  background: #d5522a;
  top: 10.9em;
  left: 2.1em;
}
.machine__prizes:nth-child(3) .machine__prize:nth-child(29) {
  background: #b4d52a;
  top: 10.9em;
  left: 1.2em;
}
.machine__prizes:nth-child(3) .machine__prize:nth-child(30) {
  background: #d52aa6;
  top: 11.6em;
  left: 3.9em;
}
.machine__prizes:nth-child(3) .machine__prize:nth-child(31) {
  background: #76d52a;
  top: 10.8em;
  left: 3.9em;
}
.machine__prizes:nth-child(3) .machine__prize:nth-child(32) {
  background: #76d52a;
  top: 8.2em;
  left: 0.8em;
}
.machine__prizes:nth-child(3) .machine__prize:nth-child(33) {
  background: #d52ad1;
  top: 11.5em;
  left: 5.3em;
}
.machine__prizes:nth-child(3) .machine__prize:nth-child(34) {
  background: #2abed5;
  top: 9.7em;
  left: 2.8em;
}
.machine__prizes:nth-child(3) .machine__prize:nth-child(35) {
  background: #d59b2a;
  top: 9.4em;
  left: 7.9em;
}
.machine__prizes:nth-child(3) .machine__prize:nth-child(36) {
  background: #422ad5;
  top: 8.4em;
  left: 8.7em;
}
.machine__prizes:nth-child(3) .machine__prize:nth-child(37) {
  background: #d52a97;
  top: 9.5em;
  left: 10.4em;
}
.machine__prizes:nth-child(3) .machine__prize:nth-child(38) {
  background: #9f2ad5;
  top: 10em;
  left: 4.9em;
}
.machine__prizes:nth-child(3) .machine__prize:nth-child(39) {
  background: #2a97d5;
  top: 8.6em;
  left: 3.6em;
}
.machine__prizes:nth-child(3) .machine__prize:nth-child(40) {
  background: #2ad591;
  top: 9.1em;
  left: 2.4em;
}
.machine__prizes:nth-child(3) .machine__prize:nth-child(41) {
  background: #2ad568;
  top: 9.9em;
  left: 5.5em;
}
.machine__prizes:nth-child(3) .machine__prize:nth-child(42) {
  background: #2a57d5;
  top: 11.7em;
  left: 7em;
}
.machine__prizes:nth-child(3) .machine__prize:nth-child(43) {
  background: #2ad572;
  top: 10.8em;
  left: 8.5em;
}
.machine__prizes:nth-child(3) .machine__prize:nth-child(44) {
  background: #622ad5;
  top: 10.7em;
  left: 7.6em;
}
.machine__prizes:nth-child(3) .machine__prize:nth-child(45) {
  background: #2a56d5;
  top: 8.8em;
  left: 4.2em;
}
.machine__prizes:nth-child(3) .machine__prize:nth-child(46) {
  background: #d52a8c;
  top: 9.8em;
  left: 0.4em;
}
.machine__prizes:nth-child(3) .machine__prize:nth-child(47) {
  background: #2a6bd5;
  top: 8.9em;
  left: 9.3em;
}
.machine__prizes:nth-child(3) .machine__prize:nth-child(48) {
  background: #d52a46;
  top: 9.2em;
  left: 7.8em;
}
.machine__prizes:nth-child(3) .machine__prize:nth-child(49) {
  background: #2aced5;
  top: 9.6em;
  left: 1.3em;
}
.machine__prizes:nth-child(3) .machine__prize:nth-child(50) {
  background: #2a6bd5;
  top: 10.3em;
  left: 6.6em;
}
.machine__prizes:nth-child(3) .machine__prize:nth-child(51) {
  background: #2ad56b;
  top: 8.3em;
  left: 4.9em;
}
.machine__prizes:nth-child(3) .machine__prize:nth-child(52) {
  background: #3fd52a;
  top: 9.2em;
  left: 0.5em;
}
.machine__prizes:nth-child(3) .machine__prize:nth-child(53) {
  background: #9e2ad5;
  top: 9.2em;
  left: 11.1em;
}
.machine__prizes:nth-child(3) .machine__prize:nth-child(54) {
  background: #d52a6c;
  top: 8.8em;
  left: 4.4em;
}
.machine__prizes:nth-child(3) .machine__prize:nth-child(55) {
  background: #4a2ad5;
  top: 10.1em;
  left: 0.2em;
}
.machine__prizes:nth-child(3) .machine__prize:nth-child(56) {
  background: #d5782a;
  top: 11.3em;
  left: 12.2em;
}
.machine__prizes:nth-child(3) .machine__prize:nth-child(57) {
  background: #d5b52a;
  top: 9.5em;
  left: 3.8em;
}
.machine__prizes:nth-child(3) .machine__prize:nth-child(58) {
  background: #8b2ad5;
  top: 11.7em;
  left: 11.9em;
}
.machine__prizes:nth-child(3) .machine__prize:nth-child(59) {
  background: #2ad5c4;
  top: 11.8em;
  left: 5.5em;
}
.machine__prizes:nth-child(3) .machine__prize:nth-child(60) {
  background: #d5572a;
  top: 10em;
  left: 3.9em;
}
.machine__prizes:nth-child(4) {
  transform: translateZ(-4em);
  z-index: -5;
}
.machine__prizes:nth-child(4) .machine__prize:nth-child(1) {
  background: #2ad58d;
  top: 8.8em;
  left: 7.9em;
}
.machine__prizes:nth-child(4) .machine__prize:nth-child(2) {
  background: #d52ac1;
  top: 10.8em;
  left: 12.4em;
}
.machine__prizes:nth-child(4) .machine__prize:nth-child(3) {
  background: #61d52a;
  top: 9.4em;
  left: 3.6em;
}
.machine__prizes:nth-child(4) .machine__prize:nth-child(4) {
  background: #b0d52a;
  top: 9.2em;
  left: 5em;
}
.machine__prizes:nth-child(4) .machine__prize:nth-child(5) {
  background: #d5442a;
  top: 10.5em;
  left: 13.5em;
}
.machine__prizes:nth-child(4) .machine__prize:nth-child(6) {
  background: #b4d52a;
  top: 8.7em;
  left: 12.4em;
}
.machine__prizes:nth-child(4) .machine__prize:nth-child(7) {
  background: #d52a7e;
  top: 11.9em;
  left: 0.7em;
}
.machine__prizes:nth-child(4) .machine__prize:nth-child(8) {
  background: #2a74d5;
  top: 10.4em;
  left: 2.6em;
}
.machine__prizes:nth-child(4) .machine__prize:nth-child(9) {
  background: #2ad59d;
  top: 10.7em;
  left: 5.3em;
}
.machine__prizes:nth-child(4) .machine__prize:nth-child(10) {
  background: #d52a97;
  top: 11.2em;
  left: 6.1em;
}
.machine__prizes:nth-child(4) .machine__prize:nth-child(11) {
  background: #d52a81;
  top: 11.1em;
  left: 9.4em;
}
.machine__prizes:nth-child(4) .machine__prize:nth-child(12) {
  background: #982ad5;
  top: 9.6em;
  left: 1.5em;
}
.machine__prizes:nth-child(4) .machine__prize:nth-child(13) {
  background: #2a2bd5;
  top: 10.1em;
  left: 9.2em;
}
.machine__prizes:nth-child(4) .machine__prize:nth-child(14) {
  background: #2ad56d;
  top: 8.9em;
  left: 4.4em;
}
.machine__prizes:nth-child(4) .machine__prize:nth-child(15) {
  background: #822ad5;
  top: 9.8em;
  left: 11.8em;
}
.machine__prizes:nth-child(4) .machine__prize:nth-child(16) {
  background: #2ad583;
  top: 9.3em;
  left: 12.9em;
}
.machine__prizes:nth-child(4) .machine__prize:nth-child(17) {
  background: #6d2ad5;
  top: 11.9em;
  left: 9.6em;
}
.machine__prizes:nth-child(4) .machine__prize:nth-child(18) {
  background: #d52a97;
  top: 10.1em;
  left: 13.1em;
}
.machine__prizes:nth-child(4) .machine__prize:nth-child(19) {
  background: #d52a99;
  top: 11.6em;
  left: 2.4em;
}
.machine__prizes:nth-child(4) .machine__prize:nth-child(20) {
  background: #392ad5;
  top: 9.4em;
  left: 6.4em;
}
.machine__prizes:nth-child(4) .machine__prize:nth-child(21) {
  background: #2ad5af;
  top: 10.1em;
  left: 2.5em;
}
.machine__prizes:nth-child(4) .machine__prize:nth-child(22) {
  background: #2a5ed5;
  top: 10.5em;
  left: 9.2em;
}
.machine__prizes:nth-child(4) .machine__prize:nth-child(23) {
  background: #2ac7d5;
  top: 10em;
  left: 9em;
}
.machine__prizes:nth-child(4) .machine__prize:nth-child(24) {
  background: #9c2ad5;
  top: 9.9em;
  left: 12.9em;
}
.machine__prizes:nth-child(4) .machine__prize:nth-child(25) {
  background: #d5a92a;
  top: 8.9em;
  left: 0.5em;
}
.machine__prizes:nth-child(4) .machine__prize:nth-child(26) {
  background: #2ad5d3;
  top: 8.8em;
  left: 3.2em;
}
.machine__prizes:nth-child(4) .machine__prize:nth-child(27) {
  background: #532ad5;
  top: 10.2em;
  left: 0em;
}
.machine__prizes:nth-child(4) .machine__prize:nth-child(28) {
  background: #2a7ed5;
  top: 10.3em;
  left: 12.7em;
}
.machine__prizes:nth-child(4) .machine__prize:nth-child(29) {
  background: #2ad5b3;
  top: 9.6em;
  left: 11.3em;
}
.machine__prizes:nth-child(4) .machine__prize:nth-child(30) {
  background: #2a35d5;
  top: 11.1em;
  left: 1.6em;
}
.machine__prizes:nth-child(4) .machine__prize:nth-child(31) {
  background: #2ad565;
  top: 10em;
  left: 1em;
}
.machine__prizes:nth-child(4) .machine__prize:nth-child(32) {
  background: #b72ad5;
  top: 11em;
  left: 4.2em;
}
.machine__prizes:nth-child(4) .machine__prize:nth-child(33) {
  background: #d5362a;
  top: 8.8em;
  left: 11.9em;
}
.machine__prizes:nth-child(4) .machine__prize:nth-child(34) {
  background: #2abbd5;
  top: 11.8em;
  left: 1.9em;
}
.machine__prizes:nth-child(4) .machine__prize:nth-child(35) {
  background: #d52a79;
  top: 11em;
  left: 9.2em;
}
.machine__prizes:nth-child(4) .machine__prize:nth-child(36) {
  background: #2a77d5;
  top: 11.5em;
  left: 11.5em;
}
.machine__prizes:nth-child(4) .machine__prize:nth-child(37) {
  background: #2ad543;
  top: 8.6em;
  left: 5.2em;
}
.machine__prizes:nth-child(4) .machine__prize:nth-child(38) {
  background: #bd2ad5;
  top: 8.2em;
  left: 1.1em;
}
.machine__prizes:nth-child(4) .machine__prize:nth-child(39) {
  background: #2ad584;
  top: 12em;
  left: 6.2em;
}
.machine__prizes:nth-child(4) .machine__prize:nth-child(40) {
  background: #d59e2a;
  top: 12em;
  left: 5.2em;
}
.machine__prizes:nth-child(4) .machine__prize:nth-child(41) {
  background: #2ad55c;
  top: 10.1em;
  left: 10.2em;
}
.machine__prizes:nth-child(4) .machine__prize:nth-child(42) {
  background: #d5322a;
  top: 11.4em;
  left: 4.7em;
}
.machine__prizes:nth-child(4) .machine__prize:nth-child(43) {
  background: #c0d52a;
  top: 10.9em;
  left: 12.4em;
}
.machine__prizes:nth-child(4) .machine__prize:nth-child(44) {
  background: #64d52a;
  top: 9em;
  left: 5.5em;
}
.machine__prizes:nth-child(4) .machine__prize:nth-child(45) {
  background: #78d52a;
  top: 8.2em;
  left: 7.6em;
}
.machine__prizes:nth-child(4) .machine__prize:nth-child(46) {
  background: #7d2ad5;
  top: 10.2em;
  left: 6.2em;
}
.machine__prizes:nth-child(4) .machine__prize:nth-child(47) {
  background: #d5612a;
  top: 8.6em;
  left: 7.8em;
}
.machine__prizes:nth-child(4) .machine__prize:nth-child(48) {
  background: #a0d52a;
  top: 9.4em;
  left: 6.9em;
}
.machine__prizes:nth-child(4) .machine__prize:nth-child(49) {
  background: #d52a2e;
  top: 9em;
  left: 4.9em;
}
.machine__prizes:nth-child(4) .machine__prize:nth-child(50) {
  background: #d52a5e;
  top: 11.6em;
  left: 4.2em;
}
.machine__prizes:nth-child(4) .machine__prize:nth-child(51) {
  background: #382ad5;
  top: 11.9em;
  left: 4em;
}
.machine__prizes:nth-child(4) .machine__prize:nth-child(52) {
  background: #70d52a;
  top: 9.8em;
  left: 10.3em;
}
.machine__prizes:nth-child(4) .machine__prize:nth-child(53) {
  background: #6c2ad5;
  top: 9.6em;
  left: 3.8em;
}
.machine__prizes:nth-child(4) .machine__prize:nth-child(54) {
  background: #85d52a;
  top: 10em;
  left: 11.1em;
}
.machine__prizes:nth-child(4) .machine__prize:nth-child(55) {
  background: #d5cc2a;
  top: 10.8em;
  left: 7.8em;
}
.machine__prizes:nth-child(4) .machine__prize:nth-child(56) {
  background: #d5692a;
  top: 9.4em;
  left: 13.7em;
}
.machine__prizes:nth-child(4) .machine__prize:nth-child(57) {
  background: #2a3ed5;
  top: 10.5em;
  left: 6em;
}
.machine__prizes:nth-child(4) .machine__prize:nth-child(58) {
  background: #942ad5;
  top: 9.7em;
  left: 1.6em;
}
.machine__prizes:nth-child(4) .machine__prize:nth-child(59) {
  background: #d52ac0;
  top: 11.8em;
  left: 1.6em;
}
.machine__prizes:nth-child(4) .machine__prize:nth-child(60) {
  background: #d52a79;
  top: 11.4em;
  left: 4.2em;
}
.machine__prize {
  background: #d5812a;
  border-radius: 50%;
  box-shadow: -0.25em -0.25em 0 rgba(0, 0, 0, 0.25) inset;
  opacity: 0;
  top: calc(100% - 2em);
  left: calc(50% - 1em);
  width: 2em;
  height: 2em;
}
.machine__op-area {
  background: linear-gradient(90deg, black 0.25em, transparent 0.25em 0.5em, #806114 0.5em 1em, transparent 1em 7.5em, black 7.5em 7.75em, transparent 7.75em 8em, #806114 8em) 50% 5.25em/8.5em 1em, linear-gradient(90deg, #242424 1.5em, transparent 1.5em 7.5em, #242424 7.5em) 50% 5em/9em 1.5em, linear-gradient(90deg, #3d3d3d 1em, transparent 1em 7.5em, #3d3d3d 7.5em) 50% 7.5em/8.5em 1em, linear-gradient(90deg, #242424 1.5em, transparent 1.5em 7.5em, #242424 7.5em) 50% 7.25em/9em 1.5em;
  background-repeat: no-repeat;
  margin: -2.25em 0.5em 1em 0.5em;
  width: 17em;
  height: 12em;
}
.machine__op-area, .machine__op-area:before {
  border-top: 1.5em solid #f2b926;
  border-right: 0.25em solid rgba(0, 0, 0, 0.25);
  border-bottom: 1em solid rgba(0, 0, 0, 0.3);
  border-left: 0.25em solid rgba(255, 255, 255, 0.2);
}
.machine__op-area:before {
  content: "";
  display: block;
  margin: auto;
  height: 1.5em;
}
.machine__prize-door, .machine__vents {
  width: 3em;
  height: 3em;
}
.machine__prize-door {
  background: #969696;
  border-radius: 0.375em;
  box-shadow: 0.125em 0.125em 0 rgba(0, 0, 0, 0.55) inset;
  margin: 0 auto 0 1.5em;
}
.machine__vents {
  background: radial-gradient(100% 100% at center, black 33%, transparent 35%) 0 0/25% 25%;
  margin: 0 auto 0 0;
}
.machine__feet {
  background: linear-gradient(90deg, #a3a3a3 2em, transparent 2em 15em, #a3a3a3 15em) 0 100%/100% 50%, linear-gradient(90deg, transparent 0.5em, #969696 0.5em 1.5em, transparent 1.5em 15.5em, #969696 15.5em 16.5em, transparent 16.5em);
  background-repeat: no-repeat;
  position: absolute;
  top: 100%;
  left: 0.5em;
  width: 17em;
  height: 1em;
}

/* Button labels */
.right-arrow, .down-arrow, .left-arrow, .up-arrow {
  width: 0;
  height: 0;
}

.right-arrow {
  border-top: 0.5em solid transparent;
  border-bottom: 0.5em solid transparent;
  border-left: 1em solid;
}

.down-arrow {
  border-top: 0.75em solid;
  border-right: 0.75em solid transparent;
  border-left: 0.75em solid transparent;
}

.left-arrow {
  border-top: 0.5em solid transparent;
  border-right: 1em solid;
  border-bottom: 0.5em solid transparent;
}

.up-arrow {
  border-right: 0.75em solid transparent;
  border-bottom: 0.75em solid;
  border-left: 0.75em solid transparent;
}

.sr {
  clip: rect(1px, 1px, 1px, 1px);
  overflow: hidden;
  width: 1px;
  height: 1px;
}

/* Animation */
@keyframes lowerArm {
  from, 50%, to {
    transform: translateY(-8em);
  }
  20%, 30% {
    transform: translateY(-2em);
  }
}
@keyframes swingClaw1 {
  from, to {
    transform: rotate(0deg);
  }
  25% {
    transform: rotate(10deg);
  }
  75% {
    transform: rotate(-10deg);
  }
}
@keyframes swingClaw2 {
  from, 20%, 30%, 50%, to {
    transform: rotate(0deg);
  }
  5%, 35% {
    transform: rotate(5deg);
  }
  15%, 45% {
    transform: rotate(-5deg);
  }
}
@keyframes grabA {
  from, 20%, to {
    transform: translateY(0) rotate(30deg);
  }
  25%, 95% {
    transform: translateY(-0.5em) rotate(0);
  }
}
@keyframes grabB {
  from, 20%, to {
    transform: translateY(0) scaleY(0.67);
  }
  25%, 95% {
    transform: translateY(-0.5em) scaleY(1);
  }
}
@keyframes grabC {
  from, 20%, to {
    transform: translateY(0) rotate(-30deg);
  }
  25%, 95% {
    transform: translateY(-0.5em) rotate(0);
  }
}
@keyframes raisePalm {
  from, 20%, to {
    transform: translateY(0);
  }
  25%, 95% {
    transform: translateY(-0.5em);
  }
}
@keyframes liftPrize {
  from, 20% {
    opacity: 0;
    transform: translate(0, 0);
  }
  20.1% {
    opacity: 1;
    transform: translate(0, 0);
  }
  25%, 45% {
    opacity: 1;
    transform: translate(0, -0.75em);
  }
  50% {
    opacity: 1;
    transform: translate(-0.125em, 6em);
  }
  50.1%, to {
    opacity: 0;
    transform: translate(-0.125em, 6em);
  }
}
@keyframes disappear {
  from {
    visibility: visible;
  }
  to {
    visibility: hidden;
  }
}
@keyframes flash {
  from, to {
    visibility: visible;
    filter: brightness(100%);
    -webkit-filter: brightness(100%);
  }
  50% {
    visibility: visible;
    filter: brightness(75%);
    -webkit-filter: brightness(75%);
  }
}