/* Word Search finish / submit result popup */
body.ws-finish-open {
	overflow: hidden;
}
.ws-finish-overlay {
	position: fixed;
	inset: 0;
	z-index: 2000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px 16px;
	background: rgba(15, 23, 42, 0.42);
	box-sizing: border-box;
}
.ws-finish-overlay[hidden] {
	display: none !important;
}
.ws-finish-modal {
	position: relative;
	width: 100%;
	max-width: 420px;
	background: #fff;
	border-radius: 20px;
	padding: 32px 28px 24px;
	box-shadow: 0 24px 64px rgba(15, 23, 42, 0.18);
	font-family: 'Roboto', Helvetica, Arial, sans-serif;
	text-align: center;
	box-sizing: border-box;
	animation: wsFinishIn 0.28s cubic-bezier(0.34, 1.2, 0.64, 1);
}
@keyframes wsFinishIn {
	from { opacity: 0; transform: translateY(12px) scale(0.96); }
	to { opacity: 1; transform: translateY(0) scale(1); }
}
.ws-finish-close {
	position: absolute;
	top: 14px;
	right: 14px;
	width: 32px;
	height: 32px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: none;
	border-radius: 50%;
	background: transparent;
	color: #9ca3af;
	cursor: pointer;
	padding: 0;
	transition: background 0.15s, color 0.15s;
}
.ws-finish-close:hover {
	background: #f3f4f6;
	color: #4b5563;
}
.ws-finish-hero {
	margin-bottom: 22px;
}
.ws-finish-trophy {
	width: 64px;
	height: 64px;
	margin: 0 auto 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: #e8f1fc;
	color: #1870d5;
}
.ws-finish-stars {
	display: flex;
	justify-content: center;
	gap: 4px;
	margin-bottom: 10px;
}
.ws-finish-star {
	font-size: 16px;
	line-height: 1;
	color: #dbe4f0;
	transition: color 0.2s, transform 0.2s;
}
.ws-finish-star.is-lit {
	color: #f5a623;
	transform: scale(1.08);
}
.ws-finish-title {
	margin: 0 0 8px;
	font-size: 24px;
	font-weight: 700;
	color: #1f2937;
	line-height: 1.25;
}
.ws-finish-sub {
	margin: 0;
	font-size: 14px;
	line-height: 1.45;
	color: #6b7280;
	max-width: 300px;
	margin-left: auto;
	margin-right: auto;
}
.ws-finish-stats {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 10px;
	margin-bottom: 22px;
}
.ws-finish-stat {
	background: #fff;
	border: 1.5px solid #e8eaf0;
	border-radius: 14px;
	padding: 14px 8px 12px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
}
.ws-finish-stat-val {
	font-size: 26px;
	font-weight: 700;
	line-height: 1.1;
	font-variant-numeric: tabular-nums;
}
.ws-finish-stat-score { color: #f59e0b; }
.ws-finish-stat-time { color: #1f2937; }
.ws-finish-stat-words { color: #1870d5; }
.ws-finish-stat-label {
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #9ca3af;
}
.ws-finish-share {
	margin-bottom: 20px;
}
.ws-finish-share-label {
	margin: 0 0 12px;
	font-size: 14px;
	font-weight: 500;
	color: #6b7280;
}
.ws-finish-share-row {
	display: flex;
	justify-content: center;
	gap: 12px;
}
.ws-finish-share-btn {
	width: 42px;
	height: 42px;
	border: none;
	border-radius: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	color: #fff;
	transition: transform 0.15s, filter 0.15s;
	padding: 0;
}
.ws-finish-share-btn:hover {
	transform: translateY(-2px);
	filter: brightness(1.05);
}
.ws-share-wa { background: #25d366; }
.ws-share-x { background: #111827; }
.ws-share-fb { background: #1877f2; }
.ws-share-copy {
	background: #e8f1fc;
	color: #1870d5;
}
.ws-share-copy.is-copied {
	background: #dcfce7;
	color: #16a34a;
}
.ws-finish-actions {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
	margin-bottom: 14px;
}
.ws-finish-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 44px;
	padding: 10px 14px;
	border-radius: 12px;
	font-family: inherit;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.15s, border-color 0.15s, color 0.15s;
	line-height: 1.2;
}
.ws-finish-btn:disabled {
	opacity: 0.45;
	cursor: not-allowed;
}
.ws-finish-btn-primary {
	background: #e8f1fc;
	border: 1.5px solid #e8f1fc;
	color: #1870d5;
}
.ws-finish-btn-primary:hover:not(:disabled) {
	background: #d6e8fb;
	border-color: #d6e8fb;
}
.ws-finish-btn-secondary {
	background: #fff;
	border: 1.5px solid #e5e7eb;
	color: #374151;
}
.ws-finish-btn-secondary:hover:not(:disabled) {
	border-color: #d1d5db;
	background: #f9fafb;
}
.ws-finish-more {
	display: inline-block;
	font-size: 14px;
	font-weight: 500;
	color: #1870d5;
	text-decoration: none;
	padding: 4px 0;
}
.ws-finish-more:hover,
.ws-finish-more:focus {
	color: #0a53a8;
	text-decoration: underline;
}
@media (max-width: 480px) {
	.ws-finish-modal {
		padding: 28px 18px 20px;
		border-radius: 16px;
	}
	.ws-finish-title {
		font-size: 21px;
	}
	.ws-finish-stat-val {
		font-size: 22px;
	}
	.ws-finish-actions {
		grid-template-columns: 1fr;
	}
}
