/* My Outfit Cards — front end. Everything scoped to .myo-set so the theme can't leak in. */

.myo-set {
	box-sizing: border-box;
	max-width: 640px;
	margin: 2em auto;
	padding: 0;
}

.myo-set *,
.myo-set *::before,
.myo-set *::after {
	box-sizing: border-box;
}

.myo-instructions {
	margin: 0 0 1em;
	padding: 0;
	font-size: 1rem;
	line-height: 1.5;
	text-align: center;
}

.myo-pair-label {
	margin: 1.25em 0 0.5em;
	padding: 0;
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.4;
	text-align: center;
}

.myo-pair {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
	margin: 0 0 12px;
}

.myo-card {
	all: unset;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	width: 100%;
	cursor: pointer;
	border: 2px solid transparent;
	border-radius: 8px;
	overflow: hidden;
	background: rgba(127, 127, 127, 0.08);
	color: inherit;
	transition: opacity 0.2s ease, border-color 0.2s ease;
}

.myo-card:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}

.myo-card.myo-chosen {
	border-color: currentColor;
	cursor: default;
}

/* Same width, natural height: no cropping. */
.myo-img {
	display: block;
}

.myo-img img {
	display: block;
	width: 100%;
	height: auto;
	max-width: none;
	margin: 0;
}

/* Word sits at the bottom of the card so both words in a pair line up. */
.myo-word {
	display: block;
	margin-top: auto;
	min-height: 2.2em;
	padding: 0.4em 0.5em;
	font-size: 1.25rem;
	font-weight: 700;
	line-height: 1.4;
	text-align: center;
}

.myo-set.myo-done .myo-card:not(.myo-chosen) {
	opacity: 0.35;
	cursor: default;
}

.myo-reset {
	all: unset;
	display: none;
}

.myo-set.myo-started .myo-reset {
	display: block;
	margin: 0.5em auto 0;
	padding: 0.4em 1em;
	font-size: 0.9rem;
	text-decoration: underline;
	cursor: pointer;
	color: inherit;
}

.myo-notice {
	padding: 0.75em 1em;
	border: 1px dashed currentColor;
	font-size: 0.9rem;
}
