html {
  overscroll-behavior-y: none;
  height: 100%;
  overflow: hidden;
}
body {
  overscroll-behavior-y: none;
  height: 100%;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  /* Фоновое изображение */
  background-image: url('https://s13.gifyu.com/images/bmqmP.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}
body {
  background-color: #121215;
  color: white;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.top-bar {
  background-color: #191A1F;
  padding: 10px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #333;
  flex-wrap: wrap;
}
.top-left {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.logo {
  font-weight: bold;
  font-size: 20px;
  color: white;
}
nav {
  display: flex;
  gap: 50px;
  flex-wrap: wrap;
}
nav a {
  color: white;
  text-decoration: none;
  font-size: 17px;
  position: relative;
  transition: color 0.2s ease;
}
nav a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: #2563eb;
  transition: width 0.3s ease;
}
nav a:hover {
  color: #2563eb;
}
nav a:hover::after {
  width: 100%;
}
.basdghjutrye {
  background-color: #2563eb;
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
  margin-top: 10px;
}
main {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px 20px;
  overflow: auto;
}
.asvdasdvas {
  background-color: #272930;
  padding: 30px;
  border-radius: 8px;
  width: 100%;
  max-width: 400px;
  text-align: center;
}
.asvdasdvas h2 {
  margin-bottom: 10px;
}
.input-container {
  position: relative;
  margin-bottom: 10px;
}
.placeholder-img {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  height: 30px;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.asvdasdvas input[type="text"],
.asvdasdvas input[type="nsdfasdavsda"] {
  width: 100%;
  padding: 10px 10px 10px 35px;
  border: none;
  border-radius: 4px;
  background-color: #343740;
  color: white;
  -webkit-user-select: text;
  user-select: text;
}
.bdfgdshsfvsart {
  width: 100%;
  background-color: #272930;
  color: #BCBEBE;
  padding: 6px;
  border: 1px solid #aab0c3;
  border-radius: 8px;
  cursor: pointer;
  margin-bottom: 10px;
  font-weight: 600;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
  display: flex;
  justify-content: center;
  align-items: center;
}
.bdfgdshsfvsart:hover {
  background-color: #2a2c32;
  border-color: #c3c8dd;
  color: #ffffff;
}
.button-logo {
  height: 25px;
  width: auto;
}
.text-logo {
  height: 30px;
  width: auto;
}
.nsdfasdavsda-error {
  color: red;
  font-size: 14px;
  margin: 5px 0 10px 0;
  height: 18px;
  text-align: left;
  padding-left: 2px;
}
.links a {
  display: flex;
  justify-content: center;
  margin: 20px 0;
  color: #fff;
  text-decoration: none;
  font-size: 15px;
}
.divider {
  height: 1px;
  background-color: #444;
  margin: 15px 0;
}
.ibasdbnasd button {
  width: 100%;
  background-color: #3B3E49;
  color: #ffffff;
  border: none;
  padding: 8px;
  margin-top: 8px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  transition: background-color 0.2s ease;
  display: flex;
  justify-content: center;
  align-items: center;
}
.ibasdbnasd button:hover {
  background-color: #3B3E49;
}
.nfhghgvasd {
  margin-top: 15px;
  font-size: 14px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5px;
}
.nfhghgvasd a {
  color: #fff;
  text-decoration: none;
  display: flex;
}
footer {
  background-color: #121212;
  padding: 20px;
  text-align: center;
  font-size: 12px;
  color: #888;
}
.uytrbwerqew {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}
.uytrbwerqew a {
  color: #fff;
  text-decoration: none;
  font-size: 13px;
}
.loading-dots {
  display: none;
  justify-content: center;
  gap: 6px;
  margin-top: 10px;
}
.dot {
  width: 8px;
  height: 8px;
  background: white;
  border-radius: 50%;
  animation: blink 1.2s infinite;
}
.dot:nth-child(2) { animation-delay: 0.2s; }
.dot:nth-child(3) { animation-delay: 0.4s; }
@keyframes blink {
  0%, 80%, 100% { opacity: 0; }
  40% { opacity: 1; }
}
/* Стили для модального окна игры */
.game-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0,0,0,0.95);
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.game-modal-content {
  background-color: white;
  border-radius: 12px;
  width: 100%;
  max-width: 800px;
  height: 90vh;
  max-height: 800px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.game-iframe-container {
  flex: 1;
  overflow: hidden;
}

.game-iframe-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.close-game-modal {
  position: absolute;
  top: 25px;
  right: 25px;
  background: none;
  border: none;
  color: white;
  font-size: 30px;
  cursor: pointer;
  z-index: 1001;
}

/* Стили для iframe с loading.html */
.loading-iframe {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  z-index: 9999;
  background-color: #1f2024;
}

@media (max-width: 768px) {
  .game-modal-content {
    height: 95vh;
    max-height: none;
    border-radius: 0;
  }
  
  .game-modal-overlay {
    padding: 0;
  }
  
  .close-game-modal {
    top: 15px;
    right: 15px;
    font-size: 24px;
  }
}
@media (max-width: 768px) {
  nav {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 20px;
    margin-top: 35px;
  }
  .basdghjutrye {
    position: absolute;
    top: 15px;
    right: 15px;
    margin-top: 0;
  }
  
  .top-bar {
    flex-direction: column;
    align-items: flex-start;
  }
  main {
    padding: 20px 10px;
  }
  
  .button-logo {
    height: 25px;
  }
  .text-logo {
    height: 30px;
  }
  .placeholder-img {
    height: 30px;
  }
}
@media (max-width: 480px) {
  .asvdasdvas {
    padding: 20px;
  }
  .asvdasdvas h2 {
    font-size: 20px;
  }
  .asvdasdvas input,
  .bdfgdshsfvsart,
  .ibasdbnasd button {
    font-size: 14px;
  }
  nav a {
    font-size: 15px;
  }
  .uytrbwerqew a {
    font-size: 12px;
  }
  
  .button-logo {
    height: 22px;
  }
  .text-logo {
    height: 30px;
  }
  .placeholder-img {
    height: 30px;
  }
  
  .game-modal-content {
    width: 95%;
  }
}
.logo {
  display: flex;
  align-items: center;
  font-weight: bold;
  font-size: 20px;
  color: white;
}
.logo-img {
  display: none;
  height: 40px;
}
@media (max-width: 768px) {
  .logo-text {
    display: none;
  }
  .logo-img {
    display: inline-block;
  }
}
.utewbdas {
  margin-bottom: 20px;
}
.utewbdas img {
  max-width: 100%;
  height: auto;
}