/**
 * Automancy 手相占い 儀式スタイル
 */

.tesou-ritual {
	text-align: center;
	padding: 8px 0 16px;
}

.tesou-steps {
	display: flex;
	justify-content: center;
	gap: 20px;
	flex-wrap: wrap;
	margin-bottom: 14px;
}

.tesou-step {
	width: 180px;
	max-width: 44vw;
	padding: 14px 10px;
	border: 1.5px dashed rgba(212, 175, 55, 0.55);
	border-radius: 12px;
	background: rgba(212, 175, 55, 0.06);
	transition: border-color 0.4s ease, opacity 0.4s ease, box-shadow 0.4s ease;
	position: relative;
}

/* 右手は左手完了までロック */
.tesou-step-right {
	opacity: 0.4;
	pointer-events: none;
}

.tesou-step-right.active {
	opacity: 1;
	pointer-events: auto;
}

.tesou-step.done {
	border-style: solid;
	border-color: #d4af37;
	box-shadow: 0 0 14px rgba(212, 175, 55, 0.3);
}

.tesou-step-label {
	font-size: 14px;
	font-weight: bold;
	color: #d4af37;
	margin-bottom: 8px;
	letter-spacing: 0.1em;
}

.tesou-upload-btn {
	display: inline-block;
	padding: 9px 16px;
	border-radius: 22px;
	background: linear-gradient(135deg, #b8973d, #d4af37);
	color: #1a1408;
	font-size: 13px;
	font-weight: bold;
	cursor: pointer;
	letter-spacing: 0.05em;
}

.tesou-step input[type="file"] {
	display: none;
}

.tesou-preview {
	display: none;
	width: 100%;
	height: auto;
	margin-top: 10px;
	border-radius: 8px;
	box-shadow: 0 3px 10px rgba(0, 0, 0, 0.35);
}

/* 解析中のスキャン演出 */
.tesou-step.processing::after {
	content: '';
	position: absolute;
	inset: 0;
	border-radius: 12px;
	background: linear-gradient(180deg,
		rgba(212, 175, 55, 0) 0%,
		rgba(212, 175, 55, 0.22) 50%,
		rgba(212, 175, 55, 0) 100%);
	background-size: 100% 220%;
	animation: tesou-scan 1.4s linear infinite;
	pointer-events: none;
}

@keyframes tesou-scan {
	from { background-position: 0 -110%; }
	to { background-position: 0 110%; }
}

/* 判定された八卦バッジ */
.tesou-gua-badge {
	position: absolute;
	top: -14px;
	right: -10px;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background: radial-gradient(circle at 35% 30%, #f5e7c4, #d4af37);
	color: #241d10;
	font-size: 19px;
	font-weight: bold;
	line-height: 38px;
	box-shadow: 0 0 12px rgba(212, 175, 55, 0.75);
	opacity: 0;
	transform: scale(0.4);
	transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.tesou-gua-badge.visible {
	opacity: 1;
	transform: scale(1);
}

.tesou-status {
	font-size: 13.5px;
	color: #b8a26a;
	min-height: 1.6em;
	letter-spacing: 0.05em;
}

.tesou-done {
	margin-top: 10px;
	font-size: 16px;
	font-weight: bold;
	color: #d4af37;
	text-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
	opacity: 0;
	transition: opacity 1s ease;
	min-height: 1.5em;
}

.tesou-done.visible {
	opacity: 1;
}

.tesou-hint-small {
	font-size: 11px;
	color: #8f7f55;
	margin-top: 8px;
	line-height: 1.6;
}

@media (max-width: 600px) {
	.tesou-steps {
		gap: 12px;
	}
}
