.ffp-wrap {
	max-width: 900px;
	margin: 0 auto;
	font-family: inherit;
}
.ffp-wrap h2 {
	margin-bottom: 4px;
}
.ffp-help {
	color: #666;
	font-size: 0.9em;
	margin-top: 0;
	margin-bottom: 20px;
}
.ffp-notice {
	background: #fff3cd;
	border: 1px solid #ffe69c;
	padding: 12px 16px;
	border-radius: 6px;
	margin-bottom: 16px;
}
.ffp-message {
	padding: 10px 14px;
	border-radius: 6px;
	margin-bottom: 14px;
}
.ffp-message.success { background: #d4edda; border: 1px solid #c3e6cb; color: #155724; }
.ffp-message.error { background: #f8d7da; border: 1px solid #f5c6cb; color: #721c24; }


#ffp-owner-name, #ffp-owner-email, #ffp-team-name {
	display: block;
	width: 100%;
	max-width: 400px;
	padding: 8px 10px;
	margin-bottom: 20px;
	font-size: 1em;
}

.ffp-slots {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 14px;
	margin-bottom: 20px;
}
.ffp-slot label {
	display: block;
	font-weight: 600;
	margin-bottom: 4px;
	font-size: 0.9em;
}
.ffp-slot select {
	width: 100%;
	padding: 8px;
}
.ffp-slot select.ffp-invalid {
	border: 2px solid #dc3545;
}

#ffp-submit-btn {
	padding: 10px 24px;
	font-size: 1em;
	font-weight: 600;
	background: #2271b1;
	color: #fff;
	border: none;
	border-radius: 6px;
	cursor: pointer;
}
#ffp-submit-btn:hover { background: #135e96; }
.ffp-disabled select, .ffp-disabled input, .ffp-disabled button {
	opacity: 0.6;
	pointer-events: none;
}

.ffp-table {
	width: 100%;
	border-collapse: collapse;
	margin-bottom: 24px;
}
.ffp-table th, .ffp-table td {
	text-align: left;
	padding: 8px 10px;
	border-bottom: 1px solid #e2e2e2;
}
.ffp-table thead th {
	background: #f5f5f5;
	font-weight: 700;
}
.ffp-points { font-weight: 700; text-align: right; }
.ffp-team-abbr { color: #888; font-size: 0.85em; }

.ffp-eliminated {
	color: #dc3545;
	font-weight: 700;
	font-size: 0.75em;
	margin-left: 6px;
	border: 1px solid #dc3545;
	border-radius: 4px;
	padding: 1px 5px;
}
.ffp-row-eliminated { opacity: 0.55; }

.ffp-team-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
	gap: 20px;
}
.ffp-team-card {
	border: 1px solid #e2e2e2;
	border-radius: 8px;
	padding: 14px 16px;
}
.ffp-team-card h3 { margin-top: 0; }
.ffp-slot-name { font-weight: 600; color: #555; width: 50px; }

.ffp-position-tabs {
	margin-bottom: 14px;
}
.ffp-tab-btn {
	padding: 8px 16px;
	margin-right: 6px;
	border: 1px solid #ccc;
	background: #f5f5f5;
	border-radius: 6px 6px 0 0;
	cursor: pointer;
}
.ffp-tab-btn.active {
	background: #2271b1;
	color: #fff;
	border-color: #2271b1;
}

#ffp-rankings-table tbody tr:first-child { background: #fff8e1; }

.ffp-btn {
	display: inline-block;
	padding: 10px 24px;
	font-size: 1em;
	font-weight: 600;
	text-align: center;
	text-decoration: none;
	color: #fff;
	background: #2271b1;
	border: 1px solid #2271b1;
	border-radius: 6px;
}
.ffp-btn:hover { background: #135e96; color: #fff; }
.ffp-btn--secondary { background: #fff; color: #2271b1; }
.ffp-btn--secondary:hover { background: #f0f6fc; color: #135e96; }
.ffp-gate .ffp-btn { margin: 0 8px 8px 0; }
.ffp-gate__lead { font-weight: 600; margin-bottom: 4px; }
.ffp-account { color: #666; font-size: 0.9em; margin: 0 0 16px; }
.ffp-account__out { margin-left: 10px; }
.ffp-message__extra { margin-top: 10px; padding-top: 10px; border-top: 1px solid rgba(0,0,0,0.15); white-space: pre-line; }
.ffp-bye { color: #555; font-weight: 700; font-size: 0.75em; margin-left: 6px; border: 1px solid #888; border-radius: 4px; padding: 1px 5px; }

.ffp-register { margin-top: 12px; max-width: 360px; }
.ffp-register label { display: block; margin-bottom: 10px; font-weight: 600; }
.ffp-register input { display: block; width: 100%; box-sizing: border-box; margin-top: 4px; padding: 10px; font-size: 16px; }
.ffp-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
