/* How to Play Popup Styles */

.howtoplay-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.howtoplay-popup.active {
  opacity: 1;
  visibility: visible;
}

.howtoplay-popup-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
}

.howtoplay-popup-content {
  background: linear-gradient(145deg, #1a0d3b, #0d0423);
  border: 3px solid #4d24bc;
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6);
  z-index: 1001;
  max-width: 800px;
  width: 90%;
  max-height: 90%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.howtoplay-popup.active .howtoplay-popup-content {
  transform: translateY(0);
}

.howtoplay-popup-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 25px 30px;
  border-bottom: 2px solid #6a3cce;
  background: rgba(106, 60, 206, 0.2);
}

.howtoplay-popup-title {
  font-family: 'Pixelifysans', sans-serif;
  font-size: 28px;
  color: #FFD700;
  margin: 0;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.howtoplay-popup-close {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 30px;
  cursor: pointer;
  line-height: 1;
  padding: 0 5px;
  transition: color 0.2s ease;
}

.howtoplay-popup-close:hover {
  color: #FFD700;
}

.howtoplay-popup-body {
  padding: 20px 30px 30px;
  overflow-y: auto;
  flex-grow: 1;
  scrollbar-width: thin;
  scrollbar-color: #362580 #0d0423;
}

.howtoplay-popup-body::-webkit-scrollbar {
  width: 10px;
}

.howtoplay-popup-body::-webkit-scrollbar-track {
  background: #0d0423;
  border-radius: 5px;
}

.howtoplay-popup-body::-webkit-scrollbar-thumb {
  background: #362580;
  border-radius: 5px;
}

/* Step styling */
.howto-step {
  display: flex;
  gap: 20px;
  margin-bottom: 25px;
  background: rgba(106, 60, 206, 0.15);
  border: 2px solid #6a3cce;
  border-radius: 12px;
  padding: 20px;
  transition: all 0.3s ease;
}

.howto-step:hover {
  background: rgba(106, 60, 206, 0.25);
  border-color: #8b5cf6;
  transform: translateX(5px);
}

.howto-step-number {
  background: linear-gradient(135deg, #6a3cce, #4d24bc);
  color: #fff;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Pixelifysans', sans-serif;
  font-size: 28px;
  font-weight: bold;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(106, 60, 206, 0.5);
}

.howto-step-content {
  flex: 1;
}

.howto-step-title {
  font-family: 'Pixelifysans', sans-serif;
  font-size: 18px;
  color: #FFD700;
  margin: 0 0 10px 0;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.howto-step-text {
  font-family: 'Pixelifysans', sans-serif;
  font-size: 14px;
  color: #e0e0e0;
  margin: 0;
  line-height: 1.6;
}

/* Special tips section */
.howto-special {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(106, 60, 206, 0.2));
  border: 2px solid #FFD700;
  border-radius: 12px;
  padding: 20px;
  margin-top: 10px;
}

.howto-special-title {
  font-family: 'Pixelifysans', sans-serif;
  font-size: 20px;
  color: #FFD700;
  margin: 0 0 15px 0;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.howto-special-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.howto-special-list li {
  font-family: 'Pixelifysans', sans-serif;
  font-size: 14px;
  color: #fff;
  margin-bottom: 12px;
  padding-left: 0;
  line-height: 1.6;
}

.howto-special-list li:last-child {
  margin-bottom: 0;
}

.howto-special-list li strong {
  color: #FFD700;
  font-weight: bold;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .howtoplay-popup-content {
    width: 95%;
    margin: 10px;
  }

  .howtoplay-popup-title {
    font-size: 22px;
  }

  .howtoplay-popup-body {
    padding: 15px 20px 20px;
  }

  .howto-step {
    flex-direction: column;
    gap: 15px;
    padding: 15px;
  }

  .howto-step-number {
    width: 40px;
    height: 40px;
    font-size: 24px;
  }

  .howto-step-title {
    font-size: 16px;
  }

  .howto-step-text {
    font-size: 13px;
  }

  .howto-special {
    padding: 15px;
  }

  .howto-special-title {
    font-size: 18px;
  }

  .howto-special-list li {
    font-size: 13px;
    margin-bottom: 10px;
  }
}

