/* Presentation layer for the bundled open-source engines. Original source stays in /games/. */
html,
body {
  margin: 0 !important;
  min-height: 100%;
  height: 100%;
  background: #fff1cb !important;
  color: #332f27 !important;
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
}
body {
  overflow: hidden;
}
* {
  box-sizing: border-box;
}
a,
button {
  touch-action: manipulation;
}
:focus-visible {
  outline: 2px solid #648aca;
  outline-offset: 3px;
}
.ad-banner-zone,
[data-adsterra-smartlink],
.cookie-notice,
.app-notice,
.mailing-list,
.score-sharing {
  display: none !important;
}
body[data-classic="2048"] {
  background: radial-gradient(
    ellipse at 50% 15%,
    #fff1cb,
    #fff1cb 85%
  ) !important;
}
.container {
  width: 500px !important;
  margin: 0 !important;
  position: absolute;
  left: 50%;
  top: 25px;
  transform: translateX(-50%) scale(0.83);
  transform-origin: top center;
}
.heading {
  height: 65px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.heading .title {
  font-size: 37px;
  letter-spacing: -1px;
  color: #f2a439 !important;
  font-weight: 600;
  margin: 0 !important;
}
.scores-container {
  display: flex;
  gap: 8px;
}
.score-container,
.best-container {
  background: #fffdf4 !important;
  border: 1px solid #8c734e !important;
  border-radius: 7px !important;
  color: #342e25 !important;
  font-size: 22px !important;
  min-width: 85px;
  padding: 13px 17px !important;
  height: 54px !important;
  line-height: 35px !important;
  margin: 0 !important;
}
.score-container:after,
.best-container:after {
  color: #7c6b50 !important;
  font-size: 10px !important;
  top: 6px !important;
  letter-spacing: 1px;
}
.above-game {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 5px;
}
.game-intro {
  font-size: 13px !important;
  color: #81705a;
  line-height: 1.6 !important;
  margin: 0 !important;
}
.restart-button,
.game-message a {
  background: #f2a439 !important;
  color: #332b20 !important;
  border-radius: 7px !important;
  font-size: 12px !important;
  font-weight: 600 !important;
}
.restart-button {
  height: 34px !important;
  line-height: 34px !important;
  padding: 0 15px !important;
}
.game-container {
  margin-top: 19px !important;
  background: #d7b77c !important;
  border: 1px solid #645239 !important;
  border-radius: 12px !important;
  touch-action: none;
}
.grid-cell {
  background: #ead2a5 !important;
  border-radius: 6px !important;
}
.tile .tile-inner {
  border-radius: 6px !important;
  box-shadow: inset 0 2px 0 #ffffff17 !important;
  font-family: inherit !important;
}
.tile.tile-2 .tile-inner {
  background: #fff3ce !important;
  color: #53412a !important;
}
.tile.tile-4 .tile-inner {
  background: #ffda7b !important;
  color: #53412a !important;
}
.tile.tile-8 .tile-inner {
  background: #ffb37c !important;
  color: #fff2d9 !important;
}
.tile.tile-16 .tile-inner {
  background: #ef8b70 !important;
  color: #fff2d9 !important;
}
.tile.tile-32 .tile-inner {
  background: #e66d66 !important;
}
.tile.tile-64 .tile-inner {
  background: #d66685 !important;
}
.tile.tile-128 .tile-inner,
.tile.tile-256 .tile-inner {
  background: #af94d2 !important;
}
.tile.tile-512 .tile-inner,
.tile.tile-1024 .tile-inner,
.tile.tile-2048 .tile-inner {
  background: #a8cd75 !important;
  color: #38452c !important;
}
.game-message {
  background: #ffefc5f5 !important;
  border-radius: 10px !important;
  color: #423021 !important;
}
.game-message p {
  font-size: 49px !important;
}
.game-explanation,
hr,
.container > p:not(.game-intro),
footer {
  display: none !important;
}
.score-addition {
  color: #f2a439 !important;
}
body[data-classic="hextris"] {
  background: #eee5fa !important;
}
body[data-classic="hextris"] #canvas {
  background: #eee5fa !important;
}
body[data-classic="hextris"] #socialShare,
body[data-classic="hextris"] #buttonCont,
body[data-classic="hextris"] #badges {
  display: none !important;
}
body[data-classic="hextris"] #HIGHSCORE,
body[data-classic="hextris"] #highScoreInGameText,
body[data-classic="hextris"] #gameoverscreen {
  color: #47345e !important;
}
body[data-classic="hextris"] #gameoverscreen {
  background: #eee5faeb !important;
}
body[data-classic="hextris"] #openSideBar {
  opacity: 0.5;
}
body[data-classic="hextris"] #helpScreen {
  background: #eee5fa !important;
  color: #47345e !important;
}
body[data-classic="hextris"] #helpScreen * {
  color: inherit !important;
}
body[data-classic="clumsy-bird"] {
  background: #c8e6e4 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
}
body[data-classic="clumsy-bird"] #screen {
  width: 100%;
  height: 100%;
  overflow: hidden;
  display: grid;
  place-items: center;
}
body[data-classic="clumsy-bird"] canvas {
  filter: saturate(1.05);
  object-fit: contain;
  max-height: none;
  max-width: none;
  image-rendering: pixelated;
}
@media (max-width: 520px) {
  .container {
    width: 280px !important;
    top: 23px;
    transform: translateX(-50%);
  }
  .heading {
    height: 52px;
  }
  .heading .title {
    font-size: 27px;
  }
  .scores-container {
    gap: 6px;
  }
  .score-container,
  .best-container {
    font-size: 17px !important;
    min-width: 65px;
    height: 45px !important;
    line-height: 28px !important;
    padding: 10px !important;
  }
  .score-container:after,
  .best-container:after {
    font-size: 8px !important;
    top: 4px !important;
  }
  .above-game {
    margin-top: 12px;
    gap: 10px;
  }
  .game-intro {
    font-size: 10px !important;
    max-width: 145px;
  }
  .restart-button {
    font-size: 10px !important;
    padding: 0 11px !important;
    height: 32px !important;
    line-height: 32px !important;
  }
  .game-container {
    margin-top: 16px !important;
  }
  .game-message p {
    font-size: 34px !important;
  }
}
@media (prefers-reduced-motion: reduce) {
  .tile,
  .tile-inner {
    animation: none !important;
    transition: none !important;
  }
}

body[data-classic="hextris"] #HIGHSCORE {
  display: none !important;
}
body[data-classic="hextris"] #currentHighScore {
  color: #684b92 !important;
}
body[data-classic="hextris"] #highScoreInGameTextHeader {
  color: #7d6699 !important;
}

.game-container {
  border: 2px solid #4b4030 !important;
  box-shadow: 0 5px 0 #987847 !important;
}
.tile .tile-inner {
  border: 1px solid #69563788 !important;
  box-shadow: 0 3px 0 #69563760 !important;
}
.grid-cell {
  box-shadow: inset 0 2px 0 #b6956340;
}
.restart-button {
  border: 1px solid #4b4030 !important;
  box-shadow: 0 3px 0 #806333;
}
.container {
  top: 18px !important;
  transform: translateX(-50%) scale(0.78);
}
@media (max-width: 520px) {
  .container {
    transform: translateX(-50%);
    top: 20px !important;
  }
}
