/* Selection display boxes */
.selection-display {
	display: flex;
	gap: 8px;
	margin-bottom: 50px;
	flex-wrap: nowrap;
	/* Keep in one row */
}

.selection-box {
	flex: 1;
	/* Equal width */
	min-width: 0;
	/* Allow flex to shrink below content size */
	border: 2px solid var(--border);
	border-radius: 12px;
	padding: 10px 8px;
	/* Reduced horizontal padding */
	background: var(--pill-bg);
	cursor: pointer;
	transition: all .2s ease;
	position: relative;
}

.selection-box:hover {
	border-color: rgba(121, 164, 255, .5);
	transform: translateY(-1px);
}

.selection-box.active {
	border-color: var(--accent);
	box-shadow: 0 0 16px rgba(79, 140, 255, .3);
}

.selection-box.hero.active {
	border-color: #8e54e9;
	background: linear-gradient(135deg, rgba(71, 118, 230, .15), rgba(142, 84, 233, .15));
}

.selection-box.v1.active {
	border-color: #ff5858;
	background: linear-gradient(135deg, rgba(248, 87, 166, .15), rgba(255, 88, 88, .15));
}

.selection-box.v2.active {
	border-color: #29ffc6;
	background: linear-gradient(135deg, rgba(32, 227, 178, .15), rgba(41, 255, 198, .15));
}

.selection-label {
	font-size: 9px;
	/* Smaller for mobile */
	text-transform: uppercase;
	letter-spacing: .08em;
	/* Tighter spacing */
	color: var(--muted);
	margin-bottom: 6px;
	white-space: nowrap;
	/* Prevent wrapping */
	overflow: hidden;
	text-overflow: ellipsis;
}

.selection-value {
	font-size: 13px;
	font-weight: 600;
	color: var(--ink);
	display: flex;
	align-items: center;
	gap: 6px;
	min-height: 24px;
	word-break: break-word;
	/* Allow text to wrap if needed */
}

.selection-placeholder {
	color: var(--muted);
	font-weight: 400;
	font-style: italic;
	font-size: 11px;
	/* Smaller placeholder text */
}

.selection-villain-pic {
	width: 24px;
	height: 24px;
	border-radius: 4px;
	object-fit: contain;
}

.selection-clear {
	position: absolute;
	top: 8px;
	right: 8px;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: rgba(255, 88, 88, .8);
	color: white;
	font-size: 12px;
	display: none;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	line-height: 1;
}

.selection-box.active .selection-clear {
	display: flex;
}

.selection-clear:hover {
	background: rgba(255, 88, 88, 1);
}



/* Selection boxes - mobile compact layout */
@media (max-width:768px) {
  .selection-display {
    flex-direction: row;
    /* Changed from column */
    gap: 8px;
    flex-wrap: wrap;
  }

  .selection-box {
    min-width: auto;
    flex: 1 1 calc(33.333% - 8px);
    /* Three boxes in a row */
    min-width: 90px;
    /* Prevent boxes from getting too small */
  }

  .selection-label {
    font-size: 9px;
    /* Smaller label */
  }

  .selection-value {
    font-size: 11px;
    /* Smaller value text */
  }

  .selection-placeholder {
    font-size: 10px;
  }

  .selection-clear {
    width: 16px;
    height: 16px;
    font-size: 10px;
  }
}
