@import "fonts/clear-sans.css";
html,
body {
  margin: 0;
  padding: 0;
  background: #faf8ef;
  color: #776e65;
  font-family: "Clear Sans", "Helvetica Neue", Arial, sans-serif;
  font-size: 1.8vmin;
}

body {
  margin: 1vmin 0 0;
}

.heading {
  margin: 0 5vmin;
}
.heading:after {
  content: "";
  display: block;
  clear: both;
}

h1.title {
  font-size: 8vmin;
  font-weight: bold;
  margin: 0;
  display: block;
  float: left;
}

/*---------------------------------
Added styles below
----------------------------------*/
gazable-element {
  color: #faf8ef;
  display: flex;
  align-items: center;
  justify-content: center;
  align-content: center;
  border-radius: 5px;
  z-index: 1;
  position: relative;
}
gazable-element:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgb(142.7914110429, 121.7484662577, 102.2085889571);
  z-index: -2;
  border-radius: 5px;
}
gazable-element:after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgb(98.2055214724, 83.7331288344, 70.2944785276);
  transition: all var(--dwell-time, 500ms);
  border-radius: 5%;
  z-index: -1;
  transform: scale(1.2);
  opacity: 0;
}
gazable-element[gaze-focused]:after {
  transform: scale(0);
  opacity: 1;
}

.game-action-button {
  position: absolute;
  transition: all var(--dwell-time, 500ms);
  font-size: 4vmin;
  line-height: 4vmin;
  text-shadow: 0vmin 0px 0px transparent;
  font-family: "Helvetica Neue";
}
.game-action-button[gaze-focused] {
  text-shadow: 3vmin 0px 0px rgb(98.2055214724, 83.7331288344, 70.2944785276);
}
.game-action-button.move-left, .game-action-button.move-right {
  height: 13vmin;
  width: 13vmin;
  top: calc(50% - 6.5vmin);
}
.game-action-button.move-left {
  left: calc(-13vmin - 4.5vmin);
  transform: rotate(180deg);
}
.game-action-button.move-right {
  right: calc(-13vmin - 4.5vmin);
}
.game-action-button.move-up, .game-action-button.move-down {
  height: 13vmin;
  width: 13vmin;
  left: calc(50% - 6.5vmin);
}
.game-action-button.move-up {
  top: calc(-13vmin - 4.5vmin);
  transform: rotate(270deg);
}
.game-action-button.move-down {
  bottom: calc(-13vmin - 4.5vmin);
  transform: rotate(90deg);
}

/*---------------------------------
Added styles above
----------------------------------*/
@-webkit-keyframes $animation-name {
  0% {
    top: 2.5vmin;
    opacity: 1;
  }
  100% {
    top: -5vmin;
    opacity: 0;
  }
}
@-moz-keyframes $animation-name {
  0% {
    top: 2.5vmin;
    opacity: 1;
  }
  100% {
    top: -5vmin;
    opacity: 0;
  }
}
@keyframes $animation-name {
  0% {
    top: 2.5vmin;
    opacity: 1;
  }
  100% {
    top: -5vmin;
    opacity: 0;
  }
}
.scores-container {
  float: right;
  text-align: right;
  display: flex;
}

.score-container,
.best-container {
  box-sizing: border-box;
  position: relative;
  display: inline-block;
  background: #bbada0;
  padding: 1.5vmin 2.5vmin;
  font-size: 2.5vmin;
  height: 6vmin;
  line-height: 4.7vmin;
  font-weight: bold;
  border-radius: 3px;
  color: white;
  margin-top: 0.8vmin;
  text-align: center;
}
.score-container:after,
.best-container:after {
  position: absolute;
  width: 100%;
  top: 1vmin;
  left: 0;
  text-transform: uppercase;
  font-size: 1.3vmin;
  line-height: 1.3vmin;
  text-align: center;
  color: #eee4da;
}
.score-container .score-addition,
.best-container .score-addition {
  position: absolute;
  right: 3vmin;
  color: red;
  font-size: 2.5vmin;
  line-height: 2.5vmin;
  font-weight: bold;
  color: rgba(119, 110, 101, 0.9);
  z-index: 100;
  -webkit-animation: move-up 600ms ease-in;
  -moz-animation: move-up 600ms ease-in;
  animation: move-up 600ms ease-in;
  -webkit-animation-fill-mode: both;
  -moz-animation-fill-mode: both;
  animation-fill-mode: both;
}

.score-container {
  min-width: 12vmin;
}

.best-container {
  min-width: 16vmin;
  margin-left: 1.5vmin;
}

.score-container:after {
  content: "Score";
}

.best-container:after {
  content: "Best";
}

p {
  margin-top: 0;
  margin-bottom: 1vmin;
  line-height: 1.4;
}

a {
  color: #776e65;
  font-weight: bold;
  text-decoration: underline;
  cursor: pointer;
}

strong.important {
  text-transform: uppercase;
}

hr {
  border: none;
  border-bottom: 1px solid rgb(215.5181818182, 212, 208.4818181818);
  margin-top: 2vmin;
  margin-bottom: 3vmin;
}

.container {
  width: 50vmin;
  margin: 0 auto;
}

@-webkit-keyframes $animation-name {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}
@-moz-keyframes $animation-name {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}
@keyframes $animation-name {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}
.game-container {
  margin-top: 4vmin;
  position: relative;
  padding: 1.5vmin;
  cursor: default;
  -webkit-touch-callout: none;
  -ms-touch-callout: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -ms-touch-action: none;
  touch-action: none;
  background: #bbada0;
  border-radius: 6px;
  width: 50vmin;
  height: 50vmin;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}
.game-container .game-message {
  display: none;
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: rgba(238, 228, 218, 0.5);
  z-index: 100;
  text-align: center;
  -webkit-animation: fade-in 800ms ease 1200ms;
  -moz-animation: fade-in 800ms ease 1200ms;
  animation: fade-in 800ms ease 1200ms;
  -webkit-animation-fill-mode: both;
  -moz-animation-fill-mode: both;
  animation-fill-mode: both;
}
.game-container .game-message p {
  font-size: 6vmin;
  font-weight: bold;
  height: 6vmin;
  line-height: 6vmin;
  margin-top: 22.2vmin;
}
.game-container .game-message .lower {
  display: block;
  margin-top: 5.9vmin;
}
.game-container .game-message gazable-square-button.keep-playing-button {
  display: none;
  margin-right: 0.9vmin;
}
.game-container .game-message.game-won {
  background: rgba(237, 194, 46, 0.5);
  color: #f9f6f2;
}
.game-container .game-message.game-won .keep-playing-button {
  display: inline-block;
}
.game-container .game-message.game-won, .game-container .game-message.game-over {
  display: block;
}

.grid-container {
  position: absolute;
  z-index: 1;
}

.grid-row {
  margin-bottom: 1.5vmin;
}
.grid-row:last-child {
  margin-bottom: 0;
}
.grid-row:after {
  content: "";
  display: block;
  clear: both;
}

.grid-cell {
  width: 10.625vmin;
  height: 10.625vmin;
  margin-right: 1.5vmin;
  float: left;
  border-radius: 3px;
  background: rgba(238, 228, 218, 0.35);
}
.grid-cell:last-child {
  margin-right: 0;
}

.tile-container {
  position: absolute;
  z-index: 2;
}

.tile,
.tile .tile-inner {
  width: 11vmin;
  height: 11vmin;
  line-height: 11vmin;
}
.tile.tile-position-1-1 {
  -webkit-transform: translate(0vmin, 0vmin);
  -moz-transform: translate(0vmin, 0vmin);
  -ms-transform: translate(0vmin, 0vmin);
  transform: translate(0vmin, 0vmin);
}
.tile.tile-position-1-2 {
  -webkit-transform: translate(0vmin, 12vmin);
  -moz-transform: translate(0vmin, 12vmin);
  -ms-transform: translate(0vmin, 12vmin);
  transform: translate(0vmin, 12vmin);
}
.tile.tile-position-1-3 {
  -webkit-transform: translate(0vmin, 24vmin);
  -moz-transform: translate(0vmin, 24vmin);
  -ms-transform: translate(0vmin, 24vmin);
  transform: translate(0vmin, 24vmin);
}
.tile.tile-position-1-4 {
  -webkit-transform: translate(0vmin, 36vmin);
  -moz-transform: translate(0vmin, 36vmin);
  -ms-transform: translate(0vmin, 36vmin);
  transform: translate(0vmin, 36vmin);
}
.tile.tile-position-2-1 {
  -webkit-transform: translate(12vmin, 0vmin);
  -moz-transform: translate(12vmin, 0vmin);
  -ms-transform: translate(12vmin, 0vmin);
  transform: translate(12vmin, 0vmin);
}
.tile.tile-position-2-2 {
  -webkit-transform: translate(12vmin, 12vmin);
  -moz-transform: translate(12vmin, 12vmin);
  -ms-transform: translate(12vmin, 12vmin);
  transform: translate(12vmin, 12vmin);
}
.tile.tile-position-2-3 {
  -webkit-transform: translate(12vmin, 24vmin);
  -moz-transform: translate(12vmin, 24vmin);
  -ms-transform: translate(12vmin, 24vmin);
  transform: translate(12vmin, 24vmin);
}
.tile.tile-position-2-4 {
  -webkit-transform: translate(12vmin, 36vmin);
  -moz-transform: translate(12vmin, 36vmin);
  -ms-transform: translate(12vmin, 36vmin);
  transform: translate(12vmin, 36vmin);
}
.tile.tile-position-3-1 {
  -webkit-transform: translate(24vmin, 0vmin);
  -moz-transform: translate(24vmin, 0vmin);
  -ms-transform: translate(24vmin, 0vmin);
  transform: translate(24vmin, 0vmin);
}
.tile.tile-position-3-2 {
  -webkit-transform: translate(24vmin, 12vmin);
  -moz-transform: translate(24vmin, 12vmin);
  -ms-transform: translate(24vmin, 12vmin);
  transform: translate(24vmin, 12vmin);
}
.tile.tile-position-3-3 {
  -webkit-transform: translate(24vmin, 24vmin);
  -moz-transform: translate(24vmin, 24vmin);
  -ms-transform: translate(24vmin, 24vmin);
  transform: translate(24vmin, 24vmin);
}
.tile.tile-position-3-4 {
  -webkit-transform: translate(24vmin, 36vmin);
  -moz-transform: translate(24vmin, 36vmin);
  -ms-transform: translate(24vmin, 36vmin);
  transform: translate(24vmin, 36vmin);
}
.tile.tile-position-4-1 {
  -webkit-transform: translate(36vmin, 0vmin);
  -moz-transform: translate(36vmin, 0vmin);
  -ms-transform: translate(36vmin, 0vmin);
  transform: translate(36vmin, 0vmin);
}
.tile.tile-position-4-2 {
  -webkit-transform: translate(36vmin, 12vmin);
  -moz-transform: translate(36vmin, 12vmin);
  -ms-transform: translate(36vmin, 12vmin);
  transform: translate(36vmin, 12vmin);
}
.tile.tile-position-4-3 {
  -webkit-transform: translate(36vmin, 24vmin);
  -moz-transform: translate(36vmin, 24vmin);
  -ms-transform: translate(36vmin, 24vmin);
  transform: translate(36vmin, 24vmin);
}
.tile.tile-position-4-4 {
  -webkit-transform: translate(36vmin, 36vmin);
  -moz-transform: translate(36vmin, 36vmin);
  -ms-transform: translate(36vmin, 36vmin);
  transform: translate(36vmin, 36vmin);
}

.tile {
  position: absolute;
  -webkit-transition: 100ms ease-in-out;
  -moz-transition: 100ms ease-in-out;
  transition: 100ms ease-in-out;
  -webkit-transition-property: -webkit-transform;
  -moz-transition-property: -moz-transform;
  transition-property: transform;
}
.tile .tile-inner {
  border-radius: 3px;
  background: #eee4da;
  text-align: center;
  font-weight: bold;
  z-index: 10;
  font-size: 5.5vmin;
}
.tile.tile-2 .tile-inner {
  background: #eee4da;
  box-shadow: 0 0 30px 10px rgba(243.0660792952, 214.5572687225, 116.4339207048, 0), inset 0 0 0 1px rgba(255, 255, 255, 0);
}
.tile.tile-4 .tile-inner {
  background: rgb(237.9, 224.6, 200.8);
  box-shadow: 0 0 30px 10px rgba(243.0660792952, 214.5572687225, 116.4339207048, 0), inset 0 0 0 1px rgba(255, 255, 255, 0);
}
.tile.tile-8 .tile-inner {
  color: #f9f6f2;
  background: rgb(242.86, 177.64, 122.22);
}
.tile.tile-16 .tile-inner {
  color: #f9f6f2;
  background: rgb(245.565, 149.71, 100.18);
}
.tile.tile-32 .tile-inner {
  color: #f9f6f2;
  background: rgb(247.17, 124.53, 95.19);
}
.tile.tile-64 .tile-inner {
  color: #f9f6f2;
  background: rgb(247.125, 94.95, 59.4);
}
.tile.tile-128 .tile-inner {
  color: #f9f6f2;
  background: rgb(237.4, 207.6, 114.8);
  box-shadow: 0 0 30px 10px rgba(243.0660792952, 214.5572687225, 116.4339207048, 0.2380952381), inset 0 0 0 1px rgba(255, 255, 255, 0.1428571429);
  font-size: 4.5vmin;
}
.tile.tile-256 .tile-inner {
  color: #f9f6f2;
  background: rgb(237.3, 204.2, 97.6);
  box-shadow: 0 0 30px 10px rgba(243.0660792952, 214.5572687225, 116.4339207048, 0.3174603175), inset 0 0 0 1px rgba(255, 255, 255, 0.1904761905);
  font-size: 4.5vmin;
}
.tile.tile-512 .tile-inner {
  color: #f9f6f2;
  background: rgb(237.2, 200.8, 80.4);
  box-shadow: 0 0 30px 10px rgba(243.0660792952, 214.5572687225, 116.4339207048, 0.3968253968), inset 0 0 0 1px rgba(255, 255, 255, 0.2380952381);
  font-size: 4.5vmin;
}
.tile.tile-1024 .tile-inner {
  color: #f9f6f2;
  background: rgb(237.1, 197.4, 63.2);
  box-shadow: 0 0 30px 10px rgba(243.0660792952, 214.5572687225, 116.4339207048, 0.4761904762), inset 0 0 0 1px rgba(255, 255, 255, 0.2857142857);
  font-size: 3.5vmin;
}
.tile.tile-2048 .tile-inner {
  color: #f9f6f2;
  background: #edc22e;
  box-shadow: 0 0 30px 10px rgba(243.0660792952, 214.5572687225, 116.4339207048, 0.5555555556), inset 0 0 0 1px rgba(255, 255, 255, 0.3333333333);
  font-size: 3.5vmin;
}
.tile.tile-super .tile-inner {
  color: #f9f6f2;
  background: rgb(60.3, 58.15, 50.75);
  font-size: 3vmin;
}

@-webkit-keyframes $animation-name {
  0% {
    opacity: 0;
    -webkit-transform: scale(0);
    -moz-transform: scale(0);
    -ms-transform: scale(0);
    transform: scale(0);
  }
  100% {
    opacity: 1;
    -webkit-transform: scale(1);
    -moz-transform: scale(1);
    -ms-transform: scale(1);
    transform: scale(1);
  }
}
@-moz-keyframes $animation-name {
  0% {
    opacity: 0;
    -webkit-transform: scale(0);
    -moz-transform: scale(0);
    -ms-transform: scale(0);
    transform: scale(0);
  }
  100% {
    opacity: 1;
    -webkit-transform: scale(1);
    -moz-transform: scale(1);
    -ms-transform: scale(1);
    transform: scale(1);
  }
}
@keyframes $animation-name {
  0% {
    opacity: 0;
    -webkit-transform: scale(0);
    -moz-transform: scale(0);
    -ms-transform: scale(0);
    transform: scale(0);
  }
  100% {
    opacity: 1;
    -webkit-transform: scale(1);
    -moz-transform: scale(1);
    -ms-transform: scale(1);
    transform: scale(1);
  }
}
.tile-new .tile-inner {
  -webkit-animation: appear 200ms ease 100ms;
  -moz-animation: appear 200ms ease 100ms;
  animation: appear 200ms ease 100ms;
  -webkit-animation-fill-mode: backwards;
  -moz-animation-fill-mode: backwards;
  animation-fill-mode: backwards;
}

@-webkit-keyframes $animation-name {
  0% {
    -webkit-transform: scale(0);
    -moz-transform: scale(0);
    -ms-transform: scale(0);
    transform: scale(0);
  }
  50% {
    -webkit-transform: scale(1.2);
    -moz-transform: scale(1.2);
    -ms-transform: scale(1.2);
    transform: scale(1.2);
  }
  100% {
    -webkit-transform: scale(1);
    -moz-transform: scale(1);
    -ms-transform: scale(1);
    transform: scale(1);
  }
}
@-moz-keyframes $animation-name {
  0% {
    -webkit-transform: scale(0);
    -moz-transform: scale(0);
    -ms-transform: scale(0);
    transform: scale(0);
  }
  50% {
    -webkit-transform: scale(1.2);
    -moz-transform: scale(1.2);
    -ms-transform: scale(1.2);
    transform: scale(1.2);
  }
  100% {
    -webkit-transform: scale(1);
    -moz-transform: scale(1);
    -ms-transform: scale(1);
    transform: scale(1);
  }
}
@keyframes $animation-name {
  0% {
    -webkit-transform: scale(0);
    -moz-transform: scale(0);
    -ms-transform: scale(0);
    transform: scale(0);
  }
  50% {
    -webkit-transform: scale(1.2);
    -moz-transform: scale(1.2);
    -ms-transform: scale(1.2);
    transform: scale(1.2);
  }
  100% {
    -webkit-transform: scale(1);
    -moz-transform: scale(1);
    -ms-transform: scale(1);
    transform: scale(1);
  }
}
.tile-merged .tile-inner {
  z-index: 20;
  -webkit-animation: pop 200ms ease 100ms;
  -moz-animation: pop 200ms ease 100ms;
  animation: pop 200ms ease 100ms;
  -webkit-animation-fill-mode: backwards;
  -moz-animation-fill-mode: backwards;
  animation-fill-mode: backwards;
}

.above-game {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 5vmin;
}

.game-intro {
  float: left;
  line-height: 4.2vmin;
  margin-bottom: 0;
}

.square-button {
  height: 4vmin;
  line-height: 4.2vmin;
  --button-dwell-background-color: rgb(142.7914110429, 121.7484662577, 102.2085889571);
  --button-inner-background-color: transparent;
  --button-inner-border-width: 0;
  --button-border-radius: 3px;
  --button-focused-border-radius: 3px;
  --button-dwell-color: rgb(98.2055214724, 83.7331288344, 70.2944785276);
  --button-dwell-thickness: 3px;
  --button-font-size: 1.8vmin;
  --button-width: auto;
  --button-focused-inner-border-radius: 3px;
  --button-focused-inner-border-width: 0;
  --button-activation-border-width: 5px;
  --button-activation-color-rgb: 176, 160, 145;
  --button-activation-opacity: 0.8;
  --button-activated-text-color: #fafafa;
  --button-text-color: #fafafa;
  --button-inner-box-shadow: none;
}

.restart-square-button {
  height: 6vmin;
  --button-width: 29.5vmin;
  --button-outer-border-color-gs: #67523b;
}

.retry-button,
.keep-playing-button {
  --button-dwell-thickness: 3px 2vmin;
}

.game-explanation {
  position: absolute;
  bottom: 2vmin;
  width: 100vw;
  left: 0;
  text-align: center;
}

.game-credits {
  transform: rotate(90deg);
  position: absolute;
  left: 1.4vmin;
  top: 2vmin;
  transform-origin: left center;
}

/*# sourceMappingURL=main.css.map */
