@font-face {
  font-family: "Open-sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src:
    url("../fonts/hertical_sans_smooth.woff") format("woff"),
    url("../fonts/hertical_sans_smooth.woff2") format("woff2");
}

:root {
  --bcg-body: #cccccc;
  --title-color: #db0402;
  --main-text-color: #000;
  --secondary-text-color: #272626;
  --additional-text-color: #fff;
  --hover-link-color: #2f5aae;
  --hover-button-text-color: #fff;
  --hover-button-bcg-color: #4f4f4f;
  --hover-button-border-color: #4f4f4f6b;
  --bgc-header: #f4f5f7;
  --item-bgc: #f7f7f7;
  --margin-bottom: 30px;
  --transition: 300ms;
  --bgc-header-menu: #3a6fc9;
  --red: #e60000;
  --bcg-category: #efededfa;
}

*,
*::after,
*::before {
  -webkit-box-sizing: inherit;
  box-sizing: inherit;
}

html,
body {
  height: 100%;
  font-family: "Open-sans", sans-serif;
  font-size: 16px;
  line-height: 1.12;
  color: var(--main-text-color);
  background-color: var(--bcg-body);
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  -ms-scroll-chaining: none;
  overscroll-behavior: none;
  scroll-behavior: smooth;
  margin: 0;
  overflow: hidden;
}

.wrapper {
  min-height: 100%;
  padding: 0 20px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
}

.main {
  -webkit-box-flex: 1;
  -ms-flex: 1 1 auto;
  flex: 1 1 auto;
}

h1,
h2,
h3,
h4,
h5,
h6,
p {
  margin-top: 0;
  margin-bottom: 0;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

.link {
  text-decoration: none;
  color: inherit;
}

.link:hover,
.link:focus {
  cursor: pointer;
}

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

.container {
  width: 100%;
  max-width: 1400px;
  padding: 0;
  margin: 0 auto;
}

.header {
  padding: 0.2rem 0;
}

@media (min-width: 768px) {
  .header {
    padding: 0.4rem 0;
  }
}

@media (min-width: 1024px) {
  .header {
    padding: 0.6rem 0;
  }
}

@media (min-width: 1200px) {
  .header {
    padding: 1rem 0;
  }
}

.tm {
  font-size: 12px;
  font-weight: 600;
}

.title {
  font-size: clamp(1.2rem, 2.1vw, 2.3rem);
  font-weight: 700;
  color: var(--title-color);
  text-transform: uppercase;
  width: 100%;
  text-align: center;
  user-select: none;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.title span {
  text-transform: capitalize;
}

.footer {
  margin-bottom: 0.5rem;
  height: 75px;
  display: flex;
  align-items: flex-end;
}

@media (min-width: 1024px) {
  .footer {
    margin-bottom: 0.4rem;
    height: 85px;
  }
}

.footer-inner {
  width: 20%;
  display: flex;
  flex-wrap: wrap;
}

.footer-logo-link {
  display: inline-block;
}

.footer-logo {
  display: block;
  max-width: 17rem;
  height: auto;
  width: 100%;
  user-select: none;
}

.footer-copy {
  font-size: 0.975rem;
  font-family: sans-serif;
  font-weight: 700;
  user-select: none;
  white-space: nowrap;
}

/* ==================== */
.you-win {
  font-size: 16px;
  font-weight: bold;
  color: white;
  position: absolute;
  top: 67px;
  left: 50%;
  transform: translate(-50%, 0);
  display: flex;
  align-items: center;
  justify-content: center;
  /* padding-bottom: 1px; */
  border: none;
  border-radius: 7px;
  background-color: var(--title-color);
  z-index: 11;
  pointer-events: none;

  /* Initial state (hidden) */
  width: 0;
  height: 0;
  opacity: 0;
  padding: 0;
  visibility: hidden;
  overflow: hidden;
  /* so that the text does not come out during the animation */
  transition:
    width 450ms ease-out,
    height 450ms ease-out,
    border-radius 450ms ease-out,
    opacity 450ms ease-out;
}

/* State with class .show -start animation of the form */
.you-win.show {
  /* width: 150px; */
  width: max-content;
  padding: 0 15px;
  height: 41px;
  border-radius: 7px;
  opacity: 1;
  visibility: visible;
}

.wrapper .header .you-win {
  top: 27px;
}

@media (min-width: 768px) {
  .you-win {
    font-size: 18px;
  }

  .you-win.show {
    height: 35px;
  }

  .wrapper .header .you-win {
    top: 30px;
  }
}

@media (min-width: 1024px) {
  .you-win {
    font-size: 20px;
  }

  .you-win.show {
    height: 37px;
  }

  .wrapper .header .you-win {
    top: 37px;
  }
}

@media (min-width: 1200px) {
  .you-win {
    font-size: 23px;
  }

  .you-win.show {
    height: 50px;
  }

  .wrapper .header .you-win {
    top: 54px;
  }
}

/* The text inside is initially completely transparent */
.you-win .text {
  opacity: 0;
  transition: opacity 50ms ease;
}

/* As soon as the element has reached its final form, display the text */
.you-win.show.has-text .text {
  opacity: 1;
}

/* ========= pagination ========= */
.pagination {
  position: absolute;
  display: flex;
  gap: 15px;
  align-items: center;
  bottom: 0;
  left: 0;
  transform: translate(-130%, 120%);
}

@media (min-width: 1024px) {
  .pagination {
    /*transform: translate(-145%, 120%);*/
    transform: translate(-120%, 87%);
  }
}

@media (min-width: 1140px) {
  .pagination {
    transform: translate(-145%, 87%);
  }
}

@media (min-width: 1100px) {
  .pagination {
    transform: translate(-145%, 68%);
  }
}

.pagination-btn {
  width: clamp(1.2rem, 3vw, 2rem);
  height: clamp(1.2rem, 3vw, 2rem);
  font-size: clamp(0.8rem, 1.5vw, 1.1rem);
  padding-top: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50px;
  background: #ffffff;
  color: black;
  border: none;
  cursor: pointer;
  box-shadow: 0 0 0 4px #a9a9a9;
  transition: all 200ms ease;
  user-select: none;
}

.pagination-btn.active {
  transform: translate(0, -5px);
  box-shadow:
    0px 0px 0px 4px #a9a9a9,
    0px 16px 5px #545454;
  transition: all 200ms ease;
}

.pagination-btn:hover {
  transform: translate(0, -5px);
  box-shadow:
    0px 0px 0px 4px #a9a9a9,
    0px 16px 5px #545454;
  transition: all 200ms ease;
}

.pagination-.btn:active {
  transform: translate(0, 0px);
  box-shadow: 0px 0px 0px 4px #a9a9a9;
  transition: all 200ms ease;
}

.pagination-link-wrapper {
  position: relative;
}

.pagination-text {
  position: absolute;
  /* width: 50vw; */
  top: 127%;
  right: 0;
  text-align: right;
  opacity: 0;
  transition: oll 350ms;
  user-select: none;
  font-family: sans-serif;
  font-size: clamp(0.85rem, 1.5vw, 1rem);
}

.pagination-text.show {
  opacity: 1;
}

/* Width depending on the data-challenge of the active button */
.pagination-link-wrapper:has(.pagination-btn.active[data-challenge="1"])
  .pagination-text {
  width: 38vw;
}

.pagination-link-wrapper:has(.pagination-btn.active[data-challenge="2"])
  .pagination-text {
  width: 43vw;
}

.pagination-link-wrapper:has(.pagination-btn.active[data-challenge="3"])
  .pagination-text {
  width: 48vw;
}

/* ====================== */
.wrapper-modal {
  position: relative;
  z-index: 2;
}

.how-to-play-btn,
.order-me-btn {
  position: relative;
  z-index: 2;
}

/* ===== JOINT ===== */
#how-to-play-modal {
  position: absolute;
  bottom: 50%;
  left: 50%;
  transform: translateX(-50%);
  transform-origin: bottom center;

  width: 40px;
  height: 20px;

  background: white;
  border-radius: 12px;
  box-shadow: 0 -15px 40px rgba(0, 0, 0, 0.2);

  overflow: hidden;
  pointer-events: none;

  opacity: 0;

  transition:
    opacity 150ms ease,
    width 350ms cubic-bezier(0.25, 0.8, 0.25, 1) 150ms,
    height 400ms cubic-bezier(0.25, 0.8, 0.25, 1) 500ms;
}

#order-me-modal {
  position: absolute;
  bottom: 50%;
  left: 50%;
  transform: translateX(-50%);
  transform-origin: bottom center;

  width: 40px;
  height: 20px;

  background: white;
  border-radius: 12px;
  box-shadow: 0 -15px 40px rgba(0, 0, 0, 0.2);

  overflow: hidden;
  pointer-events: none;

  opacity: 0;

  transition:
    opacity 250ms ease,
    width 150ms cubic-bezier(0.25, 0.8, 0.25, 1) 150ms,
    height 150ms cubic-bezier(0.25, 0.8, 0.25, 1) 500ms;
}

/* ===== OPEN ===== */

.order-me-link {
  width: 100%;
  text-align: right;
  display: block;
  font-weight: 600;
}

/* ===== INSIDE (TEXT) ===== */
.modal-inner {
  padding: 10px 10px;
  text-align: left;
  color: black;
  opacity: 0;
  transition: opacity 300ms ease 900ms;
}

/* TEXT APPEARS AFTER EVERYTHING */
#how-to-play-modal.show .modal-inner {
  opacity: 1;
}

#order-me-modal.show .modal-inner {
  opacity: 1;
}

/* ===== ARROW ===== */
#how-to-play-modal::before {
  content: "";
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-bottom: 10px solid white;
}

#order-me-modal::before {
  content: "";
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-bottom: 10px solid white;
}

/* ===== TEXT ===== */
#how-to-play-modal.show,
#order-me-modal.show {
  opacity: 1;
  pointer-events: auto;
  overflow: hidden;
  width: 120%;
  height: 100px;
}

@media screen and (max-height: 504.98) {
  #how-to-play-modal.show {
    max-height: 82vh;
  }

  #order-me-modal.show {
    max-height: 70vh;
  }
}

@media screen and (min-height: 505) {
  #how-to-play-modal.show {
    max-height: 80vh;
  }

  #order-me-modal.show {
    max-height: 80vh;
  }
}

.modal-title {
  margin: 0;
  font-size: 19px;
  text-align: center;
}

.modal-text {
  font-size: 17px;
  margin: 10px 0;
  line-height: 1.4;
  font-family: sans-serif;
}

.modal-text:last-child {
  margin: 5px 0 30px 0;
}

/* For screens ≥ 1000px */
@media screen and (max-height: 504.98px) {
  #order-me-modal .modal-text {
    font-size: 16px;
    margin: 3px 0;
    line-height: 1.4;
    font-family: sans-serif;
  }

  #how-to-play-modal .modal-text {
    font-size: 16px;
    margin: 8px 0;
    line-height: 1.4;
    font-family: sans-serif;
  }

  #order-me-modal .modal-text {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    /* ← 3 terms */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  #order-me-modal .modal-text.order-me-link {
    margin-bottom: 20px;
  }

  .modal-text:last-child {
    margin: 5px 0 15px 0;
  }

  #how-to-play-modal .modal-text:last-child {
    margin: 5px 0 25px 0;
  }
}

@media screen and (min-height: 505px) {
  #order-me-modal .modal-text {
    font-size: 16px;
    margin: 8px 0;
    line-height: 1.4;
    font-family: sans-serif;
  }

  #how-to-play-modal .modal-text {
    font-size: 16px;
    margin: 18px 0;
    line-height: 1.4;
    font-family: sans-serif;
  }

  #order-me-modal .modal-text.order-me-link {
    margin-bottom: 30px;
  }

  #how-to-play-modal .modal-text:last-child {
    margin: 0 0 30px 0;
  }

  #order-me-modal .modal-text {
    display: -webkit-box;
    -webkit-line-clamp: 5;
    /* ← 3 terms */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

@media screen and (min-height: 650px) {
  #order-me-modal .modal-text {
    display: -webkit-box;
    -webkit-line-clamp: 8;
    /* ← 3 terms */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

.modal-text-bold {
  font-weight: 800;
}

/* ===== CLOSING BUTTON ===== */
.modal-close {
  position: absolute;
  top: 0px;
  right: 0px;
  /* top: 8px;
  right: 8px; */
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #aaa;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.modal-close:hover {
  background: #f0f0f0;
  color: #666;
}

.prompt-wrapper {
  display: flex;
  align-items: center;
  width: max-content;
  flex-wrap: wrap;
  justify-content: center;
  align-content: center;
  gap: 10px;
  pointer-events: none;
  user-select: none;
}

.prompt-item {
  width: 50%;
  min-width: max-content;
  display: flex;
  gap: 10px;
  border: 1px solid #525050;
  color: #525050;
  border-radius: 10px;
  padding: 8px 8px;
  font-size: 14px;
  font-weight: 500;
  pointer-events: none;
  white-space: nowrap;
  align-items: center;
}

.prompt-img {
  width: 30px;
}

.prompt-text {
  font-family: Arial, Helvetica, sans-serif;
}

.tile-tooltip {
  position: fixed;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 5px;
  pointer-events: none;
  z-index: 10000;
  opacity: 0;
  transition: opacity 0.3s ease;
  background-color: #cccccc;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.tile-tooltip-img {
  width: 25px;
}

.tile-tooltip.show {
  opacity: 1;
}

.wrapper.mobile .tile-tooltip.show {
  opacity: 0;
}

/* ================================= */
.burger-menu {
  display: none;
}

.modal-mobile {
  display: none;
}

/* ====================== ANIMATION ====================== */
@keyframes modalClose {
  0% {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
    /* height: auto; */
    z-index: 9999;
  }

  100% {
    top: 1%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.05);
    opacity: 0;
    /* height: 0; */
  }
}

@keyframes modalOpen {
  0% {
    top: 0%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.05);
    opacity: 0;

    z-index: -1;
  }

  100% {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
    height: auto;
    z-index: 9999;
  }
}

/* ====================== MOBILE ====================== */
.mobile .plug,
.mobile .order-me-btn,
.mobile .prompt-wrapper,
.mobile .btn-to-index,
.mobile .footer-inner .footer {
  /* if you need to hide the entire footer */
  display: none;
}

.mobile .footer-inner {
  width: 50%;
}

.mobile .burger-menu {
  width: 3px;
  height: 18px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  align-items: center;
  margin-left: 0;
  cursor: pointer;
  position: absolute;
  top: 50%;
  left: 0;
  z-index: 3;
  transform: translate(-200%, -36%);
}

.mobile .burger-line {
  width: 100%;
  background-color: black;
  height: 3px;
  border-radius: 2px;
}

.mobile .header {
  padding: 0.1rem 0.5rem 0rem;
  margin-bottom: 45px;
  position: relative;
}

.header .logo-header {
  display: none;
}

.mobile .header .logo-header {
  display: flex;
  width: auto;
  height: 100%;
  position: absolute;
}

.mobile .title {
  font-weight: 700;
  color: var(--title-color);
  font-size: 23px;
  width: max-content;
  margin: 0 auto;
  position: relative;
  padding-top: 3px;
}

.mobile .mobile-title::before {
  content: "";
  width: 2px;
  height: 65%;
  position: absolute;
  background-color: #898989;
  top: 50%;
  left: 111%;
  transform: translate(0, -50%);
}

.mobile .btn-wrap {
  gap: 15px;
  display: flex;
  margin-top: 0;
  position: absolute;
  top: 7px;
  right: 5px;
  z-index: 999;
}

.mobile.wrapper .buttons-block {
  display: flex;
  flex-wrap: wrap;
  flex-direction: row-reverse;
  align-items: center;
  margin-bottom: 0;
  gap: 4px;
}

.mobile.wrapper .btn {
  font-family: "arial";
  padding: 3px;
  font-size: 1.6rem;
  font-weight: 600;
  color: white;
  line-height: 1.2;
  background-color: #868686;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  box-shadow: none;
  transition: all 200ms ease;
  width: 30px;
  height: 30px;
  transform: translate(0, -3px);
  user-select: none;
  text-transform: lowercase;
}

.mobile.wrapper .how-to-play-btn {
  display: none;
}

.mobile.wrapper .btn.restart {
  background-color: transparent;
  background-image: url(../img/refresh_icon.svg);
  background-position: center;
  background-size: 100%;
  background-repeat: no-repeat;
}

.mobile .pagination {
  position: fixed;
  display: flex;
  gap: 12px;
  align-items: center;
  top: 40px;
  left: 10px;
  bottom: unset;
  transform: translate(0%, 0%);
  flex-direction: column;
  z-index: 10;
}

.mobile .pagination-text {
  pointer-events: none;
  top: -4px;
  left: 32px;
  right: unset;
  text-align: left;
  font-size: 16px;
  width: 88vw;
  transform: translate(-150%, 0%);
}

.mobile .pagination-btn {
  width: clamp(1.5rem, 3vw, 2rem);
  height: clamp(1.5rem, 3vw, 2rem);
  font-size: clamp(1.1rem, 1.5vw, 1.1rem);
  background: #cccccc;
  box-shadow:
    0 0 0 2px #cccccc,
    0 0 0 3px #898989;
  border: 1px solid #898989;
  z-index: 2;
  position: relative;
}

.mobile .pagination-btn:hover {
  transform: translate(0, 0);
  box-shadow:
    0 0 0 2px #cccccc,
    0 0 0 3px #898989;
  transition: all 200ms ease;
}

.mobile .pagination-btn.active {
  box-shadow:
    0px 0px 0px 3px #868686,
    0px 0px 0px #545454;

  transform: translate(0, 0);
  background: #868686;
  color: #cccccc;
}

.mobile .pagination-text {
  pointer-events: none;
  top: -4px;
  left: 32px;
  text-align: left;
  font-size: 16px;
  width: 88vw;

  opacity: 1;
  transform: translate(0%, 0%);
}

/* ==================== ANIMATION FOR INACTIVE ==================== */
.mobile .pagination-link-wrapper .pagination-text {
  animation: hideText 2.1s forwards;
}

/* ==================== ANIMATION FOR ACTIVE ==================== */
.mobile
  .pagination-link-wrapper:has(.pagination-btn.active[data-challenge="1"])
  .pagination-text,
.mobile
  .pagination-link-wrapper:has(.pagination-btn.active[data-challenge="2"])
  .pagination-text,
.mobile
  .pagination-link-wrapper:has(.pagination-btn.active[data-challenge="3"])
  .pagination-text {
  animation: showText 2.2s forwards;
  width: 88vw;
}

.mobile.wrapper .pagination-link-wrapper-1,
.mobile.wrapper .pagination-link-wrapper-2,
.mobile.wrapper .pagination-link-wrapper-3 {
  z-index: 2;
}

.mobile.challenge-1 .pagination-link-wrapper-1 {
  z-index: 3;
}

.mobile.challenge-2 .pagination-link-wrapper-2 {
  z-index: 3;
}

.mobile.challenge-3 .pagination-link-wrapper-3 {
  z-index: 3;
}

/* ====================== KEYFRAMES ====================== */

@keyframes hideText {
  0% {
    opacity: 0;
    transform: translate(0%, 0%);
  }

  1% {
    opacity: 0;
    transform: translate(0%, 0%);
  }

  40% {
    opacity: 0;
    transform: translate(0%, 0%);
    /* first turn off the opacity */
  }

  100% {
    opacity: 0;
    transform: translate(-150%, 0%);
    /* then we go left */
  }
}

@keyframes showText {
  0% {
    opacity: 0;
    transform: translate(-150%, 0%);
  }

  100% {
    opacity: 1;
    transform: translate(0%, 0%);
    /* we leave smoothly */
  }
}

/* playfields on mobile */
.mobile .playfield {
  position: absolute;
  top: 0;
  left: 50%;
  /* important for translate(-50%, 0) */
  transform: translate(-50%, 0%);
  width: 100%;
  /* height: 70%; */
  display: flex;
  justify-content: center;
  align-items: center;
  /* added for better centering */
  aspect-ratio: unset;
}

/* Animation of "shaking leaves" -left-right with a small scale */
@keyframes shakeRotate {
  0% {
    transform: translate(-50%, 0%) rotate(0deg) scale(1);
  }

  15% {
    transform: translate(-50%, 0%) rotate(-14deg) scale(1.04);
  }

  35% {
    transform: translate(-50%, 0%) rotate(11deg) scale(1.02);
  }

  50% {
    transform: translate(-50%, 0%) rotate(-8deg) scale(1.03);
  }

  65% {
    transform: translate(-50%, 0%) rotate(7deg) scale(1.02);
  }

  80% {
    transform: translate(-50%, 0%) rotate(-5deg) scale(1.01);
  }

  100% {
    transform: translate(-50%, 0%) rotate(0deg) scale(1);
  }
}

.mobile .playfields {
  position: relative;
  height: 82vh;
  /* min-height: 400px; */
  flex: unset;
  width: 100%;
  z-index: 1000;
  pointer-events: none;
}

.mobile .challenge-content {
  pointer-events: none;
  user-select: none;
}

.playfields {
  z-index: 100;
}

.mobile .main {
  flex: unset;
}

.mobile .footer {
  display: none;
}

#how-to-play-modal {
  position: absolute;
  bottom: 50%;
  left: 50%;
  transform: translateX(-50%);
  transform-origin: bottom center;
  width: 40px;
  height: 20px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 -15px 40px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
  transition:
    opacity 150ms ease,
    width 350ms cubic-bezier(0.25, 0.8, 0.25, 1) 150ms,
    height 400ms cubic-bezier(0.25, 0.8, 0.25, 1) 500ms;
}

/* ====================== MEDIA QUERY ====================== */
@media (max-width: 767px) {
  .modal-mobile {
    display: flex;
    width: 100%;
    height: auto;
    position: absolute;
    background-color: #000000c7;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(1);
    z-index: 9999;
    color: #c7c7c7;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    padding: 15px;
  }

  .modal-mobile.hide {
    animation: modalClose 1.1s forwards;
    pointer-events: none;
  }

  .modal-mobile:not(.hide) {
    animation: modalOpen 1.1s forwards;
  }

  .btn-pp,
  .btn-play,
  .btn-cart {
    border: 2px solid #c7c7c7;
    border-radius: 50px;
    padding: 10px;
    background-color: #00000087;
    text-align: center;
    display: flex;
    align-items: center;
  }

  .cart-img {
    width: 30px;
    height: 30px;
  }

  .btn-play {
    padding: 10px 20px;
  }

  .modal-mobile-buttons {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    width: 100%;
  }

  .mobile.wrapper,
  .wrapper {
    height: 100dvh;
    padding: 0;
  }

  html,
  body {
    height: 100dvh;
  }

  .modal-text-none {
    display: none;
  }

  /* pagination on mobile */
  .challenge-2.wrapper.mobile .pagination-link-wrapper-1 {
    transform: translate(0%, 150%);
  }

  .challenge-2.wrapper.mobile .pagination-link-wrapper-2 {
    transform: translate(0%, -150%);
  }

  .challenge-2.wrapper.mobile .pagination-link-wrapper-3 {
    transform: translate(0%, 0%);
  }

  .challenge-3.wrapper.mobile .pagination-link-wrapper-1 {
    transform: translate(0%, 150%);
  }

  .challenge-3.wrapper.mobile .pagination-link-wrapper-2 {
    transform: translate(0%, 150%);
  }

  .challenge-3.wrapper.mobile .pagination-link-wrapper-3 {
    transform: translate(0%, -300%);
  }

  .challenge-1.wrapper.mobile .pagination-link-wrapper-1,
  .challenge-1.wrapper.mobile .pagination-link-wrapper-2,
  .challenge-1.wrapper.mobile .pagination-link-wrapper-3 {
    transform: translate(0, 0%);
  }

  .wrapper.mobile .pagination-link-wrapper,
  .wrapper .pagination-link-wrapper {
    transition: all 550ms ease;
  }

  .wrapper.mobile .pagination-link-wrapper {
    width: 24px;
    height: 24px;
  }

  .wrapper.mobile .pagination-btn .pagination-text {
    transition: opacity 550ms ease 500ms;
  }

  .challenge-1.mobile .pagination-link-wrapper-2 .pagination-text,
  .challenge-1.mobile .pagination-link-wrapper-3 .pagination-text,
  .challenge-2.mobile .pagination-link-wrapper-1 .pagination-text,
  .challenge-2.mobile .pagination-link-wrapper-3 .pagination-text,
  .challenge-3.mobile .pagination-link-wrapper-2 .pagination-text,
  .challenge-3.mobile .pagination-link-wrapper-3 .pagination-text {
    transition: opacity 0ms ease 0ms;
  }
}

.wrapper.mobile .header .you-win {
  top: 35px;
  z-index: 9999;
}

.mobile .plug,
.mobile .order-me-btn,
.mobile .prompt-wrapper,
.mobile .btn-to-index,
.mobile .footer-inner .footer {
  display: none;
}

.tile {
  -webkit-tap-highlight-color: transparent;
  /* removes gray backlight on iOS */
}

.playfield {
  -webkit-tap-highlight-color: transparent;
  /* removes gray backlight on iOS */
}

/* Main unit */

body,
.wrapper,
.main,
.playfields,
.tiles,
.tile,
.tile svg {
  -webkit-user-select: none !important;
  user-select: none !important;
  -webkit-touch-callout: none !important;
  -webkit-tap-highlight-color: transparent;
  touch-action: pan-y;
  /* or none -try both */
}

/* Allow selection only where text is really needed */
.you-win,
.modal,
.how-to-play-modal,
.footer-copy,
p,
.hint-elem-text,
.pagination-text {
  -webkit-user-select: text !important;
  user-select: text !important;
  -webkit-touch-callout: default;
}

.wrapper .pagination-text-mobile {
  display: none;
}

.mobile.wrapper .pagination-text-mobile {
  display: block;
}

.wrapper .pagination-text-desktop {
  display: block;
}

.mobile.wrapper .pagination-text-desktop {
  display: none;
}

.playfields {
  pointer-events: none;
}
