#taxons {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
	gap: 2rem;
}

.taxon {
	border: 1px solid black;
	border-radius: 6px;
	background: #2a2a2a;
	overflow: hidden;
}

.taxon-header {
	flex: 1;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.taxon-name {
	margin: 0;
	font-size: 1rem;
	font-weight: 600;
}

.taxon-select {
	display: inline-flex;
	align-items: center;
	gap: 0.25rem;
	padding: 4px 8px;
	border: 1px solid #555;
	border-radius: 4px;
	background: #333;
	color: inherit;
	cursor: pointer;
	font-size: 0.75rem;
	margin-left: 4px;
}

.taxon-select:hover {
	background: #444;
}

.taxon-select:focus {
	outline: 2px solid #60a5fa;
	outline-offset: 2px;
}

summary {
	display: flex;
	align-items: center;
	cursor: pointer;
	list-style: none;
	padding: 12px 16px;
}

.taxon > summary {
	border-bottom: 1px solid #444;
	background: #333;
}

summary::before {
	content: "";
	display: inline-block;
	width: 0;
	height: 0;
	border-left: 5px solid #666;
	border-top: 4px solid transparent;
	border-bottom: 4px solid transparent;
	margin-right: 10px;
	transition: transform 0.3s cubic-bezier(0.34, 2.12, 0.64, 1);
	transform-origin: 25% 50%;
}

details.bird[open] summary::before,
details.taxon[open] > summary::before {
	transform: rotate(90deg) scale(1.2);
}

.icon {
	height: 0.8em;
	width: 0.8em;
	vertical-align: middle;
}

.rare-1 {color: #84b72c;}
.rare-2 {color: #4ad1d6;}
.rare-3 {color: #f4c014;}
.rare-4 {color: #ea554b;}


.bird {
	border-bottom: 1px solid #444;
}

.bird-name {
	font-weight: 500;
	flex-grow: 1;
	text-align: left;
}

.bird-rarity {
	margin: 3px;
}

.bird-content {
	border: 1px solid gray;
	border-radius: 6px;
	margin: 0.75rem;
}

.bird-card-count {
	color: #aaa;
	font-size: 0.75rem;
}

.cards {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	padding: 8px 16px 16px 32px;
	border: none;
	margin: 0;
}

.card-select {
	display: flex;
	align-items: center;
	gap: 0.25rem;
	padding: 6px 10px;
	border: 1px solid #555;
	border-radius: 4px;
	background: #333;
	cursor: pointer;
	font-size: 0.875rem;
}

.card-select:hover {
	background: #444;
}

.card-select:focus-within {
	outline: 2px solid #60a5fa;
	outline-offset: 2px;
}

.card-select input {
	margin: 0;
}

.card-select.active {
	border-color: #22c55e;
	background: #1a3d2a;
}

.card-playing {
	display: inline-flex;
	align-items: center;
}

.selection-summary {
	margin-bottom: 1.5rem;
	padding: 1rem;
	border: 1px solid #444;
	border-radius: 6px;
	background: #2a2a2a;
}

.selection-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 0.5rem;
}

#deselect-all-btn {
	padding: 4px 10px;
	border: 1px solid #555;
	border-radius: 4px;
	background: #333;
	color: inherit;
	cursor: pointer;
	font-size: 0.875rem;
}

#deselect-all-btn:hover {
	background: #444;
}

#deselect-all-btn:focus {
	outline: 2px solid #60a5fa;
	outline-offset: 2px;
}

.selection-list {
	color: #aaa;
	font-size: 0.875rem;
	line-height: 1.4;
}
