/*
 * La Compo: the blue of a table tennis table, a white ball, an orange accent for what to do. A club look: condensed capitals as on a
 * scoreboard, frank colours, always on a light ground. Made for the phone first: a tab bar under the thumb, wider
 * screens only centre it.
 */
:root {
    --ground: #eef1f5;
    --surface: #ffffff;
    --surface-2: #f7f9fb;
    --line: #dce2e9;
    --line-strong: #c9d3de;
    --ink: #13202e;
    --ink-2: #3d4b5a;
    --muted: #5a6878;
    --table: #1d4f87;
    --table-deep: #133b66;
    --on-table: #ffffff;
    --table-soft: #c5d6ea;
    --accent: #f28c38;
    /* The ball, white, shaded to stand out on a light ground too. */
    --ball: radial-gradient(circle at 32% 26%, #ffffff 0 6%, #f6f8fa 16%, #e3e8ee 40%, #c2cbd6 68%, #8f9cad 100%);
    /* Its roundness: shade on the side away from the light, a faint rim, a shadow cast down (in em: the O scales). */
    --ball-volume: inset -.07em -.09em .16em rgba(19, 32, 46, .32), inset .03em .03em .05em rgba(255, 255, 255, .9), 0 .12em .22em rgba(0, 0, 0, .3);
    --ball-edge: 0 0 0 1px rgba(19, 32, 46, .14);
    /* The three stars of a match ball, printed on the big ones (home page). */
    --ball-stars: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 25'%3E%3Cpath fill='%23f28c38' d='M7.0 8.6L10.8 12.8L16.1 10.9L13.3 15.8L16.8 20.2L11.2 19.1L8.1 23.8L7.5 18.1L2.0 16.6L7.2 14.3ZM30.0 1.0L31.9 6.3L37.6 6.5L33.1 10.0L34.7 15.5L30.0 12.3L25.3 15.5L26.9 10.0L22.4 6.5L28.1 6.3ZM53.0 8.6L52.8 14.3L58.0 16.6L52.5 18.1L51.9 23.8L48.8 19.1L43.2 20.2L46.7 15.8L43.9 10.9L49.2 12.8Z'/%3E%3C/svg%3E");
    --on-accent: #13202e;
    --accent-ink: #9a4a0a;
    --accent-soft: #fff1e4;
    --accent-light: #ffc58f;
    --yes: #1f7a45; --yes-bg: #e3f3e9;
    --maybe: #6b4000; --maybe-bg: #fcefd5; --maybe-dot: #c27c0e;
    --no: #b3261e; --no-bg: #fbe7e5;
    --none-dot: #8c99a6;
    --shadow: 0 1px 2px rgba(19, 32, 46, .08);
    --shadow-up: 0 1px 2px rgba(19, 32, 46, .08), 0 8px 24px rgba(19, 32, 46, .08);
    --display: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;
    --body: "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;
    --r: 16px;
    --r-sm: 12px;
    --topbar: 56px;
    --tabbar: 64px;
    --safe-bottom: env(safe-area-inset-bottom, 0px);
    /* Always light, as the club's colours were drawn: the form controls too, whatever the device says. */
    color-scheme: light;
}
/* Basics */
* { box-sizing: border-box; }
body { margin: 0; background: var(--ground); color: var(--ink); font-family: var(--body); font-size: 16px; line-height: 1.45; -webkit-tap-highlight-color: transparent; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; line-height: 1; margin: 0; text-transform: uppercase; text-wrap: balance; }
h1 { font-size: 2.1rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: .8rem; font-family: var(--body); font-weight: 700; letter-spacing: .08em; color: var(--ink-2); }
p { margin: 0; }
a { color: var(--table); }
img { max-width: 100%; }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.icon { flex: none; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.eyebrow { font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.lead { font-size: 1.05rem; color: var(--ink-2); margin-top: 6px; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
@media (max-width: 479px) { .wide-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* The page */
.page { max-width: 720px; margin: 0 auto; padding: 18px 16px 40px; display: grid; gap: 16px; align-content: start; }
.has-tabbar .page { padding-bottom: calc(var(--tabbar) + var(--safe-bottom) + 28px); }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.page-head h1 { overflow-wrap: anywhere; }
.page-head--center { align-items: center; }
.page-intro { display: grid; gap: 6px; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.card { background: var(--surface); border-radius: var(--r); box-shadow: var(--shadow); padding: 16px; }
.empty { padding: 20px; border: 2px dashed var(--line-strong); border-radius: var(--r); color: var(--muted); text-align: center; }

/* Header */
.topbar { position: sticky; top: 0; z-index: 25; background: var(--table-deep); color: var(--on-table); }
.topbar__inner { max-width: 720px; height: var(--topbar); margin: 0 auto; padding: 0 12px 0 16px; display: flex; align-items: center; gap: 8px; }
.brand { display: inline-flex; align-items: center; color: inherit; text-decoration: none; }
.topbar__back { display: inline-flex; align-items: center; gap: 2px; min-height: 44px; margin-left: -10px; padding: 0 8px 0 2px; color: inherit; text-decoration: none; font-weight: 600; min-width: 0; }
.topbar__back span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.team-switch { margin-left: auto; }
.team-switch summary { display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: 999px; background: rgba(255, 255, 255, .14); font-weight: 600; max-width: 46vw; }
.team-switch__current { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.me { margin-left: auto; }
.team-switch + .me { margin-left: 0; }
.me summary { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; }
.avatar { width: 34px; height: 34px; border-radius: 50%; flex: none; object-fit: cover; }
.me .avatar { border: 2px solid rgba(255, 255, 255, .5); }
.avatar--initials { display: grid; place-items: center; background: var(--accent); color: var(--on-accent); font-weight: 700; font-size: .8rem; }

/* Menus (details.dropdown) */
.dropdown { position: relative; }
.dropdown summary { list-style: none; cursor: pointer; }
.dropdown summary::-webkit-details-marker { display: none; }
.dropdown__menu { position: absolute; top: calc(100% + 6px); left: 0; z-index: 30; min-width: 220px; padding: 6px; display: grid; gap: 2px; background: var(--surface); color: var(--ink); border-radius: var(--r-sm); box-shadow: 0 12px 32px rgba(19, 32, 46, .22); border: 1px solid var(--line); }
.dropdown__menu--end { left: auto; right: 0; }
.dropdown__menu form { margin: 0; }
.dropdown__menu a, .dropdown__menu button { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 44px; padding: 0 12px; border: 0; border-radius: 8px; background: none; color: var(--ink); text-decoration: none; font-weight: 600; text-align: left; cursor: pointer; }
.dropdown__menu a:hover, .dropdown__menu button:hover:not(:disabled) { background: var(--surface-2); }
.dropdown__menu a[aria-current="page"] { color: var(--table); }
.dropdown__menu a[aria-current="page"]::after { content: ""; width: 8px; height: 8px; margin-left: auto; border-radius: 50%; background: var(--accent); }
.dropdown__menu button:disabled { color: var(--muted); opacity: .5; cursor: default; }
.dropdown__menu .dropdown__danger { color: var(--no); }
.dropdown__menu .badge { margin-left: auto; }
/* The current team, its badge said: no dot beside it. */
.dropdown__menu a[aria-current="page"]:has(.badge)::after { display: none; }
.team-switch summary { position: relative; }
.team-switch__waiting { position: absolute; top: -2px; right: -2px; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 2px var(--table-deep); }
/* What a place has to answer, in the switcher (US 026). */
.badge { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-size: .75rem; font-weight: 800; }
.dropdown__heading { margin: 6px 12px 2px; font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.dropdown__heading:first-child { margin-top: 4px; }

/* Tab bar: at the bottom on a phone, under the header on a wide screen */
.tabbar { position: fixed; z-index: 20; left: 0; right: 0; bottom: 0; height: calc(var(--tabbar) + var(--safe-bottom)); padding-bottom: var(--safe-bottom); display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); background: var(--surface); border-top: 1px solid var(--line); }
.tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: var(--muted); text-decoration: none; font-size: .78rem; font-weight: 600; }
.tabbar a[aria-current="page"] { color: var(--table); font-weight: 700; box-shadow: inset 0 3px 0 var(--accent); }
@media (min-width: 760px) {
    .tabbar { position: sticky; top: var(--topbar); bottom: auto; height: 52px; padding: 0 calc((100vw - 720px) / 2); grid-auto-columns: max-content; grid-auto-flow: column; justify-content: start; gap: 4px; border-top: 0; border-bottom: 1px solid var(--line); }
    .tabbar a { flex-direction: row; gap: 8px; padding: 0 16px; font-size: .95rem; }
    .tabbar a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--accent); }
    .has-tabbar .page { padding-bottom: 48px; }
}

/* Buttons */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: var(--r-sm); border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); font-weight: 700; text-decoration: none; cursor: pointer; white-space: nowrap; }
.button:hover { border-color: var(--table); }
.button--primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.button--primary:hover { border-color: var(--accent-ink); }
.button--secondary { color: var(--table); }
.button--ghost { border-color: transparent; background: transparent; color: var(--ink-2); }
.button--danger { background: var(--no); border-color: var(--no); color: #fff; }
.button--google { width: 100%; min-height: 52px; font-size: 1.05rem; }
.button--block { width: 100%; min-height: 52px; font-size: 1.05rem; }
/* Not to be taken for one that works: grey, flat, whatever its kind. */
.button:disabled, .button:disabled:hover { background: var(--surface-2); border-color: var(--line); color: var(--muted); box-shadow: none; cursor: not-allowed; }
.icon-button { display: inline-grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: var(--r-sm); border: 0; background: transparent; color: var(--ink-2); cursor: pointer; }
.icon-button--outline { border: 1px solid var(--line-strong); background: var(--surface); color: var(--table); }

/* Messages */
.flashes { display: grid; gap: 8px; }
.flashes:empty { display: none; }
.flash { display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-radius: var(--r-sm); font-weight: 600; }
.flash--error { background: var(--no-bg); color: var(--no); }
.flash--success { background: var(--yes-bg); color: var(--yes); }
.flash--warning { background: var(--maybe-bg); color: var(--maybe); }
.flash[hidden] { display: none; }

/* Small statuses */
.chip { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 999px; font-size: .75rem; font-weight: 700; background: var(--surface-2); color: var(--muted); }
.chip--in { background: var(--accent); color: var(--on-accent); }
.status { display: inline-flex; align-items: center; gap: 4px; font-size: .85rem; font-weight: 700; color: var(--muted); white-space: nowrap; }
.status--validated, .status--lineup-validated { color: var(--yes); }
.status--lineup-ready { color: var(--table); }
.status--lineup-incomplete { color: var(--no); }
.status--short { color: var(--no); }
/* A day not known yet (US 018). */
.status--postponed { color: var(--maybe); text-transform: uppercase; letter-spacing: .04em; }
.date-tile--unknown { justify-content: center; }
.date-tile--unknown .date-tile__dom { color: var(--muted); }
.encounter-item__postponed { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.postponed { display: grid; gap: 12px; justify-items: start; }
.dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.dot--yes { background: var(--yes); }
.dot--maybe { background: var(--maybe-dot); }
.dot--none { background: var(--none-dot); }
.dot--no { background: var(--no); }

/* Segmented controls: upcoming / past, and the answers */
.answer__form { margin: 0; }
.answer__comment { display: flex; gap: 6px; margin-top: 6px; }
.answer__field { position: relative; display: flex; flex: 1; min-width: 0; }
.answer__comment input { flex: 1; min-width: 0; min-height: 40px; padding: 0 10px; border-radius: 10px; border: 1px solid var(--maybe); background: var(--surface); color: var(--ink); font: inherit; font-size: .9rem; }
.answer__comment button { min-height: 40px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--maybe); background: var(--maybe-bg); color: var(--maybe); font-size: .9rem; font-weight: 700; cursor: pointer; }
.answer__saved { position: absolute; right: 10px; top: 50%; translate: 0 -50%; display: grid; color: var(--yes); pointer-events: none; animation: answer-saved 4s ease-in forwards; }
.answer__comment button[hidden] { display: none; }
/* The room of the check is always kept: the field never changes size. */
.answer__field input { padding-right: 32px; }
.answer__field--saved input { animation: answer-saved-border 4s ease-in forwards; }
@keyframes answer-saved { 0%, 75% { opacity: 1; } 100% { opacity: 0; } }
@keyframes answer-saved-border { 0%, 75% { border-color: var(--yes); } 100% { border-color: var(--maybe); } }
.segmented { display: inline-flex; gap: 6px; }
.segmented button { min-height: 40px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink-2); font-size: .9rem; font-weight: 700; cursor: pointer; }
.segmented button:hover { border-color: var(--table); }
.segmented__yes[aria-pressed="true"] { background: var(--yes); border-color: var(--yes); color: var(--surface); }
.segmented__maybe[aria-pressed="true"] { background: var(--maybe-bg); border-color: var(--maybe); color: var(--maybe); }
.segmented__no[aria-pressed="true"] { background: var(--no); border-color: var(--no); color: var(--surface); }
.answer-chip { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 999px; font-size: .85rem; font-weight: 700; }
.answer-chip--yes { background: var(--yes-bg); color: var(--yes); }
.answer-chip--maybe { background: var(--maybe-bg); color: var(--maybe); }
.answer-chip--no { background: var(--no-bg); color: var(--no); }
.answer-chip--none { color: var(--muted); border: 1px dashed var(--line-strong); font-weight: 600; }

/* Encounters: the list */
.encounters { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.encounter-item { background: var(--surface); border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; }
.encounter-item--next { box-shadow: var(--shadow-up); }
.encounter-item--past { opacity: .8; }
.encounter-item__banner { display: flex; justify-content: space-between; gap: 8px; padding: 8px 14px; background: var(--table); color: var(--on-table); font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.encounter-item__banner span + span { color: var(--accent-light); }
.encounter-card { display: flex; align-items: center; gap: 14px; padding: 12px 14px; color: inherit; text-decoration: none; }
.encounter-card:hover .encounter-card__opponent { color: var(--table); }
.date-tile { flex: none; width: 58px; padding: 6px 0; border-radius: var(--r-sm); background: var(--ground); display: flex; flex-direction: column; align-items: center; text-transform: uppercase; }
.date-tile__dow, .date-tile__month { font-size: .7rem; font-weight: 700; letter-spacing: .1em; color: var(--muted); }
.date-tile__dom { font-family: var(--display); font-size: 2rem; font-weight: 800; line-height: .95; color: var(--table); }
.encounter-card__what { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.encounter-card__opponent { font-family: var(--display); font-size: 1.45rem; font-weight: 700; line-height: 1.05; overflow-wrap: anywhere; }
.encounter-card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; font-size: .9rem; font-weight: 600; color: var(--table); }
.encounter-card__time { font-variant-numeric: tabular-nums; }
.encounter-card__place { font-size: .9rem; color: var(--muted); }
/* The next one: on the blue of the table, under its banner, a step apart from the ones after */
.encounter-item--next { margin-bottom: 8px; }
.encounter-item--next .encounter-card { padding: 6px 16px 18px; background: var(--table); color: var(--on-table); }
.encounter-item--next .encounter-card:hover .encounter-card__opponent { color: var(--on-table); }
.encounter-item--next .date-tile { width: 68px; background: rgba(255, 255, 255, .12); }
.encounter-item--next .date-tile__dow, .encounter-item--next .date-tile__month { color: var(--table-soft); }
.encounter-item--next .date-tile__dom { font-size: 2.6rem; color: #fff; }
.encounter-item--next .encounter-card__opponent { font-size: 2rem; }
.encounter-item--next .encounter-card__meta { color: var(--accent-light); }
.encounter-item--next .encounter-card__place { color: var(--table-soft); }
.encounter-item__answers { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 10px 14px; border-top: 1px solid var(--line); }
.encounter-item__question { font-weight: 700; }
.pending { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin-left: auto; font-size: .85rem; color: var(--muted); }
.tally { display: inline-flex; align-items: center; gap: 5px; font-variant-numeric: tabular-nums; }
.lineup-strip { display: flex; align-items: center; gap: 10px; width: 100%; }
.lineup-strip--in { margin: -2px -4px; padding: 10px 12px; width: calc(100% + 8px); border-radius: var(--r-sm); background: var(--accent-soft); }
.lineup-strip__badge { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: var(--on-accent); }
.lineup-strip__who { display: flex; flex-direction: column; min-width: 0; }
.lineup-strip__title { font-family: var(--display); font-size: 1.15rem; font-weight: 700; text-transform: uppercase; color: var(--accent-ink); line-height: 1.1; }
.lineup-names { display: flex; flex-wrap: wrap; gap: 0 6px; margin: 0; padding: 0; list-style: none; font-size: .95rem; color: var(--ink-2); }
.lineup-names li:not(:last-child)::after { content: " ·"; color: var(--muted); }
.lineup-names__me { font-weight: 700; color: var(--accent-ink); }

/* An encounter: the poster */
.encounter { margin: 0 -16px; padding: 18px 20px 22px; background: var(--table); color: var(--on-table); }
.flashes:empty + .encounter { margin-top: -18px; }
.encounter__top { display: flex; align-items: center; gap: 8px; }
.encounter .eyebrow { color: var(--accent-light); }
.encounter .eyebrow::first-letter { text-transform: uppercase; }
.venue-pill { display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 10px; margin-left: auto; border-radius: 999px; background: rgba(255, 255, 255, .16); font-size: .8rem; font-weight: 700; white-space: nowrap; }
.encounter__menu summary { display: grid; place-items: center; width: 44px; height: 44px; margin: -9px -10px -9px 0; border-radius: 50%; color: var(--on-table); }
.matchup { display: flex; flex-direction: column; gap: 6px; margin-top: 14px; font-size: 2.3rem; line-height: .95; overflow-wrap: anywhere; }
.matchup__vs { font-size: 1.1rem; letter-spacing: .12em; color: var(--accent); }
@media (min-width: 760px) {
    .encounter, .flashes:empty + .encounter { margin: 0; border-radius: var(--r); }
}
.where { display: grid; gap: 12px; }
.opposing-contact { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.opposing-contact > .icon { flex: none; color: var(--table); }
.opposing-contact__who { flex: 1 1 140px; min-width: 0; display: flex; flex-direction: column; }
.opposing-contact__who span { color: var(--muted); font-size: .85rem; }
.opposing-contact__actions { display: flex; gap: 8px; align-items: center; margin-left: auto; }
.encounter__where { display: flex; gap: 10px; align-items: flex-start; }
.encounter__where .icon { color: var(--table); margin-top: 2px; }
.encounter__where > span { display: flex; flex-direction: column; }
.encounter__where span span { color: var(--muted); }
.answer-by--passed .icon, .answer-by--passed strong { color: var(--no); }
.encounter__notes { color: var(--ink-2); padding: 10px 12px; border-radius: var(--r-sm); background: var(--surface-2); }
.where__actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; }

/* The squad: where I stand, the line-up, the players */
.squad { display: grid; gap: 18px; }
.you-play { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 10px 12px; padding: 14px 16px; border-radius: var(--r); background: var(--accent-soft); color: var(--ink); }
.you-play--validated { background: var(--accent); color: var(--on-accent); }
.you-play__badge { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--accent); color: var(--on-accent); }
.you-play--validated .you-play__badge { background: var(--on-accent); color: var(--accent); }
.you-play__text { display: flex; flex-direction: column; }
.you-play__text strong { font-family: var(--display); font-size: 1.8rem; font-weight: 800; line-height: 1; text-transform: uppercase; }
.you-play:not(.you-play--validated) .you-play__text strong { color: var(--accent-ink); font-size: 1.4rem; }
.you-play__text span { font-weight: 600; }
/* My answer: a card as the others, its three buttons the width of it; orange while it is still to give. */
.my-answer { display: grid; gap: 12px; padding: 16px; border-radius: var(--r); background: var(--surface); box-shadow: var(--shadow); }
.my-answer--to-give { box-shadow: inset 0 4px 0 var(--accent), var(--shadow); }
.my-answer__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.my-answer__title { margin: 0; font-size: 1.5rem; }
.my-answer__badge { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-ink); font-size: .8rem; font-weight: 700; white-space: nowrap; }
.my-answer .segmented { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; gap: 8px; }
.my-answer .segmented button { min-height: 48px; font-size: 1rem; }
.you-play__withdraw { grid-column: 1 / -1; display: flex; justify-content: flex-end; padding-top: 6px; border-top: 1px solid rgba(19, 32, 46, .2); }
.answer__withdraw { min-height: 32px; padding: 0; border: 0; background: none; color: inherit; font: inherit; font-size: .85rem; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; opacity: .85; }
.answer__withdraw:hover { opacity: 1; }

.lineup { display: grid; gap: 10px; }
.lineup__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; }
.lineup__count { font-family: var(--display); font-size: 1.35rem; font-weight: 700; color: var(--table); font-variant-numeric: tabular-nums; }
.lineup__head .status { margin-left: auto; }
.lineup__slots { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; counter-reset: slot; }
.slot { display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 6px 6px 6px 12px; border-radius: 14px; background: var(--table); color: var(--on-table); counter-increment: slot; }
.slot::before { content: counter(slot); flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--accent); color: var(--on-accent); font-family: var(--display); font-size: 1.05rem; font-weight: 800; }
.slot--me { background: var(--table-deep); box-shadow: inset 0 0 0 2px var(--accent); }
.slot__name { font-weight: 700; font-size: 1.05rem; }
.slot__comment { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .8rem; font-style: italic; opacity: .85; }
.slot__warn { height: 22px; padding: 0 8px; border-radius: 999px; background: var(--maybe-bg); color: var(--maybe); font-size: .75rem; font-weight: 700; display: inline-flex; align-items: center; }
.slot__invited { display: inline-grid; color: var(--table-soft); cursor: help; }
.slot__remove { margin: 0 0 0 auto; }
.slot__invited + .slot__remove { margin-left: 0; }
.slot > .slot__invited { margin-left: auto; }
.slot__remove button { display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: transparent; color: var(--on-table); cursor: pointer; }
.slot__remove button:hover { background: rgba(255, 255, 255, .14); }
.slot--free { background: transparent; color: var(--muted); border: 2px dashed var(--line-strong); font-weight: 600; }
.slot--free::before { background: transparent; border: 2px solid var(--line-strong); color: var(--muted); }
.lineup__empty { color: var(--muted); }
.lineup-share { display: grid; gap: 8px; }
.lineup-share [hidden] { display: none; }
.squad__edit > summary, .season > summary { list-style: none; }
.squad__edit > summary::-webkit-details-marker, .season > summary::-webkit-details-marker { display: none; }
.squad__edit[open] > summary { margin-bottom: 18px; }
/* The rest of the season, folded under the next three encounters */
.season[open] > summary { margin-bottom: 10px; }
.season[open] > summary .icon { transform: rotate(180deg); }
.lineup__draft { font-size: .9rem; color: var(--muted); }

.availability { display: grid; gap: 14px; }
.availability__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; }
.answer-group { display: grid; gap: 6px; }
.answer-group__title { display: flex; align-items: center; gap: 6px; }
.availability__list { list-style: none; margin: 0; padding: 0; border-radius: 14px; background: var(--surface); box-shadow: var(--shadow); overflow: hidden; }
.availability__row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 8px 8px 8px 12px; }
.availability__row + .availability__row { border-top: 1px solid var(--line); }
.availability__row--in { box-shadow: inset 4px 0 0 var(--accent); }
.availability__row .avatar { display: grid; place-items: center; width: 38px; height: 38px; font-size: .85rem; font-weight: 700; }
.avatar--yes { background: var(--yes-bg); color: var(--yes); }
.avatar--maybe { background: var(--maybe-bg); color: var(--maybe); }
.avatar--none { background: var(--ground); color: var(--ink-2); }
.avatar--no { background: var(--no-bg); color: var(--no); }
.availability__who { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.availability__line { display: flex; align-items: baseline; gap: 6px; }
.availability__name { font-weight: 700; }
.you { font-size: .8rem; font-weight: 700; color: var(--accent-ink); }
.availability__comment { font-size: .85rem; font-style: italic; color: var(--ink-2); overflow-wrap: anywhere; }
.availability__rotation, .roster__rotation { font-size: .82rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.availability__answer { flex-basis: 100%; padding-left: 50px; }
.pick { margin: 0; }
.pick__button { display: inline-flex; align-items: center; gap: 5px; min-height: 40px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--table); background: var(--surface); color: var(--table); font-weight: 700; cursor: pointer; }
.pick__button[aria-pressed="true"] { background: var(--table); color: var(--on-table); }
.pick__button:disabled { border-color: transparent; background: transparent; color: var(--muted); font-weight: 600; cursor: not-allowed; }
.answer-for { flex-basis: 100%; padding-left: 50px; }
.answer-for summary { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; list-style: none; cursor: pointer; font-size: .85rem; font-weight: 600; color: var(--muted); }
.answer-for summary::-webkit-details-marker { display: none; }
.answer-for[open] summary { margin-bottom: 6px; }
.validate-bar { position: sticky; bottom: calc(var(--tabbar) + var(--safe-bottom) + 12px); z-index: 10; margin: 0; }
.validate-bar .button:not(:disabled) { box-shadow: 0 8px 24px rgba(19, 32, 46, .25); }
.validate-bar__count { font-weight: 600; }
@media (min-width: 760px) { .validate-bar { bottom: 16px; } }

/* The team */
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.stat { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 10px 6px; border-radius: 14px; background: var(--surface); box-shadow: var(--shadow); color: var(--muted); font-size: .85rem; text-align: center; }
.stat strong { font-family: var(--display); font-size: 1.9rem; font-weight: 800; line-height: 1; color: var(--table); }
.stat--link { text-decoration: none; }
.stat--link:hover { background: var(--surface-2); }
.stat--wide { grid-column: 1 / -1; flex-direction: row; gap: 8px; color: var(--ink-2); font-weight: 600; font-size: .95rem; }
.stat--wide .icon { color: var(--table); }
.roster { display: grid; gap: 10px; }
.roster__list { list-style: none; margin: 0; padding: 0; border-radius: var(--r); background: var(--surface); box-shadow: var(--shadow); }
.roster__item { display: flex; align-items: center; gap: 12px; padding: 8px 4px 8px 12px; }
.roster__item + .roster__item { border-top: 1px solid var(--line); }
.roster__rank { width: 18px; flex: none; text-align: center; font-family: var(--display); font-size: 1.15rem; font-weight: 800; color: var(--none-dot); }
.roster__item .avatar { display: grid; place-items: center; width: 38px; height: 38px; font-size: .85rem; font-weight: 700; }
.avatar--linked { background: var(--table); color: var(--on-table); }
.avatar--pending { background: var(--surface); color: var(--muted); border: 2px dashed var(--line-strong); }
.roster__who { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.roster__line { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 8px; }
.roster__name { font-weight: 700; }
.roster__captain { font-size: .78rem; font-weight: 700; color: var(--accent-ink); }
.roster__sub { font-size: .85rem; color: var(--muted); overflow-wrap: anywhere; }
.roster__tools summary { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: var(--ink-2); }
.former { padding: 12px 14px; border: 2px dashed var(--line-strong); border-radius: var(--r); }
.former summary { cursor: pointer; font-weight: 600; }
.former ul { margin: 8px 0; padding-left: 20px; }

/* Forms */
.form { display: grid; gap: 16px; }
.form[hidden] { display: none; }
.form__fields { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 700; }
.field input:not([type="radio"]):not([type="checkbox"]), .field textarea, .field select { width: 100%; min-height: 48px; padding: 10px 12px; font: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--r-sm); }
.field textarea { min-height: 96px; }
.field input:focus, .field textarea:focus, .field select:focus { outline: 3px solid var(--accent); outline-offset: 0; border-color: transparent; }
.field__help { font-size: .88rem; color: var(--muted); }
.field__check { display: flex; align-items: center; gap: 10px; }
.field__check input { width: 22px; height: 22px; margin: 0; flex: none; accent-color: var(--table); }
.field--check .field__help { padding-left: 32px; }
.field__error { font-size: .9rem; font-weight: 600; color: var(--no); }
.field--error input, .field--error textarea { border-color: var(--no); }
.field > div:has(> input[type="radio"]) { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 0; padding: 3px; border-radius: var(--r-sm); background: var(--line); }
.field > div:has(> input[type="radio"]) input { position: absolute; opacity: 0; pointer-events: none; }
.field > div:has(> input[type="radio"]) label { display: grid; place-items: center; min-height: 42px; border-radius: 10px; font-weight: 600; color: var(--ink-2); cursor: pointer; }
.field > div:has(> input[type="radio"]) input:checked + label { background: var(--surface); color: var(--ink); font-weight: 700; box-shadow: 0 1px 2px rgba(19, 32, 46, .15); }
.field > div:has(> input[type="radio"]) input:focus-visible + label { outline: 3px solid var(--accent); }
.form__actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.confirm { display: grid; gap: 14px; }
.confirm h1 { font-size: 1.8rem; }

/* The logo: LA COMPO, the O being the ball */
.logo { display: inline-flex; margin: 0; font-family: var(--display); font-weight: 800; line-height: .82; text-transform: uppercase; letter-spacing: .01em; }
.logo__word { display: inline-flex; align-items: baseline; gap: .14em; }
.logo__la { font-size: .5em; color: var(--accent-ink); }
.logo__main { display: inline-flex; align-items: baseline; }
.logo__o { display: inline-block; width: .64em; height: .64em; margin: 0 .03em; border-radius: 50%; background: var(--ball); box-shadow: var(--ball-edge); transform-origin: 50% 100%; }
.brand { font-size: 1.6rem; }
.brand .logo__la { color: var(--accent-light); }

/* Home: on the blue of the table, the ball bounces on the letters of the logo and lands as its O */
.home { min-height: 100vh; min-height: 100dvh; background: radial-gradient(120% 100% at 50% 0%, #2b66a8 0%, var(--table) 55%, var(--table-deep) 100%) no-repeat top / 100% 900px var(--table-deep); color: var(--on-table); }
.home .muted { color: var(--table-soft); }
.login { max-width: 440px; width: 100%; margin: 0 auto; padding-top: 4vh; display: grid; gap: 22px; justify-items: center; text-align: center; }
.rally { position: relative; width: 100%; padding-top: 100px; display: grid; justify-items: center; gap: 20px; overflow-x: clip; cursor: default; }
.rally--played { cursor: pointer; }
.rally__ball { position: absolute; left: 0; top: 0; z-index: 3; border-radius: 50%; box-shadow: var(--ball-volume); pointer-events: none; will-change: transform; }
.logo--hero { font-size: clamp(4.4rem, 25vw, 7.5rem); color: #fff; }
.logo--hero .logo__la { color: var(--accent); }
.logo--hero .logo__o { box-shadow: var(--ball-volume); }
.rally__ball, .logo--hero .logo__o { background: var(--ball-stars) 50% 28% / 60% auto no-repeat, var(--ball); }
.rally--waiting .logo__o { visibility: hidden; }
.rally--waiting .login__tagline { opacity: 0; }
.login__tagline { display: inline-block; padding: 2px 14px; border: 3px solid var(--accent); border-radius: 10px; font-family: var(--display); font-size: 1.8rem; font-weight: 800; text-transform: uppercase; color: var(--accent); transform: rotate(-3deg); }
.home .button--google { border-color: transparent; box-shadow: 0 8px 24px rgba(0, 0, 0, .2); }
/* Signing in with a link (US 019): under the main button, then its own pages. */
.login__alternative { display: inline-flex; align-items: center; min-height: 44px; color: #fff; text-decoration: underline; }
.login__card { width: 100%; padding: 22px 20px; display: grid; gap: 14px; text-align: left; color: var(--ink); }
.login__card h1 { font-size: 1.5rem; }
.login__card .muted { color: var(--muted); }
.login__message { font-size: 1.1rem; font-weight: 600; }
/* The privacy policy, linked from the login page (Google asks for it). */
/* The links the law asks for (US 016), at the end of every page; light on the dark login page. */
.site-footer { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 16px; margin-top: 24px; font-size: .85rem; }
.site-footer a { color: var(--muted); }
.home .site-footer a { color: var(--table-soft); }
.confirm__list { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.legal dl { margin: 0; display: grid; gap: 4px 12px; }
.legal dt { font-weight: 700; }
.legal dd { margin: 0 0 8px; }
.privacy { display: grid; gap: 8px; }
.privacy h2 { font-size: 1.3rem; }
.home .dev-login { border-color: rgba(255, 255, 255, .3); }
.home .dev-login .eyebrow { color: var(--table-soft); }
.home .dev-login a { color: #fff; }
.dev-login { width: 100%; margin-top: 12px; padding: 14px; border: 2px dashed var(--line-strong); border-radius: var(--r); text-align: left; }
.dev-login ul { margin: 8px 0 0; padding: 0; list-style: none; display: grid; gap: 6px; }

/* Administration and clubs (US 008, US 012) */
.admin-links { display: grid; gap: 8px; }
.admin-clubs__link { color: inherit; text-decoration: none; padding: 4px 0; }
.club-teams > li + li { border-top: 1px solid var(--line); }
.opponent-form__title { display: flex; align-items: center; gap: 8px; }
.opponent-form__title .icon { flex: none; color: var(--table); }
.opponent-form__lead { margin-top: 4px; font-size: .9rem; color: var(--muted); }
.opponent-form__pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.opponents-block { display: grid; gap: 12px; }
.opponents-block [hidden] { display: none; }
.opponents-filter, .list-filter { display: flex; align-items: center; gap: 12px; }
.opponents-filter .field, .list-filter .field { flex: 1; min-width: 0; }
.opponents-filter .field__check, .list-filter .field__check { flex: none; }
.team-captain { display: grid; gap: 12px; }
.team-captain__change { display: grid; gap: 12px; }
.team-captain__change summary { list-style: none; justify-self: start; }
.team-captain__change summary::-webkit-details-marker { display: none; }
.team-captain__change[open] summary { display: none; }
.club-players-block { display: grid; gap: 12px; }
.club-players-block [hidden] { display: none; }
/* The teams of a player: big enough for a finger. */
.club-players__teams { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.team-chip { display: inline-flex; align-items: center; min-height: 36px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface-2); color: var(--table); font-size: .88rem; font-weight: 700; text-decoration: none; }
.team-chip:hover { border-color: var(--table); }
.team-chip__role { font-weight: 600; color: var(--muted); white-space: pre; }
/* The separators between the items shown only: a hidden one leaves none above the first. */
.opponents .roster__item + .roster__item { border-top: 0; }
.opponents .roster__item:not([hidden]) ~ .roster__item:not([hidden]) { border-top: 1px solid var(--line); }
.opponents__link { flex: 1; min-width: 0; color: inherit; text-decoration: none; }
.club-teams__link { color: inherit; text-decoration: none; padding-right: 12px; }
.club-teams__link > .icon { flex: none; color: var(--muted); }
.club-teams__link:hover { background: var(--surface-2); }
.club-teams > li:first-child .club-teams__link { border-radius: var(--r) var(--r) 0 0; }
.club-teams > li:last-child .club-teams__link { border-radius: 0 0 var(--r) var(--r); }
.club-teams > li:only-child .club-teams__link { border-radius: var(--r); }
.avatar--team { border-radius: 10px; background: var(--table); color: var(--on-table); }
.club-block { display: grid; gap: 10px; }

/* The subscription to the calendar of a team (US 015) */
.calendar-feed { display: grid; gap: 12px; justify-items: start; }
.calendar-feed .field { justify-self: stretch; }
.calendar-feed__copy { display: flex; gap: 8px; }
.calendar-feed__copy input { min-width: 0; flex: 1; font-size: .85rem; }
.page-head__actions { display: flex; gap: 8px; flex: none; }
/* An icon alone on a phone, a square to touch. */
@media (max-width: 479px) { .button--icon-narrow { width: 44px; padding: 0; } }
.not-selected { margin: 0; font-size: .9rem; font-weight: 600; color: var(--muted); }
.lineup-strip__status { display: grid; justify-items: end; gap: 2px; margin-left: auto; text-align: right; }
.not-selected--banner { padding: 12px 14px; border-radius: var(--r); background: var(--surface); box-shadow: var(--shadow); }
.club-season { display: grid; gap: 10px; justify-items: start; }
.club-season .former { justify-self: stretch; }
.club-past { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; }
.club-past li { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.club-past a:first-child { font-weight: 700; color: var(--ink); }
.club-past__take { margin-left: auto; min-height: 36px; }
.admin-user form, .club-manager form { margin: 0; flex: none; }

