.tarot-widget {
	max-width: 640px;
	margin: 2rem 0;
	font-family: inherit; /* наследуем шрифт темы (Reebot), не задаём свой */
}

.tarot-question-label {
	display: block;
	font-size: 14px;
	margin-bottom: 6px;
}

.tarot-question-input {
	width: 100%;
	box-sizing: border-box;
	padding: 10px 12px;
	margin-bottom: 12px;
	border: 1px solid #ccc;
	border-radius: 6px;
	font-size: 15px;
}

.tarot-draw-button {
	display: inline-block;
	padding: 10px 20px;
	border: none;
	border-radius: 6px;
	background: #2c2c2a;
	color: #fff;
	font-size: 15px;
	cursor: pointer;
}

.tarot-draw-button:hover {
	opacity: 0.9;
}

.tarot-spread {
	display: grid;
	grid-template-columns: repeat(3, minmax(90px, 140px));
	gap: 16px;
	margin-top: 20px;
	perspective: 800px;
}

.tarot-card {
	aspect-ratio: 2 / 3;
	width: 100%;
	cursor: pointer;
	position: relative;
	transform-style: preserve-3d;
	transition: transform 0.5s;
}

.tarot-card.is-flipped {
	transform: rotateY(180deg);
	cursor: default;
}

.tarot-card__face {
	position: absolute;
	inset: 0;
	backface-visibility: hidden;
	border-radius: 8px;
	overflow: hidden;
	border: 1px solid #ddd;
}

.tarot-card__face--front {
	background: #f4f2ea;
}

.tarot-card__face--back {
	transform: rotateY(180deg);
	background: #fff;
}

.tarot-card__face img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.tarot-result {
	margin-top: 24px;
}

.tarot-result__item {
	margin-bottom: 16px;
	font-size: 15px;
	line-height: 1.5;
}

.tarot-result__item a {
	font-weight: 600;
	text-decoration: underline;
}

.tarot-result__tone {
	font-size: 13px;
	color: #666;
	margin-top: 2px;
}
