@import url(fonts/clear-sans.css);
html, body {
  margin: 0;
  padding: 0;
  background: #660082;
  color: #f4fc7b;
  font-family: "Clear Sans", "Helvetica Neue", Arial, sans-serif;
  font-size: 18px; }

body {
  margin: 80px 0; }

.heading:after {
  content: "";
  display: block;
  clear: both; }

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

@-webkit-keyframes move-up {
  0% {
    top: 25px;
    opacity: 1; }

  100% {
    top: -50px;
    opacity: 0; } }
@-moz-keyframes move-up {
  0% {
    top: 25px;
    opacity: 1; }

  100% {
    top: -50px;
    opacity: 0; } }
@keyframes move-up {
  0% {
    top: 25px;
    opacity: 1; }

  100% {
    top: -50px;
    opacity: 0; } }
.scores-container {
  float: right;
  text-align: right; }

.score-container, .best-container {
  position: relative;
  display: inline-block;
  background: #bbada0;
  padding: 15px 25px;
  font-size: 25px;
  height: 25px;
  line-height: 47px;
  font-weight: bold;
  border-radius: 3px;
  color: white;
  margin-top: 8px;
  text-align: center; }
  .score-container:after, .best-container:after {
    position: absolute;
    width: 100%;
    top: 10px;
    left: 0;
    text-transform: uppercase;
    font-size: 13px;
    line-height: 13px;
    text-align: center;
    color: #dddddd; }
  .score-container .score-addition, .best-container .score-addition {
    position: absolute;
    right: 30px;
    color: red;
    font-size: 25px;
    line-height: 25px;
    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:after {
  content: "Score"; }

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

p {
  margin-top: 0;
  margin-bottom: 10px;
  line-height: 1.65; }

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

strong.important {
  text-transform: uppercase; }

hr {
  border: none;
  border-bottom: 1px solid #d8d4d0;
  margin-top: 20px;
  margin-bottom: 30px; }

.container {
  width: 500px;
  margin: 0 auto; }

@-webkit-keyframes fade-in {
  0% {
    opacity: 0; }

  100% {
    opacity: 1; } }
@-moz-keyframes fade-in {
  0% {
    opacity: 0; }

  100% {
    opacity: 1; } }
@keyframes fade-in {
  0% {
    opacity: 0; }

  100% {
    opacity: 1; } }
.game-container {
  margin-top: 40px;
  position: relative;
  padding: 15px;
  cursor: default;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  background: #bbada0;
  border-radius: 6px;
  width: 500px;
  height: 500px;
  -ms-touch-action: none;
  -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(221, 221, 221, 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: 60px;
      font-weight: bold;
      height: 60px;
      line-height: 60px;
      margin-top: 222px; }
    .game-container .game-message .lower {
      display: block;
      margin-top: 59px; }
    .game-container .game-message a {
      display: inline-block;
      background: #8f7a66;
      border-radius: 3px;
      padding: 0 20px;
      text-decoration: none;
      color: #f9f6f2;
      height: 40px;
      line-height: 42px;
      margin-left: 9px; }
      .game-container .game-message a.keep-playing-button {
        display: none; }
    .game-container .game-message.game-won {
      background: rgba(203, 242, 233, 0.5);
      color: #f9f6f2; }
      .game-container .game-message.game-won a.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: 15px; }
  .grid-row:last-child {
    margin-bottom: 0; }
  .grid-row:after {
    content: "";
    display: block;
    clear: both; }

.grid-cell {
  width: 82px;
  height: 82px;
  margin-right: 15px;
  float: left;
  border-radius: 3px;
  background: rgba(221, 221, 221, 0.35); }
  .grid-cell:last-child {
    margin-right: 0; }

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

.tile, .tile .tile-inner {
  width: 82px;
  height: 82px;
  line-height: 92px; }
.tile.tile-position-1-1 {
  -webkit-transform: translate(0px, 0px);
  -moz-transform: translate(0px, 0px);
  transform: translate(0px, 0px); }
.tile.tile-position-1-2 {
  -webkit-transform: translate(0px, 97px);
  -moz-transform: translate(0px, 97px);
  transform: translate(0px, 97px); }
.tile.tile-position-1-3 {
  -webkit-transform: translate(0px, 194px);
  -moz-transform: translate(0px, 194px);
  transform: translate(0px, 194px); }
.tile.tile-position-1-4 {
  -webkit-transform: translate(0px, 291px);
  -moz-transform: translate(0px, 291px);
  transform: translate(0px, 291px); }
.tile.tile-position-1-5 {
  -webkit-transform: translate(0px, 388px);
  -moz-transform: translate(0px, 388px);
  transform: translate(0px, 388px); }
.tile.tile-position-2-1 {
  -webkit-transform: translate(97px, 0px);
  -moz-transform: translate(97px, 0px);
  transform: translate(97px, 0px); }
.tile.tile-position-2-2 {
  -webkit-transform: translate(97px, 97px);
  -moz-transform: translate(97px, 97px);
  transform: translate(97px, 97px); }
.tile.tile-position-2-3 {
  -webkit-transform: translate(97px, 194px);
  -moz-transform: translate(97px, 194px);
  transform: translate(97px, 194px); }
.tile.tile-position-2-4 {
  -webkit-transform: translate(97px, 291px);
  -moz-transform: translate(97px, 291px);
  transform: translate(97px, 291px); }
.tile.tile-position-2-5 {
  -webkit-transform: translate(97px, 388px);
  -moz-transform: translate(97px, 388px);
  transform: translate(97px, 388px); }
.tile.tile-position-3-1 {
  -webkit-transform: translate(194px, 0px);
  -moz-transform: translate(194px, 0px);
  transform: translate(194px, 0px); }
.tile.tile-position-3-2 {
  -webkit-transform: translate(194px, 97px);
  -moz-transform: translate(194px, 97px);
  transform: translate(194px, 97px); }
.tile.tile-position-3-3 {
  -webkit-transform: translate(194px, 194px);
  -moz-transform: translate(194px, 194px);
  transform: translate(194px, 194px); }
.tile.tile-position-3-4 {
  -webkit-transform: translate(194px, 291px);
  -moz-transform: translate(194px, 291px);
  transform: translate(194px, 291px); }
.tile.tile-position-3-5 {
  -webkit-transform: translate(194px, 388px);
  -moz-transform: translate(194px, 388px);
  transform: translate(194px, 388px); }
.tile.tile-position-4-1 {
  -webkit-transform: translate(291px, 0px);
  -moz-transform: translate(291px, 0px);
  transform: translate(291px, 0px); }
.tile.tile-position-4-2 {
  -webkit-transform: translate(291px, 97px);
  -moz-transform: translate(291px, 97px);
  transform: translate(291px, 97px); }
.tile.tile-position-4-3 {
  -webkit-transform: translate(291px, 194px);
  -moz-transform: translate(291px, 194px);
  transform: translate(291px, 194px); }
.tile.tile-position-4-4 {
  -webkit-transform: translate(291px, 291px);
  -moz-transform: translate(291px, 291px);
  transform: translate(291px, 291px); }
.tile.tile-position-4-5 {
  -webkit-transform: translate(291px, 388px);
  -moz-transform: translate(291px, 388px);
  transform: translate(291px, 388px); }
.tile.tile-position-5-1 {
  -webkit-transform: translate(388px, 0px);
  -moz-transform: translate(388px, 0px);
  transform: translate(388px, 0px); }
.tile.tile-position-5-2 {
  -webkit-transform: translate(388px, 97px);
  -moz-transform: translate(388px, 97px);
  transform: translate(388px, 97px); }
.tile.tile-position-5-3 {
  -webkit-transform: translate(388px, 194px);
  -moz-transform: translate(388px, 194px);
  transform: translate(388px, 194px); }
.tile.tile-position-5-4 {
  -webkit-transform: translate(388px, 291px);
  -moz-transform: translate(388px, 291px);
  transform: translate(388px, 291px); }
.tile.tile-position-5-5 {
  -webkit-transform: translate(388px, 388px);
  -moz-transform: translate(388px, 388px);
  transform: translate(388px, 388px); }

.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: 2px;
    color: #4b4242;
    background: #00ff04;
    text-align: center;
    font-family: cursive;
    font-weight: bold;
    z-index: 10;
    font-size: 49px; }
  .tile.tile--3 .tile-inner {
    color: #dfd158;
    background: #ae4212; }
  .tile.tile--2 .tile-inner {
    color: #e55617;
    background: #f2e25d; }
  .tile.tile--1 .tile-inner {
    color: #f2e25d;
    background: #e55617; }
  .tile.tile-1 .tile-inner {
    color: #000000;
    background: #d8a4ff; }
  .tile.tile-2 .tile-inner {
    color: #000000;
    background: #ffa4f8; }
  .tile.tile-3 .tile-inner {
    color: #000000;
    background: #bc62fe; }
  .tile.tile-4 .tile-inner {
    color: #000000;
    background: #ffff00; }
  .tile.tile-5 .tile-inner {
    color: #000000;
    background: #044c5b; }
  .tile.tile-6 .tile-inner {
    color: #000000;
    background: #fe64f2; }
  .tile.tile-7 .tile-inner {
    color: #000000;
    background: #0036ff; }
  .tile.tile-8 .tile-inner {
    color: #000000;
    background: #00ffe4; }
  .tile.tile-9 .tile-inner {
    color: #000000;
    background: #a021fe; }
  .tile.tile-10 .tile-inner {
    color: #000000;
    background: #fc7070; }
  .tile.tile-11 .tile-inner {
    color: #000000;
    background: #80bc8a; }
  .tile.tile-12 .tile-inner {
    color: #000000;
    background: #dd9f1a; }
  .tile.tile-14 .tile-inner {
    color: #d3dfd8;
    background: #bc80aa; }
  .tile.tile-15 .tile-inner {
    color: #000000;
    background: #045b46; }
  .tile.tile-18 .tile-inner {
    color: #000000;
    background: #fe21ea; }
  .tile.tile-21 .tile-inner {
    color: #000000;
    background: #0024a9; }
  .tile.tile-24 .tile-inner {
    color: #000000;
    background: #00a997; }
  .tile.tile-25 .tile-inner {
    color: #3a079d;
    background: #c8ed37; }
  .tile.tile-26 .tile-inner {
    color: #d8ff27;
    background: #494949; }
  .tile.tile-27 .tile-inner {
    color: #ffc127;
    background: #200032; }
  .tile.tile-27± .tile-inner {
    color: #4b4242;
    background: #06ca09; }
  .tile.tile-27- .tile-inner {
    color: #4b4242;
    background: #039606; }
  .tile.tile-27× .tile-inner {
    color: #4b4242;
    background: #72ea73; }
  .tile.tile-27÷ .tile-inner {
    color: #4b4242;
    background: #479647; }
  .tile.tile-279 .tile-inner {
    color: #4b4242;
    background: #abe4ab; }
  .tile.tile-27≠ .tile-inner {
    color: #4b4242;
    background: #729672; }
  .tile.tile-29 .tile-inner {
    color: #cc3232;
    background: #8b9672; }
  .tile.tile-30 .tile-inner {
    color: #000000;
    background: #ac4e4e; }
  .tile.tile-32 .tile-inner {
    color: #4ea7da;
    background: #624e4e; }
  .tile.tile-33 .tile-inner {
    color: #000000;
    background: #436549; }
  .tile.tile-34 .tile-inner {
    color: #f6ff71;
    background: #0066ff; }
  .tile.tile-35 .tile-inner {
    color: #000000;
    background: #c0c0c0; }
  .tile.tile-36 .tile-inner {
    color: #ffd400;
    background: #9e6f09; }
  .tile.tile-38 .tile-inner {
    color: #6cf752;
    background: #84267d; }
  .tile.tile-41 .tile-inner {
    color: #4015d0;
    background: #7047fa; }
  .tile.tile-42 .tile-inner {
    color: #f10c28;
    background: #75d015; }
  .tile.tile-44 .tile-inner {
    color: #1a9524;
    background: #f7b845; }
  .tile.tile-45 .tile-inner {
    color: #d0ff2f;
    background: #24cb93; }
  .tile.tile-49 .tile-inner {
    color: #cccd74;
    background: #4c4b5e; }
  .tile.tile-50 .tile-inner {
    color: #ff8a8a;
    background: #1c7b97; }
  .tile.tile-52 .tile-inner {
    color: #f9c880;
    background: #da8f8f; }
  .tile.tile-54 .tile-inner {
    color: #fc4a4a;
    background: #af1287; }
  .tile.tile-57 .tile-inner {
    color: #e09bd5;
    background: #1c5f47; }
  .tile.tile-63 .tile-inner {
    color: #66e76a;
    background: #05360d; }
  .tile.tile-64 .tile-inner {
    color: #008ab2;
    background: #fca2a2; }
  .tile.tile-66 .tile-inner {
    color: #b61c8e;
    background: #bc9e80; }
  .tile.tile-70 .tile-inner {
    color: #26009a;
    background: #689833; }
  .tile.tile-73 .tile-inner {
    color: #ee0990;
    background: #81f6ba; }
  .tile.tile-74 .tile-inner {
    color: #4a2454;
    background: #f2fca2; }
  .tile.tile-76 .tile-inner {
    color: #2cdaa2;
    background: #005e4d; }
  .tile.tile-77 .tile-inner {
    color: #ffce27;
    background: #4b1464; }
  .tile.tile-78 .tile-inner {
    color: #236f6b;
    background: #9fbf51; }
  .tile.tile-80 .tile-inner {
    color: #b5ef29;
    background: #567bc1; }
  .tile.tile-81 .tile-inner {
    color: #93f212;
    background: #0a0243; }
  .tile.tile-82 .tile-inner {
    color: #f2e0cf;
    background: #ba936d; }
  .tile.tile-83 .tile-inner {
    color: #efd729;
    background: #187f3e; }
  .tile.tile-84 .tile-inner {
    color: #145f00;
    background: #b3a964; }
  .tile.tile-85 .tile-inner {
    color: #debe1e;
    background: #b22c6a; }
  .tile.tile-87 .tile-inner {
    color: #fcfcf4;
    background: #76acff; }
  .tile.tile-88 .tile-inner {
    color: #2424ca;
    background: #ffc69d; }
  .tile.tile-89 .tile-inner {
    color: #c90d0d;
    background: #001253; }
  .tile.tile-90 .tile-inner {
    color: #ff843c;
    background: #7a00ff; }
  .tile.tile-92 .tile-inner {
    color: #4ff925;
    background: #3a49ff; }
  .tile.tile-93 .tile-inner {
    color: #927306;
    background: #ffe06f; }
  .tile.tile-94 .tile-inner {
    color: #ff6666;
    background: #667023; }
  .tile.tile-96 .tile-inner {
    color: #b99b77;
    background: #4b2121; }
  .tile.tile-97 .tile-inner {
    color: #791d06;
    background: #9fbbb9; }
  .tile.tile-98 .tile-inner {
    color: #faf3ff;
    background: #8f5a18; }
  .tile.tile-99 .tile-inner {
    color: #fef4f2;
    background: #2e0776; }
  .tile.tile-Z6 .tile-inner {
    color: #c0ff27;
    background: #2c2c2c; }
  .tile.tile-37 .tile-inner {
    color: #ffc127;
    background: #885c9f; }
  .tile.tile-ZZ .tile-inner {
    color: #ffce27;
    background: #5c4f63; }
  .tile.tile-XL .tile-inner {
    color: #59eadf;
    background: #660039; }
  .tile.tile-🐧 .tile-inner {
    color: #000000;
    background: #d9f8f5; }
  .tile.tile-🐾 .tile-inner {
    color: #000000;
    background: #c55605; }
  .tile.tile-🚫 .tile-inner {
    color: #000000;
    background: #c8c8c8; }
  .tile.tile-▦ .tile-inner {
    color: #e5fcfe;
    background: #052382; }
  .tile.tile-∷ .tile-inner {
    color: #8cf4ec;
    background: #747db6; }
  .tile.tile-▬-╺ .tile-inner {
    color: #130401;
    background: #ff2a00; 
    font-size: 31px; }
  .tile.tile-💡 .tile-inner {
    color: #f4e28c;
    background: #d4c283; }
  .tile.tile-📞 .tile-inner {
    color: #8cf4ec;
    background: #36d349; }
  .tile.tile-🎄 .tile-inner {
    color: #8cf4ec;
    background: #116530; }
  .tile.tile-☷ .tile-inner {
    color: #f4bc8c;
    background: #9e571b; }
  .tile.tile-🍄 .tile-inner {
    color: #000000;
    background: #ff4b7c; }
  .tile.tile-⛔ .tile-inner {
    color: #000000;
    background: #ff4747; }
  .tile.tile-🐦 .tile-inner {
    color: #000000;
    background: #b34b41; }
  .tile.tile-🐬 .tile-inner {
    color: #000000;
    background: #4db7e0; }
  .tile.tile-🔒 .tile-inner {
    color: #f4e28c;
    background: #c2a32f; }
  .tile.tile-🌙 .tile-inner {
    color: #f4e28c;
    background: #1e1e55; }
  .tile.tile-♻ .tile-inner {
    color: #7df854;
    background: #f7fef7; }
  .tile.tile-↉ .tile-inner {
    color: #bde7ff;
    background: #0c946f; }
  .tile.tile-╳ .tile-inner {
    color: #ff0000;
    background: #850505; 
    line-height: 1.5; }
  .tile.tile-© .tile-inner {
    color: #a9ff00;
    background: #97a899; }
  .tile.tile-105 .tile-inner {
    color: #000000;
    background: #919191;
    font-size: 40px; }
    @media screen and (max-width: 520px) {
      .tile.tile-105 .tile-inner {
        font-size: 24px; } }
  .tile.tile-108 .tile-inner {
    color: #f2fefe;
    background: #dd4c07;
    font-size: 40px; }
    @media screen and (max-width: 520px) {
      .tile.tile-108 .tile-inner {
        font-size: 24px; } }
  .tile.tile-111 .tile-inner {
    color: #ffc127;
    background: #723d8b; 
    font-size: 40px; }
    @media screen and (max-width: 520px) {
      .tile.tile-111 .tile-inner {
        font-size: 24px; } }
  .tile.tile-162 .tile-inner {
    color: #f2fefe;
    background: #ed0858;
    font-size: 40px; }
    @media screen and (max-width: 520px) {
      .tile.tile-162 .tile-inner {
        font-size: 24px; } }
  .tile.tile-243 .tile-inner {
    color: #ffffff;
    background: #a20505;
    font-size: 40px; }
    @media screen and (max-width: 520px) {
      .tile.tile-243 .tile-inner {
        font-size: 24px; } }
  .tile.tile-324 .tile-inner {
    color: #f2fefe;
    background: #ff6922;
    font-size: 40px; }
    @media screen and (max-width: 520px) {
      .tile.tile-324 .tile-inner {
        font-size: 24px; } }
  .tile.tile-486 .tile-inner {
    color: #f2fefe;
    background: #ed08b5;
    font-size: 40px; }
    @media screen and (max-width: 520px) {
      .tile.tile-486 .tile-inner {
        font-size: 24px; } }
  .tile.tile-729 .tile-inner {
    color: #ffffff;
    background: #ed0808;
    font-size: 40px; }
    @media screen and (max-width: 520px) {
      .tile.tile-729 .tile-inner {
        font-size: 24px; } }
  .tile.tile-972 .tile-inner {
    color: #f2fefe;
    background: #f47f1a;
    font-size: 40px; }
    @media screen and (max-width: 520px) {
      .tile.tile-972 .tile-inner {
        font-size: 24px; } }
  .tile.tile-8282 .tile-inner {
    color: #ba936d;
    background: #f2e0cf; 
    font-size: 34px; }
  .tile.tile-8383 .tile-inner {
    color: #dcb027;
    background: #0f4e26; 
    font-size: 34px; }
  .tile.tile-828282 .tile-inner {
    color: #c99e78;
    background: #886b52; 
    font-size: 22px; }
  .tile.tile-838383 .tile-inner {
    color: #cb9124;
    background: #072613; 
    font-size: 22px; }
  .tile.tile-super .tile-inner {
    color: #000000;
    background: #000000;
    font-size: 1px; }
    @media screen and (max-width: 520px) {
      .tile.tile-super .tile-inner {
        font-size: 1px; } }

@-webkit-keyframes appear {
  0% {
    opacity: 0;
    -webkit-transform: scale(0);
    -moz-transform: scale(0);
    transform: scale(0); }

  100% {
    opacity: 1;
    -webkit-transform: scale(1);
    -moz-transform: scale(1);
    transform: scale(1); } }
@-moz-keyframes appear {
  0% {
    opacity: 0;
    -webkit-transform: scale(0);
    -moz-transform: scale(0);
    transform: scale(0); }

  100% {
    opacity: 1;
    -webkit-transform: scale(1);
    -moz-transform: scale(1);
    transform: scale(1); } }
@keyframes appear {
  0% {
    opacity: 0;
    -webkit-transform: scale(0);
    -moz-transform: scale(0);
    transform: scale(0); }

  100% {
    opacity: 1;
    -webkit-transform: scale(1);
    -moz-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 pop {
  0% {
    -webkit-transform: scale(0);
    -moz-transform: scale(0);
    transform: scale(0); }

  50% {
    -webkit-transform: scale(1.2);
    -moz-transform: scale(1.2);
    transform: scale(1.2); }

  100% {
    -webkit-transform: scale(1);
    -moz-transform: scale(1);
    transform: scale(1); } }
@-moz-keyframes pop {
  0% {
    -webkit-transform: scale(0);
    -moz-transform: scale(0);
    transform: scale(0); }

  50% {
    -webkit-transform: scale(1.2);
    -moz-transform: scale(1.2);
    transform: scale(1.2); }

  100% {
    -webkit-transform: scale(1);
    -moz-transform: scale(1);
    transform: scale(1); } }
@keyframes pop {
  0% {
    -webkit-transform: scale(0);
    -moz-transform: scale(0);
    transform: scale(0); }

  50% {
    -webkit-transform: scale(1.2);
    -moz-transform: scale(1.2);
    transform: scale(1.2); }

  100% {
    -webkit-transform: scale(1);
    -moz-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; }

.game-intro {
  margin-bottom: 0; }

.game-explanation {
  margin-top: 50px; }

@media screen and (max-width: 520px) {
  html, body {
    font-size: 15px; }

  body {
    margin: 20px 0;
    padding: 0 20px; }

  h1.title {
    font-size: 27px;
    margin-top: 15px; }

  .container {
    width: 280px;
    margin: 0 auto; }

  .score-container, .best-container {
    margin-top: 0;
    padding: 15px 10px;
    min-width: 40px; }

  .heading {
    margin-bottom: 10px; }

  .game-container {
    margin-top: 40px;
    position: relative;
    padding: 10px;
    cursor: default;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    background: #bbada0;
    border-radius: 6px;
    width: 280px;
    height: 280px;
    -ms-touch-action: none;
    -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(221, 221, 221, 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: 60px;
        font-weight: bold;
        height: 60px;
        line-height: 60px;
        margin-top: 222px; }
      .game-container .game-message .lower {
        display: block;
        margin-top: 59px; }
      .game-container .game-message a {
        display: inline-block;
        background: #8f7a66;
        border-radius: 3px;
        padding: 0 20px;
        text-decoration: none;
        color: #f9f6f2;
        height: 40px;
        line-height: 42px;
        margin-left: 9px; }
        .game-container .game-message a.keep-playing-button {
          display: none; }
      .game-container .game-message.game-won {
        background: rgba(203, 242, 233, 0.5);
        color: #f9f6f2; }
        .game-container .game-message.game-won a.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: 10px; }
    .grid-row:last-child {
      margin-bottom: 0; }
    .grid-row:after {
      content: "";
      display: block;
      clear: both; }

  .grid-cell {
    width: 44px;
    height: 44px;
    margin-right: 10px;
    float: left;
    border-radius: 3px;
    background: rgba(221, 221, 221, 0.35); }
    .grid-cell:last-child {
      margin-right: 0; }

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

  .tile, .tile .tile-inner {
    width: 44px;
    height: 44px;
    line-height: 54px; }
  .tile.tile-position-1-1 {
    -webkit-transform: translate(0px, 0px);
    -moz-transform: translate(0px, 0px);
    transform: translate(0px, 0px); }
  .tile.tile-position-1-2 {
    -webkit-transform: translate(0px, 54px);
    -moz-transform: translate(0px, 54px);
    transform: translate(0px, 54px); }
  .tile.tile-position-1-3 {
    -webkit-transform: translate(0px, 108px);
    -moz-transform: translate(0px, 108px);
    transform: translate(0px, 108px); }
  .tile.tile-position-1-4 {
    -webkit-transform: translate(0px, 162px);
    -moz-transform: translate(0px, 162px);
    transform: translate(0px, 162px); }
  .tile.tile-position-1-5 {
    -webkit-transform: translate(0px, 216px);
    -moz-transform: translate(0px, 216px);
    transform: translate(0px, 216px); }
  .tile.tile-position-2-1 {
    -webkit-transform: translate(54px, 0px);
    -moz-transform: translate(54px, 0px);
    transform: translate(54px, 0px); }
  .tile.tile-position-2-2 {
    -webkit-transform: translate(54px, 54px);
    -moz-transform: translate(54px, 54px);
    transform: translate(54px, 54px); }
  .tile.tile-position-2-3 {
    -webkit-transform: translate(54px, 108px);
    -moz-transform: translate(54px, 108px);
    transform: translate(54px, 108px); }
  .tile.tile-position-2-4 {
    -webkit-transform: translate(54px, 162px);
    -moz-transform: translate(54px, 162px);
    transform: translate(54px, 162px); }
  .tile.tile-position-2-5 {
    -webkit-transform: translate(54px, 216px);
    -moz-transform: translate(54px, 216px);
    transform: translate(54px, 216px); }
  .tile.tile-position-3-1 {
    -webkit-transform: translate(108px, 0px);
    -moz-transform: translate(108px, 0px);
    transform: translate(108px, 0px); }
  .tile.tile-position-3-2 {
    -webkit-transform: translate(108px, 54px);
    -moz-transform: translate(108px, 54px);
    transform: translate(108px, 54px); }
  .tile.tile-position-3-3 {
    -webkit-transform: translate(108px, 108px);
    -moz-transform: translate(108px, 108px);
    transform: translate(108px, 108px); }
  .tile.tile-position-3-4 {
    -webkit-transform: translate(108px, 162px);
    -moz-transform: translate(108px, 162px);
    transform: translate(108px, 162px); }
  .tile.tile-position-3-5 {
    -webkit-transform: translate(108px, 216px);
    -moz-transform: translate(108px, 216px);
    transform: translate(108px, 216px); }
  .tile.tile-position-4-1 {
    -webkit-transform: translate(162px, 0px);
    -moz-transform: translate(162px, 0px);
    transform: translate(162px, 0px); }
  .tile.tile-position-4-2 {
    -webkit-transform: translate(162px, 54px);
    -moz-transform: translate(162px, 54px);
    transform: translate(162px, 54px); }
  .tile.tile-position-4-3 {
    -webkit-transform: translate(162px, 108px);
    -moz-transform: translate(162px, 108px);
    transform: translate(162px, 108px); }
  .tile.tile-position-4-4 {
    -webkit-transform: translate(162px, 162px);
    -moz-transform: translate(162px, 162px);
    transform: translate(162px, 162px); }
  .tile.tile-position-4-5 {
    -webkit-transform: translate(162px, 216px);
    -moz-transform: translate(162px, 216px);
    transform: translate(162px, 216px); }
  .tile.tile-position-5-1 {
    -webkit-transform: translate(216px, 0px);
    -moz-transform: translate(216px, 0px);
    transform: translate(216px, 0px); }
  .tile.tile-position-5-2 {
    -webkit-transform: translate(216px, 54px);
    -moz-transform: translate(216px, 54px);
    transform: translate(216px, 54px); }
  .tile.tile-position-5-3 {
    -webkit-transform: translate(216px, 108px);
    -moz-transform: translate(216px, 108px);
    transform: translate(216px, 108px); }
  .tile.tile-position-5-4 {
    -webkit-transform: translate(216px, 162px);
    -moz-transform: translate(216px, 162px);
    transform: translate(216px, 162px); }
  .tile.tile-position-5-5 {
    -webkit-transform: translate(216px, 216px);
    -moz-transform: translate(216px, 216px);
    transform: translate(216px, 216px); }

  .game-container {
    margin-top: 20px; }

  .tile .tile-inner {
    font-size: 35px; }

  .game-message p {
    font-size: 30px !important;
    height: 30px !important;
    line-height: 30px !important;
    margin-top: 90px !important; }
  .game-message .lower {
    margin-top: 30px !important; } }

