Hard rules
1. Mobile first
Mobile first: every page including parent login and welcome form designed for ~375px first: one column, tap targets >=44px, body text >=16px, no horizontal scroll, main action in thumb reach; larger screens only expand.
2. Parent Consent Gate
Parent Consent Gate: the welcome form has a required consent checkbox; the family cannot continue or save anything until checked. Text states what's collected (parent name, child first name, group chat permission, snack signup, child's badges, stats, progress, things to work on) and that photos of the child may appear on team content including jerseys and the team site only if the parent turns on Photo opt in for that child; parents can opt out per child anytime and request deletion. Store consent with timestamp and version.
3. Terms page optional
Terms page optional: a 'Read the full terms' link next to the checkbox opens a view-only /terms page (photo use on jerseys and site, data collected and why, per-child opt-in/opt-out and deletion, COPPA-aligned parental consent language, marked as a draft for legal review). Never require opening or scrolling it; checkbox alone is enough.
4. Per-child Photo opt in
Per-child Photo opt in toggle lives ONLY in the logged-in parent's own admin/settings area (default off), never on any public page. Enforced in the database via RLS: no public or other-family query can return a full photo unless that child's opt-in is true; otherwise only a blurred/silhouette version is served.
5. Public side is limited
Public side shows only season dates and highlights (no kids' names, photos, schedule details or roster). Schedule and roster are locked behind parent login.
6. Login
Login: a family creates an account with email and a password, then confirms the email. Returning families sign in with that email and password. No biometrics.
7. Color Contrast (mandatory)
Color Contrast (mandatory): All text meets WCAG AA contrast, at least 4.5 to 1 for normal text and 3 to 1 for large text and icons, on every screen size, especially mobile. No white text on light gray and no other low contrast pairs. Lime, white and soft gray never sit on each other as text and background; text on those three is always Jet Black, and lime text appears only on black. Measured brand pairs: black/white 21, black/gray 18.76, black/lime 17.87 pass; lime/white 1.18, white/gray 1.12, lime/gray 1.05 FAIL.
How this portal keeps the rules
The box above is the build contract. Parent login, the welcome form, and every team screen are one column at phone width. The consent checkbox blocks the welcome form. The terms page is linked and never required. Photo opt-in lives only in family settings and defaults off. The public page shows season dates and highlights. Sign-in is an email code, then a password.
Measured brand pairs
black on white
21.00 to 1. Passes WCAG AA.
black on gray
18.76 to 1. Passes WCAG AA.
black on lime
17.87 to 1. Passes WCAG AA.
lime on white
1.18 to 1. Fails. This pair is not used for text.
white on gray
1.12 to 1. Fails. This pair is not used for text.
lime on gray
1.05 to 1. Fails. This pair is not used for text.
Lime text is only placed on black. Text on white, soft gray, and lime is black. An automated contrast check, including axe, fails the build if a bad pair is introduced.
Season goals
Players are permanent. A season roster links them to each season they play. Games belong to a season and goals belong to games. The big Season goals number is the count of this player goal rows in the one active season. Coach Faas ends a season by typing its name. Nothing is deleted. The next season starts at 0, and past totals stay in Season history and the progression chart.