@import "fonts/clear-sans.css";
html, body {
  margin: 0;
  padding: 0;
  background: #0A1F0F;
  color: #DCEEE2;
  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;
  color: #00C853;
  letter-spacing: -1px;
}

@-webkit-keyframes $animation-name {
  0% {
    top: 25px;
    opacity: 1;
  }
  100% {
    top: -50px;
    opacity: 0;
  }
}
@-moz-keyframes $animation-name {
  0% {
    top: 25px;
    opacity: 1;
  }
  100% {
    top: -50px;
    opacity: 0;
  }
}
@keyframes $animation-name {
  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: #123524;
  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: #E3EDE6;
}
.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(27, 67, 50, 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: #00C853;
  font-weight: bold;
  text-decoration: underline;
  cursor: pointer;
}

strong.important {
  text-transform: uppercase;
}

hr {
  border: none;
  border-bottom: 1px solid rgba(0, 200, 83, 0.2);
  margin-top: 20px;
  margin-bottom: 30px;
}

.container {
  width: 500px;
  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: 40px;
  position: relative;
  padding: 15px;
  cursor: default;
  -webkit-touch-callout: none;
  -ms-touch-callout: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  -ms-touch-action: none;
  touch-action: none;
  background: #123524;
  border-radius: 6px;
  width: 500px;
  height: 500px;
  -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(227, 237, 230, 0.5);
  z-index: 100;
  text-align: center;
  color: #1B4332;
}
.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: #00C853;
  border-radius: 6px;
  padding: 0 20px;
  text-decoration: none;
  color: #05130A;
  font-weight: bold;
  height: 40px;
  line-height: 42px;
  transition: background 100ms ease, transform 100ms ease;
}
.game-container .game-message a:hover {
  background: rgb(0, 138.8, 57.602);
}
.game-container .game-message a {
  margin-left: 9px;
}
.game-container .game-message a.keep-playing-button {
  display: none;
}
.game-container .game-message {
  -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.game-won {
  background: rgba(0, 200, 83, 0.5);
  color: #F5FFF8;
}
.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(227, 237, 230, 0.35);
}
.grid-cell:last-child {
  margin-right: 0;
}

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

.tile, .tile .tile-inner {
  width: 107px;
  height: 107px;
  line-height: 107px;
}
.tile.tile-position-1-1 {
  -webkit-transform: translate(0px, 0px);
  -moz-transform: translate(0px, 0px);
  -ms-transform: translate(0px, 0px);
  transform: translate(0px, 0px);
}
.tile.tile-position-1-2 {
  -webkit-transform: translate(0px, 121px);
  -moz-transform: translate(0px, 121px);
  -ms-transform: translate(0px, 121px);
  transform: translate(0px, 121px);
}
.tile.tile-position-1-3 {
  -webkit-transform: translate(0px, 242px);
  -moz-transform: translate(0px, 242px);
  -ms-transform: translate(0px, 242px);
  transform: translate(0px, 242px);
}
.tile.tile-position-1-4 {
  -webkit-transform: translate(0px, 363px);
  -moz-transform: translate(0px, 363px);
  -ms-transform: translate(0px, 363px);
  transform: translate(0px, 363px);
}
.tile.tile-position-2-1 {
  -webkit-transform: translate(121px, 0px);
  -moz-transform: translate(121px, 0px);
  -ms-transform: translate(121px, 0px);
  transform: translate(121px, 0px);
}
.tile.tile-position-2-2 {
  -webkit-transform: translate(121px, 121px);
  -moz-transform: translate(121px, 121px);
  -ms-transform: translate(121px, 121px);
  transform: translate(121px, 121px);
}
.tile.tile-position-2-3 {
  -webkit-transform: translate(121px, 242px);
  -moz-transform: translate(121px, 242px);
  -ms-transform: translate(121px, 242px);
  transform: translate(121px, 242px);
}
.tile.tile-position-2-4 {
  -webkit-transform: translate(121px, 363px);
  -moz-transform: translate(121px, 363px);
  -ms-transform: translate(121px, 363px);
  transform: translate(121px, 363px);
}
.tile.tile-position-3-1 {
  -webkit-transform: translate(242px, 0px);
  -moz-transform: translate(242px, 0px);
  -ms-transform: translate(242px, 0px);
  transform: translate(242px, 0px);
}
.tile.tile-position-3-2 {
  -webkit-transform: translate(242px, 121px);
  -moz-transform: translate(242px, 121px);
  -ms-transform: translate(242px, 121px);
  transform: translate(242px, 121px);
}
.tile.tile-position-3-3 {
  -webkit-transform: translate(242px, 242px);
  -moz-transform: translate(242px, 242px);
  -ms-transform: translate(242px, 242px);
  transform: translate(242px, 242px);
}
.tile.tile-position-3-4 {
  -webkit-transform: translate(242px, 363px);
  -moz-transform: translate(242px, 363px);
  -ms-transform: translate(242px, 363px);
  transform: translate(242px, 363px);
}
.tile.tile-position-4-1 {
  -webkit-transform: translate(363px, 0px);
  -moz-transform: translate(363px, 0px);
  -ms-transform: translate(363px, 0px);
  transform: translate(363px, 0px);
}
.tile.tile-position-4-2 {
  -webkit-transform: translate(363px, 121px);
  -moz-transform: translate(363px, 121px);
  -ms-transform: translate(363px, 121px);
  transform: translate(363px, 121px);
}
.tile.tile-position-4-3 {
  -webkit-transform: translate(363px, 242px);
  -moz-transform: translate(363px, 242px);
  -ms-transform: translate(363px, 242px);
  transform: translate(363px, 242px);
}
.tile.tile-position-4-4 {
  -webkit-transform: translate(363px, 363px);
  -moz-transform: translate(363px, 363px);
  -ms-transform: translate(363px, 363px);
  transform: translate(363px, 363px);
}

.tile {
  position: absolute;
}
.tile .tile-inner {
  border-radius: 3px;
  background: #E3EDE6;
  color: #1B4332;
  text-align: center;
  font-weight: bold;
  z-index: 10;
  font-size: 55px;
}
.tile {
  -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-2 .tile-inner {
  background: #e3ede6;
  box-shadow: 0 0 30px 10px rgba(21.5, 255, 118.4025, 0), inset 0 0 0 1px rgba(255, 255, 255, 0);
}
.tile.tile-4 .tile-inner {
  background: rgb(204.3, 233.3, 215.3);
  box-shadow: 0 0 30px 10px rgba(21.5, 255, 118.4025, 0), inset 0 0 0 1px rgba(255, 255, 255, 0);
}
.tile.tile-8 .tile-inner {
  color: #F5FFF8;
  background: rgb(217.57, 181.42, 129.87);
}
.tile.tile-16 .tile-inner {
  color: #F5FFF8;
  background: rgb(210.105, 153.355, 108.955);
}
.tile.tile-32 .tile-inner {
  color: #F5FFF8;
  background: rgb(201.54, 128.04, 105.09);
}
.tile.tile-64 .tile-inner {
  color: #F5FFF8;
  background: rgb(191.325, 98.325, 70.425);
}
.tile.tile-128 .tile-inner {
  color: #F5FFF8;
  background: rgb(90.8, 214.8, 141.8);
  box-shadow: 0 0 30px 10px rgba(21.5, 255, 118.4025, 0.2380952381), inset 0 0 0 1px rgba(255, 255, 255, 0.1428571429);
  font-size: 45px;
}
@media screen and (max-width: 520px) {
  .tile.tile-128 .tile-inner {
    font-size: 25px;
  }
}
.tile.tile-256 .tile-inner {
  color: #F5FFF8;
  background: rgb(68.1, 211.1, 127.1);
  box-shadow: 0 0 30px 10px rgba(21.5, 255, 118.4025, 0.3174603175), inset 0 0 0 1px rgba(255, 255, 255, 0.1904761905);
  font-size: 45px;
}
@media screen and (max-width: 520px) {
  .tile.tile-256 .tile-inner {
    font-size: 25px;
  }
}
.tile.tile-512 .tile-inner {
  color: #F5FFF8;
  background: rgb(45.4, 207.4, 112.4);
  box-shadow: 0 0 30px 10px rgba(21.5, 255, 118.4025, 0.3968253968), inset 0 0 0 1px rgba(255, 255, 255, 0.2380952381);
  font-size: 45px;
}
@media screen and (max-width: 520px) {
  .tile.tile-512 .tile-inner {
    font-size: 25px;
  }
}
.tile.tile-1024 .tile-inner {
  color: #F5FFF8;
  background: rgb(22.7, 203.7, 97.7);
  box-shadow: 0 0 30px 10px rgba(21.5, 255, 118.4025, 0.4761904762), inset 0 0 0 1px rgba(255, 255, 255, 0.2857142857);
  font-size: 35px;
}
@media screen and (max-width: 520px) {
  .tile.tile-1024 .tile-inner {
    font-size: 15px;
  }
}
.tile.tile-2048 .tile-inner {
  color: #F5FFF8;
  background: #00c853;
  box-shadow: 0 0 30px 10px rgba(21.5, 255, 118.4025, 0.5555555556), inset 0 0 0 1px rgba(255, 255, 255, 0.3333333333);
  font-size: 35px;
}
@media screen and (max-width: 520px) {
  .tile.tile-2048 .tile-inner {
    font-size: 15px;
  }
}
.tile.tile-super .tile-inner {
  color: #F5FFF8;
  background: rgb(48.45, 58.45, 52.6);
  font-size: 30px;
}
@media screen and (max-width: 520px) {
  .tile.tile-super .tile-inner {
    font-size: 10px;
  }
}

@-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:after {
  content: "";
  display: block;
  clear: both;
}

.game-intro {
  float: left;
  line-height: 42px;
  margin-bottom: 0;
}

.restart-button {
  display: inline-block;
  background: #00C853;
  border-radius: 6px;
  padding: 0 20px;
  text-decoration: none;
  color: #05130A;
  font-weight: bold;
  height: 40px;
  line-height: 42px;
  transition: background 100ms ease, transform 100ms ease;
}
.restart-button:hover {
  background: rgb(0, 138.8, 57.602);
}
.restart-button {
  display: block;
  text-align: center;
  float: right;
}

.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-intro {
    width: 55%;
    display: block;
    box-sizing: border-box;
    line-height: 1.65;
  }
  .restart-button {
    width: 42%;
    padding: 0;
    display: block;
    box-sizing: border-box;
    margin-top: 2px;
  }
  .game-container {
    margin-top: 40px;
    position: relative;
    padding: 15px;
    cursor: default;
    -webkit-touch-callout: none;
    -ms-touch-callout: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    -ms-touch-action: none;
    touch-action: none;
    background: #123524;
    border-radius: 6px;
    width: 500px;
    height: 500px;
    -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(227, 237, 230, 0.5);
    z-index: 100;
    text-align: center;
    color: #1B4332;
  }
  .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: #00C853;
    border-radius: 6px;
    padding: 0 20px;
    text-decoration: none;
    color: #05130A;
    font-weight: bold;
    height: 40px;
    line-height: 42px;
    transition: background 100ms ease, transform 100ms ease;
  }
  .game-container .game-message a:hover {
    background: rgb(0, 138.8, 57.602);
  }
  .game-container .game-message a {
    margin-left: 9px;
  }
  .game-container .game-message a.keep-playing-button {
    display: none;
  }
  .game-container .game-message {
    -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.game-won {
    background: rgba(0, 200, 83, 0.5);
    color: #F5FFF8;
  }
  .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(227, 237, 230, 0.35);
  }
  .grid-cell:last-child {
    margin-right: 0;
  }
  .tile-container {
    position: absolute;
    z-index: 2;
  }
  .tile, .tile .tile-inner {
    width: 107px;
    height: 107px;
    line-height: 107px;
  }
  .tile.tile-position-1-1 {
    -webkit-transform: translate(0px, 0px);
    -moz-transform: translate(0px, 0px);
    -ms-transform: translate(0px, 0px);
    transform: translate(0px, 0px);
  }
  .tile.tile-position-1-2 {
    -webkit-transform: translate(0px, 121px);
    -moz-transform: translate(0px, 121px);
    -ms-transform: translate(0px, 121px);
    transform: translate(0px, 121px);
  }
  .tile.tile-position-1-3 {
    -webkit-transform: translate(0px, 242px);
    -moz-transform: translate(0px, 242px);
    -ms-transform: translate(0px, 242px);
    transform: translate(0px, 242px);
  }
  .tile.tile-position-1-4 {
    -webkit-transform: translate(0px, 363px);
    -moz-transform: translate(0px, 363px);
    -ms-transform: translate(0px, 363px);
    transform: translate(0px, 363px);
  }
  .tile.tile-position-2-1 {
    -webkit-transform: translate(121px, 0px);
    -moz-transform: translate(121px, 0px);
    -ms-transform: translate(121px, 0px);
    transform: translate(121px, 0px);
  }
  .tile.tile-position-2-2 {
    -webkit-transform: translate(121px, 121px);
    -moz-transform: translate(121px, 121px);
    -ms-transform: translate(121px, 121px);
    transform: translate(121px, 121px);
  }
  .tile.tile-position-2-3 {
    -webkit-transform: translate(121px, 242px);
    -moz-transform: translate(121px, 242px);
    -ms-transform: translate(121px, 242px);
    transform: translate(121px, 242px);
  }
  .tile.tile-position-2-4 {
    -webkit-transform: translate(121px, 363px);
    -moz-transform: translate(121px, 363px);
    -ms-transform: translate(121px, 363px);
    transform: translate(121px, 363px);
  }
  .tile.tile-position-3-1 {
    -webkit-transform: translate(242px, 0px);
    -moz-transform: translate(242px, 0px);
    -ms-transform: translate(242px, 0px);
    transform: translate(242px, 0px);
  }
  .tile.tile-position-3-2 {
    -webkit-transform: translate(242px, 121px);
    -moz-transform: translate(242px, 121px);
    -ms-transform: translate(242px, 121px);
    transform: translate(242px, 121px);
  }
  .tile.tile-position-3-3 {
    -webkit-transform: translate(242px, 242px);
    -moz-transform: translate(242px, 242px);
    -ms-transform: translate(242px, 242px);
    transform: translate(242px, 242px);
  }
  .tile.tile-position-3-4 {
    -webkit-transform: translate(242px, 363px);
    -moz-transform: translate(242px, 363px);
    -ms-transform: translate(242px, 363px);
    transform: translate(242px, 363px);
  }
  .tile.tile-position-4-1 {
    -webkit-transform: translate(363px, 0px);
    -moz-transform: translate(363px, 0px);
    -ms-transform: translate(363px, 0px);
    transform: translate(363px, 0px);
  }
  .tile.tile-position-4-2 {
    -webkit-transform: translate(363px, 121px);
    -moz-transform: translate(363px, 121px);
    -ms-transform: translate(363px, 121px);
    transform: translate(363px, 121px);
  }
  .tile.tile-position-4-3 {
    -webkit-transform: translate(363px, 242px);
    -moz-transform: translate(363px, 242px);
    -ms-transform: translate(363px, 242px);
    transform: translate(363px, 242px);
  }
  .tile.tile-position-4-4 {
    -webkit-transform: translate(363px, 363px);
    -moz-transform: translate(363px, 363px);
    -ms-transform: translate(363px, 363px);
    transform: translate(363px, 363px);
  }
  .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;
  }
}
#wallet-box {
  position: fixed;
  top: 15px;
  right: 15px;
  z-index: 9999;
  text-align: right;
}

#connect-btn {
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: bold;
  border: none;
  cursor: pointer;
  background: #00C853;
  color: #05130A;
  transition: background 100ms ease;
}
#connect-btn:hover {
  background: rgb(0, 138.8, 57.602);
}
#connect-btn.connected {
  background: transparent;
  border: 1px solid #00C853;
  color: #00C853;
}

#wallet-status {
  margin-top: 6px;
  color: rgba(220, 238, 226, 0.6);
  font-size: 13px;
}

.welcome-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 10, 7, 0.82);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms ease;
}
.welcome-overlay.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.welcome-modal {
  background: #123524;
  border: 1px solid rgba(0, 200, 83, 0.35);
  border-radius: 14px;
  max-width: 420px;
  width: 100%;
  padding: 28px 26px 24px;
  box-sizing: border-box;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  transform: translateY(10px);
  transition: transform 200ms ease;
}
.welcome-overlay.is-visible .welcome-modal {
  transform: translateY(0);
}
.welcome-modal .welcome-badge {
  display: inline-block;
  background: rgba(0, 200, 83, 0.15);
  color: #00C853;
  font-size: 12px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 10px;
  border-radius: 20px;
  margin-bottom: 14px;
}
.welcome-modal h2 {
  margin: 0 0 10px;
  font-size: 24px;
  color: #F5FFF8;
}
.welcome-modal p {
  color: rgba(220, 238, 226, 0.85);
  font-size: 15px;
  line-height: 1.55;
}
.welcome-modal .welcome-disclaimer {
  font-size: 12px;
  color: rgba(220, 238, 226, 0.5);
  line-height: 1.5;
  margin-top: 14px;
  margin-bottom: 20px;
}
.welcome-modal .welcome-actions {
  display: flex;
  gap: 10px;
}
.welcome-modal .welcome-close {
  display: inline-block;
  background: #00C853;
  border-radius: 6px;
  padding: 0 20px;
  text-decoration: none;
  color: #05130A;
  font-weight: bold;
  height: 40px;
  line-height: 42px;
  transition: background 100ms ease, transform 100ms ease;
}
.welcome-modal .welcome-close:hover {
  background: rgb(0, 138.8, 57.602);
}
.welcome-modal .welcome-close {
  flex: 1;
  text-align: center;
  border: none;
  font-size: 15px;
}

.leaderboard {
  margin-top: 30px;
  background: #123524;
  border-radius: 10px;
  padding: 20px 24px;
  box-sizing: border-box;
}

.leaderboard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.leaderboard-header h2 {
  margin: 0;
  font-size: 20px;
  color: #F5FFF8;
}

.leaderboard-refresh-btn {
  background: transparent;
  border: 1px solid rgba(0, 200, 83, 0.4);
  color: #00C853;
  border-radius: 6px;
  padding: 5px 12px;
  font-size: 13px;
  font-weight: bold;
  cursor: pointer;
}
.leaderboard-refresh-btn:hover {
  background: rgba(0, 200, 83, 0.1);
}

.leaderboard-hint {
  font-size: 13px;
  color: rgba(220, 238, 226, 0.55);
  margin: 8px 0 16px;
}

.leaderboard-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.leaderboard-row {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  align-items: center;
  padding: 10px 8px;
  border-bottom: 1px solid rgba(0, 200, 83, 0.12);
  font-size: 14px;
  color: #DCEEE2;
}
.leaderboard-row:last-child {
  border-bottom: none;
}
.leaderboard-row.is-me {
  background: rgba(0, 200, 83, 0.08);
  border-radius: 6px;
}

.leaderboard-rank {
  color: rgba(220, 238, 226, 0.5);
  font-weight: bold;
}

.leaderboard-wallet {
  font-family: monospace;
}

.leaderboard-score {
  font-weight: bold;
  color: #00C853;
  text-align: right;
}

.leaderboard-empty {
  padding: 14px 8px;
  color: rgba(220, 238, 226, 0.5);
  font-size: 14px;
  text-align: center;
}

.token-stats {
  margin-top: 20px;
  background: #123524;
  border-radius: 10px;
  padding: 20px 24px;
  box-sizing: border-box;
}
.token-stats h2 {
  margin: 0;
  font-size: 20px;
  color: #F5FFF8;
}

.token-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 14px;
}
@media (max-width: 480px) {
  .token-stats-grid {
    grid-template-columns: 1fr;
  }
}

.token-stat-card {
  background: rgba(0, 200, 83, 0.06);
  border: 1px solid rgba(0, 200, 83, 0.18);
  border-radius: 8px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.token-stat-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: rgba(220, 238, 226, 0.55);
}

.token-stat-value {
  font-size: 22px;
  font-weight: bold;
  color: #00C853;
}

.token-stat-sub {
  font-size: 12px;
  color: rgba(220, 238, 226, 0.5);
}

.token-stat-link {
  margin-top: 6px;
  font-size: 12px;
  color: rgba(0, 200, 83, 0.85);
}

#price-ticker {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(18, 53, 36, 0.95);
  border-bottom: 1px solid rgba(0, 200, 83, 0.2);
  padding: 6px 16px;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 9998;
  backdrop-filter: blur(6px);
}
#price-ticker .ticker-label {
  color: rgba(220, 238, 226, 0.5);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
#price-ticker .ticker-sep {
  color: rgba(220, 238, 226, 0.2);
}
#price-ticker #ticker-price {
  color: #F5FFF8;
  font-weight: bold;
}
#price-ticker #ticker-mcap {
  color: #F5FFF8;
  font-weight: bold;
}
#price-ticker .ticker-change {
  font-weight: bold;
}
#price-ticker .ticker-up {
  color: #00C853;
}
#price-ticker .ticker-down {
  color: #ff5252;
}

body {
  padding-top: 34px;
}

.milestone-section {
  margin-top: 20px;
  background: #123524;
  border-radius: 10px;
  padding: 18px 20px;
}

.milestone-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.milestone-header h2 {
  margin: 0;
  font-size: 18px;
  color: #F5FFF8;
}

.milestone-target {
  font-size: 13px;
  color: #00C853;
  font-weight: bold;
}

.milestone-bar-track {
  background: rgba(0, 200, 83, 0.12);
  border-radius: 100px;
  height: 10px;
  overflow: hidden;
}

.milestone-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, rgb(0, 149, 61.835), #00C853);
  border-radius: 100px;
  transition: width 1s ease;
}

.milestone-desc {
  margin: 8px 0 0;
  font-size: 13px;
  color: rgba(220, 238, 226, 0.55);
}

.how-to-buy {
  margin-top: 20px;
  background: #123524;
  border-radius: 10px;
  padding: 20px 24px;
}
.how-to-buy h2 {
  margin: 0 0 16px;
  font-size: 20px;
  color: #F5FFF8;
}

.htb-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.htb-steps li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 14px;
  color: #DCEEE2;
  line-height: 1.5;
}
.htb-steps li code {
  font-size: 11px;
  background: rgba(0, 200, 83, 0.1);
  color: #00C853;
  padding: 2px 6px;
  border-radius: 4px;
  word-break: break-all;
}

.htb-num {
  width: 28px;
  height: 28px;
  min-width: 28px;
  background: #00C853;
  color: #05130A;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 13px;
}

.lore-section {
  margin-top: 20px;
  background: #123524;
  border-radius: 10px;
  padding: 20px 24px;
}
.lore-section h2 {
  margin: 0 0 12px;
  font-size: 20px;
  color: #F5FFF8;
}
.lore-section p {
  color: rgba(220, 238, 226, 0.85);
  font-size: 15px;
  line-height: 1.6;
  margin: 0 0 10px;
}

.social-section {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-bottom: 40px;
}

.social-btn {
  display: inline-block;
  background: #00C853;
  border-radius: 6px;
  padding: 0 20px;
  text-decoration: none;
  color: #05130A;
  font-weight: bold;
  height: 40px;
  line-height: 42px;
  transition: background 100ms ease, transform 100ms ease;
}
.social-btn:hover {
  background: rgb(0, 138.8, 57.602);
}
.social-btn {
  font-size: 14px;
  padding: 0 18px;
  text-decoration: none;
}
.social-btn--outline {
  background: transparent;
  border: 1px solid rgba(0, 200, 83, 0.5);
  color: #00C853;
}
.social-btn--outline:hover {
  background: rgba(0, 200, 83, 0.1);
}

.jackpot-section {
  margin-top: 20px;
  border-radius: 12px;
  position: relative;
  overflow: hidden;
  background: #123524;
  border: 1px solid rgba(0, 200, 83, 0.4);
  text-align: center;
  padding: 28px 20px 24px;
}

.jackpot-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(0, 200, 83, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.jackpot-inner {
  position: relative;
  z-index: 1;
}

.jackpot-badge {
  display: inline-block;
  background: rgba(0, 200, 83, 0.15);
  color: #00C853;
  font-size: 12px;
  font-weight: bold;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 12px;
}

.jackpot-amount {
  font-size: 42px;
  font-weight: bold;
  color: #00C853;
  line-height: 1.1;
  text-shadow: 0 0 20px rgba(0, 200, 83, 0.4);
}

.jackpot-sub {
  margin-top: 8px;
  font-size: 15px;
  color: rgba(220, 238, 226, 0.7);
}

.jackpot-verify {
  display: inline-block;
  margin-top: 10px;
  font-size: 12px;
  color: rgba(0, 200, 83, 0.7);
  text-decoration: none;
}
.jackpot-verify:hover {
  color: #00C853;
}

.jackpot-claim-section {
  margin-top: 16px;
  background: #123524;
  border: 1px solid #00C853;
  border-radius: 12px;
  padding: 24px 20px;
  text-align: center;
}
.jackpot-claim-section h2 {
  margin: 0 0 10px;
  color: #00C853;
  font-size: 24px;
}
.jackpot-claim-section p {
  color: rgba(220, 238, 226, 0.8);
  font-size: 15px;
  margin: 0 0 16px;
}

.jackpot-claim-btn {
  display: inline-block;
  background: #00C853;
  border-radius: 6px;
  padding: 0 20px;
  text-decoration: none;
  color: #05130A;
  font-weight: bold;
  height: 40px;
  line-height: 42px;
  transition: background 100ms ease, transform 100ms ease;
}
.jackpot-claim-btn:hover {
  background: rgb(0, 138.8, 57.602);
}
.jackpot-claim-btn {
  font-size: 18px;
  padding: 0 28px;
  height: 50px;
  line-height: 52px;
  border: none;
  cursor: pointer;
  animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(0, 200, 83, 0.5);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(0, 200, 83, 0);
  }
}
.jackpot-claim-note {
  margin-top: 10px !important;
  font-size: 12px !important;
  color: rgba(220, 238, 226, 0.4) !important;
}
