/* Hít thở thư giãn */

.hitho-page {
	--accent: #e83e8c;
	--ink: #3d3340;
	color: var(--ink);
	max-width: 560px;
	margin: 0 auto;
	padding: 10px 16px 40px;
	text-align: center;
}

.hitho-page [hidden] {
	display: none !important;
}



.ht-settings {
	margin: 0 0 4px;
}

/* Vòng tròn là một nút bấm: bỏ kiểu mặc định của button. */
.ht-wrap {
	position: relative;
	display: block;
	width: 280px;
	height: 280px;
	width: min(78vw, 340px);
	height: min(78vw, 340px);
	margin: 8px auto 12px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: radial-gradient(circle, #fff7fb 0%, #fbe6ef 70%, #f6d7e4 100%);
	color: inherit;
	font: inherit;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
	-webkit-user-select: none;
	user-select: none;
}

.ht-wrap:focus {
	outline: none;
}

.ht-wrap:focus-visible {
	box-shadow: 0 0 0 3px rgba(232, 62, 140, 0.4);
}

.ht-circle {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	border-radius: 50%;
	background: radial-gradient(circle at 40% 35%, #ffd1e3 0%, #f38bb5 55%, #e05d97 100%);
	box-shadow: 0 0 40px rgba(232, 62, 140, 0.35);
	transform: scale(0.45);
	will-change: transform;
	transition: background 1.2s ease;
}

.ht-wrap[data-phase="hold"] .ht-circle,
.ht-wrap[data-phase="holdOut"] .ht-circle {
	background: radial-gradient(circle at 40% 35%, #e3d9ff 0%, #a58bf3 55%, #7d5fe0 100%);
}

/* Chữ xếp dọc và căn giữa đúng tâm; dòng nào trống thì ẩn hẳn để không đẩy lệch. */
.ht-label {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	color: #fff;
	text-shadow: 0 1px 6px rgba(120, 20, 70, 0.45);
	pointer-events: none;
}

.ht-icon {
	font-size: 1.4rem;
	line-height: 1;
	margin-bottom: 6px;
}

.ht-phase {
	font-size: 1.5rem;
	font-weight: bold;
	line-height: 1.2;
}

.ht-count {
	font-size: 2.4rem;
	font-weight: bold;
	line-height: 1.1;
	font-variant-numeric: tabular-nums;
}

.ht-hint {
	font-size: 0.8rem;
	margin-top: 2px;
}

.ht-count:empty,
.ht-hint:empty {
	display: none;
}

/* Lúc chưa bắt đầu hoặc tạm dừng: vòng sáng nhịp nhàng để mẹ biết chạm vào được. */
.ht-wrap[data-state="idle"] .ht-circle,
.ht-wrap[data-state="paused"] .ht-circle {
	animation: ht-glow 2s ease-in-out infinite;
}

@keyframes ht-glow {
	0%,
	100% {
		box-shadow: 0 0 0 0 rgba(232, 62, 140, 0.35);
	}

	50% {
		box-shadow: 0 0 0 18px rgba(232, 62, 140, 0);
	}
}

.ht-bar {
	height: 6px;
	border-radius: 3px;
	background: #f3e3ea;
	overflow: hidden;
	margin: 0 auto 6px;
	max-width: 340px;
}

.ht-progress {
	height: 100%;
	width: 0;
	background: var(--accent);
}

.ht-remain {
	font-variant-numeric: tabular-nums;
	color: #8a7b8f;
	margin-bottom: 14px;
}

.ht-choices {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 6px;
	margin: 0 0 10px;
}

.ht-choices button {
	padding: 6px 14px;
	border-radius: 999px;
	border: 1px solid #dccfd6;
	background: #fff;
	color: var(--ink);
	font-size: 0.9rem;
}

.ht-choices button[aria-pressed="true"] {
	border-color: var(--accent);
	background: #fde7f1;
	color: #b0246a;
	font-weight: bold;
}

.ht-choices button:disabled {
	opacity: 0.5;
}

.ht-actions {
	display: flex;
	justify-content: center;
	gap: 10px;
	margin: 12px 0 16px;
}

.ht-actions button {
	min-width: 130px;
	min-height: 46px;
	padding: 8px 20px;
	border-radius: 999px;
	border: 2px solid var(--accent);
	background: var(--accent);
	color: #fff;
	font-weight: bold;
	font-size: 1rem;
}

.ht-actions button.ghost {
	background: #fff;
	color: var(--accent);
}

.ht-done {
	background: #fff4f9;
	border: 2px solid #f6d7e4;
	border-radius: 12px;
	padding: 12px 14px;
	margin: 0 0 16px;
}

.hitho-page .info {
	text-align: left;
}

@media (prefers-reduced-motion: reduce) {
	.ht-circle {
		transition: none;
		animation: none !important;
	}
}
