/* 福彩3D选号 — 在 ssq-pick pick-layout-b 之上的玩法样式 */

.d3-pick .result-ball.d3 {
	background: linear-gradient(145deg, #f59e0b, #d97706);
	color: #fff;
	font-weight: 700;
	min-width: 1.85rem;
	height: 1.85rem;
	line-height: 1.85rem;
	border-radius: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin: 0 3px;
	box-shadow: none;
}

.d3-pick .play-type-section {
	margin-top: 10px;
	padding: 0 2px;
}

.d3-pick .play-type-section-label {
	font-size: 0.78rem;
	color: #64748b;
	margin-bottom: 6px;
}

.d3-pick .play-type-selector {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.d3-pick .play-type {
	border: 1px solid #e2e8f0;
	background: #fff;
	color: #334155;
	border-radius: 8px;
	padding: 6px 12px;
	font-size: 0.86rem;
	cursor: pointer;
	line-height: 1.2;
}

.d3-pick .play-type.active {
	background: #0f766e;
	border-color: #0f766e;
	color: #fff;
}

.d3-mode-hint {
	margin: 8px 0 0;
	font-size: 0.78rem;
	color: #64748b;
	line-height: 1.45;
}

.d3-panel {
	background: #fff;
	border-radius: 12px;
	padding: 12px;
	margin: 8px 0 16px;
}

.d3-pos-block {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.d3-pos-row {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.d3-pos-label {
	font-size: 0.88rem;
	font-weight: 600;
	color: #0f172a;
}

.d3-digit-grid {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 8px;
}

.d3-digit-grid .d3-ball,
.d3-digit-grid .ball,
#modalBalls .d3-ball {
	aspect-ratio: 1;
	border-radius: 50%;
	border: 2px solid #fcd34d;
	background: #fffbeb;
	color: #92400e;
	font-weight: 700;
	font-size: 1rem;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	user-select: none;
	transition: transform 0.12s ease, background 0.12s ease, color 0.12s ease;
}

.d3-digit-grid .d3-ball:active {
	transform: scale(0.94);
}

.d3-digit-grid .d3-ball.selected,
.d3-digit-grid .ball.selected,
#modalBalls .d3-ball.selected {
	background: linear-gradient(145deg, #f59e0b, #d97706);
	border-color: #b45309;
	color: #fff;
}

.d3-digit-grid .d3-ball.disabled {
	opacity: 0.35;
	pointer-events: none;
}

.d3-pick .bet-table .d3-row-balls {
	display: flex;
	align-items: center;
	gap: 6px;
	flex-wrap: wrap;
	min-height: 36px;
	cursor: pointer;
}

.d3-pick .bet-table .d3-row-ball {
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: linear-gradient(145deg, #f59e0b, #d97706);
	color: #fff;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	font-size: 0.95rem;
}

.d3-pick .bet-table .d3-row-ball.is-empty {
	background: #f1f5f9;
	color: #94a3b8;
	border: 1px dashed #cbd5e1;
}

.d3-pick .bet-table .d3-row-sep {
	color: #94a3b8;
	font-size: 0.75rem;
}

.d3-full-tuo-wrap {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-size: 0.8rem;
	color: #475569;
	margin-right: 6px;
	cursor: pointer;
}

.d3-full-tuo-wrap.is-on {
	color: #0f766e;
	font-weight: 600;
}

.d3-pick .ticket-stub__nums {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px;
	margin: 6px 0;
}

.d3-pick .ticket-stub__ball {
	width: 26px;
	height: 26px;
	border-radius: 50%;
	background: linear-gradient(145deg, #f59e0b, #d97706);
	color: #fff;
	font-size: 0.82rem;
	font-weight: 700;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.d3-pick .ticket-stub__tag {
	font-size: 0.72rem;
	color: #64748b;
	margin: 0 2px;
}

.d3-pick .bt-ball--d3 {
	background: #f59e0b;
	color: #fff;
}

.d3-pick .bt-ball--d3.bt-ball--hit,
.bt-ball--d3.bt-ball--hit {
	outline: 2px solid #fbbf24;
	box-shadow: 0 0 0 2px rgba(251, 191, 36, 0.35);
}

.d3-pick .bt-pick-balls--d3 {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	align-items: center;
	padding: 4px 0 8px;
}

@media (max-width: 768px) {
	.d3-digit-grid {
		grid-template-columns: repeat(5, minmax(0, 1fr));
		gap: 6px;
	}

	.d3-pick .play-type {
		padding: 5px 10px;
		font-size: 0.8rem;
	}
}
