.char-filter-section{
  padding-top: 0.8rem;
}

.char-filter-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding-top: 0.6rem;
}
.char-filter-teams {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 0;
  justify-content: space-between;
  font-size:0.8rem;
}
.team-button {
  width:26%;
  min-width: 80px;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 5px;
  padding: 0.4rem 0.5rem;
  text-align: center;
  cursor: pointer;
  transition: background 0.2s;
}
.team-button:hover {
  background: #f0f0f0;
}
.team-button.active[data-team="main"] {
  border-color: #2384de;
  color: #2384de;
}
.team-button.active[data-team="simulation"] {
  border-color: #f17eb3;
  color: #f17eb3;
}
.team-button.active[data-team="administrative"] {
  border-color: #e0a82b;
  color: #e0a82b;
}
.team-button.active[data-team="watchdog"] {
  border-color: #bb3838;
  color: #bb3838;
}
.team-button.active[data-team="negotiation"] {
  border-color: #9a21b1;
  color: #9a21b1;
}
.team-button.active[data-team="st"] {
  border-color: #6baa3d;
  color: #6baa3d;
}

.character-list-wrapper {
  overflow: hidden;
  transition: max-height 0.4s ease, opacity 0.4s ease;
  max-height: 0;
  opacity: 0;
  text-align: left;
}
.character-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 0.3rem;
  padding: 0.5rem 0;
}
.character-item {
  padding: 0.4rem 0.5rem;
  border: 1px solid #ccc;
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  font-size: 0.65rem;
  transition: background 0.2s;
}
.character-item:hover {
  background: #e0e0e0;
}
.char-selected-list {
  display: flex;
  flex-wrap: wrap;
  row-gap: 0.3rem;
  /* margin-top: 1rem; */
}
.char-selected-item {
  display: flex;
  align-items: center;
  background: #eee;
  border-radius: 5px;
  padding: 0.3rem 0.7rem;
  font-size: 0.7rem;
  cursor: pointer;
  margin-right: 5px;
}
.char-remove-btn {
  background: none;
  border: none;
  pointer-events: none;
}

.event-list-title{
  display:flex;
  position: relative;
  align-items: baseline;
  gap: 10px;
}

button.event-filter-help{
  color: gray;
  border: 1px solid gray;
  width: 16px;
  height: 16px;
  border-radius: 20px;
  font-size: 0.8rem;
  pointer-events: auto;
}

button.event-filter-help:hover + div.filter-popup{
  display:block;
}

div.filter-popup{
  text-align: justify;
  position: absolute;
  width:150px;
  border:1px solid #c0c0c0;
  background-color: white;
  font-size: 0.8rem;
  padding: 10px;
  bottom:0;
  left: 20px;
  border-radius: 3px;
  box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.1);
  z-index:10;
}

.event-banner{
  position:relative;
}

.mini-char-wrap{
  /* display: flex;
  gap:0;
  width: 100%;
  height:100%; */
  box-sizing: border-box;
  position: absolute;
  z-index: 10;
  bottom: 20px;
  justify-content: flex-end;
  pointer-events: none;
  display: grid;
  grid-template-columns: repeat(6, 1fr); /* 이미지 개수에 맞춰 고정 */
  gap: 0; /* 필요 시 간격 조정 */
  right:0;
}

.ssr-mini-wrap, .sr-mini-wrap, .r-mini-wrap{
  /* display: flex; */
  /* height: 40%; */
  /* align-self: flex-end; */
  /* height: clamp(20%, 10vw, 50%); */
  display: contents;
}

.mini-char-wrap.hidden{
  display:none;
}

.mini-char-wrap img{
  /* flex: 1 0 0;        
  height: auto;
  object-fit: contain; */
  /* width: 100%;
  height: auto;
  object-fit: contain;
  display: block; */
  height: clamp(20px, 10vw, 60px);
  width: auto;
  display: block;
}


/*토글*/

div.toggle-switch{
  font-size: 0.85rem;
}

div.toggle-switch input[type="checkbox"]{
  width: 40px;
  height: 20px;
  appearance: none;
  background: #ccc;
  border-radius: 20px;
  position: relative;
  outline: none;
  cursor: pointer;
  /* transition: background 0.3s; */
  border: 0;
}

div.toggle-switch input[type="checkbox"]:checked{
  background: linear-gradient(135deg, #cd79f6 40%, #9e87f3 100%);
}

div.toggle-switch input[type="checkbox"]::before{
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  background: white;
  border-radius: 50%;
  top: 1px;
  left: 1px;
  transition: 0.3s;
}

div.toggle-switch input[type="checkbox"]:checked::before {
  transform: translateX(20px);
}
