:root {
  /* thème sombre (le clair, par défaut, est posé par la page) */
  --paper: #12110e;
  --paper-2: #1d1b17;
  --card: #1a1814;
  --ink: #ece6d8;
  --muted: #9a9384;
  --rule: #ece6d8;
  --hair: #3b372f;
  --green: #4f9a6f;
  --red: #e0583a;
  --blue: #6f9fd6;
  --amber: #d9a441;
  --half: #e0b45c;
  --on-accent: #fff;
  --crest: #ece6d8;
  --w-bg: #16181c; --w-text: #e3e5e8; --w-border: #4a4d52; --w-muted: #a2a9b1; --w-link: #88a3e8;
  --w-box: #202227; --w-box2: #2a2d33; --w-sect: #2c3a2a; --w-sect2: #26313f; --w-note: #2e2a1f; --w-fig: #44474c;
  --cond: 'Archivo', 'Arial Narrow', sans-serif;
  --serif: 'Source Serif 4', Georgia, serif;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
  color-scheme: dark;
}
:root[data-theme="light"] {
  --paper: #f3efe6;
  --paper-2: #ebe5d8;
  --card: #fffdf8;
  --ink: #15140f;
  --muted: #6b665b;
  --rule: #15140f;
  --hair: #c9c1b0;
  --green: #1f5f3f;
  --red: #c4371d;
  --blue: #2f5d8a;
  --amber: #b9821c;
  --half: #8a5f10;
  --crest: transparent;
  --w-bg: #fff; --w-text: #202122; --w-border: #a2a9b1; --w-muted: #54595d; --w-link: #36c;
  --w-box: #f8f9fa; --w-box2: #eaecf0; --w-sect: #d9e8d2; --w-sect2: #e8eef5; --w-note: #fef6e7; --w-fig: #c8ccd1;
  color-scheme: light;
}
* { box-sizing: border-box; border-radius: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 16px/1.5 var(--cond); font-stretch: 100%;
  max-width: 1120px; margin: 0 auto; padding: 0 20px;
}
a { color: inherit; }
button, input { font: inherit; color: inherit; }
::selection { background: var(--ink); color: var(--paper); }

/* ——— Barre du haut ——— */
html { overflow-x: clip; }
.topbar { --bar: #1d5236; --bar-ink: #f5f1e6; --bar-mute: #b5c8b9; --bar-accent: #f0c548;
  background: var(--bar); color: var(--bar-ink); margin-inline: calc(50% - 50vw); padding-inline: max(20px, calc(50vw - 540px));
  position: sticky; top: 0; z-index: 20; }
:root:not([data-theme="light"]) .topbar { --bar: #13392a; }
.bar-in { display: flex; align-items: stretch; gap: 34px; height: 60px; }
.logo { align-self: center; font-weight: 900; font-stretch: 62%; font-size: 36px; line-height: 1; letter-spacing: -.5px; text-decoration: none; color: var(--bar-ink); }
.tabs { display: flex; gap: 4px; }
.tabs a { display: flex; align-items: center; gap: 8px; padding: 0 14px; text-decoration: none; font-weight: 700; font-stretch: 85%; text-transform: uppercase; font-size: 14px; letter-spacing: .05em; color: var(--bar-mute); position: relative; }
.tabs a:hover { color: var(--bar-ink); }
.tabs a.on { color: var(--bar-ink); }
.tabs a.on::after { content: ''; position: absolute; left: 14px; right: 14px; bottom: 0; height: 4px; background: var(--bar-accent); }
.tabs svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linejoin: round; stroke-linecap: round; display: none; }
.bar-r { margin-left: auto; display: flex; align-items: center; gap: 18px; font-size: 14px; }
.edition { font-family: var(--mono); font-size: 12px; color: var(--bar-mute); white-space: nowrap; }
.edition b { color: var(--bar-ink); font-weight: 600; }
.who { display: flex; gap: 14px; align-items: center; white-space: nowrap; }
.who a { color: var(--bar-ink); }
.who .pts { font-family: var(--mono); font-size: 13px; text-decoration: none; }
.who .pts b { color: var(--bar-ink); }
.who .login { text-decoration: none; border: 1px solid var(--bar-ink); padding: 6px 12px; font-weight: 700; font-stretch: 85%; text-transform: uppercase; font-size: 13px; letter-spacing: .04em; }
.who .login:hover { background: var(--bar-ink); color: var(--bar); }
.who .me { font-weight: 700; text-decoration: none; }
.topbar .theme { color: var(--bar-mute); }
.topbar .theme:hover { color: var(--bar-ink); }
.linkbtn { background: none; border: 0; padding: 0; text-decoration: underline; cursor: pointer; font-size: 14px; }

main { padding: 26px 0 60px; min-height: 60vh; }
.foot { border-top: 1px solid var(--rule); padding: 14px 0 30px; font-size: 13px; color: var(--muted); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

h1, h2, h3 { font-family: var(--cond); line-height: 1.05; margin: 0; }
.kicker { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--red); }
.muted { color: var(--muted); }

/* ——— Jeu ——— */
.game { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 0 40px; }
.game > .left { min-width: 0; }
.game > aside { border-left: 1px solid var(--rule); padding-left: 24px; }
.intro h1 { font-size: 40px; font-weight: 800; font-stretch: 75%; text-transform: uppercase; }
.intro p { font-family: var(--serif); font-size: 17px; margin: 8px 0 22px; max-width: 58ch; }

.search { position: relative; }
.search form { display: flex; border: 2px solid var(--ink); background: var(--card); }
.search input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 13px 14px; font-size: 19px; outline: none; }
.search button { border: 0; border-left: 2px solid var(--ink); background: var(--ink); color: var(--paper); padding: 0 22px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; cursor: pointer; }
.search button:hover { background: var(--green); }
.sugg { position: absolute; left: 0; right: 0; top: 100%; z-index: 5; background: var(--card); border: 2px solid var(--ink); border-top: 0; list-style: none; margin: 0; padding: 0; max-height: 340px; overflow: auto; }
.sugg li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 14px; cursor: pointer; border-top: 1px solid var(--hair); }
.sugg li:first-child { border-top: 0; }
.sugg li.on, .sugg li:hover { background: var(--ink); color: var(--paper); }
.sugg .k { font-family: var(--mono); font-size: 11px; text-transform: uppercase; color: var(--muted); align-self: center; }
.sugg li.on .k, .sugg li:hover .k { color: var(--hair); }
.help { font-size: 13px; color: var(--muted); margin: 8px 0 0; }
.msg { margin: 10px 0 0; font-size: 14px; color: var(--red); min-height: 1.5em; }

.board { width: 100%; border-collapse: collapse; margin-top: 18px; font-size: 15px; }
.board th { text-align: left; font-family: var(--mono); font-size: 11px; font-weight: 400; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); border-bottom: 2px solid var(--ink); padding: 6px 8px; }
.board td { border-bottom: 1px solid var(--hair); padding: 8px; vertical-align: top; }
.board tr.last td { background: var(--paper-2); border-bottom: 2px solid var(--ink); }
.board tr.sep td { padding: 0; border-bottom: 1px solid var(--ink); height: 4px; }
.board .n { font-family: var(--mono); color: var(--muted); width: 40px; }
.board .lbl { font-weight: 600; }
.board .lbl small { display: block; font-weight: 400; color: var(--muted); font-size: 12px; font-family: var(--mono); text-transform: uppercase; }
.board .t { font-family: var(--mono); font-weight: 600; width: 64px; text-align: right; white-space: nowrap; }
.board .bar { width: 120px; }
.minibar { height: 10px; border: 1px solid var(--ink); position: relative; margin-top: 5px; }
.minibar i { position: absolute; inset: 0 auto 0 0; display: block; }
.tags { display: flex; flex-wrap: wrap; gap: 4px 6px; margin-top: 4px; }
.tag { font-size: 12px; border: 1px solid var(--hair); padding: 0 5px; color: var(--muted); }
.tag.ok { border-color: var(--green); color: var(--green); }
.tag.half { border-color: var(--amber); color: var(--half); }
.tag.yes { background: var(--green); border-color: var(--green); color: var(--on-accent); }
.tag.no { border-color: var(--ink); color: var(--ink); text-decoration: line-through; }

/* Jauge */
.gauge h3, aside h3 { font-size: 13px; font-family: var(--mono); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; border-bottom: 1px solid var(--ink); padding-bottom: 4px; margin-bottom: 10px; }
.gauge .big { display: flex; align-items: baseline; gap: 10px; }
.gauge .deg { font-family: var(--mono); font-size: 54px; font-weight: 600; line-height: 1; }
.gauge .word { font-weight: 800; font-stretch: 75%; text-transform: uppercase; font-size: 22px; }
.scale { height: 22px; border: 2px solid var(--ink); position: relative; margin: 12px 0 4px;
  background-image: repeating-linear-gradient(90deg, transparent 0 calc(10% - 1px), var(--hair) calc(10% - 1px) 10%); }
.scale i { position: absolute; inset: 0 auto 0 0; display: block; transition: width .5s; }
.scale-legend { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 10px; color: var(--muted); }
.gauge .bestof { font-size: 13px; margin-top: 6px; color: var(--muted); }
aside section { margin-bottom: 28px; }
.facts { list-style: none; margin: 0; padding: 0; font-size: 14px; }
.facts li { display: flex; justify-content: space-between; gap: 10px; padding: 4px 0; border-bottom: 1px dotted var(--hair); }
.facts .y { font-family: var(--mono); font-weight: 600; color: var(--green); }
.facts .nn { font-family: var(--mono); color: var(--muted); }
.facts li.no span:first-child { color: var(--muted); text-decoration: line-through; }
.hints ol { margin: 0 0 10px; padding-left: 20px; font-size: 14px; }
.btn { display: inline-block; border: 2px solid var(--ink); background: transparent; padding: 7px 14px; font-weight: 700; text-transform: uppercase; font-size: 13px; letter-spacing: .05em; cursor: pointer; text-decoration: none; }
.btn:hover:not(:disabled) { background: var(--ink); color: var(--paper); }
.btn:disabled { opacity: .4; cursor: default; }
.btn.solid { background: var(--ink); color: var(--paper); }
.btn.solid:hover { background: var(--green); border-color: var(--green); }
.btn.red { border-color: var(--red); color: var(--red); }
.btn.red:hover { background: var(--red); color: var(--on-accent); }
.daystats { font-size: 14px; }
.daystats p { margin: 0 0 6px; }
.daystats b { font-family: var(--mono); }
.nudge { border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); padding: 10px 0; font-size: 14px; margin-top: 22px; }

.end { text-align: center; margin-bottom: 22px; }
.end h1 { font-size: 46px; font-weight: 900; font-stretch: 70%; text-transform: uppercase; line-height: .95; margin-top: 6px; }
.end h1 span { display: block; font-size: 18px; font-weight: 700; font-stretch: 80%; letter-spacing: .04em; color: var(--muted); margin-bottom: 4px; }
.end p { font-family: var(--serif); font-size: 17px; margin: 10px 0 0; }
.end-act { display: flex; gap: 10px 14px; justify-content: center; align-items: center; flex-wrap: wrap; margin-top: 14px; font-size: 14px; }
.end.late, .path.late { animation: endIn .5s 1.9s both; }
@keyframes endIn { from { opacity: 0; transform: translateY(6px); } }
#fcard.spinning { perspective: 900px; }
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 50; }
.logo span { text-transform: none; color: var(--bar-accent); font-size: .42em; letter-spacing: 0; margin-left: 2px; }
.countdown { font-family: var(--mono); }

/* ——— Fiche joueur, façon Wikipédia ——— */
.wiki { font-family: sans-serif; font-size: 15px; line-height: 1.6; color: var(--w-text); background: var(--w-bg); border: 1px solid var(--w-border); padding: 18px 24px 30px; }
.wiki h1 { font-family: 'Linux Libertine', 'Georgia', 'Times', serif; font-weight: 400; font-size: 30px; border-bottom: 1px solid var(--w-border); padding-bottom: 4px; margin-bottom: 2px; }
.wiki .from { font-size: 13px; color: var(--w-muted); margin-bottom: 14px; }
.wiki h2 { font-family: 'Linux Libertine', 'Georgia', 'Times', serif; font-weight: 400; font-size: 23px; border-bottom: 1px solid var(--w-border); margin: 24px 0 8px; padding-bottom: 2px; }
.wiki p { margin: 0 0 10px; }
.wiki a { color: var(--w-link); text-decoration: none; }
.wiki a:hover { text-decoration: underline; }
.infobox { float: right; width: 290px; margin: 0 0 16px 20px; border: 1px solid var(--w-border); background: var(--w-box); font-size: 13px; border-collapse: collapse; }
.infobox caption { font-weight: 700; font-size: 15px; padding: 6px; background: var(--w-sect); border: 1px solid var(--w-border); border-bottom: 0; caption-side: top; }
.infobox td, .infobox th { padding: 4px 8px; vertical-align: top; text-align: left; border-top: 1px solid var(--w-box2); }
.infobox th { width: 42%; font-weight: 700; }
.infobox .img { text-align: center; padding: 8px; }
.infobox .img img { max-width: 100%; max-height: 300px; display: block; margin: 0 auto; }
.infobox .sect { background: var(--w-sect); text-align: center; font-weight: 700; }
.toc { display: inline-block; border: 1px solid var(--w-border); background: var(--w-box); padding: 8px 18px 8px 12px; font-size: 14px; margin: 6px 0 4px; }
.toc b { display: block; text-align: center; }
.toc ol { margin: 4px 0 0; padding-left: 20px; }
table.wt { border-collapse: collapse; font-size: 14px; margin: 6px 0 12px; background: var(--w-box); }
table.wt th, table.wt td { border: 1px solid var(--w-border); padding: 3px 9px; }
table.wt th { background: var(--w-box2); text-align: center; }
table.wt td.num { text-align: center; }
.wiki .note { font-size: 12px; color: var(--w-muted); }
.wiki ul { margin: 0 0 10px; padding-left: 22px; }
.wiki .clear { clear: both; }
.mine { border: 1px solid var(--w-border); background: var(--w-note); padding: 8px 12px; font-size: 14px; margin: 0 0 14px; }

/* ——— Album ——— */
.pagehead { border-bottom: 1px solid var(--ink); padding-bottom: 12px; margin-bottom: 22px; display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; }
.pagehead h1 { font-size: 44px; font-weight: 900; font-stretch: 68%; text-transform: uppercase; }
.pagehead p { margin: 4px 0 0; font-family: var(--serif); }
.counters { display: flex; gap: 0; border: 2px solid var(--ink); }
.counters div { padding: 6px 16px; border-left: 1px solid var(--ink); text-align: center; }
.counters div:first-child { border-left: 0; }
.counters b { display: block; font-family: var(--mono); font-size: 26px; line-height: 1.1; }
.counters span { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.album { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; }
.slot { border: 1px solid var(--ink); background: var(--card); min-height: 190px; display: flex; flex-direction: column; text-decoration: none; position: relative; }
.slot .top { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 11px; padding: 6px 8px; border-bottom: 1px solid var(--ink); }
.slot .pic { height: 150px; overflow: hidden; display: flex; align-items: flex-end; justify-content: center; border-bottom: 1px solid var(--ink); background: var(--paper-2); }
.slot .pic img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; display: block; }
.slot .pic .silh { width: 110px; height: 110px; fill: var(--hair); }
.slot.s-missed .pic img { filter: grayscale(1); opacity: .55; }
.slot .face { flex: 1; display: flex; align-items: center; justify-content: center; padding: 10px; text-align: center; }
.slot .face .nm { font-weight: 800; font-stretch: 75%; font-size: 21px; text-transform: uppercase; line-height: 1.05; }
.slot .face .sub { font-size: 12px; color: var(--muted); margin-top: 4px; }
.slot .bot { font-family: var(--mono); font-size: 11px; padding: 5px 8px; border-top: 1px solid var(--ink); text-transform: uppercase; }
.slot.s-won .bot { background: var(--green); color: var(--on-accent); border-color: var(--green); }
.slot.s-missed { background: repeating-linear-gradient(-45deg, var(--card) 0 7px, var(--paper-2) 7px 8px); }
.slot.s-missed .nm { color: var(--muted); }
.slot.s-missed .bot { color: var(--red); }
.slot.s-gaveup .bot { color: var(--muted); }
.slot.today { border-width: 2px; }
.slot.today .face .q { font-size: 64px; font-weight: 900; font-stretch: 62%; line-height: 1; }
a.slot:hover { outline: 2px solid var(--ink); outline-offset: -1px; }

/* ——— Classement ——— */
.cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.board-tabs { display: flex; gap: 0; border-bottom: 2px solid var(--ink); margin-bottom: 18px; flex-wrap: wrap; }
.board-tabs button { background: none; border: 0; padding: 8px 16px 7px; cursor: pointer; font-weight: 700; font-stretch: 85%; text-transform: uppercase; letter-spacing: .04em; font-size: 14px; color: var(--muted); border-bottom: 3px solid transparent; margin-bottom: -2px; }
.board-tabs button.on { color: var(--ink); border-bottom-color: var(--red); }
.podium { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid var(--ink); margin-bottom: 18px; }
.podium > div { padding: 14px 16px; border-left: 1px solid var(--hair); }
.podium > div:first-child { border-left: 0; }
.podium .pl { font-family: var(--mono); font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.podium .nm { font-size: 22px; font-weight: 800; font-stretch: 75%; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.podium .pt { font-family: var(--mono); font-size: 15px; }
.podium .p1 .nm { color: var(--red); }
.rank-wrap { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 34px; align-items: start; }
.rank th { text-align: left; font-family: var(--mono); font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 0 4px 6px; border-bottom: 2px solid var(--ink); }
.rank th.r, .rank td.r { text-align: right; font-family: var(--mono); }
.rank tr.me td { background: var(--paper-2); font-weight: 700; }
.rank tr.gap td { border-top: 2px dotted var(--hair); }
.rank td.big { font-weight: 700; font-size: 16px; }
.rank-note { font-size: 13px; color: var(--muted); margin: 10px 0 0; }
.scorebox { display: inline-flex; gap: 14px; align-items: baseline; margin-top: 12px; padding: 8px 14px; border: 1px solid var(--ink); }
.scorebox .pts { font: 700 30px/1 var(--mono); color: var(--red); }
.scorebox .det { font-size: 13px; color: var(--muted); text-align: left; }
.rank { width: 100%; border-collapse: collapse; font-size: 15px; }
.rank caption { text-align: left; font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; padding-bottom: 6px; border-bottom: 2px solid var(--ink); }
.rank td { padding: 6px 4px; border-bottom: 1px solid var(--hair); }
.rank td:first-child { font-family: var(--mono); color: var(--muted); width: 30px; }
.rank td:last-child { text-align: right; font-family: var(--mono); font-weight: 600; }
.rank td.muted { text-align: left; font-family: inherit; font-weight: 400; padding: 12px 4px; }

/* ——— Compte ——— */
.auth { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 2px solid var(--ink); max-width: 760px; }
.auth form { padding: 22px 24px; }
.auth form + form { border-left: 2px solid var(--ink); background: var(--card); }
.auth h2 { font-size: 26px; font-weight: 800; font-stretch: 75%; text-transform: uppercase; margin-bottom: 14px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.field input { width: 100%; border: 0; border-bottom: 2px solid var(--ink); background: transparent; padding: 6px 0; font-size: 18px; outline: none; }
.field input:focus { border-bottom-color: var(--green); }

/* ——— Règles ——— */
.prose { font-family: var(--serif); font-size: 17px; max-width: 68ch; }
.prose h2 { font-family: var(--cond); font-size: 24px; font-weight: 800; font-stretch: 75%; text-transform: uppercase; margin: 26px 0 8px; }
.prose table { border-collapse: collapse; font-family: var(--cond); font-size: 15px; }
.prose td, .prose th { border-bottom: 1px solid var(--hair); padding: 4px 14px 4px 0; text-align: left; }

@media (max-width: 860px) {
  .game { grid-template-columns: 1fr; }
  .game > aside { border-left: 0; padding-left: 0; border-top: 1px solid var(--ink); padding-top: 18px; margin-top: 24px; }
  .cols { grid-template-columns: 1fr; }
  .rank-wrap { grid-template-columns: 1fr; }
  .podium { grid-template-columns: 1fr; }
  .podium > div { border-left: 0; border-top: 1px solid var(--hair); }
  .podium > div:first-child { border-top: 0; }
  .rank .opt { display: none; }
  .theme span { display: none; }
  .who .streak { white-space: nowrap; }
  .infobox { float: none; width: 100%; margin: 0 0 16px; }
}
@media (max-width: 600px) {
  body { padding: 0 16px; }
  .intro h1 { font-size: 30px; }
  .board .bar { display: none; }
  .end h1 { font-size: 34px; }
  .auth { grid-template-columns: 1fr; }
  .auth form + form { border-left: 0; border-top: 2px solid var(--ink); }
  .wiki { padding: 14px; }
}
.gauge-inline { display: none; margin-top: 16px; }
table.wt td.num { white-space: nowrap; }
.wiki { overflow-x: auto; }

/* ——— Carte du joueur mystère, façon FUT ——— */
.hero { margin-bottom: 26px; }
.hero .intro { margin-bottom: 14px; }
.hero .intro h1 { font-size: 34px; }
.hero .intro p { margin: 6px 0 0; font-size: 16px; }
.hero .search { margin-bottom: 4px; position: sticky; top: 60px; z-index: 10; background: var(--paper); padding: 6px 0 4px; }
.hero .msg { margin: 8px 0 0; min-height: 0; }
.lastg { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin-top: 10px; font-size: 15px; }
.lastg:empty { display: none; }
.lastg .lg-n { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.lastg .lg-t { font-family: var(--mono); font-weight: 600; }
.play { display: grid; grid-template-columns: 236px minmax(0, 1fr); gap: 32px; align-items: start; margin-top: 22px; }
.play-side { min-width: 0; }
.play-side .gauge h3 { margin-bottom: 6px; }
.play-side .path { margin-top: 24px; max-width: none; }
.play-side .path ol { justify-content: flex-start; }
.play-side .path-tip { text-align: left; }
.end { text-align: left; }
.end-act, .end .sharebox { justify-content: flex-start; }
@media (max-width: 760px) {
  .hero .intro h1 { font-size: 27px; }
  .hero .search { position: sticky; top: 52px; z-index: 10; background: var(--paper); padding: 8px 0 4px; margin: 0 -2px; }
  .play { grid-template-columns: 1fr; gap: 22px; }
  .play #fcard { justify-self: center; zoom: .82; }
  .hero .intro p { display: none; }
}
.fut { width: 236px; height: 340px; background: #7a6223; padding: 3px;
  clip-path: polygon(14% 0, 86% 0, 100% 7%, 100% 88%, 50% 100%, 0 88%, 0 7%); }
.fut-in { height: 100%; position: relative; padding: 18px 16px 0; color: #2b2210;
  background: linear-gradient(160deg, #ecd88f 0%, #d8bb62 45%, #c9a64a 100%);
  clip-path: polygon(14% 0, 86% 0, 100% 7%, 100% 88%, 50% 100%, 0 88%, 0 7%); }
.fut.done { background: #15140f; }
.fut.done .fut-in { background: linear-gradient(160deg, #2a2620 0%, #15140f 70%); color: #ecd88f; }
.fut-side { position: absolute; left: 20px; top: 22px; display: flex; flex-direction: column; align-items: center; gap: 4px; z-index: 2; width: 44px; }
.fut-rate { font: 800 36px/1 var(--cond); font-stretch: 70%; }
.fut-pos { font: 700 14px/1 var(--cond); letter-spacing: .04em; }
.fut-flag { width: 34px; height: 22px; display: flex; align-items: center; justify-content: center; border: 1px solid currentColor; }
.fut-flag img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fut-pic { height: 150px; margin-left: 46px; display: flex; align-items: flex-end; justify-content: center; overflow: hidden; }
.fut-pic img { max-height: 150px; max-width: 150px; object-fit: cover; object-position: top; filter: saturate(.9); }
.silh { width: 140px; height: 140px; fill: rgba(43, 34, 16, .78); }
.fut-name { text-align: center; font: 800 19px/1.1 var(--cond); font-stretch: 72%; text-transform: uppercase; border-top: 1px solid currentColor; border-bottom: 1px solid currentColor; padding: 5px 0; margin: 0 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fut-stats { display: grid; grid-template-columns: 1.15fr 1fr; gap: 3px 8px; margin: 8px 4px 0; font-size: 11px; }
.fut-stats div { display: flex; gap: 5px; min-width: 0; align-items: baseline; }
.fut-stats dt { font-weight: 800; font-stretch: 75%; flex: none; width: 34px; }
.fut-stats dd { margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
.fut-bo { text-align: center; font-size: 11px; font-weight: 700; margin-top: 6px; text-transform: uppercase; letter-spacing: .04em; }
.fut .ph { opacity: .45; }
.fut .ph.box { font-weight: 800; }
.path { width: 100%; max-width: 640px; margin-top: 26px; }
.path-h { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; border-bottom: 1px solid var(--ink); padding-bottom: 4px; margin-bottom: 14px; }
.path ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-start; row-gap: 14px; }
.path li { display: flex; align-items: flex-start; }
.path .club { width: 72px; display: flex; flex-direction: column; align-items: center; gap: 5px; }
.path .crest { width: 52px; height: 52px; display: flex; align-items: center; justify-content: center; border: 1px dashed var(--hair); }
.path .on .crest { border: 0; background: var(--crest); padding: 4px; }
.path .dk .crest { background: #15140f; }
.path .crest img { max-width: 100%; max-height: 100%; object-fit: contain; }
.path .q { font: 700 18px/1 var(--cond); color: var(--hair); }
.path .mono { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; font: 800 14px/1 var(--cond); font-stretch: 75%; border: 1px solid var(--ink); }
.path .cn { font-size: 11px; line-height: 1.15; text-align: center; color: var(--muted); max-width: 72px; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.path .on .cn { color: var(--ink); font-weight: 600; }
.path .arr { width: 24px; height: 52px; display: flex; align-items: center; }
.path .arr svg { width: 24px; fill: none; stroke: var(--ink); stroke-width: 1.5; }
.path-tip { font-size: 13px; color: var(--muted); margin: 12px 0 0; text-align: center; }
.board caption { text-align: left; font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; padding: 22px 0 4px; }

/* ——— Page Wikipédia intégrée ——— */
.wikiart { background: var(--w-bg); color: var(--w-text); border: 1px solid var(--w-border); padding: 16px 26px 26px; font: 15px/1.6 -apple-system, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif; margin: 6px 0 10px; overflow: hidden; }
.wa-crampon { border: 1px solid var(--w-border); background: var(--w-note); padding: 8px 12px; font-size: 14px; margin-bottom: 14px; }
.wa-top { display: flex; justify-content: space-between; gap: 12px; font-size: 12px; color: var(--w-muted); flex-wrap: wrap; }
.wa-title { font: 400 30px/1.3 'Linux Libertine', Georgia, Times, serif; border-bottom: 1px solid var(--w-border); margin: 4px 0 12px; padding-bottom: 2px; }
.wikiart a { color: var(--w-link); text-decoration: none; }
.wikiart a:hover { text-decoration: underline; }
.wikiart h2 { font: 400 23px/1.3 'Linux Libertine', Georgia, Times, serif; border-bottom: 1px solid var(--w-border); margin: 22px 0 8px; clear: both; }
.wikiart h3 { font: 700 17px/1.4 inherit; margin: 16px 0 6px; }
.wikiart h4 { font-size: 15px; margin: 12px 0 4px; }
.wikiart p { margin: 0 0 10px; }
.wikiart .note { color: var(--w-muted); font-size: 13px; }
.wikiart sup.reference { font-size: 11px; }
.wikiart table { font-size: 13px; }
.wikiart .wikitable { border-collapse: collapse; background: var(--w-box); margin: 8px 0 14px; }
.wikiart .wikitable th, .wikiart .wikitable td { border: 1px solid var(--w-border); padding: 3px 7px; }
.wikiart .wikitable th { background: var(--w-box2); }
.wikiart .infobox_v3, .wikiart .infobox_v2, .wikiart .infobox { float: right; clear: right; width: 300px; max-width: 100%; margin: 0 0 14px 20px; border: 1px solid var(--w-border); background: var(--w-box); font-size: 13px; padding: 4px; }
.wikiart .infobox_v3 .entete, .wikiart .infobox_v2 .entete { font-weight: 700; text-align: center; font-size: 15px; padding: 8px 4px; background: var(--w-sect); }
.wikiart .infobox_v3 table { width: 100%; border-collapse: collapse; }
.wikiart table.infobox_v2 { border-collapse: collapse; }
.wikiart .infobox_v2 th, .wikiart .infobox_v2 td { padding: 3px 5px; vertical-align: top; text-align: left; border-top: 1px solid var(--w-box2); }
.wikiart .infobox_v2 caption, .wikiart .infobox_v2 .entete { background: var(--w-sect); font-weight: 700; padding: 6px; text-align: center; }
.wikiart .infobox_v3 th, .wikiart .infobox_v3 td { padding: 2px 4px; vertical-align: top; text-align: left; }
.wikiart .infobox_v3 caption, .wikiart .infobox_v3 .bloc { background: var(--w-sect2); font-weight: 700; text-align: center; padding: 3px; }
.wikiart .infobox_v3 .images, .wikiart .infobox_v3 .images img { text-align: center; max-width: 100%; height: auto; }
.wikiart figure { margin: 4px 0 12px 18px; float: right; clear: right; border: 1px solid var(--w-fig); background: var(--w-box); padding: 3px; max-width: 260px; font-size: 12px; }
.wikiart figure img { max-width: 100%; height: auto; display: block; }
.wikiart figcaption { padding: 3px; color: var(--w-text); }
.wikiart img { max-width: 100%; height: auto; }
.wikiart ul, .wikiart ol { padding-left: 22px; margin: 0 0 10px; }
.wikiart .mw-references-wrap, .wikiart .references { font-size: 12px; }
.wikiart .thumb, .wikiart .tright { float: right; margin: 0 0 10px 16px; }
@media (max-width: 860px) {
  .wikiart #wbody > section:first-of-type { display: flex; flex-direction: column; }
  .wikiart #wbody > section:first-of-type > .infobox_v2, .wikiart #wbody > section:first-of-type > .infobox_v3, .wikiart #wbody > section:first-of-type > .infobox { order: 2; }
  .wikiart .infobox_v3, .wikiart .infobox_v2, .wikiart .infobox, .wikiart figure { float: none; width: 100%; max-width: 100%; margin: 0 0 14px; }
}
@media (max-width: 600px) {
  .path .club { width: 60px; }
  .path .crest { width: 44px; height: 44px; }
  .path .arr { width: 16px; height: 44px; }
  .path .arr svg { width: 16px; }
  .wikiart { padding: 12px 14px; }
}

.wa-clip { max-height: 1700px; overflow: hidden; position: relative; }
.wa-clip::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 120px; background: linear-gradient(transparent, var(--w-bg)); }
.wa-more { display: block; margin: 12px auto 0; }
.board-wrap summary { cursor: pointer; font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; padding: 16px 0 6px; }

.theme { background: none; border: 0; padding: 0; cursor: pointer; font-size: 14px; color: var(--muted); }
.theme:hover { color: var(--ink); }

/* téléphone : onglets en bas de l'écran */
@media (max-width: 760px) {
  .bar-in { height: 52px; gap: 12px; }
  .logo { font-size: 30px; }
  .edition { display: none; }
  .bar-r { gap: 12px; }
  .who .me, .who .out { display: none; }
  .tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: var(--bar); border-top: 1px solid rgba(255,255,255,.12); gap: 0; padding-bottom: env(safe-area-inset-bottom); }
  .tabs a { flex: 1; flex-direction: column; justify-content: center; gap: 3px; padding: 8px 0 7px; font-size: 10.5px; letter-spacing: .06em; }
  .tabs a.on::after { left: 30%; right: 30%; top: 0; bottom: auto; background: var(--bar-accent); }
  .tabs svg { display: block; width: 21px; height: 21px; }
  body { padding-bottom: 64px; }
}
.topbar .theme { font-size: 18px; line-height: 1; }
.topbar .theme span { display: none; }

/* ——— Publicité et pages légales ——— */
.ad { border-top: 1px solid var(--hair); padding-top: 6px; margin: 28px 0; min-height: 120px; }
.ad > span { display: block; font-family: var(--cond); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.ad-side { min-height: 270px; }
.ad-fake { height: 250px; background: repeating-linear-gradient(135deg, var(--hair) 0 1px, transparent 1px 9px); }
.ad-wide .ad-fake { height: 100px; }
.foot .legal a { color: inherit; }
.prose mark { background: #f3d36b; color: #222; padding: 0 3px; }
.prose code { font-family: var(--mono, monospace); font-size: 14px; }
.prose table td { vertical-align: top; }
.danger { margin-top: 34px; border-top: 1px solid var(--hair); padding-top: 12px; max-width: 420px; }
.danger summary { cursor: pointer; color: var(--muted); font-size: 14px; }
.danger form { margin-top: 10px; }

/* ——— Partage et ligues ——— */
.sharebox { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.end-share { margin-top: 18px; }
.end-share .kicker { margin-bottom: 8px; }
.code { font-family: var(--mono); font-weight: 600; letter-spacing: .12em; border: 1px solid var(--hair); padding: 1px 6px; font-size: 12px; color: var(--muted); }
.code.big { font-size: 18px; color: var(--ink); border-color: var(--ink); }
.codein { font-family: var(--mono); text-transform: uppercase; letter-spacing: .2em; }
.invite { border-bottom: 1px solid var(--ink); padding: 12px 0 14px; margin-bottom: 26px; }
.invite .kicker { margin-bottom: 10px; }
.invite .sharebox { justify-content: flex-start; }
.invite.fresh { border-bottom-width: 3px; }
.league-forms { margin-top: 30px; }
.rank.leagues a { text-decoration: none; }
.rank .ok { color: var(--green, #2e7d4f); font-weight: 600; }
@media (max-width: 760px) { .tabs a { font-size: 9.5px; } }
.lglist { border-top: 2px solid var(--ink); }
.lg { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "nm pl" "meta pl"; gap: 2px 16px; padding: 10px 4px; border-bottom: 1px solid var(--hair); text-decoration: none; color: inherit; }
.lg:hover { background: rgba(127,127,127,.08); }
.lg .nm { grid-area: nm; display: flex; gap: 10px; align-items: baseline; font-size: 18px; }
.lg .meta { grid-area: meta; font-size: 13px; color: var(--muted); }
.lg .pl { grid-area: pl; align-self: center; font-family: var(--mono); font-size: 26px; font-weight: 600; }
.btn.sh { display: inline-flex; align-items: center; gap: 8px; padding: 10px 22px; font-size: 14px; }
.btn.sh svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
