/* Goalio — design system « Nocturne 90' ». Aucune dépendance. */

@font-face {
  font-family: "Barlow Condensed";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(fonts/barlow-condensed-latin-700-normal.woff2) format("woff2");
}

/* ---------------------------------------------------------------- tokens */
:root {
  --c-night: #09121C;
  --c-surface: #142231;
  --c-surface-2: #1A2B3D;
  --c-surface-3: #22374C;
  --c-line: rgba(244, 247, 250, .09);
  --c-line-2: rgba(244, 247, 250, .16);
  --c-text: #F4F7FA;
  --c-text-2: #A9B6C4;
  --c-text-3: #8C9CB0;
  --c-signal: #FFD447;
  --c-signal-ink: #1B1500;
  --c-red: #EF5662;
  --c-draw: #6E7F92;

  --f-title: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", sans-serif;
  --f-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;

  --fs-xs: .75rem; --fs-s: .8125rem; --fs-m: .9375rem; --fs-l: 1.0625rem;
  --fs-h3: 1.25rem; --fs-h2: 1.625rem; --fs-h1: clamp(2.25rem, 5.4vw, 4.25rem);

  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px; --s-6: 32px; --s-7: 48px; --s-8: 64px;
  --r-s: 6px; --r-m: 10px; --r-l: 14px;
  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --topbar-h: 64px;
  --tabbar-h: 0px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
@media (max-width: 760px) { :root { --topbar-h: 56px; --tabbar-h: 64px; } }

/* ---------------------------------------------------------------- base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--c-night); color-scheme: dark; }
body {
  margin: 0; min-height: 100vh; background: var(--c-night); color: var(--c-text);
  font: 400 var(--fs-m)/1.5 var(--f-body); font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased; padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom));
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--c-signal); }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--c-signal); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--f-title); font-weight: 700; letter-spacing: .005em; line-height: 1.02; margin: 0; text-wrap: balance; }
h1 { font-size: var(--fs-h1); text-transform: uppercase; }
h2 { font-size: var(--fs-h2); text-transform: uppercase; }
h3 { font-size: var(--fs-h3); }
p { margin: 0; }
.num, td, .score { font-variant-numeric: tabular-nums; }
.muted { color: var(--c-text-2); }
.small { font-size: var(--fs-s); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--c-signal); color: var(--c-signal-ink); padding: 8px 12px; z-index: 100; border-radius: var(--r-s); }
.skip:focus { left: 8px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.ico-s { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
.only-s { display: none !important; }
@media (max-width: 760px) { .only-s { display: inline-flex !important; } .hide-s { display: none !important; } }
@media (max-width: 420px) { .hide-xs { display: none !important; } }

/* ---------------------------------------------------------------- barre du haut */
.topbar { position: sticky; top: 0; z-index: 50; height: var(--topbar-h); background: rgba(9, 18, 28, .86); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--c-line); }
.topbar__in { max-width: var(--wrap); height: 100%; margin: 0 auto; padding: 0 var(--gutter); display: flex; align-items: center; gap: var(--s-5); }
.brand img { height: 34px; width: auto; }
.mainnav { display: flex; gap: var(--s-1); }
.mainnav a { padding: 8px 12px; border-radius: var(--r-s); font-weight: 600; font-size: var(--fs-m); color: var(--c-text-2); }
.mainnav a:hover { color: var(--c-text); background: var(--c-surface); }
.mainnav a.on { color: var(--c-text); box-shadow: inset 0 -2px 0 var(--c-signal); border-radius: 0; }
.topbar__tools { margin-left: auto; display: flex; align-items: center; gap: var(--s-3); }
.search { position: relative; display: flex; align-items: center; }
.search .ico-s { position: absolute; left: 10px; color: var(--c-text-3); pointer-events: none; width: 18px; height: 18px; }
.search input { width: 240px; height: 38px; padding: 0 12px 0 36px; background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r-m); outline: none; transition: border-color .15s, width .2s var(--ease); }
.search input:focus { border-color: var(--c-signal); width: 300px; }
.search input::placeholder { color: var(--c-text-3); }
.suggest { position: absolute; top: calc(100% + 6px); right: 0; width: min(380px, 92vw); max-height: 70vh; overflow: auto; background: var(--c-surface); border: 1px solid var(--c-line-2); border-radius: var(--r-m); padding: var(--s-1); box-shadow: 0 18px 40px rgba(0, 0, 0, .45); z-index: 60; }
.suggest a, .suggest .empty { display: flex; align-items: center; gap: var(--s-3); padding: 9px 10px; border-radius: var(--r-s); }
.suggest a:hover, .suggest a.on { background: var(--c-surface-3); color: var(--c-text); }
.suggest small { color: var(--c-text-3); display: block; font-size: var(--fs-xs); }
.suggest img { width: 22px; height: 22px; flex: none; }
.iconbtn { width: 40px; height: 40px; align-items: center; justify-content: center; border-radius: var(--r-m); color: var(--c-text-2); }
.lang { display: flex; border: 1px solid var(--c-line); border-radius: var(--r-s); overflow: hidden; }
.lang a { display: inline-flex; align-items: center; min-height: 32px; padding: 0 9px; font-size: var(--fs-xs); font-weight: 700; letter-spacing: .04em; color: var(--c-text-3); }
.lang a.on { background: var(--c-surface-3); color: var(--c-text); }
.lang a:hover { color: var(--c-text); }
@media (max-width: 760px) {
  .mainnav, .search { display: none; }
  .topbar__in { gap: var(--s-3); }
  .brand img { height: 30px; }
}
.demo { background: var(--c-signal); color: var(--c-signal-ink); text-align: center; font-size: var(--fs-s); font-weight: 600; padding: 6px var(--gutter); }

/* ---------------------------------------------------------------- barre d'onglets mobile */
.tabbar { display: none; }
@media (max-width: 760px) {
  .tabbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; height: calc(var(--tabbar-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); background: rgba(9, 18, 28, .94); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--c-line); }
  .tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 11px; font-weight: 600; color: var(--c-text-3); }
  .tabbar img, .tabbar svg { width: 24px; height: 24px; opacity: .55; transition: opacity .15s; }
  .tabbar a.on { color: var(--c-text); }
  .tabbar a.on img, .tabbar a.on svg { opacity: 1; }
  .tabbar a.on span { box-shadow: inset 0 -2px 0 var(--c-signal); }
}

/* ---------------------------------------------------------------- en-tête de page avec fond */
.ph { position: relative; isolation: isolate; overflow: hidden; background: var(--c-night); border-bottom: 1px solid var(--c-line); }
.ph__media { position: absolute; inset: 0; z-index: -2; }
.ph__media img { width: 100%; height: 100%; object-fit: cover; object-position: right center; }
.ph::after { content: ""; position: absolute; inset: 0; z-index: -1; background:
  linear-gradient(90deg, var(--c-night) 0%, rgba(9, 18, 28, .82) 34%, rgba(9, 18, 28, .25) 62%, rgba(9, 18, 28, .1) 100%),
  linear-gradient(0deg, var(--c-night) 0%, rgba(9, 18, 28, 0) 40%); }
.ph__body { position: relative; max-width: var(--wrap); margin: 0 auto; padding: var(--s-8) var(--gutter) var(--s-6); min-height: 300px; display: flex; flex-direction: column; justify-content: flex-end; gap: var(--s-3); }
.ph__body > * { max-width: 46%; }
.ph--hero .ph__body { min-height: min(62vh, 560px); padding-bottom: var(--s-7); }
.ph--compact .ph__body { min-height: 230px; }
.kicker { display: inline-flex; align-items: center; gap: var(--s-2); font-size: var(--fs-xs); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--c-signal); }
.kicker::before { content: ""; width: 18px; height: 2px; background: var(--c-signal); }
.ph .lead { color: var(--c-text-2); font-size: var(--fs-l); max-width: 44ch; }
.ph .crumb { font-size: var(--fs-s); color: var(--c-text-3); }
.ph .crumb a:hover { color: var(--c-text); }
.ph__actions { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-2); }
.ph__meta { display: flex; flex-wrap: wrap; gap: var(--s-2); align-items: center; }
@media (max-width: 1000px) { .ph__body > * { max-width: 70%; } }
@media (max-width: 760px) {
  .ph__media img { object-position: 70% center; }
  .ph::after { background: linear-gradient(0deg, var(--c-night) 4%, rgba(9, 18, 28, .78) 46%, rgba(9, 18, 28, .25) 100%); }
  .ph__body { min-height: 250px; padding-top: var(--s-7); padding-bottom: var(--s-5); }
  .ph__body > * { max-width: 100%; }
  .ph--hero .ph__body { min-height: 440px; }
  .ph--compact .ph__body { min-height: 200px; }
  .ph .lead { font-size: var(--fs-m); }
}

/* ---------------------------------------------------------------- boutons, puces, onglets */
.btn { display: inline-flex; align-items: center; gap: var(--s-2); height: 42px; padding: 0 var(--s-4); border-radius: var(--r-m); border: 1px solid var(--c-line-2); background: rgba(20, 34, 49, .7); font-weight: 650; font-size: var(--fs-m); color: var(--c-text); white-space: nowrap; }
.btn:hover { border-color: var(--c-text-2); color: var(--c-text); }
.btn--signal { background: var(--c-signal); border-color: var(--c-signal); color: var(--c-signal-ink); }
.btn--signal:hover { background: #ffe07a; color: var(--c-signal-ink); }
.btn img { width: 20px; height: 20px; }
.pin { display: inline-flex; align-items: center; gap: var(--s-2); height: 36px; padding: 0 var(--s-3) 0 var(--s-2); border-radius: 999px; border: 1px solid var(--c-line-2); background: rgba(20, 34, 49, .7); font-weight: 650; font-size: var(--fs-s); }
.pin img { width: 22px; height: 22px; opacity: .6; }
.pin[aria-pressed="true"] { border-color: var(--c-signal); color: var(--c-signal); }
.pin[aria-pressed="true"] img { opacity: 1; }
.pin--icon { width: 36px; padding: 0; justify-content: center; flex: none; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--c-line-2); background: transparent; font-size: var(--fs-s); font-weight: 600; color: var(--c-text-2); white-space: nowrap; }
.chip:hover { color: var(--c-text); border-color: var(--c-text-3); }
.chip.on, .chip[aria-pressed="true"] { background: var(--c-text); border-color: var(--c-text); color: var(--c-night); }
.chip b { font-weight: 700; color: var(--c-text-3); }
.chip.on b { color: var(--c-surface-3); }
.tag { display: inline-flex; align-items: center; height: 24px; padding: 0 8px; border-radius: var(--r-s); background: rgba(244, 247, 250, .08); font-size: var(--fs-xs); font-weight: 700; letter-spacing: .03em; color: var(--c-text-2); }
.tag--signal { background: rgba(255, 212, 71, .14); color: var(--c-signal); }
.tag--red { background: rgba(239, 86, 98, .15); color: var(--c-red); }
.chips { display: flex; gap: var(--s-2); flex-wrap: wrap; }
.chips--scroll { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter); }
.chips--scroll::-webkit-scrollbar { display: none; }
.tabs { position: sticky; top: var(--topbar-h); z-index: 20; background: rgba(9, 18, 28, .92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--c-line); }
.tabs__in { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); display: flex; gap: var(--s-5); overflow-x: auto; scrollbar-width: none; }
.tabs a { padding: 14px 0 12px; font-weight: 650; color: var(--c-text-3); white-space: nowrap; border-bottom: 2px solid transparent; }
.tabs a:hover { color: var(--c-text); }
.tabs a.on { color: var(--c-text); border-color: var(--c-signal); }
.seg { align-self: flex-start; display: inline-flex; padding: 3px; background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r-m); gap: 2px; overflow-x: auto; max-width: 100%; }
.seg a, .seg button { padding: 6px 12px; border-radius: 7px; border: 0; background: none; font-size: var(--fs-s); font-weight: 650; color: var(--c-text-2); white-space: nowrap; }
.seg .on { background: var(--c-surface-3); color: var(--c-text); }

/* ---------------------------------------------------------------- sections & cartes */
.page { padding-top: var(--s-6); padding-bottom: var(--s-8); display: flex; flex-direction: column; gap: var(--s-7); }
.sec { display: flex; flex-direction: column; gap: var(--s-4); }
.sec__head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s-4); }
.sec__head h2 { display: flex; align-items: center; gap: var(--s-3); }
.sec__head h2 img { width: 28px; height: 28px; }
.sec__head .more { font-size: var(--fs-s); font-weight: 650; color: var(--c-text-2); white-space: nowrap; }
.sec__head .more::after { content: " →"; }
.card { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r-l); overflow: hidden; }
.card__head { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); padding: var(--s-3) var(--s-4); border-bottom: 1px solid var(--c-line); }
.card__head h3 { font-size: 1.125rem; text-transform: uppercase; display: flex; gap: var(--s-2); align-items: center; min-width: 0; }
.card__head h3 a { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card__head small { color: var(--c-text-3); font-size: var(--fs-xs); white-space: nowrap; }
.card__body { padding: var(--s-4); }
.card--link { transition: border-color .15s, transform .15s var(--ease); }
.card--link:hover { border-color: var(--c-line-2); transform: translateY(-1px); }
.grid { display: grid; gap: var(--s-4); grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); }
.cols { display: grid; gap: var(--s-5); grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); align-items: start; }
@media (max-width: 1000px) { .cols { grid-template-columns: 1fr; } }
.empty { padding: var(--s-6) var(--s-4); text-align: center; color: var(--c-text-2); }
.onboard { display: grid; grid-template-columns: auto 1fr auto; gap: var(--s-4); align-items: center; padding: var(--s-5); background: linear-gradient(100deg, rgba(255, 212, 71, .08), transparent 60%), var(--c-surface); }
.onboard img { width: 56px; height: 56px; }
.onboard h3 { text-transform: uppercase; font-size: 1.375rem; }
@media (max-width: 760px) { .onboard { grid-template-columns: auto 1fr; } .onboard .btn { grid-column: 1 / -1; justify-content: center; } }

/* ---------------------------------------------------------------- KPI */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 1px; background: var(--c-line); border: 1px solid var(--c-line); border-radius: var(--r-l); overflow: hidden; }
.kpi { background: var(--c-surface); padding: var(--s-3) var(--s-4); display: flex; flex-direction: column; gap: 2px; }
.kpi b { font-family: var(--f-title); font-size: 2rem; line-height: 1; font-weight: 700; }
.kpi span { font-size: var(--fs-xs); color: var(--c-text-3); text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.kpi--signal b { color: var(--c-signal); }
@media (max-width: 760px) { .kpis { grid-template-columns: repeat(2, 1fr); } .kpi b { font-size: 1.625rem; } }

/* ---------------------------------------------------------------- pastilles de forme */
.form { display: inline-flex; gap: 3px; }
.f { width: 20px; height: 20px; border-radius: 5px; display: inline-grid; place-items: center; font-size: 11px; font-weight: 800; line-height: 1; }
.f--W { background: var(--c-signal); color: var(--c-signal-ink); }
.f--D { background: var(--c-draw); color: var(--c-night); }
.f--L { background: var(--c-red); color: var(--c-night); }
.f--x { background: transparent; border: 1px dashed var(--c-line-2); }
.form--lg .f { width: 26px; height: 26px; font-size: 12px; border-radius: 6px; }
.trend { display: inline-block; width: 10px; font-size: 9px; line-height: 1; }
.trend--up { color: var(--c-signal); }
.trend--down { color: var(--c-red); }

/* ---------------------------------------------------------------- carte / ligne de match */
.matches { list-style: none; margin: 0; padding: 0; }
.match { display: grid; grid-template-columns: 78px minmax(0, 1fr) 64px minmax(0, 1fr); align-items: center; gap: var(--s-3); padding: 10px var(--s-4); border-top: 1px solid var(--c-line); font-size: var(--fs-m); }
.matches > .match:first-child { border-top: 0; }
.match__when { font-size: var(--fs-xs); color: var(--c-text-3); line-height: 1.3; font-weight: 600; }
.match__when b, .match__when span { display: block; font-weight: 600; }
.match__team { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.match__team--h { text-align: right; }
.match__team.win { font-weight: 700; color: var(--c-text); }
.match__team.lose { color: var(--c-text-2); }
.match__team.fav { text-decoration: underline 2px var(--c-signal); text-underline-offset: 5px; }
.score { display: inline-flex; justify-content: center; align-items: center; gap: 2px; height: 30px; min-width: 58px; border-radius: var(--r-s); background: var(--c-night); border: 1px solid var(--c-line-2); font-weight: 800; font-size: 1.0625rem; letter-spacing: .02em; justify-self: center; }
.score i { font-style: normal; color: var(--c-text-3); font-weight: 500; padding: 0 2px; }
.score--up { background: transparent; border-style: dashed; color: var(--c-text-2); font-size: var(--fs-s); font-weight: 700; }
.score--st { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--c-red); border-color: rgba(239, 86, 98, .5); background: transparent; padding: 0 6px; text-align: center; line-height: 1.1; }
.match__note { grid-column: 2 / -1; font-size: var(--fs-xs); color: var(--c-red); text-align: center; margin-top: -4px; }
@media (max-width: 760px) {
  .match { grid-template-columns: minmax(0, 1fr) 56px minmax(0, 1fr); row-gap: 2px; padding: 10px var(--s-3); font-size: var(--fs-s); }
  .match__when { grid-column: 1 / -1; text-align: center; }
  .match__when b, .match__when span { display: inline; }
  .match__when span::before { content: " · "; }
  .score { min-width: 52px; height: 28px; font-size: 1rem; }
  .match__note { grid-column: 1 / -1; }
}
/* carte match autonome (favoris) */
.mcard { display: flex; flex-direction: column; gap: var(--s-2); padding: var(--s-3) var(--s-4); }
.mcard__label { font-size: var(--fs-xs); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--c-text-3); display: flex; justify-content: space-between; }
.mcard .match { padding: 0; border: 0; grid-template-columns: minmax(0, 1fr) 58px minmax(0, 1fr); }
.mcard .match__when { display: none; }

/* ---------------------------------------------------------------- tableaux / ligne de classement */
.tablewrap { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: var(--fs-m); }
.tbl th { font-size: var(--fs-xs); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--c-text-3); text-align: right; padding: 10px 8px; border-bottom: 1px solid var(--c-line-2); white-space: nowrap; }
.tbl td { padding: 0 8px; height: 42px; text-align: right; border-bottom: 1px solid var(--c-line); white-space: nowrap; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl .l { text-align: left; }
.tbl .c { text-align: center; }
.tbl th:first-child, .tbl td:first-child { padding-left: var(--s-4); }
.tbl th:last-child, .tbl td:last-child { padding-right: var(--s-4); }
.tbl .pos { width: 46px; text-align: left; font-weight: 700; color: var(--c-text-2); }
.tbl .team { text-align: left; width: 100%; max-width: 0; overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
.tbl .pts { font-weight: 800; color: var(--c-text); font-size: var(--fs-l); }
.tbl .dim { color: var(--c-text-2); }
.tbl tbody tr { transition: background .1s; }
.tbl tbody tr:hover { background: rgba(244, 247, 250, .03); }
.tbl tr.me { background: rgba(255, 212, 71, .08); }
.tbl tr.me td:first-child { box-shadow: inset 3px 0 0 var(--c-signal); }
.tbl tr.me .team { color: var(--c-signal); }
.tbl tr.zone-top td:first-child { box-shadow: inset 3px 0 0 rgba(244, 247, 250, .5); }
.tbl--mini td { height: 36px; font-size: var(--fs-s); }
.tbl--wrap th { white-space: normal; line-height: 1.2; vertical-align: bottom; }
.tbl--wrap .team { min-width: 120px; }
.tbl--mini .pts { font-size: var(--fs-m); }
@media (max-width: 760px) {
  .tbl { font-size: var(--fs-s); }
  .tbl td { height: 40px; padding: 0 5px; }
  .tbl th { padding: 8px 5px; }
  .tbl th:first-child, .tbl td:first-child { padding-left: var(--s-3); }
  .tbl th:last-child, .tbl td:last-child { padding-right: var(--s-3); }
  .tbl .pos { width: 36px; }
  .f { width: 17px; height: 17px; font-size: 10px; border-radius: 4px; }
  .form { gap: 2px; }
}

/* ---------------------------------------------------------------- cartes série / équipe */
.scard { display: flex; flex-direction: column; }
.scard__top { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--s-3); padding: var(--s-4) var(--s-4) var(--s-3); }
.scard__top h3 { font-size: 1.25rem; text-transform: uppercase; }
.scard__top p { font-size: var(--fs-xs); color: var(--c-text-3); margin-top: 4px; font-weight: 600; letter-spacing: .03em; }
.scard .tbl { border-top: 1px solid var(--c-line); }
.tcard__body { padding: var(--s-4); display: grid; gap: var(--s-4); }
.tcard__stats { display: flex; gap: var(--s-5); align-items: flex-end; flex-wrap: wrap; }
.stat b { display: block; font-family: var(--f-title); font-size: 2.125rem; line-height: 1; }
.stat span { font-size: var(--fs-xs); color: var(--c-text-3); text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.stat--rank b { color: var(--c-signal); }
.tcard__matches { display: grid; grid-template-columns: 1fr; gap: 1px; background: var(--c-line); border-top: 1px solid var(--c-line); }
.tcard__matches > * { background: var(--c-surface); }
@media (max-width: 760px) { .tcard__matches { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- listes (exploration) */
.rows { list-style: none; margin: 0; padding: 0; }
.rows li + li { border-top: 1px solid var(--c-line); }
.rows a { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--s-1) var(--s-4); align-items: center; padding: 12px var(--s-4); }
.rows a:hover { background: rgba(244, 247, 250, .03); color: var(--c-text); }
.rows b { font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rows small { grid-column: 1; color: var(--c-text-3); font-size: var(--fs-xs); }
.rows .side { grid-row: 1 / span 2; grid-column: 2; text-align: right; font-size: var(--fs-s); color: var(--c-text-2); }
.rows .side strong { display: block; color: var(--c-text); font-weight: 650; }
.bigsearch { position: relative; max-width: 560px; }
.bigsearch input { width: 100%; height: 54px; padding: 0 var(--s-4) 0 48px; font-size: var(--fs-l); background: rgba(20, 34, 49, .9); border: 1px solid var(--c-line-2); border-radius: var(--r-l); outline: none; }
.bigsearch input:focus { border-color: var(--c-signal); }
.bigsearch .ico-s { position: absolute; left: 16px; top: 17px; width: 20px; height: 20px; color: var(--c-text-3); }
.filters { display: flex; flex-wrap: wrap; gap: var(--s-3); align-items: center; }
.filters label { display: inline-flex; align-items: center; gap: var(--s-2); font-size: var(--fs-xs); color: var(--c-text-3); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.filters select { height: 34px; padding: 0 28px 0 10px; border-radius: var(--r-s); background: var(--c-surface); border: 1px solid var(--c-line-2); font-size: var(--fs-s); text-transform: none; letter-spacing: 0; font-weight: 600; color: var(--c-text); }
.region { display: grid; gap: var(--s-3); }
.region h3 { font-size: 1.125rem; text-transform: uppercase; color: var(--c-text-2); }

/* ---------------------------------------------------------------- semaine (résultats) */
.weekbar { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); }
.weekbar__nav { display: flex; align-items: center; gap: var(--s-2); }
.weekbar__nav a, .weekbar__nav span.btn { width: 42px; padding: 0; justify-content: center; }
.weekbar__nav span.btn { opacity: .35; }
.weekbar strong { font-family: var(--f-title); font-size: 1.5rem; text-transform: uppercase; }
@media (max-width: 760px) { .weekbar strong { font-size: 1.125rem; } .weekbar__nav a, .weekbar__nav span.btn { width: 38px; height: 38px; } }

/* ---------------------------------------------------------------- graphiques */
.chart { width: 100%; height: auto; display: block; overflow: visible; }
.chart .grid { stroke: var(--c-line); stroke-width: 1; }
.chart text { fill: var(--c-text-3); font: 600 11px var(--f-body); font-variant-numeric: tabular-nums; }
.chart .lbl { fill: var(--c-text-2); font-size: 12px; }
.chart .val { fill: var(--c-text); font-weight: 700; font-size: 12px; }
.chart .onbar { fill: var(--c-night); font-weight: 800; }
.chart .endlbl { font-weight: 700; font-size: 11px; }
.legend { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-4); margin-top: var(--s-3); font-size: var(--fs-xs); color: var(--c-text-2); }
.legend i { display: inline-block; width: 10px; height: 3px; border-radius: 2px; margin-right: 6px; vertical-align: middle; }
.cbox { padding: var(--s-4); }
.split { display: flex; height: 34px; border-radius: var(--r-s); overflow: hidden; gap: 2px; }
.split > div { display: flex; align-items: center; justify-content: center; font-size: var(--fs-s); font-weight: 800; min-width: 0; white-space: nowrap; overflow: hidden; }
.split__legend { display: flex; justify-content: space-between; margin-top: var(--s-2); font-size: var(--fs-xs); color: var(--c-text-3); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.rec { display: grid; gap: var(--s-1); padding: var(--s-3) var(--s-4); }
.rec + .rec { border-top: 1px solid var(--c-line); }
.rec span { font-size: var(--fs-xs); color: var(--c-text-3); text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }

/* ---------------------------------------------------------------- pied de page & divers */
.footer { border-top: 1px solid var(--c-line); margin-top: var(--s-6); }
.footer__in { max-width: var(--wrap); margin: 0 auto; padding: var(--s-6) var(--gutter); display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-4) var(--s-6); color: var(--c-text-3); font-size: var(--fs-s); }
.footer__in img { height: 28px; width: auto; }
.footer nav { display: flex; gap: var(--s-4); margin-left: auto; }
@media (max-width: 760px) { .footer nav { margin-left: 0; } }
.footer .footer__legal { flex-basis: 100%; margin-left: 0; font-size: var(--fs-xs); }
.footer__legal a { color: var(--c-text-3); }
.legal { max-width: 72ch; }
.legal h2 { margin-top: var(--s-5); text-transform: none; }
.legal h2:first-child { margin-top: 0; }
.legal p, .legal li { line-height: 1.6; }
.legal__mail { font-size: var(--fs-l); font-weight: 600; }
.legal__list { padding-left: 1.2em; }
.boot { display: grid; place-items: center; min-height: 60vh; }
.spin { width: 28px; height: 28px; border: 3px solid var(--c-line-2); border-top-color: var(--c-signal); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.morebtn { display: flex; justify-content: center; padding: var(--s-3); border-top: 1px solid var(--c-line); }
.slot:empty { display: none; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }

/* ---------------------------------------------------------------- dashboard & forme */
.dash { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-4); align-items: start; }
.dash .w-wide { grid-column: 1 / -1; }
@media (max-width: 860px) { .dash { grid-template-columns: 1fr; } }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--c-line); }
.two > * { background: var(--c-surface); }
@media (max-width: 760px) { .two { grid-template-columns: 1fr; } }
.subhead { padding: 10px var(--s-4) 6px; font-size: var(--fs-xs); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--c-text-3); border-top: 1px solid var(--c-line); }
.card > div > .subhead:first-child, .two .subhead { border-top: 0; }
.rows--tight .rowx { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px var(--s-3); align-items: center; padding: 8px var(--s-4); }
.rows--tight b { font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rows--tight small { grid-column: 1; color: var(--c-text-3); font-size: var(--fs-xs); }
.rows--tight .side { grid-row: 1 / span 2; grid-column: 2; }
.big { font-family: var(--f-title); font-size: 1.625rem; line-height: 1; }
.delta { font-weight: 800; font-size: var(--fs-m); }
.delta--up { color: var(--c-signal); }
.delta--down { color: var(--c-red); }
.kpi b small { font-size: .55em; color: var(--c-text-3); margin-left: 2px; }
.stat b small { font-size: .5em; color: var(--c-text-3); margin-left: 2px; }
.streaks { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.streak { display: inline-flex; align-items: baseline; gap: 6px; padding: 6px 12px; border-radius: 999px; background: var(--c-surface); border: 1px solid var(--c-line-2); font-size: var(--fs-s); color: var(--c-text-2); font-weight: 600; }
.streak b { font-family: var(--f-title); font-size: 1.25rem; color: var(--c-text); }
.streak--signal { border-color: rgba(255, 212, 71, .5); }
.streak--signal b { color: var(--c-signal); }
.streak--red { border-color: rgba(239, 86, 98, .45); }
.streak--red b { color: var(--c-red); }
.dyn { display: flex; flex-direction: column; }
.dyn__top { display: flex; justify-content: space-between; gap: var(--s-3); padding: var(--s-4) var(--s-4) var(--s-2); }
.dyn__top h3 { font-size: 1.25rem; text-transform: uppercase; }
.dyn__body { display: flex; gap: var(--s-5); flex-wrap: wrap; padding: var(--s-2) var(--s-4) var(--s-4); align-items: flex-end; }
.dyn__body > div { display: flex; flex-direction: column; gap: 6px; }
.dyn__foot { display: flex; align-items: center; gap: var(--s-2); padding: 10px var(--s-4); border-top: 1px solid var(--c-line); font-size: var(--fs-s); font-weight: 650; color: var(--c-signal); margin-top: auto; }
.dyn__foot img { width: 18px; height: 18px; }
.scard__foot { display: flex; justify-content: space-between; gap: var(--s-3); padding: 10px var(--s-4); border-top: 1px solid var(--c-line); font-size: var(--fs-s); color: var(--c-text-2); margin-top: auto; }
.scard__foot span:first-child { display: inline-flex; align-items: center; gap: 6px; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.scard__foot img { width: 18px; height: 18px; }
.scard__foot b { color: var(--c-text); }
.scard__foot:hover { color: var(--c-signal); }

.kpis--7 { grid-template-columns: repeat(7, minmax(0, 1fr)); }
@media (max-width: 1000px) { .kpis--7 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 760px) { .kpis--7 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.dyn__score { display: inline-flex; align-items: center; gap: var(--s-2); }
.dyn__score b { font-family: var(--f-title); font-size: 1.375rem; }
.scard__foot span:last-child { white-space: nowrap; flex: none; }

/* ---------------------------------------------------------------- pages statiques (SEO, sans JavaScript) */
.nojs .js-only { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.h3 { font-family: var(--f-title); font-weight: 700; font-size: var(--fs-h3); line-height: 1.05; text-transform: uppercase; margin: 0; }
.h1-sub { display: block; font-size: .5em; color: var(--c-text-2); margin-top: 6px; }
.mt6 { margin-top: 6px; }
.tbl tbody th { font: inherit; text-transform: none; letter-spacing: 0; color: inherit; padding: 0 8px; height: 42px; border-bottom: 1px solid var(--c-line); text-align: left; font-weight: 600; }
.tbl--mini tbody th { height: 36px; font-size: var(--fs-s); }
.tbl tr:last-child th { border-bottom: 0; }
.crumbs { max-width: var(--wrap); margin: 0 auto; padding: 10px var(--gutter) 0; position: relative; z-index: 2; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; font-size: var(--fs-xs); color: var(--c-text-3); }
.crumbs li + li::before { content: "›"; margin-right: 4px; }
.crumbs a { text-decoration: underline; text-decoration-color: var(--c-line-2); text-underline-offset: 3px; }
.crumbs [aria-current] { color: var(--c-text-2); }
main > .crumbs + .ph { margin-top: -34px; }
main > .crumbs + .ph .ph__body { padding-top: 72px; }
.hbars { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.hbars li { display: grid; grid-template-columns: minmax(0, 38%) 1fr 34px; gap: var(--s-3); align-items: center; font-size: var(--fs-s); }
.hbars__l { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: right; color: var(--c-text-2); }
.hbars__b { height: 12px; }
.hbars__b i { display: block; height: 100%; border-radius: 3px; background: #3A4C60; min-width: 2px; }
.hbars__b i.on--signal { background: var(--c-signal); }
.hbars__b i.on--text { background: var(--c-text); }
.hbars__b i.on--red { background: var(--c-red); }
.hbars b { font-weight: 700; }
.vbars__plot { position: relative; height: 150px; display: flex; align-items: flex-end; gap: 3px; border-bottom: 1px solid var(--c-line-2); }
.vbars__plot span { flex: 1; background: #3A4C60; border-radius: 2px 2px 0 0; min-height: 1px; }
.vbars__plot span.hi { background: var(--c-signal); }
.vbars__avg { position: absolute; left: 0; right: 0; border-top: 1px dashed var(--c-red); }
.vbars__x { display: flex; gap: 3px; margin-top: 6px; }
.vbars__x span { flex: 1; text-align: center; font-size: 10px; color: var(--c-text-3); min-width: 0; overflow: visible; white-space: nowrap; }
.details summary { cursor: pointer; padding: var(--s-3) var(--s-4); font-weight: 650; color: var(--c-text-2); list-style-position: inside; }
.details[open] summary { border-bottom: 1px solid var(--c-line); }
.details--inline summary { cursor: pointer; padding: var(--s-3) var(--s-4); border-top: 1px solid var(--c-line); font-weight: 650; color: var(--c-text-2); text-align: center; }
.pager { display: flex; justify-content: space-between; gap: var(--s-3); }
.pager .btn { white-space: normal; text-align: center; height: auto; min-height: 42px; }
.rounds { gap: 6px; }
.rounds .chip { min-width: 40px; justify-content: center; height: 34px; }
.chip--up { border-style: dashed; }
.weekbar__t { font-size: 1.5rem; }
@media (max-width: 760px) { .weekbar__t { font-size: 1.125rem; } }
.suggest--static { position: static; width: auto; max-height: none; box-shadow: none; }
.tabs a, .rows a, .chip, .btn, .mainnav a { min-height: 24px; }
body.root { padding-bottom: 0; }
.root main { min-height: 100vh; display: flex; flex-direction: column; gap: var(--s-4); justify-content: center; }
.langs { list-style: none; margin: 0; padding: 0; display: flex; gap: var(--s-3); flex-wrap: wrap; }
.langs a { display: inline-flex; align-items: center; height: 44px; padding: 0 var(--s-5); border: 1px solid var(--c-line-2); border-radius: var(--r-m); font-weight: 650; }
.match__team.fav { text-decoration: underline 2px var(--c-signal); text-underline-offset: 5px; }
.card__head h2 { font-size: 1.125rem; text-transform: uppercase; display: flex; gap: var(--s-2); align-items: center; min-width: 0; margin: 0; }
.card__head h2 a { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sec > .h3, nav.sec > .h3, .region > .h3 { display: flex; align-items: center; gap: var(--s-2); }
a.small, .card__head small a { display: inline-block; min-height: 24px; line-height: 24px; }
.split > div { color: var(--c-night); }
.dyn__top h3 a, .scard__top h3 a { display: inline-block; min-height: 24px; line-height: 1.15; padding: 2px 0; }

/* ---------------------------------------------------------------- textes automatiques */
.aitext { padding: var(--s-3) var(--s-4); border-bottom: 1px solid var(--c-line); display: grid; gap: 4px; }
.aitext p { color: var(--c-text); line-height: 1.55; }
.aitext small { color: var(--c-text-3); font-size: var(--fs-xs); }

/* ---------------------------------------------------------------- emplacements publicitaires (future régie)
   Hauteur réservée d'avance : l'annonce se charge dedans sans pousser le contenu (CLS = 0). */
.ad { position: relative; display: flex; align-items: center; justify-content: center; width: 100%; overflow: hidden; contain: layout paint;
  border: 1px dashed var(--c-line-2); border-radius: var(--r-l); background: rgba(20, 34, 49, .5); }
.ad__label { position: absolute; top: 6px; left: 10px; font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--c-text-3); }
.ad--banner { height: 122px; }            /* 728×90 (+ libellé) */
.ad--rect { height: 282px; max-width: 336px; margin: 0 auto; }   /* 300×250 / 336×280 */
@media (max-width: 760px) { .ad--banner { height: 132px; } }      /* 320×100 (+ libellé) */

/* ---------------------------------------------------------------- projections, avant-match, joueurs (sprint 14/11) */
.score--pm { color: var(--c-signal); border-color: rgba(255, 212, 71, .45); transition: background .15s; }
.score--pm:hover { background: rgba(255, 212, 71, .1); }
.tbl--proj .prob, .tbl--proj .prob-h { white-space: nowrap; }
.prob-h { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .04em; }
.prob { font-weight: 700; text-align: center; min-width: 64px; background: rgba(255, 212, 71, calc(var(--p) * .55)); color: var(--c-text); }
.prob--red { background: rgba(239, 86, 98, calc(var(--p) * .6)); }
.tbl--heat th, .tbl--heat td { padding: 6px 4px; min-width: 30px; text-align: center; font-size: var(--fs-xs); }
.tbl--heat .team { text-align: left; min-width: 120px; }
.heat { background: rgba(255, 212, 71, calc(var(--p) * .7)); color: var(--c-text); font-weight: 600; }
.diff { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: var(--fs-xs); font-weight: 700; white-space: nowrap; }
.diff--hard { background: rgba(239, 86, 98, .16); color: #F59AA2; }
.diff--mid { background: rgba(244, 247, 250, .08); color: var(--c-text-2); }
.diff--easy { background: rgba(255, 212, 71, .14); color: var(--c-signal); }
.opps { white-space: nowrap; }
.opp { display: inline-grid; place-items: center; min-width: 38px; height: 22px; margin-right: 3px; padding: 0 4px; border-radius: 5px; font-size: 10px; font-weight: 800; letter-spacing: .02em; }
.opp--hard { background: rgba(239, 86, 98, .28); }
.opp--mid { background: var(--c-surface-3); color: var(--c-text-2); }
.opp--easy { background: rgba(255, 212, 71, .22); color: var(--c-signal); }
.upms { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); }
.upm { display: grid; grid-template-columns: 74px 1fr auto; gap: var(--s-3); align-items: center; padding: var(--s-3) var(--s-4); border-top: 1px solid var(--c-line); color: inherit; text-decoration: none; }
.upm:hover { background: var(--c-surface-2); }
.upm__when { font-size: var(--fs-xs); color: var(--c-text-3); font-weight: 600; }
.upm__teams { font-weight: 650; line-height: 1.25; min-width: 0; }
.upm__teams i { font-style: normal; color: var(--c-text-3); }
.upm__p { display: inline-flex; gap: 4px; }
.upm__p b { min-width: 28px; text-align: center; font-size: var(--fs-xs); padding: 2px 0; border-radius: 4px; background: var(--c-surface-3); }
.pbar { display: flex; height: 64px; border-radius: var(--r-m); overflow: hidden; gap: 2px; }
.pbar__s { display: flex; flex-direction: column; justify-content: center; padding: 0 var(--s-3); min-width: 0; }
.pbar__s b { font-family: var(--f-title); font-size: 1.75rem; line-height: 1; }
.pbar__s span { font-size: var(--fs-xs); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; opacity: .85; }
.pbar__s--h { background: var(--c-signal); color: var(--c-signal-ink); }
.pbar__s--d { background: var(--c-draw); color: var(--c-text); align-items: center; }
.pbar__s--a { background: var(--c-surface-3); color: var(--c-text); align-items: flex-end; text-align: right; }
.pm__sub { display: flex; flex-wrap: wrap; gap: var(--s-5); margin: var(--s-4) 0 0; color: var(--c-text-2); font-size: var(--fs-s); }
.pm__sub b { color: var(--c-text); font-size: var(--fs-m); }
.vs-dash { color: var(--c-signal); }
.vs { width: 100%; border-collapse: collapse; }
.vs th, .vs td { padding: 9px 4px; border-top: 1px solid var(--c-line); }
.vs thead th { border-top: 0; font-size: var(--fs-s); }
.vs__l { text-align: left; width: 34%; }
.vs__r { text-align: right; width: 34%; }
.vs__r .form { justify-content: flex-end; }
.vs__m { text-align: center; color: var(--c-text-3); font-size: var(--fs-xs); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.mbar { display: grid; grid-template-columns: repeat(6, 1fr); gap: var(--s-2); align-items: end; }
.mbar__g { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.mbar__bs { display: flex; align-items: flex-end; gap: 3px; height: 120px; width: 100%; justify-content: center; }
.mbar__b { position: relative; width: 40%; max-width: 22px; min-height: 2px; border-radius: 4px 4px 0 0; }
.mbar__b i { position: absolute; top: -17px; left: 50%; transform: translateX(-50%); font-style: normal; font-size: 10px; font-weight: 700; color: var(--c-text-2); }
.mbar__b--f { background: var(--c-signal); }
.mbar__b--a { background: var(--c-red); opacity: .85; }
.mbar__g small { font-size: 10px; color: var(--c-text-3); white-space: nowrap; }
.mbar__lg { display: flex; gap: var(--s-4); margin-top: var(--s-3); font-size: var(--fs-xs); color: var(--c-text-2); }
.lg::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.lg--f::before { background: var(--c-signal); }
.lg--a::before { background: var(--c-red); }
.xi { display: flex; flex-direction: column; gap: var(--s-4); padding: var(--s-5) var(--s-3); border-radius: var(--r-l); border: 1px solid var(--c-line);
  background: linear-gradient(180deg, rgba(255, 255, 255, .03), rgba(255, 255, 255, 0) 50%, rgba(255, 255, 255, .03)),
              repeating-linear-gradient(180deg, #13261d 0 48px, #112219 48px 96px); position: relative; overflow: hidden; }
.xi::before { content: ""; position: absolute; left: 50%; top: 50%; width: 120px; height: 120px; margin: -60px 0 0 -60px; border: 1px solid rgba(255, 255, 255, .08); border-radius: 50%; }
.xi::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 1px solid rgba(255, 255, 255, .08); }
.xi__line { display: flex; justify-content: center; gap: var(--s-3); flex-wrap: wrap; position: relative; z-index: 1; }
.xi__p { display: flex; flex-direction: column; align-items: center; text-align: center; width: 118px; gap: 2px; }
.xi__p b { font-size: var(--fs-s); line-height: 1.2; }
.xi__p b a { color: var(--c-text); }
.xi__p small { font-size: 10px; color: var(--c-text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.xi__r { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--c-signal); color: var(--c-signal-ink); font-weight: 800; font-size: var(--fs-s); box-shadow: 0 2px 10px rgba(0, 0, 0, .35); }
@media (max-width: 560px) {
  .xi__p { width: 84px; } .xi__r { width: 32px; height: 32px; font-size: var(--fs-xs); }
  .pbar__s b { font-size: 1.375rem; } .pbar { height: 56px; }
  .upm { grid-template-columns: 62px 1fr auto; }
}
.star { display: flex; gap: var(--s-4); align-items: center; }
.star__r { flex: none; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--c-signal); color: var(--c-signal-ink); font-family: var(--f-title); font-size: 1.75rem; font-weight: 700; }
.star .big a { color: var(--c-text); }
.belups { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: var(--s-2); }
.belup { display: grid; grid-template-columns: 96px 1fr; gap: var(--s-3); padding: var(--s-3) var(--s-4); background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r-m); }
.belup__when { display: flex; flex-direction: column; gap: 2px; }
.belup__when b { font-size: var(--fs-s); }
.belup__when small, .belup__m small { color: var(--c-text-3); font-size: var(--fs-xs); }
.belup__m { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.belup__m b i { font-style: normal; color: var(--c-text-3); }
.belup__m small a { color: var(--c-text-2); }

@media (max-width: 560px) {
  .tbl--proj .team, .tbl--cal .team { white-space: normal; min-width: 104px; max-width: none; width: auto; }
  .tbl--proj .team a, .tbl--cal .team a { white-space: normal; overflow: visible; text-overflow: clip; display: inline; }
  .prob { min-width: 40px; font-size: var(--fs-xs); padding-left: 2px; padding-right: 2px; }
  .tbl--proj thead th { white-space: normal; }
  .prob-h { font-size: 10px; white-space: normal !important; }
}
