/* === TRAINING OVERLAY === */
.training-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.92);
	display: none;
	align-items: center;
	justify-content: center;
	z-index: 2000;
	padding: 20px;
	overflow-y: auto;
}
.training-overlay.active {
	display: flex;
}

/* === TRAINING CONTAINER === */
.training-container {
	background: var(--panel);
	border: 1px solid var(--border);
	border-radius: 24px;
	padding: 32px;
	max-width: 900px;
	width: 100%;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.9);
	margin: auto;
}

/* === HEADER === */
.training-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 24px;
	padding-bottom: 16px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.training-title {
	font-size: 20px;
	font-weight: 600;
	color: var(--ink);
}

/* === STATS === */
.training-stats {
	display: flex;
	gap: 16px;
	font-size: 12px;
	color: var(--muted);
}
.training-stat {
	display: flex;
	align-items: center;
	gap: 6px;
}
.training-stat b {
	color: var(--ink);
	font-size: 14px;
}

/* === DISPLAY MODE TOGGLE === */
.display-toggle {
	display: flex;
	gap: 4px;
	padding: 4px;
	background: rgba(255, 255, 255, 0.05);
	border-radius: 8px;
	margin-top: 12px;
}
.toggle-btn {
	padding: 6px 16px;
	border: none;
	background: transparent;
	color: var(--muted);
	font-size: 12px;
	font-weight: 600;
	border-radius: 6px;
	cursor: pointer;
	transition: all 0.2s ease;
}
.toggle-btn:hover {
	background: rgba(255, 255, 255, 0.08);
	color: var(--ink);
}
.toggle-btn.active {
	background: rgba(100, 180, 255, 0.2);
	color: #64B4FF;
	border: 1px solid rgba(100, 180, 255, 0.3);
}

/* === CLOSE BUTTON === */
.close-training {
	background: rgba(255, 88, 88, 0.2);
	border: 1px solid rgba(255, 88, 88, 0.5);
	color: #ff5858;
	border-radius: 8px;
	padding: 6px 12px;
	cursor: pointer;
	font-size: 12px;
	transition: all 0.2s ease;
}
.close-training:hover {
	background: rgba(255, 88, 88, 0.3);
}

/* === ACTION BUTTONS === */
.training-actions {
	display: flex;
	justify-content: center;
	gap: 12px;
	margin-top: 32px;
}
.action-btn {
	min-width: 120px;
	padding: 14px 32px;
	border-radius: 12px;
	border: 1px solid rgba(255, 255, 255, 0.12);
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.2s ease;
	
	/* 3D button effect */
	transform: perspective(400px) translateZ(0);
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}
.action-btn.fold {
	background: rgba(255, 88, 88, 0.15);
	border-color: rgba(255, 88, 88, 0.5);
	color: #ff5858;
}
.action-btn.fold:hover {
	background: rgba(255, 88, 88, 0.25);
	transform: perspective(400px) translateY(-2px) translateZ(4px);
	box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
}
.action-btn.fold:active {
	transform: perspective(400px) translateZ(-4px);
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}
.action-btn.call {
	background: rgba(29, 143, 107, 0.15);
	border-color: rgba(29, 143, 107, 0.5);
	color: #1d8f6b;
}
.action-btn.call:hover {
	background: rgba(29, 143, 107, 0.25);
	transform: perspective(400px) translateY(-2px) translateZ(4px);
	box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
}
.action-btn.call:active {
	transform: perspective(400px) translateZ(-4px);
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}
.action-btn.raise {
	background: rgba(79, 140, 255, 0.15);
	border-color: rgba(79, 140, 255, 0.5);
	color: #4f8cff;
}
.action-btn.raise:hover {
	background: rgba(79, 140, 255, 0.25);
	transform: perspective(400px) translateY(-2px) translateZ(4px);
	box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
}
.action-btn.raise:active {
	transform: perspective(400px) translateZ(-4px);
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* === STREAK METER === */
.training-streak {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 8px 10px;
	border-radius: 10px;
	background: radial-gradient(circle at 0 0, rgba(255, 255, 255, 0.06), rgba(0, 0, 0, 0.3));
	border: 1px solid rgba(255, 255, 255, 0.12);
	min-width: 180px;
}
.streak-label-row {
	display: flex;
	align-items: center;
	gap: 8px;
}
.streak-icon {
	width: 28px;
	height: 28px;
	border-radius: 50%;
	object-fit: contain;
}
.streak-text {
	display: flex;
	flex-direction: column;
	gap: 2px;
}
.streak-title {
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	opacity: 0.8;
}
.streak-status {
	font-size: 12px;
	font-weight: 600;
}
.streak-bar-outer {
	position: relative;
	width: 100%;
	height: 6px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.07);
	overflow: hidden;
}
.streak-bar-inner {
	position: absolute;
	left: 0;
	top: 0;
	bottom: 0;
	width: 0%;
	border-radius: inherit;
	background: linear-gradient(90deg, #47e66f, #ffdf40, #ff7a3c, #ff3b6b);
	transition: width 0.25s ease-out;
}

/* Feedback message */
.training-feedback {
	text-align: center;
	margin-top: 24px;
	padding: 16px;
	border-radius: 12px;
	font-size: 14px;
	display: none;
}

.training-feedback.show {
	display: block;
}

.training-feedback.correct {
	background: rgba(52, 206, 147, .15);
	border: 1px solid rgba(52, 206, 147, .5);
	color: #34ce93;
}

.training-feedback.incorrect {
	background: rgba(255, 88, 88, .15);
	border: 1px solid rgba(255, 88, 88, .5);
	color: #ff5858;
}
/* === TRAINING FEEDBACK POP ANIMATION === */

.training-feedback.correct,
.training-feedback.incorrect {
	animation: feedbackPop 0.35s ease-out;
}

@keyframes feedbackPop {
	0% { 
		transform: perspective(600px) translateZ(0) scale(0.8);
		opacity: 0;
	}
	100% { 
		transform: perspective(600px) translateZ(40px) scale(1);
		opacity: 1;
	}
}

/* === MOBILE ADJUSTMENTS === */
@media (max-width: 768px) {
	.training-overlay {
		padding: 12px;
	}
	.training-container {
		padding: 20px;
		max-width: 100%;
	}
	.training-header {
		flex-direction: column;
		align-items: flex-start;
		gap: 12px;
	}
	.training-stats {
		width: 100%;
		justify-content: space-between;
	}
	.training-streak {
		width: 100%;
	}
	.training-actions {
		flex-direction: column;
		gap: 10px;
	}
	.action-btn {
		width: 100%;
		min-width: auto;
	}
	.hole-cards {
		gap: 12px;
		margin: 24px 0;
	}
	.card {
		width: 70px;
		height: 98px;
		font-size: 32px;
	}
	.training-feedback {
		font-size: 12px;
	}
  /* tighten training layout a bit */
  .training-container {
    border-radius: 18px;
  }

  #training-felt {
    margin: 16px auto 8px;
  }

  .training-actions {
    margin-top: 20px;
  }
}

	/* === INLINE RAISE SIZING WHEEL === */
	/* Wheel activates directly on the Raise button */
	.action-btn.wheel-active {
		background: linear-gradient(135deg, rgba(79, 140, 255, 0.3), rgba(79, 140, 255, 0.15));
		box-shadow: 0 0 24px rgba(79, 140, 255, 0.5), inset 0 0 20px rgba(79, 140, 255, 0.2);
		transform: scale(1.08);
		font-size: 15px;
		font-weight: 700;
		letter-spacing: 0.5px;
		cursor: ns-resize;
		user-select: none;
		transition: transform 0.15s ease, box-shadow 0.15s ease;
	}

	/* Overlay showing all wheel options */
	.inline-wheel-overlay {
		position: absolute;
		display: flex;
		flex-direction: column;
		gap: 8px;
		padding: 16px;
		background: rgba(4, 6, 10, 0.95);
		backdrop-filter: blur(12px);
		border: 1px solid rgba(79, 140, 255, 0.3);
		border-radius: 12px;
		z-index: 2500;
		pointer-events: none;
		animation: wheelFadeIn 0.2s ease;
		
		/* 3D floating above table */
		transform: perspective(800px) translateZ(50px) rotateX(-5deg);
		box-shadow: 
			0 20px 50px rgba(0,0,0,0.6),
			0 0 0 1px rgba(255,255,255,0.1);
	}

	@keyframes wheelFadeIn {
		from {
			opacity: 0;
			transform: translateY(10px);
		}
		to {
			opacity: 1;
			transform: translateY(0);
		}
	}

	.inline-wheel-option {
		padding: 12px 20px;
		background: rgba(255, 255, 255, 0.05);
		border: 1px solid rgba(255, 255, 255, 0.1);
		border-radius: 8px;
		color: var(--muted);
		font-size: 14px;
		font-weight: 500;
		text-align: center;
		transition: all 0.15s ease;
	}

	.inline-wheel-option.selected {
		background: linear-gradient(135deg, rgba(79, 140, 255, 0.3), rgba(79, 140, 255, 0.15));
		border-color: rgba(79, 140, 255, 0.6);
		color: var(--ink);
		font-weight: 700;
		font-size: 15px;
		box-shadow: 0 0 16px rgba(79, 140, 255, 0.4);
		transform: scale(1.05);
	}
		opacity: 1;
	}

/* === TRAINING VILLAIN HOVER OVERLAY === */
#training-villain-hover-overlay {
	animation: fadeInGlow 0.3s ease-out forwards;
}

#training-villain-hover-overlay .villain-stats-card {
	/* 3D poster effect - standing up on table */
	background: rgba(20, 24, 32, 0.85);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	transform: perspective(800px) rotateX(2deg);
	transform-style: preserve-3d;
	
	/* Enhanced border with glow */
	border: 1px solid rgba(79, 140, 255, 0.4);
	box-shadow: 
		0 8px 32px rgba(0, 0, 0, 0.6),
		0 0 24px rgba(79, 140, 255, 0.3),
		inset 0 1px 0 rgba(255, 255, 255, 0.1);
	
	/* Subtle glow animation */
	animation: subtleGlow 3s ease-in-out infinite;
}

@keyframes fadeInGlow {
	from {
		opacity: 0;
		transform: translateY(8px) scale(0.95);
	}
	to {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
}

@keyframes subtleGlow {
	0%, 100% {
		box-shadow: 
			0 8px 32px rgba(0, 0, 0, 0.6),
			0 0 24px rgba(79, 140, 255, 0.3),
			inset 0 1px 0 rgba(255, 255, 255, 0.1);
		border-color: rgba(79, 140, 255, 0.4);
	}
	50% {
		box-shadow: 
			0 8px 32px rgba(0, 0, 0, 0.6),
			0 0 32px rgba(79, 140, 255, 0.5),
			0 0 48px rgba(79, 140, 255, 0.2),
			inset 0 1px 0 rgba(255, 255, 255, 0.15);
		border-color: rgba(79, 140, 255, 0.6);
	}
}
