#current-characters, #select-characters {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 10px;
}

#current-characters > div, #select-characters > div {
  display: flex;
  justify-content: center;
  align-items: center;
}

#current-characters img{
  width: 70%;
  max-width: 70px;
  height: auto;
  display: block;
  border: 2px solid green;
  border-radius: 5px;
}
#select-characters  img{
  width: 100%;
  max-width: 100px;
  height: auto;
  display: block;
}

#select-characters .selected {
  position: relative;
  border: 3px solid #4CAF50;
  border-radius: 8px;
  background-color: rgba(76, 175, 80, 0.2);
}

#select-characters .selected::after {
  content: "✓";
  position: absolute;
  top: 5px;
  right: 5px;
  background-color: #4CAF50;
  color: white;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: bold;
  z-index: 1;
}

#select-characters > div {
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 8px;
  border: 2px solid transparent;
}

#select-characters > div:hover {
  border-color: #2196F3;
  transform: scale(1.05);
}

#addchars{
  text-align: center;
  width: 410px;
  margin: auto;
  margin-top: 30px;
  background: green;
  display: none;
  border-radius: 10px;
  padding: 10px;
  cursor: pointer;
}

#addchars span{
  font-weight: bold;
}

#charnote{
  text-align: center;
  font-size: 12px;
  color: orangered;
  display: none;
  padding: 10px 0px;
}

ul#menu-menu-left li.menu-item-2438 a, ul#menu-menu-left li.menu-item-2218 a, ul#menu-menu-left li.menu-item-2399 a{
    color: #999;
}

.game-intro {
  margin-top: 24px;
  padding: 20px 22px;
  border-radius: 12px;
  background: rgba(30, 41, 59, 0.55);
  border: 1px solid rgba(148, 163, 184, 0.2);
  line-height: 1.75;
}

.game-intro h2 {
  font-size: 30px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 14px;
}

.game-intro h3 {
  font-size: 22px;
  font-weight: 600;
  color: #ffffff;
  margin: 18px 0 8px;
}

.game-intro p,
.game-intro li {
  color: #cbd5e1;
  font-size: 16px;
}

.game-intro ol {
  list-style: decimal;
  padding-left: 22px;
  margin: 6px 0 0;
}

/* Mobile responsive design */
@media (max-width: 768px) {
  #current-characters,
  #select-characters {
    grid-template-columns: repeat(5, 1fr) !important;
    gap: 8px !important;
  }

  #current-characters img {
    max-width: 50px !important;
  }

  #select-characters img {
    max-width: 70px !important;
  }

  #game-settings {
    padding: 10px !important;
  }

  #game-settings p {
    font-size: 14px !important;
    padding: 8px !important;
  }

  #addchars {
    width: 100% !important;
    max-width: 100% !important;
    margin-top: 20px !important;
    padding: 12px !important;
    font-size: 14px !important;
  }

  #select-intro {
    font-size: 13px !important;
    padding: 8px !important;
  }

  #game-settings > p:first-of-type {
    font-size: 13px !important;
    padding: 8px !important;
  }
}
