:root {
  --bg: #f2f4fa;
  --card: #ffffff;
  --ink: #1d1b19;
  --muted: #5f6577;
  --line: #dfe3ee;
  /* club colours from the crest: blue, white, orange */
  --brand: #1f2a8a;
  --brand-ink: #ffffff;
  --accent: #f07f1a;
  --accent-ink: #ffffff;
  --viewer: #5f6577;
  --brand-text: #1f2a8a;
  --live: #d62828;
  --ok: #2a9d4b;
  --naranja: #f08a24;
  --blanco: #c9c9c9;
  --azul: #2563eb;
  --rojo: #dc2626;
  --verde: #16a34a;
  --amarillo: #eab308;
  --negro: #1f2937;
  --morado: #7c3aed;
  --radius: 14px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1220;
    --card: #1a1e30;
    --ink: #f2efea;
    --muted: #a1a7bd;
    --line: #2c3250;
    --blanco: #e5e5e5;
    --negro: #9ca3af;
    --brand-text: #8f9bff;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
/* App shell: header and tab bar are fixed rows of a full-height column and only
   <main> scrolls, so mobile browsers' collapsing toolbars can't move the tab bar. */
body {
  font: 16px/1.4 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--ink);
  display: flex; flex-direction: column;
  height: 100vh; height: 100dvh;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
}
a { color: inherit; }
h2 { font-size: 1.05rem; margin: 0 0 8px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
h3 { margin: 0 0 12px; }
pre { white-space: pre-wrap; font-size: 12px; color: var(--muted); }

.top {
  flex: none; z-index: 5;
  display: flex; align-items: center; justify-content: space-between;
  padding: calc(8px + env(safe-area-inset-top)) 16px 8px;
  background: var(--brand); color: var(--brand-ink);
  border-bottom: 4px solid var(--accent);
  box-shadow: 0 2px 0 #fff inset;
}
.brand-logo { height: 34px; width: auto; }
.brand { display: flex; align-items: center; gap: 8px; font-weight: 800; text-decoration: none; font-size: 1.1rem; }
.lang { background: rgba(255,255,255,.2); color: inherit; border: 0; border-radius: 999px; padding: 6px 12px; font-weight: 700; }

main {
  flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
  padding: 12px max(16px, calc((100% - 720px) / 2)) 24px;
}

.nav {
  flex: none; z-index: 5;
  display: flex; justify-content: space-around;
  background: var(--card); border-top: 1px solid var(--line);
  padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
}
.nav a { display: flex; flex-direction: column; align-items: center; font-size: 11px; text-decoration: none; color: var(--muted); padding: 4px 6px; min-width: 56px; }
.nav a span { font-size: 22px; line-height: 1.1; }
.nav a.on { color: var(--brand-text); font-weight: 700; }
.nav a.on span { border-bottom: 3px solid var(--accent); }

.card { background: var(--card); border-radius: var(--radius); padding: 14px; margin: 12px 0; border: 1px solid var(--line); }
.squad { border-left: 6px solid var(--line); }
.squad-naranja { border-left-color: var(--naranja); }
.squad-blanco { border-left-color: var(--blanco); }
.squad-azul { border-left-color: var(--azul); }
.squad-rojo { border-left-color: var(--rojo); }
.squad-verde { border-left-color: var(--verde); }
.squad-amarillo { border-left-color: var(--amarillo); }
.squad-negro { border-left-color: var(--negro); }
.squad-morado { border-left-color: var(--morado); }

.names { color: var(--muted); margin: 0 0 8px; font-size: 14px; }
.meet { margin-left: auto; font-size: 13px; font-weight: 600; background: var(--bg); border-radius: 999px; padding: 2px 10px; }
.meetedit { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); margin-bottom: 8px; }
.meetedit input { width: auto; }
.hint { color: var(--muted); font-size: 14px; }
.empty { color: var(--muted); text-align: center; padding: 24px 0; }
.muted { opacity: .55; }

.tabs { display: flex; gap: 6px; background: var(--card); padding: 4px; border-radius: 999px; border: 1px solid var(--line); }
.tab { flex: 1; border: 0; background: none; padding: 10px; border-radius: 999px; font-weight: 700; color: var(--muted); font-size: 15px; }
.tab.on { background: var(--brand); color: var(--brand-ink); }

.daybar { display: flex; gap: 6px; overflow-x: auto; padding: 10px 0 2px; align-items: center; scrollbar-width: none; }
.daybar input { width: auto; flex: none; }
.chip { flex: none; border: 1px solid var(--line); background: var(--card); color: var(--ink); border-radius: 999px; padding: 8px 12px; font-size: 14px; white-space: nowrap; }
.chip.on { border-color: var(--accent); color: var(--accent); font-weight: 700; }
.colors { display: flex; flex-wrap: wrap; gap: 8px; }

.match {
  display: grid; grid-template-columns: 56px 1fr auto; gap: 8px; align-items: center;
  padding: 10px 0; border-top: 1px solid var(--line); text-decoration: none;
}
.match.mini { grid-template-columns: 56px 1fr auto; font-size: 14px; }
.time { font-weight: 700; font-variant-numeric: tabular-nums; display: flex; flex-direction: column; }
.time small { font-weight: 400; color: var(--muted); font-size: 11px; }
.teams { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: center; min-width: 0; }
.side { display: flex; align-items: center; gap: 10px; min-width: 0; }
.side.opp span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.score { font-weight: 800; font-size: 1.15rem; font-variant-numeric: tabular-nums; }

.crest { width: 40px; height: 40px; object-fit: contain; flex: none; border-radius: 8px; }
.crest.sm { width: 26px; height: 26px; border-radius: 6px; }
.crest.lg { width: 64px; height: 64px; border-radius: 12px; }
.match .crest.sm { width: 40px; height: 40px; border-radius: 8px; }
.crest-empty { display: inline-grid; place-items: center; background: var(--line); color: var(--muted); font-weight: 800; }
.crest.lg.crest-empty { font-size: 28px; }

.badge { font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 999px; text-transform: uppercase; letter-spacing: .03em; background: var(--line); color: var(--muted); }
.badge-live { background: var(--live); color: #fff; animation: pulse 1.6s infinite; }
.badge-finished { background: var(--ink); color: var(--bg); }
@keyframes pulse { 50% { opacity: .6; } }

.back { display: inline-block; color: var(--muted); text-decoration: none; margin-bottom: 8px; }

.board {
  background-image: linear-gradient(90deg, var(--brand) 0 33%, #fff 33% 66%, var(--accent) 66%);
  background-size: 100% 4px; background-repeat: no-repeat; background-position: bottom;
  display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px; align-items: center;
  background-color: var(--card); border-radius: var(--radius); padding: 16px 10px 20px; border: 1px solid var(--line);
  border-top: 6px solid var(--line);
}
.board.squad-naranja { border-top-color: var(--naranja); }
.board.squad-blanco { border-top-color: var(--blanco); }
.board.squad-azul { border-top-color: var(--azul); }
.board-team { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; font-weight: 700; font-size: 14px; }
.board-mid { text-align: center; }
.big-score { font-size: 3.2rem; font-weight: 900; font-variant-numeric: tabular-nums; line-height: 1; display: flex; gap: 8px; justify-content: center; }
.big-score i { font-style: normal; color: var(--muted); }
.clock { font-size: 1.6rem; font-weight: 700; font-variant-numeric: tabular-nums; margin: 6px 0; color: var(--muted); }
.clock.running { color: var(--accent); }

.uniform { margin: 10px 0; }
.uniform img, .kit { width: 100%; border-radius: var(--radius); margin-top: 8px; max-height: 360px; object-fit: contain; background: var(--bg); }

button { font: inherit; cursor: pointer; touch-action: manipulation; }
button:disabled { opacity: .4; }
.primary, .ghost, .danger, .btn-osos, .btn-opp {
  border-radius: 12px; padding: 14px 16px; font-weight: 700; border: 1px solid transparent; font-size: 16px;
}
.primary { background: var(--brand); color: var(--brand-ink); }
.ghost { background: var(--card); color: var(--ink); border-color: var(--line); }
.danger { background: transparent; color: var(--live); border-color: var(--live); }
.sm { padding: 8px 10px; font-size: 13px; }
.wide { width: 100%; margin: 8px 0; }
.x { margin-left: auto; border: 0; background: none; color: var(--muted); font-size: 16px; padding: 4px 8px; }

.clockbtns, .scorebtns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 12px 0; }
.btn-osos { background: var(--accent); color: var(--accent-ink); min-height: 72px; font-size: 18px; }
.btn-opp { background: var(--ink); color: var(--bg); min-height: 72px; font-size: 16px; }

.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.pcard { border: 1px solid var(--line); border-radius: 12px; padding: 10px; }
.pcard.sub { border-style: dashed; background: color-mix(in srgb, var(--bg) 60%, var(--card)); }
.pc-top { display: flex; gap: 12px; align-items: center; margin-bottom: 8px; }
.pc-info { min-width: 0; }
.pc-info .pstats { margin: 2px 0 0; white-space: nowrap; }
.pname { font-weight: 800; font-size: 17px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pname small { color: var(--muted); font-weight: 400; }
.sect { display: flex; align-items: center; gap: 8px; margin: 4px 0 10px; font-weight: 700; color: var(--muted); font-size: 14px; text-transform: uppercase; letter-spacing: .04em; }
.sect::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.pgrid + .sect { margin-top: 18px; }

/* player photo with jersey number badge */
.phwrap { position: relative; flex: none; display: inline-block; line-height: 0; }
.ph { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; flex: none; background: var(--line); }
.ph.ph-sm { width: 40px; height: 40px; }
.ph-empty { display: inline-grid; place-items: center; line-height: 1; color: #fff; font-weight: 800; font-size: 22px; background: var(--brand); }
.ph-empty.ph-sm { font-size: 16px; }
.dorsal {
  position: absolute; right: -6px; bottom: -4px; min-width: 24px; height: 24px; padding: 0 5px; border-radius: 12px;
  display: grid; place-items: center; line-height: 1; background: var(--accent); color: #fff; font-weight: 900; font-size: 13px;
  border: 2px solid var(--card); font-variant-numeric: tabular-nums;
}
.dorsal.empty { background: var(--line); color: var(--muted); }
/* public view: the jersey number stands in for the photo */
.ph-num {
  display: inline-grid; place-items: center; line-height: 1; font-weight: 900; font-size: 24px; font-variant-numeric: tabular-nums;
  background: var(--accent); color: var(--accent-ink); border: 3px solid var(--brand);
}
.ph-num.ph-sm { font-size: 16px; border-width: 2px; }
.ph-num.empty { background: var(--line); color: var(--muted); border-color: var(--line); }
.stats .num {
  display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 4px; border-radius: 11px; margin-right: 4px;
  background: var(--accent); color: var(--accent-ink); font-weight: 900; font-size: 12px; font-variant-numeric: tabular-nums;
}

.prow { display: flex; align-items: center; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line); }
.prow .avail { width: 22px; text-align: center; flex: none; }
.prow .nm { flex: 1; min-width: 0; }
.prow .nm small { color: var(--muted); display: block; }
.dorsal-in { width: 72px; flex: none; text-align: center; font-weight: 800; transition: box-shadow .2s; }
.dorsal-in.saved { box-shadow: 0 0 0 3px color-mix(in srgb, var(--ok) 45%, transparent); }
.pstats { color: var(--muted); font-size: 14px; margin: 2px 0 8px; }
.pbtns { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.pbtns button { border: 0; border-radius: 10px; padding: 14px 4px; font-weight: 700; font-size: 14px; }
.btn-try { background: color-mix(in srgb, var(--accent) 20%, var(--card)); color: var(--accent); }
.btn-tackle { background: color-mix(in srgb, var(--brand-text) 16%, var(--card)); color: var(--brand-text); }

.events { list-style: none; padding: 0; margin: 0; }
.events li { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 15px; }
.etime { font-variant-numeric: tabular-nums; color: var(--muted); font-size: 13px; width: 44px; }

.stats { width: 100%; border-collapse: collapse; font-size: 14px; }
.stats th, .stats td { padding: 6px 4px; text-align: center; border-top: 1px solid var(--line); }
.stats th:first-child, .stats td:first-child { text-align: left; }

.form { display: grid; gap: 10px; }
.form label { display: grid; gap: 4px; font-size: 13px; color: var(--muted); }
.form.inline { grid-template-columns: 1fr 1fr auto; align-items: center; margin-top: 10px; }
input, select {
  font: inherit; font-size: 16px; /* stops iOS zoom */
  padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); width: 100%;
}
.row { display: flex; gap: 8px; align-items: center; }
.row.wrap { flex-wrap: wrap; }
.row input { flex: 1; }

details summary { cursor: pointer; color: var(--muted); padding: 6px 0; }
.checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 4px; margin: 8px 0; }
.check { display: flex; align-items: center; gap: 8px; padding: 6px; border-radius: 8px; font-size: 15px; }
.check input { width: 22px; height: 22px; flex: none; }

.plist { list-style: none; padding: 0; margin: 0; columns: 2 160px; }
.plist li { padding: 6px 0; display: flex; align-items: center; gap: 6px; break-inside: avoid; }

.review .rsquad { border-top: 1px solid var(--line); padding: 10px 0; display: grid; gap: 6px; }
.rrow { display: grid; grid-template-columns: 1fr 1.3fr; gap: 6px; align-items: center; }
.ocr { color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; }
.rmatch { display: grid; grid-template-columns: 28px 1fr 1fr; gap: 6px; padding: 10px 0; border-top: 1px solid var(--line); align-items: center; }
.rmatch input, .rmatch select { padding: 8px; font-size: 16px; }
.rmatch .c-time { grid-column: 2; grid-row: 2; }
.rmatch .c-pitch { grid-column: 3; grid-row: 2; }
.rmatch .c-opp { grid-column: 2 / -1; grid-row: 3; }
.rmatch .c-club { grid-column: 2 / -1; grid-row: 4; }
.rmatch .keep input { width: 22px; height: 22px; }

.clubs { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 0 12px; }
.club-head { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.club-head h2 { margin: 0; }

.sheet { border: 0; border-radius: 18px 18px 0 0; width: 100%; max-width: 720px; margin: auto auto 0; padding: 18px 16px calc(18px + env(safe-area-inset-bottom)); background: var(--card); color: var(--ink); }
.sheet::backdrop { background: rgba(0,0,0,.45); }
.pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; margin-bottom: 10px; }
.pick button { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 6px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); font-weight: 700; font-size: 16px; }

.toast {
  position: fixed; left: 50%; bottom: calc(86px + env(safe-area-inset-bottom)); transform: translateX(-50%) translateY(20px);
  background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 999px; opacity: 0; transition: .2s; pointer-events: none; z-index: 10; max-width: 90vw; text-align: center;
}
.toast.show { opacity: 1; transform: translateX(-50%); }
.offline-bar { display: none; background: var(--live); color: #fff; text-align: center; font-size: 13px; padding: 4px; }
body.offline .offline-bar { display: block; }

@media (max-width: 420px) {
  .form.inline { grid-template-columns: 1fr 1fr; }
  .form.inline button { grid-column: span 2; }
  .big-score { font-size: 2.6rem; }
  .crest.lg { width: 52px; height: 52px; }
}

/* accounts */
.role { font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 999px; text-transform: uppercase; letter-spacing: .03em; flex: none; }
.role-admin { background: var(--brand); color: var(--brand-ink); }
.role-editor { background: color-mix(in srgb, var(--accent) 20%, var(--card)); color: var(--accent); }
.role-viewer { background: var(--line); color: var(--muted); }
.urow { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); text-decoration: none; }
.card > .urow:first-child { border-top: 0; }
.urow .nm { flex: 1; min-width: 0; }
.urow small { color: var(--muted); display: block; font-size: 13px; overflow: hidden; text-overflow: ellipsis; }
.urow.off { opacity: .55; }
.cats { display: flex; gap: 4px; margin-top: 4px; flex-wrap: wrap; }
.cat { font-size: 12px; border: 1px solid var(--line); border-radius: 999px; padding: 1px 8px; color: var(--muted); }
.link { color: var(--brand-text); font-weight: 600; text-decoration: none; font-size: 14px; text-align: center; display: block; margin-top: 6px; }
.hero { text-align: center; margin: 18px 0 6px; }
.hero img { height: 84px; }
.ok { background: color-mix(in srgb, var(--ok) 15%, var(--card)); color: var(--ok); border-radius: 10px; padding: 10px 12px; font-size: 14px; font-weight: 600; }
.grow { flex: 1; min-width: 0; }
.center { text-align: center; }
.btnlink { display: block; text-align: center; text-decoration: none; box-sizing: border-box; }
.form label.check { display: flex; font-size: 15px; color: var(--ink); gap: 8px; }
[hidden] { display: none !important; }

/* jornada location: one row on Home, map apps in a bottom sheet */
.place-row { display: flex; align-items: center; gap: 8px; width: 100%; margin: 10px 0 0; padding: 10px 12px;
  background: var(--card); border: 1px solid var(--line); border-radius: 999px; color: var(--ink); font-size: 14px; text-align: left; cursor: pointer; }
.place-row .pl-name { font-weight: 600; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.place-row .pl-town { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 35%; }
.place-row .chev { color: var(--muted); font-size: 18px; line-height: 1; }
.place-sheet h3 { margin: 0 0 4px; }
.place-sheet .maps { display: grid; gap: 8px; margin: 14px 0 10px; }
.place-sheet .maps a { text-align: center; text-decoration: none; margin: 0; }

/* inviting many families */
.form textarea { width: 100%; box-sizing: border-box; font: inherit; font-size: 15px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); resize: vertical; }
.irow { display: flex; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); }
.card > .irow:first-child { border-top: 0; }
.irow .nm { flex: 1; min-width: 0; }
.irow .nm b, .irow .nm small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.irow .nm small { color: var(--muted); }
.ist { font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 999px; flex: none; background: var(--line); color: var(--muted); }
.ist-new, .ist-invited { background: color-mix(in srgb, var(--ok) 18%, var(--card)); color: var(--ok); }
.ist-no_email, .ist-bad_email { background: color-mix(in srgb, var(--live) 15%, var(--card)); color: var(--live); }

/* club settings */
.srow { display: flex; align-items: center; gap: 12px; text-decoration: none; padding: 12px 0; border-top: 1px solid var(--line); }
.card > .srow:first-child { border-top: 0; padding-top: 2px; }
.srow .ic { font-size: 22px; width: 32px; text-align: center; }
.srow .nm { flex: 1; min-width: 0; }
.srow small { display: block; color: var(--muted); font-size: 13px; }
.srow .chev { color: var(--muted); font-size: 20px; }
.logo-box { display: flex; align-items: center; gap: 12px; }
.logo-box img { width: 64px; height: 64px; object-fit: contain; background: var(--bg); border-radius: 12px; padding: 4px; flex: none; }
.logo-box .hint { margin: 2px 0 6px; }
.swrow { display: flex; align-items: center; gap: 10px; margin: 10px 0; }
.swrow .nm { flex: 1; min-width: 0; }
.swrow small { display: block; color: var(--muted); font-size: 12px; }
input.sw { width: 44px; height: 44px; padding: 0; border-radius: 10px; border: 1px solid var(--line); flex: none; background: none; }
input.hex { width: 92px; flex: none; font-family: ui-monospace, monospace; font-size: 14px; }
.pv-label { display: block; font-size: 14px; margin: 12px 0 6px; }
.preview { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--bg); }
.pv-top { display: flex; align-items: center; gap: 8px; padding: 8px 12px; font-weight: 800; }
.pv-top img { height: 26px; }
.pv-body { padding: 10px; }
.pv-body .card { margin: 0 0 8px; padding: 10px; }
.pv-btn { flex: 1; text-align: center; padding: 10px; border-radius: 999px; font-weight: 700; font-size: 14px; }
.warn, .ok-note { border-radius: 10px; padding: 8px 10px; font-size: 13px; margin-top: 8px; }
.warn { background: #fff4e5; color: #8a4b00; }
.ok-note { background: #e8f6ec; color: #1e6b34; }
.warn .link { display: inline; font-size: 13px; color: inherit; background: none; border: 0; padding: 0; margin: 0; text-decoration: underline; }
.logo-box .btnlink { display: inline-block; }
.set { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: #1e6b34; background: #e8f6ec; border-radius: 999px; padding: 3px 10px; font-weight: 600; }
.pwrow { margin: 6px 0; font-size: 14px; color: var(--muted); }
.seg { display: flex; gap: 6px; background: var(--bg); padding: 4px; border-radius: 999px; margin: 6px 0 10px; }
.seg button { flex: 1; border: 0; background: none; padding: 8px; border-radius: 999px; font-weight: 700; font-size: 14px; color: var(--muted); }
.seg button.on { background: var(--card); color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.1); }
.maprow { display: grid; grid-template-columns: 70px 1fr; gap: 10px; align-items: center; margin: 8px 0; }
.maprow select { min-width: 0; }
@media (prefers-color-scheme: dark) {
  .warn { background: #3a2a12; color: #ffd8a8; }
  .ok-note, .set { background: #16351f; color: #a7e3b6; }
}

/* players who left, data note */
.ilist { list-style: none; margin: 0; padding: 0; }
.ilist li { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); }
.ilist li:first-child { border-top: 0; }
.ilist .nm { flex: 1; min-width: 0; }
.ilist small { display: block; color: var(--muted); font-size: 12px; }
.anon { font-size: 11px; font-weight: 700; color: var(--muted); background: var(--bg); border-radius: 999px; padding: 2px 8px; text-transform: uppercase; }
.bul { padding-left: 18px; margin: 6px 0; }
.bul li { margin: 6px 0; }
.note { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; font-size: 14px; line-height: 1.45; }
.note h3 { margin: 14px 0 4px; font-size: 15px; }
.note h3:first-child { margin-top: 0; }
.note p { margin: 0; }
.chk { display: flex; gap: 10px; align-items: flex-start; margin: 14px 0; font-size: 14px; }
.chk input { width: 22px; height: 22px; flex: none; margin-top: 1px; }
.hint.center { text-align: center; }

/* Melé Demo club: shared login */
.demo-box { border: 2px dashed var(--accent); }
.demo-box h3 { margin: 0 0 4px; }
.demo-box .hint { margin: 0; }
.demo-box .cred { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; margin: 10px 0 12px; font-size: 15px; }
.demo-box .cred b { font-family: ui-monospace, monospace; overflow-wrap: anywhere; }
.demo-box .accent { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }

/* "Made with Melé": quiet credit at the end of Home, and a small card on the login page */
.made-with { display: flex; justify-content: center; align-items: center; gap: 6px; margin: 22px auto 8px; padding: 8px; color: var(--muted); font-size: 12.5px; text-decoration: none; }
.made-with img { width: 18px; height: 18px; }
.made-with b { color: #184095; font-weight: 800; }
.mele-card { display: flex; gap: 12px; align-items: center; margin-top: 16px; padding: 12px 14px; color: var(--muted); font-size: 13px; text-decoration: none; }
.mele-card img { width: 34px; height: 34px; flex: none; }
.mele-card b { display: block; color: #184095; }
@media (prefers-color-scheme: dark) { .made-with b, .mele-card b { color: #8fa8e0; } }

/* Club settings > Players: radio cards with a live preview */
.sec { font-size: 17px; margin: 22px 0 2px; padding-top: 14px; border-top: 1px solid var(--line); }
.opt { display: flex; gap: 10px; align-items: center; border: 1.5px solid var(--line); border-radius: 12px; padding: 10px 12px; margin: 6px 0; cursor: pointer; }
.opt.on { border-color: var(--brand-text); background: color-mix(in srgb, var(--brand) 6%, var(--card)); }
.opt.fixed { cursor: default; border-style: dashed; border-color: var(--line); background: var(--bg); }
.opt input { width: 20px; height: 20px; flex: none; accent-color: var(--brand); margin: 0; }
.opt .nm { display: flex; flex-direction: column; }
.opt .nm small { color: var(--muted); font-size: 13px; }
.pcard.mini { max-width: 260px; margin: 6px 0 4px; }
.pset h2 { margin: 0 0 4px; }
.pset .hint { margin: 4px 0 8px; }
.pset .primary { margin-top: 18px; }
.locked { padding: 22px 18px; }
.locked .big { font-size: 40px; line-height: 1; }
.locked h2 { margin: 10px 0 6px; }
.locked .primary { margin: 14px 0 6px; }
.pname.wrap { white-space: normal; line-height: 1.15; }
