@font-face {
  font-family: "Poppins";
  font-weight: 500;
  font-style: normal;
  src: url("/fonts/Poppins-Medium.ttf");
}
@font-face {
  font-family: "Poppins";
  font-weight: 600;
  font-style: normal;
  src: url("/fonts/Poppins-SemiBold.ttf");
}
@font-face {
  font-family: "Poppins";
  font-weight: 700;
  font-style: normal;
  src: url("/fonts/Poppins-Bold.ttf");
}
@font-face {
  font-family: "Poppins";
  font-weight: 800;
  font-style: normal;
  src: url("/fonts/Poppins-ExtraBold.ttf");
}
@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.25);
  }
  100% {
    transform: scale(1);
  }
}
:root {
  --background: floralwhite;
  --foreground: rgb(70, 70, 70);
  --glass: rgba(255, 250, 240, 0.9);
  --box-0: rgb(184, 23, 255);
  --box-1: rgb(0, 132, 255);
  --box-2: rgb(139, 139, 139);
  --box-2: gold;
  --box-3: rgb(58, 255, 0);
  --box-4: rgb(255, 135, 0);
  --box-5: red;
  --box-6: magenta;
  --box-7: cyan;
  --box-off: grey;
  --prompt-background: white;
  --prompt-foreground: rgb(32, 32, 32);
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #333;
    --foreground: snow;
    --glass: rgba(0, 0, 0, 0.8);
  }
}
* {
  padding: 0;
  margin: 0;
}

html {
  overflow: hidden;
}

body {
  font-family: "Poppins", sans-serif;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
  background-color: var(--background);
  color: var(--foreground);
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  height: 100dvh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.auto-height {
  height: auto !important;
}

.auto-overflow {
  overflow: auto !important;
}

h1 {
  font-size: 2.5em;
  text-align: center;
  line-height: 1;
}

h1,
h2,
h3 {
  font-weight: 800;
}

select,
input,
textarea {
  font-size: inherit;
}

input {
  width: 80px;
}

textarea {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  border: 0;
}

.home-screen button,
.play-screen button,
.tutorial-screen button {
  border: 0;
  background-color: fuchsia;
  color: white;
  font-family: inherit;
  padding: 8px 25px;
  border-radius: 10px;
  font-weight: 800;
  font-size: 22px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.home-screen button.close,
.play-screen button.close,
.tutorial-screen button.close {
  background-color: transparent;
  color: inherit;
  font-weight: 700;
  opacity: 0.8;
  padding: 8px 15px;
}
.home-screen button.restore,
.play-screen button.restore,
.tutorial-screen button.restore {
  font-size: 16px;
  opacity: 0.25;
}

.inputs {
  display: flex;
  gap: 5px;
  position: relative;
}

.knob {
  border: solid 8px black;
  position: absolute;
  box-sizing: border-box;
  cursor: pointer;
  transition: all 0.5s;
  border-radius: 100%;
  color: white;
  text-align: center;
  font-weight: 800;
  -webkit-tap-highlight-color: transparent;
}
@media (min-width: 600px) {
  .knob {
    border-width: 10px;
  }
}
.knob[data-animation=bounce] {
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.knob[data-box="0"] {
  border-color: var(--box-0);
  background-color: var(--box-0);
}
.knob[data-box="1"] {
  border-color: var(--box-1);
  background-color: var(--box-1);
}
.knob[data-box="2"] {
  border-color: var(--box-2);
  background-color: var(--box-2);
}
.knob[data-box="3"] {
  border-color: var(--box-3);
  background-color: var(--box-3);
}
.knob[data-box="4"] {
  border-color: var(--box-4);
  background-color: var(--box-4);
}
.knob[data-box="5"] {
  border-color: var(--box-5);
  background-color: var(--box-5);
}
.knob[data-box="6"] {
  border-color: var(--box-6);
  background-color: var(--box-6);
}
.knob[data-box="7"] {
  border-color: var(--box-7);
  background-color: var(--box-7);
}
.knob[data-state=off] {
  opacity: 0.2;
  transform: rotate(-180deg);
  border-color: var(--box-off);
  background-color: var(--box-off);
}
.knob[data-state=highlight] {
  animation: pulse 1s infinite;
}
.knob[data-visible=false] {
  transform: scale(0);
}
.knob[data-visible=false][data-state=off] {
  transform: rotate(-180deg) scale(0);
}
.knob:before, .knob:after {
  content: "";
  display: block;
  position: absolute;
}
.knob:after {
  width: 6px;
  height: 16px;
  border-radius: 3px;
  background-color: white;
  left: calc(50% - 3px);
  top: -2px;
}
.knob:before {
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.25);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 100%;
}

.puzzle {
  position: relative;
}

.home-screen {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.home-screen .buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.home-screen .stats {
  font-size: 16px;
  display: flex;
  align-items: center;
  flex-direction: column;
  font-weight: 800;
  opacity: 0.4;
  line-height: 1.2;
}
.home-screen-foot {
  position: absolute;
  bottom: 40px;
  left: 20px;
  right: 20px;
  font-size: 16px;
  text-align: center;
  display: none;
}

.play-screen,
.tutorial-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}
.play-screen h1,
.tutorial-screen h1 {
  font-size: 2em;
}
.play-screen .buttons,
.tutorial-screen .buttons {
  display: flex;
  gap: 10px;
}

.tutorial-screen {
  padding-bottom: 150px;
}

.prompt {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  box-sizing: border-box;
  background-color: var(--prompt-background);
  padding: 12px 15px;
  border-radius: 10px;
  box-shadow: rgba(0, 0, 0, 0.25) 0 0 10px;
  width: calc(100% - 20px);
  max-width: 500px;
  transition: all 0.25s;
}
.prompt-head {
  text-align: center;
  margin-bottom: 10px;
}
.prompt-body {
  color: var(--prompt-foreground);
  padding-bottom: 20px;
  line-height: 1.2;
}
.pro .prompt-body {
  padding-left: 5px;
  padding-right: 5px;
  line-height: 1.3;
}
.prompt-foot {
  display: flex;
  justify-content: end;
  gap: 10px;
}
.prompt.pro {
  top: 50%;
  bottom: auto;
  transform: translate(-50%, -50%);
  padding: 15px;
}
.prompt.pro[data-active=false] {
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0);
}

.solved {
  background-color: var(--glass);
  backdrop-filter: blur(2px);
  position: absolute;
  inset: 0;
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  transition: opacity 0.25s;
}
.solved h3 {
  font-size: 3em;
  line-height: 1;
  margin-bottom: 10px;
}
.solved h2 {
  font-size: 2em;
  line-height: 1;
}
.solved-body {
  pointer-events: none;
}
.solved .time {
  font-size: 22px;
}
.solved .continue {
  font-weight: 500;
  font-size: 20px;
  padding-top: 30px;
}
.solved[data-state=disabled] {
  display: none;
}

.builder {
  position: relative;
  margin-bottom: 40px;
}
.builder button {
  border: 0;
  color: inherit;
  font-family: inherit;
  font-weight: 800;
  font-size: 22px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.builder button.point {
  background-color: deepskyblue;
  border: 0;
  color: white;
  font-size: 20px;
  border-radius: 100%;
  position: absolute;
  font-weight: bold;
  width: 40px;
  height: 40px;
  padding: 0;
}
.builder button.point:hover, .builder button.point.logged {
  background-color: maroon;
}
.builder button.pos {
  background-color: transparent;
  border: 0;
  position: absolute;
  font-size: 40px;
  padding: 0;
}
.builder button.pos:hover {
  background-color: yellow;
}
.builder button.star {
  background-color: red;
}

.checker-screen {
  width: 1140px;
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  padding: 40px 0;
}

.nudge {
  position: absolute;
  inset: 0;
  border: solid 100px red;
  opacity: 0.25;
  top: -100px;
  left: -100px;
}