@import url('https://fonts.googleapis.com/css2?family=Fredoka+One&family=Comic+Neue:wght@400;700&display=swap');

/* Loading Screen */
#loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: linear-gradient(135deg, #FF6B9D 0%, #FF8E53 50%, #FFD93D 100%);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.5s ease;
}

.loader-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 25px;
  border: 4px solid #FFD93D;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
}

.loader-gif {
  width: 120px;
  height: 120px;
  border-radius: 15px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.progress-container {
  width: 300px;
  height: 20px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  border: 2px solid #FFD93D;
  overflow: hidden;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #FFD93D, #FFB347, #FF6B9D);
  border-radius: 8px;
  width: 0%;
  transition: width 0.3s ease;
  box-shadow: 0 2px 8px rgba(255, 217, 61, 0.4);
}

.loading-text {
  font-family: 'Fredoka One', cursive;
  font-size: 18px;
  color: #FFFFFF;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  text-align: center;
}

#nickname-container {
  position: absolute;
  top: 15px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: row;
  gap: 8px;
  z-index: 10;
  background: linear-gradient(135deg, #FF6B9D, #FF8E53);
  padding: 10px 15px;
  border-radius: 15px;
  border: 3px solid #FFD93D;
  box-shadow: 0 6px 18px rgba(255, 217, 61, 0.4), 0 3px 8px rgba(0, 0, 0, 0.2);
  font-family: 'Fredoka One', cursive;
}

#nickname-input {
  padding: 8px 10px;
  border: 2px solid #FFD93D;
  background: rgba(255, 255, 255, 0.95);
  color: #4A4A4A;
  border-radius: 10px;
  font-family: 'Comic Neue', cursive;
  font-size: 11px;
  font-weight: 700;
  width: 80px;
  outline: none;
  transition: all 0.3s ease;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
}

#nickname-input::placeholder {
  color: #8B8B8B;
  opacity: 0.8;
}

#set-nickname-btn {
  padding: 8px 10px;
  background: linear-gradient(135deg, #FFD93D, #FFB347);
  color: #4A4A4A;
  border: none;
  border-radius: 10px;
  font-family: 'Fredoka One', cursive;
  font-size: 9px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: bold;
  min-width: 50px;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
  text-transform: uppercase;
  letter-spacing: 1px;
}

#set-nickname-btn:hover {
  background: linear-gradient(135deg, #FFB347, #FFD93D);
  transform: scale(1.05);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

#change-character-btn {
  padding: 8px 10px;
  background: linear-gradient(135deg, #FF6B9D, #FF8E53);
  color: #FFFFFF;
  border: none;
  border-radius: 10px;
  font-family: 'Fredoka One', cursive;
  font-size: 9px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: bold;
  min-width: 50px;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
  text-transform: uppercase;
  letter-spacing: 1px;
}

#change-character-btn:hover {
  background: linear-gradient(135deg, #FF8E53, #FF6B9D);
  transform: scale(1.05);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.dropdown-container {
  position: relative;
  text-align: center;
  margin: 20px auto;
  z-index: 1000;
}
/* Dropdown styles */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-btn {
  width: 180px;
  margin: 0;
  padding: 15px 20px;
  font-size: 12px;
  font-family: 'Fredoka One', cursive;
  border: 3px solid #FFD93D;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.9);
  color: #4A4A4A;
  cursor: pointer;
  box-shadow: 0 4px 0 #FFD93D, 0 8px 16px rgba(0, 0, 0, 0.2);
  letter-spacing: 1px;
  transition: all 0.3s ease;
  text-transform: uppercase;
  font-weight: bold;
}

.dropdown-btn:hover {
  background: linear-gradient(135deg, #FFD93D, #FFB347);
  color: #4A4A4A;
  border-color: #FF6B9D;
  box-shadow: 0 2px 0 #FF6B9D, 0 8px 24px rgba(255, 217, 61, 0.4);
  transform: translateY(-2px);
}

.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #FF6B9D, #FF8E53);
  border: 3px solid #FFD93D;
  border-radius: 15px;
  box-shadow: 0 8px 24px rgba(255, 217, 61, 0.4), 0 4px 12px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  min-width: 280px;
  padding: 8px 0;
}

.dropdown-content button {
  width: calc(100% - 16px);
  margin: 3px 8px;
  padding: 8px 12px;
  font-size: 8px;
  font-family: 'Fredoka One', cursive;
  border: 2px solid #FFD93D;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  color: #4A4A4A;
  cursor: pointer;
  box-shadow: 0 2px 0 #FFD93D, 0 4px 8px rgba(0, 0, 0, 0.2);
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  text-transform: uppercase;
  font-weight: bold;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dropdown-content button:hover {
  background: linear-gradient(135deg, #FFD93D, #FFB347);
  color: #4A4A4A;
  border-color: #FF6B9D;
  box-shadow: 0 1px 0 #FF6B9D, 0 4px 12px rgba(255, 217, 61, 0.4);
  transform: translateY(-1px);
}

.dropdown.show .dropdown-content {
  display: block;
}

#sidebar button {
  width: 150px;
  margin: 18px 0;
  padding: 18px 0;
  font-size: 10px;
  font-family: 'Fredoka One', cursive;
  border: 3px solid #FFD93D;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.9);
  color: #4A4A4A;
  cursor: pointer;
  box-shadow: 0 4px 0 #FFD93D, 0 8px 16px rgba(0, 0, 0, 0.2);
  letter-spacing: 1px;
  transition: all 0.3s ease;
  text-transform: uppercase;
  font-weight: bold;
}
#sidebar button:hover {
  background: linear-gradient(135deg, #FFD93D, #FFB347);
  color: #4A4A4A;
  border-color: #FF6B9D;
  box-shadow: 0 2px 0 #FF6B9D, 0 8px 24px rgba(255, 217, 61, 0.4);
  transform: translateY(-2px);
}
#social-buttons {
  position: relative;
  display: flex;
  gap: 15px;
  z-index: 1000;
  padding: 12px 20px;
  background: linear-gradient(135deg, #FF6B9D, #FF8E53);
  border-radius: 20px;
  border: 3px solid #FFD93D;
  box-shadow: 0 6px 18px rgba(255, 217, 61, 0.4), 0 3px 8px rgba(0, 0, 0, 0.2);
  margin: 20px auto;
  justify-content: center;
  max-width: 400px;
}
#social-buttons button {
  width: 120px;
  padding: 12px 0;
  font-size: 9px;
  font-family: 'Fredoka One', cursive;
  border: 2px solid #FFD93D;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.9);
  color: #4A4A4A;
  cursor: pointer;
  box-shadow: 0 3px 0 #FFD93D, 0 6px 12px rgba(0, 0, 0, 0.2);
  letter-spacing: 1px;
  transition: all 0.3s ease;
  text-transform: uppercase;
  font-weight: bold;
}
#social-buttons button:hover {
  background: linear-gradient(135deg, #FFD93D, #FFB347);
  color: #4A4A4A;
  border-color: #FF6B9D;
  box-shadow: 0 2px 0 #FF6B9D, 0 8px 24px rgba(255, 217, 61, 0.4);
  transform: translateY(-2px);
}

#btn-twitter {
  background: linear-gradient(135deg, #1da1f2, #0d8ddb);
  color: #fff;
  border: 2px solid #1a8cd8;
}
#btn-twitter:hover {
  background: linear-gradient(135deg, #0d8ddb, #1da1f2);
  border-color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(29, 161, 242, 0.4);
}
#btn-telegram {
  background: linear-gradient(135deg, #229ed9, #178bbd);
  color: #fff;
  border: 2px solid #178bbd;
}
#btn-telegram:hover {
  background: linear-gradient(135deg, #178bbd, #229ed9);
  border-color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(34, 158, 217, 0.4);
}

#btn-buy {
  background: linear-gradient(135deg, #28a745, #20c997);
  color: #fff;
  border: 2px solid #1e7e34;
}
#btn-buy:hover {
  background: linear-gradient(135deg, #20c997, #28a745);
  border-color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(40, 167, 69, 0.4);
}

body {
  background: linear-gradient(135deg, #FF6B9D 0%, #FF8E53 50%, #FFD93D 100%);
  margin: 0;
  padding: 20px;
  font-family: 'Comic Neue', cursive;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Hide main content while loading */
body.loading {
  overflow: hidden;
}

/* Roadmap Section */
#roadmap {
  background: linear-gradient(135deg, #FF6B9D 0%, #FF8E53 50%, #FFD93D 100%);
  padding: 60px 20px;
  margin-top: 40px;
}

.roadmap-container {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.roadmap-title {
  font-family: 'Fredoka One', cursive;
  font-size: 2.5rem;
  color: #FFFFFF;
  text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.5);
  margin-bottom: 50px;
  letter-spacing: 2px;
}

.roadmap-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  margin-bottom: 50px;
}

.roadmap-item {
  background: rgba(255, 255, 255, 0.95);
  border: 4px solid #FFD93D;
  border-radius: 20px;
  padding: 25px;
  box-shadow: 0 8px 24px rgba(255, 217, 61, 0.4), 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.roadmap-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 32px rgba(255, 217, 61, 0.6), 0 6px 16px rgba(0, 0, 0, 0.3);
}

.roadmap-icon {
  font-size: 3rem;
  margin-bottom: 15px;
}

.roadmap-item h3 {
  font-family: 'Fredoka One', cursive;
  font-size: 1.3rem;
  color: #4A4A4A;
  margin-bottom: 15px;
  letter-spacing: 1px;
}

.roadmap-item p {
  font-family: 'Comic Neue', cursive;
  font-size: 1rem;
  color: #666;
  line-height: 1.6;
  text-align: left;
}

.roadmap-footer {
  background: rgba(255, 255, 255, 0.95);
  border: 4px solid #FFD93D;
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 8px 24px rgba(255, 217, 61, 0.4), 0 4px 12px rgba(0, 0, 0, 0.2);
  max-width: 800px;
  margin: 0 auto;
}

.roadmap-footer h3 {
  font-family: 'Fredoka One', cursive;
  font-size: 1.5rem;
  color: #4A4A4A;
  margin-bottom: 20px;
  letter-spacing: 1px;
}

.roadmap-footer p {
  font-family: 'Comic Neue', cursive;
  font-size: 1.1rem;
  color: #666;
  margin: 10px 0;
  line-height: 1.5;
}

.video-section {
  text-align: center;
  margin: 30px auto;
  max-width: 800px;
}

.video-section h3 {
  font-family: 'Fredoka One', cursive;
  font-size: 1.5rem;
  color: #4A4A4A;
  margin-bottom: 20px;
  letter-spacing: 1px;
}

.video-section video {
  width: 100%;
  max-width: 400px;
  aspect-ratio: 1 / 1;
  border-radius: 15px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  border: 3px solid #FFD93D;
  margin: 0 auto;
  background: #000;
  display: block;
  object-fit: cover;
}

/* Mobile responsive for roadmap */
@media (max-width: 768px) {
  .roadmap-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .roadmap-title {
    font-size: 2rem;
  }
  
  .roadmap-item {
    padding: 20px;
  }
  
  .roadmap-item h3 {
    font-size: 1.1rem;
  }
  
  .roadmap-item p {
    font-size: 0.9rem;
  }
}

/* Footer Styles */
#footer {
  background: linear-gradient(135deg, #FF6B9D 0%, #FF8E53 50%, #FFD93D 100%);
  padding: 50px 20px 20px 20px;
  margin-top: 40px;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  margin-bottom: 30px;
}

.footer-section h3 {
  font-family: 'Fredoka One', cursive;
  font-size: 1.3rem;
  color: #FFFFFF;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  margin-bottom: 15px;
  letter-spacing: 1px;
}

.footer-section p {
  font-family: 'Comic Neue', cursive;
  font-size: 1rem;
  color: #FFFFFF;
  line-height: 1.6;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.footer-section ul {
  list-style: none;
  padding: 0;
}

.footer-section ul li {
  font-family: 'Comic Neue', cursive;
  font-size: 1rem;
  color: #FFFFFF;
  margin: 8px 0;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.footer-social {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.footer-social a {
  font-family: 'Fredoka One', cursive;
  font-size: 0.9rem;
  color: #FFFFFF;
  text-decoration: none;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid #FFD93D;
  border-radius: 10px;
  transition: all 0.3s ease;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.footer-social a:hover {
  background: rgba(255, 217, 61, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(255, 217, 61, 0.4);
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 2px solid rgba(255, 217, 61, 0.3);
}

.footer-bottom p {
  font-family: 'Comic Neue', cursive;
  font-size: 0.9rem;
  color: #FFFFFF;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* Mobile responsive for footer */
@media (max-width: 768px) {
  .footer-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .footer-section h3 {
    font-size: 1.1rem;
  }
  
  .footer-section p,
  .footer-section ul li {
    font-size: 0.9rem;
  }
  
  .footer-social {
    justify-content: center;
  }
}

#game-container {
  position: relative;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  border-radius: 25px;
  overflow: visible;
  background: #fff;
  margin: 20px auto;
  max-width: 900px;
  width: 90%;
  border: 4px solid #FFD93D;
}

#game-canvas {
  display: block;
  background: #222;
}

#chat-bar {
  width: 860px;
  background: linear-gradient(135deg, #FFD93D, #FFB347);
  padding: 15px;
  box-sizing: border-box;
  border-top: 3px solid #FF6B9D;
}

#chat-input {
  width: 100%;
  padding: 12px 16px;
  font-size: 16px;
  border-radius: 15px;
  border: 3px solid #FF6B9D;
  outline: none;
  font-family: 'Comic Neue', cursive;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.95);
  color: #4A4A4A;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

#chat-input:focus {
  border-color: #FFD93D;
  box-shadow: 0 6px 12px rgba(255, 217, 61, 0.3);
  transform: translateY(-2px);
}

/* Mobile movement controls */
#mobile-controls {
  display: none;
}

@media (max-width: 900px) {
  body {
    overflow: hidden;
    background: linear-gradient(135deg, #FF6B9D 0%, #FF8E53 50%, #FFD93D 100%);
  }
  .dropdown-container, #social-buttons {
    display: none !important;
  }
  #game-container {
    margin: 0;
    width: 100vw;
    height: 100vh;
    border-radius: 0;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    background: linear-gradient(135deg, #FF6B9D 0%, #FF8E53 50%, #FFD93D 100%);
    border: none;
  }
  #game-canvas {
    width: 100vw !important;
    height: auto !important;
    max-width: 100vw;
    max-height: calc(100vh - 120px);
    display: block;
    margin: 0 auto;
    background: #222;
  }
  #nickname-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100vw;
    justify-content: center;
    padding: 4px 3vw;
    border-radius: 0;
    box-shadow: none;
    z-index: 2001;
  }
  #chat-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    padding: 6px 4vw;
    border-radius: 0;
    box-shadow: none;
    z-index: 2001;
    background: linear-gradient(135deg, #FFD93D, #FFB347);
    border-top: 3px solid #FF6B9D;
  }
  #chat-input {
    font-size: 15px;
    padding: 10px 12px;
    border-radius: 12px;
    font-family: 'Comic Neue', cursive;
    font-weight: 700;
    border: 3px solid #FF6B9D;
    background: rgba(255, 255, 255, 0.95);
  }
  #mobile-controls {
    z-index: 2002;
    bottom: 70px;
  }
  
  /* Show social buttons on mobile but position them differently */
  #social-buttons {
    display: flex !important;
    bottom: 8px;
    padding: 8px 16px;
  }
  
  #social-buttons button {
    width: 120px;
    padding: 12px 0;
    font-size: 9px;
  }
} 