.hl-background {
	background-image: url('../images/white-plaster.png');
	background-repeat: repeat;
	background-size: auto;
	background-color: var(--pe-background-color);
}

.hl-select-players-container {
	display: flex;
	justify-content: flex-start;
	align-items: center;
	padding: 1rem;
}

.hl-select-players {
	display: flex;
	justify-content: space-between;
	align-items: stretch;
	height: clamp(1.5rem, 9vw, 3rem);
	gap: 1rem;
}

.hl-select-players-input {
	display: flex;
	padding: 0.25rem 0.5rem;
	background-color: var(--hl-select-background-color);
	border: none;
	color: var(--hl-select-text-color);
	font-size: clamp(0.8rem, 6vw, 2.5rem);
	max-width: 75%;
}

.hl-select-players-btn {
	display: flex;
	aspect-ratio: 1 / 1;
	height: 100%;
	align-items: center;
	justify-content: center;
	border-radius: 0.5rem;
	border: 1px solid var(--hl-select-border-color);
	background-color: var(--hl-select-background-color);
}

.hl-btn-plus {
	display: flex;
}

.hl-main-btn-container {
	display: flex;
	justify-content: space-around;
	align-items: center;
	padding: 1rem;
}

.hl-main-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 0.25rem;
	font-size: clamp(0.8rem, 6vw, 2.5rem);
	padding: 0.25rem 0.35rem;
}

#reinitialize {
	border: 1px solid var(--hl-reinitialize-border-color);
	background-color: var(--hl-reinitialize-background-color);
	color: var(--hl-reinitialize-text-color);
}

#computeScore {
	border: 1px solid var(--hl-compute-score-border-color);
	background-color: var(--hl-compute-score-background-color);
	color: var(--hl-compute-score-text-color);
}

.hl-players-container {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 1rem;
	gap: 1rem;
}

.hl-player {
	position: relative;
	border: 2px solid var(--hl-select-border-color);
	border-radius: 0.35rem;
	padding: 1rem 1rem 1rem 1rem;
	margin-top: 1.5rem;
	width: 100%;
	box-sizing: border-box;
	background-color: var(--hl-select-background-color);
}

.hl-player-name {
	position: absolute;
	top: 0;
	left: 1rem;
	transform: translateY(-50%);
	padding: 0.25rem 0.75rem;
	background-color: var(--hl-select-background-color);
	color: var(--hl-select-text-color);
	font-size: clamp(0.8rem, 5.5vw, 2.5rem);
	border-top: 2px solid var(--hl-select-border-color);
	border-bottom: none;
	border-top-left-radius: 0.25rem;
	border-top-right-radius: 0.25rem;
	border-bottom-left-radius: 0;
	border-bottom-right-radius: 0;
}

.hl-player-content {
	display: flex;
	justify-content: space-between;
}

.hl-player-cards-container {
	display: flex;
	height: clamp(1.5rem, 18vw, 8rem);
	gap: 1rem;
	flex-wrap: nowrap;
	overflow: visible;
	height: auto;
	flex-direction: column;
	justify-content: center;
	align-items: flex-start;
	padding-top: 1vw;
}

.hl-cards-container {
	display: flex;
	gap: 1rem;
	flex-wrap: wrap;
	justify-content: flex-start;
}

.hl-card-add {
	border: clamp(1px, 0.2vw, 3px) dashed var(--hl-select-border-color);
	background-color: var(--hl-background-color);
	display: flex;
	aspect-ratio: 6 / 8;
	height: clamp(4rem, 15vw, 8rem);
	align-items: center;
	justify-content: center;
	border-radius: 0.5rem;
	font-size: clamp(2rem, 12vw, 5.5rem);
}

.hl-card-choice-overlay {
	display: none;
	z-index: 2000;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.85);
	overflow-y: auto;
	overflow-x: hidden;
	flex-direction: column;
	-webkit-overflow-scrolling: touch;
	touch-action: auto;
	padding: 1rem;
	box-sizing: border-box;
}

.hl-card-choice {
	display: flex;
	margin: 0;
	padding: 2rem;
	width: auto;
	max-width: 100%;
	flex: 1 1 auto;
	overflow-x: hidden;
	justify-content: flex-start;
	align-items: center;
	flex-direction: column;
	box-sizing: border-box;
	border: clamp(1px, 0.2vw, 3px) solid var(--hl-select-border-color);
	gap: 2rem;
}

.hl-card-container {
	position: relative;
	border: clamp(1px, 0.2vw, 3px) solid var(--grid-item-text-color);
	border-radius: 0.5rem;
	padding: 1.75rem 1rem 1rem 1rem;
	margin-top: 1.5rem;
	width: 100%;
	box-sizing: border-box;
	overflow: visible;
	height: auto;
}

.hl-card-container-name {
	position: absolute;
	top: 0;
	left: 1rem;
	transform: translateY(-50%);
	padding: 0.25rem 0.75rem;
	color: var(--grid-item-text-color);
	font-size: clamp(1.8rem, 5.5vw, 2.5rem);
}

.hl-card-choice-content {
	display: flex;
	padding: 1rem;
	flex-wrap: nowrap;
	overflow: visible;
	height: auto;
	flex-direction: column;
	justify-content: center;
	align-items: flex-start;
	gap: 2rem;
}

.hl-card-choice-line {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-start;
	gap: 1rem;
}

.hl-card-ope, .hl-card-num {
	display: flex;
	aspect-ratio: 6 / 8;
	height: clamp(4rem, 15vw, 8rem);
	align-items: center;
	justify-content: center;
	border-radius: 0.5rem;
	border: clamp(1px, 0.2vw, 3px) solid var(--hl-select-border-color);
	background-color: var(--hl-card-background-color);
	font-size: clamp(2rem, 12vw, 5.5rem);
	/* Prevent content from forcing width */
	width: auto;
	min-width: 0;
	max-width: 100%; /* or set a specific value if needed */
	overflow: hidden;
	/* Text control */
	text-align: center;
	letter-spacing: -0.15em; /* tweak for spacing */
	white-space: nowrap;
}

.hl-card-num {
	font-family: American Typewriter;
	font-weight: bold;
}

.hl-card-num-span {
	margin-left: -0.15em;
}

.hl-card-ope {
	color: var(--gr-hi-lo-ope-color);
	font-weight: lighter;
}

.hl-score-display-container {
	display: none;
	padding: 1rem;
}

.hl-score-display {
	display: flex;
	justify-content: center;
	align-items: center;
	flex-direction: column;
	width: 100%;
	padding: 1rem;
	box-sizing: border-box;
	border: clamp(1px, 0.2vw, 3px) solid var(--hl-select-background-color);
	background-color: var(--background-color);
}

.hl-winners-container {
	display: flex;
	align-items: center;
	flex-direction: column;
	width: 100%;
	padding-bottom: 1rem;
	border-bottom: clamp(1px, 0.1vw, 2px) dashed var(--hl-result-text-color);
}

.hl-winner {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	justify-content: space-between;
	width: 100%;
	color: var(--hl-winner-text-color);
	font-size: clamp(1rem, 5vw, 3.5rem);
	align-items: center;
}

.hl-winner-name {
	text-align: left;
}

.hl-winner-score {
	text-align: center;
}

.hl-winner-distance {
	text-align: right;
	font-size: clamp(0.75rem, 4.5vw, 2.5rem);
}

.hl-score-players-list {
	display: flex;
	color: var(--hl-result-text-color);
	flex-direction: column;
	font-size: clamp(0.75rem, 4.5vw, 2.5rem);
	width: 100%;
	padding-top: 1rem;
}

.hl-score-line {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	width: 100%;
	justify-content: space-between;
	align-items: center;
}

.hl-score-name {
	text-align: left;
}

.hl-score-score {
	text-align: center;
}

.hl-score-distance {
	text-align: right;
	font-size: clamp(0.6rem, 3.5vw, 2rem);
}
