#session-step2 {
  background-image: url("../images/how-to-play-screen-bg.png");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

.title-how-to-play {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 20px;
  z-index: 1;
  position: relative;
  flex-wrap: wrap;
}
.hide {
  display: none !important;
}
.flex {
  display: flex !important;
}
.eco-group {
  display: inline-flex;
  gap: 5px;
  margin-right: 50px;
}

.eco-character {
  width: 90px;
  height: 90px;
  border-radius: 45% 55% 60% 40% / 50% 45% 55% 50%;
  margin: 0 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  font-weight: bold;
  color: black;
  text-shadow: 0 1px 0 #fff, 0 -1px 0 #fff, 1px 0 0 #fff, -1px 0 0 #fff,
    1px 1px 0 #fff, -1px -1px 0 #fff, 1px -1px 0 #fff, -1px 1px 0 #fff,
    2px 0 0 #fff, -2px 0 0 #fff, 0 2px 0 #fff, 0 -2px 0 #fff, 2px 2px 0 #fff,
    -2px -2px 0 #fff;
  position: relative;
  transform: rotate(var(--rotation, 0deg)) translateY(var(--offset, 0px));
}

.eco-character:nth-child(1) {
  background-color: #8e6c32;
  --rotation: -5deg;
  --offset: -15px;
  border-radius: 50% 45% 55% 50% / 45% 50% 50% 55%;
}

.eco-character:nth-child(2) {
  background-color: #b0b0a3;
  --rotation: 3deg;
  --offset: 8px;
  border-radius: 55% 45% 50% 50% / 50% 55% 45% 50%;
}

.eco-character:nth-child(3) {
  background-color: #edc235;
  --rotation: -2deg;
  --offset: -20px;
  border-radius: 45% 55% 50% 50% / 55% 45% 50% 50%;
}

.eco-character:nth-child(4) {
  background-color: #3f9ad5;
  --rotation: 4deg;
  --offset: 12px;
  border-radius: 50% 50% 45% 55% / 50% 50% 55% 45%;
}

.eco-character:nth-child(5) {
  background-color: #644d8b;
  --rotation: -3deg;
  --offset: -8px;
  border-radius: 55% 45% 50% 50% / 45% 50% 55% 50%;
}

.eco-character:nth-child(6) {
  background-color: #4cafa1;
  --rotation: 2deg;
  --offset: 18px;
  border-radius: 50% 50% 55% 45% / 50% 45% 50% 55%;
}

.eco-character:nth-child(7) {
  background-color: #afc133;
  --rotation: -4deg;
  --offset: -12px;
  border-radius: 45% 55% 50% 50% / 50% 50% 45% 55%;
}

.eco-character:nth-child(8) {
  background-color: #e58b8b;
  --rotation: 1deg;
  --offset: 5px;
  border-radius: 50% 45% 55% 50% / 55% 50% 45% 50%;
}

.eco-character:nth-child(9) {
  background-color: #cd524e;
  --rotation: -1deg;
  --offset: -18px;
  border-radius: 55% 50% 45% 50% / 50% 55% 50% 45%;
}

.eco-cross {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 3px;
  background: #999;
  border-radius: 2px;
  opacity: 0.8;
  transform: translate(-50%, -50%) rotate(90deg);
}

.eco-cross-2 {
  left: 30%;
  width: 15px;
  opacity: 0.6;
}

.eco-cross-3 {
  left: 70%;
  width: 15px;
  opacity: 0.6;
}

.instructions-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  z-index: 2;
  margin: 20px 0;
  margin-top: 120px;
}

.instruction-box {
  padding: 20px;
  border: none;
  transition: all 0.3s ease;
  width: 550px;
  height: 180px;
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  border-radius: 15px;
  transform: rotate(-1deg) skew(-2deg, 1deg);
  position: relative;
  border: 3px solid #1a252f;
  background-color: #fff;
}

.instruction-box:nth-child(2) {
  border: 3px solid #000;
}

.instruction-box p {
  margin: 0;
  font-size: 28px;
  font-weight: bold;
}

.how-to-play-start-section {
  display: flex;
  justify-content: center;
  margin: 20px 0;
  z-index: 1;
  position: relative;
  gap: 20px;
}

.how-to-play-start-btn {
  padding: 20px;
  font-size: 35px;
  font-weight: bold;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 250px;
  height: 150px;
  color: #fff;
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  background: #cd524e;
  position: relative;
  z-index: 2;
  border-radius: 999px;
}

.how-to-play-start-btn:hover {
  transform: translateY(-5px) scale(1.05);
}

.how-to-play-start-btn:active {
  transform: translateY(-2px) scale(1.02);
}

@media (min-width: 1200px) {
  .instruction-box {
    width: 600px;
    height: 200px;
    padding: 20px;
  }

  .instruction-box p {
    font-size: 32px;
  }
}

@media (max-width: 768px) {
  .eco-character {
    width: 85px;
    height: 85px;
    font-size: 32px;
    margin: 0 8px;
  }

  .instruction-box {
    width: 300px;
    height: 120px;
    padding: 12px;
  }

  .instruction-box p {
    font-size: 18px;
  }
}

@media (max-width: 480px) {
  .eco-character {
    width: 75px;
    height: 75px;
    font-size: 28px;
    margin: 0 6px;
  }

  .instruction-box {
    width: 250px;
    height: 100px;
    padding: 10px;
  }

  .instruction-box p {
    font-size: 16px;
  }
}

@keyframes pulseGlow {
  0%,
  100% {
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2), 0 0 20px rgba(231, 76, 60, 0.3);
  }

  50% {
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2), 0 0 30px rgba(231, 76, 60, 0.6);
  }
}
