.characters {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.char {
  background: rgba(255, 255, 255, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 12px;
  padding: 12px;
  color: #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.char-img {
  width: 100%;
  height: 180px;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 10px;
  border: 1px solid rgba(255,255,255,0.6);
  object-fit: cover;
  display: block;
}

.char-name {
  font-family: 'genshin';
  font-size: 22pt;
  margin: 0 0 6px 0;
  text-shadow: 4px 4px 9px #2199CE;
  text-align: center;
}

.char-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  justify-content: center;
  font-size: 12px;
  margin-bottom: 6px;
}

.meta-pill {
  display: inline-block;
  padding: 2px 6px;
  border: none;
  border-radius: 999px;
  background: rgba(255,255,255,0.95);
  color: #2199CE;
  text-transform: uppercase;
  width: 45%;
  font-size: 13pt;
  text-align: center;
  text-shadow: none;
}

.char-about {
  font-size: 14px;
  text-shadow: 4px 4px 9px #2199CE;
  line-height: 1.4;
  margin-top: 6px;
}

.char-constellations {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin-top: 6px;
}

.constellation-dot {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.8);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12pt;
}

.constellationyes {
  background: #33cc66;
  color: #0b2e18;
}

.constellationno {
  background: rgba(255,255,255,0.25);
  color: #ffffff;
}

@media (max-width: 900px) {
  .characters {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .characters {
    grid-template-columns: 1fr;
  }
}


.anemo {
  background: #a5f6d0;
  color: #2ab488;
}

.cryo {
  background: #cdfdff;
  color: #4b9197;
}

.electro {
  background: #ddbafe;
  color: #7d529c;
}