@import url('https://fonts.googleapis.com/css2?family=Roboto&display=swap');
html, body { 
  margin: 0;
  height: 100%;
  overflow: hidden;
  font-family: 'Roboto' !important; 
  color: white;
  font-size: 9px;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

#magic {

  position: fixed;
  width: 100%;
  height: 100vh;
  display: block;
  top: 0;
  left: 0;
  z-index: -9999;
}

.playground{
  position: fixed;
  width: 100%;
  height: 100vh;
  display: flex;
  flex-wrap: nowrap;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  box-sizing: border-box;
}
.bottomPosition{
  text-align: center;
  margin-bottom: 50px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}
.minText{
  
  font-size: 14px;
}

a {
  color: white;
  font-size: 12px;
  text-decoration: none;
}

.logo {
    width: 50px;
    height: 50px;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.1);
}

.special {
    font-size: 28px;
    font-weight: bold;
    margin: 10px 0;
    line-height: 1.2;
    text-align: center;
    max-width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Стили для игровых ссылок */
.games-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  margin-top: 20px;
  max-width: 600px;
}

.game-link {
  display: inline-block;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 20px;
  color: white;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.game-link:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.game-link:active {
  transform: translateY(0);
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
  html, body {
    font-size: 8px;
    overflow-x: hidden;
  }
  
  .playground {
    padding: 0 10px;
  }
  
  .bottomPosition {
    margin-bottom: 20px;
    padding: 0 15px;
  }
  
  .logo {
    width: 40px;
    height: 40px;
  }
  
  .special {
    font-size: 20px;
    margin: 10px 0;
    line-height: 1.1;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
  }
  
  .minText {
    font-size: 10px;
    display: block;
    margin-top: 2px;
  }
  
  .games-links {
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-top: 15px;
    max-width: 100%;
  }
  
  .game-link {
    width: 100%;
    max-width: 280px;
    text-align: center;
    padding: 12px 20px;
    font-size: 16px;
    margin: 0 auto;
  }
}

/* Адаптивность для очень маленьких экранов */
@media (max-width: 480px) {
  html, body {
    font-size: 7px;
  }
  
  .bottomPosition {
    margin-bottom: 15px;
    padding: 0 10px;
  }
  
  .logo {
    width: 35px;
    height: 35px;
  }
  
  .special {
    font-size: 16px;
    margin: 8px 0;
    line-height: 1.0;
    max-width: 100%;
    text-align: center;
  }
  
  .minText {
    font-size: 8px;
    display: block;
    margin-top: 1px;
  }
  
  .game-link {
    padding: 10px 16px;
    font-size: 14px;
    max-width: 250px;
  }
  
  .games-links {
    gap: 8px;
    margin-top: 10px;
  }
}

/* Адаптивность для планшетов */
@media (min-width: 769px) and (max-width: 1024px) {
  .games-links {
    max-width: 700px;
    gap: 12px;
  }
  
  .game-link {
    flex: 1;
    min-width: 150px;
    max-width: 200px;
  }
}

/* Улучшения для touch-устройств */
@media (hover: none) and (pointer: coarse) {
  .game-link {
    padding: 12px 20px;
    font-size: 16px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .game-link:active {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(0.98);
  }
  
  .logo {
    min-height: 44px;
    min-width: 44px;
  }
}

/* Дополнительные улучшения для мобильных устройств */
@media (max-width: 768px) {
  .playground {
    padding-bottom: env(safe-area-inset-bottom);
  }
  
  .bottomPosition {
    padding-bottom: 20px;
  }
}

/* Экстремально маленькие экраны */
@media (max-width: 360px) {
  .special {
    font-size: 14px;
    margin: 5px 0;
    line-height: 0.9;
  }
  
  .minText {
    font-size: 7px;
  }
  
  .logo {
    width: 30px;
    height: 30px;
  }
  
  .bottomPosition {
    margin-bottom: 10px;
    padding: 0 5px;
  }
}

/* Горизонтальная ориентация на мобильных */
@media (max-width: 768px) and (orientation: landscape) {
  .bottomPosition {
    margin-bottom: 10px;
  }
  
  .special {
    font-size: 18px;
    margin: 5px 0;
  }
  
  .minText {
    font-size: 9px;
  }
  
  .games-links {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
  }
  
  .game-link {
    flex: 1;
    min-width: 120px;
    max-width: 150px;
    font-size: 12px;
    padding: 8px 12px;
  }
}