@import url("https://fonts.googleapis.com/css2?family=Nunito+Sans:wght@200;300;400;600;700;800;900&display=swap");
* {
  font-family: 'Nunito Sans', sans-serif;
}

body {
  cursor: default;
  width: 100vw;
  height: var(--viewportHeight);
  -ms-touch-action: pan-x pan-y;
      touch-action: pan-x pan-y;
}

.bold {
  font-weight: bold !important;
}

.z-100 {
  z-index: 100;
}

.hero {
  position: absolute;
  width: var(--heroSize);
  height: var(--heroSize);
  height: calc(var(--heroSize) * 2);
  background-repeat: no-repeat;
  background-position: top left;
  background-image: url("../images/hero.png");
  background-image: url("../images/hero_sprite.svg");
  background-position: 0px 0px;
  background-size: calc(var(--heroSize) * 3) calc(var(--heroSize) * 4 * 2);
  z-index: 20;
  -webkit-transform: translateX(calc((var(--gridSize) - var(--heroSize)) / 2)) translateY(calc((var(--gridSize) - var(--heroSize)) / 2 - var(--heroSize)));
          transform: translateX(calc((var(--gridSize) - var(--heroSize)) / 2)) translateY(calc((var(--gridSize) - var(--heroSize)) / 2 - var(--heroSize)));
}

.hero.up {
  background-position: 0px calc(-3 * var(--heroSize) * 2);
}

.hero.up.move {
  -webkit-animation: hero-up 250ms infinite steps(3);
          animation: hero-up 250ms infinite steps(3);
}

.hero.down {
  background-position: 0px calc(0 * var(--heroSize) * 2);
}

.hero.down.move {
  -webkit-animation: hero-down 250ms infinite steps(3);
          animation: hero-down 250ms infinite steps(3);
}

.hero.left {
  background-position: 0px calc(-1 * var(--heroSize) * 2);
}

.hero.left.move {
  -webkit-animation: hero-left 250ms infinite steps(3);
          animation: hero-left 250ms infinite steps(3);
}

.hero.right {
  background-position: 0px calc(-2 * var(--heroSize) * 2);
}

.hero.right.move {
  -webkit-animation: hero-right 250ms infinite steps(3);
          animation: hero-right 250ms infinite steps(3);
}

body .touch {
  display: none;
}

body .no-touch {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
}

body.touch .touch {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
}

body.touch .no-touch {
  display: none;
}

body.touch #game-wrapper #controller {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
}

body.portrait .btn-sound.game {
  width: 24px;
  height: 24px;
  right: 8px;
  top: calc(8px + 24px + 8px);
}

body.portrait #content-wrapper .content {
  padding: 0 40px;
}

body.portrait #maze-wrapper #maze .centre {
  overflow: visible;
  width: auto;
  height: calc(var(--gridSize) * 5 + var(--borderSize) + var(--borderSize));
  top: calc(var(--gridSize) * 7.6);
  left: calc(var(--gridSize) * 3.55);
  width: calc(var(--gridSize) * 5);
  height: calc(var(--gridSize) * 4 - var(--borderSize) - var(--borderSize));
  left: calc(var(--gridSize) * 2 - var(--borderSize));
  top: calc(var(--gridSize) * 4.75);
  position: absolute;
  -webkit-transform: rotate(90deg);
          transform: rotate(90deg);
}

body.portrait #maze-wrapper #maze .centre path#circle {
  stroke-width: calc(var(--borderSize) * 3);
}

body.portrait #maze-wrapper #maze .circle-pulse {
  width: calc(var(--gridSize) * 4);
  height: calc(var(--gridSize) * 4);
  left: calc(var(--gridSize) * 2.5 - var(--borderSize));
  top: calc(var(--gridSize) * 5);
  -webkit-transform: translateY(calc(var(--gridSize) * -.25));
          transform: translateY(calc(var(--gridSize) * -.25));
}

body.portrait #maze-wrapper #maze .circle {
  width: calc(var(--gridSize) * 4);
  height: calc(var(--gridSize) * 4);
  left: calc(var(--gridSize) * 2.5 - var(--borderSize));
  top: calc(var(--gridSize) * 5);
  -webkit-transform: translateY(calc(var(--gridSize) * -.25));
          transform: translateY(calc(var(--gridSize) * -.25));
}

body.portrait #maze-wrapper #maze .lock.lock-4, body.portrait #maze-wrapper #maze .pulse.lock-4 {
  -webkit-transform: translateX(calc(var(--borderSize) * 1)) translateY(calc(var(--borderSize) * 1));
          transform: translateX(calc(var(--borderSize) * 1)) translateY(calc(var(--borderSize) * 1));
}

body.portrait #maze-wrapper #maze .lock.lock-1, body.portrait #maze-wrapper #maze .pulse.lock-1 {
  -webkit-transform: translateX(0px) translateY(calc(var(--borderSize) * 1));
          transform: translateX(0px) translateY(calc(var(--borderSize) * 1));
}

body.portrait #maze-wrapper #maze .lock.lock-2, body.portrait #maze-wrapper #maze .pulse.lock-2 {
  -webkit-transform: translateX(0px) translateY(calc(var(--borderSize) * 0));
          transform: translateX(0px) translateY(calc(var(--borderSize) * 0));
}

body.portrait #maze-wrapper #maze .lock.lock-3, body.portrait #maze-wrapper #maze .pulse.lock-3 {
  -webkit-transform: translateX(calc(var(--borderSize) * 1)) translateY(calc(var(--borderSize) * 0));
          transform: translateX(calc(var(--borderSize) * 1)) translateY(calc(var(--borderSize) * 0));
}

body.portrait #maze-wrapper #maze .lock img, body.portrait #maze-wrapper #maze .pulse img {
  width: 100%;
  height: 100%;
}

.fill-screen {
  width: 100vw;
  height: var(--viewportHeight);
  position: relative;
  overflow: hidden;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-user-select: none;
     -moz-user-select: none;
      -ms-user-select: none;
          user-select: none;
  -webkit-touch-callout: none;
}

#background {
  pointer-events: none;
  background-color: #dfd5f0;
  position: absolute;
  top: 0px;
  left: 0px;
  z-index: 0;
}

#background .bg-circle {
  position: absolute;
  border-radius: 50%;
}

#game-outer-wrapper {
  display: none;
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
}

#game-wrapper {
  position: absolute;
  top: 0px;
  left: 0px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
}

#game-wrapper #header {
  padding: 16px  16px 0 16px;
}

#game-wrapper #header p {
  font-style: normal;
  font-weight: 400;
  font-size: 24px;
  line-height: 22px;
  color: #5C0F8B;
  margin: 0 8px 0 0;
}

#game-wrapper #header .score-wrapper {
  border-radius: 24px;
  background-color: #5C0F8B;
  padding: 0 20px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  margin-right: 16px;
  height: 48px;
}

#game-wrapper #header .score-wrapper p {
  color: white;
}

#game-wrapper #header .btn-close {
  top: 16px;
  right: 16px;
}

#game-wrapper #header .header-score {
  margin-right: 48px;
}

#game-wrapper #header .header-gem,
#game-wrapper #header .header-lock {
  background: #5C0F8B;
  border: 2px solid #AF95D6;
  -webkit-box-shadow: 0 0 0 2px #efcd8f;
          box-shadow: 0 0 0 2px #efcd8f;
  min-width: 32px;
  min-height: 32px;
  max-width: 32px;
  max-height: 32px;
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  margin: 0 4px;
  border-radius: 50%;
}

#game-wrapper #header .header-gem.collected,
#game-wrapper #header .header-lock.collected {
  background-color: transparent;
  -webkit-box-shadow: 0 0 0 2px #FABE2C;
          box-shadow: 0 0 0 2px #FABE2C;
}

#game-wrapper #header .header-gem img,
#game-wrapper #header .header-lock img {
  width: 100%;
  height: 100%;
}

#game-wrapper #header .header-gem {
  background: none;
  -webkit-box-shadow: none;
          box-shadow: none;
}

#game-wrapper #header .header-gem.collected {
  background-color: transparent;
  -webkit-box-shadow: none;
          box-shadow: none;
}

#game-wrapper #controller {
  display: none;
  padding: 0 0 10px 0;
  height: 70px;
}

#game-wrapper #controller div {
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

#game-wrapper #controller img {
  pointer-events: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  width: 60px;
  height: 60px;
  cursor: pointer;
  -webkit-filter: invert(17%) sepia(67%) saturate(3987%) hue-rotate(271deg) brightness(67%) contrast(108%);
          filter: invert(17%) sepia(67%) saturate(3987%) hue-rotate(271deg) brightness(67%) contrast(108%);
}

#maze-wrapper {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-flex: 1;
      -ms-flex-positive: 1;
          flex-grow: 1;
  padding: 0 80px;
}

#maze-wrapper #maze {
  position: relative;
  width: calc(var(--mazeX) * var(--gridSize));
  height: calc(var(--mazeY) * var(--gridSize));
  -webkit-box-sizing: content-box;
          box-sizing: content-box;
  margin: 0 auto;
}

#maze-wrapper #maze:before {
  content: '';
  position: absolute;
  width: calc(var(--borderSize) * 2);
  left: calc(100% - var(--borderSize) / 2);
  left: calc(100%);
  top: calc(var(--borderSize) / -2);
  height: calc(100% + var(--borderSize) * 2);
  background-color: #5C0F8B;
  -webkit-box-sizing: content-box;
          box-sizing: content-box;
  border-radius: var(--borderSize);
}

#maze-wrapper #maze:after {
  content: '';
  position: absolute;
  width: calc(100% + var(--borderSize) * 2);
  left: calc(var(--borderSize) / -2);
  top: calc(100% - var(--borderSize) / 2);
  height: calc(var(--borderSize) * 2);
  background-color: #5C0F8B;
  -webkit-box-sizing: content-box;
          box-sizing: content-box;
  border-radius: var(--borderSize);
}

#maze-wrapper #maze.debug .cell {
  border: .5px solid red;
  font-size: 10px;
  line-height: 16px;
}

#maze-wrapper #maze.debug .hero {
  border: 1px solid red;
  background-color: rgba(255, 0, 0, 0.2) !important;
}

#maze-wrapper #maze .center-lock {
  position: absolute;
  width: calc(var(--gridSize) - var(--borderSize));
  height: calc(var(--gridSize) - var(--borderSize));
  content: url("../images/lock.svg");
  z-index: 30;
  -webkit-transform: scale(0.7) translateX(calc(var(--borderSize)));
          transform: scale(0.7) translateX(calc(var(--borderSize)));
  opacity: 1;
  -webkit-transition: opacity linear 500ms;
  transition: opacity linear 500ms;
}

#maze-wrapper #maze .center-lock.open {
  opacity: 0;
}

#maze-wrapper #maze .centre {
  pointer-events: none;
  overflow: visible;
  width: calc(var(--gridSize) * 5);
  height: calc(var(--gridSize) * 4 - var(--borderSize) - var(--borderSize));
  top: calc(var(--gridSize) * 2.5 + var(--borderSize) + var(--borderSize));
  left: calc(var(--gridSize) * 4.25 + var(--borderSize));
  position: absolute;
  z-index: 25;
}

#maze-wrapper #maze .centre img, #maze-wrapper #maze .centre svg {
  width: 100%;
  height: 100%;
}

#maze-wrapper #maze .centre #blue,
#maze-wrapper #maze .centre #yellow {
  -webkit-transition: linear all 500ms;
  transition: linear all 500ms;
}

#maze-wrapper #maze .centre #blue.open,
#maze-wrapper #maze .centre #yellow.open {
  height: 0;
}

#maze-wrapper #maze .circle {
  overflow: hidden;
  pointer-events: none;
  width: calc(var(--gridSize) * 4 - var(--borderSize) - var(--borderSize));
  height: calc(var(--gridSize) * 4 - var(--borderSize) - var(--borderSize));
  top: calc(var(--gridSize) * 2.5 + var(--borderSize) + var(--borderSize));
  left: calc(var(--gridSize) * 4.75 + var(--borderSize));
  position: absolute;
  border-radius: 50%;
  z-index: 26;
}

#maze-wrapper #maze .circle .bg {
  width: 100%;
  height: 100%;
  z-index: -1;
  -webkit-transform: scale(0.9);
          transform: scale(0.9);
  border-radius: 50%;
  position: absolute;
  top: 0;
  left: 0;
}

#maze-wrapper #maze .circle .cup {
  position: absolute;
  -webkit-transform: scale(0.9);
          transform: scale(0.9);
  z-index: 10;
  top: 0;
  left: 0;
}

#maze-wrapper #maze .circle-pulse {
  overflow: visible;
  -webkit-animation-delay: 3s;
          animation-delay: 3s;
  -webkit-animation-iteration-count: infinite;
          animation-iteration-count: infinite;
  -webkit-animation-name: pulse-animation-2;
          animation-name: pulse-animation-2;
  -webkit-animation-duration: 30s;
          animation-duration: 30s;
  pointer-events: none;
  width: calc(var(--gridSize) * 4 - var(--borderSize) - var(--borderSize));
  height: calc(var(--gridSize) * 4 - var(--borderSize) - var(--borderSize));
  top: calc(var(--gridSize) * 2.5 + var(--borderSize) + var(--borderSize));
  left: calc(var(--gridSize) * 4.75 + var(--borderSize));
  position: absolute;
  border-radius: 50%;
  z-index: 2;
}

#maze-wrapper #maze .cell {
  -webkit-box-sizing: content-box;
          box-sizing: content-box;
  position: absolute;
  width: var(--gridSize);
  height: var(--gridSize);
  font-size: 0px;
  line-height: 10px;
  text-align: center;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
}

#maze-wrapper #maze .cell p {
  margin: 0;
  display: block;
  width: 100%;
}

#maze-wrapper #maze .cell[y="0"][walls*="8"]:after {
  height: calc(var(--borderSize) * 2) !important;
}

#maze-wrapper #maze .cell[x="0"][walls*="4"]:before {
  width: calc(var(--borderSize) * 2) !important;
}

#maze-wrapper #maze .cell[walls*="4"]:before {
  content: '';
  position: absolute;
  width: var(--borderSize);
  left: calc(var(--borderSize) / -2);
  top: calc(var(--borderSize) / -2);
  height: calc(var(--gridSize) + var(--borderSize));
  background-color: #5C0F8B;
  -webkit-box-sizing: content-box;
          box-sizing: content-box;
  border-radius: var(--borderSize);
}

#maze-wrapper #maze .cell[walls*="8"]:after {
  border-radius: var(--borderSize);
  -webkit-box-sizing: content-box;
          box-sizing: content-box;
  content: '';
  position: absolute;
  height: var(--borderSize);
  left: calc(var(--borderSize) / -2);
  top: calc(var(--borderSize) / -2);
  width: calc(var(--gridSize) + var(--borderSize));
  background-color: #5C0F8B;
}

#maze-wrapper #maze .cell[walls*="--6"]:after {
  display: none;
  content: '';
  position: absolute;
  width: var(--borderSize);
  left: calc(100% - var(--borderSize) / 2);
  top: calc(var(--borderSize) / -2);
  height: calc(var(--gridSize) + var(--borderSize));
  background-color: red;
  -webkit-box-sizing: content-box;
          box-sizing: content-box;
  border-radius: var(--borderSize);
}

#maze-wrapper #maze .cell[walls*="--2"]:after {
  display: none;
  position: absolute;
  width: calc(100% + var(--borderSize));
  left: calc(var(--borderSize) / -2);
  top: calc(100% - var(--borderSize) / 2);
  height: calc(var(--borderSize));
  background-color: red;
  -webkit-box-sizing: content-box;
          box-sizing: content-box;
  border-radius: var(--borderSize);
}

#maze-wrapper #maze .pulse {
  z-index: 100000;
  position: absolute;
  width: calc(var(--heroSize) * 1);
  height: calc(var(--heroSize) * 1);
  border-radius: 50%;
  -webkit-box-shadow: 0px 0px 1px 1px #0000001a;
          box-shadow: 0px 0px 1px 1px #0000001a;
  z-index: 9;
}

#maze-wrapper #maze .pulse.anim {
  -webkit-animation-delay: 500ms;
          animation-delay: 500ms;
  -webkit-animation-iteration-count: infinite;
          animation-iteration-count: infinite;
  -webkit-animation-name: pulse-animation;
          animation-name: pulse-animation;
  -webkit-animation-duration: 15s;
          animation-duration: 15s;
}

#maze-wrapper #maze .gem, #maze-wrapper #maze .lock {
  position: absolute;
  width: var(--heroSize);
  height: var(--heroSize);
  overflow: hidden;
  z-index: 10;
  border-radius: 50%;
}

#maze-wrapper #maze .gem img, #maze-wrapper #maze .lock img {
  width: var(--heroSize);
  height: var(--heroSize);
  vertical-align: top;
}

#maze-wrapper #maze .lock {
  border: 2px solid #AF95D6;
  -webkit-box-shadow: 0 0 0 2px #FABE2C;
          box-shadow: 0 0 0 2px #FABE2C;
}

#maze-wrapper #maze .lock.lock-1, #maze-wrapper #maze .pulse.lock-1 {
  -webkit-transform: translateX(calc(var(--borderSize) * 1)) translateY(calc(var(--borderSize) * 1));
          transform: translateX(calc(var(--borderSize) * 1)) translateY(calc(var(--borderSize) * 1));
}

#maze-wrapper #maze .lock.lock-2, #maze-wrapper #maze .pulse.lock-2 {
  -webkit-transform: translateX(0px) translateY(calc(var(--borderSize) * 1));
          transform: translateX(0px) translateY(calc(var(--borderSize) * 1));
}

#maze-wrapper #maze .lock.lock-3, #maze-wrapper #maze .pulse.lock-3 {
  -webkit-transform: translateX(0px) translateY(calc(var(--borderSize) * 0));
          transform: translateX(0px) translateY(calc(var(--borderSize) * 0));
}

#maze-wrapper #maze .lock.lock-4, #maze-wrapper #maze .pulse.lock-4 {
  -webkit-transform: translateX(calc(var(--borderSize) * 1)) translateY(calc(var(--borderSize) * 0));
          transform: translateX(calc(var(--borderSize) * 1)) translateY(calc(var(--borderSize) * 0));
}

#maze-wrapper #maze .lock img, #maze-wrapper #maze .pulse img {
  width: 100%;
  height: 100%;
}

.btn-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  content: url("../images/btn_close.svg");
  cursor: pointer;
  z-index: 1000;
  padding: 0;
  -webkit-transition: linear opacity 250ms;
  transition: linear opacity 250ms;
}

.btn-sound {
  cursor: pointer;
  position: absolute;
  right: 16px;
  bottom: 16px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  content: url("../images/btn_sound_off.svg");
  z-index: 1000;
  opacity: 0.75;
  -webkit-transition: linear opacity 250ms;
  transition: linear opacity 250ms;
}

.btn-sound:hover {
  opacity: 1;
}

.btn-sound.on {
  content: url("../images/btn_sound_on.svg");
}

#content-wrapper .content-copy {
  padding: 0 15%;
}

#content-wrapper .content-copy p {
  font-size: 32px;
  line-height: 130%;
}

#content-wrapper h1 {
  font-weight: 800;
  font-size: 56px;
  line-height: 76px;
  text-align: center;
  color: #5C0F8B;
  margin-bottom: 20px;
  letter-spacing: 0.5px;
}

#content-wrapper h2 {
  font-weight: 600;
  font-size: 45px;
  line-height: 61px;
  text-align: center;
  color: #5C0F8B;
}

#content-wrapper p {
  font-weight: 400;
  font-size: 32px;
  line-height: 44px;
  text-align: center;
  color: #5C0F8B;
  margin: 0;
}

#content-wrapper .btn {
  border: 4px solid #5C0F8B;
  -webkit-box-shadow: none;
          box-shadow: none;
  outline: none;
  border-radius: 36px;
  font-weight: 800;
  letter-spacing: 0.5px;
  font-size: 30px;
  padding: 0px 40px;
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
}

#content-wrapper .btn.btn-secondary {
  background-color: transparent;
  font-weight: 500;
  color: #5C0F8B;
}

#content-wrapper .btn.btn-primary {
  background-color: #5C0F8B;
  color: white;
  border: none;
}

#content-wrapper .btn.btn-primary.disabled {
  background: rgba(91, 15, 139, 0.2);
  pointer-events: none;
}

#content-wrapper .btn.btn-large {
  height: 72px;
  padding: 0px 80px;
}

#content-wrapper #start-screen .start-icon {
  position: absolute;
}

#content-wrapper #start-screen .start-icon.icon-3 {
  top: 2%;
  right: -5%;
  width: 16vw;
  -webkit-transform: rotate(-15deg);
          transform: rotate(-15deg);
}

#content-wrapper #start-screen .start-icon.icon-6 {
  left: -7%;
  top: 10%;
  width: 18vw;
  -webkit-transform: rotate(15deg);
          transform: rotate(15deg);
}

#content-wrapper #start-screen .start-icon.icon-7 {
  left: 70%;
  bottom: -5%;
  width: 17vw;
  -webkit-transform: rotate(-15deg);
          transform: rotate(-15deg);
}

#content-wrapper #start-screen .start-cloud {
  width: 80%;
  left: -36%;
  bottom: 0;
  position: absolute;
  z-index: 0;
}

#content-wrapper #start-screen .start-hero {
  z-index: 0;
  position: absolute;
  height: 40vh;
  bottom: 20px;
  left: 20px;
}

#content-wrapper #leaderboard {
  display: none;
}

#content-wrapper #leaderboard table {
  max-width: 600px;
  min-width: 600px;
  margin: 0 auto;
  font-size: 23px;
  line-height: 33px;
  border-collapse: separate;
  border-spacing: 0 8px;
  color: #5C0F8B;
}

#content-wrapper #leaderboard table tr th {
  padding: 8px 16px;
  font-weight: 800;
}

#content-wrapper #leaderboard table tr th:nth-child(1) {
  width: 60%;
}

#content-wrapper #leaderboard table tr th:nth-child(2) {
  width: 20%;
  text-align: right;
}

#content-wrapper #leaderboard table tr th:nth-child(3) {
  width: 20%;
  text-align: right;
}

#content-wrapper #leaderboard table tr td {
  padding: 8px 16px;
  background: rgba(174, 149, 218, 0.2);
}

#content-wrapper #leaderboard table tr td:nth-child(2) {
  text-align: right;
}

#content-wrapper #leaderboard table tr td:nth-child(3) {
  text-align: right;
}

#content-wrapper #exit-game {
  display: none;
}

#content-wrapper #win {
  display: none;
}

#content-wrapper #win .win-icon {
  position: absolute;
}

#content-wrapper #win .win-icon.icon-1 {
  top: 2%;
  right: -5%;
  width: 16vw;
  -webkit-transform: rotate(-15deg);
          transform: rotate(-15deg);
}

#content-wrapper #win .win-icon.icon-2 {
  left: -7%;
  top: 10%;
  width: 18vw;
  -webkit-transform: rotate(15deg);
          transform: rotate(15deg);
}

#content-wrapper #fact {
  display: none;
}

#content-wrapper #fact .pie-timer-wrapper {
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  border: 4px solid #5C0F8B;
  width: 48px;
  height: 48px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  border-radius: 50%;
  float: left;
  margin-right: 8px;
  opacity: 1;
  -webkit-transition: opacity linear 250ms;
  transition: opacity linear 250ms;
  pointer-events: none;
}

#content-wrapper #fact .pie-timer-wrapper.timer-done {
  opacity: 0;
}

#content-wrapper #fact .pie-timer-wrapper svg {
  margin: 0 auto;
  -webkit-transform: rotate(-90deg) scale(1, -1);
          transform: rotate(-90deg) scale(1, -1);
  background: transparent;
  border-radius: 50%;
  display: block;
}

#content-wrapper #fact .pie-timer-wrapper svg .pie {
  fill: transparent;
  stroke: #AE94DB;
  stroke-width: 36;
  stroke-dasharray: 0 113.04;
  -webkit-transition: stroke-dasharray 5s linear;
  transition: stroke-dasharray 5s linear;
}

#content-wrapper #fact .fact-button-wrapper {
  padding: 80px 56px 80px 0;
}

#content-wrapper #how-to {
  display: none;
}

#content-wrapper #how-to .how-to-page {
  display: none;
  opacity: 1;
  -webkit-transition: linear opacity 500ms;
  transition: linear opacity 500ms;
}

#content-wrapper #how-to .how-to-page.hide {
  opacity: 0;
}

#content-wrapper #how-to #how-to-2,
#content-wrapper #how-to #how-to-3 {
  display: none;
}

#content-wrapper #how-to .how-to-icon {
  position: absolute;
}

#content-wrapper #how-to .how-to-icon.icon-1 {
  top: 2%;
  right: -5%;
  width: 16vw;
  -webkit-transform: rotate(-15deg);
          transform: rotate(-15deg);
}

#content-wrapper #how-to .how-to-icon.icon-2 {
  left: -7%;
  top: 10%;
  width: 18vw;
  -webkit-transform: rotate(15deg);
          transform: rotate(15deg);
}

#content-wrapper #how-to .how-to-icon.icon-3 {
  bottom: -4%;
  right: 5%;
  width: 16vw;
  -webkit-transform: rotate(-15deg);
          transform: rotate(-15deg);
}

#content-wrapper #how-to .how-to-icon.icon-4 {
  left: 7%;
  bottom: 2%;
  width: 18vw;
  -webkit-transform: rotate(15deg);
          transform: rotate(15deg);
}

#content-wrapper img.icon {
  width: 150px;
  margin: 40px 0 32px;
}

#content-wrapper ul.dots {
  margin: 0 auto;
  padding: 0;
  list-style: none;
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  text-align: center;
}

#content-wrapper ul.dots li {
  float: left;
  margin: 0;
  padding: 0;
  list-style: none;
  width: 20px;
  height: 20px;
  border: 4px solid #AF95D6;
  margin: 0 5px;
  border-radius: 50%;
}

#content-wrapper ul.dots li.active {
  background-color: #5C0F8B;
}

.no-pointer {
  pointer-events: none !important;
}

.py40 {
  padding-top: 40px !important;
  padding-bottom: 40px !important;
}

.my40 {
  margin-top: 40px !important;
  margin-bottom: 40px !important;
}

.mb20 {
  margin-bottom: 20px !important;
}

@-webkit-keyframes pulse-animation {
  0% {
    -webkit-box-shadow: 0 0 0 0px rgba(250, 190, 44, 0.9);
            box-shadow: 0 0 0 0px rgba(250, 190, 44, 0.9);
  }
  9% {
    -webkit-box-shadow: 0 0 0 calc(var(--gridSize) * 2) rgba(0, 0, 0, 0);
            box-shadow: 0 0 0 calc(var(--gridSize) * 2) rgba(0, 0, 0, 0);
  }
  100% {
    -webkit-box-shadow: 0 0 0 calc(var(--gridSize) * 2) rgba(0, 0, 0, 0);
            box-shadow: 0 0 0 calc(var(--gridSize) * 2) rgba(0, 0, 0, 0);
  }
}

@keyframes pulse-animation {
  0% {
    -webkit-box-shadow: 0 0 0 0px rgba(250, 190, 44, 0.9);
            box-shadow: 0 0 0 0px rgba(250, 190, 44, 0.9);
  }
  9% {
    -webkit-box-shadow: 0 0 0 calc(var(--gridSize) * 2) rgba(0, 0, 0, 0);
            box-shadow: 0 0 0 calc(var(--gridSize) * 2) rgba(0, 0, 0, 0);
  }
  100% {
    -webkit-box-shadow: 0 0 0 calc(var(--gridSize) * 2) rgba(0, 0, 0, 0);
            box-shadow: 0 0 0 calc(var(--gridSize) * 2) rgba(0, 0, 0, 0);
  }
}

@-webkit-keyframes pulse-animation-2 {
  0% {
    -webkit-box-shadow: 0 0 0 0px rgba(250, 190, 44, 0.9);
            box-shadow: 0 0 0 0px rgba(250, 190, 44, 0.9);
  }
  3% {
    -webkit-box-shadow: 0 0 0 calc(var(--gridSize) * 5) rgba(0, 0, 0, 0);
            box-shadow: 0 0 0 calc(var(--gridSize) * 5) rgba(0, 0, 0, 0);
  }
  100% {
    -webkit-box-shadow: 0 0 0 calc(var(--gridSize) * 5) rgba(0, 0, 0, 0);
            box-shadow: 0 0 0 calc(var(--gridSize) * 5) rgba(0, 0, 0, 0);
  }
}

@keyframes pulse-animation-2 {
  0% {
    -webkit-box-shadow: 0 0 0 0px rgba(250, 190, 44, 0.9);
            box-shadow: 0 0 0 0px rgba(250, 190, 44, 0.9);
  }
  3% {
    -webkit-box-shadow: 0 0 0 calc(var(--gridSize) * 5) rgba(0, 0, 0, 0);
            box-shadow: 0 0 0 calc(var(--gridSize) * 5) rgba(0, 0, 0, 0);
  }
  100% {
    -webkit-box-shadow: 0 0 0 calc(var(--gridSize) * 5) rgba(0, 0, 0, 0);
            box-shadow: 0 0 0 calc(var(--gridSize) * 5) rgba(0, 0, 0, 0);
  }
}

@-webkit-keyframes hero-right {
  0% {
    background-position: 0px calc(-2 * var(--heroSize) * 2);
  }
  100% {
    background-position: calc(-3 * var(--heroSize)) calc(-2 * var(--heroSize) * 2);
  }
}

@keyframes hero-right {
  0% {
    background-position: 0px calc(-2 * var(--heroSize) * 2);
  }
  100% {
    background-position: calc(-3 * var(--heroSize)) calc(-2 * var(--heroSize) * 2);
  }
}

@-webkit-keyframes hero-left {
  0% {
    background-position: 0px calc(-1 * var(--heroSize) * 2);
  }
  100% {
    background-position: calc(-3 * var(--heroSize)) calc(-1 * var(--heroSize) * 2);
  }
}

@keyframes hero-left {
  0% {
    background-position: 0px calc(-1 * var(--heroSize) * 2);
  }
  100% {
    background-position: calc(-3 * var(--heroSize)) calc(-1 * var(--heroSize) * 2);
  }
}

@-webkit-keyframes hero-down {
  0% {
    background-position: 0px calc(0 * var(--heroSize) * 2);
  }
  100% {
    background-position: calc(-3 * var(--heroSize)) calc(0 * var(--heroSize) * 2);
  }
}

@keyframes hero-down {
  0% {
    background-position: 0px calc(0 * var(--heroSize) * 2);
  }
  100% {
    background-position: calc(-3 * var(--heroSize)) calc(0 * var(--heroSize) * 2);
  }
}

@-webkit-keyframes hero-up {
  0% {
    background-position: 0px calc(-3 * var(--heroSize) * 2);
  }
  100% {
    background-position: calc(-3 * var(--heroSize)) calc(-3 * var(--heroSize) * 2);
  }
}

@keyframes hero-up {
  0% {
    background-position: 0px calc(-3 * var(--heroSize) * 2);
  }
  100% {
    background-position: calc(-3 * var(--heroSize)) calc(-3 * var(--heroSize) * 2);
  }
}

@media (orientation: portrait) {
  #content-wrapper #start-screen .start-icon.icon-6 {
    top: -2%;
  }
  #maze-wrapper {
    padding: 0 10px;
  }
}

@media (min-width: 1600px) {
  #content-wrapper .content-copy {
    padding: 0 22%;
  }
}

@media (min-width: 1260px) {
  #content-wrapper .content-copy {
    padding: 0 17%;
  }
  #content-wrapper .content-copy p {
    font-size: 36px;
  }
}

@media (max-width: 1100px) {
  #content-wrapper .content-copy {
    padding: 0 10%;
  }
  #game-wrapper #header p {
    font-size: 20px;
    line-height: 20px;
  }
}

@media (max-width: 950px) {
  #game-wrapper #header p {
    font-size: 17px;
    line-height: 20px;
  }
  #content-wrapper .content-copy p {
    font-size: 24px;
  }
}

@media (max-width: 890px) {
  #game-wrapper #header p {
    font-size: 16px;
    line-height: 16px;
  }
}

@media (max-width: 800px) {
  #game-wrapper #header p {
    font-size: 16px;
    line-height: 18px;
  }
}

@media (max-width: 870px) {
  #game-wrapper #header {
    padding: 8px;
    height: 90px;
  }
  #game-wrapper #header .btn-close {
    top: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
  }
  #game-wrapper #header p {
    font-size: 14px;
    line-height: 14px;
  }
  #game-wrapper #header .header-locks {
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
    margin-bottom: 8px;
  }
  #game-wrapper #header .header-lock,
  #game-wrapper #header .header-gem {
    min-width: 26px;
    min-height: 26px;
    max-width: 26px;
    max-height: 26px;
  }
  #game-wrapper #header .header-score {
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
    margin: 0 auto;
    padding-right: 24px;
  }
  #game-wrapper #header .header-score .score-wrapper {
    margin: 0;
    padding: 0 16px;
    height: 32px;
  }
}

@media (max-width: 766px) {
  #content-wrapper #leaderboard table {
    min-width: auto;
    font-size: 18px;
    line-height: 24px;
  }
  #content-wrapper h1 {
    font-size: 32px;
    line-height: 40px;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
  }
  #content-wrapper h2 {
    font-size: 28px;
    line-height: 36px;
  }
  #content-wrapper p {
    font-size: 18px;
    line-height: 24px;
  }
  #content-wrapper .btn {
    border: 4px solid #5C0F8B;
    border-radius: 36px;
    font-weight: 800;
    letter-spacing: 0.5px;
    font-size: 24px;
    line-height: 36px;
    padding: 5px 32px;
    height: 48px;
  }
  #content-wrapper .btn.btn-large {
    height: 60px;
    padding: 16px 40px;
    line-height: 20px;
  }
  #content-wrapper #start-screen h1 br, #content-wrapper #start-screen p br, #content-wrapper #start-screen h2 br {
    display: none;
  }
  #content-wrapper #start-screen .start-hero {
    height: 30vh;
  }
}

@media (max-width: 623px) {
  #content-wrapper .content-copy {
    padding: 0 5%;
  }
  #content-wrapper #fact .fact-button-wrapper {
    padding-top: 40px;
    padding-bottom: 40px;
  }
  .confetti {
    width: 5px;
    height: 8px;
  }
  #header .header-locks {
    -webkit-box-flex: 0;
        -ms-flex: 0 0 100%;
            flex: 0 0 100%;
  }
  #header .header-score {
    padding: 0;
  }
  body.portrait #maze-wrapper #maze .centre path#circle {
    stroke-width: calc(var(--borderSize) * 3);
  }
}

@media (max-width: 870px) {
  #game-wrapper #header .header-lock,
  #game-wrapper #header .header-gem {
    min-width: 24px;
    min-height: 24px;
    max-width: 24px;
    max-height: 24px;
    margin: 0 2px;
  }
  #game-wrapper #header .header-score {
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
    margin: 0 auto;
    padding-right: 24px;
  }
  #game-wrapper #header .header-score .score-wrapper {
    margin: 0;
    padding: 0 16px;
    height: 32px;
  }
}

@media (max-width: 410px) {
  #content-wrapper .content-copy {
    padding: 0 5%;
  }
  #content-wrapper .content-copy p {
    font-size: 16px;
  }
  #content-wrapper #fact .fact-button-wrapper {
    padding-top: 40px;
    padding-bottom: 40px;
  }
}

.confetti {
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
  width: 10px;
  height: 16px;
  display: inline-block;
  position: absolute;
  top: -16px;
  left: 0;
  z-index: 0;
  -webkit-box-shadow: 5px 5px 15px 0px rgba(0, 0, 0, 0.1);
          box-shadow: 5px 5px 15px 0px rgba(0, 0, 0, 0.1);
}

.confetti .rotate {
  -webkit-animation: driftyRotate 1s infinite both ease-in-out;
          animation: driftyRotate 1s infinite both ease-in-out;
  -webkit-perspective: 1000;
          perspective: 1000;
}

.confetti .askew {
  background: currentColor;
  -webkit-transform: skewY(10deg);
          transform: skewY(10deg);
  width: 10px;
  height: 16px;
  -webkit-animation: drifty 1s infinite alternate both ease-in-out;
          animation: drifty 1s infinite alternate both ease-in-out;
  -webkit-perspective: 1000;
          perspective: 1000;
}

.confetti:nth-of-type(5n) {
  color: #C8409A;
  color: #D9D8D6;
  z-index: 30;
}

.confetti:nth-of-type(5n+1) {
  color: #D258C3;
  color: #D6CAEC;
}

.confetti:nth-of-type(5n+2) {
  color: #F5C52E;
  color: #925EB1;
  z-index: 30;
}

.confetti:nth-of-type(5n+3) {
  color: #ECAA5C;
  color: #5C0F8B;
  z-index: 30;
}

.confetti:nth-of-type(5n+4) {
  color: #FFDB6A;
  color: #ECECEB;
}

.confetti:nth-of-type(7n) .askew {
  -webkit-animation-delay: -.6s;
          animation-delay: -.6s;
  -webkit-animation-duration: 2.25s;
          animation-duration: 2.25s;
}

.confetti:nth-of-type(7n + 1) .askew {
  -webkit-animation-delay: -.879s;
          animation-delay: -.879s;
  -webkit-animation-duration: 3.5s;
          animation-duration: 3.5s;
}

.confetti:nth-of-type(7n + 2) .askew {
  -webkit-animation-delay: -.11s;
          animation-delay: -.11s;
  -webkit-animation-duration: 1.95s;
          animation-duration: 1.95s;
}

.confetti:nth-of-type(7n + 3) .askew {
  -webkit-animation-delay: -.246s;
          animation-delay: -.246s;
  -webkit-animation-duration: .85s;
          animation-duration: .85s;
}

.confetti:nth-of-type(7n + 4) .askew {
  -webkit-animation-delay: -.43s;
          animation-delay: -.43s;
  -webkit-animation-duration: 2.5s;
          animation-duration: 2.5s;
}

.confetti:nth-of-type(7n + 5) .askew {
  -webkit-animation-delay: -.56s;
          animation-delay: -.56s;
  -webkit-animation-duration: 1.75s;
          animation-duration: 1.75s;
}

.confetti:nth-of-type(7n + 6) .askew {
  -webkit-animation-delay: -.76s;
          animation-delay: -.76s;
  -webkit-animation-duration: 1.5s;
          animation-duration: 1.5s;
}

.confetti:nth-of-type(9n) .rotate {
  -webkit-animation-duration: 2s;
          animation-duration: 2s;
}

.confetti:nth-of-type(9n + 1) .rotate {
  -webkit-animation-duration: 2.3s;
          animation-duration: 2.3s;
}

.confetti:nth-of-type(9n + 2) .rotate {
  -webkit-animation-duration: 1.1s;
          animation-duration: 1.1s;
}

.confetti:nth-of-type(9n + 3) .rotate {
  -webkit-animation-duration: .75s;
          animation-duration: .75s;
}

.confetti:nth-of-type(9n + 4) .rotate {
  -webkit-animation-duration: 4.3s;
          animation-duration: 4.3s;
}

.confetti:nth-of-type(9n + 5) .rotate {
  -webkit-animation-duration: 3.05s;
          animation-duration: 3.05s;
}

.confetti:nth-of-type(9n + 6) .rotate {
  -webkit-animation-duration: 2.76s;
          animation-duration: 2.76s;
}

.confetti:nth-of-type(9n + 7) .rotate {
  -webkit-animation-duration: 7.6s;
          animation-duration: 7.6s;
}

.confetti:nth-of-type(9n + 8) .rotate {
  -webkit-animation-duration: 1.78s;
          animation-duration: 1.78s;
}

@-webkit-keyframes drifty {
  0% {
    -webkit-transform: skewY(10deg) translate3d(-250%, 0, 0);
            transform: skewY(10deg) translate3d(-250%, 0, 0);
  }
  100% {
    -webkit-transform: skewY(-12deg) translate3d(250%, 0, 0);
            transform: skewY(-12deg) translate3d(250%, 0, 0);
  }
  Rotate {
    0% {
    }
    -webkit-transform: rotateX(0);
            transform: rotateX(0);
    100% {
    }
    -webkit-transform: rotateX(359deg);
            transform: rotateX(359deg);
  }
}

@keyframes drifty {
  0% {
    -webkit-transform: skewY(10deg) translate3d(-250%, 0, 0);
            transform: skewY(10deg) translate3d(-250%, 0, 0);
  }
  100% {
    -webkit-transform: skewY(-12deg) translate3d(250%, 0, 0);
            transform: skewY(-12deg) translate3d(250%, 0, 0);
  }
  Rotate {
    0% {
    }
    -webkit-transform: rotateX(0);
            transform: rotateX(0);
    100% {
    }
    -webkit-transform: rotateX(359deg);
            transform: rotateX(359deg);
  }
}

@-webkit-keyframes driftyRotate {
  0% {
    -webkit-transform: rotateX(0);
            transform: rotateX(0);
  }
  100% {
    -webkit-transform: rotateX(359deg);
            transform: rotateX(359deg);
  }
}

@keyframes driftyRotate {
  0% {
    -webkit-transform: rotateX(0);
            transform: rotateX(0);
  }
  100% {
    -webkit-transform: rotateX(359deg);
            transform: rotateX(359deg);
  }
}
