* {
  cursor: none !important;
}
*:hover {
  cursor: none !important;
}
@media (max-width: 768px) {
  *:hover {
    cursor: none !important;
  }
}

.custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 100px;
  height: 100px;
  background-image: url("../img/cursor.png");
  background-size: contain;
  background-repeat: no-repeat;
  pointer-events: none;
  z-index: 9999;
  transition: opacity 0.1s ease;
  opacity: 0;
}
@media (max-width: 768px) {
  .custom-cursor {
    display: none;
  }
}

.container {
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 50px;
}
@media (max-width: 1100px) {
  .container {
    padding: 0 20px;
  }
}

.flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.main-page {
  position: relative;
  padding: 40px 0 60px;
  text-align: center;
}
.main-page .main-title {
  font-family: "Press Start 2P", cursive;
  font-size: clamp(20px, 4vw, 32px);
  margin-bottom: 12px;
  color: #000;
}
.main-page .main-subtitle {
  font-size: 15px;
  color: #555;
  margin-bottom: 32px;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
}
.main-page .main-edge-mutants {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  z-index: -1;
  pointer-events: none;
  margin-bottom: 0;
}
.main-page .main-peek {
  position: fixed;
  bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
}
.main-page .main-peek-left {
  left: 0;
  gap: 24px;
}
.main-page .main-peek-left .main-peek-img {
  transform: translateX(-92%) rotate(45deg);
  animation: main-peek-out-in 5s ease-in-out infinite;
}
.main-page .main-peek-left .main-peek-img:nth-child(1) {
  animation-delay: 0s;
}
.main-page .main-peek-left .main-peek-img:nth-child(2) {
  animation-delay: 2.1s;
}
.main-page .main-peek-left .main-peek-img:nth-child(3) {
  animation-delay: 0.5s;
}
.main-page .main-peek-left .main-peek-img:nth-child(4) {
  animation-delay: 1.6s;
}
.main-page .main-peek-right {
  right: 0;
  flex-direction: column;
  gap: 24px;
}
.main-page .main-peek-right .main-peek-img {
  transform: translateX(92%) rotate(-45deg);
  animation: main-peek-out-in-right 5s ease-in-out infinite;
}
.main-page .main-peek-right .main-peek-img:nth-child(1) {
  animation-delay: 1.2s;
}
.main-page .main-peek-right .main-peek-img:nth-child(2) {
  animation-delay: 0.2s;
}
.main-page .main-peek-right .main-peek-img:nth-child(3) {
  animation-delay: 2.4s;
}
.main-page .main-peek-img {
  width: 250px;
  height: 250px;
  -o-object-fit: contain;
     object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.2));
}
@media (max-width: 768px) {
  .main-page .main-peek-img {
    width: 170px;
    height: 170px;
  }
}
@media (max-width: 400px) {
  .main-page .main-peek-img {
    width: 100px;
    height: 100px;
  }
}
.main-page .main-buttons {
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}
.main-page .main-buttons .main-btn {
  font-family: "Press Start 2P", cursive;
  padding: 14px 28px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: normal;
  cursor: pointer;
  border: none;
  background: linear-gradient(-45deg, #2072cf, #1f5899, #1c3e64);
  color: #fff;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.main-page .main-buttons .main-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(107, 127, 215, 0.4);
}
.main-page .main-buttons .main-btn:active {
  transform: translateY(0);
}

@keyframes main-peek-out-in {
  0%, 100% {
    transform: translateX(-92%) rotate(45deg);
  }
  30%, 60% {
    transform: translateX(-35%) rotate(45deg);
  }
}
@keyframes main-peek-out-in-right {
  0%, 100% {
    transform: translateX(92%) rotate(-45deg);
  }
  30%, 60% {
    transform: translateX(35%) rotate(-45deg);
  }
}
header {
  background: linear-gradient(-45deg, #2072cf, #1f5899, #1c3e64);
  padding: 10px 0;
}
header > .container {
  flex-wrap: wrap;
  row-gap: 10px;
}
header .logo {
  font-family: "Press Start 2P", cursive;
  font-size: 20px;
  letter-spacing: 1px;
}
@media (max-width: 768px) {
  header .logo {
    font-size: 18px;
    letter-spacing: 0;
  }
}
header .headerBtns {
  gap: 10px;
  position: relative;
  flex-wrap: wrap;
  row-gap: 10px;
}
header .count {
  gap: 5px;
}
header .shop-btn {
  cursor: pointer;
  gap: 5px;
}
header .shop-btn svg {
  width: 12px;
  height: 12px;
  fill: #000;
}
header .languageBtn {
  margin-right: 30px;
  gap: 5px;
  cursor: pointer;
  position: relative;
}
header .listLanguage {
  display: none;
  width: -moz-fit-content;
  width: fit-content;
  position: absolute;
  z-index: 1;
  top: 20px;
  padding: 8px;
  box-shadow: 0 2px 6px 2px rgba(0, 0, 0, 0.15), 0 1px 2px 0 rgba(0, 0, 0, 0.3);
  background: #fff;
  border-radius: 4px;
  cursor: pointer;
}
header .activLangage {
  opacity: 0.3;
  cursor: default;
}

.compilations {
  position: relative;
}

.wrapNavBtns {
  flex-wrap: wrap;
  row-gap: 10px;
}

.wrapBtns {
  align-items: stretch;
  gap: 12px;
  flex-wrap: wrap;
  padding: 10px 0;
}
.wrapBtns .nav-btn {
  padding: 10px 18px;
  cursor: pointer;
  border-radius: 10px;
  border: 2px solid rgba(0, 0, 0, 0.15);
  background: linear-gradient(180deg, #fff 0%, #f0f0f0 100%);
  font-size: 14px;
  font-weight: 600;
  color: #333;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
@media (max-width: 768px) {
  .wrapBtns .nav-btn {
    padding: 5px 10px;
  }
}
.wrapBtns .nav-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  border-color: rgba(0, 0, 0, 0.25);
}
.wrapBtns .nav-btn:active {
  transform: translateY(0);
}

.bonus {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  justify-content: flex-end;
}
.bonus:hover p {
  color: #ff0000;
}
.bonus:hover .diamond-svg {
  animation: miniRotateHover 0.2s infinite;
}

.diamond-svg {
  animation: miniRotate 3s infinite;
}

@keyframes miniRotate {
  0%, 100% {
    transform: translate(0, 0) rotate(0deg);
  }
  2% {
    transform: translate(-2px, -1px) rotate(-1deg);
  }
  4% {
    transform: translate(2px, 1px) rotate(1deg);
  }
  6% {
    transform: translate(-1px, 2px) rotate(-1deg);
  }
  8% {
    transform: translate(1px, -2px) rotate(1deg);
  }
  10% {
    transform: translate(-1px, -1px) rotate(-0.5deg);
  }
  12% {
    transform: translate(1px, 1px) rotate(0.5deg);
  }
  14% {
    transform: translate(0, 0) rotate(0deg);
  }
}
@keyframes miniRotateHover {
  0%, 100% {
    transform: translate(0, 0) rotate(0deg);
  }
  10% {
    transform: translate(-6px, -4px) rotate(-5deg);
  }
  20% {
    transform: translate(6px, 4px) rotate(5deg);
  }
  30% {
    transform: translate(-4px, 6px) rotate(-4deg);
  }
  40% {
    transform: translate(4px, -6px) rotate(4deg);
  }
  50% {
    transform: translate(-3px, -3px) rotate(-3deg);
  }
  60% {
    transform: translate(3px, 3px) rotate(3deg);
  }
  70% {
    transform: translate(-2px, -2px) rotate(-2deg);
  }
  80% {
    transform: translate(2px, 2px) rotate(2deg);
  }
  90% {
    transform: translate(0, 0) rotate(0deg);
  }
}
.games {
  margin: 50px auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  max-width: 600px;
}

.game {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  position: relative;
}

.fastClick > span {
  font-size: 150px;
}
.fastClick > img {
  width: 80px;
  height: 80px;
  position: absolute;
  bottom: 10px;
  right: 0;
}

.containerGame {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  margin: 100px auto;
}

.face::before {
  content: attr(data-message);
  display: var(--before-display, block);
  font-size: 38px;
  color: #ff0000;
  font-weight: bold;
  text-align: center;
  margin-bottom: 10px;
}

#startFastClick {
  padding: 10px 20px;
  background-color: green;
  border: 1px solid #000;
  border-radius: 10px;
  font-size: 40px;
  cursor: pointer;
  position: relative;
}
#startFastClick span {
  display: none;
  position: absolute;
  color: #ff0000;
  font-size: 150px;
  top: 50%;
  transform: translateY(-50%);
  right: -100px;
}

div:has(#timeToEnd),
div:has(#score) {
  display: none;
  font-size: 20px;
}

div:has(#timeToEnd) {
  font-size: 40px;
}

#timeToEnd {
  color: #ff0000;
}

.wrapModalGetBonus {
  display: var(--modal-display, none);
  position: fixed;
  top: 0;
  right: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.2470588235);
  z-index: 10;
}

.modalGetBonus {
  display: flex;
  align-items: center;
  position: fixed;
  border-radius: 5px;
  width: 100px;
  height: 100px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #fff;
  z-index: 11;
}
.modalGetBonus > img {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
}

#closeModalGetBonus {
  position: absolute;
  top: -7px;
  right: -4px;
  cursor: pointer;
}

.wrapModalAuth {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.2470588235);
  z-index: 100;
  align-items: center;
  justify-content: center;
}
.wrapModalAuth.show {
  display: flex;
}

.modalAuth {
  background: #fff;
  border-radius: 8px;
  padding: 24px;
  min-width: 280px;
  position: relative;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.modalAuthClose {
  position: absolute;
  top: 8px;
  right: 12px;
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
  color: #666;
}
.modalAuthClose:hover {
  color: #000;
}

.modalAuthTabs {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
}

.modalAuthTab {
  padding: 8px 16px;
  border: 1px solid #ddd;
  background: #f5f5f5;
  cursor: pointer;
  border-radius: 4px;
  font-size: 14px;
}
.modalAuthTab.active {
  background: #2072cf;
  color: #fff;
  border-color: #2072cf;
}

.modalAuthForm {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.modalAuthForm input {
  padding: 10px 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 14px;
}
.modalAuthForm button[type=submit] {
  padding: 10px 16px;
  background: #2072cf;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
}
.modalAuthForm button[type=submit]:hover {
  background: #1f5899;
}

.authError {
  color: #ff0000;
  font-size: 13px;
  margin: 0;
  min-height: 18px;
}

.headerAuth {
  gap: 10px;
}

.authHello {
  font-size: 14px;
  margin-right: 8px;
}

.btnSave {
  padding: 6px 12px;
  background: #2072cf;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 13px;
}
.btnSave:hover:not(:disabled) {
  background: #1f5899;
}
.btnSave:disabled {
  opacity: 0.8;
  cursor: default;
}

#btnLogout {
  padding: 6px 12px;
  background: transparent;
  border: 1px solid #999;
  border-radius: 4px;
  cursor: pointer;
  font-size: 13px;
}
#btnLogout:hover {
  background: #f0f0f0;
}

.wrapRunString {
  overflow: hidden;
  position: relative;
  width: 100px;
  height: 100px;
}

.runString {
  position: absolute;
  left: 0;
  bottom: 0;
  display: flex;
  white-space: nowrap;
  animation: runingString 5s linear 1 forwards;
}
.runString > span {
  width: 50px;
  color: blue;
  font-size: 50px;
  margin-right: 15px;
  text-align: center;
}

@keyframes runingString {
  0%, 10% {
    transform: translateX(0%);
  }
  50% {
    transform: translateX(-100%);
  }
  50.1% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(calc(-6500px * var(--value) + 85px));
  }
}
.timer {
  color: #ff0000;
  font-size: 20px;
}

@keyframes pulseTimer {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.4);
  }
  100% {
    transform: scale(1);
  }
}
.timer-pulse {
  display: inline-block;
  animation: pulseTimer 0.4s ease-in-out;
}

.shop h3 {
  text-align: center;
  font-size: 50px;
  font-weight: bold;
  margin-bottom: 20px;
}
@media (max-width: 500px) {
  .shop h3 {
    font-size: 30px;
  }
}
.shop .mutants-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  justify-content: center;
  align-items: flex-start;
  gap: 40px;
}
@media (max-width: 1400px) {
  .shop .mutants-list {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
}
@media (max-width: 980px) {
  .shop .mutants-list {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 700px) {
  .shop .mutants-list {
    grid-template-columns: repeat(1, 1fr);
  }
}
.shop .mutant-item {
  flex-direction: column;
  justify-content: flex-start;
  gap: 0;
  border: 1px solid #000;
  padding: 0;
  border-radius: 10px;
  position: relative;
  overflow: hidden;
}
.shop .mutant-item.stretched {
  height: auto;
}
.shop .mutant-item-pic {
  flex-shrink: 0;
  height: 200px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.shop .mutant-item-pic img,
.shop .mutant-item-pic svg {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  -o-object-fit: contain;
     object-fit: contain;
}
.shop .mutant-item-info {
  padding: 12px 16px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.shop .mutant-item-info .mutant-item-top {
  flex-shrink: 0;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.shop .mutant-item-info h4 {
  text-align: center;
  font-size: 40px;
  font-weight: bold;
  margin-bottom: 20px;
}
@media (max-width: 1400px) {
  .shop .mutant-item-info h4 {
    font-size: 30px;
  }
}
.shop .mutant-item-info .mutant-description {
  font-size: 13px;
  max-height: 50px;
  overflow: hidden;
  position: relative;
  transition: max-height 0.3s ease;
  margin-bottom: 25px;
  line-height: 1.4;
}
.shop .mutant-item-info .mutant-description.expanded {
  max-height: 1000px;
}
.shop .mutant-item-info .mutant-description::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 25px;
  background: linear-gradient(to bottom, transparent, #fff);
  z-index: 1;
}
.shop .mutant-item-info .mutant-description.expanded::after {
  display: none;
}
.shop .mutant-item-info .read-more-btn {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  border: 1px solid #000;
  padding: 4px 8px;
  font-size: 12px;
  cursor: pointer;
  border-radius: 4px;
  z-index: 2;
  transition: opacity 0.2s ease;
}
.shop .mutant-item-info .read-more-btn:hover {
  opacity: 0.8;
}
.shop .mutant-item-info .mutant-price {
  justify-content: flex-start;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}
.shop .mutant-item-info .mutant-price span {
  font-size: 20px;
}
.shop .mutant-item-info .mutant-price img {
  width: 19px;
  height: 19px;
  transform: translateY(-2px);
}
.shop .mutant-item-info .buy-btn {
  background: green;
  border: 1px solid #000;
  padding: 4px 8px;
  font-size: 18px;
  border-radius: 10px;
}
.shop .mutant-item-info .mutant-owned {
  margin: 8px 0 4px;
  font-size: 14px;
}
.shop .mutant-item-info .mutant-owned .mutant-owned-count {
  font-weight: bold;
}
.shop .mutant-item-info .mutant-buttons {
  display: flex;
  gap: 8px;
}
.shop .mutant-item-info .sell-btn {
  background: #c0392b;
  color: #fff;
  border: 1px solid #000;
  padding: 4px 8px;
  font-size: 18px;
  border-radius: 10px;
  cursor: pointer;
}
.shop .mutant-item-info .sell-btn:hover {
  opacity: 0.9;
}

.ferm-location {
  padding: 0;
  min-height: 70vh;
}

.magical-meadow {
  position: relative;
  width: 100%;
  height: calc(100vh - 120px);
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.meadow-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, #203b53 0%, #7eb8e8 48%, #4a7c2a 55%, #6ba347 65%, #4a7c2a 85%, #2d5016 100%);
  z-index: 1;
}

.magical-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
  pointer-events: none;
  transform: translateZ(0);
  overflow: hidden;
  contain: layout style paint;
  isolation: isolate;
}

.particle {
  position: absolute;
  width: 6px;
  height: 6px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.9) 0%, rgba(173, 216, 230, 0.6) 50%, transparent 100%);
  border-radius: 50%;
  transform: translateZ(0);
  backface-visibility: hidden;
  animation: float var(--duration, 3s) ease-in-out infinite;
  animation-delay: var(--delay, 0s);
  box-shadow: 0 0 8px rgba(173, 216, 230, 0.6);
  contain: strict;
  top: var(--top, 4%);
  left: var(--left, 4%);
}

@keyframes float {
  0%, 100% {
    transform: translate3d(0, 0, 0);
    opacity: var(--opacity1, 0.5);
  }
  25% {
    transform: translate3d(var(--move-x1, 8px), var(--move-y1, -10px), 0);
    opacity: var(--opacity2, 0.9);
  }
  50% {
    transform: translate3d(var(--move-x2, -4px), var(--move-y2, -5px), 0);
    opacity: var(--opacity3, 0.7);
  }
  75% {
    transform: translate3d(var(--move-x3, 12px), var(--move-y3, -12px), 0);
    opacity: var(--opacity4, 0.85);
  }
}
@keyframes glow {
  0%, 100% {
    opacity: 0.7;
    filter: brightness(1);
  }
  50% {
    opacity: 1;
    filter: brightness(1.5);
  }
}
.mutants-area {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: calc(60vh - 120px);
  z-index: 4;
  padding: 20px;
  box-sizing: border-box;
}
@media (max-width: 500px) {
  .mutants-area [data-mutant-id=Bacteria] > svg {
    width: 50px;
  }
  .mutants-area [data-mutant-id=Mutant1] > svg {
    width: 50px;
  }
  .mutants-area [data-mutant-id=Mutant2] > svg {
    width: 100px;
  }
  .mutants-area [data-mutant-id=Mutant3] > svg {
    width: 50px;
  }
  .mutants-area [data-mutant-id=Mutant4] > svg {
    width: 50px;
  }
}

.couples h2 {
  text-align: center;
  font-size: 50px;
  font-weight: bold;
  margin-bottom: 20px;
}
@media (max-width: 500px) {
  .couples h2 {
    font-size: 30px;
  }
}
.couples .couples-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  justify-content: space-between;
  gap: 20px;
}
@media (max-width: 1000px) {
  .couples .couples-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 600px) {
  .couples .couples-grid {
    padding: 10px;
    grid-template-columns: repeat(2, 1fr);
  }
}
.couples .couples-grid .couple-card {
  perspective: 1000px;
  height: 250px;
}
@media (max-width: 500px) {
  .couples .couples-grid .couple-card {
    height: 150px;
  }
}
.couples .couples-grid .couple-card .card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.6s;
  transform-style: preserve-3d;
}
.couples .couples-grid .couple-card.flipped .card-inner {
  transform: rotateY(180deg);
}
.couples .couples-grid .couple-card.matched {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}
.couples .couples-grid .couple-card .card-front,
.couples .couples-grid .couple-card .card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #000;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}
.couples .couples-grid .couple-card .card-front {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  transform: rotateY(0deg);
}
.couples .couples-grid .couple-card .card-front .card-pattern {
  width: 100%;
  height: 100%;
  background-image: repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(255, 255, 255, 0.1) 10px, rgba(255, 255, 255, 0.1) 20px), repeating-linear-gradient(-45deg, transparent, transparent 10px, rgba(255, 255, 255, 0.1) 10px, rgba(255, 255, 255, 0.1) 20px);
  border-radius: 10px;
  position: relative;
}
.couples .couples-grid .couple-card .card-front .card-pattern::before {
  content: "?";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 80px;
  font-weight: bold;
  color: rgba(255, 255, 255, 0.8);
  font-family: "Press Start 2P", cursive;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}
.couples .couples-grid .couple-card .card-back {
  background: #fff;
  transform: rotateY(180deg);
  padding: 20px;
}
@media (max-width: 500px) {
  .couples .couples-grid .couple-card .card-back {
    padding: 10px;
  }
}
.couples .couples-grid .couple-card .card-back img {
  width: 100%;
  height: 100%;
  -o-object-fit: contain;
     object-fit: contain;
}
.wrapModalWin {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.8);
  z-index: 10;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.wrapModalWin.show {
  opacity: 1;
}

.modalWin {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  background: linear-gradient(-45deg, #2072cf, #1f5899, #1c3e64);
  border-radius: 20px;
  padding: 40px;
  min-width: 400px;
  max-width: 90vw;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s ease;
  animation: winBounce 0.6s ease-out;
}
.wrapModalWin.show .modalWin {
  transform: translate(-50%, -50%) scale(1);
}

@keyframes winBounce {
  0% {
    transform: translate(-50%, -50%) scale(0.3);
    opacity: 0;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.1);
  }
  100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }
}
.win-content {
  text-align: center;
  color: #fff;
}

.win-title {
  font-family: "Press Start 2P", cursive;
  font-size: 32px;
  margin-bottom: 20px;
  animation: winTitlePulse 1s ease-in-out infinite;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

@keyframes winTitlePulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}
.win-message {
  font-size: 24px;
  margin-bottom: 30px;
  font-weight: bold;
}

.win-coins {
  color: #ffd700;
  font-size: 32px;
  font-weight: bold;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  animation: coinsShine 1.5s ease-in-out infinite;
}

@keyframes coinsShine {
  0%, 100% {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5), 0 0 10px rgba(255, 215, 0, 0.5);
  }
  50% {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5), 0 0 20px rgba(255, 215, 0, 0.8);
  }
}
.win-coins-animation {
  margin: 30px 0;
  animation: coinRotate 2s ease-in-out infinite;
}

@keyframes coinRotate {
  0%, 100% {
    transform: rotateY(0deg);
  }
  50% {
    transform: rotateY(180deg);
  }
}
.coin-icon {
  width: 80px;
  height: 80px;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.win-close-btn {
  background: #fff;
  color: #667eea;
  border: none;
  border-radius: 10px;
  padding: 15px 40px;
  font-size: 18px;
  font-weight: bold;
  font-family: "Press Start 2P", cursive;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}
.win-close-btn:hover {
  background: #ffd700;
  color: #000;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}
.win-close-btn:active {
  transform: translateY(0);
}

@media (max-width: 768px) {
  .modalWin {
    min-width: 90vw;
    padding: 30px 20px;
  }
  .win-title {
    font-size: 24px;
  }
  .win-message {
    font-size: 18px;
  }
  .win-coins {
    font-size: 24px;
  }
}
.runner {
  padding: 20px 0 60px;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  box-sizing: border-box;
}

.runner-container {
  position: relative;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2470588235);
  background: #87CEEB;
}

#runnerCanvas {
  display: block;
  width: 100%;
  max-width: 100%;
  background: #87CEEB;
  cursor: pointer;
  outline: none;
  border: none;
  border-bottom: 3px solid #1c3e64;
}
#runnerCanvas:focus {
  outline: 2px solid #2072cf;
  outline-offset: -2px;
}

.runner-hud {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
  z-index: 2;
  font-family: "Press Start 2P", cursive;
  font-size: 12px;
  color: #000;
  text-shadow: 1px 1px 0 #fff;
}

.runner-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.2470588235);
  z-index: 3;
  padding: 20px;
  text-align: center;
}
.runner-overlay h2 {
  font-family: "Press Start 2P", cursive;
  font-size: clamp(14px, 2.5vw, 20px);
  color: #fff;
  margin-bottom: 16px;
  text-shadow: 2px 2px 0 #000;
}
.runner-overlay p {
  font-size: 12px;
  color: #fff;
  max-width: 420px;
  margin-bottom: 12px;
  line-height: 1.6;
}

.runner-btn {
  margin-top: 20px;
  padding: 12px 28px;
  font-family: "Press Start 2P", cursive;
  font-size: 12px;
  color: #fff;
  background: #2072cf;
  border: 2px solid #1f5899;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}
.runner-btn:hover {
  background: #1f5899;
  transform: scale(1.05);
}
.runner-btn:active {
  transform: scale(0.98);
}

.runner-gameover p strong {
  color: #ffd700;
}

.modal-overlay#contactModal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 20;
  justify-content: center;
  align-items: center;
}
.modal-overlay#contactModal.active {
  display: flex;
}

.contact-modal-content {
  background: #fff;
  color: #000;
  border-radius: 16px;
  padding: 36px 32px 28px 32px;
  max-width: 500px;
  width: 95%;
  position: relative;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  text-align: center;
}
.contact-modal-content h3 {
  font-family: "Press Start 2P", cursive;
  font-size: 16px;
  margin-bottom: 20px;
  color: #2072cf;
}
.contact-modal-content .modal-close {
  position: absolute;
  top: 10px;
  right: 15px;
  background: none;
  border: none;
  font-size: 2rem;
  color: #888;
  cursor: pointer;
  transition: color 0.2s;
  z-index: 2;
  line-height: 1;
}
.contact-modal-content .modal-close:hover {
  color: #2072cf;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 18px;
  text-align: left;
}
.contact-form label {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  font-size: 14px;
  color: #2072cf;
  font-weight: 500;
  gap: 8px;
}
.contact-form .label-text {
  font-family: "Press Start 2P", cursive;
  font-size: 10px;
  color: #2072cf;
  margin-bottom: 4px;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 10px 12px;
  border: 2px solid #1c3e64;
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  resize: none;
  background: #f9fafb;
  color: #000;
  transition: border-color 0.2s;
  box-sizing: border-box;
}
.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #2072cf;
  outline: none;
}

.radio-group {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 10px;
  width: 100%;
}
.radio-group > label {
  flex-direction: row;
}

.radio-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  padding: 8px;
  border-radius: 6px;
  transition: background-color 0.2s;
}
.radio-label:hover {
  background-color: rgba(32, 114, 207, 0.1);
}
.radio-label input[type=radio] {
  width: auto;
  margin: 0;
  cursor: pointer;
}
.radio-label span {
  font-size: 14px;
  color: #000;
}

.contact-toggle {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contact-options {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #2072cf;
  font-weight: 500;
  justify-content: space-between;
}

.contact-option {
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 6px 12px;
  border-radius: 8px;
  border: 2px solid transparent;
  font-family: "Press Start 2P", cursive;
  font-size: 9px;
}
.contact-option:hover {
  color: #1f5899;
}
.contact-option.active {
  color: #2072cf;
  font-weight: 600;
  border-color: #2072cf;
  background-color: rgba(32, 114, 207, 0.1);
}

.contact-separator {
  color: #888;
  font-weight: 500;
  font-size: 10px;
}

.contact-submit {
  background: linear-gradient(-45deg, #2072cf, #1f5899, #1c3e64);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 12px 0;
  font-size: 12px;
  font-family: "Press Start 2P", cursive;
  font-weight: normal;
  cursor: pointer;
  margin-top: 10px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.contact-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(32, 114, 207, 0.4);
}
.contact-submit:active {
  transform: translateY(0);
}
.contact-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.contact-success {
  margin-top: 8px;
  color: #2072cf;
  font-weight: 600;
  font-size: 10px;
  font-family: "Press Start 2P", cursive;
  line-height: 1.6;
}

.contact-loading {
  margin-top: 8px;
  color: #2072cf;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid #2072cf;
  border-top: 3px solid transparent;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
@media (max-width: 768px) {
  .contact-modal-content {
    padding: 28px 20px 20px 20px;
    max-width: 95%;
  }
  .contact-modal-content h3 {
    font-size: 12px;
  }
  .contact-form .label-text {
    font-size: 8px;
  }
  .contact-option {
    font-size: 7px;
    padding: 4px 8px;
  }
  .contact-submit {
    font-size: 10px;
  }
}/*# sourceMappingURL=style.css.map */