*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:#090f1e;color:#eaf2ff;font:15px system-ui,-apple-system,Segoe UI,Arial,sans-serif}button,input{font:inherit}button{cursor:pointer}button:disabled{opacity:.48;cursor:not-allowed}[hidden]{display:none!important}.shell{max-width:780px;margin:auto;padding:0 18px 95px}.top{height:76px;display:flex;align-items:center;gap:12px;justify-content:space-between}.brand{text-decoration:none;color:#fff;display:flex;gap:8px;align-items:center;font-weight:900;line-height:1;letter-spacing:.04em}.brand>span{font-size:13px}.brand strong{color:#59e8ae}.season,.fine{color:#8394ad;font-size:12px}.install,.quiet{background:#202b42;color:#fff;border:1px solid #394761;border-radius:11px;padding:10px}.view{animation:fade .22s ease}@keyframes fade{from{opacity:.25;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}.hero{background:radial-gradient(circle at 88% 16%,#17553f,#172843 60%,#111d32);padding:27px 22px;border:1px solid #31536a;border-radius:23px;margin-bottom:26px}.hero h1{font-size:clamp(30px,7vw,54px);line-height:1.02;margin:17px 0;letter-spacing:-.05em}.hero h1 em{font-style:normal;color:#66edba}.hero p{color:#b5c5d8}.pill{border-radius:50px;background:#183d35;color:#89f2c5;padding:7px 12px;font-size:11px;font-weight:800;letter-spacing:.08em}.league-icons{display:flex;gap:12px;flex-wrap:wrap;margin-top:18px}.league-icon{height:31px;width:31px;object-fit:contain;background:#e9f2f7;padding:3px;border-radius:10px}.modes,.statsgrid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.modecard{border:1px solid #33465f;text-align:left;min-height:136px;border-radius:18px;background:#19263a;color:white;display:flex;flex-direction:column;align-items:flex-start;padding:17px;gap:9px;transition:.15s}.modecard:hover,.modecard:focus-visible{border-color:#55e6b2;transform:translateY(-2px)}.modecard>span{font-size:25px}.modecard strong{font-size:17px}.modecard small{color:#95a8bc}.modecard.wide{grid-column:span 2;min-height:112px}.navbar{position:fixed;bottom:0;left:0;right:0;z-index:9;background:#101b2cf7;backdrop-filter:blur(12px);border-top:1px solid #273954;display:flex;justify-content:space-around;padding:8px max(8px,env(safe-area-inset-right)) calc(8px + env(safe-area-inset-bottom))}.navbar button{background:none;border:0;color:#97abc0;display:flex;gap:5px;align-items:center;flex-direction:column;padding:7px 12px;font-size:23px}.navbar span{font-size:10px}.navbar button.active{color:#61eab8}.gamehead{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:8px 0 15px}.timer{color:#ffcc71;font-weight:900;font-size:20px}.mystery{text-align:center;background:radial-gradient(circle at 50% 28%,#1b5945,#182a42 63%,#152039);padding:25px 18px 20px;border-radius:23px;border:1px solid #2c475f}.portrait{width:126px;height:126px;background:linear-gradient(130deg,#38516a,#15243b);margin:auto;border-radius:50%;border:3px solid #56dfac;display:grid;place-items:center;overflow:hidden;font-size:65px;font-weight:900}.portrait img{height:100%;width:100%;object-fit:cover;transition:filter .3s}.portrait-note{color:#9bb5c4;font-size:12px;margin:9px}.mystery h1{font-size:22px;margin:15px 0}.attempts{display:flex;justify-content:space-between;color:#c4d2e5;font-size:12px}.bar{height:8px;background:#344358;border-radius:20px;margin-top:8px;overflow:hidden}.bar>div{height:100%;background:#5ce3a7;width:0;transition:width .3s}.search-section{position:relative;margin-top:20px}.search-section label{font-weight:900;color:#9db5c9;font-size:11px;letter-spacing:.1em}.searchline{margin-top:8px;display:flex;background:#f4f7fb;border-radius:12px;overflow:hidden}.searchline input{background:none;border:0;outline:0;color:#17233b;padding:15px;width:100%;min-width:0}.searchline button{background:none;border:0;color:#47576c;padding:0 15px;font-size:24px}.suggestions{position:absolute;top:73px;left:0;right:0;z-index:8;max-height:330px;overflow:auto;background:#fff;color:#182235;border-radius:12px;box-shadow:0 12px 35px #0009}.suggestion{width:100%;text-align:left;border:0;background:#fff;border-bottom:1px solid #e4e9ed;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px}.suggestion:hover{background:#e8fbf4}.suggestion-left{display:flex;gap:10px;align-items:center}.suggestion-left>div{display:flex;flex-direction:column}.suggestion small{font-size:11px;color:#67768a}.crest{width:28px;height:28px;object-fit:contain}.position{font-size:11px;background:#e0e9f0;padding:5px;border-radius:7px}.primary,.hintbutton{width:100%;border:0;color:#072119;font-weight:900;padding:15px;border-radius:12px;margin-top:10px;background:#63eab4}.hintbutton{background:#203d45;color:#f0d98d;border:1px solid #48705e}.hintlist{display:flex;flex-wrap:wrap;gap:8px;margin:10px 0}.hintitem{border:1px solid #6a6943;background:#323628;color:#f9dda1;border-radius:10px;padding:10px;font-size:13px}.resultmsg{font-size:17px;font-weight:800;margin:16px 0}.historytop{display:flex;justify-content:space-between;align-items:center;gap:7px;margin-top:25px}.historytop h2{font-size:17px}.historytop small{font-size:10px;color:#9aacc3}.labels,.cells{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:4px;text-align:center}.labels{color:#8092a8;font-size:10px;margin:12px 0}.entry{margin-bottom:14px;border:1px solid #2a3b56;border-radius:12px;padding:8px;background:#172238}.entryhead{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:8px;font-size:13px}.entryhead small{color:#92a5b8}.cell{min-height:72px;padding:5px 2px;border-radius:8px;display:flex;flex-direction:column;gap:2px;align-items:center;justify-content:center;font-size:10px;overflow-wrap:anywhere}.cell.correct{background:#156b51}.cell.partial{background:#91702a}.cell.wrong{background:#3a485f}.cell>img{width:22px;height:22px;object-fit:contain}.cell>strong{font-size:11px}.cell small{font-size:13px}.history .empty{text-align:center;color:#9daec5;padding:27px 0}.statsgrid>div{border-radius:15px;padding:17px;background:#19263a;border:1px solid #31445c}.statsgrid strong{display:block;font-size:26px;color:#67edb8}.statsgrid small{color:#98aec6}.recordlist>div{background:#19253a;border:1px solid #31445c;border-radius:12px;padding:13px;margin:8px 0;display:flex;justify-content:space-between;gap:10px}.ranktabs{display:flex;gap:10px;margin:18px 0}.ranktabs button{padding:10px 16px;border:1px solid #374963;background:#182841;color:#e4f3ff;border-radius:10px}.ranktabs .active{background:#25684f}.authbox{padding:15px;border:1px solid #34485f;border-radius:15px}.authbox input{width:100%;padding:13px;border-radius:9px;border:0}.toast{position:fixed;z-index:100;top:10px;left:50%;transform:translateX(-50%);background:#eafbf4;color:#163c2d;padding:10px 16px;border-radius:10px;display:none;max-width:90vw}.toast.show{display:block}@media(min-width:650px){.hero{padding:42px}.modecard{min-height:150px}.cell{min-height:90px;font-size:12px}}@media(max-width:380px){.shell{padding-left:10px;padding-right:10px}.season{display:none}.cell{font-size:9px;min-height:65px}.historytop{display:block}}
/* V4.1 – sélecteur de difficulté mobile */
.difficulty-section{margin:0 0 25px}.difficulty-section h2{margin:0 0 13px;font-size:20px}.difficulty-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}
.difficulty-grid button{border:1px solid #344a61;background:#1a2b41;color:#eef9ff;border-radius:15px;padding:14px 8px;min-height:113px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;text-align:center;transition:background .2s,transform .2s,border-color .2s}
.difficulty-grid button strong{font-size:15px}.difficulty-grid button small{font-size:10px;color:#a6bed1}.difficulty-grid .difficulty-emoji{font-size:23px}
.difficulty-grid button.active{background:#153d35;border:2px solid #66edba;box-shadow:0 0 0 2px #66edba18}.difficulty-grid button:focus-visible{outline:2px solid #fff;outline-offset:3px}
.difficulty-section .fine{margin:10px 2px 0;min-height:16px}
@media(max-width:380px){.difficulty-grid{gap:6px}.difficulty-grid button{padding:12px 5px}.difficulty-grid button strong{font-size:13px}}

/* V4.2 : sélection libre de 100 niveaux par difficulté */
.levelcta{display:flex;align-items:center;gap:13px;width:100%;border:1px solid #5be9b5;background:linear-gradient(105deg,#173d36,#1a2e45);color:#f7fff9;text-align:left;border-radius:18px;padding:18px;margin:2px 0 21px;transition:transform .2s}
.levelcta:hover,.levelcta:focus-visible{transform:translateY(-2px);outline:2px solid #7cf5c6}
.levelcta>span:first-child{font-size:30px}.levelcta>span:nth-child(2){flex:1;display:flex;flex-direction:column;gap:4px}.levelcta strong{font-size:18px}.levelcta small{font-size:12px;color:#b4d9d0}
.levelshead{display:flex;align-items:center;justify-content:space-between;margin:15px 0 18px}.levelsDifficulty{margin:18px 0}.levelsDifficulty button{min-height:72px;gap:8px;font-size:15px}.levelsDifficulty button.active{border-color:#63eab4;background:#144338}
.level-progress{border:1px solid #35596a;border-radius:12px;background:#16283c;padding:14px;color:#b0e9d3;font-weight:750;margin-bottom:16px}
.level-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:9px;margin-bottom:25px}
.leveltile{border:1px solid #344960;color:#eef7ff;background:#18283d;min-height:65px;border-radius:13px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:4px;transition:transform .15s,border-color .15s}
.leveltile strong{font-size:20px}.leveltile small{font-size:9px;color:#aabbd1}.leveltile.won{background:#16523f;border-color:#51d6a2}.leveltile.won small{color:#b6f8d6}.leveltile.lost{border-color:#b77b65}.leveltile.ongoing{border-color:#e1b657}
.leveltile:hover,.leveltile:focus-visible{transform:translateY(-2px);border-color:#63eab4;outline:2px solid #63eab4;outline-offset:1px}
@media(min-width:600px){.level-grid{grid-template-columns:repeat(10,minmax(0,1fr))}}@media(max-width:350px){.level-grid{gap:5px}.leveltile{min-height:57px}.leveltile strong{font-size:17px}}

/* V5 - cinq ligues, vingt défis chacune, étoiles */
.league-title{font-size:17px;margin:16px 0 10px}.level-leagues{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;margin:12px 0 18px}.league-select{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:8px;background:#192c43;border:1px solid #375069;color:#e8f5ff;border-radius:13px;padding:10px 3px;font-size:10px;min-height:85px}.league-select.active{background:#164335;border:2px solid #64e8b3}.league-select:focus-visible{outline:2px solid white}.level-league-logo{height:29px;width:29px;object-fit:contain}.level-grid{grid-template-columns:repeat(5,minmax(0,1fr))}.leveltile{min-height:80px}.leveltile .level-stars{color:#ffcb58;font-size:15px;letter-spacing:1px}.leveltile:disabled{opacity:.35}.leveltile strong{font-size:23px}@media(max-width:400px){.league-select{font-size:9px;min-height:78px}.level-leagues{gap:4px}.leveltile{min-height:73px}.leveltile .level-stars{font-size:12px}}

/* V5.1 : bouton de révélation et carte réponse */
.revealbutton{display:flex;justify-content:center;align-items:center;flex-wrap:wrap;gap:8px;width:100%;border:1px solid #e7a46b;background:#3c2830;color:#ffe7d2;border-radius:12px;padding:14px 12px;margin-top:10px;font-weight:900;transition:background .15s,border-color .15s}
.revealbutton:hover:not(:disabled),.revealbutton:focus-visible{background:#553239;border-color:#ffca86;outline-offset:2px}
.reveal-cost{font-size:12px;font-weight:700;color:#ffbf97}
.result-reveal{margin:12px 0 16px;padding:16px;border:1px solid #bc8b61;border-radius:15px;background:linear-gradient(115deg,#332f36,#23394a)}
.result-kicker{display:block;font-size:11px;font-weight:800;letter-spacing:.1em;color:#f9bf86;margin-bottom:9px}
.result-identity{display:flex;align-items:center;gap:12px}.result-identity>div{display:flex;flex-direction:column;gap:4px;min-width:0}
.result-identity strong{font-size:19px;color:#fff;overflow-wrap:anywhere}.result-identity span{font-size:12px;color:#bfd0df}
.result-crest{width:42px;height:42px;object-fit:contain;flex-shrink:0}
.result-penalty{display:block;color:#ffd7b0;font-size:12px;font-weight:800;margin-top:12px}


/* Football Mystery V5.2 — écran de fin et progression globale */
.home-level-progress{margin:-10px 0 24px;border:1px solid #304e61;border-radius:12px;background:#152e37;color:#a9e9d3;font-weight:700;font-size:13px;padding:12px 14px}
.overall-levels-progress{font-size:13px;font-weight:750;color:#65e9b5;border:1px solid #3c7867;background:#173b36;padding:12px 14px;border-radius:13px;margin-bottom:12px}
.results-view{padding-bottom:26px}.finish-card{position:relative;overflow:hidden;text-align:center;background:radial-gradient(circle at 50% 15%,#235d54 0%,#1a3047 42%,#14253b 100%);border:1px solid #3c6071;border-radius:24px;padding:28px 17px 24px;box-shadow:0 12px 48px #030a1928}
.finish-kicker{position:relative;z-index:1;font-size:11px;font-weight:850;color:#8cf0c8;letter-spacing:.13em}.finish-card h1{position:relative;z-index:1;font-size:clamp(27px,7vw,39px);margin:13px 0 6px;line-height:1.15;letter-spacing:-.04em}.finish-context{position:relative;z-index:1;color:#b3c9d8;font-size:13px;margin:0 0 19px}
.finish-portrait{position:relative;z-index:1;width:128px;height:128px;margin:0 auto 17px;border:4px solid #6ef1be;border-radius:50%;background:linear-gradient(135deg,#3e5a6a,#172238);box-shadow:0 0 40px #4be5a42e;display:grid;place-items:center;overflow:hidden}.finish-portrait img{width:100%;height:100%;object-fit:cover;filter:none}.finish-avatar{font-size:59px}
.finish-identity{position:relative;z-index:1}.finish-label{color:#acc0d2;font-size:10px;font-weight:800;letter-spacing:.12em}.finish-identity h2{font-size:24px;margin:6px 0 9px;color:#fff;overflow-wrap:anywhere}.finish-player-meta{display:flex;justify-content:center;align-items:center;gap:9px;color:#c5d9e8;font-size:12px;flex-wrap:wrap;line-height:1.4}.finish-crest{width:30px;height:30px;object-fit:contain}
.finish-stars{margin:18px auto 4px;font-size:39px;letter-spacing:3px;color:#718499;line-height:1.2;min-height:47px}.finish-stars.is-win{color:#ffd066;text-shadow:0 3px 22px #e2a72730}.finish-starnote{font-size:12px;color:#c2d2df;margin:3px 0 18px}
.finish-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.finish-metrics>div{background:#0b192c9c;border:1px solid #3d576d;border-radius:13px;padding:12px 6px;display:flex;flex-direction:column;gap:8px}.finish-metrics span{color:#a7bdcc;font-size:9px;letter-spacing:.05em;font-weight:800}.finish-metrics strong{font-size:clamp(18px,5vw,26px);color:#75e9b7;font-variant-numeric:tabular-nums}
.finish-best{margin-top:15px;padding:12px;border:1px solid #9f8946;background:#3b3828;color:#ffe5a2;border-radius:12px;font-size:13px;font-weight:750}.finish-actions{display:grid;gap:10px;margin:20px 0}.finish-actions button{width:100%;margin:0;min-height:51px;border-radius:13px;font-weight:850;letter-spacing:.015em}.finish-replay{border:1px solid #529c88;background:#244b49;color:#e0fff2}.finish-outline{background:#25334a;border:1px solid #48627b;color:#e1f2ff}.finish-quiet{border:0;background:transparent;color:#c3d9e9;text-decoration:underline;font-weight:600!important}
.confetti{position:absolute;pointer-events:none;inset:0;overflow:hidden}.confetti i{position:absolute;top:-18px;width:8px;height:15px;background:#ffd063;opacity:0;animation:confetti-fall 1.9s ease-out 1 forwards;transform:rotate(var(--tilt))}.confetti i:nth-child(3n){background:#66eab8}.confetti i:nth-child(4n){background:#e68eda}@keyframes confetti-fall{0%{transform:translateY(-35px) rotate(0);opacity:1}85%{opacity:1}100%{transform:translateY(460px) rotate(650deg);opacity:0}}
.stat-levels{margin:22px 0 24px;padding:17px;background:#172b3f;border:1px solid #335269;border-radius:18px}.stat-levels h2{margin:0 0 12px;font-size:18px}.stat-level-summary{color:#80f1c4;font-weight:750;font-size:13px;line-height:1.5;margin-bottom:14px}.stat-by-difficulty{display:grid;gap:12px}.level-stat-row{display:grid;grid-template-columns:1fr auto;gap:7px;font-size:13px}.level-stat-row strong{color:#eefbff}.level-stat-row span{color:#a5b9d0}.stat-track{grid-column:1/-1;height:7px;overflow:hidden;background:#32475d;border-radius:15px}.stat-track>div{height:100%;background:#61e6ad;border-radius:15px}
@media(prefers-reduced-motion:reduce){.confetti i{animation:none!important}.finish-actions button,.leveltile{transition:none!important}}
@media(max-width:350px){.finish-card{padding:21px 10px}.finish-metrics span{font-size:8px}}

/* V5.3 : profil, récompenses, cartes et historique mobile */
.profile-head{display:flex;justify-content:space-between;align-items:center;margin:10px 0 18px}.profile-view h1{font-size:clamp(27px,5vw,40px);margin:0 0 6px}.profile-hero{display:flex;gap:15px;align-items:center;background:linear-gradient(115deg,#153f3b,#1b2d45);border:1px solid #3a7167;border-radius:19px;padding:20px 16px;margin:20px 0}.profile-symbol{width:72px;height:72px;border-radius:50%;display:grid;place-items:center;background:#264b52;border:2px solid #68e5b2;font-size:37px;flex-shrink:0}.profile-nickname{flex:1;min-width:0}.profile-nickname label{display:block;font-size:12px;font-weight:800;color:#b8cfde;margin-bottom:7px}.profile-name-row{display:flex;gap:6px}.profile-name-row input{min-width:0;width:100%;border:1px solid #537180;border-radius:10px;background:#0b1c2b;color:#fff;padding:10px}.profile-name-row button{background:#58dba7;color:#0d2922;border:0;border-radius:10px;padding:9px;font-size:12px;font-weight:800}.profile-nickname small{display:block;color:#aac3cf;font-size:11px;margin-top:6px}.profile-metrics{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.profile-metrics>div{background:#1a2b40;border:1px solid #35485f;border-radius:15px;padding:16px;display:flex;flex-direction:column;gap:9px}.profile-metrics span{color:#a2b8c9;font-size:12px}.profile-metrics strong{color:#84eac0;font-size:24px}.profile-panel{background:#142439;border:1px solid #2f4762;border-radius:18px;padding:16px;margin-top:16px}.profile-panel h2{font-size:18px;margin:0 0 12px}.profile-panel>p{color:#bed2e0}.profile-track{height:11px;border-radius:30px;background:#34445a;overflow:hidden}.profile-track>div{height:100%;border-radius:30px;background:linear-gradient(90deg,#15ae7b,#89ebc0);width:0;transition:width .3s}.profile-section-title{display:flex;justify-content:space-between;align-items:center;gap:10px}.achievement-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.achievement{background:#172337;border:1px solid #34485c;border-radius:13px;padding:12px;display:flex;gap:9px;align-items:flex-start;opacity:.72;min-height:100px}.achievement.unlocked{opacity:1;border-color:#c69d43;background:#2b2c35}.achievement-icon{font-size:29px;flex-shrink:0}.achievement>div{display:flex;flex-direction:column;gap:5px;min-width:0}.achievement strong{font-size:13px;color:#f5f8fb}.achievement small{font-size:11px;color:#bacadd;line-height:1.45}.achievement-progress{font-size:11px;color:#f0c870;font-weight:800}.profile-history{display:grid;gap:9px}.profile-history-row{display:flex;gap:10px;justify-content:space-between;align-items:center;padding:12px 10px;border-radius:11px;background:#1d3045}.profile-history-row>div{display:grid;gap:5px;min-width:0}.profile-history-row strong{font-size:12px}.profile-history-row small{font-size:11px;color:#afc4d3}.profile-history-row>strong{flex-shrink:0;color:#85ebbc}.profile-detail{margin:16px 0 22px;border:1px solid #2f4762;padding:12px;border-radius:12px}.profile-detail summary{cursor:pointer;color:#c7d9e9;font-weight:750}.profile-stats-link{margin-bottom:18px}.navbar button{padding:6px max(5px,1.5vw);font-size:21px;min-width:0;flex:1}.navbar span{font-size:10px}@media(max-width:420px){.achievement-grid{grid-template-columns:1fr 1fr;gap:8px}.achievement{padding:10px 8px;gap:6px}.achievement-icon{font-size:22px}.profile-hero{padding:13px 10px;gap:9px}.profile-symbol{width:50px;height:50px;font-size:26px}.profile-name-row{flex-direction:column}.profile-name-row button{padding:9px}.navbar button{font-size:19px;padding:7px 2px}}

/* V5.4 — Missions, boutique, collection, événements, langues */
.language-select{background:#1c2d43;color:#eafbf4;border:1px solid #436070;border-radius:10px;padding:9px 5px;max-width:100px;font-size:12px}
.top .season{flex:1;text-align:center}.v54-hub{margin:26px 0 20px}.v54-title,.v54-heading{display:flex;align-items:center;justify-content:space-between;gap:10px}.v54-title h2{margin:4px 0 13px;font-size:20px}.wallet-mini{color:#f8d68f;background:#273344;padding:6px 9px;border-radius:15px;font-size:11px;white-space:nowrap}.v54-links{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.v54-links button{border:1px solid #3a5368;border-radius:15px;background:linear-gradient(130deg,#153d3a,#1b2b44);color:#f4fff9;min-height:104px;padding:14px;text-align:start;display:flex;flex-direction:column;align-items:flex-start;gap:5px}.v54-links button>span{font-size:22px}.v54-links strong{font-size:14px}.v54-links small{font-size:11px;color:#b8cddd}
.v54-view h1{font-size:clamp(25px,6vw,38px);margin:20px 0 12px}.v54-view h2{font-size:19px;margin:25px 0 13px}.v54-view h3{font-size:15px;color:#c1d5e6}.v54-heading{margin-top:15px}.v54-wallet{padding:18px;border:1px solid #57846e;background:#173d35;border-radius:16px;font-weight:900;color:#ffe7ac;font-size:18px;margin:19px 0}.v54-stack{display:grid;gap:12px}.v54-mission,.v54-product,.analytics-row{background:#192b41;border:1px solid #36516a;border-radius:15px;padding:15px}.v54-missiontop,.v54-missionbottom{display:flex;justify-content:space-between;align-items:center;gap:12px}.v54-missiontop>div{display:flex;flex-direction:column;gap:5px}.v54-missiontop strong{font-size:15px}.v54-missiontop small,.v54-missionbottom small{color:#aac0d5;font-size:12px}.reward-pill{background:#3a382b;border:1px solid #8a7342;border-radius:10px;font-size:11px;padding:7px;color:#ffdc91;white-space:nowrap}.v54-track{height:9px;background:#32465b;border-radius:16px;overflow:hidden;margin:12px 0}.v54-track>div{height:100%;background:#58e6aa;border-radius:16px;transition:width .2s}.v54-claim,.v54-buy{border:0;background:#65e6b2;color:#102b24;font-weight:850;border-radius:10px;padding:10px 13px;font-size:12px}.v54-claim:disabled,.v54-buy:disabled{background:#3e5263;color:#a5b5c7}.v54-product{display:flex;align-items:center;gap:13px}.joker-emoji{font-size:28px}.v54-productinfo{display:grid;gap:6px;flex:1}.v54-productinfo small{font-size:11px;color:#acc5d4}.v54-buy{white-space:nowrap}.v54-jokers{margin:18px 0;background:#172f3d;border:1px solid #486c68;padding:12px;border-radius:14px}.v54-jokers .v54-title strong{font-size:14px}.joker-inventory{display:flex;gap:7px;flex-wrap:wrap;margin-top:12px}.joker-action{background:#244357;color:#edfdf7;border:1px solid #52727e;border-radius:10px;padding:10px;font-size:12px}.joker-action:not(:disabled):hover{border-color:#78ebbd}.album-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:16px 0 24px}.album-card{background:linear-gradient(145deg,#23483e,#172940);border:1px solid #50836f;border-radius:16px;min-width:0;overflow:hidden;padding:11px;display:flex;flex-direction:column;gap:6px}.album-picture{height:150px;background:#25445a;border-radius:11px;display:grid;place-items:center;overflow:hidden}.album-picture img{width:100%;height:100%;object-fit:cover}.album-fallback{font-size:55px}.album-card strong{font-size:13px}.album-card small{font-size:11px;color:#b9cbd7}.v54-filters{display:flex;gap:12px;align-items:center;margin:18px 0}.v54-filters select{flex:1;background:#21374b;color:#fff;border:1px solid #52718a;border-radius:10px;padding:11px}.analytics-row{display:grid;gap:6px}.analytics-row>div{display:flex;flex-direction:column;gap:6px}.analytics-row small,.analytics-row span{font-size:11px;color:#b2c8d4}.analytics-row .v54-track{margin:4px 0 0}.navbar{overflow-x:auto;scrollbar-width:none}.navbar button{min-width:47px}.navbar button span{font-size:10px}
html[dir="rtl"] .modecard,html[dir="rtl"] .v54-links button,html[dir="rtl"] .search-section{text-align:right}html[dir="rtl"] #search{direction:ltr;text-align:right}html[dir="rtl"] .brand,html[dir="rtl"] .finish-player-meta{direction:ltr}html[dir="rtl"] .v54-claim,html[dir="rtl"] .v54-buy{white-space:nowrap}
@media(max-width:430px){.v54-product{flex-wrap:wrap}.v54-productinfo{min-width:155px}.v54-buy{margin-inline-start:auto}.wallet-mini{font-size:10px}.top{gap:5px}.top .season{font-size:10px}.language-select{max-width:79px;padding:8px 3px}.navbar button{padding:6px 2px}.navbar span{font-size:9px}}
@media(min-width:600px){.album-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.v54-links{grid-template-columns:repeat(4,minmax(0,1fr))}}

/* V5.5 - progression visuelle, combo et parcours de carrière */
.v55-headchips{display:flex;gap:8px;justify-content:center;flex-wrap:wrap;margin:8px 0 5px}
.v55-chip{background:#244733;border:1px solid #3e9d75;color:#baffdf;padding:8px 12px;border-radius:999px;font-weight:800;font-size:.82rem}
.v55-chip.accent{background:#3d2d19;color:#ffe2a5;border-color:#af803b}
.v55-photo-stage{text-align:center;color:#9bb8d2;font-size:.76rem;letter-spacing:.04em;margin:4px 0 10px}
.v55-career{border:1px solid #426381;background:linear-gradient(145deg,#18334b,#182a3b);border-radius:17px;padding:15px;margin:12px 0 18px}
.v55-career h2{font-size:1.08rem;margin:0 0 4px;color:#c7ffee}.v55-career p{color:#a9bfd6;font-size:.84rem;margin:0 0 10px}
.v55-career-clubs{display:grid;gap:8px;margin:0;padding:0;list-style:none;counter-reset:clb}
.v55-career-clubs li{border:1px solid #416783;border-radius:10px;background:#223e55;padding:10px 12px;color:#fff;font-weight:650}
.v55-reward{padding:12px;color:#ffdf99;background:#49341d;border:1px solid #b98e4c;border-radius:12px;text-align:center;font-size:.9rem;line-height:1.65;margin-top:10px}
.v55-view{max-width:720px;margin:auto}.v55-instructions{padding:26px 18px;background:#162d43;border-radius:16px;margin-top:24px}.v55-instructions p{color:#c9d6e4;line-height:1.65}
.v55-career-mode{border:1px solid #60b393!important;background:linear-gradient(125deg,#174b42,#18314a)!important}
@media(max-width:420px){.v55-chip{font-size:.72rem;padding:7px 9px}}

/* V5.6 – progressive enhancements; old layouts and saved data unchanged */
.v56-settings,.v56-deduction,.v56-learning,.v56-tournament-summary,.v56-tournamentbar,.v56-tournament-rounds,.v56-search-filters{background:#17283d;border:1px solid #344b62;border-radius:16px;padding:14px;margin:15px 0;color:#e6f4ff}
.v56-switch{display:flex;align-items:center;gap:10px;margin:12px 0;font-size:14px}.v56-switch input{width:21px;height:21px;accent-color:#3dc996}
.v56-search-filters summary{cursor:pointer;font-weight:750}.v56-filter-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:14px 0}.v56-filter-grid label{display:grid;gap:5px;font-size:12px;color:#a9bdcf}.v56-filter-grid input,.v56-filter-grid select{width:100%;min-width:0;background:#0d1b2c;border:1px solid #456078;border-radius:9px;padding:9px;color:#fff;font-size:14px}
.v56-cardhead{display:flex;justify-content:space-between;gap:9px;align-items:center}.v56-cardhead h2,.v56-learning h2{font-size:17px;margin:0 0 7px}.v56-deduction .quiet{width:100%;margin:10px 0}.v56-candidates{max-height:240px;overflow-y:auto;display:grid;gap:6px}.v56-candidates[hidden],.v56-learning[hidden],.v56-tournamentbar[hidden]{display:none!important}.v56-candidate{padding:9px;background:#23364b;border-radius:8px;display:flex;justify-content:space-between;gap:8px;font-size:13px}.v56-candidate small{color:#aabed0}.v56-learning p{font-size:13px;line-height:1.6}.v56-learning button{margin-top:9px}
.v56-tournament-rounds{display:grid;gap:9px}.v56-round{display:flex;justify-content:space-between;align-items:center;gap:10px;background:#21354a;padding:12px;border-radius:10px}.v56-round span{font-size:13px;color:#bcd0df}.v56-tournament-buttons{display:flex;gap:8px;flex-wrap:wrap}.v56-tournament-buttons button{flex:1;min-width:120px}.v56-tournamentbar{font-weight:650;font-size:13px}.v56-medal{font-size:32px;text-align:center;display:block}.v56-flash{animation:v56Pulse .38s ease both}.v56-good{outline:2px solid #38d99c}.v56-bad{outline:2px solid #e17c7c}
@keyframes v56Pulse{0%{transform:scale(.98)}70%{transform:scale(1.02)}100%{transform:scale(1)}}
html.v56-no-motion *,html.v56-no-motion *::before,html.v56-no-motion *::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}
@media(prefers-reduced-motion:reduce){.v56-flash{animation:none}}
@media(max-width:380px){.v56-filter-grid{grid-template-columns:1fr}.v56-cardhead{align-items:flex-start}}

/* V5.7 : nouvelles pages mobile-first et notification PWA. */
.v57-panel,.v57-view{background:#142238;border:1px solid #2b5261;border-radius:20px;padding:18px;margin:16px 0}.v57-panelhead{display:flex;align-items:center;justify-content:space-between;gap:8px}.v57-panelhead h2{margin:5px 0}.v57-featureline{background:#1d3b43;border:1px solid #357460;color:#bfffe0;padding:12px;border-radius:12px;font-weight:700}.v57-calendar-head{display:flex;align-items:center;justify-content:space-between}.v57-calendar-head h2{text-transform:capitalize;font-size:18px}.v57-calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:7px;margin:18px 0}.v57-day{min-height:47px;background:#21364b;border:1px solid #496078;color:white;border-radius:10px;font-weight:800}.v57-day.today{border:2px solid #80ffc6}.v57-day.success{background:#146746}.v57-day.failed{background:#693e39}.v57-day:disabled{opacity:.25}.v57-list{display:grid;gap:9px;padding:0;list-style:none}.v57-revenge{background:#21364b;color:white;border:1px solid #42596e;border-radius:12px;padding:15px;text-align:left}.v57-stats-clues{background:#183047;border:1px solid #426c71;border-radius:15px;padding:15px;margin-top:16px}.v57-stat-clue{background:#254d49;border-radius:10px;padding:12px;margin:8px 0;font-weight:800}.v57-audit-link{margin-top:15px}.v57-audit-metrics{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.v57-audit-metrics div{background:#1e3449;border-radius:12px;padding:10px;color:#bcd1e4;font-size:12px}.v57-audit-metrics strong{display:block;font-size:23px;color:#83eebd;margin-top:5px}.v57-update{position:fixed;bottom:83px;left:50%;transform:translateX(-50%);z-index:100;background:#204c43;border:1px solid #71e6b9;color:white;padding:12px 14px;border-radius:14px;display:flex;align-items:center;gap:10px;width:min(94vw,440px);box-shadow:0 9px 40px #000a}.v57-update button{background:#81eac1;color:#062b20;border:0;border-radius:9px;padding:9px 12px;font-weight:900}@media(max-width:420px){.v57-panel,.v57-view{padding:13px}.v57-calendar-grid{gap:4px}.v57-day{min-height:43px;font-size:12px}}
/* ==========================================================
   FOOTBALL MYSTERY V5.8 — unified mobile-first visual system
   Purely visual layer; game rules and storage keys unchanged.
   ========================================================== */
:root{--fm-bg:#08131f;--fm-surface:#132437;--fm-card:#172b3e;--fm-card2:#1b3246;--fm-outline:#2b4557;--fm-muted:#aabccf;--fm-white:#f4fcff;--fm-green:#61e6b1;--fm-deep:#0d4635;--fm-gold:#edc26b;--fm-radius:20px}
html{color-scheme:dark;scroll-padding-top:80px}body{background:radial-gradient(ellipse 1100px 480px at 50% -150px,#173c38,transparent 70%),var(--fm-bg);color:var(--fm-white);font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;font-size:15px;line-height:1.5;-webkit-font-smoothing:antialiased}
button,input,select{font:inherit}button{touch-action:manipulation}input,select{min-height:44px}button:not(:disabled){transition:transform .16s ease,background .16s ease,border-color .16s ease,box-shadow .16s ease}button:not(:disabled):active{transform:scale(.985)}a:focus-visible,button:focus-visible,select:focus-visible,input:focus-visible,summary:focus-visible{outline:3px solid #83ffd4!important;outline-offset:3px}h1,h2,h3{letter-spacing:-.03em;line-height:1.15}p{line-height:1.6}.fine{color:var(--fm-muted);font-size:12px;line-height:1.5}
.v58-skip{position:fixed;left:8px;top:-50px;background:#fff;color:#10253b;z-index:999;padding:10px 16px;border-radius:9px}.v58-skip:focus{top:8px}
.shell{max-width:980px;margin:auto;padding:0 clamp(14px,3.4vw,30px) calc(110px + env(safe-area-inset-bottom))}
.top{height:82px;gap:12px;border-bottom:1px solid #284153;margin-bottom:23px}.brand{flex-shrink:0;gap:10px;letter-spacing:.02em}.brand>span:not(.v58-brand-icon){font-size:12px;line-height:1.18}.brand strong{font-size:16px;color:var(--fm-green)}.v58-brand-icon{width:43px;height:43px;display:grid;place-items:center;border-radius:14px;background:linear-gradient(130deg,#1b7459,#0b3e39);border:1px solid #3fa483;box-shadow:0 5px 18px #0003;font-size:25px}
.top .season{font-size:11px;color:#d8e6ee;background:#1a3040;border:1px solid #2f4a59;border-radius:999px;padding:7px 12px;flex:0 1 auto;white-space:nowrap}.language-select,.install,.quiet{border:1px solid #35556a;background:#1a3144;color:#e4f5ff;border-radius:12px;padding:10px 12px}.language-select{min-width:86px;max-width:130px;font-size:13px}.top .install{white-space:nowrap;font-size:12px}
.view{max-width:none;animation:fade .22s ease}.view>h1{font-size:clamp(28px,5vw,42px);margin:12px 0 13px}.view>h2{font-size:clamp(19px,3vw,24px);margin:25px 0 13px}.view .pill{font-size:10px;border:1px solid #33735b;background:#164737;letter-spacing:.08em;color:#aef6ce;padding:7px 12px}
.hero{position:relative;display:flex;align-items:center;isolation:isolate;min-height:340px;overflow:hidden;background:radial-gradient(circle at 83% 48%,#256f51 0,transparent 40%),linear-gradient(115deg,#0c2b31 0%,#122f3c 46%,#153449 100%);border:1px solid #397866;border-radius:28px;padding:clamp(23px,4vw,42px)!important;margin:0 0 14px;box-shadow:0 16px 45px #02101750}
.hero::before{position:absolute;content:"";inset:0;background:repeating-linear-gradient(110deg,transparent 0 62px,#b4ffe708 62px 63px);pointer-events:none;z-index:-1}.hero-copy{position:relative;z-index:2;max-width:63%}.hero h1{font-size:clamp(34px,5.3vw,57px);line-height:1.05;margin:19px 0 13px;text-wrap:balance;letter-spacing:-.06em}.hero h1 em{color:#89f2ba}.hero p{font-size:clamp(14px,2.1vw,17px);color:#d6eadd;max-width:405px;line-height:1.5;margin:12px 0 0}.hero .pill{background:#d5ffef;color:#094334;border-color:transparent;font-size:10px}.hero-art{position:absolute;top:50%;right:-33px;transform:translateY(-50%);width:48%;pointer-events:none;filter:drop-shadow(0 12px 18px #0004)}.hero-art img{width:100%;height:auto;display:block}.hero .league-icons{gap:9px;margin-top:23px;min-height:40px;align-items:center}.hero .league-icon{width:38px;height:38px;border-radius:11px;border:1px solid #dbffea;background:#effff5;padding:5px;box-shadow:0 4px 11px #001b2340}
.v58-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:0 0 24px}.v58-metric{border:1px solid #2a4756;border-radius:15px;background:linear-gradient(145deg,#162d3e,#101f2e);padding:13px 8px;display:grid;grid-template-columns:auto 1fr;grid-template-rows:auto auto;align-items:center;gap:0 8px}.v58-metric-icon{grid-row:span 2;font-size:22px}.v58-metric-number{font-size:21px;font-weight:850;line-height:1.1;font-variant-numeric:tabular-nums;color:#f7fffd}.v58-metric small{font-size:10px;color:#abbfd0;line-height:1.4}
.difficulty-section{margin:23px 0 27px}.difficulty-section h2{font-size:21px;margin-bottom:13px}.difficulty-grid{gap:12px}.difficulty-grid button{background:linear-gradient(150deg,#172e3e,#132336);border-color:#2c495a;border-radius:17px;min-height:100px;padding:16px 10px;box-shadow:inset 0 1px 0 #fff00006}.difficulty-grid button:hover{border-color:#68d9a8}.difficulty-grid button.active{border:1px solid #60e4ad;background:linear-gradient(165deg,#145345,#173b3b);box-shadow:0 0 0 2px #53f1ad22,inset 0 0 25px #1ca97a10}.difficulty-grid button strong{font-size:17px}.difficulty-grid button small{font-size:11px;color:#b3c6d4;line-height:1.3}.difficulty-grid .difficulty-emoji{font-size:22px}.difficulty-section .fine{margin:10px 0 0;color:#90aebd}
#home>h2{font-size:21px;margin:22px 0 13px}.levelcta{position:relative;border:1px solid #62cda4;background:linear-gradient(110deg,#0c6849,#154c48 57%,#193a46);box-shadow:inset 0 1px 0 #ffffff24,0 7px 26px #001a2026;border-radius:20px;padding:19px 20px;margin-bottom:10px;min-height:90px}.levelcta>span:first-child{background:#ffffff1a;border:1px solid #d6ffee45;border-radius:13px;padding:8px;font-size:29px}.levelcta strong{font-size:20px}.levelcta small{color:#d2f8e9}.levelcta>span:last-child{font-size:25px;color:#cdffe6}.home-level-progress{font-size:12px;color:#a9d1c6;margin:0 0 22px;line-height:1.5}.v57-recommend{display:grid;grid-template-columns:1fr auto;gap:5px 18px;align-items:center;background:linear-gradient(108deg,#183244,#152a3d);border:1px solid #31586b;border-radius:19px;padding:17px 18px;margin:0 0 25px}.v57-recommend .v57-panelhead{grid-column:1;display:flex;justify-content:flex-start;gap:10px}.v57-recommend h2{font-size:16px;margin:0}.v57-recommend .pill{font-size:9px}.v57-recommend>p{grid-column:1;grid-row:2;margin:0}.v57-recommend .v57-featureline{grid-column:1;grid-row:3;margin:1px 0 0;background:transparent;border:0;color:#87e8b9;padding:0;font-size:13px}.v57-recommend>.primary{grid-column:2;grid-row:1/4;width:auto;min-width:150px;margin:0;padding:13px}.primary,.v54-claim,.v54-buy{border-radius:13px;background:linear-gradient(130deg,#84f3c3,#55dca6);color:#09271d;box-shadow:0 4px 16px #1e8f6f20}.primary{min-height:48px;font-weight:850}.primary:disabled{box-shadow:none}
.v58-section-heading{display:flex;align-items:end;justify-content:space-between;gap:14px;margin:27px 0 13px}.v58-section-heading h2{font-size:21px;margin:0}.v58-section-heading p{margin:0}.modes{gap:12px}.modecard{min-height:135px;padding:16px;border-radius:18px;border:1px solid #324e5e;background:linear-gradient(150deg,#192f43,#142538);gap:7px;position:relative;overflow:hidden}.modecard::after{content:"";position:absolute;right:-30px;bottom:-48px;width:110px;height:110px;border-radius:50%;background:radial-gradient(circle,#59eca014,transparent 70%);pointer-events:none}.modecard:hover{border-color:#56d49e;background:#1a3b47}.modecard>span{font-size:26px;display:grid;place-items:center;width:45px;height:45px;background:#ffffff0d;border:1px solid #ffffff19;border-radius:13px}.modecard strong{font-size:16px;line-height:1.2}.modecard small{color:#b4c5d3;line-height:1.35;font-size:11px}.v58-core-modes .modecard{min-height:141px}
.v58-advanced{margin:14px 0 29px;padding:0;background:#112434;border:1px solid #2e4a5d;border-radius:17px}.v58-advanced>summary{list-style:none;display:flex;align-items:center;gap:10px;padding:17px 18px;color:#e7f8fb;cursor:pointer;font-weight:800}.v58-advanced>summary::-webkit-details-marker{display:none}.v58-advanced>summary>small{font-size:11px;color:#adc2d1;font-weight:500;flex:1;text-align:right}.v58-chevron{color:#6fe5b1;font-size:24px;line-height:1;transition:transform .2s}.v58-advanced[open] .v58-chevron{transform:rotate(180deg)}.v58-more-modes{padding:4px 14px 16px}.v58-more-modes .modecard{min-height:124px}.v58-more-modes .modecard>span{font-size:20px;width:36px;height:36px}.v58-more-modes .modecard strong{font-size:14px}
.v54-hub{margin:29px 0 14px}.v54-title h2{font-size:21px;margin:0 0 15px}.wallet-mini{background:#42361f;border:1px solid #6e5c38;color:#f4d897;border-radius:20px;padding:8px 12px}.v54-links button{background:linear-gradient(150deg,#172c3e,#112336);border:1px solid #2e4c5e;border-radius:17px;min-height:116px;padding:15px;gap:6px}.v54-links button:hover{background:#203c4b;border-color:#64ce9e}.v54-links button>span{width:38px;height:38px;display:grid;place-items:center;background:#ffffff12;border-radius:12px;font-size:23px}.v54-links strong{font-size:14px}.v54-links small{font-size:11px}
.v58-settings{margin:20px 0 35px!important;padding:0!important;border:1px solid #2b4759!important;background:#122435!important;border-radius:16px!important}.v58-settings>summary{cursor:pointer;padding:16px 18px;font-weight:750;font-size:14px;list-style:none}.v58-settings>summary::-webkit-details-marker{display:none}.v58-settings .v56-switch,.v58-settings .fine{margin:11px 18px}.v58-settings .fine{padding-bottom:13px}
.navbar{width:min(100%,980px);left:50%;right:auto;transform:translateX(-50%);border:1px solid #304c5b;border-bottom:0;box-shadow:0 -14px 38px #0006;background:#101f30f5;border-radius:20px 20px 0 0;display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:1px;padding:8px max(5px,env(safe-area-inset-right)) calc(8px + env(safe-area-inset-bottom));overflow:visible}.navbar button{font-size:0;display:flex;align-items:center;justify-content:center;gap:3px;padding:8px 2px;min-height:54px;min-width:0;border-radius:12px;color:#92aebf}.navbar button.active{background:#1e4f43;color:#9dffd0}.navbar button:hover{color:#c3fce2}.navbar button span{font-size:10px;line-height:1.1;font-weight:650}.v58-nav-icon{display:grid;place-items:center}.v58-nav-icon svg{width:20px;height:20px;display:block}
.v58-section>h1{font-size:clamp(27px,4.7vw,38px)}.v58-section h2{letter-spacing:-.025em}.v57-view{border-radius:22px;border-color:#2e4c5d;background:linear-gradient(145deg,#14293b,#101f30);margin:8px 0;padding:21px!important}.level-grid{gap:10px}.leveltile{background:#182d40;border:1px solid #345166;border-radius:14px;min-height:70px}.leveltile:hover{box-shadow:0 6px 20px #081c2060}.leveltile.won{background:#145340;border:1px solid #56d6a0}.leveltile strong{font-size:19px}.leveltile small{font-size:10px}.level-leagues,.level-progress,.overall-levels-progress{border-radius:15px}.v58-level-art{height:112px;overflow:hidden;border-radius:16px;border:1px solid #25614f;margin:14px 0 18px;position:relative}.v58-level-art img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.v58-mystery{position:relative;overflow:hidden;border-color:#3e7569;background:radial-gradient(circle at 50% 10%,#28684d,#173545 60%,#132438);padding:23px 18px}.v58-mystery::before{content:"";position:absolute;inset:0;background:url('./assets/pitch-lines.svg') center center/cover no-repeat;opacity:.10;pointer-events:none}.v58-mystery>*{position:relative}.portrait{width:142px;height:142px;border:4px solid #73ebba;box-shadow:0 0 0 8px #54e4a011,0 12px 33px #02192350}.search-section{margin-top:19px}.search-section>label{color:#b4ced8}.searchline{background:#f9fffd;min-height:52px;border:2px solid transparent;box-shadow:0 5px 18px #0002}.searchline:focus-within{border-color:#58e2ad;box-shadow:0 0 0 4px #54edb620}.searchline input{color:#132638}.suggestions{border-radius:15px;box-shadow:0 20px 55px #0009}.suggestion{padding:12px}.hintbutton,.revealbutton{min-height:49px;border-radius:13px}.v56-deduction,.v54-jokers,.v56-search-filters,.v55-career,.v57-stats-clues{background:#152a3d;border:1px solid #305367;border-radius:17px}.v54-jokers,.v56-deduction{margin-top:15px}
.labels,.cells{gap:4px}.labels{font-size:10px;color:#acc3d1}.entry{background:#172a3e;border-color:#304d60;border-radius:13px}.cell{border-radius:9px;min-height:73px}.cell.correct{background:#126b4d}.cell.partial{background:#956b22}.cell.wrong{background:#32475b}.historytop{gap:12px;align-items:center}.historytop small{line-height:1.3}.finish-card,.profile-hero,.profile-panel,.stat-levels,.statsgrid>div,.v54-mission,.v54-product,.analytics-row{border:1px solid #2e4d60;border-radius:19px;background:#152a3c}.profile-hero{background:linear-gradient(125deg,#1b5344,#172f43)}.profile-symbol{background:#215947}.statsgrid{gap:10px}.statsgrid>div{padding:17px}.statsgrid strong{color:#86f0c2;font-size:26px}.recordlist>div{border-radius:13px;background:#182c3f;border-color:#2f4b60}.stat-track,.v54-track,.profile-track{background:#30465a;height:9px}.stat-track>div,.v54-track>div,.profile-track>div{background:linear-gradient(90deg,#24bd8b,#8cf4c6)}
.v58-football-dashboard{display:flex;align-items:center;justify-content:space-between;gap:22px;background:linear-gradient(110deg,#14523f,#173344 78%);border:1px solid #39816a;border-radius:22px;padding:22px 24px;margin:14px 0 19px;overflow:hidden;position:relative}.v58-football-dashboard::before{content:"";position:absolute;inset:0;background:url('./assets/pitch-lines.svg') center/cover;opacity:.13;pointer-events:none}.v58-dash-copy,.v58-ring{position:relative}.v58-dash-copy small{color:#9eecbf;font-weight:850;letter-spacing:.1em;font-size:10px}.v58-dash-copy h2{margin:8px 0 6px;font-size:clamp(23px,4vw,32px)}.v58-dash-copy p{margin:0;color:#cfedde;max-width:330px}.v58-ring{width:130px;height:130px;border-radius:50%;display:grid;place-items:center;flex-shrink:0;background:conic-gradient(#7cf5bf 0%,#224d4d 0%);box-shadow:0 6px 20px #00292055}.v58-ring-inner{width:98px;height:98px;border-radius:50%;background:#0e2d31;display:flex;flex-direction:column;align-items:center;justify-content:center}.v58-ring strong{font-size:27px;color:#fff}.v58-ring span{font-size:10px;color:#a4d1c6}.analytics-row{gap:10px}.analytics-row .v54-track{height:11px}.v54-wallet{background:linear-gradient(110deg,#26513f,#1f3547);border:1px solid #508e73}.album-card{border:1px solid #49866c;background:linear-gradient(135deg,#174b40,#13293b);border-radius:17px}.album-picture{background:linear-gradient(140deg,#236250,#122d48)}.achievement{border-color:#335468;background:#182c3e}.achievement.unlocked{border-color:#bfa167;background:#2b353d}.v57-calendar-grid{gap:6px}.v57-day{min-height:48px;border-radius:11px}.v57-featureline{border-radius:12px}
/* International / RTL support */
html[dir='rtl'] .v58-advanced>summary>small{text-align:left}html[dir='rtl'] .hero-art{right:auto;left:-35px}html[dir='rtl'] .modecard{text-align:right}html[dir='rtl'] .v58-metric{text-align:right}html[dir='rtl'] .v58-ring{direction:ltr}
@media(max-width:740px){.top .season{display:none}.hero{min-height:310px}.hero-copy{max-width:70%}.hero-art{width:53%;right:-65px}.v57-recommend{grid-template-columns:1fr}.v57-recommend>.primary{grid-column:1;grid-row:4;margin-top:8px}.v57-recommend .v57-featureline{max-width:100%}}
@media(max-width:520px){.shell{padding-inline:13px}.top{height:72px;margin-bottom:15px}.brand>span:not(.v58-brand-icon){font-size:10px}.brand strong{font-size:13px}.v58-brand-icon{width:37px;height:37px;font-size:22px}.language-select{min-width:69px;max-width:84px;padding:8px 3px;font-size:12px}.hero{min-height:310px;padding:23px 19px!important;border-radius:22px}.hero h1{font-size:clamp(30px,8vw,39px);line-height:1.05;margin:14px 0}.hero-copy{max-width:100%}.hero p{max-width:230px;font-size:13px;margin:9px 0 0}.hero-art{top:59%;width:72%;right:-105px;opacity:.5}.hero .league-icons{gap:6px;margin-top:22px;max-width:255px}.hero .league-icon{width:33px;height:33px;padding:4px}.v58-metrics{gap:7px;margin-bottom:22px}.v58-metric{padding:11px 6px;gap:0 5px;border-radius:13px}.v58-metric-icon{font-size:16px}.v58-metric-number{font-size:18px}.v58-metric small{font-size:9px}.difficulty-grid{gap:7px}.difficulty-grid button{min-height:102px;padding:10px 5px}.difficulty-grid button strong{font-size:14px}.difficulty-grid button small{font-size:10px}.difficulty-grid .difficulty-emoji{font-size:19px}.v58-section-heading{display:block}.v58-section-heading p{margin-top:5px}.modecard{min-height:127px;padding:13px}.modecard strong{font-size:14px}.modecard small{font-size:10px}.modecard>span{width:39px;height:39px;font-size:22px}.v58-core-modes .modecard{min-height:130px}.v58-more-modes{padding:3px 10px 12px;gap:9px}.v58-more-modes .modecard{min-height:119px}.v54-links button{min-height:111px;padding:13px}.v54-title{flex-wrap:wrap;gap:7px}.v54-title h2{margin-bottom:4px}.wallet-mini{margin-left:auto}.v58-advanced>summary{padding:16px 13px}.v58-advanced>summary>small{font-size:10px}.v57-recommend{padding:15px}.v58-football-dashboard{padding:16px;gap:12px}.v58-ring{width:105px;height:105px}.v58-ring-inner{width:79px;height:79px}.v58-ring strong{font-size:23px}.v58-dash-copy p{font-size:12px}.v58-level-art{height:85px}.navbar{border-radius:16px 16px 0 0}.navbar button{min-height:49px;padding:6px 0}.navbar button span{font-size:9px}.v58-nav-icon svg{width:19px;height:19px}}
@media(max-width:365px){.shell{padding-inline:10px}.brand{gap:6px}.hero-art{right:-118px}.hero h1{font-size:30px}.v58-metric{grid-template-columns:auto 1fr}.v58-metric-icon{font-size:14px}.v58-metric-number{font-size:16px}.v58-metric small{font-size:8px}.difficulty-grid button strong{font-size:13px}.levelcta{padding:14px}.levelcta strong{font-size:17px}.v58-advanced>summary>small{display:none}.v58-advanced>summary .v58-chevron{margin-inline-start:auto}.v58-ring{width:91px;height:91px}.v58-ring-inner{width:70px;height:70px}.v58-ring strong{font-size:20px}}
@media(min-width:1000px){.navbar{width:min(100%,980px)}.hero-art{width:46%;right:2px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;animation-duration:.01ms!important;transition-duration:.01ms!important}}

/* V5.8 league badge: always visible offline even if remote crest unavailable. */
.hero .league-icon{position:relative;display:grid;place-items:center;font-size:11px;font-weight:900;color:#0e5944;background:#f0fff8;line-height:1}.league-logo-image{position:absolute;inset:3px;width:calc(100% - 6px);height:calc(100% - 6px);object-fit:contain;background:#f0fff8;border-radius:6px}.hero .league-logo-image{padding:2px}
.hero .league-logo-image{background:transparent!important}

/* --- FOOTBALL MYSTERY V5.9 : immersive mobile-first interface --- */
:root{--fm59-green:#64f0b0;--fm59-edge:#2a5061;--fm59-panel:#12273a;--fm59-ink:#e9f9f4}
body{background:radial-gradient(ellipse at 50% -160px,#103a36 0,#091826 42%,#080f1d 100%)}
.shell{max-width:990px;padding-bottom:calc(108px + env(safe-area-inset-bottom))}
button:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible{outline:2px solid #9cffe0;outline-offset:3px}
.v59-hero{border-color:#386c67;box-shadow:0 22px 50px #06110f55}
.v59-eyebrow,.v59-overline,.v59-player-card-kicker{color:#8cf5c5;font-size:10px;letter-spacing:.16em;font-weight:900;text-transform:uppercase}
.v59-levels>h1{margin-top:7px}.v59-level-art{border-radius:20px;height:140px}.v59-level-progress{font-weight:800;color:#d4f9e5}
.v59-level-board{background:linear-gradient(150deg,#112e35,#112236);border:1px solid #336a60;border-radius:24px;padding:17px 16px 18px;margin:18px 0;position:relative;overflow:hidden}
.v59-level-board::before{content:"";position:absolute;inset:0;background:url('./assets/pitch-lines.svg') center top/cover;opacity:.065;pointer-events:none}
.v59-board-head,.v59-milestone-legend{position:relative;display:flex;gap:8px;flex-wrap:wrap;justify-content:space-between;align-items:center;font-weight:850;font-size:11px;color:#bfead7;letter-spacing:.03em}.v59-board-completion{font-size:12px;color:#83f3bd}
.v59-track-line{position:absolute;z-index:0;top:80px;bottom:72px;left:50%;width:2px;background:linear-gradient(180deg,transparent,#65f3b93f,transparent);pointer-events:none}
.v59-path-grid{position:relative;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:11px 9px;margin:16px 0 21px}
.v59-path-grid .leveltile{position:relative;min-height:87px;border-radius:18px;background:linear-gradient(150deg,#1b3c4b,#16283b);border:1px solid #3e6170;box-shadow:inset 0 1px #ffffff09,0 8px 18px #06101a50;gap:3px;isolation:isolate;transition:transform .18s,border-color .18s}.v59-path-grid .leveltile::before{content:"";position:absolute;inset:2px;border-radius:15px;border:1px solid #ffffff06;pointer-events:none}
.v59-path-grid .leveltile.won{background:linear-gradient(155deg,#16684b,#114132);border-color:#70eabc}.v59-path-grid .leveltile.ongoing{border-color:#edc971}.v59-path-grid .leveltile.lost{border-color:#b77573}.v59-path-grid .leveltile strong{font-size:21px;line-height:1.05}.v59-path-grid .level-stars{font-size:13px;white-space:nowrap;letter-spacing:0}.v59-path-grid .leveltile small:last-child{font-size:9px;color:#adcad1}
.v59-path-grid .leveltile.v59-milestone{background:linear-gradient(150deg,#354c4a,#163b41);border-color:#dbbc6a;box-shadow:0 5px 18px #b69d1522,inset 0 1px #ffffff15}.v59-milestone-icon{position:absolute;top:-9px;right:-6px;width:24px;height:24px;background:#263d49;border:1px solid #e5c77d;display:grid;place-items:center;border-radius:50%;font-size:12px;z-index:3}.v59-milestone-legend{line-height:1.6;border-top:1px solid #45665b;padding-top:12px;font-size:11px;white-space:normal;color:#d5b979}
.v59-game-head{margin-top:12px}.v59-game-head .pill{font-size:10px;padding:8px 10px;max-width:55%;text-overflow:ellipsis;overflow:hidden;white-space:nowrap}
.v59-arena{background:linear-gradient(180deg,#0b2431ee,#0a332cd9),url('./assets/match-stadium.svg') center top/cover!important;border:1px solid #438875!important;min-height:355px;border-radius:26px!important;padding:17px 17px 22px!important;box-shadow:0 14px 40px #0004}.v59-arena::before{display:none!important}
.v59-arena-top{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-bottom:19px;text-align:start}.v59-arena-meta{font-size:10px;font-weight:850;background:#071f29a6;color:#d9ffed;border:1px solid #418273;padding:7px 10px;border-radius:999px;max-width:56%;text-align:end}
.v59-spotlights{position:absolute!important;width:280px;height:180px;left:50%;top:38px;transform:translateX(-50%);background:radial-gradient(ellipse at center,#84f8bc47,transparent 70%);filter:blur(20px);pointer-events:none}
.v59-player-card{position:relative!important;z-index:1;width:144px;height:160px!important;border-radius:21px 21px 38px 38px!important;background:linear-gradient(155deg,#1f664f,#132c49)!important;border:2px solid #b4f9d3!important;box-shadow:0 0 0 7px #6ef9b013,0 14px 42px #0009!important;font-size:64px!important}.v59-player-card img{border-radius:18px 18px 36px 36px}.v59-player-card::after{content:"";position:absolute;inset:4px;border-radius:18px 18px 34px 34px;border:1px solid #ffffff20;pointer-events:none}
.v59-arena h1{font-size:clamp(21px,4.5vw,29px);margin:11px 0 13px;letter-spacing:.035em}.v59-arena .v55-photo-stage{font-size:10px;color:#bde6d0}.v59-arena .portrait-note{color:#d0e8e0}.v59-arena .attempts{color:#d4eee2;font-size:12px;font-weight:700}.v59-arena .bar{height:5px;background:#25454a;margin-top:10px}.v59-arena .bar>div{background:linear-gradient(90deg,#2ebe8d,#c2ffc9)}
.v59-attempt-track{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:5px;margin-top:13px;direction:ltr}.v59-attempt{height:20px;background:#294d4f;border:1px solid #46736a;border-radius:5px;display:grid;place-items:center;color:#5f9186;font-size:10px;font-weight:900}.v59-attempt.spent{background:#23684e;color:#c7ffe5;border-color:#63d9a2}.v59-attempt.active{outline:2px solid #f2d27a;outline-offset:1px;color:#f9e9b5}
.v59-search-card{padding:18px 16px 16px;background:#132638;border:1px solid #355365;border-radius:20px;margin-top:17px}.v59-search-heading{color:#8ceac2;font-weight:900;font-size:11px;letter-spacing:.1em;display:flex;align-items:center;gap:7px;margin-bottom:13px}.v59-search-ico{width:30px;height:30px;border:1px solid #306b60;background:#164838;border-radius:10px;display:grid;place-items:center;font-size:18px}.v59-search-card>.searchline{margin-top:6px}.v59-search-card .primary{background:linear-gradient(100deg,#41dca2,#9bf8c7);box-shadow:0 10px 25px #38dca521}.v59-search-card .hintbutton{background:#1a4141}.v59-search-card .revealbutton{background:#372e38}
.v59-toolbox{border:1px solid #2d4c5d;background:#112535;border-radius:14px;margin-top:12px}.v59-toolbox-heading{padding:14px 15px;cursor:pointer;font-size:12px;font-weight:800;color:#c8e3e1;list-style:none}.v59-toolbox-heading::after{content:'⌄';float:right}.v59-toolbox[open] .v59-toolbox-heading::after{content:'⌃'}.v59-toolbox-heading::-webkit-details-marker{display:none}.v59-toolbox>.v56-deduction,.v59-toolbox>.v54-jokers{margin:0 9px 10px}.v59-toolbox .fine{color:#b2c1ce}.v59-toolbox .v54-jokers{margin-top:0}
.v59-historyhead{margin-top:27px}.v59-historyhead h2{color:#e3f8ee}.v59-historyhead small{font-size:11px}
.v59-final-card{background:linear-gradient(185deg,#0f423bcc,#101e34ed),url('./assets/player-reveal.svg') center top/cover!important;border:1px solid #80c3a7!important;box-shadow:0 22px 45px #0006!important}.v59-finish-stadium{position:absolute;inset:0;background:url('./assets/match-stadium.svg') center top/cover;opacity:.21;pointer-events:none}.v59-final-card>*:not(.v59-finish-stadium){position:relative;z-index:1}.v59-player-card-kicker{margin:18px 0 12px}.v59-finish-photo{width:175px!important;height:215px!important;border-radius:22px 22px 45px 45px!important;border:3px solid #d1ffe6!important;background:linear-gradient(155deg,#266c51,#182c46)!important;box-shadow:0 0 0 7px #50edac16,0 18px 35px #0008!important}.v59-finish-photo img{object-position:top center;border-radius:17px 17px 40px 40px}.v59-final-card .finish-identity h2{font-size:clamp(24px,6vw,38px);letter-spacing:-.03em}.v59-final-card .finish-stars{font-size:clamp(28px,7vw,41px);letter-spacing:.05em}.v59-final-card .finish-metrics{background:#071f2cb5;border:1px solid #3c7e66;border-radius:16px}.v59-final-card.v59-win{border-color:#e2c876!important}.v59-final-card.v59-win .v59-finish-photo{border-color:#ffe5a0!important;box-shadow:0 0 0 7px #e3bb4c22,0 18px 35px #0008!important}
@keyframes v59Reveal{from{opacity:.15;transform:translateY(15px) scale(.95);filter:brightness(1.7)}to{opacity:1;transform:translateY(0) scale(1);filter:brightness(1)}}.v59-final-card.v59-animate .v59-finish-photo{animation:v59Reveal .78s cubic-bezier(.2,.8,.2,1) both}.v59-final-card.v59-animate .finish-stars{animation:v59Reveal .9s .18s both}
.v59-stats-sub{color:#a9c5ce;font-size:13px;margin:0 0 13px}.v59-charts{margin:22px 0}.v59-chart-head{color:#a8ecca;letter-spacing:.12em;font-size:11px;font-weight:950;margin-bottom:12px}.v59-chart-grid{display:grid;grid-template-columns:1fr 1fr;gap:15px}.v59-chart-card{border:1px solid #315568;border-radius:22px;background:linear-gradient(145deg,#142e41,#102536);padding:20px;min-width:0}.v59-chart-title{font-weight:900;font-size:15px;color:#e8faf5}.v59-chart-desc{font-size:11px;color:#a5bfcc;margin:6px 0 15px}.v59-league-bars{display:grid;gap:13px}.v59-league-label{display:flex;justify-content:space-between;gap:6px;font-size:11px;margin-bottom:6px;color:#b8cbd8}.v59-league-label strong{color:#abf8cc}.v59-league-track{height:11px;border-radius:20px;background:#254255;overflow:hidden}.v59-league-fill{height:100%;background:linear-gradient(90deg,#1dad7b,#9cffe0);border-radius:20px}.v59-form-bars{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));align-items:end;gap:6px;height:122px;border-bottom:1px solid #4d7870;margin-top:12px}.v59-form-col{background:#285063;min-height:3px;border-radius:5px 5px 0 0}.v59-form-col.is-win{background:linear-gradient(0deg,#169d72,#81edb3)}.v59-form-col.is-loss{background:linear-gradient(0deg,#925856,#dd9b8d)}.v59-form-col.is-empty{opacity:.32}.v59-form-summary{padding-top:12px;font-size:11px;color:#a9c8cb;text-align:center}
.v59-home-progress{display:flex;align-items:center;gap:8px;border:1px solid #2d775b;background:linear-gradient(100deg,#114b3a,#143143);border-radius:13px;padding:10px 13px;margin:9px 0 17px}.v59-home-progress-copy{font-size:11px;color:#b8dfd1;font-weight:750}.v59-home-progress>strong{margin-inline-start:auto;color:#8af6be;font-size:19px}.v59-home-progress>#homeLevelsProgress{display:none}.v59-progress-flag{font-size:22px}
html[dir='rtl'] .v59-arena-top,html[dir='rtl'] .v59-league-label{direction:rtl}html[dir='rtl'] .v59-milestone-icon{right:auto;left:-6px}html[dir='rtl'] .v59-chart-grid{direction:rtl}html[dir='rtl'] .v59-form-bars{direction:ltr}
@media(max-width:640px){.v59-chart-grid{grid-template-columns:1fr}.v59-chart-card{padding:18px}.v59-level-board{padding:15px 11px}.v59-path-grid{gap:10px 6px}.v59-path-grid .leveltile{min-height:82px}.v59-historyhead{display:block}.v59-milestone-legend{font-size:10px}}
@media(max-width:380px){.v59-arena{padding:14px 10px 18px!important;min-height:340px}.v59-arena-top{gap:5px}.v59-arena-meta{font-size:9px}.v59-player-card{width:128px;height:147px!important}.v59-path-grid{gap:9px 4px}.v59-path-grid .leveltile{min-height:73px}.v59-path-grid .leveltile strong{font-size:18px}.v59-path-grid .level-stars{font-size:10px}.v59-milestone-icon{width:19px;height:19px;font-size:10px}.v59-search-card{padding:12px 10px}.v59-level-board{padding:12px 8px}.v59-chart-card{padding:15px}}
@media(prefers-reduced-motion:reduce){.v59-final-card .v59-finish-photo,.v59-final-card .finish-stars{animation:none!important}.v59-path-grid .leveltile{transition:none!important}}
html.v56-no-motion .v59-final-card .v59-finish-photo,html.v56-no-motion .v59-final-card .finish-stars{animation:none!important}


/* V5.9.1 — lisibilité des suggestions sur fond clair */
.v59-search-card .searchline input,
.search-section #search {
  color: #111827 !important;
  -webkit-text-fill-color: #111827;
  caret-color: #111827;
}
.search-section #search::placeholder,
.v59-search-card .searchline input::placeholder {
  color: #64748b !important;
  -webkit-text-fill-color: #64748b;
  opacity: 1;
}
.search-section .suggestions,
.search-section .suggestion,
.search-section .suggestion strong,
.search-section .suggestion .position {
  color: #111827 !important;
  -webkit-text-fill-color: #111827;
}
.search-section .suggestion small {
  color: #475569 !important;
  -webkit-text-fill-color: #475569;
}
.search-section .suggestion .position {
  background-color: #e2e8f0;
}
.search-section .suggestion:hover,
.search-section .suggestion:focus-visible {
  background-color: #e6f7ee;
}

/* ===================================================================
 * Football Mystery V6.0 · Historical Career Path Challenge
 * Scoped selectors ensure no color regression in the main search UI.
 * =================================================================== */
.cp-view {padding:18px 16px 100px; max-width:880px; margin:0 auto; color:#ebf3fa}
.cp-backbar {display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:17px}
.cp-pill {color:#c5f4df;border:1px solid #356b5e;border-radius:100px;padding:5px 12px;font-size:12px;font-weight:800;letter-spacing:.08em}
.cp-titlearea {padding:24px 19px;border-radius:20px;background:radial-gradient(ellipse at 90% 25%,#1c6b50 0%,transparent 48%),linear-gradient(145deg,#143448,#0f202d);border:1px solid #296453;margin-bottom:16px}
.cp-eyebrow {font-size:11px;font-weight:800;letter-spacing:.14em;color:#a0edc4}
.cp-titlearea h1 {font-size:clamp(26px,6vw,36px);letter-spacing:-.03em;line-height:1.1;margin:9px 0 8px;color:#fff}
.cp-titlearea p {line-height:1.45;color:#c4d7e7;font-size:14px;margin:0}
.cp-controls {display:grid;grid-template-columns:auto minmax(130px,1fr) auto;align-items:center;gap:10px;margin-bottom:12px}
.cp-controls label {font-size:13px;color:#c0d6e3;font-weight:700}
.cp-controls select {min-width:0;width:100%;background:#f9fbff;color:#182330;border:1px solid #b9ccdb;border-radius:12px;height:44px;padding:0 10px;font-size:14px}
.cp-alt {background:#1a5947;color:#e8fff2;border:1px solid #38856c;border-radius:12px;padding:12px;font-weight:800;min-height:44px}
.cp-stats {display:flex;flex-wrap:wrap;gap:7px;margin:0 0 14px;font-size:12px;color:#c2d3dd}
.cp-stats>span {background:#1a3040;border:1px solid #315161;border-radius:100px;padding:6px 10px}
.cp-error {padding:14px;border-radius:12px;color:#ffe3dd;background:#5d2834;border:1px solid #aa646c}
.cp-table-card {background:#fff;color:#162438;border-radius:16px;overflow:hidden;box-shadow:0 12px 35px #0003;border:1px solid #c8d7e2}
.cp-table-heading {background:#b3c8df;color:#122238;display:flex;align-items:center;justify-content:space-between;padding:15px 17px;text-transform:uppercase;letter-spacing:.045em;font-weight:900;font-size:14px}
.cp-national-heading {justify-content:center}
.cp-table-scroll {overflow-x:auto;overscroll-behavior-x:contain}
.cp-table {border-collapse:collapse;width:100%;min-width:360px;background:white;color:#182336;font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:12px}
.cp-table th {text-align:left;padding:12px 10px 8px;font-family:inherit;color:#1e3448;border-bottom:1px solid #ebeff4}
.cp-table th:first-child,.cp-table td:first-child {padding-left:16px;min-width:87px}
.cp-table th:nth-child(3),.cp-table th:nth-child(4),.cp-table td:nth-child(3),.cp-table td:nth-child(4) {text-align:right;width:45px;white-space:nowrap}
.cp-table th:last-child,.cp-table td:last-child {padding-right:15px}
.cp-table td {padding:7px 10px;white-space:nowrap;vertical-align:top;color:#182638}
.cp-table tbody tr:nth-child(even) {background:#f7f9fc}
.cp-table td.cp-club-name {font-weight:750;letter-spacing:.025em}
.cp-nation {padding:14px 18px;background:#f9fbfd;color:#192b40;font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:14px;font-weight:800;min-height:45px}
.cp-stage {margin:12px 0 7px;color:#b7d2d3;font-size:12px}
.cp-guesses {display:flex;flex-wrap:wrap;gap:7px;margin:7px 0}
.cp-chip {background:#283d53;color:#e3f1f5;padding:6px 10px;border-radius:50px;font-size:12px}
.cp-guess-panel {display:grid;grid-template-columns:minmax(0,1fr) auto;gap:9px;margin-top:14px;align-items:start}
.cp-search-wrap {position:relative;min-width:0}
.cp-view #cpSearch {width:100%;height:50px;padding:10px 13px;font-size:15px;border-radius:10px!important;border:1px solid #b0bfcd!important;background:#fff!important;color:#162335!important;-webkit-text-fill-color:#162335!important;caret-color:#172b3d!important}
.cp-view #cpSearch::placeholder {color:#8798aa!important;opacity:1}
.cp-view #cpSearch:focus {outline:3px solid #81cfac;outline-offset:1px}
.cp-view #cpGuess {height:50px;min-width:87px;padding:10px 12px}
.cp-view #cpGuess:disabled {opacity:.58;cursor:not-allowed}
.cp-suggestions {position:absolute;z-index:100;top:calc(100% + 4px);left:0;right:0;max-height:260px;overflow-y:auto;background:#fff;color:#162638;border:1px solid #b8c9db;border-radius:12px;box-shadow:0 20px 40px #0007}
.cp-suggest-row {background:#fff!important;color:#18293b!important;display:flex;flex-direction:column;gap:3px;padding:10px 14px;width:100%;text-align:left;border:0;border-bottom:1px solid #e9eef4;border-radius:0}
.cp-suggest-row:hover,.cp-suggest-row:focus {background:#e4f4ee!important;color:#0c382b!important}
.cp-suggest-row strong {font-size:13px;color:#152336!important}
.cp-suggest-row small {color:#52667e!important;font-size:11px}
.cp-noresults {padding:14px;color:#485b71}
.cp-skip {width:100%;border:1px solid #d26b78;border-radius:11px;background:#5b2739;color:#ffe6e9;font-weight:850;min-height:45px;margin-top:11px}
.cp-skip:disabled {opacity:.48}
.cp-message {color:#ffd89d;background:#523e22;border-radius:9px;padding:10px 12px;font-size:13px}
.cp-result {margin-top:16px;text-align:center;border:1px solid #2e8a6e;background:linear-gradient(145deg,#174d40,#1b3343);border-radius:18px;padding:24px 16px}
.cp-result-kicker {letter-spacing:.15em;color:#b0eacb;font-size:11px;font-weight:900;text-transform:uppercase}
.cp-result h2 {font-size:22px;color:#fff;margin:9px 0 5px}
.cp-result strong {font-size:24px;display:block;color:#fff;margin:8px 0}
.cp-result p {color:#bfd6e1;font-size:13px;line-height:1.5;overflow-wrap:anywhere}
.cp-result .primary {margin-top:11px}
.cp-disclaimer {color:#a3b7c8;font-size:11px;margin:16px 2px;line-height:1.45}
.cp-mode-card {border-color:#39956e!important;background:linear-gradient(135deg,#173b43,#184733)!important}
.cp-mode-card strong {color:#e8fff6!important}
@media(max-width:440px){.cp-view{padding:14px 12px 105px}.cp-controls{grid-template-columns:1fr 1fr}.cp-controls label{grid-column:1/-1}.cp-controls select,.cp-alt{width:100%}.cp-table{font-size:11px}.cp-table td{padding:8px 6px}.cp-table th{padding:10px 6px}.cp-table th:first-child,.cp-table td:first-child{padding-left:11px;min-width:72px}.cp-guess-panel{grid-template-columns:minmax(0,1fr) 79px;gap:7px}.cp-view #cpGuess{min-width:0;font-size:12px;padding:8px}}
@media(prefers-reduced-motion:reduce){.cp-view *, .cp-view *:before,.cp-view *:after{animation-duration:.01ms!important;transition-duration:.01ms!important}}


/* V6.1 — Mode-first navigation. Keep all original gameplay styles intact. */
#home .v61-legacy{display:none!important}
.v61-view{max-width:1000px;margin:auto;padding:clamp(15px,3vw,29px) 0 86px}
.v61-home-section{margin:clamp(20px,4vw,36px) 0 28px}
.v61-heading{display:flex;gap:12px;align-items:end;justify-content:space-between;margin-bottom:15px}
.v61-heading h2{margin:4px 0 5px;font-size:clamp(1.4rem,3vw,2rem);color:#effff7}
.v61-heading p,.v61-page-hero p,.v61-config-hero p,.v61-fine{color:#a9becf;font-size:.9rem;line-height:1.55;margin:.2rem 0}
.v61-kicker{font-size:.7rem;letter-spacing:.12em;font-weight:800;color:#72efb1}
.v61-outline{flex-shrink:0;border:1px solid #587a80;border-radius:12px;padding:10px 13px;background:rgba(21,40,52,.8);color:#d3fae8;font-weight:700;cursor:pointer}
.v61-mode-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.v61-mode-card{display:flex;align-items:center;text-align:start;gap:13px;border:1px solid #2e4d58;background:linear-gradient(145deg,#162b3d,#112332);min-height:101px;border-radius:18px;padding:16px;cursor:pointer;color:white;box-shadow:0 9px 20px rgba(0,0,0,.11);transition:transform .18s,border-color .18s}
.v61-mode-card:hover,.v61-mode-card:focus-visible{border-color:#7decba;transform:translateY(-2px)}
.v61-mode-icon{display:grid;place-items:center;background:#24463f;border-radius:13px;width:50px;height:50px;flex-shrink:0;font-size:24px}
.v61-mode-card>span:nth-child(2){display:flex;flex-direction:column;min-width:0;gap:5px}
.v61-mode-card strong{font-size:1rem;line-height:1.25;color:#f1fcfa}
.v61-mode-card small{font-size:.78rem;color:#adc5c5;line-height:1.3}
.v61-mode-arrow{color:#9fffd0;margin-inline-start:auto;font-size:27px;flex-shrink:0}
.v61-breadcrumb{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:20px}
.v61-tag{border:1px solid #315460;color:#9fecc7;padding:6px 11px;border-radius:999px;font-size:.67rem;letter-spacing:.09em;font-weight:750}
.v61-page-hero,.v61-config-hero{border:1px solid #2e5f64;border-radius:21px;background:radial-gradient(circle at 90% 0%,#1c6955 0%,#17394a 30%,#102132 75%);padding:clamp(21px,4vw,33px);margin-bottom:20px}
.v61-page-hero h1,.v61-config-hero h1{font-size:clamp(1.7rem,4vw,2.4rem);line-height:1.1;margin:8px 0 10px;color:#effff8}
.v61-config-hero{display:flex;gap:18px;align-items:center}
.v61-large-icon{display:grid;place-items:center;background:#28644d;border:1px solid #66b69d;border-radius:20px;font-size:43px;min-width:92px;height:92px}
.v61-setup-panel,.v61-stage-section{border:1px solid #304f59;background:#142a3b;border-radius:19px;padding:clamp(17px,3vw,25px);margin-bottom:16px}
.v61-setup-panel h2,.v61-stage-section h2{margin:0 0 13px;font-size:1.2rem;color:#f4fff9}
.v61-selector-group h3{font-size:.91rem;font-weight:700;color:#e0f4eb;margin:0 0 8px}
.v61-difficulty-group{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-bottom:18px}
.v61-difficulty{padding:12px 7px;border-radius:12px;background:#233b4c;border:1px solid #466072;color:#dceaf3;font-weight:800;cursor:pointer}
.v61-difficulty.active{color:#061a17;border-color:#9effd3;background:#7cebbc}
.v61-selector-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.v61-select{display:flex;flex-direction:column;gap:7px;color:#e2f5ef;font-weight:700;font-size:.88rem}
.v61-select[hidden],#v61DiffField[hidden],#v61EraField[hidden],#v61LeagueField[hidden]{display:none!important}
.v61-select select{width:100%;background:#f8fbff!important;color:#182d3c!important;border:1px solid #8eb2c6;border-radius:12px;padding:12px;font-size:1rem}
.v61-toggles{display:flex;gap:14px;flex-wrap:wrap;margin:16px 0 8px}
.v61-toggle{display:flex;align-items:center;gap:9px;padding:10px 13px;background:#1b3a47;border:1px solid #3a5c66;border-radius:12px;color:#e5f9f1;font-weight:650}
.v61-toggle input{width:19px;height:19px;accent-color:#56df9e}
.v61-stage-head{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.v61-stage-head small{color:#a3c1ba}
.v61-stage-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;margin-top:12px}
.v61-stage{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;border:1px solid #385b63;background:#1c3b4a;border-radius:13px;min-height:76px;color:#f2fff8;padding:9px 3px;cursor:pointer;transition:border-color .2s,background .2s}
.v61-stage strong{font-size:1.18rem;white-space:nowrap}
.v61-stage small{font-size:.67rem;color:#bfd9d1}
.v61-stage.is-selected{background:#245a46;border:2px solid #7cfdc1;box-shadow:0 0 0 2px #153d31 inset}
.v61-stage.is-won{background:#1b5b47}.v61-stage.is-done{border-color:#85cba6}.v61-stage.v61-milestone{border-color:#d6b468}.v61-stage:disabled{opacity:.45;cursor:not-allowed}
.v61-actionbar{position:sticky;bottom:65px;background:#102232eb;padding:10px;border:1px solid #365762;border-radius:14px;backdrop-filter:blur(12px);z-index:3}
.v61-actionbar button{width:100%;min-height:53px;font-weight:800}
@media(max-width:800px){.v61-mode-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.v61-mode-card{min-height:96px;padding:12px}.v61-mode-icon{width:42px;height:42px;font-size:23px}.v61-mode-arrow{font-size:21px}.v61-view{padding:12px 0 120px}}
@media(max-width:450px){.v61-heading{align-items:start;flex-direction:column}.v61-mode-grid{grid-template-columns:1fr 1fr;gap:9px}.v61-mode-card{padding:11px 9px;gap:8px;min-height:100px;align-items:flex-start;position:relative}.v61-mode-icon{width:35px;height:35px;font-size:20px;border-radius:10px}.v61-mode-arrow{position:absolute;right:9px;bottom:6px}.v61-mode-card strong{font-size:.83rem}.v61-mode-card small{font-size:.69rem;line-height:1.3}.v61-large-icon{min-width:60px;height:60px;font-size:28px}.v61-config-hero{gap:12px}.v61-stage-grid{gap:6px}.v61-stage{min-height:64px;border-radius:9px}.v61-stage strong{font-size:1rem}.v61-stage small{font-size:.57rem}.v61-tag{font-size:.58rem}.v61-select{font-size:.82rem}.v61-selector-row{grid-template-columns:1fr}.v61-difficulty{font-size:.82rem}.v61-actionbar{bottom:74px}}
[dir="rtl"] .v61-mode-arrow{transform:rotate(180deg)}

.v61-month-tools{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:14px 0 6px;background:#1c3646;border:1px solid #365563;border-radius:12px;padding:5px 8px;color:#eafcf4}
.v61-month-tools[hidden]{display:none!important}
.v61-month-tools button{border:1px solid #416879;border-radius:9px;background:#274a59;color:white;font-weight:800;font-size:1.3rem;min-width:42px;min-height:38px;cursor:pointer}
/* Keep the level grid fully readable: action follows the grid rather than overlaying it. */
.v61-actionbar{position:relative;bottom:auto;z-index:auto;backdrop-filter:none;margin-top:14px}


/* V6.2 — Career path: score, progressive club reveal and last nationality clue */
.cp-scoreboard {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:14px 0 9px}
.cp-scoreboard>div {background:#1d3547;border:1px solid #3a6070;border-radius:12px;padding:10px 13px;display:flex;flex-direction:column;gap:4px}
.cp-scoreboard small {color:#b8ced8;font-size:11px;font-weight:650}
.cp-scoreboard strong {color:#80ecc0;font-size:20px;font-weight:850;font-variant-numeric:tabular-nums}
.cp-concealed td {color:#758296!important;background:#f2f5f9}
.cp-concealed td.cp-club-name {color:#59697d!important;font-weight:600;letter-spacing:.02em}
.cp-disclosed td.cp-club-name {color:#134534!important}
.cp-nation {transition:background .2s ease,color .2s ease}
.cp-nation-open {background:#e5f7ed;color:#13563c}
.cp-reveal-area {margin:10px 0 2px;display:flex;flex-direction:column;gap:5px}
.cp-reveal {width:100%;min-height:47px;border:1px solid #66ba9b;border-radius:11px;background:#174d43;color:#f0fff9;font-size:14px;font-weight:850;display:flex;justify-content:center;align-items:center;gap:8px;cursor:pointer}
.cp-reveal:hover:not(:disabled),.cp-reveal:focus-visible {background:#1c6853;outline:2px solid #81d8b7;outline-offset:2px}
.cp-reveal:disabled {opacity:.50;cursor:not-allowed}
.cp-reveal-area small {font-size:11px;text-align:center;color:#b9d3c9}
@media(max-width:360px){.cp-scoreboard{gap:7px}.cp-scoreboard strong{font-size:17px}.cp-reveal{font-size:12px}}

.cp-table .cp-national-row th,.cp-table .cp-national-row td {white-space:normal!important;padding:13px 12px!important;border-top:2px solid #9db8cf;vertical-align:middle}
.cp-table .cp-national-row th {width:90px;max-width:125px;background:#b3c8df;color:#15283c;font-family:inherit;line-height:1.25}
.cp-table .cp-national-row td {text-align:left!important;font-size:12px;letter-spacing:0}

/* Football Mystery V6.3 — affichage grand catalogue historique */
.cp-catalog-info{margin:8px 0 13px;padding:11px 14px;background:#183b35;border:1px solid #3e806e;border-radius:12px;color:#dbffeb;font-size:12px;line-height:1.5;overflow-wrap:anywhere}
.cp-suggestions{overscroll-behavior:contain;scrollbar-width:thin}
.cp-suggest-row{min-height:49px;touch-action:manipulation}
@media(max-width:390px){.cp-catalog-info{font-size:11px;padding:9px 11px}}
