/* Decide Tool styles. Scoped under .dt-wrap so they don't leak. */

.dt-wrap {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	max-width: 520px;
	margin: 1.5em auto;
	padding: 1.5em;
	background: #f7f7f9;
	border-radius: 14px;
	text-align: center;
	box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.dt-wrap .dt-btn {
	background: linear-gradient(135deg, #4f46e5, #7c3aed);
	color: #fff;
	border: none;
	border-radius: 999px;
	padding: 0.85em 2.4em;
	font-size: 1.15em;
	font-weight: 700;
	letter-spacing: 0.04em;
	cursor: pointer;
	transition: transform 0.12s ease, box-shadow 0.2s ease;
	box-shadow: 0 4px 14px rgba(79,70,229,0.35);
}
.dt-wrap .dt-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(79,70,229,0.45); }
.dt-wrap .dt-btn:active { transform: translateY(0); }
.dt-wrap .dt-btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

/* Badge style */
.dt-wrap .dt-badge { margin: 1.4em auto 0.6em; display: inline-block; min-height: 2.6em; }
.dt-wrap .dt-badge-text {
	display: inline-block;
	padding: 0.55em 1.6em;
	border-radius: 14px;
	font-size: 2.6em;
	font-weight: 900;
	letter-spacing: 0.08em;
	color: #fff;
	text-shadow: 0 2px 6px rgba(0,0,0,0.2);
	transform: scale(0);
}
.dt-wrap .dt-badge-text.dt-yes {
	background: linear-gradient(135deg, #10b981, #059669);
	box-shadow: 0 8px 30px rgba(16,185,129,0.45);
	animation: dt-pop 0.55s cubic-bezier(.34,1.56,.64,1) forwards, dt-pulse-yes 2s ease-in-out 0.55s infinite;
}
.dt-wrap .dt-badge-text.dt-no {
	background: linear-gradient(135deg, #ef4444, #dc2626);
	box-shadow: 0 8px 30px rgba(239,68,68,0.45);
	animation: dt-pop 0.55s cubic-bezier(.34,1.56,.64,1) forwards, dt-pulse-no 2s ease-in-out 0.55s infinite;
}
@keyframes dt-pop {
	0%   { transform: scale(0) rotate(-12deg); opacity: 0; }
	60%  { transform: scale(1.15) rotate(4deg); opacity: 1; }
	100% { transform: scale(1) rotate(0); opacity: 1; }
}
@keyframes dt-pulse-yes {
	0%, 100% { box-shadow: 0 8px 30px rgba(16,185,129,0.45); }
	50%      { box-shadow: 0 8px 40px rgba(16,185,129,0.75); }
}
@keyframes dt-pulse-no {
	0%, 100% { box-shadow: 0 8px 30px rgba(239,68,68,0.45); }
	50%      { box-shadow: 0 8px 40px rgba(239,68,68,0.75); }
}

/* Coin style */
.dt-wrap .dt-coin-stage {
	margin: 1.4em auto 0.8em;
	perspective: 1000px;
	height: 170px;
	display: flex;
	align-items: center;
	justify-content: center;
}
.dt-wrap .dt-coin {
	position: relative;
	width: 150px;
	height: 150px;
	transform-style: preserve-3d;
	transform: rotateY(0deg);
}
.dt-wrap .dt-coin.dt-flip-yes { animation: dt-flip-yes 1.6s cubic-bezier(.4,.05,.2,1) forwards; }
.dt-wrap .dt-coin.dt-flip-no  { animation: dt-flip-no  1.6s cubic-bezier(.4,.05,.2,1) forwards; }
.dt-wrap .dt-coin-face {
	position: absolute;
	inset: 0;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 2.4em;
	font-weight: 900;
	letter-spacing: 0.05em;
	color: #fff;
	backface-visibility: hidden;
	-webkit-backface-visibility: hidden;
	text-shadow: 0 2px 4px rgba(0,0,0,0.3);
	border: 6px solid rgba(255,255,255,0.25);
	box-sizing: border-box;
}
.dt-wrap .dt-coin-front {
	background: radial-gradient(circle at 30% 30%, #34d399, #059669 70%, #047857);
	box-shadow: inset 0 0 30px rgba(0,0,0,0.25);
}
.dt-wrap .dt-coin-back {
	background: radial-gradient(circle at 30% 30%, #f87171, #dc2626 70%, #991b1b);
	box-shadow: inset 0 0 30px rgba(0,0,0,0.25);
	transform: rotateY(180deg);
}
@keyframes dt-flip-yes {
	0%   { transform: rotateY(0deg)    scale(1); }
	50%  { transform: rotateY(900deg)  scale(1.1); }
	100% { transform: rotateY(1800deg) scale(1); }
}
@keyframes dt-flip-no {
	0%   { transform: rotateY(0deg)    scale(1); }
	50%  { transform: rotateY(900deg)  scale(1.1); }
	100% { transform: rotateY(1980deg) scale(1); }
}

/* Numbers */
.dt-wrap .dt-numbers {
	margin-top: 1.2em;
	display: flex;
	flex-direction: column;
	gap: 0.9em;
}
.dt-wrap .dt-num-block {
	background: #fff;
	border-radius: 10px;
	padding: 0.85em 1em;
	box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}
.dt-wrap .dt-num-block h4 {
	margin: 0 0 0.55em;
	font-size: 1em;
	color: #111827;
	font-weight: 700;
}
.dt-wrap .dt-sub {
	color: #6b7280;
	font-weight: 400;
	font-size: 0.85em;
	margin-left: 0.4em;
}
.dt-wrap .dt-balls {
	display: flex;
	justify-content: center;
	gap: 0.4em;
	flex-wrap: wrap;
}
.dt-wrap .dt-ball {
	width: 2.4em;
	height: 2.4em;
	border-radius: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	color: #111827;
	background: radial-gradient(circle at 30% 30%, #fff, #e5e7eb 75%, #d1d5db);
	box-shadow: 0 2px 4px rgba(0,0,0,0.12), inset 0 -2px 4px rgba(0,0,0,0.08);
}
.dt-wrap .dt-ball.dt-special-pb {
	background: radial-gradient(circle at 30% 30%, #fca5a5, #dc2626 75%, #991b1b);
	color: #fff;
}
.dt-wrap .dt-ball.dt-special-mm {
	background: radial-gradient(circle at 30% 30%, #fde68a, #d4af37 75%, #92750e);
	color: #fff;
}
.dt-wrap .dt-rand-num {
	font-size: 1.6em;
	font-weight: 800;
	color: #4f46e5;
	letter-spacing: 0.06em;
	font-variant-numeric: tabular-nums;
}
/* "Most popular numbers" section */
.dt-wrap .dt-popular {
	margin-top: 1.5em;
	padding-top: 1.2em;
	border-top: 1px dashed #d1d5db;
}
.dt-wrap .dt-popular-title {
	margin: 0 0 0.8em;
	font-size: 1.1em;
	color: #4f46e5;
	font-weight: 700;
}
.dt-wrap .dt-popular .dt-num-block {
	margin-bottom: 0.7em;
}
.dt-wrap .dt-popular .dt-num-block:last-of-type {
	margin-bottom: 0;
}
.dt-wrap .dt-updated {
	margin: 0.7em 0 0;
	font-size: 0.8em;
	color: #6b7280;
	font-style: italic;
}
.dt-wrap .dt-empty {
	color: #6b7280;
	font-style: italic;
	font-size: 0.9em;
	margin: 0;
}