/* DUEL TSSR v14.8.2 — isolated visual family styles */
/* DUEL TSSR v14.8.0 — Accueil Gaming néon : composants réels, aucune statistique fictive. */
body[data-family-theme] .g148-home { max-width:1600px; margin:0 auto; padding-bottom:26px; --g148-bg:#091630; --g148-bd:#25466e; --g148-cyan:#28e5ff; --g148-purple:#ac67ff; }
body[data-family-theme] .g148-home * {box-sizing:border-box;}
body[data-family-theme] .g148-home button {cursor:pointer;}
body[data-family-theme] .g148-hero {position:relative; display:flex;align-items:center;justify-content:space-between;isolation:isolate;overflow:hidden;min-height:268px;border:1px solid #2f579b;border-radius:13px;padding:26px clamp(25px,3vw,48px);background:radial-gradient(ellipse at 82% 39%,#ad22ef77,transparent 38%),radial-gradient(ellipse at 47% 90%,#0b8ba844,transparent 56%),linear-gradient(115deg,#061126 0%,#101039 72%,#091833 100%);box-shadow:inset 0 1px 0 #3770aa58,0 10px 25px #02071388;}
body[data-family-theme] .g148-hero:after{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;background:repeating-linear-gradient(110deg,transparent 0 67px,#58dcff09 68px 69px);}
body[data-family-theme] .g148-hero-content{position:relative;z-index:2;max-width:610px;}
body[data-family-theme] .g148-hero-eyebrow{font-size:.68rem;letter-spacing:.2em;color:#70eaff;font-weight:850!important;margin:0 0 12px!important;}
body[data-family-theme] .g148-hero-eyebrow b{color:#ef62ff}
body[data-family-theme] .g148-hero h1{font-size:clamp(2.5rem,4.3vw,4.8rem);line-height:1;letter-spacing:-.05em;margin:0;color:white;font-weight:950;text-shadow:0 3px 14px #000b;}
body[data-family-theme] .g148-hero h1 em{font-style:normal;background:linear-gradient(93deg,#23e3ff,#b96aff,#f547df);background-clip:text;-webkit-background-clip:text;color:transparent;}
body[data-family-theme] .g148-hero-slogan{font-size:clamp(.8rem,1.6vw,1.06rem);font-weight:900;letter-spacing:.15em;color:#a5eaff;margin:12px 0 8px!important;}
body[data-family-theme] .g148-hero-sub{font-size:.84rem;line-height:1.6;max-width:455px;color:#b3c6e2!important;margin:0 0 16px!important;}
body[data-family-theme] .g148-hero-badges{display:flex;gap:9px;flex-wrap:wrap;}
body[data-family-theme] .g148-hero-badges span{display:inline-flex;align-items:center;gap:6px;padding:7px 10px;border-radius:6px;color:#98dbff;border:1px solid #2766a1;background:#0e2650b0;font-weight:750;font-size:.68rem;letter-spacing:.035em;}
body[data-family-theme] .g148-hero-badges svg{width:16px;height:16px;}
body[data-family-theme] .g148-hero-arena{position:relative;z-index:1;width:min(42%,480px);height:auto;max-height:265px;object-fit:contain;filter:drop-shadow(0 0 25px #a12ae866);}
body[data-family-theme] .g148-shortcuts{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:9px;margin:16px 0 17px;}
body[data-family-theme] .g148-shortcut{display:flex;align-items:center;gap:10px;min-width:0;min-height:74px;text-align:left;padding:14px 12px;border:1px solid #0ea8dc;border-radius:10px;background:linear-gradient(130deg,#082e4a,#071e36);color:#f4f9ff;box-shadow:inset 0 0 18px #00b8ff12,0 4px 15px #0006;transition:transform .17s ease,box-shadow .17s ease;}
body[data-family-theme] .g148-shortcut:hover,body[data-family-theme] .g148-shortcut:focus-visible{transform:translateY(-2px);box-shadow:0 0 16px #06ccf94e;outline-offset:2px;}
body[data-family-theme] .g148-sc-create,body[data-family-theme] .g148-sc-training{border-color:#9e43e8;background:linear-gradient(135deg,#301449,#170f34);}
body[data-family-theme] .g148-sc-join{border-color:#5572ff;background:linear-gradient(135deg,#1a2661,#101837);}
body[data-family-theme] .g148-sc-collective{border-color:#f34fc7;background:linear-gradient(135deg,#391334,#260e34);}
body[data-family-theme] .g148-shortcut-icon{flex:none;display:grid;place-items:center;color:#38e7ff;}
body[data-family-theme] .g148-sc-training .g148-shortcut-icon,body[data-family-theme] .g148-sc-create .g148-shortcut-icon{color:#db8bff;}
body[data-family-theme] .g148-sc-collective .g148-shortcut-icon{color:#ff7be4;}
body[data-family-theme] .g148-shortcut-icon svg{width:27px;height:27px;}
body[data-family-theme] .g148-shortcut-label{display:flex;flex-direction:column;gap:4px;flex:1;min-width:0;}
body[data-family-theme] .g148-shortcut-label strong{font-size:.85rem;line-height:1.2;color:#fff;white-space:normal;}
body[data-family-theme] .g148-shortcut-label small{font-size:.66rem;line-height:1.2;color:#abd0e9;}
body[data-family-theme] .g148-chevron{color:#39e6ff;font-size:1.3rem;}
body[data-family-theme] .g148-layout{display:grid;grid-template-columns:minmax(0,1fr) 316px;align-items:start;gap:16px;}
body[data-family-theme] .g148-primary{display:grid;gap:15px;min-width:0;}
body[data-family-theme] .g148-side{display:grid;gap:15px;min-width:0;}
body[data-family-theme] .g148-panel{background:linear-gradient(150deg,#0b1c37,#08152c);border:1px solid #25476f;border-radius:12px;padding:16px;min-width:0;box-shadow:0 6px 22px #0004;}
body[data-family-theme] .g148-panel-heading{display:flex;justify-content:space-between;align-items:center;gap:10px;min-height:32px;margin:0 0 15px;padding-bottom:12px;border-bottom:1px solid #263e5c;}
body[data-family-theme] .g148-panel-heading h2{display:flex;align-items:center;gap:8px;font-size:1.03rem;line-height:1.3;letter-spacing:-.015em;color:#f5f7ff;margin:0;}
body[data-family-theme] .g148-panel-heading h2 svg{width:20px;height:20px;color:#3adfff;flex:none;}
body[data-family-theme] .g148-panel-heading button.g148-link{font-size:.7rem;border:0;background:none;color:#63c8ff;padding:5px;white-space:nowrap;}
body[data-family-theme] .g148-panel-heading button.g148-link:hover{text-decoration:underline;color:#b6e9ff;}
body[data-family-theme] .g148-count{display:inline-flex;align-items:center;justify-content:center;font-size:.7rem;font-weight:900;color:#072032;background:#30dbf1;border-radius:20px;min-width:22px;height:22px;padding:0 7px;}
body[data-family-theme] .g148-filters{display:flex;gap:6px;flex-wrap:wrap;margin:0 0 14px;}
body[data-family-theme] .g148-filters button{font-size:.68rem;padding:8px 11px;border:1px solid #263d61;background:#101f3c;color:#adbfdb;border-radius:7px;}
body[data-family-theme] .g148-filters button.selected{color:#06243c;background:#2fd6fa;border-color:#55eaff;font-weight:850;}
body[data-family-theme] .g148-room-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:11px;}
body[data-family-theme] .g148-room{overflow:hidden;border:1px solid #315486;border-radius:11px;background:#101e37;min-width:0;display:flex;flex-direction:column;}
body[data-family-theme] .g148-room[hidden]{display:none!important;}
body[data-family-theme] .g148-room-art{position:relative;aspect-ratio:2 / 1;background:#06142b var(--room-cover) center / cover no-repeat;border-bottom:1px solid #2d4c72;display:flex;justify-content:space-between;align-items:flex-start;padding:8px;}
body[data-family-theme] .g148-room-state,body[data-family-theme] .g148-room-count{display:flex;align-items:center;gap:6px;font-size:.63rem;font-weight:780;color:#dceafa;border:1px solid #3a5474;background:#050f20c7;padding:5px 7px;border-radius:7px;}
body[data-family-theme] .g148-room-state.is-live{color:#082b2d;background:#30eab2;border-color:#32ffc0;}
body[data-family-theme] .g148-room-state.is-waiting{color:#31270a;background:#ffc55e;border-color:#ffd981;}
body[data-family-theme] .g148-room-state i{width:6px;height:6px;border-radius:50%;background:currentColor;}
body[data-family-theme] .g148-room-count svg{width:14px;height:14px;}
body[data-family-theme] .g148-room-info{display:flex;flex-direction:column;gap:9px;padding:12px;flex:1;}
body[data-family-theme] .g148-room-info h3{font-size:.83rem;margin:0;color:#f4f7ff;line-height:1.3;min-height:2.2em;overflow-wrap:anywhere;}
body[data-family-theme] .g148-tags{display:flex;gap:5px;flex-wrap:wrap;}
body[data-family-theme] .g148-tags span{border:1px solid #263f63;background:#172947;color:#afd2ef;border-radius:5px;padding:4px 6px;font-size:.61rem;line-height:1.25;}
body[data-family-theme] .g148-tags span:first-child{background:#232553;color:#bab1ff;}
body[data-family-theme] .g148-room-foot{display:flex;gap:6px;justify-content:space-between;align-items:center;margin-top:auto;}
body[data-family-theme] .g148-room-members{display:flex;align-items:center;min-width:0;padding-left:3px;}
body[data-family-theme] .g148-room-members .duel-avatar{width:24px;height:24px;border:2px solid #061832;margin-left:-4px;flex:none;}
body[data-family-theme] .g148-room-members .duel-avatar img{width:100%;height:100%;}
body[data-family-theme] .g148-members-empty{font-size:.6rem;color:#8aa0c3;line-height:1.2;}
body[data-family-theme] .g148-room-foot button{background:linear-gradient(125deg,#7034c0,#4726ab);color:#fff;border:1px solid #a36cff;border-radius:7px;padding:7px 9px;font-size:.67rem;font-weight:850;box-shadow:0 0 10px #ab55ff50;white-space:nowrap;}
body[data-family-theme] .g148-room-foot button:hover{background:#7b3ef0;}
body[data-family-theme] .g148-room-no-match,body[data-family-theme] .g148-empty{color:#a9bddc;font-size:.82rem;line-height:1.6;padding:14px 5px;}
body[data-family-theme] .g148-empty h3{margin:0 0 6px;color:#e3eeff;}
body[data-family-theme] .g148-current-body{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:13px;}
body[data-family-theme] .g148-current-body strong{color:#e9f4ff;font-size:.92rem;}
body[data-family-theme] .g148-current-body p{font-size:.75rem;color:#a2c1da;margin:4px 0 0;}
body[data-family-theme] .g148-current-body .primary{background:linear-gradient(125deg,#196be9,#7436df);border:1px solid #5b9aff;}
body[data-family-theme] .g148-bottom-grid{display:grid;grid-template-columns:1fr 1fr;gap:15px;}
body[data-family-theme] .g148-metrics{display:grid;grid-template-columns:1fr 1fr;gap:9px;}
body[data-family-theme] .g148-metrics>div{display:flex;flex-direction:column;gap:6px;padding:15px 12px;border:1px solid #26405b;background:#0a2542;border-radius:9px;}
body[data-family-theme] .g148-metrics strong{font-size:1.6rem;line-height:1;color:#35d9f7;}
body[data-family-theme] .g148-metrics div:nth-child(2) strong{color:#bc84ff;}
body[data-family-theme] .g148-metrics div:nth-child(3) strong{color:#3be2b1;}
body[data-family-theme] .g148-metrics div:nth-child(4) strong{color:#ffce6e;}
body[data-family-theme] .g148-metrics span{font-size:.69rem;color:#b3c7e0;}
body[data-family-theme] .g148-progress{display:grid;gap:12px;}
body[data-family-theme] .g148-progress-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px 8px;}
body[data-family-theme] .g148-progress-row span{min-width:0;color:#c0d0e6;font-size:.72rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
body[data-family-theme] .g148-progress-row b{color:#3bdef7;font-size:.73rem;}
body[data-family-theme] .g148-progress-row i{grid-column:1/-1;height:7px;border-radius:6px;background:linear-gradient(to right,#32dded var(--progress),#1d3858 var(--progress));}
body[data-family-theme] .g148-leader-caption{margin:0 0 9px!important;color:#9bb3d0!important;font-size:.7rem;}
body[data-family-theme] .g148-leader-list{margin:0;padding:0;list-style:none;display:grid;}
body[data-family-theme] .g148-leader-list li{display:flex;align-items:center;gap:9px;padding:7px 5px;border-bottom:1px solid #21395a;}
body[data-family-theme] .g148-leader-list li:last-child{border-bottom:0;}
body[data-family-theme] .g148-leader-list li.g148-its-me{background:#103153;border-radius:6px;}
body[data-family-theme] .g148-rank{width:22px;text-align:center;font-size:.77rem;font-weight:900;color:#b0c6dd;flex:none;}
body[data-family-theme] .g148-rank.podium-0{color:#ffd64e;}
body[data-family-theme] .g148-rank.podium-1{color:#b5d6f0;}
body[data-family-theme] .g148-rank.podium-2{color:#eab383;}
body[data-family-theme] .g148-leader-list .duel-avatar{flex:none;width:32px;height:32px;}
body[data-family-theme] .g148-leader-list .duel-avatar img{width:100%;height:100%;}
body[data-family-theme] .g148-leader-name{display:flex;flex-direction:column;min-width:0;gap:2px;flex:1;}
body[data-family-theme] .g148-leader-name strong{font-size:.76rem;color:#eaf3ff;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
body[data-family-theme] .g148-leader-name small{font-size:.64rem;color:#94b0ce;}
body[data-family-theme] .g148-leader-points{flex:none;font-size:.77rem;font-weight:850;color:#d5e9ff;}
body[data-family-theme] .g148-leader-points small{font-size:.6rem;color:#86dfff;}
body[data-family-theme] .g148-data-caption{font-size:.65rem;line-height:1.5;color:#849fbe!important;margin:12px 0 0!important;}
body[data-family-theme] .g148-my-rank{display:flex;align-items:center;gap:8px;background:#142b50;border:1px solid #2c5384;border-radius:10px;padding:10px;margin-top:13px;font-size:.75rem;color:#dbebff;}
body[data-family-theme] .g148-my-rank .duel-avatar{width:27px;height:27px;}
body[data-family-theme] .g148-my-rank b{color:#40e6ff;}
body[data-family-theme] .g148-player-main{display:flex;gap:11px;align-items:center;}
body[data-family-theme] .g148-player-main .duel-avatar{width:48px;height:48px;}
body[data-family-theme] .g148-player-main>span{display:flex;flex-direction:column;gap:4px;}
body[data-family-theme] .g148-player-main strong{font-size:.87rem;color:#fff;}
body[data-family-theme] .g148-player-main small{font-size:.73rem;color:#abc7e3;}
body[data-family-theme] .g148-player-kpi{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-top:15px;}
body[data-family-theme] .g148-player-kpi>span{display:flex;flex-direction:column;gap:5px;background:#0e2848;padding:11px;border-radius:8px;font-size:.67rem;color:#a9c2dc;}
body[data-family-theme] .g148-player-kpi strong{font-size:1.2rem;color:#2cdbff;}
body[data-family-theme] .g148-history-row{display:flex;align-items:center;gap:9px;padding:11px 0;border-bottom:1px solid #273f5d;}
body[data-family-theme] .g148-history-row:last-child{border:0;}
body[data-family-theme] .g148-history-row>span:first-child{color:#37cfff;}
body[data-family-theme] .g148-history-row>span:nth-child(2){flex:1;display:flex;flex-direction:column;gap:4px;min-width:0;}
body[data-family-theme] .g148-history-row b{font-size:.73rem;color:#e8f5ff;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
body[data-family-theme] .g148-history-row small{font-size:.65rem;color:#94aecd;}
body[data-family-theme] .g148-history-row>strong{font-size:.75rem;color:#66ebf1;}
body[data-family-theme] .g148-room-no-match[hidden]{display:none;}
body[data-family-theme] .g148-shortcut:focus-visible,body[data-family-theme] .g148-room button:focus-visible,body[data-family-theme] .g148-filters button:focus-visible{outline:2px solid #a7efff;outline-offset:3px;}
@media(max-width:1480px){body[data-family-theme] .g148-layout{grid-template-columns:minmax(0,1fr) 290px}body[data-family-theme] .g148-room-grid{grid-template-columns:repeat(2,minmax(0,1fr))}body[data-family-theme] .g148-shortcut{padding:11px 9px;gap:7px}body[data-family-theme] .g148-shortcut-label strong{font-size:.78rem}}
@media(max-width:1180px){body[data-family-theme] .g148-shortcuts{grid-template-columns:repeat(3,minmax(0,1fr))}body[data-family-theme] .g148-layout{grid-template-columns:1fr}body[data-family-theme] .g148-side{grid-template-columns:repeat(2,minmax(0,1fr))}body[data-family-theme] .g148-leaderboard{grid-row:span 2}body[data-family-theme] .g148-room-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:830px){body[data-family-theme] .g148-hero-arena{width:35%;}body[data-family-theme] .g148-room-grid{grid-template-columns:repeat(2,minmax(0,1fr))}body[data-family-theme] .g148-shortcuts{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:610px){body[data-family-theme] .g148-hero{min-height:220px;padding:22px 19px}body[data-family-theme] .g148-hero-arena{display:none}body[data-family-theme] .g148-hero h1{font-size:2.6rem}body[data-family-theme] .g148-hero-slogan{font-size:.7rem;letter-spacing:.06em}body[data-family-theme] .g148-room-grid,body[data-family-theme] .g148-side,body[data-family-theme] .g148-bottom-grid{grid-template-columns:1fr}body[data-family-theme] .g148-leaderboard{grid-row:auto}body[data-family-theme] .g148-shortcuts{gap:8px}body[data-family-theme] .g148-shortcut{min-height:62px}body[data-family-theme] .g148-shortcut-icon svg{width:22px;height:22px}body[data-family-theme] .g148-shortcut-label small{display:none}}
@media(prefers-reduced-motion:reduce){body[data-family-theme] .g148-shortcut{transition:none}}

body[data-family-theme] .g148-room-tools{display:flex;justify-content:flex-end;margin:-6px 0 12px;}
body[data-family-theme] .g148-room-search{display:flex;align-items:center;gap:6px;background:#0c2542;border:1px solid #2a507b;border-radius:8px;padding:5px 9px;color:#65dcff;max-width:270px;width:100%;}
body[data-family-theme] .g148-room-search svg{height:16px;width:16px;flex:none;}
body[data-family-theme] .g148-room-search input{min-width:0;width:100%;background:none;border:0;box-shadow:none;color:#e9f7ff;font-size:.73rem;margin:0;padding:5px;outline:none;}
body[data-family-theme] .g148-room-search input::placeholder{color:#8dabce;}
body[data-family-theme] .g148-sc-buzzer{border-color:#f34fc7;background:linear-gradient(135deg,#391334,#260e34);}
body[data-family-theme] .g148-sc-buzzer .g148-shortcut-icon{color:#ff7be4;}
body[data-family-theme] .g148-sc-solo{border-color:#07bea9;background:linear-gradient(135deg,#063e48,#07273d);}
body[data-family-theme] .g148-sc-solo .g148-shortcut-icon{color:#4fffe2;}
@media(max-width:1480px){body[data-family-theme] .g148-shortcuts{grid-template-columns:repeat(3,minmax(0,1fr));}}
@media(max-width:480px){body[data-family-theme] .g148-room-tools{justify-content:stretch}body[data-family-theme] .g148-room-search{max-width:none}}
body[data-family-theme] .g148-room-tools > .g148-room-search {display:flex!important;flex-direction:row!important;align-items:center!important;gap:6px;min-height:37px;height:37px;margin:0!important;padding:3px 10px!important;}
body[data-family-theme] .g148-room-tools > .g148-room-search input {display:block!important;flex:1 1 auto;width:100%!important;height:26px!important;min-height:0!important;max-width:100%;margin:0!important;padding:4px!important;line-height:1.2!important;}

/* Heritage adaptations — palette variables, real DOM, no screenshot for UI text. */
body[data-family-theme] {
  background:var(--bg);
  color:var(--ink);
  background-image:radial-gradient(ellipse at 60% 0%,var(--family-glow),transparent 55%);
  background-attachment:fixed;
}
body[data-family-theme] .g148-home {--g148-bg:var(--card);--g148-bd:var(--line);--g148-cyan:var(--accent);--g148-purple:var(--family-tone)}
body[data-family-theme] .g148-hero {
  min-height:286px;
  border-color:var(--design-outline);
  background:linear-gradient(90deg,var(--design-header) 0%,var(--design-header) 29%,transparent 95%),var(--family-banner) right center / auto 100% no-repeat,var(--design-hero);
  box-shadow:0 8px 26px #0002;
}
body[data-family-theme] .g148-hero:after{content:none}
body[data-family-theme] .g148-hero-arena{display:none!important}
body[data-family-theme] .g148-hero-content{max-width:575px}
body[data-family-theme] .g148-hero h1{color:var(--design-hero-title);text-shadow:none}
body[data-family-theme] .g148-hero h1 em{background:none;-webkit-text-fill-color:var(--family-tone);color:var(--family-tone)}
body[data-family-theme] .g148-hero-eyebrow,body[data-family-theme] .g148-hero-slogan{color:var(--family-tone)}
body[data-family-theme] .g148-hero-sub{color:var(--muted);max-width:430px}
body[data-family-theme] .g148-hero-badges span{background:var(--design-surface);border-color:var(--line);color:var(--accent-dark)}
body[data-family-theme] .g148-shortcut,body[data-family-theme] .g148-sc-create,body[data-family-theme] .g148-sc-training,body[data-family-theme] .g148-sc-join,body[data-family-theme] .g148-sc-collective,body[data-family-theme] .g148-sc-buzzer,body[data-family-theme] .g148-sc-solo{background:var(--card);border:1px solid var(--line);box-shadow:0 4px 13px #00000011;color:var(--ink)}
body[data-family-theme] .g148-shortcut:nth-child(3n + 1){background:var(--design-surface)}
body[data-family-theme] .g148-shortcut:nth-child(3n + 2){background:var(--design-soft)}
body[data-family-theme] .g148-shortcut-icon,body[data-family-theme] .g148-sc-create .g148-shortcut-icon,body[data-family-theme] .g148-sc-training .g148-shortcut-icon,body[data-family-theme] .g148-sc-collective .g148-shortcut-icon,body[data-family-theme] .g148-sc-buzzer .g148-shortcut-icon,body[data-family-theme] .g148-sc-solo .g148-shortcut-icon{color:var(--accent-dark)}
body[data-family-theme] .g148-shortcut-label strong,body[data-family-theme] .g148-panel-heading h2,body[data-family-theme] .g148-room-info h3,body[data-family-theme] .g148-player-main strong,body[data-family-theme] .g148-leader-name strong,body[data-family-theme] .g148-history-row b{color:var(--ink)}
body[data-family-theme] .g148-shortcut-label small,body[data-family-theme] .g148-room-members .g148-members-empty,body[data-family-theme] .g148-history-row small,body[data-family-theme] .g148-leader-name small,body[data-family-theme] .g148-data-caption,body[data-family-theme] .g148-leader-caption{color:var(--muted)!important}
body[data-family-theme] .g148-chevron,body[data-family-theme] .g148-panel-heading h2 svg,body[data-family-theme] .g148-panel-heading button.g148-link{color:var(--accent-dark)}
body[data-family-theme] .g148-panel,body[data-family-theme] .g148-room{background:var(--card);border-color:var(--line);box-shadow:0 4px 20px #00000010}
body[data-family-theme] .g148-panel-heading,body[data-family-theme] .g148-history-row,body[data-family-theme] .g148-leader-list li{border-color:var(--line)}
body[data-family-theme] .g148-room-art{border-color:var(--line)}
body[data-family-theme] .g148-count,body[data-family-theme] .g148-filters button.selected{background:var(--accent);border-color:var(--accent);color:var(--design-header)}
body[data-family-theme] .g148-filters button,body[data-family-theme] .g148-tags span,body[data-family-theme] .g148-tags span:first-child{background:var(--design-surface);border-color:var(--line);color:var(--muted)}
body[data-family-theme] .g148-room-search{background:var(--design-field);border-color:var(--line);color:var(--accent)}
body[data-family-theme] .g148-room-search input{color:var(--ink)}
body[data-family-theme] .g148-room-search input::placeholder{color:var(--muted)}
body[data-family-theme] .g148-room-foot button,body[data-family-theme] .g148-current-body .primary{background:var(--family-button);border-color:var(--family-button);color:#fff;box-shadow:none}
body[data-family-theme] .g148-metrics>div,body[data-family-theme] .g148-player-kpi>span,body[data-family-theme] .g148-my-rank{background:var(--design-surface);border-color:var(--line);color:var(--muted)}
body[data-family-theme] .g148-metrics strong,body[data-family-theme] .g148-metrics div:nth-child(n) strong,body[data-family-theme] .g148-player-kpi strong,body[data-family-theme] .g148-my-rank b,body[data-family-theme] .g148-progress-row b{color:var(--accent-dark)}
body[data-family-theme] .g148-metrics span,body[data-family-theme] .g148-player-kpi>span,body[data-family-theme] .g148-progress-row span,body[data-family-theme] .g148-current-body p{color:var(--muted)}
body[data-family-theme] .g148-progress-row i{background:linear-gradient(to right,var(--accent) var(--progress),var(--design-soft) var(--progress))}
body[data-family-theme] .g148-leader-list li.g148-its-me{background:var(--design-soft)}
body[data-family-theme] .g148-leader-points,body[data-family-theme] .g148-history-row>strong{color:var(--accent-dark)}
body[data-family-theme] .g148-current-body strong{color:var(--ink)}
@media(max-width:720px){body[data-family-theme] .g148-hero{background:linear-gradient(100deg,var(--design-header) 0%,var(--design-header) 48%,transparent 140%),var(--family-banner) right center / auto 100% no-repeat,var(--design-hero)}}

body[data-design-theme="naturel"] .g148-hero,body[data-design-theme="academique"] .g148-hero,body[data-design-theme="terracotta"] .g148-hero,body[data-design-theme="foret"] .g148-hero {background:linear-gradient(90deg,var(--design-header) 0%,var(--design-header) 37%,#ffffff0c 95%),var(--family-banner) right center / auto 100% no-repeat,var(--design-hero)}
body[data-design-theme="naturel"] .g148-hero-slogan,body[data-design-theme="academique"] .g148-hero-slogan,body[data-design-theme="terracotta"] .g148-hero-slogan,body[data-design-theme="foret"] .g148-hero-slogan {color:var(--accent-dark)}
body[data-design-theme="academique"] .g148-hero h1{color:#163b4e}
/* Lisibilité spécifique : barre latérale foncée même pour les thèmes clairs. */
body[data-family-theme] nav .nav-button {color:#e0eae5;}
body[data-family-theme] nav .nav-button:not(.current):hover {color:#fff;background:#ffffff20;}
body[data-family-theme] nav .module-selector {color:#d7e6db;}
body[data-family-theme] .g148-hero-sub {color:var(--muted)!important;}
body[data-family-theme] .g148-hero h1,body[data-family-theme] .g148-hero-slogan {text-wrap:balance;}
body[data-family-theme] .g148-room-art {background-blend-mode:luminosity;}
body[data-design-theme="cuivre"] .g148-room-art,body[data-design-theme="prestige"] .g148-room-art {background-blend-mode:normal;}
body[data-family-theme] .g148-shortcut:focus-visible,body[data-family-theme] .g148-room button:focus-visible,body[data-family-theme] .g148-filters button:focus-visible {outline:3px solid var(--accent);outline-offset:3px;}
