.refonte-local-close:focus-visible {
  outline: 3px solid #79e3ce;
  outline-offset: 3px;
}
.refonte-local-shell {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  grid-template-rows: auto 1fr;
  min-width: 0;
  min-height: 0;
  padding-bottom: env(safe-area-inset-bottom, 0px); /* la barre flottante de Safari (iPhone) recouvre le bas de l'écran */
  background: #050b14;
}
.refonte-local-shell[hidden] { display: none; }
.refonte-local-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  padding: max(10px, env(safe-area-inset-top)) max(14px, env(safe-area-inset-right)) 10px max(14px, env(safe-area-inset-left));
  color: #edf8f6;
  background: #081721;
  box-shadow: 0 5px 18px rgba(0, 0, 0, .38);
}
.refonte-local-bar strong { color: #ffc15c; }
.refonte-local-bar span {
  min-width: 0;
  color: #b9d4d1;
  font-size: 13px;
  overflow-wrap: anywhere;
}
.refonte-local-close {
  flex: 0 0 auto;
  min-height: 42px;
  margin-inline-start: auto;
  padding: 0 16px;
  border: 1px solid rgba(121, 227, 206, .46);
  border-radius: 12px;
  color: #edf8f6;
  background: #123237;
  font: 700 14px/1 var(--font-display, sans-serif);
  cursor: pointer;
}
.refonte-local-frame {
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  border: 0;
  background: #07101d;
}
.avatar-refonte-active .player-card-avatar .avatar-svg {
  max-width: 100%;
  height: auto;
}
/* La figure peut sortir de son cadre : grande taille sous une coiffure haute, bras écartés de « l'avion ». */
.avatar-refonte-active .full-player-svg {
  overflow: visible;
}
.avatar-refonte-active .hud-avatar .avatar-svg {
  width: 100%;
  height: 100%;
}

/* Créateur de joueur — studio réellement relié aux données de carrière. */
.avatar-mobile-preview { display: none; }
@media (max-width: 767px) {
  .avatar-mobile-preview {
    position: sticky;
    top: 8px;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 96px;
    padding: 0 14px;
    margin-bottom: 12px;
    border: 1px solid #384b68;
    border-radius: 12px;
    background: #142137;
    color: #e4edf8;
    font-size: 12px;
  }
  #avatar-mobile-live { width: 96px; height: 96px; flex: 0 0 96px; }
  #avatar-mobile-live svg { display: block; width: 100%; height: 100%; }
}
#screen-create .create-card-preview {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 14px;
  min-width: 0;
}
.avatar-studio {
  position: relative;
  min-height: 600px;
  overflow: hidden;
  border-radius: 16px;
  background:
    radial-gradient(ellipse at 50% 18%, rgba(87, 158, 255, .28), transparent 42%),
    linear-gradient(180deg, #172747 0 66%, #0b372d 66% 100%);
  box-shadow: 0 18px 38px rgba(0, 0, 0, .42);
}
.avatar-studio::before {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 104px;
  width: 310px;
  height: 76px;
  border: 1px solid rgba(236, 246, 255, .28);
  border-radius: 50%;
  transform: translateX(-50%);
}
.avatar-studio-head {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 18px 0;
}
.avatar-studio-head > div:first-child { display: grid; gap: 3px; }
.avatar-studio-head strong { font-family: var(--font-display); font-size: 18px; letter-spacing: .08em; }
.avatar-studio-head span { color: #b7c8df; font-size: 11px; }
.avatar-pose-state {
  align-self: start;
  padding: 6px 9px;
  border-radius: 9px;
  color: #062118;
  background: #79e3ce;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}
.avatar-live {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: end center;
  height: 438px;
  margin-top: -6px;
}
.avatar-live .full-player-svg {
  width: auto;
  height: 100%;
  max-width: 94%;
  filter: drop-shadow(0 17px 16px rgba(0, 0, 0, .5));
}
.avatar-pose-picker {
  position: relative;
  z-index: 2;
  padding: 0 14px 16px;
}
.avatar-pose-picker > span {
  display: block;
  margin-bottom: 7px;
  color: #d6e3f3;
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.avatar-pose-picker .pick { background: rgba(6, 16, 30, .76); }
.boot-swatch {
  position: relative;
  display: block;
  width: 31px;
  height: 15px;
  border-radius: 70% 35% 30% 25%;
  background: var(--boot);
  box-shadow: inset 0 -3px rgba(0, 0, 0, .28);
}
.boot-swatch::after {
  content: '';
  position: absolute;
  right: 1px;
  bottom: -3px;
  width: 22px;
  height: 4px;
  border-radius: 3px;
  background: #070a0f;
}
.create-card-details {
  padding: 11px 14px 16px;
  border: 1px solid rgba(120, 160, 255, .2);
  border-radius: 14px;
  background: #10192c;
}
.create-card-details summary {
  min-height: 32px;
  color: #dbe7f6;
  cursor: pointer;
  font-size: 12px;
  font-weight: 750;
}
.create-card-details .player-card { margin: 12px auto 0; }

@media (min-width: 1000px) {
  #app.wide .create-card-preview { flex: 0 0 410px; }
}
@media (max-width: 999px) {
  .avatar-studio { min-height: 540px; }
  .avatar-live { height: 390px; }
}
@media (max-width: 480px) {
  #screen-create .create-wrap { padding-inline: 12px; }
  .avatar-studio { min-height: 510px; border-radius: 14px; }
  .avatar-live { height: 360px; }
  .avatar-studio-head { padding: 15px 14px 0; }
  .avatar-pose-picker .pick-row.small .pick { min-width: calc(50% - 4px); max-width: calc(50% - 4px); }
}

/* Profil & attributs — version hybride validée, alimentée par la carrière réelle */
.profile-hybrid-box {
  display: grid;
  grid-template-columns: minmax(240px, 32%) 1fr;
  gap: 0;
  width: min(960px, 100%);
  max-width: 960px;
  max-height: min(90dvh, 90svh);
  padding: 0;
  overflow: hidden auto;
  background: #070d19;
}
.profile-hybrid-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
  min-height: 690px;
  padding: 26px 24px;
  overflow: hidden;
  background: linear-gradient(160deg, #243b6b, #10182e 62%);
  border-right: 1px solid rgba(120, 160, 255, .2);
}
.profile-hybrid-card-top { display: flex; align-items: baseline; width: 100%; }
.profile-hybrid-card-top strong { color: var(--gold); font-family: var(--font-display); font-size: 54px; line-height: 1; }
.profile-hybrid-card-top span { margin-left: 8px; color: #eaf0ff; font-weight: 800; }
.profile-hybrid-card-top i { margin-left: auto; color: #cdd8ea; font-style: normal; font-size: 13px; }
.profile-hybrid-player { display: grid; flex: 1; place-items: center; min-height: 0; margin: -10px 0; }
.profile-hybrid-player svg { display: block; width: min(280px, 100%); height: auto; filter: drop-shadow(0 14px 20px rgba(0, 0, 0, .45)); }
.profile-hybrid-card-name { width: 100%; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, .26); text-align: center; }
.profile-hybrid-card-name h3 { margin: 0; font-size: 28px; letter-spacing: .04em; }
.profile-hybrid-card-name p { margin: 5px 0 0; color: #b8c5d8; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; }
.profile-hybrid-data { display: flex; flex-direction: column; gap: 20px; min-width: 0; padding: 30px 34px; }
.profile-hybrid-head { display: flex; justify-content: space-between; gap: 20px; }
.profile-hybrid-head h3 { margin: 0; font-size: 30px; letter-spacing: 0; text-align: left; }
.profile-hybrid-head p { margin: 7px 0 0; color: #aab8cc; font-size: 12px; line-height: 1.45; }
.profile-hybrid-head > span { align-self: start; padding: 7px 10px; border: 1px solid rgba(255, 215, 106, .42); border-radius: 9px; color: var(--gold); font-size: 11px; white-space: nowrap; }
.profile-hybrid-score { display: grid; grid-template-columns: 1fr 1fr; border-block: 1px solid #2d4160; }
.profile-hybrid-score > div { display: grid; gap: 6px; padding: 14px 0; }
.profile-hybrid-score > div + div { padding-left: 24px; border-left: 1px solid #2d4160; }
.profile-hybrid-score span, .profile-hybrid-story span { color: #aab8cc; font-size: 10px; text-transform: uppercase; }
.profile-hybrid-score b { color: #f0f5ff; font-size: 18px; }
.profile-hybrid-story { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.profile-hybrid-story p { display: grid; gap: 5px; margin: 0; padding: 13px 15px; border: 1px solid rgba(255, 215, 106, .26); border-radius: 12px; background: rgba(255, 215, 106, .06); }
.profile-hybrid-story span { color: var(--gold); }
.profile-hybrid-story b { font-size: 12px; line-height: 1.45; }
.profile-hybrid-story small { color: #b5c2d4; }
.profile-hybrid-section h4 { margin: 0 0 11px; color: var(--cyan); font-family: var(--font-display); font-size: 11px; letter-spacing: .12em; }
.celebration-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 6px; }
.celebration-pick { min-width: 0; max-width: none; width: 100%; align-items: flex-start; text-align: left; padding: 8px 9px; }
/* La section « Ma célébration » allonge la colonne de droite : la carte du joueur reste en haut et suit le défilement. */
@media (min-width: 700px) {
  .profile-hybrid-card { position: sticky; top: 0; align-self: start; }
}
.celebration-pick b { font-size: 12px; letter-spacing: .02em; }
.celebration-pick small { text-align: left; }
.celebration-pick:disabled { opacity: .55; cursor: default; }
.profile-hybrid-attrs { display: grid; grid-template-columns: repeat(6, 1fr); border-top: 1px solid #29405d; border-left: 1px solid #29405d; }
.profile-hybrid-attrs .pa { display: grid; place-items: center; gap: 4px; min-height: 66px; border-right: 1px solid #29405d; border-bottom: 1px solid #29405d; background: #111b31; }
.profile-hybrid-attrs .pa b { font-family: var(--font-display); font-size: 22px; }
.profile-hybrid-attrs .pa span { color: #aab8cc; font-size: 9px; letter-spacing: .08em; }
.profile-hybrid-columns { display: grid; grid-template-columns: 1.35fr .65fr; gap: 28px; }
.profile-hybrid-relations { padding-left: 26px; border-left: 1px solid #2d4160; }
.profile-hybrid-metrics { display: grid; gap: 9px; }
.profile-hybrid-metric { display: grid; grid-template-columns: 128px 1fr 28px; align-items: center; gap: 10px; color: #d4deec; font-size: 11px; }
.profile-hybrid-relations .profile-hybrid-metric { grid-template-columns: 56px 1fr 28px; }
.profile-hybrid-metric b { text-align: right; font-family: var(--font-display); }
.profile-hybrid-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: auto; }
.profile-hybrid-actions .btn { min-height: 50px; margin: 0; }

@media (max-width: 699px) {
  .hof-overlay:has(.profile-hybrid-box) { align-items: flex-start; padding: 0; }
  .profile-hybrid-box { grid-template-columns: 1fr; max-height: 100dvh; min-height: 100dvh; border: 0; border-radius: 0; }
  .profile-hybrid-card { min-height: 390px; padding: 18px; border-right: 0; border-bottom: 1px solid rgba(120, 160, 255, .2); }
  .profile-hybrid-card-top strong { font-size: 44px; }
  .profile-hybrid-player { height: 270px; margin: -22px 0; }
  .profile-hybrid-player svg { width: 250px; }
  /* Le bouton maillot / tenue civile ne doit pas passer sous les crampons (figure en marge négative). */
  .profile-hybrid-player + .profile-outfit { margin-top: 20px; }
  .profile-hybrid-card-name h3 { font-size: 24px; }
  .profile-hybrid-data { gap: 18px; padding: 24px 16px max(24px, env(safe-area-inset-bottom)); }
  .profile-hybrid-head { flex-direction: column; gap: 10px; }
  .profile-hybrid-head h3 { font-size: 26px; }
  .profile-hybrid-score, .profile-hybrid-story, .profile-hybrid-columns { grid-template-columns: 1fr; }
  .profile-hybrid-score > div + div { padding-left: 0; border-top: 1px solid #2d4160; border-left: 0; }
  .profile-hybrid-attrs { grid-template-columns: repeat(3, 1fr); }
  .profile-hybrid-relations { padding: 20px 0 0; border-top: 1px solid #2d4160; border-left: 0; }
  .profile-hybrid-metric { grid-template-columns: 116px 1fr 28px; }
  .profile-hybrid-actions { grid-template-columns: 1fr; }
}

/* Classement & coupes — version Club validée */
.st-box.st-visual-club {
  max-width: 680px;
  border-color: color-mix(in srgb, var(--st-club), white 25%);
  background: linear-gradient(155deg, color-mix(in srgb, var(--st-club), #07101d 78%) 0 190px, #08111f 190px);
  box-shadow: 0 24px 70px rgba(0, 0, 0, .52);
}
.st-visual-club > h3 { padding: 12px 0 18px; color: #fff; font-size: 24px; text-align: left; }
.st-visual-club .st-tabs:not(.st-subtabs) { padding: 4px; border-radius: 10px; background: rgba(3, 9, 18, .48); }
.st-visual-club .st-tabs:not(.st-subtabs) .st-tab { border: 0; }
.st-visual-club .st-tabs:not(.st-subtabs) .st-tab.active { background: var(--st-club); color: var(--st-club-alt); }
.st-visual-club .st-table .st-me { outline: 1px solid color-mix(in srgb, var(--st-club), white 35%); background: color-mix(in srgb, var(--st-club), transparent 76%); }
.st-club-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-trend { flex: 0 0 30px; margin-left: auto; font-family: var(--font-display); font-size: 10px; text-align: right; }
.st-trend-up { color: var(--green); }
.st-trend-down { color: var(--red); }
.st-trend-flat { color: #aab8cc; }

@media (max-width: 560px) {
  .st-box.st-visual-club { max-width: 100%; border-radius: 0; }
  .st-visual-club > h3 { font-size: 20px; }
}

/* Le monde — version Observatoire équilibrée validée */
.world-player-summary { display: grid; grid-template-columns: repeat(4, 1fr); border-block: 1px solid #293b52; }
.world-player-summary > div { display: grid; gap: 4px; padding: 11px 12px; }
.world-player-summary > div + div { border-left: 1px solid #293b52; }
.world-player-summary span { color: #9fb0c6; font-size: 9px; line-height: 1.25; text-transform: uppercase; }
.world-player-summary b { color: #f5f8ff; font-family: var(--font-display); font-size: 18px; }

.world-box.world-visual-balanced { max-width: 720px; gap: 12px; padding: 22px; border-color: #2c415a; background: #091321; }
.world-visual-balanced > h3 { font-size: 21px; text-align: left; }
.world-visual-balanced > .st-tabs { gap: 5px; padding-bottom: 8px; border-bottom: 1px solid #2c415a; }
.world-visual-balanced > .st-tabs .st-tab { min-height: 42px; border: 0; background: #111f31; }
.world-visual-balanced > .st-tabs .st-tab.active { color: #fff; background: #285c9f; }
.world-visual-balanced .st-table th, .world-visual-balanced .st-table td { height: 34px; }

@media (max-width: 560px) {
  .world-box.world-visual-balanced { max-width: 100%; padding: 16px; border-radius: 0; }
  .world-player-summary { grid-template-columns: repeat(2, 1fr); }
  .world-player-summary > div:nth-child(3) { border-left: 0; border-top: 1px solid #293b52; }
  .world-player-summary > div:nth-child(4) { border-top: 1px solid #293b52; }
}

/* Entourage — version Réseau validée, alimentée par la partie réelle */
.entourage-network-box {
  width: min(920px, 100%);
  max-width: 920px;
  max-height: min(90dvh, 90svh);
  gap: 16px;
  padding: 24px;
  border-color: #2c415a;
  background: #081220;
}
.ent-network-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.ent-network-head h3 { margin: 0; font-size: 25px; letter-spacing: .02em; text-align: left; }
.ent-network-head p { margin: 7px 0 0; color: #aebed2; font-size: 12px; }
.ent-network-head > span { padding: 7px 10px; border: 1px solid #3b526e; border-radius: 9px; color: #dbe8f8; font-size: 11px; white-space: nowrap; }
.ent-network-content { display: grid; grid-template-columns: 1fr; gap: 20px; min-width: 0; }
.ent-people { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding: 18px; border-radius: 14px; background: radial-gradient(circle at 50% 50%, rgba(40, 92, 159, .25), transparent 48%), #0b1726; }
.ent-people::before { position: absolute; inset: 50% auto auto 50%; width: 70%; height: 1px; background: #29496a; content: ''; transform: translate(-50%, -50%) rotate(-8deg); }
.entourage-network-box .ent-row { position: relative; z-index: 1; min-width: 0; margin: 0; padding: 14px; border-radius: 13px; background: #111d2d; box-shadow: 0 7px 18px rgba(0, 0, 0, .2); text-align: center; }
.entourage-network-box .ent-head { flex-direction: column; gap: 10px; margin: 0; }
.entourage-network-box .ent-icon { display: grid; flex: 0 0 38px; width: 38px; height: 38px; place-items: center; border-radius: 50%; background: #1d2d43; font-size: 19px; }
.entourage-network-box .ent-id { min-width: 0; }
.entourage-network-box .ent-id b { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.entourage-network-box .ent-id small { margin-top: 3px; overflow: hidden; color: #9fb0c6; font-size: 9px; text-align: center; text-overflow: ellipsis; white-space: normal; }
.ent-score { display: grid; justify-items: center; gap: 2px; }
.ent-score .ent-val { color: var(--ent-relation); font-family: var(--font-display); font-size: 17px; }
.ent-score small { max-width: 72px; color: #9fb0c6; font-size: 8px; line-height: 1.2; text-align: center; }
.entourage-network-box .mini-bar { height: 4px; margin-top: 10px; background: #26374d; }
.entourage-network-box .ent-mem { min-height: 29px; margin-top: 9px; color: #b9c7d8; font-size: 9px; line-height: 1.45; }
.ent-story-panel { padding-top: 16px; border-top: 1px solid #2c415a; }
.ent-story-head h4 { margin: 0; color: var(--gold); font-family: var(--font-display); font-size: 12px; letter-spacing: .1em; }
.ent-story-head p { margin: 6px 0 14px; color: #91a4bc; font-size: 10px; line-height: 1.45; }
.entourage-network-box .ent-arcs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.entourage-network-box .ent-arc { min-height: 38px; padding: 8px 10px; border-radius: 9px; background: #111d2d; }
.entourage-network-box .ent-arc span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ent-network-actions { display: flex; justify-content: flex-end; padding-top: 4px; }
.ent-network-actions .btn { width: auto; min-width: 150px; margin: 0; }

@media (max-width: 699px) {
  .entourage-network-overlay { align-items: flex-start; padding: 0; }
  .entourage-network-box { width: 100%; min-height: 100dvh; max-height: 100dvh; padding: 18px 14px max(18px, env(safe-area-inset-bottom)); border: 0; border-radius: 0; }
  .ent-network-head h3 { font-size: 21px; }
  .ent-network-head > span { display: none; }
  .ent-people { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 10px; }
  .entourage-network-box .ent-arcs { grid-template-columns: 1fr; }
  .entourage-network-box .ent-id b { white-space: normal; }
  .ent-network-actions .btn { width: 100%; }
}

/* Match 2D tactique — Canvas unique, sans contexte WebGL */
.match-scene { aspect-ratio: 16 / 9; min-height: 230px; overflow: hidden; background: #07101b; }
.match-2d-canvas { display: block; width: 100%; height: 100%; touch-action: none; }
.match-scene { position: relative; }
.match-celebration { position: absolute; left: 10px; top: 44px; z-index: 5; display: flex; align-items: center; gap: 10px; padding: 6px 14px 6px 6px; border: 1px solid rgba(255, 215, 106, .55); border-radius: 14px; background: rgba(7, 13, 23, .86); opacity: 0; pointer-events: none; transform: translateY(-8px) scale(.92); transform-origin: top left; transition: opacity .25s ease, transform .25s ease; }
.match-celebration.show { opacity: 1; transform: none; }
.match-celebration-fig { width: 62px; height: 80px; display: grid; place-items: center; overflow: hidden; }
.match-celebration-fig svg { width: 100%; height: 100%; }
.match-celebration.show .match-celebration-fig { animation: match-celebration-hop .55s ease-in-out infinite alternate; }
.match-celebration strong { display: block; color: var(--gold); font: 800 17px/1 var(--font-display); letter-spacing: .06em; }
.match-celebration small { display: block; margin-top: 3px; color: #e8eef8; font-size: 12px; }
@keyframes match-celebration-hop { to { transform: translateY(-4px); } }
@media (prefers-reduced-motion: reduce) { .match-celebration.show .match-celebration-fig { animation: none; } }
.m-live-analysis { margin: 9px 14px 0; overflow: hidden; border: 1px solid rgba(120, 160, 255, .3); border-radius: 13px; background: linear-gradient(180deg, rgba(16, 24, 46, .98), rgba(10, 14, 26, .98)); box-shadow: 0 8px 24px rgba(0, 0, 0, .24); }
.m-live-head { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 12px; padding: 9px 12px; background: rgba(22, 32, 57, .94); }
.m-live-head b { min-width: 0; overflow: hidden; color: #f1f5fb; font: 800 11px/1 var(--font-display); text-overflow: ellipsis; white-space: nowrap; }
.m-live-head b:last-child { text-align: right; }
.m-live-head span { color: var(--gold); font-size: 8px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.m-live-possession { padding: 8px 12px 7px; }
.m-live-possession > div:first-child { display: grid; grid-template-columns: 42px 1fr 42px; align-items: center; text-align: center; }
.m-live-possession b { color: #f6f8fc; font: 800 12px/1 var(--font-display); }
.m-live-possession span, .m-live-comparison span { color: #a7b4c7; font-size: 8px; font-weight: 700; letter-spacing: .08em; text-align: center; text-transform: uppercase; }
.m-live-possession-track { height: 4px; margin-top: 6px; overflow: hidden; border-radius: 3px; background: #d34d58; }
.m-live-possession-track i { display: block; width: 50%; height: 100%; background: linear-gradient(90deg, var(--green), var(--cyan)); transition: width .4s cubic-bezier(.16, 1, .3, 1); }
.m-live-comparison { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid rgba(151, 174, 211, .13); border-bottom: 1px solid rgba(151, 174, 211, .13); }
.m-live-comparison > div { min-width: 0; display: grid; grid-template-columns: 30px minmax(0, 1fr) 30px; align-items: center; gap: 4px; padding: 8px 9px; }
.m-live-comparison > div + div { border-left: 1px solid rgba(151, 174, 211, .13); }
.m-live-comparison b { color: #f6f8fc; font: 800 12px/1 var(--font-display); text-align: center; }
.m-live-comparison span { line-height: 1.15; overflow-wrap: anywhere; }
.m-live-plans { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 7px 10px; }
.m-live-plans span { min-width: 0; overflow: hidden; padding: 4px 7px; border-radius: 6px; color: var(--gold); background: rgba(255, 215, 106, .09); font-size: 9px; font-weight: 750; text-overflow: ellipsis; white-space: nowrap; }
.m-live-plans span:last-child { color: var(--cyan); background: rgba(4, 245, 255, .08); text-align: right; }
.m-live-events { min-width: 0; display: flex; gap: 5px; padding: 0 10px 8px; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; }
.m-live-events::-webkit-scrollbar { display: none; }
.m-live-event { flex: 0 0 auto; max-width: 155px; overflow: hidden; padding: 4px 7px; border-radius: 5px; background: #18263a; color: #cbd6e7; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.m-live-event.goal { color: #07170e; background: #64dda0; }
.m-live-event.card { color: #171104; background: #f0c84b; }
.m-live-event.stoppage { color: #d9e8ff; background: #243852; }
.m-live-event.warning { color: #fff0cf; background: #6a4820; }
.m-tactic button { min-width: 44px; min-height: 44px; transition: border-color .18s ease, background-color .18s ease, transform .18s cubic-bezier(.16,1,.3,1); }
.m-tactic button:hover { transform: translateY(-1px); }
.m-tactic button[aria-pressed="true"] { border-color: var(--green); background: rgba(0,255,135,.13); }
@media (max-width: 430px) {
  .match-scene { min-height: 218px; aspect-ratio: 4 / 3; }
  .match-celebration { left: 8px; top: 40px; gap: 6px; padding: 4px 10px 4px 4px; }
  .match-celebration-fig { width: 42px; height: 56px; }
  .match-celebration strong { font-size: 14px; }
  .match-celebration small { font-size: 11px; }
  .m-live-analysis { margin: 7px 8px 0; }
  .m-live-head { gap: 6px; padding: 8px 9px; }
  .m-live-head span { font-size: 7px; }
  .m-live-possession { padding: 7px 9px 6px; }
  .m-live-comparison { grid-template-columns: 1fr; }
  .m-live-comparison > div { grid-template-columns: 42px minmax(0, 1fr) 42px; gap: 6px; padding: 7px 9px; }
  .m-live-comparison > div + div { border-top: 1px solid rgba(151, 174, 211, .11); border-left: 0; }
  .m-live-comparison b { font-size: 11px; }
  .m-live-comparison span { font-size: 7.5px; letter-spacing: .055em; }
  .m-live-plans { padding: 6px 8px; }
  .m-live-plans span { font-size: 8px; }
  .m-live-events { padding: 0 8px 7px; }
  .m-live-event { max-width: 122px; }
  .tv-banner { bottom: 7px; margin-inline: 7px; }
  .tv-banner .tvb-tag { padding-inline: 7px; font-size: 9px; }
  .tv-banner .tvb-txt { min-width: 0; padding-inline: 8px; font-size: 10px; }
  .tv-banner .tvb-score { padding-inline: 8px; font-size: 12px; }
  .score-team { font-size: 12px; }
  .score { font-size: 34px; }
  .match-action { justify-content: flex-start; overflow-y: auto; padding: max(20px, env(safe-area-inset-top)) 14px max(20px, env(safe-area-inset-bottom)); }
  .match-action > :first-child { margin-top: auto; }
  .match-action > :last-child { margin-bottom: auto; }
  .match-action .ev-choices { max-height: 48dvh; overflow-y: auto; overscroll-behavior: contain; }
}
@media (prefers-reduced-motion: reduce) {
  .m-live-possession-track i, .m-tactic button { transition-duration: .01ms; }
  .m-tactic button:hover { transform: none; }
}

/* Panthéon des carrières — archives réelles, avec témoin local si la liste est vide */
.hall-careers-box { max-width: 620px; gap: 16px; padding: 26px; }
.hall-careers-head { padding-bottom: 14px; border-bottom: 1px solid rgba(255, 215, 106, .28); text-align: center; }
.hall-careers-head h3 { margin: 0; color: #fff4ce; font-size: 26px; letter-spacing: .08em; }
.hall-careers-head p { margin: 7px 0 0; color: #c4b992; font-size: 12px; }
.hall-preview-notice { align-self: center; color: #0a0e1a; background: var(--gold); border-radius: 999px; padding: 5px 10px; font: 800 9px/1 var(--font-display); letter-spacing: .08em; }
.hall-career-row { display: grid; grid-template-columns: 76px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 14px; border-color: rgba(255, 215, 106, .26); background: linear-gradient(135deg, rgba(255, 215, 106, .09), rgba(255, 255, 255, .025)); }
.hall-career-avatar { width: 72px; height: 82px; display: grid; place-items: end center; overflow: hidden; border-radius: 12px; background: rgba(4, 6, 12, .74); }
.hall-career-avatar > span { place-self: center; font-size: 34px; }
.hall-career-identity { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.hall-career-identity b { overflow-wrap: anywhere; font: 800 18px/1.15 var(--font-display); }
.hall-career-identity span { color: var(--gold); }
.hall-career-identity small { line-height: 1.5; }
.hall-career-row .btn { min-height: 42px; }
@media (max-width: 560px) {
  .hall-careers-box { min-height: 100dvh; max-height: 100dvh; padding: 20px 14px max(20px, env(safe-area-inset-bottom)); border: 0; border-radius: 0; }
  .hall-careers-head h3 { font-size: 22px; }
  .hall-career-row { grid-template-columns: 68px minmax(0, 1fr); }
  .hall-career-avatar { width: 64px; height: 76px; }
  .hall-career-row .btn { grid-column: 1 / -1; width: 100%; }
}

/* Téléphone LEGACY — trois propositions comparables dans la copie locale */
.menu-backdrop { background: rgba(2, 4, 10, .74); backdrop-filter: blur(5px); }
.side-menu {
  top: 50%; right: auto; bottom: auto; left: 50%;
  width: min(390px, calc(100vw - 24px)); height: min(780px, calc(100dvh - 24px));
  padding: 28px 16px 24px; border: 7px solid #222936; border-radius: 42px;
  background: radial-gradient(circle at 12% 4%, rgba(0, 255, 135, .18), transparent 32%), linear-gradient(165deg, #111a2d 0%, #080d19 68%);
  box-shadow: 0 28px 80px rgba(0, 0, 0, .62), inset 0 0 0 1px rgba(255, 255, 255, .09);
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); align-content: start; gap: 12px 9px;
  overflow-y: auto; overscroll-behavior: contain;
  transform: translate(72%, -50%) scale(.94);
  transition: transform .34s cubic-bezier(.22, 1, .36, 1), opacity .22s ease;
}
.side-menu.open { transform: translate(-50%, -50%) scale(1); }
.phone-speaker { position: absolute; top: 10px; left: 50%; width: 82px; height: 5px; border-radius: 999px; background: #05070c; transform: translateX(-50%); }
.side-menu .sm-head { grid-column: 1 / -1; margin: 0; min-height: 34px; }
.side-menu .sm-title { color: #fff4ce; font-size: 15px; letter-spacing: .18em; }
.side-menu .sm-head .icon-btn { width: 34px; height: 34px; border-radius: 50%; background: rgba(255, 255, 255, .08); }
.phone-home-head { grid-column: 1 / -1; display: grid; grid-template-columns: 1.05fr 1.95fr; gap: 9px; }
.phone-followers { min-height: 112px; padding: 13px; display: flex; flex-direction: column; justify-content: flex-end; border-radius: 16px; background: #f1c85b; color: #141006; box-shadow: 0 10px 24px rgba(0, 0, 0, .24); }
.phone-followers span { font-size: 10px; font-weight: 800; text-transform: uppercase; }
.phone-followers strong { margin-top: auto; font: 800 26px/1 var(--font-display); }
.phone-followers small { margin-top: 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 10px; }
.phone-live-widgets { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.phone-live-widgets > div { min-width: 0; padding: 10px; display: flex; flex-direction: column; justify-content: space-between; border-radius: 14px; background: rgba(20, 33, 54, .94); }
.phone-live-widgets > div:last-child { grid-column: 1 / -1; }
.phone-live-widgets span { color: #aebcd2; font-size: 8px; text-transform: uppercase; }
.phone-live-widgets b { margin-top: 4px; overflow: hidden; color: #f5f8ff; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.phone-app-label { grid-column: 1 / -1; margin-top: 2px; color: #b8c3d5; font: 700 10px var(--font-display); text-transform: uppercase; letter-spacing: .1em; }
.side-menu .menu-item { min-width: 0; min-height: 72px; padding: 8px 3px; border: 0; border-radius: 14px; flex-direction: column; justify-content: center; gap: 6px; background: rgba(255, 255, 255, .055); text-align: center; }
.side-menu .menu-item:hover, .side-menu .menu-item:active { background: rgba(255, 255, 255, .11); }
.side-menu .mi-ico { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 11px; background: linear-gradient(145deg, #263855, #142139); font-size: 20px; }
.side-menu .mi-label { max-width: 100%; color: #edf3ff; font-size: 9px; line-height: 1.15; overflow-wrap: anywhere; }
.side-menu .mi-dot { position: absolute; margin: -40px 0 0 34px; }
.side-menu .menu-select, .side-menu .menu-volume, .side-menu .menu-lang { grid-column: span 2; min-height: 76px; flex-direction: row; padding-inline: 9px; }
.side-menu .menu-select .mi-label, .side-menu .menu-volume .mi-label, .side-menu .menu-lang .mi-label { display: none; }
.side-menu .menu-dropdown, .side-menu .volume-slider { min-width: 0; margin-left: 0; }
.side-menu .lang-switch { margin-left: 0; }
.side-menu #btn-sound { grid-column: 1 / span 2; margin-top: 4px; }
.side-menu #btn-lang { grid-column: 3 / span 2; margin-top: 4px; }
.phone-home-bar { grid-column: 1 / -1; position: sticky; bottom: -16px; justify-self: center; width: 108px; height: 5px; margin-top: 5px; border-radius: 999px; background: rgba(255, 255, 255, .7); }

@media (max-width: 430px) {
  .side-menu { width: calc(100vw - 14px); height: calc(100dvh - 14px); padding-inline: 12px; border-width: 5px; border-radius: 34px; gap: 10px 7px; }
  .phone-home-head { grid-template-columns: 1fr 1.8fr; }
  .side-menu .menu-item { min-height: 66px; }
}

/* Album — Panthéon LEGACY validé, alimenté par la carrière réelle */
.album-hof-overlay { align-items: flex-start; padding-block: 4dvh; }
.album-hof-box {
  position: relative;
  width: min(940px, 100%);
  max-width: 940px;
  max-height: 92dvh;
  gap: 18px;
  padding: 26px;
  overflow: hidden auto;
  border-color: #796533;
  background: radial-gradient(circle at 50% -20%, rgba(255, 215, 106, .16), transparent 43%), #070d18;
}
.album-hof-head { display: flex; min-height: 142px; align-items: center; justify-content: center; gap: 24px; border-bottom: 1px solid rgba(255, 215, 106, .34); text-align: center; }
.album-hof-head h3 { margin: 0; color: #fff4ce; font-size: 36px; letter-spacing: .01em; text-align: center; }
.album-hof-head p { margin: 6px 0 0; color: #c4b992; font-size: 12px; }
.album-progress { position: relative; display: grid; flex: 0 0 82px; width: 82px; height: 82px; place-content: center; border-radius: 50%; background: conic-gradient(var(--gold) var(--album-progress), #26364a 0); text-align: center; }
.album-progress::after { position: absolute; inset: 6px; border-radius: inherit; background: #0d1928; content: ''; }
.album-progress strong, .album-progress small { position: relative; z-index: 1; }
.album-progress strong { color: #fff; font-family: var(--font-display); font-size: 19px; }
.album-progress small { color: #9fb0c6; font-size: 8px; }
.album-summary { display: grid; grid-template-columns: 1.3fr 1.3fr .8fr .8fr; border: 1px solid #2a3d55; border-radius: 12px; background: #0d1b2c; }
.album-summary > div { display: grid; gap: 5px; min-width: 0; padding: 13px 15px; }
.album-summary > div + div { border-left: 1px solid #2a3d55; }
.album-summary span { color: #8fa2ba; font-size: 8px; letter-spacing: .08em; text-transform: uppercase; }
.album-summary b { overflow: hidden; color: #eff5fc; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.album-section { display: grid; gap: 12px; }
.album-section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; }
.album-section-head h4 { margin: 0; color: #fff; font-family: var(--font-display); font-size: 14px; letter-spacing: .05em; }
.album-section-head span { color: #90a4bc; font-size: 10px; }
.album-hof-box .pn-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.album-hof-box .pn-sticker { min-width: 0; min-height: 142px; margin: 0; }
.album-empty { display: grid; gap: 5px; padding: 20px; border: 1px dashed #39506c; border-radius: 12px; text-align: center; }
.album-empty span { color: #91a5bc; font-size: 11px; }
.album-actions { display: flex; justify-content: flex-end; gap: 9px; padding-top: 4px; }
.album-actions .btn { width: auto; min-width: 145px; margin: 0; }

.album-hof-box .album-progress { position: absolute; top: 30px; right: 34px; background: conic-gradient(var(--gold) var(--album-progress), #3d3523 0); }
.album-hof-box .album-summary { border-color: rgba(255, 215, 106, .25); background: rgba(255, 215, 106, .055); }
.album-hof-box .album-summary > div + div { border-color: rgba(255, 215, 106, .2); }
.album-hof-box .album-section-head h4 { color: var(--gold); text-transform: uppercase; }
.album-hof-box .pn-troph-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 18px; border-block: 1px solid rgba(255, 215, 106, .25); }
.album-hof-box .pn-troph-grid .pn-sticker { min-height: 150px; }
.album-hof-box .album-section:last-of-type .pn-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.album-hof-box .album-section:last-of-type .pn-sticker { min-height: 118px; }

@media (max-width: 699px) {
  .album-hof-overlay { padding: 0; }
  .album-hof-box { min-height: 100dvh; max-height: 100dvh; padding: 18px 14px max(18px, env(safe-area-inset-bottom)); border: 0; border-radius: 0; }
  .album-hof-head { min-height: 118px; justify-content: flex-start; text-align: left; }
  .album-hof-head h3 { padding-right: 74px; font-size: 27px; text-align: left; }
  .album-hof-head p { max-width: 240px; }
  .album-progress { flex-basis: 68px; width: 68px; height: 68px; }
  .album-summary { grid-template-columns: 1fr 1fr; }
  .album-summary > div:nth-child(3) { border-top: 1px solid #2a3d55; border-left: 0; }
  .album-summary > div:nth-child(4) { border-top: 1px solid #2a3d55; }
  .album-hof-box .pn-grid,
  .album-hof-box .album-section:last-of-type .pn-grid,
  .album-hof-box .pn-troph-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .album-hof-box .album-progress { top: 22px; right: 16px; }
  .album-hof-box .pn-sticker { min-height: 150px; }
  .album-actions { display: grid; grid-template-columns: 1fr; }
  .album-actions .btn { width: 100%; }
}

/* Sauvegarde — confirmation validée, comportement réel inchangé */
.save-confirm-box { width: min(660px, 100%); max-width: 660px; gap: 16px; padding: 24px; border-color: #304760; background: #081321; }
.save-confirm-head { display: flex; align-items: center; gap: 16px; padding-bottom: 17px; border-bottom: 1px solid #2b4058; }
.save-confirm-head > span { display: grid; flex: 0 0 52px; width: 52px; height: 52px; place-items: center; border-radius: 50%; color: #06140e; background: var(--green); font-family: var(--font-display); font-size: 27px; }
.save-confirm-head h3 { margin: 0; font-size: 24px; letter-spacing: .01em; text-align: left; }
.save-confirm-head p { margin: 5px 0 0; color: #a9bad0; font-size: 11px; line-height: 1.45; }
.save-facts { display: grid; grid-template-columns: 1.5fr .7fr 1fr; border-block: 1px solid #2a4058; }
.save-facts > div { display: grid; gap: 5px; min-width: 0; padding: 14px 12px; }
.save-facts > div + div { border-left: 1px solid #2a4058; }
.save-facts span { color: #91a5bd; font-size: 8px; letter-spacing: .08em; text-transform: uppercase; }
.save-facts b { overflow: hidden; color: #f2f6fc; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.save-backup { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 15px; border-radius: 13px; background: #101d2d; }
.save-backup b { color: #f4f7fc; font-size: 12px; }
.save-backup p { margin: 4px 0 0; color: #9badc2; font-size: 10px; }
.save-backup .btn { flex: 0 0 auto; width: auto; margin: 0; }
.save-confirm-box .save-export-warning { margin: -4px 2px 0; color: #aab9ca; font-size: 9px; }
.save-confirm-box > .save-close { margin: 0; }

@media (max-width: 560px) {
  .save-confirm-overlay { align-items: flex-start; padding: 0; }
  .save-confirm-box { width: 100%; min-height: 100dvh; max-height: 100dvh; padding: 18px 14px max(18px, env(safe-area-inset-bottom)); border: 0; border-radius: 0; }
  .save-confirm-head h3 { font-size: 20px; }
  .save-facts { grid-template-columns: 1fr 1fr; }
  .save-facts > div:nth-child(3) { grid-column: 1 / -1; border-top: 1px solid #2a4058; border-left: 0; }
  .save-backup { align-items: stretch; flex-direction: column; }
  .save-backup .btn { width: 100%; }
}

/* Mes carrières — Vestiaire validé, emplacements et actions réels */
.careers-locker-box { width: min(780px, 100%); max-width: 780px; max-height: 90dvh; gap: 16px; padding: 24px; border-color: #304760; background: #081321; }
.careers-locker-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding-bottom: 12px; border-bottom: 1px solid #2b4058; }
.careers-locker-head h3 { margin: 0; font-size: 26px; letter-spacing: .01em; text-align: left; }
.careers-locker-head p { margin: 6px 0 0; color: #9fb0c6; font-size: 11px; }
.careers-locker-head > b { padding: 8px 11px; border: 1px solid #3c536f; border-radius: 9px; color: #dbe7f7; font-size: 10px; white-space: nowrap; }
.careers-slots { display: grid; gap: 10px; }
.careers-locker-box .slot-card { position: relative; min-width: 0; padding: 16px 16px 16px 62px; border: 0; border-radius: 13px; background: #101e30; }
.slot-number { position: absolute; inset: 16px auto auto 16px; color: #4c6d8d; font-family: var(--font-display); font-size: 20px; }
.careers-locker-box .slot-card-head > b { color: #f3f7fc; font-size: 13px; }
.careers-locker-box .slot-info { color: #9eb0c7; }
.careers-locker-box .slot-actions { justify-content: flex-end; }
.careers-locker-box .slot-actions .btn { flex: 0 0 auto; min-width: 120px; }
.careers-actions { display: flex; justify-content: flex-end; gap: 9px; padding-top: 3px; }
.careers-actions .btn { width: auto; min-width: 150px; margin: 0; }
.careers-actions .slot-limit { flex: 1; text-align: left; }

@media (max-width: 699px) {
  .careers-locker-overlay { align-items: flex-start; padding: 0; }
  .careers-locker-box { width: 100%; min-height: 100dvh; max-height: 100dvh; padding: 18px 14px max(18px, env(safe-area-inset-bottom)); border: 0; border-radius: 0; }
  .careers-locker-head h3 { font-size: 22px; }
  .careers-locker-box .slot-card { padding: 14px 12px 14px 48px; }
  .slot-number { inset: 14px auto auto 12px; font-size: 16px; }
  .careers-locker-box .slot-actions { flex-direction: row; }
  .careers-locker-box .slot-actions .btn { min-width: 0; width: auto; }
  .careers-actions { display: grid; grid-template-columns: 1fr; }
  .careers-actions .btn { width: 100%; }
}

/* Compte cloud — Portail validé, profondeur du Coffre en palette bleu/cyan */
.account-portal-box { width: min(640px, 100%); max-width: 640px; max-height: 90dvh; gap: 14px; padding: 24px; border-color: #315a72; background: radial-gradient(circle at 50% -8%, rgba(4, 245, 255, .11), transparent 38%), #081321; }
.account-portal-box > h3 { margin: 0; padding-bottom: 15px; border-bottom: 1px solid rgba(4, 245, 255, .28); color: #eefcff; font-size: 25px; letter-spacing: .01em; text-align: center; }
.account-portal-box > .pn-count { margin: 0; color: #a9bfd0; font-family: var(--font-body); font-size: 11px; letter-spacing: 0; text-align: center; }
.account-portal-box .field { display: grid; gap: 6px; }
.account-portal-box .field label { color: #b5c7d6; font-size: 10px; }
.account-portal-box .field input,
.account-portal-box .field select { min-height: 46px; border-color: rgba(4, 245, 255, .25); background: rgba(4, 245, 255, .035); }
.account-portal-box > .btn { margin: 0; }
.account-portal-box > .btn-link { align-self: center; }
.account-portal-box.account-linked { display: grid; grid-template-columns: 1fr 1fr; }
.account-portal-box.account-linked > h3,
.account-portal-box.account-linked > .pn-count,
.account-portal-box.account-linked > .acc-nudge,
.account-portal-box.account-linked > .acc-hint,
.account-portal-box.account-linked > .acc-sync,
.account-portal-box.account-linked > .acc-logout,
.account-portal-box.account-linked > .acc-close { grid-column: 1 / -1; }
.account-portal-box .acc-sync { border-color: var(--cyan) !important; color: var(--cyan); background: rgba(4, 245, 255, .06); }

@media (max-width: 599px) {
  .hof-overlay:has(.account-portal-box) { align-items: flex-start; padding: 0; }
  .account-portal-box { width: 100%; min-height: 100dvh; max-height: 100dvh; padding: 18px 14px max(18px, env(safe-area-inset-bottom)); border: 0; border-radius: 0; }
  .account-portal-box.account-linked { display: flex; }
}

/* Classement mondial — Podium original validé, données cloud réelles */
.lb-podium-box { width: min(820px, 100%); max-width: 820px; max-height: 92dvh; gap: 13px; padding: 24px; border-color: #796533; background: radial-gradient(circle at 50% -12%, rgba(255, 215, 106, .15), transparent 38%), #070d18; }
.lb-podium-box > h3 { margin: 0; color: #fff2c3; font-size: 25px; letter-spacing: .02em; text-align: center; }
.lb-podium-box .lb-info-btn { vertical-align: 2px; }
.lb-podium-box .lb-rank { padding: 12px; border: 1px solid rgba(255, 215, 106, .22); border-radius: 13px; background: rgba(255, 215, 106, .045); }
.lb-podium-box .lb-rank:empty { display: none; }
.lb-podium-box > .st-tabs { padding: 4px; border-radius: 10px; background: #101e30; }
.lb-podium-box > .st-tabs .st-tab { border: 0; }
.lb-podium-box > .st-tabs .st-tab.active { color: #171106; background: var(--gold); }
.lb-podium-box .lb-list { min-height: 120px; overflow-x: auto; }
.lb-podium-box .st-table { width: 100%; }
.lb-podium-box .st-table th { color: #8fa4bd; background: #0d1b2b; }
.lb-podium-box .st-table td { border-color: #263b52; }
.lb-podium-box .st-table tbody tr:nth-child(1) td { color: #fff2c3; background: rgba(255, 215, 106, .1); }
.lb-podium-box .st-table tbody tr:nth-child(2) td { background: rgba(199, 210, 230, .06); }
.lb-podium-box .st-table tbody tr:nth-child(3) td { background: rgba(201, 143, 90, .06); }
.lb-podium-box .field { display: grid; grid-template-columns: 150px 1fr; align-items: center; gap: 12px; }
.lb-podium-box .field input { min-height: 42px; border-color: #344b65; background: #0e1c2d; }
.lb-podium-box .lb-search { width: auto; align-self: flex-end; margin: -56px 8px 8px 0; padding-inline: 20px; }

@media (max-width: 699px) {
  .hof-overlay:has(.lb-podium-box) { align-items: flex-start; padding: 0; }
  .lb-podium-box { width: 100%; min-height: 100dvh; max-height: 100dvh; padding: 18px 12px max(18px, env(safe-area-inset-bottom)); border: 0; border-radius: 0; }
  .lb-podium-box > h3 { font-size: 20px; }
  .lb-podium-box .field { grid-template-columns: 1fr; gap: 6px; }
  .lb-podium-box .lb-search { width: 100%; margin: 0; }
}

/* Objectifs de Légende — Panthéon validé, progression et rang réels */
.lo-hall-box { width: min(760px, 100%); max-width: 760px; max-height: 92dvh; padding: 22px; border-color: #796533; background: radial-gradient(circle at 50% -12%, rgba(255, 215, 106, .14), transparent 38%), #070d18; }
.lo-hall-box .lo-hero { border: 1px solid rgba(255, 215, 106, .22); background: rgba(255, 215, 106, .045); }
.lo-hall-box .lo-hero-title { color: #fff2c3; }
.lo-hall-box .lo-rankcard { border-color: rgba(255, 215, 106, .22); background: rgba(255, 215, 106, .035); }
.lo-hall-box .lo-sechead h3 { color: var(--gold); }
.lo-hall-box .lo-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.lo-hall-box .lo-obj-card { align-items: flex-start; min-width: 0; min-height: 142px; flex-direction: column; border-color: rgba(255, 215, 106, .16); background: rgba(255, 215, 106, .035); }
.lo-hall-box .lo-tier { width: 100%; height: 3px; align-self: auto; }
.lo-hall-box .lo-ico { width: 34px; height: 34px; }
.lo-hall-box .lo-cbody { width: 100%; }

@media (max-width: 699px) {
  .hof-overlay:has(.lo-hall-box) { align-items: flex-start; padding: 0; }
  .lo-hall-box { width: 100%; min-height: 100dvh; max-height: 100dvh; padding: 16px 12px max(18px, env(safe-area-inset-bottom)); border: 0; border-radius: 0; }
  .lo-hall-box .lo-list { grid-template-columns: 1fr; }
  .lo-hall-box .lo-obj-card { min-height: 0; flex-direction: row; }
  .lo-hall-box .lo-tier { width: 4px; height: auto; align-self: stretch; }
  .lo-hall-box .lo-cbody { width: auto; }
}

@media (max-width: 620px) {
  .refonte-local-bar { gap: 9px; }
  .refonte-local-bar span { display: none; }
}

/* QG 2026 — langage de feuille de match, sans « card soup » ni néons décoratifs. */
.qg-redesign-disabled #app.wide:has(#screen-hub.active) { max-width: 1160px; }
.qg-redesign-disabled #screen-hub {
  --qg-night: #050c18;
  --qg-panel: #0b1728;
  --qg-raised: #101f34;
  --qg-line: #29405d;
  --qg-ink: #f5f8ff;
  --qg-muted: #93a3ba;
  --qg-blue: #2878ff;
  --qg-coral: #ff513e;
  padding: clamp(12px, 2vw, 22px);
  background: #050c18;
}
.hub-dashboard {
  display: grid;
  grid-template-columns: minmax(310px, .82fr) minmax(520px, 1.3fr);
  min-height: calc(100dvh - 138px);
  overflow: hidden;
  border: 1px solid var(--qg-line);
  background: var(--qg-panel);
  box-shadow: 0 24px 70px rgba(0, 0, 0, .38);
}
.hub-visual { position: relative; min-height: 610px; overflow: hidden; background: #07111f; }
.qg-redesign-disabled #screen-hub #hub-scene { width: 100%; height: 100%; aspect-ratio: auto; border: 0; }
.qg-redesign-disabled #screen-hub #hub-scene::after { background: linear-gradient(180deg, transparent 48%, rgba(5, 12, 24, .94)); }
.qg-redesign-disabled #screen-hub .scene-avatar { left: 50%; height: 87%; }
.qg-redesign-disabled #screen-hub .hub-body { min-width: 0; padding: clamp(24px, 4vw, 46px); gap: 18px; }
.hub-briefing { display: grid; gap: 9px; padding-bottom: 22px; border-bottom: 1px solid var(--qg-line); }
.qg-redesign-disabled #screen-hub .ev-tag { color: #b7c7dc; font-size: 12px; font-weight: 800; letter-spacing: .08em; }
.qg-redesign-disabled #screen-hub .ev-title { max-width: 22ch; color: var(--qg-ink); font-size: clamp(28px, 3.4vw, 44px); font-weight: 850; line-height: 1.04; letter-spacing: -.03em; overflow-wrap: anywhere; }
.qg-redesign-disabled #screen-hub .ev-text { color: var(--qg-muted); font-size: 14px; line-height: 1.58; }
.qg-redesign-disabled #screen-hub .ev-text b { color: var(--qg-ink); }
.qg-redesign-disabled #screen-hub .hub-ap {
  justify-content: space-between;
  min-height: 54px;
  padding: 11px 0;
  border-top: 1px solid #4c79b4;
  border-bottom: 1px solid var(--qg-line);
  color: #b8c6d9;
}
.qg-redesign-disabled #screen-hub .hub-ap-dots { color: #78aaff; font-size: 17px; }
.qg-redesign-disabled #screen-hub #hub-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--qg-line); }
.qg-redesign-disabled #screen-hub .btn-choice {
  position: relative;
  display: block;
  min-height: 94px;
  padding: 17px 42px 17px 16px;
  border: 0;
  border-right: 1px solid var(--qg-line);
  border-bottom: 1px solid var(--qg-line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.qg-redesign-disabled #screen-hub .btn-choice::after {
  content: '›';
  position: absolute;
  top: 50%;
  right: 16px;
  color: #6f88a7;
  font: 400 25px/1 var(--font-body);
  transform: translateY(-52%);
}
.qg-redesign-disabled #screen-hub .btn-choice:nth-child(even) { border-right: 0; }
.qg-redesign-disabled #screen-hub .btn-choice:hover:not(:disabled),
.qg-redesign-disabled #screen-hub .btn-choice:focus-visible { z-index: 1; background: var(--qg-raised); }
.qg-redesign-disabled #screen-hub .btn-choice:focus-visible { outline: 2px solid #78aaff; outline-offset: -2px; }
.qg-redesign-disabled #screen-hub .choice-label { color: var(--qg-ink); font-size: 15px; font-weight: 800; letter-spacing: 0; }
.qg-redesign-disabled #screen-hub .choice-sub { margin-top: 6px; color: var(--qg-muted); font-size: 12px; line-height: 1.38; }
.qg-redesign-disabled #screen-hub .hub-panel { border: 1px solid var(--qg-line); border-radius: 0; background: #071320; }
.qg-redesign-disabled #screen-hub .hub-panel-title { color: #78aaff; }
.qg-redesign-disabled #screen-hub .hub-panel .btn-choice { border-right: 0; }
.qg-redesign-disabled #screen-hub .hub-go { position: sticky; bottom: 0; z-index: 7; margin-top: auto; padding-top: 12px; background: var(--qg-panel); }
.qg-redesign-disabled #screen-hub .hub-go .btn-primary {
  min-height: 58px;
  border-radius: 8px;
  color: #fff;
  background: var(--qg-coral);
  box-shadow: none;
}
.qg-redesign-disabled #screen-hub .hub-go .btn-primary:hover { filter: brightness(1.08); }

@media (max-width: 820px) {
  .qg-redesign-disabled #screen-hub { padding: 0; }
  .hub-dashboard { grid-template-columns: 1fr; min-height: auto; border: 0; }
  .hub-visual { min-height: auto; height: clamp(210px, 34vh, 300px); }
  .qg-redesign-disabled #screen-hub .scene-avatar { height: 88%; }
  .qg-redesign-disabled #screen-hub .hub-body { padding: 20px 16px calc(18px + var(--safe-bottom)); gap: 15px; }
  .qg-redesign-disabled #screen-hub .hub-briefing { gap: 8px; padding-bottom: 17px; }
  .qg-redesign-disabled #screen-hub .ev-title { max-width: 100%; font-size: clamp(26px, 8vw, 36px); line-height: 1.06; }
  .qg-redesign-disabled #screen-hub .ev-text { font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
  .qg-redesign-disabled #screen-hub #hub-actions { grid-template-columns: 1fr; }
  .qg-redesign-disabled #screen-hub .btn-choice { min-height: 78px; padding: 14px 38px 14px 12px; border-right: 0; }
  .qg-redesign-disabled #screen-hub .choice-label { font-size: 15px; line-height: 1.25; overflow-wrap: anywhere; }
  .qg-redesign-disabled #screen-hub .choice-sub { font-size: 12px; line-height: 1.35; overflow-wrap: anywhere; }
  .qg-redesign-disabled #screen-hub .hub-ap { align-items: flex-start; flex-direction: column; gap: 5px; font-size: 11px; line-height: 1.4; }
  .qg-redesign-disabled #screen-hub .hub-panel { padding: 8px; }
  .qg-redesign-disabled #screen-hub .hub-go { position: static; padding-top: 6px; }
}

@media (max-width: 380px) {
  .hub-visual { height: 190px; }
  .qg-redesign-disabled #screen-hub .hub-body { padding-inline: 12px; }
  .qg-redesign-disabled #screen-hub .ev-title { font-size: 25px; }
}

@media (prefers-reduced-motion: reduce) {
  .qg-redesign-disabled #screen-hub .btn-choice { animation: none; transition: none; }
}

/* Mes Recrues — trois directions basées sur les données et actions réelles */
.referrals-preview-box {
  --ref-accent: #64a8ff;
  width: min(760px, calc(100vw - 28px));
  max-height: min(880px, calc(100dvh - 28px));
  padding: 24px;
  border: 1px solid #294363;
  background: #07111f;
  box-shadow: 0 20px 55px rgba(0, 0, 0, .42);
}
.referrals-head { align-items: flex-start; margin-bottom: 18px; }
.referrals-preview-note { margin-top: 5px; color: #8fa6c0; font-size: 11px; letter-spacing: .05em; text-transform: uppercase; }
.referrals-variant-picker {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  margin-bottom: 22px;
  padding: 4px;
  border: 1px solid #263b55;
  border-radius: 12px;
  background: #0b192a;
}
.referrals-variant {
  min-height: 44px;
  padding: 8px 12px;
  border: 0;
  border-radius: 8px;
  color: #9eb0c7;
  background: transparent;
  font: 750 12px/1 var(--font-body);
  cursor: pointer;
}
.referrals-variant:hover { color: #eaf3ff; background: #12243a; }
.referrals-variant:focus-visible { outline: 2px solid #7fb8ff; outline-offset: 1px; }
.referrals-variant.active { color: #06111e; background: var(--ref-accent); }
.referrals-direction-copy { display: grid; gap: 5px; margin: 0 0 16px; }
.referrals-direction-copy strong { color: #f4f8fd; font-size: clamp(20px, 3vw, 27px); line-height: 1.08; letter-spacing: -.025em; }
.referrals-direction-copy span { max-width: 62ch; color: #9eb0c7; font-size: 13px; line-height: 1.5; }
.referrals-preview-box .referrals-code,
.referrals-preview-box .referrals-bank,
.referrals-preview-box .referrals-list { transition: border-color 180ms ease, background-color 180ms ease; }
.referrals-preview-box .referrals-code { margin-bottom: 14px; border-style: solid; border-color: #2d4a6c; background: #0b192a; }
.referrals-preview-box .referrals-code .code-val { color: var(--ref-accent); }
.referrals-preview-box .copy-btn { min-height: 42px; }
.referrals-preview-box .referrals-bank { margin-bottom: 16px; border-color: #25405f; background: #0b192a; }
.referrals-preview-box .referrals-list { min-height: 72px; }
.referrals-preview-box .fill-row { border-color: #243b58; background: #0a1727; }
.referrals-preview-box .fill-steps .step { background: #26384e; }
.referrals-preview-box .fill-steps .step.done { background: var(--ref-accent); }

.referrals-view-network { --ref-accent: #64a8ff; }
.referrals-view-network .referrals-code { padding-block: 17px; }
.referrals-view-network .referrals-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }

.referrals-view-academy { --ref-accent: #d4ad68; }
.referrals-view-academy .referrals-direction-copy { padding-bottom: 13px; border-bottom: 1px solid #31415a; }
.referrals-view-academy .referrals-list { display: flex; order: initial; gap: 6px; }
.referrals-view-academy .fill-row { padding: 15px; border-radius: 10px; }
.referrals-view-academy .fill-steps { gap: 6px; margin-top: 12px; }
.referrals-view-academy .fill-steps .step { height: 5px; }

.referrals-view-treasury { --ref-accent: #4fd49a; }
.referrals-view-treasury { display: flex; flex-direction: column; }
.referrals-view-treasury .referrals-head { order: 0; }
.referrals-view-treasury .referrals-variant-picker { order: 1; }
.referrals-view-treasury .referrals-direction-copy { order: 2; }
.referrals-view-treasury .referrals-bank { order: 3; padding: 20px; border-color: #28634f; background: #0a211c; }
.referrals-view-treasury .referrals-bank .bank-amount { font-size: clamp(26px, 5vw, 38px); }
.referrals-view-treasury .referrals-code { order: 4; }
.referrals-view-treasury .referrals-list { order: 5; }
.referrals-view-treasury .st-close { order: 6; }

@media (max-width: 620px) {
  .referrals-preview-box { width: 100vw; max-height: 100dvh; min-height: 100dvh; padding: 18px 14px calc(18px + var(--safe-bottom)); border: 0; border-radius: 0; }
  .referrals-preview-note { font-size: 9.5px; }
  .referrals-variant-picker { margin-bottom: 18px; }
  .referrals-variant { min-height: 46px; padding-inline: 7px; font-size: 11px; }
  .referrals-view-network .referrals-list { grid-template-columns: 1fr; }
  .referrals-preview-box .code-box { align-items: stretch; flex-direction: column; }
  .referrals-preview-box .copy-btn,
  .referrals-preview-box .withdraw-btn { width: 100%; min-height: 46px; }
  .referrals-preview-box .fill-stage { line-height: 1.45; }
}

/* The animated figure shares the scene's coordinate space and remains decorative. */
.avatar-refonte-active .scene-avatar.scene-avatar-motion {
  inset: 0; width: 100%; height: 100%; transform: none;
  overflow: hidden; contain: layout style;
}
.scene-avatar-motion .duel-avatar-svg { width: 100%; height: 100%; display: block; }

/* Habillage TV du terrain : score et minute dans le bug DIRECT, dernier commentaire en bas du terrain. */
.tv-clock { margin-left: 2px; padding-left: 7px; border-left: 1px solid rgba(255, 255, 255, .25); letter-spacing: .04em; font-variant-numeric: tabular-nums; }
.tv-clock:empty { display: none; }
.tv-ticker {
  position: absolute; left: 10px; right: 10px; bottom: 8px; z-index: 4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  padding: 6px 10px; border-left: 3px solid var(--green); border-radius: 7px;
  background: rgba(6, 10, 20, .84); color: #fff; font-size: 12px; line-height: 1.35;
  pointer-events: none; transition: opacity .2s;
}
.tv-ticker:empty, .tv-ticker.set-piece, .tv-banner.show + .tv-ticker { opacity: 0; }
.tv-ticker.fresh { animation: tv-ticker-in .3s ease-out; }
@keyframes tv-ticker-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .tv-ticker.fresh { animation: none; } }

/* Personnage vivant (profil, création) : respiration, petit mouvement de tête, clignement. */
@keyframes avatar-breathe { 0%, 100% { transform: scale(1, 1); } 50% { transform: scale(1.006, 1.012); } }
@keyframes avatar-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-1.2px); } }
@keyframes avatar-blink { 0%, 93%, 100% { transform: scaleY(0); } 95.5% { transform: scaleY(1); } }
.avatar-alive .avatar-body { transform-box: fill-box; transform-origin: 50% 100%; animation: avatar-breathe 3.8s ease-in-out infinite; }
.avatar-alive .avatar-head { animation: avatar-bob 3.8s ease-in-out infinite; }
.avatar-lid { transform-box: fill-box; transform-origin: 50% 0; transform: scaleY(0); }
.avatar-alive .avatar-lid { animation: avatar-blink 5.2s infinite; }
@media (prefers-reduced-motion: reduce) {
  .avatar-alive .avatar-body, .avatar-alive .avatar-head, .avatar-alive .avatar-lid { animation: none; }
}
