@import url(fonts/comic-sans.css);
@import url(fonts/chinese-fonts.css);

html, body {
  margin: 0;
  padding: 0;
  background: #ffece0;
  color: #333;
  font-family: 'Comic Sans', 'Comic Sans', Chalkboard, Helvetica, Arial, sans-serif;
  font-size: 18px;
  -webkit-animation: background-gradient-change linear 8s infinite alternate;
  -moz-animation: background-gradient-change linear 8s infinite alternate;
  animation: background-gradient-change linear 8s infinite alternate;
  font-family: 'ZCOOL XiaoWei', 'STXihei', 'Microsoft YaHei', sans-serif;
}

body {
  margin: 80px 0 0 0; }

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

h1.title {
  color: #e62e00;
  font-size: 48px;
  font-weight: bold;
  margin: 0;
  display: block;
  float: left;
  font-family: 'Comic Sans', 'Comic Sans', Chalkboard, Helvetica, Arial, sans-serif !important;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

  #twitter-widget-0 {
    width: 100px !important;
    position: relative;
  }

  .COINWIDGETCOM_CONTAINER {
  position: relative;
  bottom: 5px;
  }

  .footer > div{
    display:inline-block !important;
    width: auto !important;
    overflow:hidden;
    vertical-align: top !important;
  }

  .footer{
/*    width:188px;*/
    width:265px;
    margin-left: auto;
    margin-right: auto;
    text-align:center;
    line-height: 1;
  }

  .footer .fb-like,
  .footer .twitter-share-button {
    vertical-align: top !important;
    margin: 0 5px;
  }

  .friends-section {
    max-width: 800px;
    margin: 30px auto 20px;
    padding: 20px 15px;
    border-top: 1px solid #eee;
    text-align: center;
  }

  .friends-section .friends {
    font-size: 14px;
    color: #776e65;
  }

  .friends-section .friends strong {
    display: block;
    margin-bottom: 10px;
    color: #776e65;
    font-weight: bold;
    font-size: 16px;
  }

  .friends-section .friends ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: inline-block;
  }

  .friends-section .friends li {
    display: inline-block;
    margin: 0 15px;
  }

  .friends-section .friends a {
    color: #8f7a66;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
    font-weight: 500;
  }

  .friends-section .friends a:hover {
    color: #9f8a76;
    text-decoration: underline;
  }

@-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; } }

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

    50% {
      opacity: 1; }

    100% {
      opacity: 0; } }

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

    50% {
      opacity: 1; }

    100% {
      opacity: 0; } }

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

    50% {
      opacity: 1; }

    100% {
      opacity: 0; } }

  @-webkit-keyframes hover-change {
      0%   {color: #ff3366;}
      25%  {color: #ff6600;}
      50%  {color: #ffcc00;}
      100% {color: #ff3366;} }

  @-moz-keyframes hover-change {
      0%   {color: #ff3366;}
      25%  {color: #ff6600;}
      50%  {color: #ffcc00;}
      100% {color: #ff3366;} }

  @keyframes hover-change {
      0%   {color: #ff3366;}
      25%  {color: #ff6600;}
      50%  {color: #ffcc00;}
      100% {color: #ff3366;} }

  @-webkit-keyframes background-gradient-change {
      0%   {background: #ffece0;}
      33%  {background: #ffe0e0;}
      66%  {background: #fff0d0;}
      100%   {background: #ffece0;}}

  @-moz-keyframes background-gradient-change {
      0%   {background: #ffece0;}
      33%  {background: #ffe0e0;}
      66%  {background: #fff0d0;}
      100%   {background: #ffece0;}}

  @keyframes background-gradient-change {
      0%   {background: #ffece0;}
      33%  {background: #ffe0e0;}
      66%  {background: #fff0d0;}
      100%   {background: #ffece0;}}

  a:hover {
         -webkit-animation: hover-change linear 0.1s infinite;
         -moz-animation: hover-change linear 0.1s infinite;
         animation: hover-change linear 0.1s infinite;
       }

.scores-container {
  float: right;
  text-align: right; }

.game-container .doge-says {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 100;
  pointer-events: none;
  overflow: hidden;
}

.game-container .doge-says p {
  position: fixed;
  font-size: 60px !important;
  line-height: 1.2 !important;
  font-weight: bold;
  text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
  -webkit-text-stroke: 1px rgba(0, 0, 0, 0.1);
  letter-spacing: 2px;
  visibility: visible !important;
  opacity: 1 !important;
  animation: fade-out 3s ease-in 2s;
  animation-fill-mode: forwards;
  max-width: 80%;
  word-break: break-word;
  text-align: center;
}

  .info-container {
    position: relative;
    cursor:pointer;
    left:50%;
    margin-left:-32px;
    margin-bottom:10px;}

    .shout-out-container{
      text-align:center;
    }
    .shout-out{
      height:10px;
      line-height: 10px;
      background: #f0f;
      padding: 10px 10px;
      border-radius: 3px;
      display:inline-block;
    }

  .shout-out a{
    font-weight: normal;
    height:10px;
    width:auto;
    text-decoration:none;
    color:#fff;
  }

  .info-container, .hide-info {
    display: inline-block;
    background: #f0f;
    padding: 10px 15px;
    height: 10px;
    line-height: 10px;
    font-size:10px;
    font-weight: bold;
    border-radius: 3px;
    color: white;
    margin-top: 8px;
    width: 36px;
    text-align: center; }
      .info-container a, .hide-info a{
        color:#fff;
        text-decoration:none;}

  .game-container .info {
    display: none;
    position: absolute;
    overflow: scroll;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: rgba(255,255,255,0.9);
    z-index: 100;
    border-radius: 6px;
    text-align: center;
/*    -webkit-animation: fade-in 800ms ease;
    -moz-animation: fade-in 800ms ease;
    animation: fade-in 800ms ease;*/
    -webkit-animation-fill-mode: both;
    -moz-animation-fill-mode: both;
    animation-fill-mode: both; }
    .game-container .info p {
      position:relative;
      font-size: 16px;
      padding:10px 20px 10px 20px;
      font-weight: bold;
      font-family: 'ZCOOL XiaoWei', 'STKaiti', 'Microsoft YaHei', sans-serif;
      color: #832a0d;
    }

.score-container, .best-container {
  position: relative;
  display: inline-block;
  background: #ff3366;
  padding: 15px 25px;
/*  font-size: 25px;*/
  height: 25px;
  line-height: 42px;
  font-weight: bold;
  border-radius: 3px;
  color: white;
  margin-top: 8px;
  text-align: center;
  font-size: 30px !important;
}
  .score-container:after, .best-container:after {
    position: absolute;
    width: 100%;
    top: 10px;
    left: 0;
    text-transform: uppercase;
    font-size: 12px;
    line-height: 13px;
    text-align: center;
    color: #000; }
  .score-container .score-addition, .best-container .score-addition {
    position: absolute;
    right: 30px;
    font-size: 32px !important;
    line-height: 20px;
    color: #e62e00;
    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;
    font-weight: bold;
  }

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

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

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

a {
  color: #f0f;
  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: rgba(255, 255, 255, 0.9);
  border-radius: 6px;
  width: 500px;
  height: 500px;
  box-sizing: border-box;
  box-shadow: 0 4px 12px rgba(230, 46, 0, 0.3);
}
  .game-container .game-message{
    display: none;
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: rgba(255,255,255,0.9);
    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: 50px !important;
      font-weight: bold;
      height: 60px;
      line-height: 60px;
      margin-top: 110px !important;
      font-family: 'Ma Shan Zheng', 'STKaiti', 'KaiTi', cursive;
      font-size: 35px !important;
      background: linear-gradient(to bottom, #e62e00, #ff9900);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      text-shadow: none;
      filter: drop-shadow(2px 2px 3px rgba(0, 0, 0, 0.3));
    }
    .game-container .game-message .lower {
      display: block;
      margin-top: 59px; }
    .game-container .game-message a {
      display: inline-block;
      background: #f0f;
      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(237, 194, 46, 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: 106.25px;
  height: 106.25px;
  margin-right: 15px;
  float: left;
  border-radius: 3px;
  background: rgba(238, 228, 218, 0.35);
  border: 1px solid rgba(230, 46, 0, 0.1);
  box-sizing: border-box;
}

.grid-cell:last-child {
  margin-right: 0;
}

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

.tile, .tile .tile-inner {
  width: 106.25px;
  height: 106.25px;
  line-height: 106.25px;
  box-sizing: border-box;
}
.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, 121px);
  -moz-transform: translate(0px, 121px);
  transform: translate(0px, 121px); }
.tile.tile-position-1-3 {
  -webkit-transform: translate(0px, 242px);
  -moz-transform: translate(0px, 242px);
  transform: translate(0px, 242px); }
.tile.tile-position-1-4 {
  -webkit-transform: translate(0px, 363px);
  -moz-transform: translate(0px, 363px);
  transform: translate(0px, 363px); }
.tile.tile-position-2-1 {
  -webkit-transform: translate(121px, 0px);
  -moz-transform: translate(121px, 0px);
  transform: translate(121px, 0px); }
.tile.tile-position-2-2 {
  -webkit-transform: translate(121px, 121px);
  -moz-transform: translate(121px, 121px);
  transform: translate(121px, 121px); }
.tile.tile-position-2-3 {
  -webkit-transform: translate(121px, 242px);
  -moz-transform: translate(121px, 242px);
  transform: translate(121px, 242px); }
.tile.tile-position-2-4 {
  -webkit-transform: translate(121px, 363px);
  -moz-transform: translate(121px, 363px);
  transform: translate(121px, 363px); }
.tile.tile-position-3-1 {
  -webkit-transform: translate(242px, 0px);
  -moz-transform: translate(242px, 0px);
  transform: translate(242px, 0px); }
.tile.tile-position-3-2 {
  -webkit-transform: translate(242px, 121px);
  -moz-transform: translate(242px, 121px);
  transform: translate(242px, 121px); }
.tile.tile-position-3-3 {
  -webkit-transform: translate(242px, 242px);
  -moz-transform: translate(242px, 242px);
  transform: translate(242px, 242px); }
.tile.tile-position-3-4 {
  -webkit-transform: translate(242px, 363px);
  -moz-transform: translate(242px, 363px);
  transform: translate(242px, 363px); }
.tile.tile-position-4-1 {
  -webkit-transform: translate(363px, 0px);
  -moz-transform: translate(363px, 0px);
  transform: translate(363px, 0px); }
.tile.tile-position-4-2 {
  -webkit-transform: translate(363px, 121px);
  -moz-transform: translate(363px, 121px);
  transform: translate(363px, 121px); }
.tile.tile-position-4-3 {
  -webkit-transform: translate(363px, 242px);
  -moz-transform: translate(363px, 242px);
  transform: translate(363px, 242px); }
.tile.tile-position-4-4 {
  -webkit-transform: translate(363px, 363px);
  -moz-transform: translate(363px, 363px);
  transform: translate(363px, 363px); }

.tile {
  color: rgba(0,0,0,0);
  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;
  border: 1px solid rgba(230, 46, 0, 0.08);
}
  .tile .tile-inner {
    border-radius: 3px;
    background: #eee4da;
    text-align: center;
    font-weight: bold;
    z-index: 10;
    font-size: 55px; }
  .tile.tile-2 .tile-inner {
    background: #f0f url('https://cdn.nezha2048.com/img/212/nezha-17-212.gif');
    background-size: cover;
    box-shadow: 0 0 30px 10px rgba(243, 215, 116, 0), inset 0 0 0 1px rgba(255, 255, 255, 0); }

  .tile.tile-4 .tile-inner {
    background: #f0f url('https://cdn.nezha2048.com/img/212/nezha-16-212.gif');
    background-size: cover;
    box-shadow: 0 0 30px 10px rgba(243, 215, 116, 0), inset 0 0 0 1px rgba(255, 255, 255, 0); }

  .tile.tile-8 .tile-inner {
    background: #f0f url('https://cdn.nezha2048.com/img/212/nezha-15-212.gif');
    background-size: cover;}

  .tile.tile-16 .tile-inner {
    background: #f0f url('https://cdn.nezha2048.com/img/212/nezha-14-212.gif');
    background-size: cover;}

  .tile.tile-32 .tile-inner {
    background: #f0f url('https://cdn.nezha2048.com/img/212/nezha-13-212.gif');
    background-size: cover;}

  .tile.tile-64 .tile-inner {
    background: #f0f url('https://cdn.nezha2048.com/img/212/nezha-6-212.gif');
    background-size: cover;}

  .tile.tile-128 .tile-inner {
    background: #f0f url('https://cdn.nezha2048.com/img/212/nezha-7-212.gif');
    background-size: cover;
    box-shadow: 0 0 30px 10px rgba(243, 215, 116, 0.2381), inset 0 0 0 1px rgba(255, 255, 255, 0.14286);
    font-size: 45px; }
    @media screen and (max-width: 480px) {
      .tile.tile-128 .tile-inner {
        font-size: 25px; } }
  .tile.tile-256 .tile-inner {

    background: #f0f url('https://cdn.nezha2048.com/img/212/nezha-8-212.gif');
    background-size: cover;
    box-shadow: 0 0 30px 10px rgba(243, 215, 116, 0.31746), inset 0 0 0 1px rgba(255, 255, 255, 0.19048);
    font-size: 45px; }
    @media screen and (max-width: 480px) {
      .tile.tile-256 .tile-inner {
        font-size: 25px; } }
  .tile.tile-512 .tile-inner {

    background: #f0f url('https://cdn.nezha2048.com/img/212/nezha-9-212.gif');
    background-size: cover;
    box-shadow: 0 0 30px 10px rgba(243, 215, 116, 0.39683), inset 0 0 0 1px rgba(255, 255, 255, 0.2381);
    font-size: 45px; }
    @media screen and (max-width: 480px) {
      .tile.tile-512 .tile-inner {
        font-size: 25px; } }
  .tile.tile-1024 .tile-inner {
    background: #f0f url('https://cdn.nezha2048.com/img/212/nezha-10-212.gif');
    background-size: cover;
    box-shadow: 0 0 30px 10px rgba(243, 215, 116, 0.47619), inset 0 0 0 1px rgba(255, 255, 255, 0.28571);
    font-size: 35px; }
    @media screen and (max-width: 480px) {
      .tile.tile-1024 .tile-inner {
        font-size: 15px; } }
  .tile.tile-2048 .tile-inner {

    background: #f0f url('https://cdn.nezha2048.com/img/212/nezha-11-212.gif');
    background-size: cover;
    box-shadow: 0 0 30px 10px rgba(243, 215, 116, 0.55556), inset 0 0 0 1px rgba(255, 255, 255, 0.33333);
    font-size: 35px; }
    @media screen and (max-width: 480px) {
      .tile.tile-2048 .tile-inner {
        font-size: 15px; } }
  .tile.tile-super .tile-inner {

    background: #f0f url('https://cdn.nezha2048.com/img/212/nezha-12-212.gif');
    background-size: cover;
    font-size: 30px; }
    @media screen and (max-width: 480px) {
      .tile.tile-super .tile-inner {
        font-size: 10px; } }

@-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, .shout-out {
  margin-top: 0px;
  text-align: center;
  font-size: 20px !important;
  line-height: 1.5;
  margin: 20px auto;
  max-width: 90%;
  font-family: 'Comic Sans', 'Comic Sans', Chalkboard, Helvetica, Arial, sans-serif !important;
  color: #a62c00;
}

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

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

  h1.title {
    font-size: 25px;
    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-explanation {
    display:none;}

  .shout-out, .game-explanation{
    margin-top:10px;
    height:0;
    padding-top:10px;
    padding-bottom:20px;
  /*  font-size:12px;*/
  }

  .game-container {
    margin-top: 40px;
    position: relative;
    padding: 10px;
    cursor: default;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    border-radius: 6px;
    width: 280px;
    height: 280px;
    -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;
      z-index: 100;
      text-align: center;
      -webkit-animation: fade-in 800ms ease;
      -moz-animation: fade-in 800ms ease;
      animation: fade-in 800ms ease;
      -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;
        border-radius: 3px;
        padding: 0 20px;
        text-decoration: none;
        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(237, 194, 46, 0.5);}
        .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: 57.5px;
    height: 57.5px;
    margin-right: 10px;
    float: left;
    border-radius: 3px;}
    .grid-cell:last-child {
      margin-right: 0; }

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

  .tile, .tile .tile-inner {
    width: 58px;
    height: 58px;
    line-height: 67.5px; }
  .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, 67px);
    -moz-transform: translate(0px, 67px);
    transform: translate(0px, 67px); }
  .tile.tile-position-1-3 {
    -webkit-transform: translate(0px, 135px);
    -moz-transform: translate(0px, 135px);
    transform: translate(0px, 135px); }
  .tile.tile-position-1-4 {
    -webkit-transform: translate(0px, 202px);
    -moz-transform: translate(0px, 202px);
    transform: translate(0px, 202px); }
  .tile.tile-position-2-1 {
    -webkit-transform: translate(67px, 0px);
    -moz-transform: translate(67px, 0px);
    transform: translate(67px, 0px); }
  .tile.tile-position-2-2 {
    -webkit-transform: translate(67px, 67px);
    -moz-transform: translate(67px, 67px);
    transform: translate(67px, 67px); }
  .tile.tile-position-2-3 {
    -webkit-transform: translate(67px, 135px);
    -moz-transform: translate(67px, 135px);
    transform: translate(67px, 135px); }
  .tile.tile-position-2-4 {
    -webkit-transform: translate(67px, 202px);
    -moz-transform: translate(67px, 202px);
    transform: translate(67px, 202px); }
  .tile.tile-position-3-1 {
    -webkit-transform: translate(135px, 0px);
    -moz-transform: translate(135px, 0px);
    transform: translate(135px, 0px); }
  .tile.tile-position-3-2 {
    -webkit-transform: translate(135px, 67px);
    -moz-transform: translate(135px, 67px);
    transform: translate(135px, 67px); }
  .tile.tile-position-3-3 {
    -webkit-transform: translate(135px, 135px);
    -moz-transform: translate(135px, 135px);
    transform: translate(135px, 135px); }
  .tile.tile-position-3-4 {
    -webkit-transform: translate(135px, 202px);
    -moz-transform: translate(135px, 202px);
    transform: translate(135px, 202px); }
  .tile.tile-position-4-1 {
    -webkit-transform: translate(202px, 0px);
    -moz-transform: translate(202px, 0px);
    transform: translate(202px, 0px); }
  .tile.tile-position-4-2 {
    -webkit-transform: translate(202px, 67px);
    -moz-transform: translate(202px, 67px);
    transform: translate(202px, 67px); }
  .tile.tile-position-4-3 {
    -webkit-transform: translate(202px, 135px);
    -moz-transform: translate(202px, 135px);
    transform: translate(202px, 135px); }
  .tile.tile-position-4-4 {
    -webkit-transform: translate(202px, 202px);
    -moz-transform: translate(202px, 202px);
    transform: translate(202px, 202px); }

    .tile.tile-2 .tile-inner {
      background: #f0f url('https://cdn.nezha2048.com/img/114/nezha-17-114.gif');
      background-size: cover;
      box-shadow: 0 0 30px 10px rgba(243, 215, 116, 0), inset 0 0 0 1px rgba(255, 255, 255, 0); }

    .tile.tile-4 .tile-inner {
      background: #f0f url('https://cdn.nezha2048.com/img/114/nezha-16-114.gif');
      background-size: cover;
      box-shadow: 0 0 30px 10px rgba(243, 215, 116, 0), inset 0 0 0 1px rgba(255, 255, 255, 0); }

    .tile.tile-8 .tile-inner {
      background: #f0f url('https://cdn.nezha2048.com/img/114/nezha-15-114.gif');
      background-size: cover;}

    .tile.tile-16 .tile-inner {
      background: #f0f url('https://cdn.nezha2048.com/img/114/nezha-14-114.gif');
      background-size: cover;}

    .tile.tile-32 .tile-inner {
      background: #f0f url('https://cdn.nezha2048.com/img/114/nezha-13-114.gif');
      background-size: cover;}

    .tile.tile-64 .tile-inner {
      background: #f0f url('https://cdn.nezha2048.com/img/114/nezha-6-114.gif');
      background-size: cover;}

    .tile.tile-128 .tile-inner {
      background: #f0f url('https://cdn.nezha2048.com/img/114/nezha-7-114.gif');
      background-size: cover;
      box-shadow: 0 0 30px 10px rgba(243, 215, 116, 0.2381), inset 0 0 0 1px rgba(255, 255, 255, 0.14286);
      font-size: 45px; }
      @media screen and (max-width: 480px) {
        .tile.tile-128 .tile-inner {
          font-size: 25px; } }
    .tile.tile-256 .tile-inner {

      background: #f0f url('https://cdn.nezha2048.com/img/114/nezha-8-114.gif');
      background-size: cover;
      box-shadow: 0 0 30px 10px rgba(243, 215, 116, 0.31746), inset 0 0 0 1px rgba(255, 255, 255, 0.19048);
      font-size: 45px; }
      @media screen and (max-width: 480px) {
        .tile.tile-256 .tile-inner {
          font-size: 25px; } }
    .tile.tile-512 .tile-inner {

      background: #f0f url('https://cdn.nezha2048.com/img/114/nezha-9-114.gif');
      background-size: cover;
      box-shadow: 0 0 30px 10px rgba(243, 215, 116, 0.39683), inset 0 0 0 1px rgba(255, 255, 255, 0.2381);
      font-size: 45px; }
      @media screen and (max-width: 480px) {
        .tile.tile-512 .tile-inner {
          font-size: 25px; } }
    .tile.tile-1024 .tile-inner {
      background: #f0f url('https://cdn.nezha2048.com/img/114/nezha-10-114.gif');
      background-size: cover;
      box-shadow: 0 0 30px 10px rgba(243, 215, 116, 0.47619), inset 0 0 0 1px rgba(255, 255, 255, 0.28571);
      font-size: 35px; }
      @media screen and (max-width: 480px) {
        .tile.tile-1024 .tile-inner {
          font-size: 15px; } }
    .tile.tile-2048 .tile-inner {

      background: #f0f url('https://cdn.nezha2048.com/img/114/nezha-11-114.gif');
      background-size: cover;
      box-shadow: 0 0 30px 10px rgba(243, 215, 116, 0.55556), inset 0 0 0 1px rgba(255, 255, 255, 0.33333);
      font-size: 35px; }
      @media screen and (max-width: 480px) {
        .tile.tile-2048 .tile-inner {
          font-size: 15px; } }
    .tile.tile-super .tile-inner {

      background: #f0f url('https://cdn.nezha2048.com/img/114/nezha-12-114.gif');
      background-size: cover;
      font-size: 30px; }
      @media screen and (max-width: 480px) {
        .tile.tile-super .tile-inner {
          font-size: 10px; } }


    .footer{
      width:188px;}

    .friends-section {
      margin: 20px auto 15px;
      padding: 15px 10px;
    }

    .friends-section .friends {
      font-size: 12px;
    }

    .friends-section .friends strong {
      font-size: 14px;
      margin-bottom: 8px;
    }

    .friends-section .friends li {
      margin: 0 8px;
    }

    .friends-section .friends a {
      font-size: 12px;
    }

    #twitter-widget-0 {
      position: relative;
      top:5px;
    }

    .COINWIDGETCOM_CONTAINER {
      display:none !important;
    }

    .game-container .info p {
      font-size: 12px;
      padding:5px 10px 5px 10px;
    }

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

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

  .doge-says p {
    font-family: 'Zhi Mang Xing', 'Comic Sans', 'Comic Sans', Chalkboard, Helvetica, Arial, sans-serif !important;
    font-size: 60px !important;
    line-height: 1.2 !important;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
    -webkit-text-stroke: 1px rgba(0, 0, 0, 0.1);
    letter-spacing: 2px;
  }

  .game-message p {
    font-family: 'Zhi Mang Xing', 'Comic Sans', 'Comic Sans', Chalkboard, Helvetica, Arial, sans-serif;
    font-size: 60px;
    font-weight: bold;
    height: 60px;
    line-height: 60px;
    margin-top: 222px;
    background: none;
    -webkit-background-clip: initial;
    -webkit-text-fill-color: initial;
    text-shadow: none;
    filter: none;
  }
  .game-message .lower {
    margin-top: 30px !important; } }

/* 为游戏中常用的中文字符创建特定类 */
.nezha-text {
  font-family: 'Long Cang', 'STKaiti', 'KaiTi', sans-serif !important;
  /* 强制使用指定字体，防止回退 */
  font-weight: bold;
  /* 提高CSS特异性 */
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

/* 修改统一的字体族定义，将Zhi Mang Xing放在第一位 */
.doge-says p,
.game-message p,
.game-explanation,
.info p,
h1.title {
  /* 确保所有元素使用相同的字体族顺序，并将Zhi Mang Xing放在首位 */
  font-family: 'Zhi Mang Xing', 'Comic Sans', 'Comic Sans', Chalkboard, Helvetica, Arial, sans-serif;
}

/* 然后针对特定元素覆盖首选字体 */
.doge-says p {
  font-family: 'Zhi Mang Xing', 'Comic Sans', 'Comic Sans', Chalkboard, Helvetica, Arial, sans-serif !important;
}

.game-message p {
  font-family: 'Zhi Mang Xing', 'Comic Sans', 'Comic Sans', Chalkboard, Helvetica, Arial, sans-serif !important;
}

/* 针对特定容易出问题的汉字设置单独样式 */
.doge-says p[data-text*="哪"],
.doge-says p[data-text*="吒"],
.doge-says p[data-text*="闹"],
.doge-says p[data-text*="乾"],
.doge-says p[data-text*="坤"] {
  font-family: 'Zhi Mang Xing', 'Long Cang', 'KaiTi', sans-serif !important;
}

/* 为随机文字添加专门的类 */
.nezha-saying {
  font-family: 'Zhi Mang Xing', 'Comic Sans', 'Comic Sans', Chalkboard, Helvetica, Arial, sans-serif !important;
  visibility: visible !important;
  opacity: 1 !important;
  transition: opacity 1s ease-out;
  animation: fade-in 0.5s ease-in;
}

/* 字体加载完成后显示 */
.fonts-loaded .nezha-saying {
  visibility: visible;
  opacity: 1;
}

/* 添加淡入动画 */
@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* 添加只有淡出部分的动画 */
@keyframes fade-out {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

/* 移动设备适配 */
@media screen and (max-width: 768px) {
  .game-container .doge-says p {
    font-size: 36px !important;
    max-width: 90%;
  }

  /* 确保nezha-saying类在移动设备上也有正确的字体大小 */
  .nezha-saying {
    font-size: 36px !important;
  }
}

/* 添加语言切换按钮样式 */
.language-switch {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 5px 10px;
  background-color: #8f7a66;
  color: white;
  border-radius: 3px;
  text-decoration: none;
  font-size: 14px;
  z-index: 10;
}

.language-switch:hover {
  background-color: #9f8b77;
}

