/* Pelland — carte de pointage lisible en plein soleil, une main, gros boutons.
   Mise en page : barre du haut, contenu défilant, dock vocal fixé en bas. */
:root {
  --bg: #eef2ee;
  --surface: #ffffff;
  --ink: #12201a;
  --muted: #5b6b62;
  --line: #d3ddd6;
  --green: #1d6a45;
  --green-ink: #ffffff;
  --flag: #e3a90c;
  --flag-ink: #1d1600;
  --red: #b3372b;
  --birdie: #1d6a45;
  --bogey: #8a5a12;
  --bar: #14231b;
  --bar-ink: #f1f5f2;
  --shade: rgba(10, 20, 15, .45);
  --display: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;
  --body: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
  --r: 10px;
  --team0: #c62828;
  --team1: #1f5fbf;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0d1511; --surface: #16211b; --ink: #e8efea; --muted: #97a89e; --line: #2a3a31;
    --green: #3fa772; --green-ink: #06140c; --flag: #f0bb2a; --flag-ink: #1d1600; --red: #ec6a5c;
    --birdie: #5cc48e; --bogey: #e0a85a; --bar: #0a110d; --bar-ink: #e8efea; --shade: rgba(0,0,0,.6); --team0: #ff6b5e; --team1: #6aa4ff;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0d1511; --surface: #16211b; --ink: #e8efea; --muted: #97a89e; --line: #2a3a31;
  --green: #3fa772; --green-ink: #06140c; --flag: #f0bb2a; --flag-ink: #1d1600; --red: #ec6a5c;
  --birdie: #5cc48e; --bogey: #e0a85a; --bar: #0a110d; --bar-ink: #e8efea; --shade: rgba(0,0,0,.6); --team0: #ff6b5e; --team1: #6aa4ff;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg); color: var(--ink); font: 17px/1.45 var(--body);
  -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent;
  padding-bottom: calc(150px + env(safe-area-inset-bottom, 0px));
}
body.no-dock { padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px)); }
[hidden] { display: none !important; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--flag); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; letter-spacing: .01em; line-height: 1.1; margin: 0; text-wrap: balance; }
.num { font-family: var(--display); font-variant-numeric: tabular-nums; }

/* Barre du haut */
.bar {
  position: sticky; top: 0; z-index: 20; background: var(--bar); color: var(--bar-ink);
  display: flex; align-items: center; gap: 10px; min-height: 52px;
  padding: env(safe-area-inset-top, 0px) max(16px, env(safe-area-inset-right, 0px)) 0 max(16px, env(safe-area-inset-left, 0px));
}
.bar-back { background: none; border: 0; font-size: 34px; line-height: 1; padding: 0 8px 4px 0; color: var(--bar-ink); }
.bar-title { font-family: var(--display); font-size: 22px; font-weight: 700; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar-badge { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; opacity: .8; }

main { padding: 16px max(16px, env(safe-area-inset-right, 0px)) 16px max(16px, env(safe-area-inset-left, 0px)); max-width: 760px; margin: 0 auto; display: grid; gap: 16px; }

/* Accueil */
.hero { padding: 8px 0 4px; }
.hero h1 { font-size: 21px; line-height: 1.15; }
.hero p { margin: 4px 0 0; color: var(--muted); }
.tiles { display: grid; gap: 10px; }
.tile {
  display: flex; align-items: center; gap: 14px; text-align: left; width: 100%;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px;
}
.tile strong { display: block; font-family: var(--display); font-size: 22px; }
.tile span { color: var(--muted); font-size: 15px; }
.tile .pin { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--green); color: var(--green-ink); font-family: var(--display); font-size: 20px; flex: none; }
.tile.primary { background: var(--green); color: var(--green-ink); border-color: var(--green); }
.tile.primary span { color: inherit; opacity: .85; }
.tile.primary .pin { background: var(--flag); color: var(--flag-ink); }
.note { font-size: 14px; color: var(--muted); }
.warn { background: color-mix(in srgb, var(--flag) 18%, var(--surface)); border: 1px solid var(--flag); border-radius: var(--r); padding: 12px 14px; font-size: 15px; }

/* Formulaires */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; display: grid; gap: 12px; min-width: 0; }
.card h2 { font-size: 24px; }
.step { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
label { display: grid; gap: 4px; font-size: 14px; color: var(--muted); font-weight: 500; }
input[type=text], input[type=number], input[type=url], input:not([type]), select, textarea {
  width: 100%; min-height: 46px; border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px;
  background: var(--bg); color: var(--ink); font-size: 17px;
}
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.seg button { min-height: 52px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg); text-align: left; padding: 8px 12px; }
.seg button b { display: block; font-family: var(--display); font-size: 19px; }
.seg button small { color: var(--muted); font-size: 13px; }
.seg button[aria-pressed=true] { border-color: var(--green); background: color-mix(in srgb, var(--green) 12%, var(--surface)); box-shadow: inset 0 0 0 1px var(--green); }
.prow { display: grid; grid-template-columns: 1fr 86px 108px; gap: 8px; align-items: end; padding-bottom: 12px; border-bottom: 1px dashed var(--line); }
.prow:last-of-type { border-bottom: 0; padding-bottom: 0; }
.prow .resp { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; color: var(--ink); font-size: 15px; }
.prow .resp input { width: 22px; height: 22px; accent-color: var(--green); }
.btn { min-height: 54px; border-radius: 10px; border: 0; background: var(--green); color: var(--green-ink); font-family: var(--display); font-size: 21px; font-weight: 700; padding: 0 20px; width: 100%; }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn.small { min-height: 42px; font-size: 17px; width: auto; }
.row { display: flex; gap: 8px; flex-wrap: wrap; }

.preview { overflow-x: auto; }
.preview table { border-collapse: collapse; width: 100%; font-size: 15px; }
.preview th, .preview td { padding: 6px 8px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }
.preview td.n { text-align: right; font-family: var(--display); font-size: 18px; font-variant-numeric: tabular-nums; }

/* Partie */
.hole-card { background: var(--bar); color: var(--bar-ink); border-radius: var(--r); padding: 14px 16px; display: grid; gap: 10px; }
.hole-top { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.hole-no { font-family: var(--display); font-size: 54px; font-weight: 700; line-height: .9; }
.hole-meta { font-family: var(--display); font-size: 20px; opacity: .9; }
.hole-meta b { color: var(--flag); }
.hole-nav { margin-left: auto; display: flex; gap: 6px; }
.hole-nav button { width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,.25); background: transparent; color: var(--bar-ink); font-size: 22px; }
.hole-players { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.hp { background: rgba(255,255,255,.07); border-radius: 8px; padding: 8px; min-width: 0; }
.hp .nm { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hp .sc { font-family: var(--display); font-size: 30px; line-height: 1; }
.hp .dots { color: var(--flag); letter-spacing: 2px; font-size: 13px; min-height: 16px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { font-size: 13px; font-weight: 600; padding: 3px 9px; border-radius: 99px; background: var(--flag); color: var(--flag-ink); }
.chip.alt { background: transparent; color: inherit; border: 1px solid currentColor; }

.board { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.tot { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 10px; min-width: 0; }
.tot .nm { font-weight: 600; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tot .big { font-family: var(--display); font-size: 28px; line-height: 1.05; }
.tot .sub { font-size: 13px; color: var(--muted); }
.tot.lead { border-color: var(--green); box-shadow: inset 0 0 0 1px var(--green); }

.card-scroll { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
table.sc { border-collapse: collapse; width: 100%; min-width: 360px; font-variant-numeric: tabular-nums; }
table.sc th, table.sc td { border-bottom: 1px solid var(--line); padding: 0; text-align: center; height: 44px; }
table.sc thead th { font-size: 13px; color: var(--muted); font-weight: 600; height: 34px; padding: 0 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 80px; }
table.sc .h { font-family: var(--display); font-size: 19px; font-weight: 700; width: 40px; }
table.sc .m { font-size: 14px; color: var(--muted); width: 34px; }
table.sc tr.cur { background: color-mix(in srgb, var(--flag) 16%, transparent); }
table.sc tr.sum td { font-family: var(--display); font-size: 18px; font-weight: 700; background: color-mix(in srgb, var(--green) 8%, transparent); }
.cell { width: 100%; height: 44px; border: 0; background: none; display: grid; place-items: center; position: relative; font-family: var(--display); font-size: 21px; }
.cell .d { position: absolute; top: 3px; right: 5px; color: var(--flag); font-size: 10px; letter-spacing: 1px; line-height: 1; }
.cell .nt { position: absolute; bottom: 2px; right: 5px; color: var(--muted); font-size: 11px; font-family: var(--body); }
.cell.birdie > span { color: var(--birdie); border: 2px solid var(--birdie); border-radius: 50%; width: 30px; height: 30px; display: grid; place-items: center; }
.cell.bogey > span { color: var(--bogey); }
.ev { font-size: 11px; font-weight: 700; display: flex; gap: 2px; justify-content: center; flex-wrap: wrap; padding: 0 2px; }
.ev i { font-style: normal; border-radius: 4px; padding: 1px 4px; background: var(--line); }
.ev i.p { background: var(--ink); color: var(--bg); }
.ev i.s { background: var(--flag); color: var(--flag-ink); }
.ev i.t { background: var(--green); color: var(--green-ink); }
.legend { font-size: 13px; color: var(--muted); display: flex; gap: 12px; flex-wrap: wrap; }

/* Dock vocal */
.dock {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: var(--surface); border-top: 1px solid var(--line);
  padding: 10px max(16px, env(safe-area-inset-right, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
  display: grid; gap: 8px; box-shadow: 0 -6px 20px rgba(0,0,0,.08);
}
.dock-lines { min-height: 40px; max-width: 760px; margin: 0 auto; width: 100%; }
.heard { font-size: 14px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.reply { font-size: 16px; font-weight: 600; }
.dock-row { display: flex; gap: 8px; align-items: center; max-width: 760px; margin: 0 auto; width: 100%; }
.dock-row input { flex: 1; min-width: 0; }
.mic { width: 64px; height: 64px; border-radius: 50%; border: 0; background: var(--green); color: var(--green-ink); display: grid; place-items: center; flex: none; }
.mic.on { background: var(--red); color: #fff; animation: pulse 1.2s infinite; }
.wake { display: flex; align-items: center; gap: 6px; height: 46px; border-radius: 99px; border: 1px solid var(--line); background: var(--bg); padding: 0 12px; font-family: var(--display); font-size: 17px; flex: none; }
.wake-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--muted); }
.wake[aria-pressed=true] { border-color: var(--green); }
.wake[aria-pressed=true] .wake-dot { background: var(--green); animation: pulse 1.6s infinite; }
@keyframes pulse { 0%,100% { opacity: 1 } 50% { opacity: .45 } }
@media (prefers-reduced-motion: reduce) { .mic.on, .wake[aria-pressed=true] .wake-dot { animation: none; } }

/* Feuille modale */
.sheet-wrap { position: fixed; inset: 0; z-index: 50; background: var(--shade); display: flex; align-items: flex-end; justify-content: center; }
.sheet { background: var(--surface); width: 100%; max-width: 560px; border-radius: 16px 16px 0 0; padding: 18px max(16px, env(safe-area-inset-right, 0px)) calc(18px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); display: grid; gap: 12px; max-height: 88vh; overflow-y: auto; }
.sheet h3 { font-size: 24px; }
.pad { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.pad button { height: 54px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg); font-family: var(--display); font-size: 24px; }
.pad button.par { border-color: var(--green); }
.toggles { display: grid; gap: 8px; }
.toggles .tg { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.toggles .tg > span { width: 100%; font-size: 14px; color: var(--muted); font-weight: 600; }
.pill { min-height: 42px; border-radius: 99px; border: 1px solid var(--line); background: var(--bg); padding: 0 14px; }
.pill[aria-pressed=true] { background: var(--green); color: var(--green-ink); border-color: var(--green); }

.list { display: grid; gap: 8px; }
.item { display: grid; gap: 2px; text-align: left; width: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px; }
.item b { font-family: var(--display); font-size: 20px; }
.item span { font-size: 14px; color: var(--muted); }

.holes-edit { display: grid; grid-template-columns: 40px 1fr 1fr; gap: 6px 8px; align-items: center; }
.holes-edit .hh { font-family: var(--display); font-size: 18px; font-weight: 700; }
.holes-edit .lbl { font-size: 13px; color: var(--muted); }
.tee-row { display: grid; grid-template-columns: 1.3fr 1fr 1fr 44px; gap: 6px; align-items: end; }
.tee-row .x { height: 46px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); }

.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(160px + env(safe-area-inset-bottom, 0px)); z-index: 60; background: var(--bar); color: var(--bar-ink); padding: 10px 16px; border-radius: 99px; font-size: 15px; max-width: calc(100% - 32px); }

@media (max-width: 420px) {
  .hole-players, .board { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .prow { grid-template-columns: 1fr 76px 96px; }
}

/* Équipes */
.teams { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.team { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 10px 12px; display: grid; gap: 2px; min-width: 0; }
.team b { font-family: var(--display); font-size: 20px; line-height: 1.15; }
.team .note { font-size: 13px; }
.card .team { background: var(--bg); }
.tm { font-size: 11px; font-weight: 700; padding: 1px 5px; border-radius: 4px; background: var(--line); color: var(--ink); vertical-align: 2px; }

.team .tp { font-family: var(--display); font-size: 30px; font-weight: 700; line-height: 1; color: var(--green); }
.team .tp small { font-size: 14px; color: var(--muted); font-weight: 500; }
.team.lead { border-color: var(--green); box-shadow: inset 0 0 0 1px var(--green); }
.ev i.pts { background: transparent; color: var(--ink); font-family: var(--display); font-size: 14px; padding: 0 2px; }

.team .tp .money { color: var(--ink); font-weight: 600; }

/* Couleurs d'équipe : Rouges / Bleus */
.tc0 { color: var(--team0) !important; }
.tc1 { color: var(--team1) !important; }
.hole-card .tc0 { color: #ff8a80 !important; }
.hole-card .tc1 { color: #8ab8ff !important; }
.team.t0 { border-top: 4px solid var(--team0); }
.team.t1 { border-top: 4px solid var(--team1); }
.team.t0 .tn { color: var(--team0); }
.team.t1 .tn { color: var(--team1); }
.tm.t0 { background: var(--team0); color: #fff; }
.tm.t1 { background: var(--team1); color: #fff; }
.ev i.tb0 { background: var(--team0); color: #fff; }
.ev i.tb1 { background: var(--team1); color: #fff; }
.chip.team.t0 { background: var(--team0); color: #fff; }
.chip.team.t1 { background: var(--team1); color: #fff; }
.pill.team-pill.t0[aria-pressed=true] { background: var(--team0); border-color: var(--team0); color: #fff; }
.pill.team-pill.t1[aria-pressed=true] { background: var(--team1); border-color: var(--team1); color: #fff; }
.pill.team-pill.t0 { border-color: var(--team0); }
.pill.team-pill.t1 { border-color: var(--team1); }
.team.t0 b { color: var(--team0); }
.team.t1 b { color: var(--team1); }

/* Carte : colonnes Statut, Calcul, Bleu, Rouge, Total */
table.sc { min-width: 560px; }
table.sc th.h, table.sc thead th:first-child { position: sticky; left: 0; background: var(--surface); z-index: 1; }
table.sc tr.cur th.h { background: color-mix(in srgb, var(--flag) 16%, var(--surface)); }
table.sc td.stat { min-width: 96px; padding: 2px 4px; }
table.sc td.calc { min-width: 92px; max-width: 130px; text-align: left; font-size: 12px; line-height: 1.3; color: var(--muted); padding: 4px 6px; white-space: normal; }
table.sc td.tp0, table.sc td.tp1, table.sc td.tot { font-family: var(--display); font-size: 19px; font-weight: 700; min-width: 48px; }
table.sc td.tp0 { color: var(--team0); }
table.sc td.tp1 { color: var(--team1); }
table.sc td.tot { min-width: 64px; }
.ev i { white-space: nowrap; }

/* Saisie des 4 scores */
button.hp { border: 0; text-align: left; color: inherit; font: inherit; cursor: pointer; }
.allscores { display: grid; gap: 10px; }
.as-row { display: grid; gap: 4px; }
.as-name { font-weight: 600; font-size: 16px; }
.as-k { color: var(--flag); letter-spacing: 1px; }
.as-opts { display: flex; gap: 6px; flex-wrap: wrap; }
.as-n { width: 42px; height: 46px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg); font-family: var(--display); font-size: 21px; }
.as-n.par { border-color: var(--green); }
.as-n[aria-pressed=true] { background: var(--green); color: var(--green-ink); border-color: var(--green); }
.as-n.more { color: var(--muted); }

/* Chiffre choisi bien visible */
.as-n[aria-pressed=true] { background: var(--flag); color: var(--flag-ink); border: 3px solid var(--ink); font-weight: 700; transform: scale(1.08); }
.as-row.done .as-n:not([aria-pressed=true]):not(.more) { opacity: .45; }
.as-row.done .as-name::after { content: " ✓"; color: var(--green); }

/* Carte du trou : joueurs groupés par équipe, bouton Press / Reroll sous l'équipe */
.team-blocks { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.team-block { display: grid; gap: 6px; align-content: start; border-radius: 10px; padding: 6px; }
.team-block.t0 { border: 2px solid #ff8a80; background: rgba(255,138,128,.08); }
.team-block.t1 { border: 2px solid #8ab8ff; background: rgba(138,184,255,.08); }
.tb-name { font-family: var(--display); font-size: 15px; letter-spacing: .06em; text-transform: uppercase; padding: 2px 2px 0; }
.team-block.t0 .tb-name { color: #ff8a80; }
.team-block.t1 .tb-name { color: #8ab8ff; }
.hole-players.two { grid-template-columns: 1fr 1fr; }
.tb-btn { display: grid; place-items: center; min-height: 46px; border-radius: 10px; border: 2px solid currentColor; background: transparent; font-family: var(--display); font-size: 20px; font-weight: 700; }
.tb-btn.t0 { color: #ff8a80; }
.tb-btn.t1 { color: #8ab8ff; }
.tb-btn.on.t0 { background: var(--team0); border-color: var(--team0); color: #fff; }
.tb-btn.on.t1 { background: var(--team1); border-color: var(--team1); color: #fff; }
.tb-btn:disabled { opacity: .7; }
@media (max-width: 420px) { .hole-players.two { grid-template-columns: 1fr 1fr; gap: 4px; } .hole-players.two .hp { padding: 6px 4px; } .team-blocks { gap: 6px; } .team-block { padding: 4px; } }

.pl-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.pl-row b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pl-row b { flex: 1; }
.pl-row .row { flex-wrap: nowrap; flex: none; }
.pl-row.dup { border-color: var(--flag); }
.dup-flag { font-family: var(--body); font-size: 12px; font-weight: 700; background: var(--flag); color: var(--flag-ink); border-radius: 99px; padding: 2px 8px; vertical-align: 3px; }
.pl-row b { white-space: normal; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
#missingNote:empty { display: none; }
#missingNote { color: var(--red); font-weight: 600; }
.lead-line { font-family: var(--display); font-size: 20px; }
.lead-line b { font-weight: 700; }

/* Résumé des équipes : Bleus à gauche, Rouges à droite */
.summary { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-radius: var(--r); overflow: hidden; border: 2px solid var(--bar); }
.sm-team { display: grid; grid-template-rows: 1fr auto; color: #fff; min-width: 0; }
.sm-team.t1 { background: #185e83; }
.sm-team.t0 { background: #e10600; }
.sm-players { display: grid; grid-template-columns: 1fr 1fr; }
.sm-p { padding: 10px 6px 12px; text-align: center; border-right: 1px solid rgba(0,0,0,.35); min-width: 0; display: grid; gap: 2px; align-content: start; }
.sm-n { font-weight: 600; font-size: 15px; line-height: 1.2; overflow-wrap: anywhere; }
.sm-i { font-size: 12px; opacity: .9; }
.sm-s { font-family: var(--display); font-size: 34px; font-weight: 700; line-height: 1.1; margin-top: 6px; }
.sm-foot { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid rgba(0,0,0,.35); }
.sm-foot > div { padding: 10px 6px; text-align: center; font-size: 15px; border-right: 1px solid rgba(0,0,0,.35); }
.sm-foot b { font-family: var(--display); font-size: 24px; }
@media (max-width: 420px) { .sm-n { font-size: 13px; } .sm-s { font-size: 28px; } .sm-i { font-size: 11px; } }
.hole-players.two .hp .nm { white-space: normal; overflow-wrap: anywhere; line-height: 1.15; font-size: 13px; }
.hole-players.two .hp .sc { font-size: 26px; }
.hole-players.two .hp .dots { font-size: 11px; letter-spacing: 0; }
.hole-players.two .hp .nm { overflow-wrap: normal; word-break: keep-all; font-size: 12px; min-height: 2.4em; }
.hole-players.two .hp { align-content: start; }
button.hp { display: grid; align-content: start; }

/* Une case par joueur : nom + index, score du trou, brut/net/trous ; points et $ sous le bouton */
.hp-idx { font-weight: 400; opacity: .75; font-size: .9em; white-space: nowrap; }
.hp-tot { font-size: 11px; opacity: .85; margin-top: 4px; line-height: 1.25; }
.tb-foot { text-align: center; font-size: 15px; padding: 4px 0 2px; }
.tb-foot b { font-family: var(--display); font-size: 22px; }
.team-block.t0 .tb-foot { color: #ff8a80; }
.team-block.t1 .tb-foot { color: #8ab8ff; }
.hp-tot b { font-family: var(--display); font-size: 15px; }

/* Case du meneur */
.lead-box { display: flex; align-items: baseline; justify-content: center; gap: 10px; flex-wrap: wrap; padding: 8px 12px; border-radius: 10px; border: 2px solid rgba(255,255,255,.3); text-align: center; }
.lead-box.lb0 { border-color: #ff8a80; background: rgba(225,6,0,.25); }
.lead-box.lb1 { border-color: #8ab8ff; background: rgba(24,94,131,.45); }
.lb-l { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; opacity: .85; }
.lb-t { font-family: var(--display); font-size: 24px; font-weight: 700; }
.lead-box.lb0 .lb-t, .lead-box.lb0 .lb-p { color: #ffb3ab; }
.lead-box.lb1 .lb-t, .lead-box.lb1 .lb-p { color: #b5d3ff; }
.lb-p { font-family: var(--display); font-size: 30px; font-weight: 700; }
.lb-p small { font-size: 15px; font-weight: 500; }
.lb-c { flex-basis: 100%; font-size: 14px; opacity: .9; }
.lb-c b { font-family: var(--display); font-size: 18px; }
.hp .hp-idx { display: block; font-size: 12px; opacity: .75; margin-top: 2px; }
@media (min-width: 421px) { .hole-players.two .hp .nm { min-height: 0; } }

/* En-tête du trou : mise initiale (après la normale) et changements de meneur (avant les flèches) */
.hole-money, .hole-changes { font-family: var(--display); font-size: 18px; opacity: .95; }
.hole-money b, .hole-changes b { color: var(--flag); font-size: 22px; }
.hole-changes { margin-left: auto; text-align: right; }
.hole-changes + .hole-nav { margin-left: 0; }
@media (max-width: 420px) { .hole-money, .hole-changes { font-size: 15px; } .hole-money b, .hole-changes b { font-size: 18px; } .hole-changes { margin-left: 0; text-align: left; flex-basis: 100%; order: 3; } }

/* Vue partie : toute la largeur, en-tête sur une ligne */
body.view-game main { max-width: 1280px; }
.hole-top { display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; column-gap: 14px; row-gap: 6px; }
.hole-top .hole-meta { min-width: 0; }
.hole-top .hole-changes { margin-left: 0; text-align: right; white-space: nowrap; }
.hole-top .hole-nav { margin-left: 0; }
@media (max-width: 700px) {
  .hole-top { grid-template-columns: auto 1fr auto; grid-template-areas: "no changes nav" "meta meta meta"; }
  .hole-top .hole-no { grid-area: no; } .hole-top .hole-meta { grid-area: meta; } .hole-top .hole-changes { grid-area: changes; white-space: normal; text-align: right; flex-basis: auto; order: 0; } .hole-top .hole-nav { grid-area: nav; }
  .hole-top .hole-nav button { width: 40px; height: 40px; }
}
/* Carte : remplir la largeur disponible */
table.sc { width: 100%; }
table.sc td.calc { max-width: none; }
table.sc .pc { width: 58px; min-width: 50px; max-width: 64px; }
table.sc td.stat { width: 90px; }
table.sc td.tp0, table.sc td.tp1 { width: 64px; }
.hp-tot { white-space: nowrap; }
@media (max-width: 420px) { .hp-tot { font-size: 10.5px; } .hp-tot b { font-size: 13px; } }
.hp-strk { font-size: 11px; line-height: 1.3; opacity: .85; white-space: normal; margin-bottom: 2px; }
.hp-strk b { color: var(--flag); font-weight: 700; }
.hole-players.two .hp .nm { word-break: normal; overflow-wrap: break-word; }

.game-actions { margin-top: 6px; align-items: center; }
.item.hist { display: flex; align-items: center; gap: 8px; }
.hist-open { flex: 1; min-width: 0; text-align: left; background: none; border: 0; padding: 0; display: grid; gap: 2px; color: inherit; font: inherit; }
.hist-open b { font-family: var(--display); font-size: 20px; }
.hist-open > span { font-size: 14px; color: var(--muted); }
.hist-st { font-weight: 700; color: var(--green); }
.item.hist.done .hist-st { color: var(--muted); }

/* Encadrés vert (mise initiale) et jaune (changements de meneur) */
.money-boxes { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.mbox { border: 3px solid; border-radius: 10px; padding: 8px 10px; display: flex; align-items: baseline; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.mbox span { font-size: 14px; opacity: .9; }
.mbox b { font-family: var(--display); font-size: 24px; }
.mbox.green { border-color: #2fb36b; } .mbox.green b { color: #5fd897; }
.mbox.yellow { border-color: #f0c419; } .mbox.yellow b { color: #f6d65a; }
@media (max-width: 420px) { .mbox { padding: 6px 8px; } .mbox span { font-size: 12px; } .mbox b { font-size: 20px; } }
.mbox { flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 2px; }

/* Feuille de saisie : tout visible, bouton Enregistrer toujours accessible */
.sheet { max-height: calc(100vh - 16px); max-height: calc(100dvh - 16px); overflow-y: auto; -webkit-overflow-scrolling: touch; padding-bottom: 0; }
.as-opts { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; }
.as-n { width: auto; min-width: 0; height: 44px; }
.as-n[aria-pressed=true] { transform: none; }
.sheet-foot { position: sticky; bottom: 0; display: grid; grid-template-columns: auto 1fr; gap: 8px; background: var(--surface); padding: 10px 0 calc(12px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); margin-top: 4px; }
.sheet-foot .btn { min-height: 50px; }
@media (min-width: 600px) { .as-row { grid-template-columns: 170px 1fr; align-items: center; } .sheet { max-width: 640px; } }
@media (max-width: 360px) { .as-n { height: 40px; font-size: 18px; } .sheet h3 { font-size: 20px; } }
/* Messages en haut, pour ne pas cacher la feuille */
.toast { bottom: auto; top: calc(64px + env(safe-area-inset-top, 0px)); }

/* Carrés Points / Argent sous chaque équipe */
.tb-foot { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 2px 0; }
.tbox { border: 2px solid currentColor; border-radius: 10px; padding: 6px 8px; display: grid; justify-items: center; }
.tbox span { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; opacity: .85; }
.tbox b { font-family: var(--display); font-size: 26px; line-height: 1.1; }
.ball { width: 1em; height: 1em; vertical-align: -0.12em; display: inline-block; filter: drop-shadow(0 0 1px rgba(0,0,0,.35)); }
.dots .ball { width: 14px; height: 14px; margin-right: 1px; }
.cell .d .ball { width: 11px; height: 11px; }
.legend .ball { width: 14px; height: 14px; }
.hp-strk .ball { width: 12px; height: 12px; }
.money-in { display: flex; align-items: center; min-height: 46px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); padding-right: 12px; }
.money-in input { flex: 1 1 0; min-width: 0; width: 1px; border: 0; background: transparent; min-height: 44px; padding-right: 6px; text-align: right; font-variant-numeric: tabular-nums; outline: none; }
.money-in i { flex: none; font-style: normal; color: var(--muted); font-weight: 600; pointer-events: none; }
/* Brouillon de François : joueur | Points ; joueur | Gain */
.tb-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 8px; align-items: stretch; }
.tb-grid .hp { min-width: 0; }
.tb-grid .tbox { border: 3px solid currentColor; border-radius: 10px; display: grid; align-content: center; justify-items: center; padding: 8px 4px; }
.team-block.t0 .tb-grid .tbox { color: #ff8a80; }
.team-block.t1 .tb-grid .tbox { color: #8ab8ff; }
.tb-grid .tbox span { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; }
.tb-grid .tbox b { font-family: var(--display); font-size: 30px; line-height: 1.1; }
.tb-grid .hp .nm { min-height: 0 !important; white-space: normal; }
@media (max-width: 420px) { .tb-grid { grid-template-columns: minmax(0, 1fr) 76px; gap: 6px; } .tb-grid .tbox b { font-size: 20px; } .tb-grid .tbox span { font-size: 11px; } }
/* Téléphone : une équipe par ligne pour que joueur | Points / joueur | Gain tiennent */
@media (max-width: 560px) {
  .team-blocks { grid-template-columns: 1fr; }
  .tb-grid { grid-template-columns: minmax(0, 1fr) 110px; }
  .tb-grid .tbox b { font-size: 26px; }
  .tb-grid .hp .nm { font-size: 15px; }
  .hole-players.two .hp .nm, .tb-grid .hp .nm { min-height: 0; }
}
.toast { top: auto; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); }
.ydot { color: var(--flag); font-size: 1em; line-height: 1; }
.cell .d .ydot { font-size: 10px; }
/* Carte compacte : colonnes serrées, pas d'étirement */
table.sc { width: auto; min-width: 0; }
table.sc td.calc { min-width: 120px; max-width: 220px; }
table.sc th, table.sc td { padding-left: 4px; padding-right: 4px; }
.card-scroll { width: fit-content; max-width: 100%; }
/* Nom du joueur sur toute la largeur, index et tertre en dessous */
.prow { grid-template-columns: 1fr 1fr; }
.prow > label:first-child { grid-column: 1 / -1; }
.invite-btn { background: var(--flag); color: var(--flag-ink); min-height: 48px; }
.linkbtn { background: none; border: 0; padding: 0; color: var(--green); text-decoration: underline; font: inherit; }
.pl-row .row .btn.small { padding: 0 10px; font-size: 15px; min-height: 38px; }
input[type=tel] { width: 100%; min-height: 46px; border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; background: var(--bg); color: var(--ink); font-size: 17px; }
.hole-card .game-actions { margin-top: 0; }
.hole-card .btn.ghost { color: var(--bar-ink); border-color: rgba(255,255,255,.35); }
.note.light { color: rgba(241,245,242,.75); }
label:has(> .money-in) { min-width: 0; }
.row:has(> label > .money-in) { align-items: flex-end; }
/* Carte de pointage : tout tient dans la largeur du iPhone */
table.sc tr.calc-row td { height: auto; padding: 2px 8px 6px; text-align: left; font-size: 12px; line-height: 1.35; color: var(--muted); }
table.sc tr.calc-row i { font-style: normal; font-weight: 600; font-size: 11px; padding: 1px 6px; border-radius: 99px; border: 1px solid var(--line); margin-right: 4px; color: var(--ink); }
table.sc tr.calc-row i.p { background: var(--flag); border-color: var(--flag); color: #1b1b1b; }
table.sc tr.has-sub > * { border-bottom: 0; }
/* même carte compacte sur iPhone et sur ordinateur */
@media all {
  .card-scroll { width: 100%; max-width: 640px; overflow-x: hidden; }
  table.sc { width: 100%; min-width: 0; table-layout: fixed; }
  table.sc .col-wide { display: none; }
  table.sc th, table.sc td { padding-left: 1px; padding-right: 1px; }
  table.sc thead th { font-size: 12px; padding: 0 1px; max-width: none; }
  table.sc thead th:nth-child(1), table.sc th.h { width: 11%; }
  table.sc thead th:nth-child(2) { width: 11%; }
  table.sc thead th:nth-child(3) { width: 10%; }
  table.sc thead th.pc { width: 10.5%; }
  table.sc thead th:nth-last-child(1), table.sc thead th:nth-last-child(2) { width: 13%; }
  table.sc .pc { min-width: 0; max-width: none; }
  table.sc thead th { text-overflow: clip; }
  table.sc td.tp0, table.sc td.tp1 { min-width: 0; width: auto; font-size: 18px; }
  table.sc tr.sum td { font-size: 16px; }
  table.sc tr.sum td:first-child { font-size: 14px; }
  .cell { font-size: 20px; }
  .cell .d { right: 2px; } .cell .nt { right: 2px; }
  .cell.birdie > span { width: 28px; height: 28px; }
}
.hole-card > .invite-btn:first-child { width: 100%; margin-bottom: 12px; }
/* Téléversement de la carte de pointage */
.upload-btn { display: flex; align-items: center; justify-content: center; text-align: center; cursor: pointer; }
.card-thumbs { display: flex; gap: 8px; overflow-x: auto; margin-top: 10px; }
.card-thumbs button { flex: none; padding: 0; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); overflow: hidden; }
.card-thumbs img { display: block; height: 110px; width: auto; }
.card-view { overflow: auto; max-height: 75dvh; -webkit-overflow-scrolling: touch; }
.card-view img { display: block; width: 100%; height: auto; }
#cardStatus:empty { display: none; }
.coups-calc { display: grid; gap: 2px; margin: 6px 0; } .coups-calc span { display: block; }
.bottom-actions { justify-content: center; gap: 10px; }
/* Texte plus gros sous le nom des joueurs (carte du trou) */
.tb-grid .hp .hp-idx { font-size: 15px; opacity: .85; margin-top: 3px; }
.tb-grid .hp .hp-strk { font-size: 15px; line-height: 1.35; opacity: .95; }
.tb-grid .hp .hp-strk .ydot { font-size: 13px; }
.tb-grid .hp .dots { font-size: 16px; min-height: 20px; }
.tb-grid .hp .hp-tot { font-size: 14px; line-height: 1.35; white-space: normal; opacity: .95; }
.tb-grid .hp .hp-tot b { font-size: 18px; }
.tb-grid .hp .nm { font-size: 17px; font-weight: 600; }
table.sc tr.calc-row td:first-child { padding: 0; }
/* Détail d'un trou */
table.sc tr.calc-row { cursor: pointer; }
table.sc tr.calc-row td:last-child::after { content: ' ›'; color: var(--muted); font-weight: 700; }
.detail-t { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.detail-t th { font-size: 13px; color: var(--muted); font-weight: 600; text-align: center; padding: 4px; }
.detail-t td { text-align: center; padding: 8px 4px; border-top: 1px solid var(--line); font-size: 17px; }
.detail-t th:first-child, .detail-t td:first-child { text-align: left; }
.detail-t td:first-child { font-weight: 600; }
.detail-lines p { margin: 0 0 8px; font-size: 16px; line-height: 1.4; }
/* Meneurs : entre les équipes et la carte de pointage */
.leader-box { display: grid; gap: 2px; padding: 12px 16px; border-radius: var(--r); background: var(--surface); border: 2px solid var(--line); }
.leader-box.t0 { border-color: var(--team0); }
.leader-box.t1 { border-color: var(--team1); }
.leader-box > span { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; }
.leader-box b { font-family: var(--display); font-size: 26px; font-weight: 700; }
.leader-box small { font-family: var(--display); font-size: 22px; font-weight: 700; }
.leader-box.t0 small { color: var(--team0); } .leader-box.t1 small { color: var(--team1); }
.leader-box > div { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.leader-box.even small { font-size: 16px; color: var(--muted); }
/* Case du joueur : le contenu occupe toute la largeur */
.tb-grid .hp { display: grid; grid-template-columns: 1fr auto; column-gap: 8px; row-gap: 2px; align-content: space-between; }
.tb-grid .hp .nm { grid-column: 1 / -1; }
.tb-grid .hp .hp-idx { grid-column: 1; grid-row: 2; margin-top: 0; }
.tb-grid .hp .dots { grid-column: 2; grid-row: 2; justify-self: end; min-height: 0; }
.tb-grid .hp .hp-strk { grid-column: 1 / -1; }
.tb-grid .hp .hp-tot { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.tb-grid .hp .hp-n { opacity: .8; }
.money-boxes .mbox { align-items: stretch; } .money-boxes .mbox b { align-self: center; text-align: center; margin: auto 0; }
.tb-grid.two { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
.lb-pts { display: flex; gap: 16px; font-size: 16px; margin-top: 4px; }
.lb-pts b { font-family: var(--display); font-size: 20px; }
.lb-money { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; border-top: 1px solid var(--line); margin-top: 8px; padding-top: 8px; }
.lb-money span { font-size: 15px; font-weight: 600; }
.lb-money b { font-family: var(--display); font-size: 28px; }
.lb-detail { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }
.lb-detail i { font-style: normal; }
.sms-btn { background: #2f7cf6; color: #fff; width: 100%; max-width: 640px; }
/* Présences */
.presence h2 { display: flex; justify-content: space-between; align-items: baseline; }
.presence h2 small { font-size: 15px; color: var(--muted); font-weight: 600; }
.pres-list { display: grid; gap: 6px; }
.pres { display: grid; grid-template-columns: 28px 1fr auto; align-items: center; gap: 8px; font-size: 17px; }
.pres b { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 15px; background: var(--line); color: var(--muted); }
.pres.yes b { background: #2fb36b; color: #fff; } .pres.no b { background: var(--red); color: #fff; }
.pres small { color: var(--muted); font-size: 14px; }
.pres-btns { margin-top: 10px; gap: 8px; } .pres-btns .btn { flex: 1; }
.pres-btns .on-no { border-color: var(--red); color: var(--red); }
.toast { top: calc(72px + env(safe-area-inset-top, 0px)); bottom: auto; }
.quat-picks { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 8px 0; } .item.quat { display: flex; align-items: center; justify-content: space-between; gap: 8px; } .item.quat span { display: block; font-size: 14px; color: var(--muted); }
/* Offres de parties */
.offre-form { display: grid; gap: 8px; } .offre-form .lbl { font-size: 14px; color: var(--muted); font-weight: 500; }
.offre-form input[type=date], .offre-form input[type=datetime-local] { width: 100%; min-height: 46px; border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; background: var(--bg); color: var(--ink); font-size: 17px; }
.offre-form .x { height: 46px; width: 44px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); }
.offre { border-top: 1px solid var(--line); padding-top: 12px; margin-top: 12px; display: grid; gap: 8px; }
.offre-h { display: grid; } .offre-h small { color: var(--muted); font-size: 14px; }
.offre-d { display: grid; grid-template-columns: 1fr auto auto; gap: 8px; align-items: center; }
.offre-d span:not(.cnt) { display: block; font-size: 14px; color: var(--muted); }
.offre-d .cnt { font-family: var(--display); font-weight: 700; font-size: 20px; min-width: 28px; text-align: center; border-radius: 99px; background: var(--line); padding: 2px 8px; }
.offre-d .cnt.ok { background: #2fb36b; color: #fff; }
.dispo { display: grid; gap: 8px; margin: 8px 0; }
.dispo-d { display: grid; grid-template-columns: 32px 1fr; align-items: center; gap: 10px; text-align: left; min-height: 54px; padding: 8px 12px; border: 2px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--ink); font-size: 17px; }
.dispo-d b { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; }
.dispo-d[aria-pressed=true] { border-color: #2fb36b; } .dispo-d[aria-pressed=true] b { background: #2fb36b; border-color: #2fb36b; color: #fff; }
.offre-acts { margin: -2px 0 6px; gap: 8px; }
.auto-groups { display: grid; gap: 8px; }
.auto-g { border: 2px solid #2fb36b; border-radius: 10px; padding: 8px 12px; display: grid; gap: 2px; }
.auto-g span { font-size: 16px; } .auto-g.wait { border-color: var(--line); color: var(--muted); }
/* Le 9 points */
.team-block.neuf { border: 2px solid rgba(255,255,255,.25); }
.team-block.neuf .hp .nm { color: #fff; }
.hp-pts { grid-column: 1 / -1; font-size: 15px; margin-top: 2px; } .hp-pts b { font-family: var(--display); font-size: 22px; color: var(--flag); }
.leader-box.neuf { border-color: var(--green, #1f6b46); }
.nf-r { display: grid; grid-template-columns: 1fr auto auto; gap: 12px; align-items: baseline; padding: 4px 0; }
.nf-r b { font-size: 18px; } .nf-r small { font-family: var(--display); font-size: 20px; font-weight: 700; }
.nf-r em { font-style: normal; font-family: var(--display); font-weight: 700; font-size: 20px; min-width: 70px; text-align: right; }
.nf-r em.pos { color: #1f9d55; } .nf-r em.neg { color: var(--red); }
table.sc.neuf thead th.pc { width: 15%; }
.leader-box > .nf-r { display: grid; grid-template-columns: 1fr auto 76px; gap: 10px; align-items: baseline; }
.offre-d span.grp { color: var(--ink); font-weight: 600; margin-top: 2px; }
.fixed-course { display: grid; gap: 2px; margin: 4px 0 0; } .fixed-course b { font-size: 19px; }
.fixed-course { display: grid; gap: 2px; margin: 4px 0 0; } .fixed-course b { font-size: 19px; }
.opt { font-weight: 400; color: var(--muted); font-size: 12px; }
.dispo-btns { gap: 8px; } .dispo-btns .btn { flex: 1; }
/* Choix du jeu */
.games { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.games button { min-height: 48px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg); font-family: var(--display); font-size: 18px; font-weight: 700; color: var(--ink); }
.games button[aria-pressed=true] { background: var(--green, #1f6b46); color: #fff; border-color: transparent; }
.wolf-tag { font-size: 12px; background: var(--flag); color: #1b1b1b; border-radius: 99px; padding: 1px 8px; vertical-align: middle; }
.pair { color: var(--flag); }
.detail-desc { font-size: 16px; line-height: 1.4; margin: 4px 0; }
.bar-badge.offline { color: #1b1b1b; background: var(--flag); padding: 2px 8px; border-radius: 99px; }
.holes-seg { grid-template-columns: 1fr 1fr 1fr; margin-bottom: 8px; } .holes-seg button { min-height: 44px; text-align: center; } .holes-seg b { font-size: 15px; }
label.check { display: flex; align-items: center; gap: 10px; font-size: 16px; color: var(--ink); }
label.check input { width: 22px; height: 22px; }
.offre-h .place { color: var(--ink); font-size: 14px; }
.pl-n { color: var(--muted); font-weight: 600; margin-right: 2px; } .pl-count { margin: 0; color: var(--muted); } .pl-count b { color: var(--ink); font-size: 18px; }
.owner-tag { font-size: 12px; font-weight: 600; background: var(--flag); color: #1b1b1b; border-radius: 99px; padding: 1px 8px; vertical-align: middle; }
.role-chip { font-size: 12px; font-weight: 600; border: 1px solid var(--line); background: var(--bg); color: var(--muted); border-radius: 99px; padding: 2px 8px; vertical-align: middle; cursor: pointer; }
.role-chip.on, .org-tag { border: 1px solid #2fb36b; color: #1f8a50; background: transparent; }
.org-tag { font-size: 12px; font-weight: 600; border-radius: 99px; padding: 1px 8px; vertical-align: middle; }
.pl-row b { overflow: visible; } .pl-row b .owner-tag, .pl-row b .org-tag, .pl-row b .role-chip { display: inline-block; white-space: nowrap; margin-top: 4px; }
/* Les jeux */
.jeux { display: grid; gap: 10px; }
.jeu summary { cursor: pointer; list-style: none; display: grid; gap: 2px; position: relative; padding-right: 28px; }
.jeu summary::-webkit-details-marker { display: none; }
.jeu summary::after { content: '+'; position: absolute; right: 0; top: 0; font-family: var(--display); font-size: 26px; color: var(--green); }
.jeu[open] summary::after { content: '−'; }
.jeu summary b { font-family: var(--display); font-size: 22px; }
.jeu summary span { color: var(--muted); font-size: 15px; }
.jeu h3 { font-size: 15px; margin: 14px 0 4px; }
.jeu ul { margin: 0; padding-left: 20px; } .jeu li { margin: 4px 0; }
/* Petit « i » d'explication */
.info { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid currentColor; background: transparent; color: inherit; opacity: .7; font: italic 700 13px/1 Georgia, serif; padding: 0; margin-left: 6px; vertical-align: middle; cursor: pointer; text-transform: none; letter-spacing: 0; }
.info:hover { opacity: 1; }
.tb-btn + .info { margin: 8px 0 0 8px; }
.info-list { margin: 0; padding-left: 20px; } .info-list li { margin: 6px 0; line-height: 1.4; }
.jeux-h { font-family: var(--display); font-size: 24px; margin: 18px 0 8px; }
.name-btn { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline dotted; text-underline-offset: 3px; cursor: pointer; text-align: left; }
.hero-edit { vertical-align: middle; margin-left: 8px; background: none; border: 1px solid currentColor; border-radius: 999px; padding: 3px 10px; font: 600 13px var(--body, inherit); color: inherit; opacity: .75; cursor: pointer; }
.handoff-row { justify-content: space-between; align-items: center; margin: 14px 0 8px; gap: 10px; }
.handoff-row .note { margin: 0; }
.mbox .mbox-sub { align-self: center; text-align: center; font-size: 12px; opacity: .8; margin-top: -2px; }
.money-boxes.editable { cursor: pointer; }
textarea { font-family: inherit; line-height: 1.4; resize: vertical; }
.pl-head { justify-content: space-between; align-items: center; }
.pl-head .pl-count { margin: 0; }
.sel-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; background: var(--card, #fff); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; margin: 8px 0; }
.sel-bar .note { margin: 0; }
.sel-row { display: flex; align-items: center; gap: 12px; cursor: pointer; }
.sel-row input[type=checkbox] { width: 22px; height: 22px; accent-color: var(--green, #1f6b46); flex: none; }
.sel-lock { width: 22px; text-align: center; color: var(--muted, #8a948e); flex: none; }
.import-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 12px; }
.import-row .note { margin: 0; }
.imp-list { max-height: 50vh; overflow: auto; border: 1px solid var(--line); border-radius: 10px; margin: 8px 0; }
.imp-row { display: flex; gap: 12px; align-items: center; padding: 10px 12px; border-bottom: 1px solid var(--line); cursor: pointer; }
.imp-row:last-child { border-bottom: 0; }
.imp-row input { width: 22px; height: 22px; flex: none; accent-color: #1f6b46; }
.imp-row span { display: flex; flex-direction: column; }
.imp-row small { color: var(--muted, #6b756f); font-size: 14px; }
.imp-row.warnrow small { color: #b3402b; }
.tp-more { margin: 10px 0; } .tp-more summary { cursor: pointer; font-weight: 600; color: var(--green, #1f6b46); padding: 6px 0; }
.rem-opt { width: 100%; text-align: left; } .rem-opt.on { outline: 2px solid #1f6b46; }
.src-seg { margin-bottom: 12px; }
.grp-acts { align-items: center; gap: 8px; margin: 6px 0 10px; } .grp-acts .note { margin: 0; }
.viral { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; background: linear-gradient(135deg, #f4f1e4, #fbf8ee); border: 1px solid #e6dcb8; margin-top: 14px; }
.viral-flag { width: 40px; height: 40px; border-radius: 50%; background: #1f6b46; color: #fff; display: grid; place-items: center; }
.viral h3 { margin: 2px 0 4px; } .viral p { margin: 0 0 10px; } .viral .row { gap: 8px; } .viral .note { margin: 8px 0 0; font-size: 13px; }
.pick-list { display: grid; gap: 8px; margin: 8px 0 12px; } .pick-list .btn { width: 100%; text-align: left; }
.grp-info { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; background: var(--surface); border: 1px solid var(--line, #dde3df); border-radius: 14px; padding: 12px 14px; margin: 10px 0 14px; }
.grp-info > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.grp-info span { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.grp-info b { font-size: 17px; } .grp-info small { color: var(--muted); font-size: 13px; } .grp-info small.over { color: #b3402b; font-weight: 600; }
.grp-info .linkbtn { font-size: 13px; margin-top: 2px; }
.grp-info > div > .linkbtn { align-self: flex-start; }
.grp-info > .plan-line { grid-column: 1 / -1; flex-direction: row; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; border-top: 1px solid var(--line, #dde3df); padding-top: 9px; }
.grp-info > .plan-line .linkbtn { margin: 0 0 0 auto; align-self: baseline; }
.grp-info > .plan-line { flex-wrap: nowrap; white-space: nowrap; } .grp-info > .plan-line small { overflow: hidden; text-overflow: ellipsis; }
.grp-info > .plan-line { gap: 8px; } .grp-info > .plan-line b { font-size: 15px; } .grp-info > .plan-line small { overflow: visible; }
.grp-info > .plan-line small { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.ref-hello { background: color-mix(in srgb, var(--flag) 18%, var(--surface)); border: 1px solid color-mix(in srgb, var(--flag) 55%, var(--surface)); border-radius: 12px; padding: 12px 14px; margin: 6px 0 12px; }
.referral h3 { margin: 0 0 4px; } .referral p { margin: 0 0 10px; }
.ref-stats { display: flex; gap: 16px; margin: 0 0 12px; color: var(--muted); } .ref-stats b { color: var(--ink, #16201a); font-size: 20px; margin-right: 4px; }
.sheet-actions a.btn { display: inline-grid; place-items: center; text-decoration: none; }
.onboard { border: 2px solid var(--green, #1f6b46); }
.onb-head { display: flex; justify-content: space-between; align-items: baseline; } .onb-head h3 { margin: 0; }
.onb-count { font-weight: 700; color: var(--green, #1f6b46); }
.onb-bar { height: 6px; background: var(--line); border-radius: 99px; margin: 8px 0 12px; overflow: hidden; } .onb-bar i { display: block; height: 100%; background: #e3a90b; border-radius: 99px; }
.onb-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.onb-list li { display: grid; grid-template-columns: 28px 1fr auto; gap: 10px; align-items: center; }
.onb-list li b { display: block; } .onb-list li small { color: var(--muted); font-size: 13px; line-height: 1.3; display: block; }
.onb-dot { width: 26px; height: 26px; border-radius: 50%; border: 2px solid #c5d0c9; display: grid; place-items: center; font-weight: 700; color: #fff; font-size: 14px; }
.onb-list li.done .onb-dot { background: #1f6b46; border-color: var(--green); } .onb-list li.done b { color: var(--muted); text-decoration: line-through; }
.onb-list li.next .onb-dot { border-color: #e3a90b; }
.onb-list .btn { white-space: nowrap; }
.onb-foot { margin: 12px 0 0; font-size: 13px; }
.onb-list { gap: 6px; } .onb-list li b { font-size: 16px; font-weight: 600; } .onb-list li.next b { font-weight: 700; }
.onb-list li.next { background: color-mix(in srgb, var(--green) 6%, var(--surface)); border-radius: 10px; padding: 8px 6px; margin: 0 -6px; }
.onb-more { background: none; border: 0; font-size: 26px; line-height: 1; color: var(--muted); padding: 0 6px; cursor: pointer; }
.onb-foot a { color: var(--green); }
.caddie-tile { display: grid; grid-template-columns: 44px 1fr; gap: 12px; align-items: center; width: 100%; text-align: left; background: var(--surface); border: 1px dashed var(--line); border-radius: 14px; padding: 12px 14px; margin: 14px 0 0; font: inherit; color: inherit; cursor: pointer; }
.caddie-tile b { display: block; font-size: 17px; } .caddie-tile small { color: var(--muted); }
.cad-ico { width: 40px; height: 40px; border-radius: 50%; background: #e3a90b; color: #14231b; display: grid; place-items: center; font-weight: 800; font-size: 22px; }
.cad-log { max-height: 46vh; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; margin: 6px 0 10px; padding: 2px; }
.cad-msg { max-width: 88%; padding: 9px 12px; border-radius: 14px; line-height: 1.4; font-size: 15px; }
.cad-msg.bot { background: color-mix(in srgb, var(--green) 10%, var(--surface)); align-self: flex-start; border-bottom-left-radius: 4px; }
.cad-msg.me { background: #1f6b46; color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
.cad-msg.busy { color: var(--muted); letter-spacing: 3px; }
.cad-go { margin-top: 8px; display: block; }
.cad-form { display: flex; gap: 8px; } .cad-form input { flex: 1; min-width: 0; }
.cad-sugg { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 0; }
.cad-sugg .chip { background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; font: inherit; font-size: 14px; cursor: pointer; }
/* Compétitions */
.cm-teams { display: grid; gap: 12px; margin-bottom: 12px; }
.cm-team { border: 1px solid var(--line, #dde3df); border-radius: 12px; padding: 10px 12px; }
.cm-th { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px; }
.cm-p { display: grid; grid-template-columns: 1fr 84px; gap: 8px; margin: 6px 0; }
.cm-head { display: flex; flex-direction: column; gap: 2px; color: var(--muted); font-size: 14px; margin: 0 0 12px; }
.cm-tabs { display: flex; gap: 6px; margin: 0 0 14px; } .cm-tabs button { flex: 1; padding: 9px 6px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); font: inherit; font-weight: 600; cursor: pointer; }
.cm-tabs button.on { background: #1f6b46; border-color: var(--green); color: #fff; }
.cm-board h3 { margin: 0 0 8px; }
.cm-lb { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.cm-lb th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding: 4px 6px; border-bottom: 1px solid var(--line, #dde3df); }
.cm-lb td { padding: 9px 6px; border-bottom: 1px solid #eef1ef; vertical-align: top; } .cm-lb td small { display: block; color: var(--muted); font-size: 12px; }
.cm-lb td:first-child { font-weight: 700; width: 44px; } .cm-lb td:nth-child(3) { width: 60px; text-align: center; white-space: nowrap; } .cm-lb th:nth-child(3) { text-align: center; }
.cm-lb td.tp { font-weight: 800; font-size: 18px; text-align: right; width: 60px; } .cm-lb th:last-child { text-align: right; }
.cm-lb tr.lead td { background: color-mix(in srgb, var(--flag) 18%, var(--surface)); }
.under { color: #b3402b; }
.cm-sum { display: flex; justify-content: space-between; align-items: baseline; margin: 10px 2px; } .cm-sum b { font-size: 24px; }
.cm-sc th small { display: block; font-weight: 500; color: var(--muted); font-size: 11px; }
.cm-sc td.cm-in { position: relative; padding: 2px; } .cm-sc td.cm-in input { width: 46px; text-align: center; padding: 6px 2px; font-size: 17px; }
.cm-sc td.cm-in .dots { position: absolute; top: 0; right: 4px; font-style: normal; font-size: 11px; color: var(--green); line-height: 1; }
.cm-sc td.cm-best { font-weight: 800; font-size: 17px; text-align: center; }
.cm-mh { margin: 14px 0 6px; font-size: 14px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.cm-matches { list-style: none; margin: 0; padding: 0; } .cm-matches li { display: flex; flex-direction: column; padding: 7px 0; border-top: 1px solid #eef1ef; font-size: 14px; }
.cm-matches li i { color: var(--muted); font-style: normal; } .cm-matches li b { font-size: 14px; } .cm-matches li.done b { color: var(--green); }
.cm-sc td.cm-best small { display: block; font-size: 11px; font-weight: 600; color: var(--green); }
.cm-tabs button { text-align: center; }
/* Création de compte */
.acct-steps { list-style: none; display: flex; gap: 6px; padding: 0; margin: 4px 0 14px; counter-reset: s; }
.acct-steps li { flex: 1; counter-increment: s; font-size: 12px; font-weight: 600; color: var(--muted); text-align: center; border-top: 4px solid #dfe6e1; padding-top: 6px; }
.acct-steps li::before { content: counter(s) ". "; }
.acct-steps li.done { border-color: var(--green); color: var(--green); } .acct-steps li.on { border-color: #e3a90b; color: var(--ink, #16201a); }
.acct-need { background: color-mix(in srgb, var(--green) 8%, var(--surface)); border-radius: 10px; padding: 10px 12px; margin: 0 0 12px; line-height: 1.4; }
/* Mon compte */
.acct-h { margin: 18px 0 8px; }
.acct-groups { display: grid; gap: 8px; margin: 0 0 10px; }
.acct-g { display: flex; justify-content: space-between; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--line, #dde3df); border-radius: 12px; padding: 10px 12px; }
.acct-g b { display: block; } .acct-g small { color: var(--muted); }
.acct-g.cur { border-color: var(--green); }
.acct-cur { font-size: 13px; font-weight: 600; color: var(--green); white-space: nowrap; }
.acct-actions { flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.acct-ok { display: flex; gap: 12px; align-items: flex-start; background: color-mix(in srgb, var(--green) 14%, var(--surface)); border-radius: 12px; padding: 12px 14px; }
.acct-ok span { width: 30px; height: 30px; border-radius: 50%; background: #1f6b46; color: #fff; display: grid; place-items: center; font-weight: 800; flex: none; }
.hero-k { display: block; font-family: var(--body, inherit); font-size: 15px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; } .g-k { font-weight: 500; color: var(--muted); }
/* Tuiles réservées à l'organisateur (membres invités) */
.tile.locked { position: relative; cursor: help; background: color-mix(in srgb, var(--ink) 5%, var(--surface)); } .tile.locked > * { opacity: .45; filter: grayscale(1); }
.tile.locked .pin { background: #9aa7a0; }
.tile.locked::after { content: attr(data-tip); position: absolute; left: 12px; right: 12px; bottom: calc(100% + 6px); background: #14231b; color: #fff; font-size: 14px; line-height: 1.35; padding: 8px 10px; border-radius: 10px; opacity: 0; pointer-events: none; transition: opacity .15s; z-index: 5; text-align: left; filter: none; }
.tile.locked:hover > *, .tile.locked:focus-visible > * { opacity: .7; }
.tile.locked:hover::after, .tile.locked:focus-visible::after { opacity: 1; }
.grp-info.compact { margin-top: 4px; }
.home-h { margin: 22px 2px 8px; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-family: var(--body, inherit); font-weight: 700; }
.pin.step-n { font-family: var(--display); font-weight: 800; font-size: 24px; background: #e3a90b; color: #14231b; }
.tile.locked .pin.step-n { background: #9aa7a0; color: #fff; }
/* Case du groupe : propriétaire et organisateur avec pastilles */
.grp-info > .who-line { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.grp-info > .who-line b { font-size: 18px; margin-right: 2px; }
.role-tag { font-size: 12px; font-weight: 700; letter-spacing: .03em; padding: 3px 9px; border-radius: 999px; white-space: nowrap; text-transform: none !important; }
.grp-info .role-tag.own { background: #1f6b46; color: #fff; }
.grp-info .role-tag.org { background: color-mix(in srgb, var(--flag) 18%, var(--surface)); color: color-mix(in srgb, var(--flag) 45%, var(--ink)); border: 1px solid color-mix(in srgb, var(--flag) 55%, var(--surface)); }
.grp-info > .who-act { grid-column: 1 / -1; margin-top: -4px; display: flex; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 2px 8px; color: var(--muted, #6b756f); } .grp-info > .who-act .linkbtn { font-size: 13px; }
.pick-list .pick-off { opacity: .5; cursor: not-allowed; } .pick-list .btn small { display: block; font-size: 12px; font-weight: 500; color: var(--muted); }
.full-box { background: color-mix(in srgb, var(--flag) 18%, var(--surface)); border: 1px solid color-mix(in srgb, var(--flag) 55%, var(--surface)); border-radius: 12px; padding: 12px 14px; } .full-box p { margin: 6px 0 10px; }
.full-box a.btn { display: inline-grid; place-items: center; text-decoration: none; }
.room-left { margin: 0 0 8px; }
.soon-tag { font-size: 11px; font-weight: 700; background: #e3a90b; color: #14231b; padding: 2px 8px; border-radius: 999px; vertical-align: middle; margin-left: 6px; } .jeu .btn[data-compnew] { margin-top: 10px; }
.cm-sc.tx select { font: inherit; padding: 5px 4px; border-radius: 8px; border: 1px solid var(--line); max-width: 92px; } .tx-drv { margin: 0 0 8px; }
.pl-st { display: inline-block; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; vertical-align: middle; white-space: nowrap; margin-left: 4px; }
.pl-st.ok { background: color-mix(in srgb, var(--green) 14%, var(--surface)); color: var(--green); } .pl-st.wait { background: color-mix(in srgb, var(--flag) 18%, var(--surface)); color: color-mix(in srgb, var(--flag) 45%, var(--ink)); } .pl-st.none { background: #eef1ef; color: #6b7570; }
/* ===================== Accueil du participant ===================== */
#welcome { position: fixed; inset: 0; z-index: 80; overflow-y: auto; color: #e9f1ec;
  background-color: #14231b;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='520' height='520' viewBox='0 0 520 520'%3E%3Cg fill='none' stroke='%232c4a3a' stroke-width='1.2'%3E%3Cpath d='M260 92c96 4 170 62 168 160s-80 170-176 166S82 350 86 254 164 88 260 92z'/%3E%3Cpath d='M258 132c74 3 128 48 127 122s-60 126-132 123-125-55-122-128 54-120 127-117z'/%3E%3Cpath d='M256 172c52 2 88 34 87 84s-40 84-90 82-84-37-82-86 34-82 85-80z'/%3E%3Cpath d='M254 212c28 1 46 18 46 44s-21 44-47 43-44-20-43-45 17-43 44-42z'/%3E%3Cpath d='M262 52c120 6 214 82 210 204S374 474 252 468 40 368 46 246 140 46 262 52z'/%3E%3Cpath d='M266 12c146 8 256 100 250 246S392 514 246 508 2 386 8 240 120 4 266 12z'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 520px 520px; background-position: 70% -120px; }
#welcome.out { opacity: 0; transition: opacity .25s; }
.wl-in { max-width: 560px; margin: 0 auto; padding: 0 20px 40px; }
.wl-tag { display: flex; flex-direction: column; align-items: center; transform-origin: 50% 0; animation: wl-swing 1.6s cubic-bezier(.3,1.6,.5,1) both; }
.wl-strap { width: 14px; height: 54px; background: linear-gradient(#b8860a, #e3a90c); border-radius: 0 0 4px 4px; box-shadow: inset -3px 0 0 rgba(0,0,0,.18); }
.wl-card { position: relative; width: 236px; margin-top: -10px; background: #fbfaf5; color: #12201a; border-radius: 22px; padding: 30px 20px 18px; text-align: center; box-shadow: 0 18px 40px rgba(0,0,0,.45); border: 3px solid #e3a90c; }
.wl-hole { position: absolute; top: 9px; left: 50%; width: 22px; height: 10px; margin-left: -11px; border-radius: 6px; background: #14231b; box-shadow: inset 0 2px 3px rgba(0,0,0,.5); }
.wl-brand { display: flex; align-items: center; justify-content: center; gap: 6px; font-family: var(--display); font-weight: 700; font-size: 15px; color: #1d6a45; }
.wl-name { font-family: var(--display); font-weight: 800; font-size: 34px; line-height: 1.02; margin: 10px 0 4px; letter-spacing: -.01em; }
.wl-grp { font-size: 15px; color: #5b6b62; }
.wl-role { display: inline-block; margin-top: 12px; background: #1d6a45; color: #fff; font-weight: 700; font-size: 15px; padding: 6px 16px; border-radius: 999px; }
@keyframes wl-swing { 0% { transform: rotate(-16deg) translateY(-30px); opacity: 0; } 30% { opacity: 1; } 55% { transform: rotate(7deg); } 78% { transform: rotate(-3deg); } 100% { transform: rotate(-2deg); } }
@media (prefers-reduced-motion: reduce) { .wl-tag { animation: none; transform: rotate(-2deg); } #welcome.out { transition: none; } }
#welcome h1 { font-family: var(--display); font-weight: 800; font-size: 40px; line-height: 1.02; color: #fff; margin: 28px 0 10px; letter-spacing: -.01em; }
.wl-lead { font-size: 18px; line-height: 1.45; color: #cfe0d6; margin: 0 0 22px; max-width: 34em; }
.wl-cols { display: grid; gap: 12px; }
.wl-cols h2 { font-family: var(--display); font-weight: 700; font-size: 22px; margin: 0 0 10px; }
.wl-cols ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.wl-cols li { position: relative; padding-left: 28px; line-height: 1.4; }
.wl-you { background: #fbfaf5; color: #12201a; border-radius: 16px; padding: 18px 18px 16px; }
.wl-you li::before { content: ''; position: absolute; left: 0; top: 2px; width: 18px; height: 18px; border-radius: 50%; background: #1d6a45 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.2l2.6 2.6L13 6.4' stroke='%23fff' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/100% no-repeat; }
.wl-org { border: 1.5px dashed #3d5c4b; border-radius: 16px; padding: 16px 18px; color: #cfe0d6; }
.wl-org h2 { color: #fff; } .wl-org li { padding-left: 24px; }
.wl-org li::before { content: ''; position: absolute; left: 2px; top: 5px; width: 11px; height: 9px; border-radius: 2px; background: #6f8c7c; box-shadow: 0 -5px 0 -2px transparent; }
.wl-org li::after { content: ''; position: absolute; left: 4px; top: 0; width: 5px; height: 6px; border: 2px solid #6f8c7c; border-bottom: 0; border-radius: 4px 4px 0 0; }
.wl-org p { margin: 12px 0 0; font-size: 14px; color: #a9c0b2; }
.btn.wl-go { width: 100%; margin-top: 22px; background: #e3a90c; color: #1d1600; font-size: 19px; padding: 16px; border-radius: 14px; }
.wl-own { text-align: center; color: #a9c0b2; font-size: 14px; margin: 14px 0 0; } .wl-own .linkbtn { color: #e3a90c; }
@media (min-width: 620px) { .wl-cols { grid-template-columns: 1.2fr 1fr; } #welcome h1 { font-size: 48px; } }

/* Ligne « Participant » dans la case du groupe */
.grp-info .role-tag.part { background: color-mix(in srgb, #2a5d9c 18%, var(--surface)); color: color-mix(in srgb, #2a5d9c 60%, var(--ink)); }
.grp-info > .me-line .linkbtn { font-size: 13px; margin-left: auto; }

/* ===================== Aperçu d'une tuile réservée ===================== */
.lk-head { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; }
.lk-head h3 { margin: 0; } .lk-head p { margin: 2px 0 0; color: var(--muted); font-size: 14px; }
.lk-lock { width: 38px; height: 38px; border-radius: 12px; background: #14231b; color: #e3a90c; display: grid; place-items: center; flex: none; }
.lk-shot { position: relative; border-radius: 18px; padding: 14px; background: #14231b; box-shadow: inset 0 0 0 6px #22382c; }
.lk-shot::after { content: 'Aperçu'; position: absolute; top: -9px; right: 14px; background: #e3a90c; color: #1d1600; font-size: 12px; font-weight: 700; padding: 2px 10px; border-radius: 999px; }
.lk-d { margin: 14px 0 8px; line-height: 1.45; } .lk-you { margin: 0 0 6px; background: color-mix(in srgb, var(--green) 10%, var(--surface)); border-radius: 10px; padding: 10px 12px; line-height: 1.4; }
.lk-own { text-align: center; font-size: 14px; color: var(--muted); margin: 10px 0 0; }
/* Maquettes */
.mk { background: #f4f6f3; color: #12201a; border-radius: 10px; padding: 12px; font-size: 14px; display: grid; gap: 8px; }
.mk-row { display: grid; grid-template-columns: 30px 1fr auto; gap: 8px; align-items: center; background: #fff; border-radius: 8px; padding: 6px 8px; }
.mk-av { width: 28px; height: 28px; border-radius: 50%; background: #1d6a45; color: #fff; display: grid; place-items: center; font-size: 11px; font-weight: 700; }
.mk-pill { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; } .mk-pill.ok { background: color-mix(in srgb, var(--green) 14%, var(--surface)); color: #1d6a45; } .mk-pill.wait { background: color-mix(in srgb, var(--flag) 18%, var(--surface)); color: color-mix(in srgb, var(--flag) 45%, var(--ink)); }
.mk-add { border: 1.5px dashed #b9c8bf; border-radius: 8px; padding: 7px; text-align: center; color: #5b6b62; }
.mk-date { display: flex; justify-content: space-between; align-items: baseline; } .mk-date span { color: #5b6b62; }
.mk-yes { display: flex; flex-wrap: wrap; gap: 5px; } .mk-yes span { background: color-mix(in srgb, var(--green) 14%, var(--surface)); color: #1d6a45; border-radius: 999px; padding: 2px 9px; font-size: 12px; font-weight: 600; }
.mk-q { display: grid; gap: 4px; } .mk-q span { background: #fff; border-left: 4px solid #e3a90c; border-radius: 6px; padding: 5px 8px; font-size: 13px; }
.mk-f { display: flex; justify-content: space-between; background: #fff; border-radius: 8px; padding: 7px 10px; } .mk-f span { color: #5b6b62; }
.mk-teams { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; } .mk-teams div { border-radius: 8px; padding: 6px 8px; font-size: 13px; color: #fff; } .mk-teams b { display: block; }
.mk-teams .r { background: #b3372b; } .mk-teams .b { background: #2a5d9c; }
.mk-course span { color: #5b6b62; }
.mk-holes { display: grid; grid-template-columns: repeat(9, 1fr); gap: 3px; } .mk-holes i { font-style: normal; background: #fff; border-radius: 5px; text-align: center; font-weight: 700; padding: 2px 0; } .mk-holes small { display: block; font-size: 9px; font-weight: 500; color: #5b6b62; }
.mk-jeu ul { margin: 0; padding-left: 18px; } .mk-money { display: flex; gap: 6px; flex-wrap: wrap; } .mk-money span { background: #fff; border-radius: 8px; padding: 4px 8px; font-size: 13px; }
#welcome:focus { outline: none; }
.tile.locked > .tile-lock { position: absolute; top: 10px; right: 12px; opacity: 1; filter: none; display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 700; color: #14231b; background: #e3a90c; border-radius: 999px; padding: 3px 9px 3px 7px; }
/* Carte « Recevez les nouvelles du groupe » */
.push-card { display: grid; grid-template-columns: 44px 1fr; gap: 12px; align-items: start; border: 2px solid var(--green); }
.push-ico { width: 42px; height: 42px; border-radius: 12px; background: #14231b; color: #e3a90c; display: grid; place-items: center; }
.push-card h3 { margin: 0 0 4px; } .push-card p { margin: 0 0 10px; line-height: 1.4; } .push-card .row { gap: 8px; flex-wrap: wrap; }
.live-tag { font-size: 11px; font-weight: 700; background: #b3372b; color: #fff; padding: 2px 8px; border-radius: 999px; vertical-align: middle; margin-left: 6px; }
/* Avis des joueurs */
.avis-card h3 { margin: 2px 0 4px; } .avis-card p { margin: 0 0 10px; }
.av-stars { color: var(--flag, #e3a90b); letter-spacing: 2px; font-size: 18px; }
.avis-sheet .fld { display: grid; gap: 6px; font-weight: 600; margin-top: 10px; }
.avis-sheet .fld textarea { font-weight: 400; }
.av-pick { display: flex; gap: 6px; margin: 6px 0 4px; }
.av-pick button { font-size: 34px; line-height: 1; background: none; border: 0; padding: 4px; cursor: pointer; color: color-mix(in srgb, var(--ink) 22%, transparent); }
.av-pick button.on { color: #e3a90b; }
.av-ok { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; line-height: 1.4; margin: 6px 0 4px; }
.av-ok input { width: 20px; height: 20px; flex: none; margin-top: 1px; accent-color: var(--green); }
.hist-seg { margin: 0 0 12px; } .hist-seg button { text-align: center; min-height: 44px; }
/* Léo, le caddie */
.cad-ico svg, .cad-av svg { width: 100%; height: 100%; display: block; }
.caddie-tile .cad-ico { background: #DDEBE1; overflow: hidden; width: 44px; height: 44px; }
.cad-id { display: flex; align-items: center; gap: 12px; margin: 0 0 6px; }
.cad-id h3 { margin: 0; } .cad-id .note { margin: 0; }
.cad-av { width: 56px; height: 56px; border-radius: 50%; overflow: hidden; flex: none; background: #DDEBE1; }
.cad-visite { margin: 4px 0 0; }
body.avec-leo #view { padding-bottom: 96px; }
body:has(#sheetWrap:not([hidden])) .cd-lanceur { display: none; }
.danger-txt, .btn.ghost.danger-txt { color: var(--red); border-color: color-mix(in srgb, var(--red) 45%, transparent); margin-top: 10px; width: 100%; }
.retire-row { margin-top: 10px; align-items: center; gap: 8px; flex-wrap: wrap; }
/* Score enregistré : en haut de la carte du trou */
.saved-band { all: unset; box-sizing: border-box; cursor: pointer; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; width: 100%; margin: 0 0 12px; padding: 10px 12px; border-radius: 12px; background: color-mix(in srgb, var(--green) 30%, transparent); border: 1px solid color-mix(in srgb, var(--green) 70%, transparent); color: #fff; }
.saved-band .sb-ok { width: 26px; height: 26px; border-radius: 50%; background: var(--green); color: var(--green-ink, #fff); display: grid; place-items: center; font-weight: 800; }
.saved-band b { display: block; font-family: var(--display); font-size: 18px; letter-spacing: .01em; }
.saved-band small { display: block; font-size: 14.5px; line-height: 1.35; opacity: .9; }
.saved-band .sb-go { font-size: 22px; opacity: .7; }
.saved-band:focus-visible { outline: 3px solid var(--flag); outline-offset: 2px; }
.archived-band { margin: 0 0 12px; }
/* Le « i » reste petit à l'œil, mais la zone à toucher fait 44 px (doigt sur iPhone) */
.info { position: relative; z-index: 1; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.info::after { content: ''; position: absolute; inset: -11px; border-radius: 50%; }
/* Match play : l'état du match */
.match-box .mp-status { display: grid; gap: 2px; padding: 6px 0 2px; }
.match-box .mp-status b { font-family: var(--display); font-size: 24px; line-height: 1.1; }
.match-box .mp-status.fini b { color: var(--flag); }
.match-box .btn { margin-top: 10px; width: 100%; }
.step-for { margin: -2px 0 10px; }
/* Boucle de retour : idées, réponses, nouveautés, sondage */
.idee-tile { all: unset; box-sizing: border-box; cursor: pointer; display: grid; grid-template-columns: 44px 1fr; gap: 12px; align-items: center; width: 100%; margin: 14px 0 0; padding: 14px 16px; border-radius: 14px; border: 1.5px dashed var(--line); background: var(--surface); color: var(--ink); }
.idee-tile > span:first-child { font-size: 26px; text-align: center; }
.idee-tile b { display: block; font-family: var(--display); font-size: 19px; }
.idee-tile small { display: block; color: var(--muted); font-size: 14.5px; line-height: 1.35; }
.idee-tile:focus-visible { outline: 3px solid var(--flag); outline-offset: 2px; }
.retour-carte { border: 2px solid var(--flag); }
.retour-carte > b { display: block; font-family: var(--display); font-size: 21px; line-height: 1.15; margin-bottom: 4px; }
.retour-carte p { margin: 6px 0; }
.retour-carte textarea { width: 100%; margin: 8px 0; }
.retour-carte .row { gap: 8px; align-items: center; margin-top: 8px; }
.nps { display: grid; grid-template-columns: repeat(11, 1fr); gap: 4px; margin: 10px 0 4px; }
.nps-n { min-height: 44px; border-radius: 8px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); font: 700 16px var(--body); cursor: pointer; padding: 0; }
.nps-n:hover, .nps-n:focus-visible { border-color: var(--green); outline: none; background: color-mix(in srgb, var(--green) 12%, var(--surface)); }
@media (max-width: 380px) { .nps { grid-template-columns: repeat(6, 1fr); } }
.idee-types { grid-template-columns: repeat(4, 1fr); }
.idee-types button { text-align: center; } .idee-types b { font-size: 20px; }
.idee-h { margin: 18px 0 6px; font-family: var(--display); font-size: 18px; }
.idee-liste { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.idee-liste li { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.idee-liste p { margin: 6px 0 0; }
.idee-tete { display: flex; justify-content: space-between; gap: 8px; font-size: 14px; color: var(--muted); }
.idee-statut { font-weight: 700; color: var(--ink); background: color-mix(in srgb, var(--ink) 8%, transparent); border-radius: 999px; padding: 1px 10px; }
.idee-statut.etude { background: #e3eaf3; color: #24405f; } .idee-statut.prevue { background: #fdf3d6; color: #6b4e00; }
.idee-statut.faite { background: color-mix(in srgb, var(--green) 20%, transparent); color: var(--green); } .idee-statut.non { opacity: .7; }
.idee-rep { background: color-mix(in srgb, var(--green) 10%, transparent); border-radius: 8px; padding: 8px 10px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* Terrains trouvés sur le web */
.region-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin: 10px 0; }
.chip-btn { font: inherit; font-size: 14px; font-weight: 600; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line, #d8d8d0); background: var(--card, #fff); color: inherit; text-align: left; cursor: pointer; }
.chip-btn:active { transform: scale(.98); }
.leo-cherche { text-align: center; padding: 28px 18px; }
.spin { width: 34px; height: 34px; margin: 0 auto 12px; border-radius: 50%; border: 3px solid var(--line, #ddd); border-top-color: var(--flag, #c33); animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.club-item { display: flex; flex-direction: column; align-items: stretch; gap: 8px; }
.club-item > div:first-child { display: flex; flex-direction: column; }
.club-item.deja > div:first-child span { color: var(--green, #2a7a3a); }
.club-pcs { display: flex; flex-wrap: wrap; gap: 6px; }
.err-txt { color: var(--red, #b3261e); }
.web-band { border-left: 4px solid var(--flag, #c33); }
.web-band.conf-haute { border-left-color: var(--green, #2a7a3a); }
.web-band h2 { margin-top: 0; }
.web-alertes { margin: 8px 0; padding-left: 18px; color: var(--red, #b3261e); font-weight: 600; }
.web-actions { margin-top: 8px; }
.web-actions .btn { flex: 1; }
.course-row { display: flex; flex-wrap: wrap; gap: 6px; align-items: stretch; }
.course-row > .item { flex: 1 1 0; min-width: 0; }
.course-row .btn.course-del { flex: 0 0 auto; width: auto; min-height: 0; margin: 0; padding: 0 12px; font-size: 14px; }
.course-row .del-confirm { flex: 1 0 100%; align-items: center; justify-content: flex-end; }
.course-row .del-confirm .note { flex: 1 1 100%; text-align: right; margin: 0; }
.region-moi { display: grid; gap: 8px; margin: 12px 0 4px; }
.region-moi:has(.spin) { display: flex; align-items: center; gap: 10px; color: var(--muted); }
.spin.small { width: 20px; height: 20px; margin: 0; border-width: 2px; flex: 0 0 auto; }
.region-autres { margin: 16px 0 4px; font-size: 15px; color: var(--muted); font-weight: 600; }
.region-libre { display: flex; gap: 8px; margin-top: 10px; }
.region-libre input { flex: 1; min-width: 0; margin: 0; }
.region-libre .btn { flex: 0 0 auto; }
.approve-band { display: block; width: 100%; text-align: left; font: inherit; font-weight: 700; cursor: pointer; }
.approve-card { border-left: 4px solid var(--flag, #c33); }
.carte-source { display: grid; gap: 8px; margin: 10px 0; padding: 10px; border-radius: 10px; background: var(--bg, #f3f4ef); }
.carte-img { display: block; padding: 0; border: 1px solid var(--line); border-radius: 8px; background: #fff; overflow: hidden; cursor: zoom-in; position: relative; }
.carte-img img { display: block; width: 100%; max-height: 260px; object-fit: contain; }
.carte-img span { position: absolute; right: 6px; bottom: 6px; font-size: 12px; background: rgba(0,0,0,.6); color: #fff; padding: 2px 8px; border-radius: 99px; }
.carte-img.ko { display: none; }
.terr-etape h3 { display: flex; align-items: center; gap: 10px; margin-top: 0; }
.terr-n { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--flag, #e0a800); color: var(--flag-ink, #1a1a1a); font-size: 15px; font-weight: 800; flex: 0 0 auto; }
.terr-etape .btn[data-addcourse] { margin-top: 4px; }
.prop-row { display: grid; gap: 6px; }
.prop-actions { justify-content: flex-end; }
.prop-actions { flex-wrap: nowrap; }
.prop-actions .btn { width: auto; margin: 0; flex: 1 1 auto; font-size: 16px; padding: 0 12px; }
.prop-actions .btn.ghost.danger-txt { width: auto; margin: 0; flex: 0 0 auto; }
.terr-etape .vide { font-style: italic; }
.pl-st.maj { background: color-mix(in srgb, var(--green) 15%, transparent); color: var(--green); }
.maj-resume { display: block; font-size: 13px; color: var(--muted); margin-top: 2px; }
.maj-liste { margin: 8px 0 0; padding-left: 18px; font-weight: 600; }
.verif-card h3 { margin-top: 0; }
.uid-ligne code { font-size: 12px; word-break: break-all; user-select: all; }
.grp-info-k { grid-column: 1 / -1; flex: 1 0 100%; width: 100%; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.bar-acct { flex: 0 0 auto; width: 38px; height: 38px; margin-left: 10px; border-radius: 50%; border: 2px solid color-mix(in srgb, var(--bar-ink) 55%, transparent); background: color-mix(in srgb, var(--bar-ink) 12%, transparent); color: var(--bar-ink); font: 700 14px var(--body, inherit); letter-spacing: .02em; display: grid; place-items: center; cursor: pointer; padding: 0; }
.bar-acct.on { background: var(--flag); color: #1b1b1b; border-color: var(--flag); }
.bar-badge:empty { display: none; }
.acct-box { background: var(--surface); border: 1px solid var(--line, #dde3df); border-radius: 14px; padding: 12px 14px; margin-bottom: 6px; }
.acct-box.acct-g, .acct-box .acct-g { border: 0; padding: 0; background: none; }
.acct-box.acct-g { border: 1px solid var(--line, #dde3df); padding: 12px 14px; background: var(--surface); }
.forfait-l { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; }
.forfait-l b { font-size: 20px; font-family: var(--display); }
.forfait-l span { color: var(--muted); font-size: 14px; } .forfait-l span.over { color: #b3402b; font-weight: 700; }
.acct-logout { margin-top: 22px; }
.acct-box a.btn { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; margin-top: 4px; }
.acct-h-act { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.acct-h-act .btn { width: auto; margin: 0; min-height: 38px; font-size: 15px; padding: 0 12px; flex: 0 0 auto; }
.acct-g.cur { flex-wrap: wrap; }
.g-manage { flex: 1 0 100%; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line, #dde3df); }
.g-manage .btn, .g-manage .btn.ghost.danger-txt { width: auto; flex: 1 1 auto; margin: 0; min-height: 40px; font-size: 15px; }
.g-manage small { flex: 1 0 100%; color: var(--muted); font-size: 12.5px; line-height: 1.4; }
.bar-title { flex: 0 1 auto; }
.bar-idee { flex: 0 0 auto; margin: 0 auto 0 12px; border: 1px solid color-mix(in srgb, var(--bar-ink) 40%, transparent); background: color-mix(in srgb, var(--flag) 22%, transparent); color: var(--bar-ink); border-radius: 999px; padding: 5px 11px; font: 600 13px var(--body, inherit); white-space: nowrap; cursor: pointer; }
.bar-idee[hidden] { display: none; }
.bar-idee[hidden] ~ .bar-badge { margin-left: auto; }
@media (max-width: 360px) { .bar-idee span { display: none; } }
.bar-idee.compact { padding: 5px 9px; } .bar-idee.compact span { display: none; }
.role-moi { font-size: 12px; color: var(--muted); font-weight: 600; } .acct-g small .role-tag { font-size: 11px; vertical-align: 1px; }
.acct-g small .own-txt { display: inline; color: var(--green); font-weight: 700; }
.wl-notif { font-size: 14px; background: color-mix(in srgb, var(--flag) 18%, transparent); border-radius: 10px; padding: 10px 12px; margin: 10px 0; }
.pl-st.notif-ok { background: color-mix(in srgb, var(--green) 12%, transparent); color: var(--green); }
.pl-st.notif-bad { background: #fbe3df; color: #a3301f; }
.pl-st.notif-wait { background: #fdf1d6; color: #8a5a00; }
.notif-warn b { display: inline; }
.warn.notif-warn { display: block; } .pl-st[class*="notif-"] { white-space: normal; }
.bar-sous { display: block; font-family: var(--body, inherit); font-size: 11.5px; font-weight: 500; letter-spacing: .02em; opacity: .75; line-height: 1.1; margin-top: -2px; }
.bar-title:has(.bar-sous) { font-size: 30px; line-height: 1.05; padding: 2px 0 3px; letter-spacing: -.01em; } .bar-sous { line-height: 1.25; font-size: 12px; }
.hero-k-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 18px; } .hero-k-row .hero-k { margin: 0; } .hero-liens { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; } .hero-liens .btn { width: auto; margin: 0; min-height: 34px; padding: 0 12px; font-size: 14px; }
/* Carte préparée par Léo : rien ne dépasse l'écran (adresses longues, noms de tertres, image de la carte) */
.web-band, .carte-source, .web-alertes, .maj-liste, .club-item, .leo-cherche { overflow-wrap: anywhere; word-break: break-word; min-width: 0; max-width: 100%; }
.carte-source a, .web-band a { overflow-wrap: anywhere; }
.carte-img, .carte-img img { max-width: 100%; }
main section.card { min-width: 0; max-width: 100%; }
.type-partie { display: grid; gap: 10px; }
.type-choix { display: flex; gap: 14px; align-items: flex-start; text-align: left; padding: 14px; border-radius: 14px; border: 1px solid var(--line, #dde3df); background: var(--surface); color: inherit; font: inherit; cursor: pointer; }
.type-choix > span:first-child { font-size: 28px; line-height: 1; }
.type-choix b { display: block; font-size: 18px; margin-bottom: 3px; }
.type-choix small { display: block; color: var(--muted); font-size: 14px; line-height: 1.35; }
.type-choix:active { transform: scale(.99); }
.hero-nom { font: inherit; color: inherit; background: none; border: 0; padding: 0; margin: 0; text-align: left; cursor: pointer; text-decoration: underline dotted color-mix(in srgb, currentColor 35%, transparent); text-underline-offset: 6px; text-decoration-thickness: 2px; }
.hero-nom:active { opacity: .7; }
.retire-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: nowrap; }
.retire-row > div { min-width: 0; } .retire-row > div > span { display: block; font-size: 13px; color: var(--muted); }
.retire-row .btn { width: auto; margin: 0; }
.home-h-first { margin-top: 4px; }
/* ---------- Compétitions : rondes, Coupe Ryder, tableau, ordre du mérite, écran télé ---------- */
.cm-round { border-top: 1px solid var(--line, #dde3df); padding-top: 10px; margin-top: 10px; } .cm-round > b { margin-right: 10px; }
.cm-rounds { margin: 8px 0 10px; }
.cm-lb td.rd { text-align: center; color: var(--muted); font-size: 14px; }
.cm-dep { margin-top: 6px; font-size: 14px; }
.cm-outils { margin-top: 14px; flex-wrap: wrap; gap: 8px; } .cm-outils .btn { width: auto; flex: 1 1 auto; }
.chk { display: flex; align-items: center; gap: 10px; font-weight: 500; } .chk input { width: auto; margin: 0; }
.ry-sides { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 420px) { .ry-sides { grid-template-columns: 1fr; } }
.ry-side { padding: 10px; border-radius: 12px; border: 2px solid; } .ry-0 { border-color: #c8372d; background: #fdf1ef; } .ry-1 { border-color: #2a5bb8; background: #eef3fc; }
.ry-side .ry-name { font-weight: 800; margin-bottom: 6px; } .ry-side small { color: var(--muted); }
.ry-sess { border-top: 1px solid var(--line, #dde3df); padding: 10px 0; }
.ry-m { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 6px 0; } .ry-m span { display: flex; gap: 4px; flex: 1 1 40%; min-width: 0; } .ry-m select { margin: 0; min-width: 0; flex: 1; font-size: 14px; padding: 6px; } .ry-m i { color: var(--muted); font-size: 13px; }
.ry-score .ry-tot { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ry-tot > div { text-align: center; border-radius: 14px; padding: 12px 6px; color: #fff; } .ry-tot .ry-0 { background: #c8372d; border: 0; } .ry-tot .ry-1 { background: #2a5bb8; border: 0; }
.ry-tot span { display: block; font-weight: 700; font-size: 15px; } .ry-tot b { font-size: 40px; line-height: 1.1; font-family: var(--display); }
.ry-c0 { color: #c8372d; } .ry-c1 { color: #2a5bb8; }
.ry-list li { flex-wrap: wrap; } .ry-list .linkbtn { margin-left: auto; }
.tb-rounds { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 6px; }
.tb-round { flex: 0 0 auto; min-width: 190px; display: flex; flex-direction: column; justify-content: space-around; gap: 10px; }
.tb-round h4 { margin: 0 0 2px; font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.tb-m { border: 1px solid var(--line, #dde3df); border-radius: 10px; padding: 6px 8px; background: var(--surface); font-size: 14px; }
.tb-m > div { padding: 2px 0; } .tb-m > div.win { font-weight: 800; color: var(--green); } .tb-m small { display: block; color: var(--muted); font-size: 12px; }
.tb-seed { display: inline-block; min-width: 18px; color: var(--muted); font-size: 11px; margin-right: 4px; } .tb-tbd { color: var(--muted); }
.tb-act { display: flex; gap: 6px; align-items: center; margin-top: 4px; } .tb-act select { margin: 0; padding: 4px; font-size: 13px; width: auto; flex: 1; }
.tb-champ { font-size: 20px; font-weight: 800; margin: 10px 0 0; }
.ms-t { font-size: 17px; margin: 8px 0; } .ms-t i { color: var(--muted); font-weight: 400; }
.bal-list { max-height: 50vh; overflow-y: auto; display: grid; gap: 4px; margin: 8px 0; }
.bal-row { display: flex; align-items: center; gap: 10px; } .bal-row input[type=checkbox] { width: auto; margin: 0; } .bal-row span { flex: 1; } .bal-row input[type=text] { width: 80px; margin: 0; }
.bal-mode { margin: 8px 0; }
.merit td:nth-child(3) { text-align: center; }
/* Écran télé : grand, lisible de loin, sans barre de l'app */
body.tv-mode .bar, body.tv-mode .leo-fab, body.tv-mode #leoBtn, body.tv-mode .cad-fab { display: none !important; }
body.tv-mode main, body.tv-mode #view { max-width: none; padding: 0; }
.tv { position: fixed; inset: 0; background: #0d2a1c; color: #fff; display: flex; flex-direction: column; z-index: 900; }
.tv-top { display: flex; align-items: baseline; gap: 18px; padding: 18px 28px 10px; flex-wrap: wrap; }
.tv-top h1 { margin: 0; font-size: clamp(26px, 3.4vw, 48px); color: #fff; } .tv-top span { font-size: clamp(14px, 1.6vw, 22px); opacity: .8; }
.tv-live { color: #ff6b5e; opacity: 1 !important; font-weight: 700; } .tv-top .btn { margin-left: auto; width: auto; color: #fff; border-color: rgba(255,255,255,.4); }
.tv-body { flex: 1; overflow-y: auto; padding: 0 28px 28px; display: grid; grid-template-columns: repeat(auto-fit, minmax(520px, 1fr)); gap: 18px; align-content: start; scroll-behavior: smooth; }
.tv .card { background: #fff; color: #111; } .tv .cm-lb { font-size: clamp(16px, 1.6vw, 26px); } .tv .cm-lb td { padding: 10px 8px; } .tv .cm-lb td small { font-size: .65em; }
.tv .ry-score.big .ry-tot b { font-size: clamp(60px, 9vw, 140px); } .tv .tb-m { font-size: 18px; }
.ry-m span { flex-direction: column; } .ry-m select { width: 100%; }
.tv-body { grid-template-columns: repeat(auto-fit, minmax(min(520px, 100%), 1fr)); }
.ry-sess .ry-m { padding: 6px 0; border-bottom: 1px dashed var(--line, #dde3df); }
