/* Segnacarte app, in-page version. Sizes and colours follow the original page. */

.sc-toolbar {
	text-align: center;
}

.sc-button {
	display: inline-block;
	padding: 10px 20px;
	border: 1px solid transparent;
	border-radius: 20px;
	background-color: #666;
	color: #fff;
	font: inherit;
	font-size: 17px;
	line-height: 1.5;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.2s;
}

.sc-button:hover,
.sc-button:focus-visible {
	background-color: #3f3f3f;
	color: #fff;
	text-decoration: none;
}

/* Counters */

.sc-counters {
	text-align: center;
}

.sc-counter {
	margin: 0;
	line-height: 1.5;
}

.sc-counter + .sc-counter {
	margin-top: 20px;
}

.sc-counter__arrow {
	width: 20px;
	height: 20px;
	margin: 0 2px;
	vertical-align: -5px;
}

.sc-counters--scopa .sc-counter__arrow {
	color: #a52a2a;
}

.sc-counters--briscola .sc-counter__arrow {
	color: #ffa500;
}

.sc-counter__value {
	display: inline-block;
	width: 108px;
	padding: 10px 15px;
	border: 1px solid #ccc;
	border-radius: 40px;
	background-color: #fafafa;
	color: #666;
	font: inherit;
	font-size: 17px;
	line-height: 1.5;
	text-align: center;
}

/* Cards: one row per suit, ten cards of 90x118 each (image 66px wide, 24px gap) */

.sc-cards--large {
	margin-left: 3%;
	padding: 6%;
}

.sc-cards--large .sc-cards__suit {
	display: flex;
	flex-wrap: wrap;
	padding: 8px;
}

.sc-card {
	display: block;
	position: relative;
	width: 90px;
	height: 118px;
	cursor: pointer;
	-webkit-user-select: none;
	user-select: none;
	-webkit-touch-callout: none;
}

.sc-card__input {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: 0;
	opacity: 0;
	pointer-events: none;
}

.sc-card__image {
	display: block;
	width: 66px;
	height: 118px;
	max-width: none;
	pointer-events: none;
}

.sc-card.is-dim {
	opacity: 0.3;
}

.sc-card.is-out {
	visibility: hidden;
}

.sc-card:has(.sc-card__input:focus-visible) {
	outline: 2px solid #4054b2;
	outline-offset: 2px;
}
