:root {
	--boccia-blue: #2563eb;
	--boccia-ink: #172033;
	--boccia-muted: #738096;
	--boccia-line: #e8ebf0;
	--boccia-head: #f5f6f8;
}

.boccia-card {
	background: #fff;
	border: 1px solid var(--boccia-line);
	border-radius: 18px;
	box-shadow: 0 10px 35px rgba(23, 32, 51, .07);
	color: var(--boccia-ink);
	font-family: inherit;
	margin: 24px 0;
	overflow: hidden;
}

.boccia-card__title { align-items: end; display: flex; justify-content: space-between; padding: 24px 28px 20px; }
.boccia-card__title span { color: var(--boccia-blue); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.boccia-card__title h2 { color: var(--boccia-ink); font-size: 25px; line-height: 1.2; margin: 4px 0 0; }
.boccia-card__title small { color: var(--boccia-muted); }
.boccia-table-scroll { overflow-x: auto; }
.boccia-table { border: 0; border-collapse: collapse; font-size: 14px; margin: 0; min-width: 850px; width: 100%; }
.boccia-table th, .boccia-table td { border: 0; padding: 16px 12px; text-align: center; vertical-align: middle; }
.boccia-table thead th { background: var(--boccia-head); color: #687386; font-size: 11px; font-weight: 700; letter-spacing: .035em; text-transform: uppercase; }
.boccia-table tbody td { border-bottom: 1px solid var(--boccia-line); }
.boccia-table tbody tr:last-child td { border-bottom: 0; }
.boccia-table tbody tr:hover { background: #fafbfe; }
.boccia-table .boccia-person { min-width: 190px; text-align: left; }
.boccia-table .boccia-club { color: var(--boccia-muted); min-width: 145px; text-align: left; }
.boccia-table .boccia-pos { padding-left: 22px; width: 54px; }
.boccia-table .boccia-pos span { align-items: center; border: 1px solid #dfe4ec; border-radius: 50%; display: inline-flex; font-weight: 800; height: 32px; justify-content: center; width: 32px; }
.boccia-table tr.is-qualified .boccia-pos span { background: var(--boccia-blue); border-color: var(--boccia-blue); color: #fff; }
.boccia-table .boccia-points { font-size: 16px; }
.boccia-table .is-positive { color: #15803d; font-weight: 700; }
.boccia-table .is-negative { color: #b42318; }
.boccia-empty { color: var(--boccia-muted); padding: 32px !important; text-align: center !important; }
.boccia-results { border-top: 1px solid var(--boccia-line); padding: 22px 28px 28px; }
.boccia-results h3 { font-size: 16px; margin: 0 0 14px; }
.boccia-results__grid { display: grid; gap: 8px; grid-template-columns: minmax(0, 1fr); }
.boccia-results__round { color: var(--boccia-blue); font-size: 13px; letter-spacing: .04em; margin: 13px 0 2px; text-transform: uppercase; }
.boccia-results__round:first-child { margin-top: 0; }
.boccia-result { align-items: center; background: #f8f9fb; border-radius: 9px; display: grid; gap: 10px; grid-template-columns: 1fr auto 1fr; padding: 11px 13px; }
.boccia-result span:last-child { text-align: right; }
.boccia-result strong { background: #fff; border-radius: 6px; box-shadow: 0 1px 4px rgba(23,32,51,.08); padding: 5px 9px; white-space: nowrap; }
.boccia-competition__header h2 { margin-bottom: 4px; }
.boccia-competition__header p { color: var(--boccia-muted); margin-top: 0; }
.boccia-directory { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.boccia-profile { align-items: center; background: #fff; border: 1px solid var(--boccia-line); border-radius: 14px; display: flex; gap: 14px; padding: 16px; }
.boccia-profile img, .boccia-avatar { border-radius: 50%; height: 52px; object-fit: cover; width: 52px; }
.boccia-avatar { align-items: center; background: #eaf0ff; color: var(--boccia-blue); display: inline-flex; font-weight: 800; justify-content: center; }
.boccia-profile h3 { font-size: 16px; margin: 0 0 3px; }
.boccia-profile p { color: var(--boccia-muted); font-size: 13px; margin: 0; }
.boccia-profile small { color: var(--boccia-muted); font-size: 11px; }
.boccia-playoff__matches { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); padding: 0 28px 28px; }
.boccia-playoff__matches article { background: var(--boccia-head); border-radius: 12px; padding: 14px; }
.boccia-playoff__matches small { color: var(--boccia-blue); display: block; font-weight: 700; margin-bottom: 8px; text-transform: uppercase; }
.boccia-playoff__matches article div { align-items: center; display: flex; justify-content: space-between; padding: 5px 0; }
.boccia-playoff__matches article strong { background: #fff; border-radius: 5px; min-width: 28px; padding: 3px 6px; text-align: center; }
.boccia-athlete-card { background: #fff; border: 1px solid var(--boccia-line); border-radius: 18px; box-shadow: 0 10px 35px rgba(23,32,51,.07); overflow: hidden; }
.boccia-athlete-card header { padding: 28px; }
.boccia-athlete-card header span { color: var(--boccia-blue); font-size: 12px; font-weight: 700; text-transform: uppercase; }
.boccia-athlete-card h2 { margin: 4px 0; }
.boccia-athlete-card header p { color: var(--boccia-muted); margin: 0; }
.boccia-career-stats { background: var(--boccia-head); display: grid; grid-template-columns: repeat(4, 1fr); }
.boccia-career-stats div { padding: 18px; text-align: center; }
.boccia-career-stats strong, .boccia-career-stats span { display: block; }
.boccia-career-stats strong { font-size: 24px; }
.boccia-career-stats span { color: var(--boccia-muted); font-size: 12px; }
.boccia-history { display: grid; gap: 24px; grid-template-columns: 1fr 1fr; padding: 24px 28px; }
.boccia-history h3 { font-size: 16px; }
.boccia-history ul { list-style: none; margin: 0; padding: 0; }
.boccia-history li { border-top: 1px solid var(--boccia-line); display: flex; justify-content: space-between; padding: 10px 0; }
.boccia-history li span { color: var(--boccia-muted); font-size: 12px; }
.boccia-registration { background: #fff; border: 1px solid var(--boccia-line); border-radius: 18px; box-shadow: 0 10px 35px rgba(23,32,51,.07); color: var(--boccia-ink); margin: 24px 0; padding: 28px; }
.boccia-registration header span { color: var(--boccia-blue); font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.boccia-registration header h2 { margin: 5px 0; }
.boccia-registration header p { color: var(--boccia-muted); margin-top: 0; }
.boccia-registration fieldset { border: 1px solid var(--boccia-line); border-radius: 12px; margin: 18px 0; padding: 18px; }
.boccia-registration legend { font-weight: 700; padding: 0 7px; }
.boccia-registration__grid { display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.boccia-registration label { font-size: 14px; font-weight: 600; }
.boccia-registration input:not([type="checkbox"]), .boccia-registration select { background: #fff; border: 1px solid #cfd6df; border-radius: 7px; display: block; margin-top: 5px; min-height: 42px; padding: 8px 10px; width: 100%; }
.boccia-registration__team { display: block; margin: 18px 0; max-width: 520px; }
.boccia-registration__consent { display: block; font-weight: 400 !important; margin: 18px 0; }
.boccia-registration__hint { color: var(--boccia-muted); font-size: 13px; margin-bottom: 0; }
.boccia-registration__notice { background: #dcfce7; border-left: 4px solid #15803d; padding: 12px 14px; }
.boccia-registration__notice.is-error { background: #fee2e2; border-color: #b42318; }
.boccia-registration__trap { left: -10000px; position: absolute; }
.boccia-registration button { background: var(--boccia-blue); border: 0; border-radius: 7px; color: #fff; cursor: pointer; font: inherit; font-weight: 700; padding: 11px 18px; }

@media (max-width: 640px) {
	.boccia-card { border-radius: 12px; margin: 16px 0; }
	.boccia-card__title { align-items: start; flex-direction: column; gap: 8px; padding: 20px; }
	.boccia-results { padding: 20px; }
	.boccia-career-stats { grid-template-columns: repeat(2, 1fr); }
	.boccia-history { grid-template-columns: 1fr; }
	.boccia-registration { border-radius: 12px; padding: 20px; }
	.boccia-registration__grid { grid-template-columns: 1fr; }
}
