/* TDM Fantasy — pixel court. Artwork built from crisp-edged SVG blocks, not generated imagery. */
:root[data-theme="light"] {
  --tdm-forest:#073f30;
  --tdm-green:#087a43;
  --tdm-green-dark:#064e34;
  --tdm-green-soft:#e9f3e9;
  --tdm-ink:#17271f;
  --tdm-muted:#607066;
  --tdm-canvas:#f3f5ec;
  --tdm-line:#264a38;
  --tdm-shadow:4px 4px 0 rgba(15,55,37,.18);
}
:root[data-theme="light"] body {
  background-color:var(--tdm-canvas);
  background-image:
    linear-gradient(90deg,rgba(7,63,48,.025) 1px,transparent 1px),
    linear-gradient(rgba(7,63,48,.025) 1px,transparent 1px);
  background-size:8px 8px;
  color:var(--tdm-ink);
}
:root[data-theme="light"] .block,
:root[data-theme="light"] .roster-panel,
:root[data-theme="light"] .stat,
:root[data-theme="light"] .player,
:root[data-theme="light"] .rank,
:root[data-theme="light"] .fixture,
:root[data-theme="light"] .bench,
:root[data-theme="light"] .week-panel,
:root[data-theme="light"] .league-action-card,
:root[data-theme="light"] .market-card,
:root[data-theme="light"] .account-identity,
:root[data-theme="light"] .account-panel {
  border:2px solid var(--tdm-forest);
  border-radius:3px;
  box-shadow:var(--tdm-shadow);
}
:root[data-theme="light"] .block,
:root[data-theme="light"] .roster-panel,
:root[data-theme="light"] .bench,
:root[data-theme="light"] .week-panel,
:root[data-theme="light"] .market-card,
:root[data-theme="light"] .league-action-card,
:root[data-theme="light"] .account-panel {
  background-color:#fffef7;
}
:root[data-theme="light"] .btn,
:root[data-theme="light"] .team-sticky-save,
:root[data-theme="light"] #auth-submit {
  border:2px solid #073f30;
  border-radius:2px;
  background:#0b7d46;
  color:#fffdf1;
  box-shadow:0 4px 0 #064b32;
  font-weight:900;
  text-shadow:1px 1px 0 rgba(0,0,0,.18);
}
:root[data-theme="light"] .btn:hover,
:root[data-theme="light"] .team-sticky-save:hover,
:root[data-theme="light"] #auth-submit:hover {
  transform:translateY(-1px);
  background:#096b3f;
}
:root[data-theme="light"] input:not([type="checkbox"]),
:root[data-theme="light"] select,
:root[data-theme="light"] textarea {
  border:2px solid #54735e;
  border-radius:2px;
  background:#fffef7;
}
:root[data-theme="light"] .side,
:root[data-theme="light"] .main::before {
  background-color:#063e2f;
  background-image:
    linear-gradient(90deg,transparent 0 14px,rgba(255,255,255,.045) 14px 18px,transparent 18px 32px),
    linear-gradient(transparent 0 14px,rgba(255,255,255,.045) 14px 18px,transparent 18px 32px);
  background-size:32px 32px;
}
:root[data-theme="light"] .side nav button,
:root[data-theme="light"] .side nav button.active {
  border-radius:2px;
}
:root[data-theme="light"] .auth-screen {
  background:#f2f4e9;
}
:root[data-theme="light"] .auth-side::after {
  content:"";
  display:block;
  width:min(100%,560px);
  height:260px;
  margin-top:22px;
  border:4px solid #173f2d;
  background:#083c2e url("/pixel-arena.svg?v=20261109-pixel-v1") center/cover no-repeat;
  image-rendering:pixelated;
  box-shadow:8px 8px 0 #d98e3d;
}
:root[data-theme="light"] .auth-card {
  border:3px solid #173f2d;
  border-radius:3px;
  background:#fffef7;
  box-shadow:8px 8px 0 rgba(7,63,48,.2);
}
:root[data-theme="light"] .auth-wordmark {
  color:#073f30;
  text-shadow:3px 3px 0 #f0bd5c;
}
:root[data-theme="light"] .auth-card #auth-switch {
  border:2px solid #17452f;
  border-radius:2px;
  box-shadow:0 3px 0 #d7e3d4;
}
:root[data-theme="light"] .stat {
  border-color:#1d563a;
  background:#fffef7;
  box-shadow:3px 3px 0 #cfdfce;
}
:root[data-theme="light"] .stat-k,
:root[data-theme="light"] .eyebrow,
:root[data-theme="light"] .dashboard-bench-heading {
  color:#38654b;
  font-family:ui-monospace,SFMono-Regular,Consolas,monospace;
  letter-spacing:.04em;
}
:root[data-theme="light"] .court {
  border:5px solid #70421f;
  border-radius:0;
  background:#d99443 url("/pixel-court.svg?v=20261109-pixel-v1") center/100% 100% no-repeat;
  box-shadow:6px 6px 0 #835326;
  image-rendering:pixelated;
}
:root[data-theme="light"] .court .parquet-lines { visibility:hidden; }
:root[data-theme="light"] .court-caption {
  color:#fff8dc;
  background:#073f30;
  border:2px solid #f4e6bd;
  border-radius:0;
  padding:5px 8px;
  font-family:ui-monospace,SFMono-Regular,Consolas,monospace;
}
:root[data-theme="light"] .court-player {
  border:3px solid #143d2a;
  border-radius:2px;
  background:#fffef3;
  color:#183323;
  box-shadow:4px 4px 0 rgba(40,32,18,.35);
}
:root[data-theme="light"] .court-player.club-card {
  background:#fffef3;
  border-color:#143d2a;
}
:root[data-theme="light"] .court-player .card-shirt-number {
  width:42px;
  height:48px;
  border:0;
  border-radius:0;
  clip-path:none;
  background:#0d6540 url("/pixel-player.svg?v=20261109-pixel-v1") center/contain no-repeat;
  color:#fff2cf;
  font:900 10px ui-monospace,monospace;
  text-shadow:1px 1px 0 #123b2b;
  image-rendering:pixelated;
}
:root[data-theme="light"] .court-player .court-player-text,
:root[data-theme="light"] .court-player .court-player-metric,
:root[data-theme="light"] .court-player .court-meta {
  color:#183323;
}
:root[data-theme="light"] .court-player .court-player-text strong {
  color:#123b2b;
  font-family:ui-monospace,SFMono-Regular,Consolas,monospace;
  font-size:11px;
}
:root[data-theme="light"] .court-player .court-player-text small,
:root[data-theme="light"] .court-player .court-next {
  color:#42634d;
}
:root[data-theme="light"] .court-player .court-player-metric b {
  color:#075c36;
  font-family:ui-monospace,SFMono-Regular,Consolas,monospace;
}
:root[data-theme="light"] .court-card-actions {
  border-top:2px solid #173f2d;
  background:#dcebd7;
}
:root[data-theme="light"] .court-card-actions .card-action {
  color:#15452e;
  border-color:#8aa58b;
}
:root[data-theme="light"] .court-card-actions .card-action.chosen {
  color:#9c5d16;
}
:root[data-theme="light"] .bench-number {
  border:2px solid #173f2d;
  border-radius:2px;
  background:#0d6540 url("/pixel-player.svg?v=20261109-pixel-v1") center/contain no-repeat;
  color:#fff3d3;
  text-shadow:1px 1px #173f2d;
  image-rendering:pixelated;
}
:root[data-theme="light"] .market-card {
  border-radius:3px;
  box-shadow:3px 3px 0 #d3dfcf;
}
:root[data-theme="light"] .market-card.club-card .market-portrait {
  position:relative;
  overflow:hidden;
  border:2px solid #183f2c;
  border-radius:2px;
  background:#0d6540;
  color:#fff4d8;
}
:root[data-theme="light"] .market-portrait::before {
  content:"";
  position:absolute;
  inset:0;
  background:url("/pixel-player.svg?v=20261109-pixel-v1") center 2px/contain no-repeat;
  image-rendering:pixelated;
}
:root[data-theme="light"] .market-portrait>span {
  position:absolute;
  z-index:1;
  bottom:11px;
  left:50%;
  transform:translateX(-50%);
  padding:1px 3px;
  background:#073f30;
  color:#fff4d8;
  font:900 11px ui-monospace,monospace;
}
:root[data-theme="light"] .market-portrait>small {
  position:absolute;
  z-index:1;
  bottom:0;
  left:0;
  right:0;
  padding:2px 0;
  background:#f0c45e;
  color:#173f2d;
  font:900 9px ui-monospace,monospace;
  text-align:center;
}
:root[data-theme="light"] .home-five-card {
  border:2px solid #173f2d;
  border-radius:2px;
  background:#fffef5;
  box-shadow:3px 3px 0 #d5dfca;
  color:#173f2d;
}
:root[data-theme="light"] .home-five-card .dash-shirt,
:root[data-theme="light"] .home-bench-card .dash-mini-shirt {
  border:1px solid #173f2d;
  border-radius:2px;
  background:#0d6540 url("/pixel-player.svg?v=20261109-pixel-v1") center/contain no-repeat;
  color:#fff4d8;
  font:900 10px ui-monospace,monospace;
  image-rendering:pixelated;
  text-shadow:1px 1px #173f2d;
}
:root[data-theme="light"] .coach-symbol,
:root[data-theme="light"] .bench-coach-icon,
:root[data-theme="light"] .coach-dash-icon {
  border:2px solid #173f2d;
  border-radius:2px;
  background:#f1c45b url("/pixel-coach.svg?v=20261109-pixel-v1") center/contain no-repeat;
  color:transparent;
  image-rendering:pixelated;
}
:root[data-theme="light"] .team-deck .deck-tile,
:root[data-theme="light"] .team-deck button {
  border-radius:2px;
}
:root[data-theme="light"] .dashboard-roster,
:root[data-theme="light"] .dashboard-league,
:root[data-theme="light"] .dashboard-trending,
:root[data-theme="light"] .reports-form-card,
:root[data-theme="light"] .reports-feed-card,
:root[data-theme="light"] .league-action-card {
  border:2px solid #173f2d;
  border-radius:3px;
  box-shadow:4px 4px 0 #cfddce;
}
@media (max-width:740px) {
  :root[data-theme="light"] .auth-side::after {
    width:100%;
    height:180px;
    margin-top:14px;
    background-size:cover;
  }
  :root[data-theme="light"] .court {
    height:min(118vw,465px);
    min-height:365px;
  }
}
@media (prefers-reduced-motion:reduce) {
  :root[data-theme="light"] *, :root[data-theme="light"] *::before, :root[data-theme="light"] *::after {
    scroll-behavior:auto!important;
    animation-duration:.01ms!important;
    transition-duration:.01ms!important;
  }
}

/* Mobile: one compact wordmark, over a real pixel-art arena */
@media (max-width:740px) {
  :root[data-theme="light"] #app-shell>.side .logo {
    display:none!important;
  }
  :root[data-theme="light"] #app-shell>.main::before {
    background-color:#063f30!important;
    background-image:
      linear-gradient(rgba(5,48,36,.42),rgba(5,48,36,.42)),
      url("/pixel-arena.svg?v=20261110-arena-header-v2");
    background-position:center 46%;
    background-size:cover;
    border-bottom:4px solid #d99a43;
    box-shadow:0 3px 0 #173f2d;
  }
}

/* Mobile: collapse the empty desktop brand strip while keeping the fixed bottom nav */
@media (max-width:600px) {
  :root[data-theme="light"] #app-shell>.side {
    position:static!important;
    display:block!important;
    width:0!important;
    min-width:0!important;
    height:0!important;
    min-height:0!important;
    margin:0!important;
    padding:0!important;
    overflow:visible!important;
    border:0!important;
    box-shadow:none!important;
    background:transparent!important;
  }
}

/* Mobile brand bar: use the typographic mark without cropping the arena artwork */
@media (max-width:740px) {
  :root[data-theme="light"] #app-shell>.main::before {
    background:#063f30!important;
    background-image:none!important;
    border-bottom:4px solid #d99a43!important;
    box-shadow:0 3px 0 #173f2d!important;
    min-height:52px!important;
    padding-top:0!important;
  }
}

/* Accueil clarifié : une journée, un match, une équipe, trois accès. */
:root[data-theme="light"] #page-accueil .home-welcome {
  display:flex;align-items:center;justify-content:space-between;gap:12px;margin:4px 0 14px;
}
:root[data-theme="light"] #page-accueil .home-welcome h1 {
  margin:0;color:#173d2c;font:900 clamp(23px,5vw,30px)/1.05 'Outfit',system-ui,sans-serif;letter-spacing:-.04em;
}
:root[data-theme="light"] #page-accueil .home-week-chip {
  flex:none;padding:7px 11px;border-radius:999px;background:#e5f2e2;color:#1d6b3e;font-size:12px;font-weight:850;white-space:nowrap;
}
:root[data-theme="light"] #page-accueil .fixture-ticker {
  display:block!important;height:auto!important;min-height:0!important;max-height:none!important;flex:none!important;
  margin:0 0 7px!important;padding:12px 14px!important;border:1px solid #d7e5da;border-radius:8px!important;background:#fff!important;
  box-shadow:0 2px 0 #e5ece3;
}
:root[data-theme="light"] #page-accueil .fixture-ticker::before {
  content:"Prochain match";display:block;margin:0 0 8px;color:#234a35;font-size:14px;font-weight:900;letter-spacing:-.02em;
}
:root[data-theme="light"] #page-accueil .ticker-viewport {height:auto!important;overflow:visible!important}
:root[data-theme="light"] #page-accueil .ticker-track {width:100%!important;transform:none!important;animation:none!important}
:root[data-theme="light"] #page-accueil .ticker-set {display:flex!important;width:100%!important;animation:none!important}
:root[data-theme="light"] #page-accueil .ticker-fixture {
  display:block!important;min-width:0!important;width:100%!important;max-width:none!important;min-height:0!important;
  padding:0!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;
}
:root[data-theme="light"] #page-accueil .ticker-fixture-head {display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:8px}
:root[data-theme="light"] #page-accueil .ticker-date,
:root[data-theme="light"] #page-accueil .ticker-time {font-size:12px!important;font-weight:750;color:#64796d}
:root[data-theme="light"] #page-accueil .ticker-matchup {display:flex;align-items:center;gap:8px}
:root[data-theme="light"] #page-accueil .ticker-club {flex:1 1 0!important;min-width:0!important;max-width:none!important;width:auto!important;min-height:42px!important;padding:6px!important;border-radius:5px!important}
:root[data-theme="light"] #page-accueil .ticker-club strong {max-width:100%!important;font-size:12px!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
:root[data-theme="light"] #page-accueil .ticker-vs {flex:none;font-size:10px}
:root[data-theme="light"] #page-accueil .home-save-status {
  display:flex;align-items:center;gap:7px;min-height:0;margin:5px 0 10px;padding:3px 0!important;border:0!important;background:transparent!important;box-shadow:none!important;
  color:#496b55;font-size:12px;
}
:root[data-theme="light"] #page-accueil #home-save-detail {display:none!important}
:root[data-theme="light"] #page-accueil .dashboard-stats {display:none!important}
:root[data-theme="light"] #page-accueil .dashboard-main-grid {display:block!important;max-height:none!important}
:root[data-theme="light"] #page-accueil .dashboard-side,
:root[data-theme="light"] #page-accueil .dashboard-coach,
:root[data-theme="light"] #page-accueil .dashboard-bench-heading,
:root[data-theme="light"] #page-accueil .dashboard-bench,
:root[data-theme="light"] #page-accueil .dashboard-actions,
:root[data-theme="light"] #page-accueil #roster-score-home {display:none!important}
:root[data-theme="light"] #page-accueil .dashboard-roster {
  padding:14px!important;border:1px solid #d7e4d8!important;border-radius:8px!important;background:#fff!important;box-shadow:0 2px 0 #e2eae0!important;
}
:root[data-theme="light"] #page-accueil .dashboard-panel-heading {
  display:grid!important;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:6px 10px;margin:0 0 12px;
}
:root[data-theme="light"] #page-accueil .dashboard-panel-heading h2 {grid-column:1;grid-row:1;margin:0;font-size:19px}
:root[data-theme="light"] #page-accueil #home-edit-roster {display:none!important}
:root[data-theme="light"] #page-accueil #projection-open {
  grid-column:2;grid-row:1;display:grid;gap:0;margin:0;padding:6px 9px;border:0;border-radius:6px;
  background:#e7f3e4;color:#155f37;text-align:right;box-shadow:none;
}
:root[data-theme="light"] #page-accueil #projection-open .stat-k {font-size:9px;line-height:1.1;letter-spacing:.03em;color:#526f5a}
:root[data-theme="light"] #page-accueil #projection-open .stat-v {font-size:16px;line-height:1.15;margin:2px 0;color:#145a36}
:root[data-theme="light"] #page-accueil #projection-open .projection-hint {display:none}
:root[data-theme="light"] #page-accueil .dashboard-five {
  display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:5px!important;margin:0!important;
}
:root[data-theme="light"] #page-accueil .home-five-card {
  min-width:0!important;min-height:100px!important;padding:7px 2px!important;gap:3px!important;border:1px solid #d9e4d7!important;
  border-radius:5px!important;background:#fffef8!important;box-shadow:0 2px 0 #e5eadf!important;
}
:root[data-theme="light"] #page-accueil .home-five-card .dash-shirt {width:30px!important;height:34px!important;flex:none;font-size:13px}
:root[data-theme="light"] #page-accueil .home-five-card .home-five-full,
:root[data-theme="light"] #page-accueil .home-five-card small,
:root[data-theme="light"] #page-accueil .home-five-card .dash-next {display:none!important}
:root[data-theme="light"] #page-accueil .home-five-card .home-five-short {
  display:block!important;max-width:100%;font-size:10px!important;line-height:1.1!important;overflow-wrap:anywhere;text-align:center;
}
:root[data-theme="light"] #page-accueil .home-five-card b {margin-top:auto;font-size:9px!important;white-space:nowrap}
:root[data-theme="light"] #page-accueil .home-five-card em {top:3px;right:2px;padding:2px 3px;font-size:7px}
:root[data-theme="light"] #page-accueil .home-shortcuts {
  display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin:12px 0 0;
}
:root[data-theme="light"] #page-accueil .home-shortcuts button {
  display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;min-height:70px;padding:8px 5px;
  border:1px solid #d5e3d5;border-radius:6px;background:#fff;color:#234a35;font-size:12px;font-weight:850;
  box-shadow:0 2px 0 #e6ece2;
}
:root[data-theme="light"] #page-accueil .home-shortcuts button span {font-size:20px;line-height:1;color:#087a43}
@media(max-width:430px) {
  :root[data-theme="light"] #page-accueil .home-welcome {margin:2px 0 10px}
  :root[data-theme="light"] #page-accueil .home-welcome h1 {font-size:22px}
  :root[data-theme="light"] #page-accueil .home-week-chip {padding:6px 9px;font-size:11px}
  :root[data-theme="light"] #page-accueil .dashboard-roster {padding:10px!important}
  :root[data-theme="light"] #page-accueil .home-five-card {min-height:91px!important}
  :root[data-theme="light"] #page-accueil .home-shortcuts {gap:6px}
}


/* Le compte à rebours reste compact sur les petits écrans. */
:root[data-theme="light"] #launch-countdown {font-family:'Outfit',system-ui,sans-serif;}


/* Zone de sécurité iPhone : le bandeau ne passe plus sous l’heure ni la Dynamic Island. */
@media(max-width:740px){
 :root[data-theme="light"] #app-shell>.main::before{
  box-sizing:border-box!important;
  width:auto!important;
  height:calc(48px + env(safe-area-inset-top))!important;
  min-height:calc(48px + env(safe-area-inset-top))!important;
  padding:env(safe-area-inset-top) 14px 0!important;
  margin:0 -14px 6px!important;
  background:#063f30!important;
  background-image:
   linear-gradient(rgba(5,48,36,.34),rgba(5,48,36,.34)),
   url("/pixel-arena.svg?v=20261110-arena-header-v2")!important;
  background-position:center 48%!important;background-size:cover!important;
  color:#fff!important;font-size:16px!important;line-height:1!important;
  overflow:hidden!important
 }
}


/* Accueil v2 : carrousel tactile lisible et hiérarchie plus légère. */
:root[data-theme="light"] #page-accueil .fixture-ticker {
  position:relative!important;
  padding:12px 12px 8px!important;
  overflow:hidden!important;
}
:root[data-theme="light"] #page-accueil .fixture-ticker::before {
  content:"Matchs de la journée";
  margin-bottom:6px;
}
:root[data-theme="light"] #page-accueil .ticker-viewport {
  width:100%!important;
  overflow-x:auto!important;
  overflow-y:hidden!important;
  scroll-snap-type:x mandatory;
  scroll-behavior:smooth;
  scrollbar-width:none;
  overscroll-behavior-x:contain;
  touch-action:pan-x pan-y;
}
:root[data-theme="light"] #page-accueil .ticker-viewport::-webkit-scrollbar {display:none}
:root[data-theme="light"] #page-accueil .ticker-track {
  width:100%!important;
  min-width:100%;
  transform:none!important;
  animation:none!important;
}
:root[data-theme="light"] #page-accueil .ticker-set {
  display:flex!important;
  width:100%!important;
  gap:10px!important;
  animation:none!important;
}
:root[data-theme="light"] #page-accueil .ticker-fixture {
  flex:0 0 calc(100% - 20px)!important;
  width:auto!important;
  min-width:0!important;
  scroll-snap-align:start;
  scroll-snap-stop:always;
  padding:3px 2px 5px!important;
}
:root[data-theme="light"] #page-accueil .ticker-controls {
  display:grid;
  grid-template-columns:28px minmax(0,1fr) auto 28px;
  align-items:center;
  gap:7px;
  margin-top:3px;
}
:root[data-theme="light"] #page-accueil .ticker-arrow {
  display:grid;
  place-items:center;
  width:28px;
  height:28px;
  padding:0;
  border:1px solid #cfe0d2;
  border-radius:8px;
  background:#f6faf3;
  color:#1d603b;
  font:900 21px/1 system-ui,sans-serif;
}
:root[data-theme="light"] #page-accueil .ticker-arrow:disabled {opacity:.28}
:root[data-theme="light"] #page-accueil .ticker-dots {
  display:flex;
  justify-content:center;
  gap:5px;
  min-width:0;
}
:root[data-theme="light"] #page-accueil .ticker-dot {
  width:7px;
  height:7px;
  padding:0;
  border:0;
  border-radius:50%;
  background:#c7d8c9;
}
:root[data-theme="light"] #page-accueil .ticker-dot.active {
  width:18px;
  border-radius:999px;
  background:#167044;
}
:root[data-theme="light"] #page-accueil .ticker-counter {
  color:#64796d;
  font-size:10px;
  font-weight:850;
  white-space:nowrap;
}
:root[data-theme="light"] #page-accueil .dashboard-five {
  display:grid!important;
  grid-template-columns:none!important;
  grid-auto-flow:column;
  grid-auto-columns:minmax(86px,24%)!important;
  gap:8px!important;
  overflow-x:auto;
  overflow-y:hidden;
  scroll-snap-type:x proximity;
  scrollbar-width:none;
  padding:2px 2px 6px!important;
}
:root[data-theme="light"] #page-accueil .dashboard-five::-webkit-scrollbar {display:none}
:root[data-theme="light"] #page-accueil .home-five-card {
  width:100%;
  min-height:108px!important;
  scroll-snap-align:start;
  padding:8px 5px!important;
}
:root[data-theme="light"] #page-accueil .home-five-card .home-five-short {
  width:100%;
  overflow:hidden!important;
  overflow-wrap:normal!important;
  white-space:nowrap!important;
  text-overflow:ellipsis;
}
:root[data-theme="light"] #page-accueil .home-shortcuts {
  grid-template-columns:1fr!important;
  margin-top:10px!important;
}
:root[data-theme="light"] #page-accueil #home-shortcut-market,
:root[data-theme="light"] #page-accueil #home-shortcut-leagues {display:none!important}
:root[data-theme="light"] #page-accueil #home-shortcut-days {
  min-height:48px;
  flex-direction:row;
  border-color:#c9ddcd;
  background:#f8fbf5;
}
:root[data-theme="light"] #page-accueil #home-shortcut-days span {font-size:17px}
@media(max-width:430px) {
  :root[data-theme="light"] #page-accueil .fixture-ticker {padding:10px 10px 7px!important}
  :root[data-theme="light"] #page-accueil .ticker-club strong {font-size:11px!important}
  :root[data-theme="light"] #page-accueil .dashboard-five {grid-auto-columns:88px!important}
}
@media(prefers-reduced-motion:reduce) {
  :root[data-theme="light"] #page-accueil .ticker-viewport {scroll-behavior:auto}
}


/* Accueil v3 : les cinq titulaires restent visibles simultanément. */
:root[data-theme="light"] #page-accueil .dashboard-five {
  display:grid!important;
  grid-template-columns:repeat(5,minmax(0,1fr))!important;
  grid-auto-flow:row!important;
  grid-auto-columns:auto!important;
  gap:5px!important;
  overflow:visible!important;
  padding:2px 0 5px!important;
  scroll-snap-type:none!important;
}
:root[data-theme="light"] #page-accueil .home-five-card {
  min-width:0!important;
  width:100%!important;
  min-height:106px!important;
  padding:7px 2px!important;
}
:root[data-theme="light"] #page-accueil .home-five-card .dash-shirt {
  width:29px!important;
  height:33px!important;
}
:root[data-theme="light"] #page-accueil .home-five-card .home-five-short {
  width:100%;
  max-width:100%;
  font-size:9px!important;
  overflow:hidden!important;
  overflow-wrap:normal!important;
  white-space:nowrap!important;
  text-overflow:ellipsis!important;
}
:root[data-theme="light"] #page-accueil .home-five-card b {
  max-width:100%;
  font-size:8px!important;
  white-space:nowrap;
}
@media(max-width:430px) {
  :root[data-theme="light"] #page-accueil .dashboard-five {
    grid-template-columns:repeat(5,minmax(0,1fr))!important;
    grid-auto-columns:auto!important;
    gap:4px!important;
  }
  :root[data-theme="light"] #page-accueil .home-five-card {
    min-height:101px!important;
    padding-inline:1px!important;
  }
  :root[data-theme="light"] #page-accueil .home-five-card .home-five-short {font-size:8px!important}
  :root[data-theme="light"] #page-accueil .home-five-card em {font-size:6px;padding:2px}
}


/* Accueil v4 : suppression des éléments signalés et carrousel sans débordement. */
:root[data-theme="light"] #page-accueil .home-welcome {
  justify-content:flex-end!important;
  margin:2px 0 10px!important;
}
:root[data-theme="light"] #page-accueil .home-welcome h1 {display:none!important}
:root[data-theme="light"] #page-accueil #home-save-status {display:none!important}
:root[data-theme="light"] #page-accueil .home-shortcuts {display:none!important}
:root[data-theme="light"] #page-accueil .ticker-set {gap:0!important}
:root[data-theme="light"] #page-accueil .ticker-fixture {
  flex:0 0 100%!important;
  width:100%!important;
  max-width:100%!important;
}


/* Accueil v5 : effectif complet avec coach, cinq majeur et banc. */
:root[data-theme="light"] #page-accueil .dashboard-coach {
  display:grid!important;
  grid-template-columns:34px minmax(0,1fr) auto;
  align-items:center;
  gap:9px;
  min-height:54px!important;
  margin:0 0 10px!important;
  padding:7px 9px!important;
  border:1px solid #2e654f;
  border-radius:8px;
  background:#1f4a3b;
  color:#f2fff4;
}
:root[data-theme="light"] #page-accueil .coach-dash-icon {
  width:32px!important;
  height:32px!important;
}
:root[data-theme="light"] #page-accueil .dashboard-coach>div:nth-child(2) {
  min-width:0;
  display:grid;
  grid-template-columns:auto minmax(0,1fr);
  column-gap:6px;
  align-items:baseline;
}
:root[data-theme="light"] #page-accueil .dashboard-coach small {
  grid-column:1/-1;
  font-size:8px;
}
:root[data-theme="light"] #page-accueil .dashboard-coach strong {
  font-size:11px;
}
:root[data-theme="light"] #page-accueil .dashboard-coach span {
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  font-size:9px;
}
:root[data-theme="light"] #page-accueil .dashboard-coach .coach-dash-next {display:none!important}
:root[data-theme="light"] #page-accueil .dashboard-coach>b {
  font-size:10px;
  color:#e3f59b;
}
:root[data-theme="light"] #page-accueil .dashboard-bench-heading {
  display:flex!important;
  align-items:center;
  gap:7px;
  margin:8px 0 6px!important;
  color:#28543c;
  font-size:10px;
}
:root[data-theme="light"] #page-accueil .dashboard-bench-heading span {
  color:#6c8274;
  font-size:8px;
}
:root[data-theme="light"] #page-accueil .dashboard-bench {
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:5px!important;
}
:root[data-theme="light"] #page-accueil .home-bench-card {
  display:grid!important;
  grid-template-columns:27px minmax(0,1fr);
  align-items:center;
  gap:5px;
  min-width:0;
  min-height:58px;
  padding:6px 5px!important;
  border:1px solid #d5e2d7;
  border-radius:6px;
  background:#fbfdf8;
  color:#214633;
  text-align:left;
}
:root[data-theme="light"] #page-accueil .home-bench-card .dash-mini-shirt {
  width:27px!important;
  height:30px!important;
}
:root[data-theme="light"] #page-accueil .home-bench-card span:nth-child(2) {
  width:100%;
  min-width:0;
  display:grid;
  gap:1px;
  text-align:left;
}
:root[data-theme="light"] #page-accueil .home-bench-card strong {
  display:block!important;
  max-width:100%;
  overflow:hidden;
  white-space:nowrap!important;
  text-overflow:ellipsis;
  font-size:9px!important;
}
:root[data-theme="light"] #page-accueil .home-bench-card small {
  max-width:100%;
  overflow:hidden;
  white-space:nowrap;
  text-overflow:ellipsis;
  font-size:7px!important;
}
:root[data-theme="light"] #page-accueil .home-bench-card>b {display:none!important}
:root[data-theme="light"] #page-accueil .home-bench-card .fantasy-score-badge {
  grid-column:1/-1;
  margin:0;
}
@media(max-width:430px) {
  :root[data-theme="light"] #page-accueil .dashboard-coach {grid-template-columns:30px minmax(0,1fr) auto;padding:6px 7px!important}
  :root[data-theme="light"] #page-accueil .coach-dash-icon {width:29px!important;height:29px!important}
  :root[data-theme="light"] #page-accueil .home-bench-card {grid-template-columns:24px minmax(0,1fr);padding:5px 3px!important}
  :root[data-theme="light"] #page-accueil .home-bench-card .dash-mini-shirt {width:24px!important;height:27px!important}
}


/* Accueil v6 : badges coach/banc intégrés sans débordement. */
:root[data-theme="light"] #page-accueil .dashboard-coach {
  grid-template-columns:34px minmax(0,1fr) auto auto;
}
:root[data-theme="light"] #page-accueil .dashboard-coach>b {
  grid-column:3;
  grid-row:1;
}
:root[data-theme="light"] #page-accueil .dashboard-coach>.fantasy-inline-score {
  grid-column:4;
  grid-row:1;
  align-self:center;
  justify-self:end;
  max-width:72px;
  margin:0;
  padding:4px 6px;
  overflow:hidden;
  white-space:nowrap;
  text-overflow:ellipsis;
  border-radius:6px;
  font-size:8px;
}
:root[data-theme="light"] #page-accueil .dashboard-coach>.fantasy-inline-score.unselected {
  display:none!important;
}
:root[data-theme="light"] #page-accueil .home-bench-card>.fantasy-inline-score {
  grid-column:1/-1;
  width:100%;
  max-width:100%;
  box-sizing:border-box;
  margin:2px 0 0;
  padding:3px 4px;
  overflow:hidden;
  white-space:nowrap;
  text-overflow:ellipsis;
  border-radius:5px;
  font-size:8px;
  line-height:1.1;
  text-align:center;
}
:root[data-theme="light"] #page-accueil .dashboard-bench-heading {
  text-transform:none;
  letter-spacing:0;
  font-size:11px;
}
:root[data-theme="light"] #page-accueil .dashboard-bench-heading span {
  font:inherit;
  color:#6c8274;
}
@media(max-width:430px) {
  :root[data-theme="light"] #page-accueil .dashboard-coach {
    grid-template-columns:30px minmax(0,1fr) auto auto;
  }
  :root[data-theme="light"] #page-accueil .dashboard-coach>.fantasy-inline-score {
    max-width:58px;
    padding-inline:4px;
  }
}


/* Marché v7 : filtres utiles, budget pixel et double curseur de prix. */
:root[data-theme="light"] #page-marche #position-filter[hidden]{display:none!important}
:root[data-theme="light"] #page-marche .market-budget-notice{border:3px solid #173f2d!important;border-radius:2px!important;background:#0b6540!important;color:#fff7da!important;box-shadow:5px 5px 0 #d99a43!important;image-rendering:pixelated}
:root[data-theme="light"] #page-marche .market-budget-notice span,:root[data-theme="light"] #page-marche .market-budget-notice b{color:#dff39b!important}
:root[data-theme="light"] #page-marche .market-budget-notice>strong{color:#fff7da!important;font-family:ui-monospace,SFMono-Regular,Consolas,monospace;text-shadow:2px 2px 0 #173f2d}
:root[data-theme="light"] #page-marche .market-budget-notice button{border:2px solid #fff1c6!important;border-radius:2px!important;background:#f1c45b!important;color:#173f2d!important;box-shadow:3px 3px 0 #173f2d!important}
:root[data-theme="light"] #page-marche .market-price-slider{margin:10px 0 12px;padding:11px 13px 14px;border:3px solid #173f2d;border-radius:2px;background:#fffef5;box-shadow:4px 4px 0 #d5dfca}
:root[data-theme="light"] #page-marche .market-price-slider[hidden]{display:none!important}
:root[data-theme="light"] #page-marche .market-price-slider-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:8px;color:#173f2d}
:root[data-theme="light"] #page-marche .market-price-slider-head strong{font:900 11px ui-monospace,SFMono-Regular,Consolas,monospace;text-transform:uppercase;letter-spacing:.05em}
:root[data-theme="light"] #page-marche #price-range-label{padding:4px 7px;border:2px solid #173f2d;background:#e5f2d8;color:#0b6540;font:900 11px ui-monospace,SFMono-Regular,Consolas,monospace;white-space:nowrap}
:root[data-theme="light"] #page-marche .dual-price-range{position:relative;height:34px}
:root[data-theme="light"] #page-marche .price-range-rail{position:absolute;left:8px;right:8px;top:14px;height:7px;border:2px solid #173f2d;background:#d8dfd4}
:root[data-theme="light"] #page-marche .price-range-rail i{position:absolute;top:-2px;bottom:-2px;border-top:2px solid #173f2d;border-bottom:2px solid #173f2d;background:#78c84e}
:root[data-theme="light"] #page-marche .dual-price-range input[type="range"]{position:absolute;inset:0;width:100%;height:34px;margin:0;padding:0;border:0;background:transparent;pointer-events:none;-webkit-appearance:none;appearance:none}
:root[data-theme="light"] #page-marche .dual-price-range input[type="range"]::-webkit-slider-runnable-track{height:7px;background:transparent}
:root[data-theme="light"] #page-marche .dual-price-range input[type="range"]::-webkit-slider-thumb{width:22px;height:28px;margin-top:-11px;border:3px solid #173f2d;border-radius:2px;background:#f1c45b;box-shadow:3px 3px 0 rgba(23,63,45,.28);pointer-events:auto;-webkit-appearance:none;appearance:none}
:root[data-theme="light"] #page-marche .dual-price-range input[type="range"]::-moz-range-track{height:7px;background:transparent}
:root[data-theme="light"] #page-marche .dual-price-range input[type="range"]::-moz-range-thumb{width:18px;height:24px;border:3px solid #173f2d;border-radius:2px;background:#f1c45b;box-shadow:3px 3px 0 rgba(23,63,45,.28);pointer-events:auto}
:root[data-theme="light"] #page-marche .market-quick-positions button{border-radius:2px!important;border:2px solid #8ba88e!important;box-shadow:2px 2px 0 #d1ddcf}
:root[data-theme="light"] #page-marche .market-quick-positions button[aria-pressed="true"]{border-color:#173f2d!important;background:#0b6540!important;color:#fff7da!important;box-shadow:3px 3px 0 #d99a43}

/* Fiche joueur entièrement pixel, y compris le personnage. */
:root[data-theme="light"] .profile-overlay{background:rgba(6,34,27,.78)!important}
:root[data-theme="light"] .profile-card.club-themed{border:4px solid #173f2d!important;border-radius:2px!important;background:#fffef5!important;box-shadow:8px 8px 0 #d99a43!important;image-rendering:pixelated}
:root[data-theme="light"] .profile-card.club-themed .profile-hero{border-bottom:4px solid #d99a43!important;background-color:#063f30!important;background-image:linear-gradient(rgba(5,48,36,.34),rgba(5,48,36,.34)),url("/pixel-arena.svg?v=20261110-market-pixel-v7")!important;background-position:center 45%!important;background-size:cover!important}
:root[data-theme="light"] .profile-card.club-themed .profile-avatar{width:86px!important;height:100px!important;border:3px solid #fff1c6!important;border-radius:2px!important;background:#0d6540 url("/pixel-player.svg?v=20261110-market-pixel-v7") center/contain no-repeat!important;box-shadow:4px 4px 0 #173f2d!important}
:root[data-theme="light"] .profile-card.club-themed .profile-avatar span{align-self:end;margin-bottom:9px;padding:1px 4px;background:#173f2d;color:#fff1c6;font:900 18px ui-monospace,SFMono-Regular,Consolas,monospace;text-shadow:1px 1px 0 #000}
:root[data-theme="light"] .profile-card.club-themed .profile-close{border:2px solid #fff1c6!important;border-radius:2px!important;background:#173f2d!important;box-shadow:3px 3px 0 #d99a43!important;backdrop-filter:none!important}
:root[data-theme="light"] .profile-card.club-themed .profile-club-badge,:root[data-theme="light"] .profile-card.club-themed .profile-pos-badge,:root[data-theme="light"] .profile-card.club-themed .profile-trend,:root[data-theme="light"] .profile-card.club-themed .profile-next-chip{border-radius:2px!important;border-width:2px!important}
:root[data-theme="light"] .profile-card.club-themed .profile-stats>div,:root[data-theme="light"] .profile-card.club-themed .profile-substats span{border:2px solid #173f2d!important;border-radius:2px!important;box-shadow:3px 3px 0 #d5dfca!important}
:root[data-theme="light"] .profile-card.club-themed .profile-chart,:root[data-theme="light"] .profile-card.club-themed .profile-game-focus,:root[data-theme="light"] .profile-card.club-themed .tdm-price-history{border:3px solid #173f2d!important;border-radius:2px!important;background:#fffef5!important;box-shadow:4px 4px 0 #d5dfca!important}
:root[data-theme="light"] .profile-card.club-themed .profile-chart-col{border-radius:2px!important}
:root[data-theme="light"] .profile-card.club-themed .profile-chart-bar{border:2px solid #173f2d;border-radius:1px!important}
:root[data-theme="light"] .profile-card.club-themed .profile-game-v8{margin:6px 0;padding:9px!important;border:2px solid #d2dfd2!important;background:#fffef9;box-shadow:2px 2px 0 #e0e6dc}
:root[data-theme="light"] .profile-card.club-themed .profile-sticky-bar{border-top:3px solid #173f2d!important;background:#fffef5!important}
:root[data-theme="light"] .profile-card.club-themed .profile-recruit,:root[data-theme="light"] .profile-card.club-themed .profile-report{border:2px solid #173f2d!important;border-radius:2px!important;box-shadow:3px 3px 0 #173f2d!important}
@media(max-width:430px){:root[data-theme="light"] #page-marche .market-price-slider{padding-inline:10px}:root[data-theme="light"] .profile-card.club-themed .profile-avatar{width:66px!important;height:80px!important}:root[data-theme="light"] .profile-card.club-themed .profile-avatar span{font-size:15px;margin-bottom:7px}}
