
:root{--navy:#0b152d;--ink:#13244a;--muted:#70819e;--gold:#ffae37;--orange:#f8872b;--green:#11bb8b;--line:#e9e9ee;--cream:#fff9f1;--blue:#5368c7;--radius:22px}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;font-family:"Avenir Next","Segoe UI",system-ui,Arial,sans-serif;background:#fafbfd;color:var(--ink)}button,input{font:inherit}button{cursor:pointer}button:focus-visible,input:focus-visible,a:focus-visible{outline:3px solid #ffbb46;outline-offset:3px}button:disabled{opacity:.42;cursor:not-allowed}a{text-decoration:none;color:inherit}.shell{max-width:1220px;margin:auto;padding:0 26px}.topbar{height:76px;background:#fff;display:flex;align-items:center;position:sticky;top:0;z-index:50;border-bottom:1px solid #f1f2f5;box-shadow:0 2px 30px #10204405}.navwrap{display:flex;align-items:center;gap:30px;width:100%;justify-content:space-between}.brand{display:flex;align-items:center;gap:11px;font-family:"Avenir Next","Segoe UI",system-ui,sans-serif;font-weight:900;letter-spacing:-1px;font-size:25px;white-space:nowrap;color:#10254c}.brand b{color:#f7942e}.brandmark{width:42px;height:42px;display:grid;place-items:center;background:#ffad34;color:#121f3d;border-radius:13px;transform:rotate(-8deg);font-size:25px;box-shadow:0 6px 16px #f7942e45}.brandmark span{transform:rotate(8deg)}.links{display:flex;align-items:center;gap:8px}.navlink{border:0;background:transparent;color:#67748d;border-radius:12px;padding:12px 16px;font-size:14px;font-weight:800;transition:.2s}.navlink:hover,.navlink.active{background:#fff4e7;color:#e98019}.navright{display:flex;align-items:center;gap:11px}.pill{border:1px solid #e6e9f1;border-radius:999px;padding:10px 17px;background:white;color:#233454;font-weight:800;font-size:13px}.primary{background:linear-gradient(110deg,#ffc24b,#f99129);color:#162644;border:0;box-shadow:0 8px 20px #f7a14332;padding:13px 22px;border-radius:13px;font-weight:900;transition:transform .18s,box-shadow .18s}.primary:hover{transform:translateY(-2px);box-shadow:0 10px 22px #f7a14355}.ghost{background:#fff;border:1px solid #e9ebef;color:#172a4f;border-radius:13px;padding:12px 18px;font-weight:800}.hero{margin-top:26px;position:relative;overflow:hidden;min-height:394px;border-radius:30px;background:linear-gradient(112deg,#0b1e44 0%,#17244d 50%,#2b355c 77%,#ad614c 100%);display:grid;grid-template-columns:1.05fr .95fr;isolation:isolate;box-shadow:0 16px 44px #12244a23}.hero:before{content:"";position:absolute;inset:0;background:radial-gradient(circle at 78% 72%,#ffc05a90,transparent 32%),radial-gradient(circle at 8% 95%,#5d39ae60,transparent 36%);z-index:-1}.hero:after{content:"";position:absolute;width:270px;height:270px;right:-56px;top:-75px;border:54px solid #ffffff0a;border-radius:50%;z-index:-1}.herocopy{padding:52px 0 48px 58px;color:white;align-self:center}.eyebrow{display:inline-flex;gap:8px;align-items:center;background:#ffffff14;border:1px solid #ffffff29;color:#ffe2a5;border-radius:50px;padding:8px 13px;font-size:11px;font-weight:800;letter-spacing:1.1px;text-transform:uppercase}.hero h1{font:900 clamp(34px,4vw,56px)/1.07 "Avenir Next","Segoe UI",system-ui,sans-serif;letter-spacing:-1.8px;margin:20px 0 15px;max-width:565px}.hero h1 em{font-style:normal;color:#ffbd55}.hero p{font-size:15px;line-height:1.8;color:#e3eaf7;max-width:420px}.heroactions{display:flex;gap:12px;flex-wrap:wrap;margin-top:25px}.secondaryDark{border:1px solid #ffffff60;color:white;background:#ffffff13;border-radius:13px;padding:13px 20px;font-weight:800}.herovis{display:flex;align-items:center;justify-content:center;position:relative;min-height:370px}.orbs{position:absolute;inset:0;background:radial-gradient(circle at 63% 35%,#ffca6761,transparent 44%)}.device{width:230px;height:329px;border:8px solid #111829;border-radius:36px;background:#fbf9f3;box-shadow:0 24px 35px #0007;transform:rotate(8deg);position:absolute;top:35px;right:26%;overflow:hidden}.device .minihead{background:#112147;color:#fff;padding:18px 13px;font:800 14px Outfit}.device .minihead b{color:#ffb03d}.miniboard{display:grid;grid-template-columns:repeat(7,1fr);grid-template-rows:repeat(7,1fr);height:193px;width:193px;margin:20px auto 0;background:#faf7ed;border:3px solid #e9decf;border-radius:14px;overflow:hidden;gap:2px}.miniboard i{background:#e9e4da}.miniboard i:nth-child(4n){background:#64c2a5}.miniboard i:nth-child(7n){background:#ffb34d}.miniboard i:nth-child(11n){background:#ee8480}.miniboard i:nth-child(13n){background:#728de3}.dice{position:absolute;left:21%;bottom:43px;width:104px;height:104px;background:#fff;transform:rotate(-15deg);border-radius:21px;box-shadow:0 14px 24px #0006;display:grid;grid-template-columns:repeat(3,1fr);padding:17px;gap:7px;z-index:3}.dice i{width:15px;height:15px;border-radius:50%;background:#172449}.chip{position:absolute;border-radius:50%;width:63px;height:63px;box-shadow:0 7px 15px #0007, inset 0 5px 8px #ffffff80;border:6px solid #ffffff8f}.chip.red{right:10%;bottom:48px;background:#f56e5f}.chip.blue{right:45%;top:20px;background:#3984e1}.chip.green{right:7%;top:110px;background:#39bba5}.spark{position:absolute;font-size:35px;top:28px;right:10%;color:#ffbd48}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-top:23px}.stat{background:#fff;border:1px solid #eef0f5;border-radius:18px;padding:18px;display:flex;gap:13px;align-items:center}.statIcon{width:42px;height:42px;display:grid;place-items:center;background:#f7f3ff;border-radius:12px;font-size:22px}.stat b{display:block;font:800 17px Outfit}.stat small{display:block;color:#72809a;font-size:12px;margin-top:3px}.section{margin-top:42px}.sectionhead{display:flex;align-items:end;justify-content:space-between;gap:15px;margin-bottom:20px}.sectionhead h2{font:800 clamp(24px,2.6vw,31px) "Avenir Next","Segoe UI",system-ui,sans-serif;margin:0;letter-spacing:-.7px}.sectionhead p{margin:7px 0 0;color:#7c879c;font-size:14px}.viewall{border:0;background:none;color:#f08622;font-weight:900;font-size:13px}.filters{display:flex;gap:9px;align-items:center;flex-wrap:wrap;margin-bottom:19px}.filter{padding:10px 16px;background:#fff;border:1px solid #ebedf2;border-radius:12px;font-weight:800;color:#596880;font-size:13px}.filter.selected{background:#132448;color:white;border-color:#132448}.search{margin-left:auto;display:flex;align-items:center;gap:7px;padding:0 14px;border:1px solid #e5e8ef;background:white;border-radius:13px;color:#9da8ba}.search input{border:0;outline:0;padding:12px 0;width:175px;background:transparent;color:#14274a;font-size:13px}.games{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:19px}.game{background:white;border:1px solid #eceef2;border-radius:20px;overflow:hidden;position:relative;transition:transform .2s,box-shadow .2s}.game:hover{transform:translateY(-5px);box-shadow:0 16px 32px #14274713}.art{height:168px;display:flex;align-items:center;justify-content:center;position:relative;overflow:hidden}.art:before{content:"";position:absolute;width:240px;height:240px;border-radius:50%;right:-100px;top:-120px;background:#ffffff31}.art:after{content:"";position:absolute;width:180px;height:180px;border:1px solid #ffffff3b;border-radius:25%;left:-60px;bottom:-140px;transform:rotate(30deg)}.art.ludo{background:linear-gradient(120deg,#287a9e,#27b7b4)}.art.cartes{background:linear-gradient(120deg,#673cc5,#ae69ce)}.art.damiers{background:linear-gradient(120deg,#d77c46,#f1bb75)}.art.oware{background:linear-gradient(120deg,#1b876c,#5ac17d)}.art.memoire{background:linear-gradient(120deg,#e484aa,#bf5ab1)}.art.quiz{background:linear-gradient(120deg,#4462c9,#829fed)}.art .emoji{font-size:79px;filter:drop-shadow(0 10px 9px #0003);z-index:2}.art .bigcoin{font-size:78px;z-index:2;letter-spacing:-15px;filter:drop-shadow(0 9px 8px #0002)}.gamebody{padding:19px}.gametop{display:flex;align-items:center;justify-content:space-between}.tag{font-size:10px;text-transform:uppercase;letter-spacing:.65px;font-weight:900;color:#1f9c77;background:#e6f9f0;border-radius:8px;padding:6px 8px}.tag.soon{color:#a77923;background:#fff4d6}.fav{border:0;background:#f7f8fa;border-radius:9px;width:32px;height:32px;font-size:19px;color:#8793a8}.fav.on{color:#ec605c;background:#fff0ef}.game h3{font:800 21px Outfit;margin:10px 0 5px;letter-spacing:-.3px}.game p{font-size:13px;color:#7a869a;line-height:1.5;min-height:38px;margin:0 0 12px}.metas{display:flex;gap:12px;color:#66758a;font-size:11px;font-weight:700;flex-wrap:wrap;margin-bottom:16px}.gamefoot{display:flex;align-items:center;justify-content:space-between}.play{padding:10px 17px;border:none;border-radius:11px;background:#10264e;color:white;font-size:12px;font-weight:900}.play:hover{background:#f5912e;color:#16254a}.free{font-size:12px;color:#119973;font-weight:900}.wide{display:grid;grid-template-columns:1.3fr .7fr;gap:20px}.promo{margin-top:44px;background:#15274c;border-radius:23px;display:grid;grid-template-columns:1.2fr .8fr;align-items:center;min-height:230px;overflow:hidden;color:#fff;position:relative}.promo:before{content:"";position:absolute;right:-100px;bottom:-240px;width:490px;height:490px;border-radius:50%;background:#f5a54435}.promocopy{padding:33px 40px;position:relative;z-index:2}.promo h2{font:850 28px Outfit;margin:9px 0}.promo p{max-width:460px;font-size:14px;color:#d7ddeb;line-height:1.7}.promo .illustration{font-size:96px;text-align:center;z-index:2;filter:drop-shadow(0 15px 10px #0003)}.highlights{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-top:20px}.highlight{background:#fff;padding:25px;border:1px solid #eff0f4;border-radius:18px}.highlight i{font-style:normal;font-size:27px}.highlight h3{font:800 17px Outfit;margin:14px 0 5px}.highlight p{font-size:13px;line-height:1.7;color:#7c899b;margin:0}.footer{background:#0f1f41;color:#b5c1d8;margin-top:64px;padding:30px 0}.footrow{display:flex;justify-content:space-between;gap:20px;align-items:center}.footer .brand{color:#fff}.footer p{font-size:12px}.footlinks{display:flex;gap:20px;font-size:12px}.empty{background:#fff;border:1px dashed #d7dce6;border-radius:18px;padding:45px;text-align:center;grid-column:1/-1;color:#758199}.overlay{position:fixed;inset:0;background:#07132cbb;z-index:100;display:flex;align-items:center;justify-content:center;padding:16px;backdrop-filter:blur(7px)}.dialog{width:min(860px,100%);max-height:min(92vh,900px);background:#fff;border-radius:25px;overflow:auto;box-shadow:0 40px 130px #0005}.dlghead{background:#122349;color:white;padding:19px 25px;display:flex;align-items:center;justify-content:space-between}.dlghead strong{font:800 22px Outfit}.iconbutton{background:#ffffff19;color:white;border:1px solid #ffffff20;border-radius:10px;font-size:23px;width:38px;height:38px}.dlgbody{padding:24px}.gamemodebar{display:flex;align-items:center;gap:12px;flex-wrap:wrap;justify-content:space-between;margin-bottom:14px}.scorechip{background:#f6f7f9;padding:9px 13px;border-radius:11px;font-size:13px;font-weight:800}.hint{font-size:13px;color:#687b95;line-height:1.6}.btnrow{display:flex;gap:10px;flex-wrap:wrap;align-items:center;margin-top:16px}.small{padding:10px 14px;font-size:12px}.checkersboard{display:grid;grid-template-columns:repeat(8,1fr);width:min(480px,100%);aspect-ratio:1;margin:15px auto;border:9px solid #593925;box-shadow:0 16px 24px #15254e25;border-radius:11px;overflow:hidden}.sq{position:relative;display:grid;place-items:center;border:0;border-radius:0;padding:0;min-width:0}.sq.light{background:#f7dab0}.sq.dark{background:#98674f}.sq.selected{background:#f4c65f}.sq.target:after{content:"";background:#ffffff70;border-radius:50%;width:19px;height:19px;position:absolute}.piece{width:73%;height:73%;border-radius:50%;box-shadow:0 5px 5px #0004,inset 0 4px #ffffff6b;border:4px solid #ffffff44;z-index:2}.piece.one{background:#f5a53c}.piece.two{background:#203c76}.piece.king:after{content:"♛";display:grid;place-items:center;color:#fff;font-size:24px}.pitboard{background:#9a5b31;border:12px solid #784322;box-shadow:0 16px 25px #6c3e2733,inset 0 4px #e9b37a;border-radius:95px;padding:28px 18px;display:grid;grid-template-columns:repeat(6,1fr);gap:12px;max-width:740px;margin:15px auto}.pit{border:0;border-radius:50%;aspect-ratio:1;background:radial-gradient(circle at 35% 35%,#6e371c,#40220f);color:#f6cf81;box-shadow:inset 0 8px 12px #1e1009,0 2px #c18a53;font:800 clamp(15px,3vw,26px) Outfit}.pit:disabled{opacity:1;cursor:default}.pit.clickable:hover{outline:4px solid #ffcd68}.pit small{display:block;font-size:9px;color:#e0c299}.stores{display:flex;justify-content:space-around;font-weight:900;color:#31405b;margin:13px auto;gap:12px}.memoryboard{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;max-width:520px;margin:20px auto}.mem{aspect-ratio:1;border:0;border-radius:13px;background:linear-gradient(135deg,#172c59,#4a50ac);font-size:32px;color:white;box-shadow:0 7px 14px #1a2b5522}.mem.up{background:#f4f4f8}.mem.matched{background:#def6eb}.question{padding:18px 5px;text-align:center;font:800 24px/1.4 Outfit}.answers{display:grid;grid-template-columns:1fr 1fr;gap:12px;max-width:640px;margin:auto}.answer{border:1px solid #e6e9f0;background:#f8fafc;border-radius:13px;padding:19px;color:#213254;font-weight:800}.answer.correct{background:#bdf4d9;border-color:#4ac48c}.answer.wrong{background:#ffe1dd;border-color:#ed8e7e}.ludo-track{display:grid;grid-template-columns:repeat(7,1fr);gap:6px;max-width:520px;margin:20px auto;padding:12px;background:#ecf0f4;border-radius:18px}.trackcell{aspect-ratio:1;border-radius:9px;background:#fff;display:grid;place-items:center;font-weight:800;font-size:12px;position:relative}.trackcell.safe{background:#e6f5e9}.trackcell.start{outline:3px solid #ffc14d}.token{display:inline-grid;place-items:center;width:22px;height:22px;border-radius:50%;font-size:12px;color:white;border:2px solid #ffffffb8;box-shadow:0 2px 4px #0002}.token.a{background:#f59d30}.token.b{background:#365eb7}.token.c{background:#11a984}.token.d{background:#d96a72}.tokenpick{padding:12px;background:white;border:2px solid #dce1e8;border-radius:12px}.tokenpick.chosen{border-color:#f49b30}.statusline{text-align:center;font-weight:900;font:800 17px Outfit;color:#18315a;min-height:24px;margin:15px 0}.gamecard{max-width:800px;margin:0 auto}.quizprogress{color:#8793a8;text-align:center;font-size:12px;font-weight:900}.cardhand{display:flex;gap:9px;flex-wrap:wrap;justify-content:center;margin:17px auto}.colorcard{min-height:96px;min-width:68px;border:5px solid white;border-radius:13px;color:white;font:900 28px Outfit;box-shadow:0 5px 14px #0002;display:grid;place-items:center}.colorcard.red{background:#f26b60}.colorcard.blue{background:#498deb}.colorcard.green{background:#30bda2}.colorcard.yellow{background:#e9ad35}.colorcard.activecard{transform:translateY(-12px)}.notice{color:#8794a6;font-size:12px;margin:12px 0}.toast{position:fixed;bottom:22px;left:50%;transform:translateX(-50%);background:#102447;color:white;padding:14px 20px;border-radius:14px;box-shadow:0 14px 35px #0003;z-index:200;font-size:13px;font-weight:800}.bottomnav{display:none}.boardnote{border-radius:13px;background:#f3f6fa;padding:12px 15px;font-size:13px;color:#52627b;line-height:1.6}.ranking{margin:14px 0}.rankrow{display:flex;align-items:center;gap:16px;padding:15px;border:1px solid #eef0f3;border-radius:13px;background:#fff;margin:8px 0}.rankrow span{color:#e28a27;font-weight:900}.rankrow strong{flex:1}.mobile-only{display:none}
@media(max-width:850px){.shell{padding:0 17px}.links{display:none}.topbar{height:64px}.navright .pill{display:none}.brand{font-size:21px}.brandmark{width:36px;height:36px;font-size:22px}.hero{min-height:330px;grid-template-columns:1fr .56fr}.herocopy{padding:30px 0 30px 30px}.hero h1{font-size:36px}.device{right:5%;width:160px;height:240px;border-radius:27px}.miniboard{width:133px;height:133px}.dice{left:5%;width:64px;height:64px;padding:9px;gap:3px}.dice i{width:9px;height:9px}.chip{width:43px;height:43px}.stats{grid-template-columns:repeat(2,1fr)}.games{grid-template-columns:repeat(2,1fr)}}
@media(max-width:600px){body{padding-bottom:64px}.topbar{height:61px}.navright .primary{padding:9px 12px;font-size:12px}.hero{margin-top:14px;display:block;min-height:440px}.herocopy{padding:27px 25px 0;position:relative;z-index:4}.hero h1{font-size:35px;margin-top:14px}.hero p{font-size:13px;max-width:310px;margin:0}.heroactions{margin-top:17px}.herovis{min-height:155px;position:absolute;right:0;bottom:0;width:65%}.device{top:auto;bottom:-60px;right:9%;width:130px;height:194px;transform:rotate(14deg);border-width:5px}.device .minihead{padding:10px;font-size:10px}.miniboard{height:116px;width:116px;margin:13px auto}.dice{left:14%;bottom:28px}.chip.red{bottom:14px}.chip.blue{top:5px}.stats{gap:8px;margin-top:13px}.stat{padding:12px;gap:7px;border-radius:14px}.statIcon{width:34px;height:34px;font-size:18px}.stat b{font-size:12px}.stat small{font-size:10px}.section{margin-top:34px}.sectionhead{margin-bottom:15px}.sectionhead h2{font-size:23px}.sectionhead p{font-size:12px}.filters{gap:6px;flex-wrap:nowrap;overflow:auto;padding-bottom:5px}.filter{white-space:nowrap;padding:9px 11px;font-size:12px}.search{margin:10px 0 16px;width:100%}.search input{width:100%}.games{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.art{height:118px}.art .emoji,.art .bigcoin{font-size:54px}.gamebody{padding:12px}.game h3{font-size:18px}.game p{font-size:11px;min-height:45px}.metas{font-size:10px;gap:7px}.tag{font-size:9px}.gamefoot{gap:5px}.play{padding:9px 12px}.promo{display:block;margin-top:30px}.promocopy{padding:26px}.promo .illustration{position:absolute;right:20px;bottom:15px;font-size:52px}.promo h2{font-size:24px}.promo p{max-width:260px}.highlights{grid-template-columns:1fr}.highlight{padding:20px}.footer{margin-top:36px}.footrow{flex-direction:column;align-items:flex-start}.bottomnav{display:grid;grid-template-columns:repeat(4,1fr);position:fixed;bottom:0;left:0;right:0;z-index:70;background:#fff;border-top:1px solid #e9ebf1;padding:7px 4px max(7px,env(safe-area-inset-bottom))}.bottomnav button{border:0;background:none;font-size:10px;color:#75819a;font-weight:800;display:grid;justify-items:center;gap:2px}.bottomnav button span{font-size:20px}.bottomnav button.sel{color:#e88c24}.dlgbody{padding:15px}.dlghead{padding:12px 17px}.dlghead strong{font-size:18px}.pitboard{padding:15px 8px;gap:5px;border-radius:50px;border-width:8px}.answers{grid-template-columns:1fr}.answer{padding:14px}.checkersboard{border-width:5px}.piece{border-width:2px}.gamecard{width:100%}.trackcell{font-size:9px}.ludo-track{gap:3px;padding:6px}.token{width:15px;height:15px;font-size:9px}.mobile-only{display:block}.footer{padding-bottom:20px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important;animation:none!important}}

/* Illustrations originales : chaque carte possède un visuel SVG local sans marque tierce. */
.art img{position:relative;width:100%;height:100%;object-fit:cover;display:block;z-index:2;transition:transform .35s ease}
.game:hover .art img{transform:scale(1.045)}
.art:before,.art:after{pointer-events:none;z-index:3}
.domino-chain{display:flex;align-items:center;justify-content:center;gap:2px;flex-wrap:wrap;min-height:117px;background:linear-gradient(135deg,#eef8f8,#f7faf9);border:1px solid #dfeded;padding:19px 12px;border-radius:20px;margin:15px 0}
.domino-hand{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:9px;margin:17px 0}
.domino-control{padding:0;border:2px solid transparent;background:none;border-radius:14px;transition:transform .15s}
.domino-control:hover:not(:disabled){transform:translateY(-5px)}
.domino-control:focus-visible{border-color:#faab41;outline:3px solid #faab4155}
.domino-tile{width:53px;height:82px;display:flex;flex-direction:column;background:white;color:#1e315b;border:3px solid #ecf0f3;border-radius:10px;box-shadow:0 5px 12px #20315015;overflow:hidden;font:900 22px "Avenir Next","Segoe UI",system-ui,sans-serif}
.domino-tile span{flex:1;display:grid;place-items:center}
.domino-tile span:first-child{border-bottom:2px solid #d9dfe7}
.morpion-board{width:min(385px,100%);display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:24px auto;padding:11px;border-radius:23px;background:#e9ecf5}
.morpion-cell{aspect-ratio:1;border:0;border-radius:16px;background:#fff;color:#142c61;font:900 clamp(40px,7vw,78px) "Avenir Next","Segoe UI",system-ui,sans-serif;box-shadow:0 2px 5px #1a2b3a13}
.morpion-cell.mark-x{color:#f1952e}.morpion-cell.mark-o{color:#209a93}.morpion-cell:disabled{opacity:1}
.morpion-cell:focus-visible{outline:4px solid #ffbe58}
[hidden]{display:none!important}
.section[id]{scroll-margin-top:100px}
@media(max-width:600px){.heroactions{gap:8px}.secondaryDark{padding:10px 13px;font-size:12px}.domino-tile{width:42px;height:65px;font-size:18px}.domino-chain{padding:10px 6px}.domino-hand{gap:5px}}


/* Ludo compétition locale : plateau traditionnel 15×15, contrastes et mode tactile */
.ludo-modes{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:8px;margin:5px 0 18px}
.ludo-mode{border:1px solid #dfe4f0;border-radius:999px;padding:10px 15px;font-weight:800;font-size:12px;background:#f8fafc;color:#203458}
.ludo-mode.current{background:#17294f;color:white;border-color:#17294f}
.ludo-topline{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:14px;margin-bottom:10px}
.ludo-scoreboard{display:flex;flex-wrap:wrap;gap:7px}
.ludo-score{border:2px solid transparent;background:#f5f7fa;padding:7px 11px;border-radius:11px;font-size:12px;color:#253454;font-weight:700}
.ludo-score.playing{border-color:#ffb044;box-shadow:0 3px 13px #ffaf392c}
.ludo-score.p0{background:#fff0d6}.ludo-score.p1{background:#dff8e9}
.ludo-score.p2{background:#e2efff}.ludo-score.p3{background:#ffe6ef}
.ludo-board{width:min(540px,100%);aspect-ratio:1;margin:12px auto;display:grid;grid-template-columns:repeat(15,minmax(0,1fr));grid-template-rows:repeat(15,minmax(0,1fr));gap:1px;background:#c8d0d9;padding:5px;border:2px solid #dce3ed;border-radius:13px;box-shadow:0 14px 32px #192b4e24;overflow:hidden}
.ludocell{display:flex;align-items:center;justify-content:center;background:#fff;position:relative;min-width:0;min-height:0;font-size:13px;font-weight:900;color:#bdc6d2}
.ludocell.homebase{background:#f1f1f5}.ludocell.base0{background:#ffe0ac}.ludocell.base1{background:#c6f0d5}
.ludocell.base2{background:#cce3ff}.ludocell.base3{background:#f9cfe0}
.ludocell.path{background:#fff}.ludocell.path.protected{color:#da941e;background:#fff4cd}.ludocell.path.beginning{background:#fee8c6;outline:1px solid #ffd28e;outline-offset:-1px}
.ludocell.lane0{background:#ffc363}.ludocell.lane1{background:#80d4a8}
.ludocell.lane2{background:#84b9f7}.ludocell.lane3{background:#eca9c3}
.ludocell.centre{background:conic-gradient(#a9d7e8 0 25%,#f5e3aa 0 50%,#eea6bd 0 75%,#80d1ab 0);color:white}
.ludopiece{width:clamp(15px,3vw,26px);height:clamp(15px,3vw,26px);border-radius:50%;border:2px solid #fff;display:grid;place-items:center;position:relative;z-index:2;color:#fff;font:900 clamp(8px,1.5vw,13px) "Avenir Next","Segoe UI",system-ui,sans-serif;box-shadow:0 2px 5px #17294755;flex-shrink:0;transition:transform .12s ease}
.ludopiece.p0,.ludo-pawn-choice.p0{background:#e78d16}.ludopiece.p1,.ludo-pawn-choice.p1{background:#139865}
.ludopiece.p2,.ludo-pawn-choice.p2{background:#3372c7}.ludopiece.p3,.ludo-pawn-choice.p3{background:#d36591}
.ludopiece:disabled{opacity:1;cursor:default}
.ludopiece.ready{outline:3px solid #ffbf48;outline-offset:2px;cursor:pointer;animation:pawnpulse 1.3s ease-in-out infinite}
.ludopiece.mini{width:65%;height:65%}.ludocell:has(.ludopiece:nth-child(2)) .ludopiece{width:45%;height:65%;font-size:9px}
@keyframes pawnpulse{50%{transform:translateY(-3px);box-shadow:0 0 0 5px #ffcd6b50}}
.ludo-toolbar{display:flex;align-items:center;justify-content:center;gap:18px;margin:12px 0 16px}
.ludo-toolbar .statusline{text-align:left;margin:0 0 9px;font-size:15px}
.dice-display{display:grid;place-items:center;background:#f7f8fa;color:#25395e;border-radius:20px;width:86px;height:86px;font-size:64px;box-shadow:0 5px 20px #2d3b5420}
.ludo-pawns{margin:12px auto;padding:14px;background:#f9fafc;border:1px solid #e9edf4;border-radius:16px;max-width:600px}
.ludo-pawns strong{font:800 14px Outfit;color:#182b52}
.ludo-pawn-row{display:flex;align-items:center;gap:8px;margin-top:9px;flex-wrap:wrap}
.ludo-pawn-label{width:62px;font-size:12px;font-weight:800;color:#617087}
.ludo-pawn-choice{border:2px solid #ffffff90;color:white;border-radius:9px;padding:8px 7px;min-width:73px;font-size:11px;font-weight:900;box-shadow:0 2px 7px #0001}
.ludo-pawn-choice:not(:disabled):hover{transform:translateY(-2px)}
.ludo-pawn-choice:disabled{opacity:.55}
.ludo-winner{display:flex;align-items:center;justify-content:center;gap:14px;padding:19px;margin:14px 0;border-radius:16px;background:#fef4da;font:900 20px Outfit;color:#563906}
@media(max-width:600px){
 .ludo-board{padding:2px;border-width:1px;border-radius:9px;gap:1px}
 .ludo-modes{gap:5px}
 .ludo-mode{padding:8px 10px;font-size:11px}
 .ludo-score{font-size:10px;padding:6px 8px}
 .ludo-topline{gap:8px}
 .ludopiece{width:16px;height:16px;border-width:1px;font-size:9px}
 .ludopiece.mini{width:72%;height:72%}
 .ludo-toolbar{gap:12px}
 .ludo-toolbar .statusline{font-size:13px}
 .dice-display{width:61px;height:61px;font-size:43px}
 .ludo-pawns{padding:10px}
 .ludo-pawn-row{gap:5px}
 .ludo-pawn-choice{min-width:62px;padding:7px 4px}
 .ludo-pawn-label{width:42px;font-size:11px}
}
@media(prefers-reduced-motion:reduce){.ludopiece.ready{animation:none}}

/* Récompenses locales transparentes, défis sans paiement ni classement fictif */
.daily-preview{margin-top:22px}.daily-mission{display:flex;align-items:center;justify-content:space-between;gap:25px;border:1px solid #f3dfbe;border-radius:22px;padding:22px 28px;background:linear-gradient(110deg,#fff6e6,#fffaf4)}
.daily-mission.completed{background:linear-gradient(110deg,#e5faf0,#fbfffb);border-color:#b8e8cc}
.daily-mission h3{font:800 24px "Avenir Next","Segoe UI",system-ui,sans-serif;margin:11px 0 6px;color:#152951}
.daily-mission p{font-size:13px;color:#78839a;line-height:1.6;margin:0}.daily-mission strong{color:#24375b}
.daily-mission .eyebrow{background:#f8e4c3;border:0;color:#b57622}.daily-medal{font-size:50px}
.progress-metrics{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:18px 0}
.progress-metrics>div{background:#fff;border:1px solid #eceef3;border-radius:14px;padding:17px;display:flex;flex-direction:column;gap:5px}
.progress-metrics strong{font:900 29px Outfit;color:#172d55}.progress-metrics small{color:#7c879b;font-size:12px}
.progress-title{font:800 21px Outfit;margin:23px 0 12px}.badges-list{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}
.achievement{padding:14px;border:1px solid #e6e9ef;background:#f4f5f8;border-radius:15px;display:flex;align-items:center;flex-direction:column;gap:5px;text-align:center;filter:grayscale(1);opacity:.65}
.achievement.unlocked{background:#fff8e8;border-color:#f5d48f;filter:none;opacity:1}
.achievement span{font-size:30px}.achievement strong{font:800 14px Outfit}.achievement small{font-size:11px;color:#6d7b92;line-height:1.4}
@media(max-width:600px){.daily-mission{padding:17px 15px;gap:8px}.daily-mission h3{font-size:20px}.daily-medal{font-size:36px}.daily-mission p{font-size:12px}.progress-metrics strong{font-size:22px}.progress-metrics>div{padding:10px}.badges-list{gap:6px}.achievement{padding:10px 5px}.achievement strong{font-size:12px}.achievement small{font-size:10px}}


/* MOBI LUDO ROYALE — immersive game screen, three original African-inspired themes */
.dialog:has(.royale){width:min(1170px,100%);max-height:97dvh;max-height:97vh;background:#111b34}
.dialog .dlgbody:has(.royale){padding:0}
.dialog:has(.royale) .dlghead{background:#0d1730;padding:11px 23px;border-bottom:1px solid #ffffff15}
.dialog:has(.royale) .dlghead strong{font:750 15px Outfit;letter-spacing:.15px}
.dialog:has(.royale) .iconbutton{border-radius:50%;width:36px;height:36px}
.royale{--royale-bg:#111b35;--royale-panel:#1b294b;--royale-panel2:#1c2e50;--royale-accent:#fbb64d;--royale-muted:#b2c4dd;background:radial-gradient(ellipse at 10% -14%,#57649e45,transparent 44%),linear-gradient(140deg,#111c37,#1a294d 55%,#111b34);color:#fff;padding:22px 27px 27px;min-height:550px}
.royale[data-theme="ocean"]{--royale-bg:#092b3d;--royale-panel:#144458;--royale-panel2:#175369;--royale-accent:#64ddcf;--royale-muted:#c6dce1;background:radial-gradient(ellipse at 90% 3%,#268ca35c,transparent 48%),linear-gradient(130deg,#0c2d40,#18506b)}
.royale[data-theme="nuit"]{--royale-bg:#120f29;--royale-panel:#302449;--royale-panel2:#362551;--royale-accent:#cfa5ff;--royale-muted:#c7b9d7;background:radial-gradient(ellipse at 88% 0%,#8149ce5c,transparent 49%),linear-gradient(130deg,#171027,#352452)}
.royale-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:20px}
.royale-signature{display:flex;align-items:center;gap:15px}
.royale-star{width:54px;height:54px;border-radius:17px;display:grid;place-items:center;background:linear-gradient(140deg,#f9d67c,#da8c34);box-shadow:0 6px 16px #0005,inset 0 2px 2px #fff7;color:#182744;font-size:33px;transform:rotate(-8deg)}
.royale-signature h2{font:900 28px/1.05 Outfit;margin:2px 0 4px;letter-spacing:-1px;color:#fff}
.royale-signature h2 em{font-style:normal;color:var(--royale-accent)}
.royale-kicker{font-size:9px;font-weight:900;letter-spacing:2.1px;color:var(--royale-accent)}
.royale-signature p{margin:0;color:var(--royale-muted);font-size:11px}
.royale-local-badge{color:#bcebd8;border:1px solid #5fc99e52;background:#2d946e22;border-radius:30px;font-size:10px;font-weight:900;letter-spacing:.6px;padding:9px 12px;white-space:nowrap}
.royale-mode-list{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:9px;margin:0 0 20px}
.royale-mode{border:1px solid #ffffff1a;background:#ffffff0b;border-radius:14px;min-height:71px;color:white;text-align:left;padding:11px 12px;display:grid;grid-template-columns:23px 1fr;column-gap:8px;align-content:center;transition:background .16s,transform .16s,border .16s}
.royale-mode:hover{background:#ffffff1b;transform:translateY(-2px)}
.royale-mode.current{border-color:var(--royale-accent);background:#ffc85f16;box-shadow:inset 0 0 0 1px #ffffff17}
.royale-mode span{font-size:21px;grid-row:span 2;align-self:center}
.royale-mode strong{font:850 13px Outfit}.royale-mode small{display:block;color:#b7c4da;font-size:10px;margin-top:4px}
.royale-arena{display:grid;grid-template-columns:minmax(0,1fr) 310px;gap:20px;align-items:start}
.royale-board-column{min-width:0}
.royale-player-strip{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin-bottom:13px}
.royale-player{display:flex;align-items:center;gap:10px;min-height:63px;padding:9px 12px;border-radius:15px;background:var(--royale-panel);border:1px solid #ffffff14;opacity:.82;transition:transform .2s,box-shadow .2s}
.royale-player.turn{opacity:1;transform:translateY(-1px);box-shadow:0 0 0 2px var(--royale-accent),0 6px 20px #0003}
.royale-avatar{width:37px;height:37px;flex-shrink:0;display:grid;place-items:center;border-radius:13px;background:var(--color);color:#fff;font-size:18px;font-weight:900;box-shadow:inset 0 1px 2px #fff8,0 3px 7px #0005;border:2px solid #ffffff66}
.royale-player.p0,.royale-cell.h0,.royale-pawn.p0{--color:#e79b26}.royale-player.p1,.royale-cell.h1,.royale-pawn.p1{--color:#13a672}.royale-player.p2,.royale-cell.h2,.royale-pawn.p2{--color:#2e81d5}.royale-player.p3,.royale-cell.h3,.royale-pawn.p3{--color:#d85b90}
.royale-player-data{min-width:0;display:flex;flex:1;flex-direction:column;gap:3px}
.royale-player-data strong{font:850 13px Outfit}.royale-player-data small{font-size:10px;color:#b7c6e0}
.royale-player-progress{font:900 12px Outfit;border-radius:12px;background:#ffffff16;padding:5px 8px}
.royale-board-frame{padding:10px;border-radius:23px;background:linear-gradient(140deg,#f4d89f,#cba871 45%,#e8d09b);box-shadow:0 20px 44px #0005,inset 0 2px 1px #fff7}
.royale-board{width:min(100%,585px);aspect-ratio:1;margin:auto;position:relative;display:grid;grid-template-columns:repeat(15,minmax(0,1fr));grid-template-rows:repeat(15,minmax(0,1fr));gap:1px;padding:3px;border-radius:9px;background:#4d5670;box-shadow:inset 0 0 0 4px #fff7,0 5px 12px #0003;overflow:hidden;isolation:isolate}
.royale-cell{min-width:0;min-height:0;background:#fffcf4;position:relative;display:flex;align-items:center;justify-content:center;overflow:visible}
.royale-cell.house{background:var(--color)}
.royale-cell.house.nest{background:#fff9e8}
.royale-cell.route{background:#fffdf6}
.royale-cell.route.safe{background:#fff2c2;color:#bd8428}
.royale-cell.route.gate0{background:#ffc45e}
.royale-cell.route.gate1{background:#8bdcb8}
.royale-cell.route.gate2{background:#8cc6f6}
.royale-cell.route.gate3{background:#ec94b7}
.royale-cell.lane{background:var(--lane)}
.royale-cell.lane0{--lane:#ffc05d}.royale-cell.lane1{--lane:#84d9a7}.royale-cell.lane2{--lane:#7eb6f2}.royale-cell.lane3{--lane:#eba0bd}
.royale-cell.centre{background:#e5e7ed}
.safe-symbol{position:absolute;font-size:clamp(10px,1.5vw,17px);color:#c48e28;z-index:0}
.royale-center{position:absolute;left:40%;top:40%;width:20%;height:20%;background:conic-gradient(#27b985 0 25%,#388de0 25% 50%,#ed82a9 50% 75%,#f4af3c 75%);z-index:1;display:grid;place-items:center;pointer-events:none;border:2px solid #ffffff8f;box-shadow:inset 0 2px 10px #0002;clip-path:polygon(50% 50%,0 0,100% 0,100% 100%,0 100%,0 0)}
.royale-center span{display:grid;place-items:center;color:white;font-size:34px;text-shadow:0 2px 9px #0006;border-radius:50%;height:40%;width:40%;background:#fefefe33}
.royale-pawn{width:83%;height:83%;border-radius:50%;border:2px solid #fff;background:var(--color);color:white;font:900 clamp(8px,1.4vw,14px) Outfit;box-shadow:inset 0 2px 0 #ffffff7d,inset 0 -3px 3px #0c214456,0 4px 5px #1a24465c;z-index:3;position:relative;flex-shrink:0;display:grid;place-items:center;transition:box-shadow .2s}
.royale-pawn:disabled{opacity:1;cursor:default}
.royale-pawn.selectable{cursor:pointer;z-index:6;animation:royalepulse 1.1s ease-in-out infinite;outline:3px solid #ffec72;outline-offset:1px}
.royale-pawn.just-landed{animation:royalejump .47s cubic-bezier(.16,1.4,.38,1) both}
.royale-cell:has(.royale-pawn:nth-of-type(2)) .royale-pawn{width:47%;height:65%;font-size:8px;margin-left:-5px}
.royale-cell:has(.royale-pawn:nth-of-type(3)) .royale-pawn{width:30%;height:60%;font-size:8px;margin-left:-4px}
@keyframes royalepulse{50%{transform:translateY(-3px) scale(1.11);box-shadow:0 0 0 5px #ffd97770,0 6px 12px #0004}}
@keyframes royalejump{0%{transform:translateY(-11px) scale(1.24)}45%{transform:translateY(0) scale(.94)}75%{transform:translateY(-4px)}100%{transform:translateY(0) scale(1)}}
.royale-board-caption{display:flex;justify-content:center;gap:18px;flex-wrap:wrap;color:#d9e0ed;margin:13px 0;font-size:11px;font-weight:800}
.royale-sidebar{min-width:0;display:flex;flex-direction:column;gap:12px}
.royale-turn{border:1px solid #ffffff1c;background:linear-gradient(154deg,var(--royale-panel2),#243758);border-radius:22px;padding:23px 18px;text-align:center;box-shadow:0 12px 30px #080c2152}
.royale-turn-label{font:750 11px Outfit;letter-spacing:1.7px;color:#d7e3f4}
.royale-turn-label strong{color:var(--royale-accent)}
.royale-dice{width:105px;height:105px;border-radius:23px;margin:18px auto 16px;display:grid;place-items:center;background:linear-gradient(135deg,#fff,#e0ecff);box-shadow:0 9px 0 #b5c4db,0 16px 20px #0006,inset 0 3px 3px #fff;transform:rotate(-7deg);border:2px solid #fff}
.royale-dice.rolling{animation:royaleroll .44s cubic-bezier(.2,.9,.3,1)}
@keyframes royaleroll{0%{transform:rotate(-31deg) scale(.84)}33%{transform:rotate(32deg) scale(1.08)}67%{transform:rotate(-19deg) scale(.93)}100%{transform:rotate(-7deg) scale(1)}}
.royale-die-grid{width:74%;height:74%;display:grid;grid-template-columns:repeat(3,1fr);grid-template-rows:repeat(3,1fr);gap:4px}
.royale-die-grid i{border-radius:50%;background:transparent}
.royale-die-grid i.show{background:#1c3057;box-shadow:inset 0 2px 1px #0b173c88}
.royale-roll{width:100%;min-height:55px;border:0;border-radius:15px;background:linear-gradient(95deg,var(--royale-accent),#ffde82);font:900 16px Outfit;color:#19243b;box-shadow:0 6px 0 #925e23,0 9px 17px #0003;transition:transform .15s,box-shadow .15s}
.royale-roll:not(:disabled):hover{transform:translateY(-2px)}
.royale-roll:not(:disabled):active{transform:translateY(4px);box-shadow:0 2px 0 #925e23}
.royale-roll:disabled{box-shadow:none;background:#e0e4eb;color:#6d7485;opacity:1}
.royale-note{font-size:12px;line-height:1.5;color:#dce5f3;margin:16px 0 0;min-height:35px}
.royale-choices{border-radius:17px;background:#ffffff0c;border:1px solid #ffffff13;padding:15px}
.royale-choices>strong{font:800 13px Outfit;display:block;margin-bottom:11px}
.royale-choices>div{display:grid;grid-template-columns:repeat(2,1fr);gap:8px}
.royale-choice{border:1px solid var(--royale-accent);background:#ffc86823;color:white;border-radius:12px;padding:12px 9px;text-align:left;font-weight:850;font-size:12px;display:flex;align-items:center;justify-content:space-between}
.royale-choice span{color:var(--royale-accent)}
.royale-utility,.royale-history,.royale-save-box{background:#ffffff0c;border:1px solid #ffffff14;border-radius:16px;padding:14px}
.royale-utility-top{display:flex;align-items:center;justify-content:space-between;gap:7px}
.royale-utility strong,.royale-history strong{font:800 13px Outfit}
.royale-sound{color:#e2eaf4;background:#ffffff13;border:1px solid #ffffff25;padding:8px 11px;border-radius:9px;font-size:11px;font-weight:800}
.royale-themes{display:flex;gap:6px;flex-wrap:wrap;margin-top:12px}
.royale-theme{background:#ffffff0b;border:1px solid #ffffff26;border-radius:50px;color:#d9e3ef;font-size:10px;font-weight:800;padding:8px 10px}
.royale-theme.selected{border-color:var(--royale-accent);color:var(--royale-accent);background:#ffffff19}
.royale-save-box{display:flex;align-items:center;gap:11px}
.royale-save-box>span{color:#4ce1a9;font-size:27px}
.royale-save-box strong{font:800 12px Outfit;display:block}
.royale-save-box small{display:block;color:#b9c9de;font-size:11px;margin-top:3px;line-height:1.55}
.royale-history{display:grid;gap:7px}
.royale-event{display:block;color:#c3d0e2;font-size:11px;line-height:1.45}
.royale-disclaimer{color:#b1bfd5;font-size:10px;line-height:1.6;margin:0 2px}
.royale-victory{padding:16px 6px;text-align:center}
.victory-crown{font-size:65px;animation:royalejump 1s ease}
.royale-victory h2{font:900 25px Outfit;margin:12px 0}
.royale-victory p{font-size:12px;color:#c9d9eb}
.royale-victory button{margin-top:10px}
@media(max-width:920px){.royale-arena{grid-template-columns:minmax(0,1fr) 260px;gap:11px}.royale{padding:15px}.royale-mode-list{gap:5px}.royale-mode{padding:9px 7px}.royale-mode strong{font-size:12px}.royale-mode small{font-size:9px}.royale-player{padding:7px 8px;gap:7px}.royale-avatar{width:31px;height:31px}}
@media(max-width:690px){
 .overlay:has(.royale){padding:0}
 .dialog:has(.royale){height:100dvh;max-height:100dvh;border-radius:0;width:100%;overscroll-behavior:contain}
 .dialog:has(.royale) .dlghead{padding:9px 13px}
 .royale{padding:14px 11px 35px;min-height:100%}
 .royale-star{width:40px;height:40px;border-radius:12px;font-size:24px}
 .royale-signature{gap:10px}.royale-signature h2{font-size:23px}
 .royale-signature p{font-size:10px}.royale-kicker{font-size:8px;letter-spacing:1px}
 .royale-local-badge{font-size:9px;padding:7px}
 .royale-head{margin-bottom:12px}
 .royale-mode-list{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;gap:7px;padding:2px 1px 8px;margin-bottom:9px;-webkit-overflow-scrolling:touch}
 .royale-mode{flex:0 0 136px;scroll-snap-align:start;min-height:62px;padding:9px}
 .royale-arena{display:flex;flex-direction:column;gap:10px}
 .royale-board-column{width:100%}
 .royale-board-frame{padding:6px;border-radius:16px}
 .royale-board{width:100%;padding:2px;gap:1px}
 .royale-player-strip{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;margin-bottom:9px}
 .royale-player{min-height:51px;padding:6px 8px;border-radius:11px}
 .royale-avatar{width:30px;height:30px;border-radius:9px;font-size:15px}
 .royale-player-data strong{font-size:12px}.royale-player-data small{font-size:9px}
 .royale-player-progress{font-size:11px;padding:4px 5px}
 .royale-pawn{font-size:9px;border-width:1.5px}
 .royale-pawn.selectable{outline-width:2px;outline-offset:0}
 .royale-board-caption{gap:11px;margin:10px 0 5px;font-size:10px}
 .royale-sidebar{width:100%;gap:9px}
 .royale-turn{padding:12px;display:grid;grid-template-columns:64px 1fr;align-items:center;gap:9px;text-align:left;border-radius:14px}
 .royale-turn-label{grid-column:1/-1;font-size:10px}
 .royale-dice{grid-column:1;grid-row:2/4;width:60px;height:60px;border-radius:13px;margin:0;box-shadow:0 5px 0 #b5c4db,0 8px 12px #0005}
 .royale-die-grid{gap:2px}
 .royale-roll{grid-column:2;grid-row:2;min-height:52px;font-size:15px;box-shadow:0 4px 0 #925e23}
 .royale-note{grid-column:2;grid-row:3;min-height:0;margin:0;font-size:11px}
 .royale-choices{padding:12px}.royale-choices>div{grid-template-columns:repeat(4,1fr)}
 .royale-choice{font-size:11px;padding:10px 6px}
 .royale-utility{padding:11px}
 .royale-history,.royale-save-box{display:none}
}
@media(max-width:360px){.royale-signature h2{font-size:19px}.royale-local-badge{font-size:8px}.royale-board-caption{gap:6px;font-size:9px}}
@media(prefers-reduced-motion:reduce){.royale-pawn.selectable,.royale-pawn.just-landed,.royale-dice.rolling,.victory-crown{animation:none}}

.royale-share{width:100%;background:transparent;border:1px solid #eac27883;border-radius:12px;padding:13px 11px;color:#ffe1ac;font:800 12px "Avenir Next","Segoe UI",system-ui,sans-serif;transition:background .18s}
.royale-share:hover{background:#ffc06818}
.royale-share:focus-visible{outline:3px solid var(--royale-accent);outline-offset:2px}
@media(max-width:690px){.royale-share{min-height:46px}}



/* 2026 cinematic 3D design system. Keep legal pages light and readable. */
body:has(#accueil){background:radial-gradient(ellipse at 78% 1%,#264069 0,#101f3e 35%,#08152b 79%);color:#f4f7ff}
body:has(#accueil) .topbar{background:#09172ef2;backdrop-filter:blur(22px);border-bottom:1px solid #e5af4a27;box-shadow:0 10px 35px #0106155c}
body:has(#accueil) .brand{color:#fff}
body:has(#accueil) .brand b{color:#ffac35}
body:has(#accueil) .brandmark{background:linear-gradient(145deg,#ffd477,#f49422);box-shadow:0 3px 0 #a76c22,0 7px 18px #ffac4f4d}
body:has(#accueil) .navlink{color:#c5d3e9}
body:has(#accueil) .navlink:hover,body:has(#accueil) .navlink.active{background:#f3aa3e24;color:#ffce83;border:1px solid #e3ae564f}
body:has(#accueil) .pill{background:#152747;border-color:#52658069;color:#e8eefb}
body:has(#accueil) .primary{background:linear-gradient(110deg,#ffd47e,#ffad36 60%,#f58623);color:#192544;box-shadow:0 5px 0 #9d5723,0 10px 25px #f79e353e}
body:has(#accueil) .primary:hover{box-shadow:0 3px 0 #92511f,0 12px 30px #f7a74464}
body:has(#accueil) .hero{min-height:485px;margin-top:22px;grid-template-columns:1fr 1.12fr;overflow:hidden;border:1px solid #f4b45d55;border-radius:28px;box-shadow:0 21px 70px #020918ab,0 0 50px #f8a64512;background:linear-gradient(113deg,#101b36 6%,#192543 42%,#513653 73%,#9d5d45 100%)}
body:has(#accueil) .hero:before{background:radial-gradient(ellipse at 83% 70%,#e5a04d80,transparent 44%),radial-gradient(ellipse at 36% 110%,#f9872b55,transparent 58%),linear-gradient(0deg,#040a1a99,transparent 30%)}
body:has(#accueil) .hero:after{border-color:#ffc37713;width:420px;height:420px;right:-130px;top:-125px}
body:has(#accueil) .herocopy{padding:56px 0 54px 55px;position:relative;z-index:6}
body:has(#accueil) .hero h1{font-size:clamp(38px,4.3vw,59px);font-weight:900;line-height:1.05;letter-spacing:-2.1px;max-width:520px;text-shadow:0 6px 18px #04091466}
body:has(#accueil) .hero h1 em{color:#ffba59;text-shadow:0 0 30px #ffa44a44}
body:has(#accueil) .hero p{font-size:15px;line-height:1.8;color:#e4ebf7;max-width:420px}
body:has(#accueil) .hero .eyebrow{background:#ffb24b1f;border:1px solid #f4be6980;color:#ffd992}
body:has(#accueil) .secondaryDark{background:#142341a8;border-color:#ffcf7f7a;box-shadow:inset 0 1px #ffffff26}
body:has(#accueil) .herovis{position:relative;min-height:480px;overflow:hidden;background:radial-gradient(ellipse at 61% 54%,#f5a85c49,transparent 62%)}
.hero3d-light{position:absolute;inset:0;pointer-events:none;background:radial-gradient(circle at 58% 53%,#ffb96764,transparent 49%);filter:blur(20px)}
.hero3d-viewport{position:absolute;inset:26px 0 4px -12px;z-index:3;min-width:0}
.hero3d-viewport .mobi3d-canvas{width:100%!important;height:100%!important;display:block;filter:drop-shadow(0 18px 14px #05081788)}
.herovis .hero-fallback{position:absolute;inset:0;display:block}
.herovis.is-3d .hero-fallback{display:none}
.hero3d-title{position:absolute;top:12px;left:13%;z-index:5;pointer-events:none;text-align:center;transform:rotate(-3deg)}
.hero3d-title span{display:block;color:#ffe0aa;font:850 11px Outfit;letter-spacing:2.3px;text-shadow:0 2px 10px #080d20}
.hero3d-title strong{font:950 clamp(20px,2.8vw,37px) Outfit;letter-spacing:-.5px;color:#fff3d6;text-shadow:0 3px 0 #6c4120,0 8px 25px #01020f}
.hero3d-title b{color:#ffc056}
body:has(#accueil) .stats{margin-top:18px;gap:13px}
body:has(#accueil) .stat{background:linear-gradient(145deg,#1d2b48,#111f3a);border:1px solid #b5945e47;border-radius:17px;box-shadow:0 8px 20px #02071633}
body:has(#accueil) .statIcon{background:#e9ac4e23;color:#ffca77}
body:has(#accueil) .stat b{color:#eef4ff}
body:has(#accueil) .stat small{color:#acbcd5}
body:has(#accueil) .sectionhead h2{color:#f4f7ff}
body:has(#accueil) .sectionhead p{color:#afc0d9}
body:has(#accueil) .viewall{color:#ffbc58}
body:has(#accueil) .filters{margin-bottom:17px}
body:has(#accueil) .filter{background:#1b2d4d;border:1px solid #7d8fb750;color:#c1cfe7}
body:has(#accueil) .filter.selected{background:linear-gradient(140deg,#fdb950,#e8912b);border-color:#ffdd8f;color:#152342;box-shadow:0 6px 15px #f8a43c30}
body:has(#accueil) .search{background:#152847;border-color:#637ba464;color:#d3dded}
body:has(#accueil) .search input{color:#f5f8ff}
body:has(#accueil) .search input::placeholder{color:#a8b7d0}
.category-section{margin-top:39px}
.category-tiles{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px}
.category-tile{position:relative;min-height:145px;display:flex;flex-direction:column;justify-content:flex-end;align-items:flex-start;text-align:left;gap:3px;border:1px solid #f1b86162;border-radius:20px;overflow:hidden;padding:18px 18px 16px;color:#fff;background:radial-gradient(circle at 70% 35%,#f9a54168,transparent 43%),linear-gradient(120deg,#142743,#273858);box-shadow:0 7px 0 #050e23,0 14px 29px #01071477;transform:perspective(800px) rotateX(1.2deg);transform-style:preserve-3d;transition:transform .23s,box-shadow .23s}
.category-tile:nth-child(2){background:radial-gradient(circle at 69% 32%,#9e83ff75,transparent 52%),linear-gradient(125deg,#14233c,#332d58)}
.category-tile:nth-child(3){background:radial-gradient(circle at 67% 37%,#43cfb26d,transparent 53%),linear-gradient(125deg,#102c32,#164e4c)}
.category-tile:nth-child(4){background:radial-gradient(circle at 69% 39%,#6597ff9c,transparent 53%),linear-gradient(125deg,#132343,#35549c)}
.category-tile:hover,.category-tile:focus-visible{transform:perspective(800px) rotateX(-4deg) translateY(-6px);box-shadow:0 6px 0 #061024,0 23px 40px #010714aa}
.category-visual{font-size:55px;position:absolute;right:16px;top:10px;filter:drop-shadow(6px 11px 7px #0007);transform:translateZ(27px) rotate(-13deg);text-shadow:0 9px 14px #091425}
.category-tile strong{font:900 18px Outfit;position:relative;z-index:2;filter:drop-shadow(0 2px 4px #08111d)}
.category-tile small{font-size:11px;color:#dce6f7;position:relative;z-index:2}
body:has(#accueil) .games{gap:20px}
body:has(#accueil) .game{background:linear-gradient(155deg,#1d2e51,#0e1b35);border:1px solid #b68d5c55;border-radius:19px;box-shadow:0 6px 0 #050d21,0 13px 30px #02091977;transform-style:preserve-3d;transition:transform .25s,box-shadow .25s}
body:has(#accueil) .game:hover{transform:perspective(800px) translateY(-8px) rotateX(1deg);box-shadow:0 7px 0 #050d21,0 23px 42px #030918bb,0 0 22px #f4a7422d}
body:has(#accueil) .art{height:179px;overflow:hidden;border-bottom:1px solid #f3ba534a}
body:has(#accueil) .art img{filter:saturate(1.16) contrast(1.07) drop-shadow(0 9px 6px #0004)}
body:has(#accueil) .game h3{color:#fff;font-weight:850}
body:has(#accueil) .game p{color:#b6c4dc}
body:has(#accueil) .metas{color:#c2d0e5}
body:has(#accueil) .tag{color:#ffd795;background:#eeb14b29;border:1px solid #ffbc4d4d}
body:has(#accueil) .free{color:#80e9bc}
body:has(#accueil) .play{background:linear-gradient(110deg,#ffbc54,#e99a35);color:#182643}
body:has(#accueil) .fav{background:#ffffff14;color:#d1d9ed}
body:has(#accueil) .fav.on{color:#ff8881;background:#f46b6931}
body:has(#accueil) .daily-mission{border-color:#db9f4566;background:linear-gradient(115deg,#202f4c,#433451)}
body:has(#accueil) .daily-mission.completed{border-color:#3ddbb17a;background:linear-gradient(120deg,#143f45,#1d3d4a)}
body:has(#accueil) .daily-mission h3{color:#fff}
body:has(#accueil) .daily-mission p{color:#c1cfdf}
body:has(#accueil) .daily-mission strong{color:#ffe3b0}
body:has(#accueil) .promo{border:1px solid #c38d5686;background:linear-gradient(114deg,#142541,#4b3150,#9a5c3a);box-shadow:0 13px 40px #01081b90}
body:has(#accueil) .highlight{background:linear-gradient(145deg,#20304f,#14233e);border:1px solid #bb9f6a42}
body:has(#accueil) .highlight h3{color:#fff}
body:has(#accueil) .highlight p{color:#b8c6dc}
body:has(#accueil) .progress-metrics>div,body:has(#accueil) .rankrow{background:#172844;border-color:#6e7d9959;color:#e6edfb}
body:has(#accueil) .progress-metrics strong,body:has(#accueil) .progress-title,body:has(#accueil) .rankrow strong{color:#f5f7ff}
body:has(#accueil) .achievement{background:#1b2948;border-color:#54678788;color:#ecf1fe}
body:has(#accueil) .achievement.unlocked{background:#6c4d2642;border-color:#d9a65a}
body:has(#accueil) .notice{color:#afc2dc}
body:has(#accueil) .footer{background:#071329;border-top:1px solid #ce9c4b66}
body:has(#accueil) .empty{background:#14253f;color:#cad9ed;border-color:#6b7a9b}
.theatre-3d{position:relative;min-height:440px;padding:10px;border-radius:21px;border:2px solid #d9ad70;box-shadow:inset 0 2px 3px #ffffff82,0 17px 38px #0008;background:radial-gradient(circle at 50% 28%,#50618755,#17233b 63%)}
#ludo3d-viewport{display:none;width:100%;height:clamp(430px,48vw,610px)}
.theatre-3d.is-3d #ludo3d-viewport{display:block}
.theatre-3d.is-3d #ludo3d-fallback{display:none}
#ludo3d-fallback{width:100%}
#ludo3d-fallback .royale-board-frame{box-shadow:none}
.mobi3d-canvas{display:block!important;width:100%!important;height:100%!important;touch-action:manipulation;outline:none;border-radius:16px}
.royale[data-theme="teranga"]{background:radial-gradient(ellipse at 30% -20%,#7c4d4b4c,transparent 50%),linear-gradient(150deg,#171b36,#2a2644 59%,#30263b)}
.royale-head .royale-signature em{font-size:.95em}
.royale-player.p0,.royale-cell.h0,.royale-pawn.p0{--color:#348bf2}
.royale-player.p1,.royale-cell.h1,.royale-pawn.p1{--color:#ec504e}
.royale-player.p2,.royale-cell.h2,.royale-pawn.p2{--color:#10b786}
.royale-player.p3,.royale-cell.h3,.royale-pawn.p3{--color:#ffbf37}
.royale-cell.gate0,.royale-cell.lane0{background:#348bf2}
.royale-cell.gate1,.royale-cell.lane1{background:#ec504e}
.royale-cell.gate2,.royale-cell.lane2{background:#10b786}
.royale-cell.gate3,.royale-cell.lane3{background:#ffbf37}
.royale-cell.centre{background:conic-gradient(#ec504e 0 25%,#10b786 25% 50%,#ffbf37 50% 75%,#348bf2 75%)}
.royale-star{background:linear-gradient(138deg,#ffe6a1,#faab32);box-shadow:0 5px 0 #815321,0 9px 24px #ffbc493a}
@media(max-width:850px){
 body:has(#accueil) .hero{grid-template-columns:1fr .85fr;min-height:435px}
 body:has(#accueil) .herocopy{padding:30px 0 30px 27px}
 body:has(#accueil) .hero h1{font-size:39px}
 .category-tiles{grid-template-columns:repeat(2,1fr)}
}
@media(max-width:600px){
 body:has(#accueil) .hero{display:block;min-height:585px;border-radius:23px}
 body:has(#accueil) .herocopy{padding:26px 22px 0}
 body:has(#accueil) .hero h1{font-size:37px;max-width:95%}
 body:has(#accueil) .hero p{font-size:13px;max-width:94%}
 body:has(#accueil) .herovis{position:relative;bottom:auto;right:auto;width:100%;min-height:240px;height:250px;margin-top:0}
 .hero3d-viewport{inset:0}
 .hero3d-title{top:-2px;left:5%}
 .hero3d-title strong{font-size:20px}
 .category-section{margin-top:29px}
 .category-tiles{gap:9px}
 .category-tile{min-height:125px;padding:12px}
 .category-visual{font-size:43px}
 .category-tile strong{font-size:16px}
 body:has(#accueil) .stats{gap:8px}
 body:has(#accueil) .art{height:119px}
 body:has(#accueil) .games{gap:11px}
 body:has(#accueil) .game{box-shadow:0 4px 0 #061329,0 9px 17px #02091966}
 .theatre-3d{min-height:0;padding:4px;border-width:1px;border-radius:13px}
 #ludo3d-viewport{height:min(99vw,470px)}
}
@media(prefers-reduced-motion:reduce){.category-tile,.game{transition:none!important}.hero3d-light{filter:none}}


/* Very narrow screens (320px): compact top bar; no browser viewport widening. */
@media(max-width:420px){
 .navwrap{gap:6px}
 .topbar .shell{padding-left:10px;padding-right:10px}
 .brand{font-size:16px;gap:6px;letter-spacing:-.7px}
 .brandmark{width:30px;height:30px;min-width:30px;font-size:17px;border-radius:9px}
 .navright{gap:3px;min-width:0}
 .navright .primary{max-width:126px;white-space:normal;font-size:10px!important;line-height:1.25;padding:7px 8px!important}
 .heroactions{min-width:0}
 .heroactions button{max-width:100%;white-space:normal}
 .category-tile{min-width:0}
 .category-tile strong{overflow-wrap:anywhere}
 .royale-player-data strong{overflow-wrap:anywhere}
}

/* Footer links were the remaining source of a 331px layout on 320px screens. */
@media(max-width:420px){
 .footrow{width:100%;min-width:0;gap:11px}
 .footlinks{display:flex;flex-wrap:wrap;align-items:flex-start;gap:9px 14px;max-width:100%;min-width:0}
 .footlinks a{font-size:11px;overflow-wrap:anywhere;white-space:normal}
}
