/* PICO Arcade — sans dépendance, sans police distante. */
:root{--bg:#f8f7fb;--paper:#fff;--ink:#29243c;--muted:#858196;--purple:#7654e8;--purple-dark:#5c3ccc;--lavender:#ede7fc;--mint:#b8e8cc;--coral:#f4ad9e;--yellow:#f5d78c;--line:#eae7f0;--shadow:0 10px 35px #30234308;--radius:22px;font-family:"Avenir Next",Avenir,"Segoe UI",system-ui,sans-serif;color:var(--ink);font-synthesis:none}
*{box-sizing:border-box}body{margin:0;background:var(--bg);line-height:1.5}button,input,select{font:inherit}button,a,input,select{-webkit-tap-highlight-color:transparent}button{cursor:pointer;color:inherit}button{border:0}button:disabled{cursor:default;opacity:.5}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #a584ff;outline-offset:4px}button,a{touch-action:manipulation}a{color:inherit;text-decoration:none}button{transition:background .18s,transform .18s,box-shadow .18s}button:active:not(:disabled){transform:scale(.97)}[hidden]{display:none!important}svg.icon{width:20px;height:20px;display:block;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}h1,h2,h3,p{margin:0}h1,h2,h3{letter-spacing:-.055em;line-height:1.2}button span[data-icon],i[data-icon]{display:inline-flex;font-style:normal}small{font-size:12px}.muted{color:var(--muted);font-size:13px}.skip-link{position:fixed;top:-100px;left:20px;background:white;padding:12px;z-index:1000}.skip-link:focus{top:12px}
.sidebar{width:224px;background:#fff;position:fixed;inset:0 auto 0 0;border-right:1px solid var(--line);padding:36px 22px 20px;display:flex;flex-direction:column;z-index:20}.brand{display:flex;gap:12px;align-items:center;margin:0 12px 42px;font-weight:900;font-size:29px;letter-spacing:-1.7px;line-height:.9}.brand small{display:block;font-size:9px;letter-spacing:4px;line-height:1;margin:8px 0 0 2px;font-weight:700}.brand-icon{background:var(--purple);width:43px;height:44px;border-radius:14px;color:#fff;font-size:44px;line-height:.76;display:flex;align-items:center;justify-content:center;padding-bottom:9px;position:relative}.brand-icon>span{position:absolute;color:var(--mint);font-size:22px;top:3px;right:5px}.nav-caption{font-size:9px;font-weight:800;letter-spacing:1.5px;color:#aaa5b8;margin:0 12px 15px}.main-nav{display:grid;gap:6px;margin-bottom:36px}.nav-item{width:100%;display:flex;align-items:center;gap:13px;padding:13px 14px;background:transparent;color:#767083;border-radius:11px;font-weight:650;font-size:13px;text-align:left}.nav-item.active{color:var(--purple);background:#f0ebfd}.nav-item:hover,.category-nav button:hover{background:#f6f3fc}.nav-item .icon{width:19px;height:19px}.nav-count{margin-left:auto;font-size:10px;font-weight:800;border-radius:6px;background:#e4dafa;min-width:24px;padding:2px 5px;text-align:center;color:var(--purple)}.nav-item:not(.active) .nav-count{background:#f3f1f7;color:#9c94ac}.category-nav{display:grid;gap:8px}.category-nav button{display:flex;align-items:center;gap:12px;font-size:12px;background:none;padding:9px 13px;text-align:left;border-radius:9px;color:#767083;font-weight:600}.nav-dot{height:8px;width:8px;border-radius:3px}.coral{background:var(--coral)}.purple{background:#aa90eb}.yellow{background:var(--yellow)}.mint{background:#8bceb3}.sidebar-bottom{margin-top:auto;padding-top:40px}.little-note{background:#f7f4fc;padding:22px 17px 17px;border-radius:15px;position:relative}.note-star{position:absolute;top:-17px;right:17px;font-size:35px;color:var(--purple);transform:rotate(15deg)}.little-note strong{font-size:12px}.little-note p{font-size:10px;color:#91869e;line-height:1.9;margin-top:6px}.settings-link{display:flex;width:100%;gap:11px;align-items:center;background:none;font-size:12px;font-weight:600;margin:23px 0 17px;padding:0 7px;color:#81798e}.settings-link>span:last-child{margin-left:auto}.sidebar-footer{font-size:8px;color:#aaa4b5;letter-spacing:1.2px;display:block;text-align:center}.page-shell{margin-left:224px}.topbar{height:91px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:20px;padding:0 44px;background:#fff9}.welcome{font-size:11px;color:#8c849b;display:flex;align-items:center;gap:9px}.status-dot{width:6px;height:6px;background:#88c6a0;border-radius:50%}.top-actions{display:flex;gap:17px;align-items:center}.search{display:flex;align-items:center;gap:9px;background:#eeedf3;border-radius:10px;padding:10px 12px;width:284px;color:#a29aaa}.search>.icon{width:16px;height:16px}.search input{width:100%;border:0;background:none;outline:none;font-size:11px;color:var(--ink)}.search input::placeholder{color:#9890a5}.search kbd{background:#fff9;border:1px solid #ded9e5;border-radius:4px;font-size:10px;line-height:1;padding:3px 5px}.icon-button{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;width:38px;height:38px;background:transparent;border:1px solid var(--line);border-radius:11px;color:#777083}.icon-button:hover{background:var(--lavender);color:var(--purple)}.avatar{width:37px;height:37px;background:#ebdeff;color:#7d4fb2;border-radius:50%;position:relative;font-weight:800;font-size:14px}.avatar>span{width:9px;height:9px;background:#9ed1a7;border:2px solid #fff;border-radius:50%;position:absolute;bottom:0;right:0}.mobile-brand,.mobile-nav{display:none}main{max-width:1500px;margin:0 auto;padding:37px 44px 0}.eyebrow{font-size:9px;letter-spacing:1.5px;font-weight:800;color:#aaa1b7;display:block}.page-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:29px;gap:20px}.page-heading h1{font-size:31px;font-weight:800;margin:9px 0 9px}.page-heading h1 span{color:var(--purple)}.page-heading p{font-size:12px;color:var(--muted)}.hand-note{font-family:Georgia,serif;font-style:italic;font-size:13px;color:#9990a6;align-self:flex-end;white-space:nowrap;transform:rotate(-7deg);margin-bottom:16px}.hand-note span{display:block;text-align:center;font-size:36px;height:25px;line-height:1;transform:rotate(20deg)}.feature-grid{display:grid;grid-template-columns:minmax(0,2.4fr) minmax(240px,1fr);gap:22px}.hero{position:relative;overflow:hidden;border-radius:var(--radius);background:#7655dc;min-height:350px;display:flex;padding:31px 32px;color:#fff}.hero::before{content:"";position:absolute;width:370px;height:370px;border:1px solid #ffffff10;border-radius:50%;right:-24px;top:-25px}.hero-copy{z-index:2;position:relative}.hero-tag{font-size:9px;letter-spacing:1.3px;font-weight:700;display:flex;gap:7px;align-items:center;color:#e1d4ff}.hero-tag>span{color:#d2eaaa;font-size:17px}.hero h2{font-size:43px;letter-spacing:-1.9px;line-height:1.09;margin:19px 0 15px;position:relative;z-index:2}.hero h2>span{color:#d9f1b5}.hero p{color:#e0d5f8;font-size:12px;line-height:1.8}.button{display:inline-flex;align-items:center;justify-content:center;gap:10px;padding:12px 19px;border-radius:10px;font-size:12px;font-weight:750;white-space:nowrap;min-height:43px}.button .icon{height:17px;width:17px}.button:hover{transform:translateY(-2px);box-shadow:0 5px 15px #30234315}.button.light{background:#fff;color:#6a45c4;margin-top:23px}.button.light>span:last-child{margin-left:10px}.button.primary{background:var(--purple);color:#fff}.button.primary:hover{background:var(--purple-dark)}.button.dark{background:var(--ink);color:#fff}.button.outline{border:1px solid #dfd9ea;background:#fff;color:var(--ink)}.hero-foot{margin-top:23px;font-size:9px;color:#ddd1f4;display:flex;gap:9px;align-items:center}.mini-faces{display:inline-flex;padding-left:5px}.mini-faces i{display:flex;font-style:normal;justify-content:center;align-items:center;background:#dfbcfc;border:2px solid #7655dc;border-radius:50%;width:24px;height:24px;margin-left:-5px;font-size:12px;color:#765c8e}.mini-faces i:nth-child(2){background:#e7b4a0}.mini-faces i:nth-child(3){background:#c2e1a7}.hero-art{position:absolute;right:-36px;bottom:5px;top:5px;width:58%;min-width:285px;pointer-events:none}.hero-art img{width:100%;height:100%;object-fit:contain;animation:bob 5s ease-in-out infinite}.orbit-sticker{position:absolute;top:28px;right:51px;background:#e6edbb;color:#3e4934;width:63px;height:63px;border-radius:50%;display:flex;justify-content:center;align-items:center;font-size:12px;line-height:1.15;font-weight:900;transform:rotate(15deg);border:1px dashed #727d51;outline:4px solid #e6edbb}.floating-spark{position:absolute;bottom:31px;left:38px;font-size:27px;color:#d8edba}.daily-card{background:#edf1df;border-radius:var(--radius);position:relative;overflow:hidden;padding:23px 24px 17px;display:flex;flex-direction:column}.daily-top{display:flex;align-items:center;justify-content:space-between}.daily-top .eyebrow{color:#8b9574;letter-spacing:1.4px}.daily-spark{font-size:25px;color:#697e55;line-height:1}#daily-art{height:90px;margin:0 auto;width:160px}#daily-art svg{height:100%;width:100%}.daily-bottom h2{font-size:25px;margin:7px 0}.daily-bottom p{font-size:11px;color:#80876e;min-height:32px;line-height:1.6}.tag{display:inline-block;font-size:9px;font-weight:750;background:#f7f9ed;color:#7d8e63;padding:4px 7px;border-radius:4px;letter-spacing:.4px}.tag.small{font-size:7px;padding:3px 6px}.daily-bottom .button{width:100%;margin-top:13px;font-size:11px;min-height:39px;padding:10px 12px;justify-content:space-between}.daily-status{font-size:8px;color:#8b937c;display:block;text-align:center;margin-top:8px}.benefits{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:24px 6px 27px;border-bottom:1px solid var(--line);margin-bottom:31px}.benefits>span{display:flex;align-items:center;gap:8px;font-size:9px;color:#91889e}.benefits .icon{width:14px;height:14px;color:#a596ba}.section-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:0 0 22px}.section-heading .eyebrow{font-size:8px;margin-bottom:8px}.section-heading h2{font-size:24px;font-weight:800}.section-heading h2>span{font-size:11px;vertical-align:middle;border:1px solid #e4dfeb;color:#998da7;font-weight:600;border-radius:7px;margin-left:7px;padding:3px 6px;letter-spacing:0}.sort-label{display:flex;align-items:center;gap:8px;font-size:10px;color:#a197ae;align-self:flex-end}.sort-label select{border:0;color:#7f758d;background:none;padding:7px 0;font-size:10px;max-width:190px;cursor:pointer}.filters{display:flex;align-items:center;gap:9px;flex-wrap:wrap;margin-bottom:23px}.filter{font-size:10px;font-weight:650;padding:9px 15px;border-radius:8px;color:#8c809c;background:#fff;border:1px solid var(--line)}.filter.active{background:var(--ink);color:#fff;border-color:var(--ink)}.filter:hover:not(.active){background:var(--lavender)}.games-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px}.game-card{background:#fff;border:1px solid var(--line);border-radius:16px;overflow:hidden;position:relative;box-shadow:0 3px 9px #352c4602;transition:transform .2s,box-shadow .2s,border .2s}.game-card:hover{transform:translateY(-5px);box-shadow:0 14px 28px #382d6110;border-color:#cfbff0}.game-card-main{display:block;width:100%;padding:0;text-align:left;background:none}.card-art{height:146px;position:relative;overflow:hidden;background:var(--card-bg)}.card-art>svg{width:100%;height:100%;transition:transform .45s}.game-card:hover .card-art>svg{transform:scale(1.055) rotate(-1deg)}.card-badge{position:absolute;top:11px;left:11px;font-size:7px;font-weight:800;letter-spacing:.4px;background:#ffffffd9;border-radius:5px;padding:4px 7px;color:#61536e}.favorite-button{position:absolute;right:10px;top:10px;width:27px;height:27px;display:flex;align-items:center;justify-content:center;border-radius:8px;background:#ffffffc9;color:#8c7d9a;z-index:2}.favorite-button .icon{width:14px;height:14px}.favorite-button[aria-pressed="true"]{color:#b36591;background:#fff}.favorite-button[aria-pressed="true"] .icon{fill:#eeb3d3;stroke:#b36591}.card-body{padding:15px 15px 11px}.card-title{display:flex;align-items:center;justify-content:space-between;gap:8px}.card-title h3{font-size:16px;font-weight:800;letter-spacing:-.6px}.card-play{background:#f5f1fc;width:25px;height:25px;display:flex;align-items:center;justify-content:center;color:#9e84d6;border-radius:50%;transition:background .2s,color .2s}.card-play .icon{width:10px;height:10px;fill:currentColor}.game-card:hover .card-play{background:var(--purple);color:#fff}.card-description{font-size:9px;color:#a194ad;margin-top:5px;line-height:1.6;height:29px}.card-meta{border-top:1px solid #f3f0f7;margin-top:10px;padding-top:9px;display:flex;justify-content:space-between;color:#a59aad;font-size:8px;gap:8px}.card-meta span{display:flex;align-items:center;gap:4px}.card-meta .icon{width:10px;height:10px}.card-meta .bot-label{color:#7caa95}.empty-state{text-align:center;padding:60px 20px;background:#fff;border:1px dashed #ddd6ed;border-radius:18px}.empty-state>span{font-size:65px;color:#c1b0e7}.empty-state h3{font-size:24px}.empty-state p{font-size:13px;color:var(--muted);margin:12px 0 22px}.bottom-banner{display:flex;justify-content:space-between;align-items:center;padding:24px 28px;border-radius:16px;background:#efebf7;margin:35px 0 32px;gap:20px}.bottom-banner>div{display:flex;align-items:center;gap:18px}.bottom-banner>div>span{font-size:44px;color:#a894cc}.bottom-banner h3{font-size:16px;letter-spacing:-.5px}.bottom-banner p{font-size:10px;color:#998ca9;margin-top:4px}.bottom-banner .button{font-size:10px;background:transparent;border-color:#d8cde7}.footer{display:flex;align-items:center;gap:22px;padding:0 0 25px;font-size:9px;color:#aaa0b4}.footer-logo{font-size:24px;letter-spacing:-1.5px;font-weight:900;color:#9d8bac;display:flex;gap:2px}.footer-logo>span{font-size:19px;color:#b6a8c4}.footer p{margin-right:auto;font-size:9px}.footer button{font-size:9px;color:#9b8ea7;background:none;padding:3px}.footer>span{font-size:8px}.big-spark{font-size:75px;color:#b5a0ec}.stats-overview{display:grid;grid-template-columns:repeat(4,1fr);gap:17px;margin:28px 0 38px}.stat-tile{padding:24px;background:#fff;border:1px solid var(--line);border-radius:16px}.stat-tile .icon{color:var(--purple);margin-bottom:20px}.stat-tile strong{font-size:29px;display:block;line-height:1.3;letter-spacing:-1px}.stat-tile small{color:var(--muted);font-size:11px}.badges{display:grid;grid-template-columns:repeat(6,1fr);gap:12px;margin-bottom:37px}.badge-item{text-align:center;border:1px dashed #dcd5e9;padding:18px 8px;border-radius:15px;color:#aaa1b4;opacity:.65}.badge-item.unlocked{opacity:1;background:#f0ebfc;border:1px solid #d9cdf6;color:#6a4ab9}.badge-symbol{font-size:28px;display:block}.badge-item strong{display:block;font-size:10px;margin:7px 0 3px}.badge-item small{font-size:8px;display:block}.record-row{display:flex;align-items:center;gap:16px;padding:14px 18px;background:#fff;border:1px solid var(--line);border-radius:12px;margin:8px 0}.record-row .record-icon{width:48px;height:40px;border-radius:8px;overflow:hidden}.record-icon svg{width:100%;height:100%}.record-row h3{font-size:13px;letter-spacing:-.2px}.record-row small{font-size:9px;color:var(--muted)}.record-values{margin-left:auto;display:flex;gap:22px}.record-value{text-align:center;min-width:50px}.record-value strong{display:block;font-size:15px;color:var(--purple)}.record-value span{font-size:8px;color:#a096ae}.record-row .button{font-size:10px;min-height:32px;padding:7px 13px}.stats-empty{padding:40px;border:1px dashed #dbd3e9;border-radius:18px;text-align:center;font-size:13px;color:var(--muted)}
/* Fenêtre de jeu et contrôles communs */
dialog{border:1px solid #ede8f7;padding:0;color:var(--ink);background:#fff;border-radius:23px;box-shadow:0 30px 100px #1f14364d}dialog::backdrop{background:#2117359c;backdrop-filter:blur(7px)}.game-dialog{width:min(850px,calc(100% - 32px));max-height:calc(100dvh - 30px);overflow:auto}.game-dialog:fullscreen{width:100%;max-height:100dvh;height:100dvh;border-radius:0;display:flex;flex-direction:column;align-items:stretch}.game-dialog:fullscreen #game-play{max-width:850px;width:100%;margin:auto}.game-dialog:fullscreen .game-intro,.game-dialog:fullscreen .game-result{margin:auto;width:100%;max-width:850px}.game-header{display:flex;justify-content:space-between;align-items:center;padding:18px 24px;border-bottom:1px solid var(--line);gap:12px}.game-heading{display:flex;gap:12px;align-items:center}.game-mini-icon{width:38px;height:38px;background:#f0e9fc;border-radius:11px;display:flex;align-items:center;justify-content:center;font-size:21px;color:var(--purple)}.game-heading .eyebrow{font-size:8px}.game-heading h2{font-size:20px;letter-spacing:-.7px;margin-top:4px}.game-tools{display:flex;gap:7px}.game-tools .icon-button{width:32px;height:32px;border-radius:9px}.game-tools .icon{width:16px;height:16px}.game-intro{text-align:center;padding:22px 25px 29px}.intro-art{width:210px;height:130px;border-radius:17px;overflow:hidden;margin:0 auto 14px}.intro-art svg{height:100%;width:100%}.game-intro>.tag{font-size:8px;color:var(--purple);background:var(--lavender)}.game-intro h3{font-size:29px;margin:13px 0 12px}.game-intro>p:not(.intro-sound){font-size:13px;color:#84788f;max-width:520px;margin:0 auto;line-height:1.85}.difficulty-choice{display:flex;align-items:center;justify-content:center;gap:4px;background:#f4f0f9;border-radius:10px;padding:4px;max-width:335px;margin:23px auto 20px}.difficulty-choice button{font-size:11px;font-weight:650;background:none;padding:10px 14px;flex:1;border-radius:7px;color:#9c8da9}.difficulty-choice button.active{background:#fff;color:var(--purple);box-shadow:0 2px 5px #4633610c}.game-intro .button{min-width:190px}.intro-record{font-size:10px;color:#a797b4;margin-top:14px}.game-intro .intro-sound{font-size:9px;color:#b1a5b9;margin:11px 0 0}.game-hud{display:flex;align-items:center;justify-content:space-between;text-align:center;padding:16px 28px 13px;gap:12px}.game-hud>div{min-width:60px}.game-hud span{font-size:8px;letter-spacing:1.3px;font-weight:800;color:#b0a2bb;display:block}.game-hud strong{font-size:23px;letter-spacing:-.7px;display:block}.game-hud .hud-center{flex:1}.hud-center strong{font-size:12px;color:var(--purple);font-weight:700;letter-spacing:0;min-height:24px;display:flex;align-items:center;justify-content:center}.stage-wrap{position:relative;margin:0 24px;border-radius:15px;overflow:hidden;background:#f5f1fb}.game-stage{min-height:330px;display:flex;align-items:center;justify-content:center;position:relative;background:#f5f1fb;overflow:hidden}.game-stage canvas{display:block;width:100%;height:auto;max-height:56dvh;object-fit:contain;touch-action:none;outline:none}.game-controls{display:flex;justify-content:center;align-items:center;gap:9px;min-height:16px;padding:10px 15px 0;flex-wrap:wrap}.control-button{padding:9px 15px;border:1px solid #e5ddef;background:#faf7ff;box-shadow:0 3px 0 #e5ddef;border-radius:9px;font-size:11px;font-weight:700;min-width:42px;user-select:none;touch-action:none}.control-button:hover{background:#ece3ff}.control-button:active{box-shadow:none;transform:translateY(3px)}.game-bottom{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:15px 24px 20px}.game-bottom p{font-size:10px;color:#9a8ba6;max-width:70%;line-height:1.6}.game-bottom>div{display:flex;gap:16px}.text-button{display:inline-flex;align-items:center;justify-content:center;gap:6px;background:none;font-size:10px;font-weight:700;color:#9a88aa;padding:4px 0;white-space:nowrap}.text-button .icon{width:13px;height:13px}.text-button:hover{color:var(--purple)}.pause-layer{position:absolute;inset:0;z-index:5;background:#f8f4fde8;backdrop-filter:blur(6px);display:flex;flex-direction:column;align-items:center;justify-content:center}.pause-layer>span{font-size:45px;color:#ad95e2}.pause-layer h3{font-size:30px;margin:10px 0}.pause-layer p{font-size:12px;color:#9885ad;margin-bottom:22px}.game-result{text-align:center;padding:36px 24px 30px;position:relative;overflow:hidden}.result-symbol{font-size:52px;color:var(--purple);background:#f0e9fc;width:93px;height:93px;border-radius:30px;display:flex;align-items:center;justify-content:center;margin:0 auto 25px;transform:rotate(-8deg)}.game-result h3{font-size:31px;margin:10px 0 13px}.result-score{font-size:64px;color:var(--purple);font-weight:850;letter-spacing:-4px;line-height:1.2}.game-result p{font-size:12px;line-height:1.8;color:#9b8ba9;max-width:500px;margin:12px auto}.record-pill{display:inline-flex;background:#f2eed6;color:#9c8c3c;font-size:10px;font-weight:750;padding:7px 12px;border-radius:20px;margin:8px 0}.result-buttons{display:flex;justify-content:center;gap:11px;margin:23px 0 15px;flex-wrap:wrap}.game-result>.text-button{margin:5px 0 0}.settings-dialog{width:min(460px,calc(100% - 32px));max-height:calc(100dvh - 30px);padding:24px 28px 30px}.settings-header{display:flex;align-items:center;justify-content:space-between}.settings-header .icon-button{border:0}.settings-dialog h2{font-size:29px;margin:6px 0 10px}.settings-dialog h2>span{color:var(--purple)}.settings-dialog>p{font-size:12px;line-height:1.8;color:#94839f;margin-bottom:20px}.setting-row{display:flex;align-items:center;justify-content:space-between;padding:17px 0;gap:15px;border-bottom:1px solid #f1edf7}.setting-row strong{font-size:12px;display:block}.setting-row small{font-size:10px;color:#a390ae;display:block;margin-top:4px}.switch{appearance:none;background:#e7e0ef;width:38px;height:22px;border-radius:20px;position:relative;cursor:pointer;flex-shrink:0}.switch::before{content:"";width:16px;height:16px;position:absolute;top:3px;left:3px;background:#fff;border-radius:50%;transition:transform .2s}.switch:checked{background:var(--purple)}.switch:checked::before{transform:translateX(16px)}input[type=range]{width:112px;accent-color:var(--purple)}.setting-info{display:flex;gap:10px;background:#f7f4fb;padding:15px 12px;border-radius:11px;margin:22px 0 13px}.setting-info .icon{width:17px;height:17px;flex-shrink:0;color:#ac9cbd}.setting-info p{font-size:10px;color:#a08bad;line-height:1.7}.danger{color:#b88593;font-size:10px}.reset-actions{display:flex;gap:8px;margin-top:12px}#reset-confirm p{font-size:12px;color:#a17380;margin-top:15px}.about-details{font-size:12px;color:#a08daf;line-height:1.85}.about-details p{margin-bottom:16px}.about-details strong{color:#71627d}.about-details+.button{margin-top:7px}.toast{position:fixed;bottom:27px;left:50%;transform:translate(-50%,25px);z-index:100;color:#fff;background:#332842;box-shadow:0 9px 25px #32244233;padding:12px 20px;border-radius:11px;font-size:12px;opacity:0;pointer-events:none;transition:opacity .25s,transform .25s;max-width:90vw;text-align:center}.toast.show{opacity:1;transform:translate(-50%,0)}.confetti{position:fixed;inset:0;pointer-events:none;overflow:hidden;z-index:99}.confetti i{position:absolute;width:8px;height:14px;top:-20px;animation:confetti-fall 2.6s ease-in forwards}.noscript{position:fixed;inset:auto 0 0;padding:20px;background:#332842;color:#fff;text-align:center;z-index:100}
/* Jeux à grille et jeux de réflexes */
.puzzle-wrap{display:flex;flex-direction:column;align-items:center;width:100%;gap:16px;padding:22px 15px;min-height:330px;justify-content:center}.puzzle-note{font-size:11px;color:#9785aa;text-align:center;min-height:18px}.board{display:grid;gap:8px;max-width:100%;user-select:none;touch-action:manipulation}.tile{display:flex;align-items:center;justify-content:center;border:0;border-radius:10px;background:#e6ddef;color:#776085;font-size:25px;font-weight:800;min-width:0;position:relative;aspect-ratio:1}.tile:not(:disabled):hover{filter:brightness(1.04)}.board-2048{width:340px;grid-template-columns:repeat(4,1fr);padding:9px;border-radius:16px;background:#ddd1ed;gap:8px;touch-action:none}.board-2048 .tile{font-size:29px;background:#e9e0f0}.board-2048 .tile[data-value="2"]{background:#fff8e9;color:#a3906b}.board-2048 .tile[data-value="4"]{background:#f7df9a;color:#997b46}.board-2048 .tile[data-value="8"]{background:#f4b38a;color:#8f5642}.board-2048 .tile[data-value="16"]{background:#eb928e;color:#fff}.board-2048 .tile[data-value="32"]{background:#df77a0;color:#fff}.board-2048 .tile[data-value="64"]{background:#bb78c8;color:#fff}.board-2048 .tile[data-value="128"]{background:#9a6bd8;color:#fff;font-size:26px}.board-2048 .tile[data-value="256"]{background:#7954cd;color:#fff;font-size:26px}.board-2048 .tile[data-value="512"],.board-2048 .tile[data-value="1024"],.board-2048 .tile[data-value="2048"]{background:#63439d;color:#fff;font-size:22px}.board-memory{width:375px;grid-template-columns:repeat(4,1fr)}.memory-tile{background:var(--purple);color:#d8c6ff;box-shadow:0 4px 0 #6544cb;font-size:25px;transition:background .25s,transform .25s}.memory-tile.flipped{background:#fff;color:#5d4a75;box-shadow:0 4px 0 #e0d3ef;transform:rotateY(0)}.memory-tile.matched{background:#d1ecdd;box-shadow:0 4px 0 #b9d9c6;color:#557264}.board-simon{grid-template-columns:repeat(2,1fr);width:270px;gap:13px;transform:rotate(-4deg)}.simon-tile{border-radius:23px;opacity:.48;transition:opacity .12s,transform .12s}.simon-tile.lit{opacity:1;transform:scale(1.04);box-shadow:0 0 30px currentColor}.board-ttt{width:300px;grid-template-columns:repeat(3,1fr);gap:10px}.board-ttt .tile{background:#fff;color:var(--purple);box-shadow:0 4px 0 #e3d9f0;font-size:45px}.board-ttt .tile.o{color:#df9688}.board-ttt .tile.win{background:#d6efdd}.duel-labels{display:flex;gap:23px;font-size:11px;color:#9684a4;align-items:center}.duel-labels strong{background:#fff;padding:6px 10px;border-radius:7px;font-weight:650}.board-connect{grid-template-columns:repeat(7,1fr);width:400px;padding:12px;background:#a38bd3;border-radius:15px;gap:7px}.board-connect .tile{border-radius:50%;background:#e7dff2;box-shadow:inset 0 3px 0 #8970bc40;font-size:15px}.board-connect .tile.p1{background:#f6d57b;color:#a58532;box-shadow:inset 0 -4px 0 #c3a65266}.board-connect .tile.p2{background:#f4a49a;color:#ab7169;box-shadow:inset 0 -4px 0 #d5818266}.board-connect .tile.win{outline:3px solid white;outline-offset:-4px}.board-mines{grid-template-columns:repeat(8,1fr);width:370px;gap:5px}.board-mines .tile{background:#b49bda;box-shadow:0 3px 0 #9981c0;border-radius:5px;font-size:16px}.board-mines .tile.open{background:#ede6f5;box-shadow:none;color:#8a6ebc;cursor:default}.board-mines .tile.mine{background:#efafb4}.board-mines .tile.flag{color:#fff3cb}.board-sliding{width:310px;gap:9px}.board-sliding .tile{background:var(--purple);color:#fff;box-shadow:0 4px 0 #6141bf;font-size:28px}.board-sliding .tile.empty{background:#e5dbf0;box-shadow:none}.board-lights{width:310px;gap:9px}.board-lights .tile{background:#d4c7e5;box-shadow:0 4px 0 #c5b6d9;border-radius:12px}.board-lights .tile.lit{background:#f9d98d;box-shadow:0 4px 0 #dcbb70,0 0 15px #f9d98d60;color:#967747}.board-order{width:340px;grid-template-columns:repeat(4,1fr);gap:8px}.board-order .tile{background:#fff;color:var(--purple);box-shadow:0 3px 0 #e1d5ef;font-size:25px}.board-order .tile.done{background:#d3ebda;color:#74a582;opacity:.6}.reaction-zone{width:100%;min-height:330px;background:#eadcf8;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:14px;text-align:center;border:0;color:#8d68b7;padding:35px}.reaction-zone.wait{background:#f3ddd8;color:#af716b}.reaction-zone.go{background:#c9ecd7;color:#558667}.reaction-zone strong{font-size:33px;letter-spacing:-1px}.reaction-zone>span{font-size:13px}.reaction-zone>.reaction-symbol{font-size:51px}.color-word{font-size:50px;letter-spacing:-2px;font-weight:900;margin:5px 0 10px}.answer-buttons{display:grid;grid-template-columns:repeat(2,1fr);gap:11px;max-width:420px;width:100%}.answer-button{background:#fff;border:1px solid #e0d4ed;box-shadow:0 4px 0 #e7dcef;padding:16px 20px;border-radius:11px;font-size:15px;font-weight:750}.answer-button.correct{background:#c9ecd7}.answer-button.wrong{background:#f4c8ce}.round-progress{display:flex;gap:7px}.round-progress i{height:7px;width:22px;background:#ded3ec;border-radius:5px}.round-progress i.done{background:#aa91d6}.rps-options{display:flex;gap:14px;justify-content:center;margin:15px 0}.rps-option{background:#fff;padding:17px 20px;border:1px solid #e3d5ef;border-radius:16px;font-size:35px;box-shadow:0 4px 0 #dfd3eb}.rps-option small{display:block;font-size:10px;font-weight:700;color:#927ca4;margin-top:7px}.duel-arena{display:flex;align-items:center;justify-content:center;gap:35px;width:100%}.duel-hand{font-size:47px;text-align:center;width:90px}.duel-hand small{font-size:10px;display:block;color:#9e89ad}.duel-vs{font-size:13px;color:#c0accf;font-weight:800}.math-question{font-size:43px;font-weight:850;color:#8563bf;letter-spacing:-1px;padding:10px}.word-letters{display:flex;gap:7px;flex-wrap:wrap;justify-content:center}.letter-chip{width:39px;height:45px;display:flex;align-items:center;justify-content:center;background:#fff;border-radius:9px;box-shadow:0 4px 0 #e1d4ec;color:var(--purple);font-weight:800;font-size:23px}.word-form{display:flex;gap:8px;max-width:360px;width:100%;justify-content:center}.word-form input,.typing-input{width:100%;border:2px solid #dfd1f0;border-radius:10px;background:#fff;padding:13px 15px;outline:none;font-size:15px;color:var(--purple);min-width:0}.word-form input:focus,.typing-input:focus{border-color:#a38aca}.word-form .button{padding:10px 14px}.typing-text{max-width:600px;font-size:20px;line-height:1.8;color:#b8a9c9;background:white;border-radius:15px;padding:25px;text-align:left;letter-spacing:.3px;user-select:none}.typing-text .typed{color:#7960a1}.typing-text .wrong{background:#f1c7cf;color:#ae6c78}.typing-text .cursor{border-bottom:3px solid #b88de5}.typing-input{max-width:600px;font-size:13px}.typing-tip{font-size:10px;color:#a894b4}.feedback-pop{animation:pop .3s ease}.settings-dialog:open{animation:appear .18s ease}.game-dialog:open{animation:appear .18s ease}
@keyframes bob{0%,100%{transform:translateY(0) rotate(-1deg)}50%{transform:translateY(-9px) rotate(1deg)}}@keyframes pop{50%{transform:scale(1.04)}}@keyframes appear{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:translateY(0)}}@keyframes confetti-fall{to{transform:translate(var(--drift),105vh) rotate(700deg);opacity:0}}
body.no-motion *,body.no-motion *::before,body.no-motion *::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}.hero-art img{animation:none}}
@media(min-width:1600px){main{padding-top:43px}.hero{min-height:370px}.hero h2{font-size:51px}.hero p{font-size:14px}.hero-art{width:58%}.card-art{height:175px}.card-description{font-size:10px}.card-meta{font-size:9px}.card-title h3{font-size:18px}}
@media(max-width:1250px){.sidebar{width:196px;padding-left:16px;padding-right:16px}.page-shell{margin-left:196px}.brand{margin-left:8px}.nav-caption{font-size:8px;letter-spacing:1px}.nav-item{font-size:12px;gap:10px}.topbar{padding:0 30px}main{padding:30px 30px 0}.hero{padding:27px}.hero h2{font-size:38px}.hero-art{right:-56px;width:59%;min-width:260px;opacity:.95}.hero-copy{max-width:64%}.hero-foot{font-size:8px}.feature-grid{gap:18px;grid-template-columns:minmax(0,2.25fr) minmax(220px,1fr)}.hero-tag{font-size:8px}.daily-card{padding-left:20px;padding-right:20px}.games-grid{gap:15px}.card-body{padding:12px}.card-title h3{font-size:14px}.card-art{height:130px}.benefits>span{font-size:8px}.page-heading h1{font-size:28px}.hand-note{font-size:11px}.search{width:255px}.welcome{font-size:10px}.badges{grid-template-columns:repeat(3,1fr)}}
@media(max-width:1050px){.sidebar{width:190px}.page-shell{margin-left:190px}.topbar{padding:0 25px;height:78px}.welcome{display:none}.top-actions{width:100%}.search{width:100%;margin-right:auto}.hero-art{right:-71px;width:57%;min-width:225px}.hero h2{font-size:33px}.hero-copy{max-width:74%}.hero p{font-size:11px}.hero{min-height:331px;padding:26px 23px}.hero-tag{font-size:7px}.hero-foot{max-width:190px;line-height:1.6}.hero-art .orbit-sticker{right:55px;top:35px;width:47px;height:47px;font-size:9px}.daily-card{padding:21px 17px 15px}#daily-art{height:78px}.daily-bottom h2{font-size:23px}.daily-bottom p{font-size:10px}.daily-bottom .button{font-size:10px}.daily-top .eyebrow{font-size:8px}.feature-grid{grid-template-columns:minmax(0,1.65fr) minmax(200px,1fr);gap:15px}.games-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.hand-note{display:none}.benefits{gap:10px;flex-wrap:wrap;justify-content:flex-start}.benefits>span{width:calc(50% - 5px);font-size:9px}.stats-overview{grid-template-columns:repeat(2,1fr)}.footer{gap:12px}.footer>span{display:none}}
@media(max-width:780px){.sidebar{display:none}.page-shell{margin-left:0}.topbar{height:74px;padding:0 23px}.mobile-brand{display:flex;align-items:center;font-size:30px;letter-spacing:-2px;font-weight:900;color:var(--purple);gap:2px}.mobile-brand>span{font-size:24px;color:#a891cd}.top-actions{width:auto;flex:1;justify-content:flex-end;gap:12px}.search{max-width:300px;width:100%;margin-left:22px;margin-right:0}.top-actions .avatar{display:none}main{padding:28px 23px 0}.page-heading h1{font-size:28px}.page-heading p{font-size:11px}.feature-grid{grid-template-columns:minmax(0,2fr) minmax(190px,1fr)}.hero{min-height:328px}.hero-art{right:-50px}.hero-copy{max-width:75%}.hero-foot{max-width:none}.games-grid{gap:17px}.card-art{height:140px}.card-title h3{font-size:15px}.card-description{font-size:9px}.mobile-nav{display:flex;position:fixed;bottom:0;left:0;right:0;z-index:30;background:#ffffffec;backdrop-filter:blur(16px);border-top:1px solid #e9e1f0;padding:8px 12px calc(8px + env(safe-area-inset-bottom));justify-content:space-around}.mobile-nav button{display:flex;align-items:center;flex-direction:column;gap:4px;padding:5px 12px;background:none;font-size:9px;color:#b0a1bc;border-radius:10px;min-width:67px}.mobile-nav button.active{background:#f2ecfc;color:var(--purple)}.mobile-nav .icon{width:19px;height:19px}.footer{padding-bottom:100px}.toast{bottom:90px}.game-dialog{width:calc(100% - 24px);max-height:calc(100dvh - 24px)}.benefits{justify-content:space-between}.benefits>span{width:auto;font-size:8px}.game-stage{min-height:300px}.record-values{gap:12px}.record-row{gap:12px}}
@media(max-width:580px){.topbar{height:70px;padding:0 18px;gap:12px}.mobile-brand{font-size:27px}.top-actions{gap:9px}.search{margin-left:0;max-width:none;padding:10px;gap:7px}.search input{font-size:10px}.search kbd{display:none}.top-actions .icon-button{width:33px;height:33px}.top-actions .icon-button .icon{width:17px;height:17px}main{padding:27px 18px 0}.page-heading{margin-bottom:23px}.page-heading h1{font-size:27px;letter-spacing:-1.2px;margin-top:8px}.page-heading .eyebrow{font-size:7px;letter-spacing:1.4px}.page-heading p{font-size:10px}.feature-grid{grid-template-columns:1fr;gap:14px}.hero{min-height:325px;padding:25px}.hero h2{font-size:37px;margin-top:18px}.hero-copy{max-width:80%}.hero p{font-size:11px}.hero-art{width:61%;min-width:240px;right:-58px;top:12px;bottom:23px}.hero-art .orbit-sticker{top:14px;right:65px}.hero-foot{font-size:8px;margin-top:20px}.hero .button{font-size:11px;padding:11px 15px}.hero-tag{font-size:7px}.daily-card{padding:18px 20px;min-height:155px;display:grid;grid-template-columns:1fr 115px;grid-template-rows:auto 1fr;gap:4px 8px}.daily-top{grid-column:1/-1}.daily-spark{font-size:20px}.daily-top .eyebrow{font-size:8px}#daily-art{grid-column:2;grid-row:2;width:120px;height:113px;align-self:center}.daily-bottom{grid-column:1;grid-row:2;display:flex;flex-direction:column;align-items:flex-start;min-width:0}.daily-bottom .tag{display:none}.daily-bottom h2{font-size:23px;margin-top:1px}.daily-bottom p{font-size:9px;min-height:0;line-height:1.7;max-width:200px}.daily-bottom .button{font-size:9px;width:auto;min-height:32px;padding:8px 12px;gap:22px;margin-top:10px}.daily-status{font-size:7px;margin:6px 0 0}.benefits{padding:20px 2px;margin-bottom:25px;gap:12px 6px}.benefits>span{width:calc(50% - 4px);font-size:8px;gap:5px}.benefits .icon{height:12px;width:12px}.section-heading{gap:10px;margin-bottom:18px}.section-heading .eyebrow{font-size:6.5px;letter-spacing:1.1px}.section-heading h2{font-size:23px}.sort-label>span{display:none}.sort-label select{font-size:8px;max-width:120px;padding-bottom:2px}.filters{gap:6px;flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;margin:0 -18px 20px;padding:0 18px 3px}.filters::-webkit-scrollbar{display:none}.filter{flex-shrink:0;font-size:9px;padding:8px 12px}.games-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 12px}.card-art{height:124px}.card-body{padding:11px 11px 9px}.card-title h3{font-size:14px;letter-spacing:-.5px}.card-description{font-size:8px;line-height:1.65;height:27px;margin-top:4px}.card-meta{font-size:7px;padding-top:8px;margin-top:8px}.card-meta .icon{width:9px;height:9px}.card-play{width:21px;height:21px;flex-shrink:0}.card-play .icon{height:8px;width:8px}.card-badge{font-size:6px;top:9px;left:8px;padding:3px 5px}.favorite-button{width:25px;height:25px;top:8px;right:8px}.favorite-button .icon{width:13px;height:13px}.game-card{border-radius:13px}.bottom-banner{padding:20px 17px;margin:27px 0;align-items:flex-start;flex-direction:column;gap:14px}.bottom-banner>div{gap:12px}.bottom-banner>div>span{font-size:34px}.bottom-banner h3{font-size:14px}.bottom-banner p{font-size:9px;line-height:1.6}.bottom-banner .button{align-self:flex-end;padding:9px 12px;min-height:35px;font-size:9px}.footer{gap:11px;flex-wrap:wrap}.footer p{font-size:8px;max-width:205px;line-height:1.8}.footer button{font-size:8px}.footer-logo{font-size:23px}.game-header{padding:14px 16px}.game-mini-icon{display:none}.game-heading h2{font-size:19px}.game-heading .eyebrow{font-size:7px}.game-tools{gap:5px}.game-tools .icon-button{width:29px;height:29px}.game-intro{padding:19px 20px 23px}.game-intro h3{font-size:26px}.game-intro>p:not(.intro-sound){font-size:12px;line-height:1.7}.intro-art{height:115px;width:190px}.difficulty-choice{margin-top:19px}.difficulty-choice button{font-size:10px;padding:10px 8px}.game-hud{padding:15px 17px 12px}.game-hud strong{font-size:21px}.game-hud span{font-size:7px}.game-hud .hud-center strong{font-size:10px}.stage-wrap{margin:0 12px;border-radius:11px}.game-stage{min-height:215px}.game-stage canvas{max-height:51dvh;min-height:0}.game-bottom{padding:13px 16px 17px;align-items:flex-start;gap:8px;flex-direction:column}.game-bottom p{font-size:9px;max-width:100%}.game-bottom>div{align-self:flex-end;gap:18px}.game-controls{gap:7px;padding-top:10px}.control-button{padding:8px 12px;font-size:10px;min-width:39px}.puzzle-wrap{min-height:275px;padding:20px 12px;gap:13px}.board-2048{width:290px;gap:7px;padding:8px}.board-2048 .tile{font-size:25px}.board-memory{width:290px;gap:8px}.memory-tile{font-size:23px}.board-ttt{width:250px}.board-ttt .tile{font-size:38px}.board-connect{width:320px;gap:6px;padding:10px}.board-mines{width:305px;gap:4px}.board-mines .tile{font-size:13px}.board-sliding,.board-lights{width:265px;gap:8px}.board-order{width:270px;gap:8px}.board-order .tile{font-size:23px}.puzzle-note{font-size:10px}.reaction-zone{min-height:300px;padding:20px}.reaction-zone strong{font-size:29px}.reaction-zone>span{font-size:11px}.color-word{font-size:42px}.answer-buttons{gap:9px;max-width:300px}.answer-button{font-size:13px;padding:14px}.math-question{font-size:34px}.rps-options{gap:9px}.rps-option{font-size:29px;padding:14px 17px}.rps-option small{font-size:9px}.duel-arena{gap:25px}.duel-hand{font-size:38px;width:75px}.typing-text{font-size:15px;padding:17px;line-height:1.9}.typing-input{font-size:12px;padding:11px}.word-letters{gap:5px}.letter-chip{width:29px;height:37px;font-size:20px}.word-form input{font-size:13px}.result-score{font-size:57px}.game-result h3{font-size:28px}.result-symbol{font-size:45px;width:77px;height:77px;border-radius:24px;margin-bottom:18px}.game-result{padding:27px 20px}.result-buttons{flex-direction:column;align-items:stretch;max-width:280px;margin-left:auto;margin-right:auto}.result-buttons .button{font-size:11px}.stats-overview{gap:12px;margin-top:20px}.stat-tile{padding:20px}.stat-tile strong{font-size:26px}.stat-tile small{font-size:9px}.badges{gap:8px}.badge-item{padding:14px 5px}.badge-item strong{font-size:9px}.badge-item small{font-size:7px}.badge-symbol{font-size:25px}.big-spark{font-size:50px}.record-row{padding:12px;gap:8px;flex-wrap:wrap}.record-row .record-icon{width:36px;height:32px}.record-row h3{font-size:12px}.record-values{gap:9px}.record-value{min-width:30px}.record-value strong{font-size:13px}.record-value span{font-size:6px}.record-row .button{display:none}.stats-empty{padding:35px 20px;font-size:12px}.settings-dialog{padding:22px}.setting-row small{font-size:9px}}
@media(max-width:350px){main{padding-left:13px;padding-right:13px}.page-heading h1{font-size:24px}.hero{padding:22px 20px}.hero h2{font-size:32px}.hero-art{opacity:.7;right:-83px}.card-title h3{font-size:12px}.card-art{height:105px}.card-body{padding:10px 8px}.card-description{font-size:7px}.card-meta{font-size:6px}.game-hud{padding-left:13px;padding-right:13px}.board-connect{gap:4px}.game-tools .icon-button{width:27px;height:27px}}

/* Le canevas garde son ratio, même en paysage : les touches restent exactes. */
.game-stage canvas{width:min(100%,84dvh);height:auto;max-height:none}
.game-dialog>.confetti{position:absolute;inset:0;z-index:10}
#daily-art>svg>rect:first-child{fill:transparent}
@media(max-width:580px){.game-stage canvas{width:min(100%,76.5dvh)}}

@media(max-width:580px){.hero-copy{max-width:100%}.hero h2>span{white-space:nowrap}.hero p{max-width:200px}.hero-art{right:-75px}.hero-foot{max-width:235px}}
@media(max-width:350px){.filters{margin-left:-13px;margin-right:-13px;padding-left:13px;padding-right:13px}.hero-art{right:-105px}.hero-foot{max-width:215px}}

/* Contraste et taille des textes utiles. */
.card-description{color:#7b6c87;font-size:10px;height:32px}
.card-meta{color:#81718e;font-size:9px}
.game-bottom p,.puzzle-note{color:#7e6c8b}
.setting-row small,.typing-tip{color:#806b8b}
.board-order .tile.next{background:#decffb;outline:2px solid #a385cf;outline-offset:-2px}
@media(max-width:580px){.card-description{font-size:9px;height:30px}.card-meta{font-size:8px}}

/* PICO 2 — une progression douce et un univers à personnaliser. */
.top-actions{gap:12px}.language-picker{display:flex;align-items:center;gap:5px;border:1px solid var(--line);padding:8px 9px;border-radius:11px;background:var(--paper);flex-shrink:0;color:var(--purple)}.language-picker select{font-size:11px;border:0;background:transparent;color:var(--ink);max-width:89px;outline-offset:6px}.wallet-button{display:flex;align-items:center;gap:6px;background:#fff3d6;color:#8c672b;padding:9px 13px;border-radius:11px;white-space:nowrap;font-size:12px}.wallet-button>span{font-size:18px}.topbar .search{max-width:265px}.welcome{font-size:10px}.topbar{gap:12px}.top-actions .avatar{font-size:24px}
.journey-strip{display:flex;align-items:center;gap:17px;padding:20px 23px;background:var(--paper);border:1px solid var(--line);border-radius:18px;margin:0 0 33px}.journey-icon{width:45px;height:45px;border-radius:15px;background:var(--lavender);color:var(--purple);font-size:28px;display:grid;place-items:center;flex-shrink:0}.journey-copy{min-width:175px;max-width:320px;flex:1}.journey-copy strong{font-size:13px}.journey-copy strong small{font-size:10px;font-weight:500;color:var(--muted)}.journey-copy>span{font-size:9px;color:var(--muted);display:block;margin-top:6px}.journey-copy .progress-track{margin-top:8px}.journey-mission{margin:auto auto auto 10px;max-width:250px}.journey-mission small{font-size:7px;letter-spacing:1px;color:var(--muted);display:block}.journey-mission strong{font-size:11px;margin-top:5px;display:block}.journey-strip>.button{font-size:11px;padding:10px 15px;white-space:nowrap}.progress-track{height:7px;border-radius:99px;background:var(--line);overflow:hidden}.progress-track i{height:100%;display:block;border-radius:inherit;background:var(--purple);transition:width .4s ease}.adventure-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:26px}.adventure-heading .eyebrow{font-size:8px}.adventure-heading h1{font-size:39px;margin:12px 0}.adventure-heading h1>span{color:var(--purple)}.adventure-heading p{color:var(--muted);font-size:13px}.adventure-doodle{font-size:75px;color:#cab7ee;transform:rotate(15deg);margin-right:15px}.profile-card{display:flex;align-items:center;gap:24px;background:var(--paper);border:1px solid var(--line);padding:27px 32px;border-radius:24px;position:relative;overflow:hidden}.profile-orb{position:relative;width:83px;height:83px;flex-shrink:0;display:grid;place-items:center;font-size:46px;border-radius:28px;background:var(--lavender);color:var(--purple);transform:rotate(-5deg)}.profile-orb>span{position:absolute;bottom:-5px;right:-5px;border:3px solid var(--paper);border-radius:50%;width:28px;height:28px;display:grid;place-items:center;font-size:12px;font-weight:800;color:white;background:var(--purple);transform:rotate(5deg)}.profile-details{max-width:355px;flex:1}.profile-details form{display:flex;gap:8px;align-items:center}.profile-details input{min-width:0;width:100%;border:0;background:transparent;border-bottom:1px dashed var(--line);padding:6px 0;font-size:21px;font-weight:800;letter-spacing:-.6px;color:var(--ink)}.profile-details input::placeholder{color:var(--muted);opacity:.8}.profile-details .icon-button{width:28px;height:28px;font-size:16px;color:var(--purple);flex-shrink:0}.level-caption{display:flex;justify-content:space-between;margin:11px 0 7px;font-size:11px;color:var(--muted)}.level-caption strong{color:var(--purple)}.profile-wallet{margin-left:auto;border-left:1px solid var(--line);padding-left:30px;max-width:245px}.profile-wallet>span{display:block;font-size:8px;letter-spacing:1.5px;color:var(--muted)}.profile-wallet>strong{display:block;font-size:32px;letter-spacing:-1px;color:#a67c30;line-height:1.4}.profile-wallet>small{font-size:10px;color:var(--muted);display:block;max-width:170px}.adventure-tabs{display:flex;gap:8px;overflow-x:auto;padding:27px 0 29px}.adventure-tabs button{display:flex;align-items:center;gap:8px;padding:12px 21px;border-radius:11px;background:transparent;font-size:14px;color:var(--muted);white-space:nowrap}.adventure-tabs button.active{background:var(--lavender);color:var(--purple);font-weight:700}.adventure-tabs small{font-size:9px;opacity:.7}.adventure-section-title{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:23px}.adventure-section-title h2{font-size:25px}.adventure-section-title p{font-size:11px;color:var(--muted);margin-top:9px}.round-pill{padding:7px 11px;border-radius:8px;background:var(--paper);border:1px solid var(--line);font-size:10px;color:var(--muted);white-space:nowrap}.mission-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.mission-card{border:1px solid var(--line);border-radius:19px;background:var(--paper);padding:23px}.mission-top{display:flex;align-items:center;justify-content:space-between;font-size:9px;color:var(--muted);gap:7px}.mission-symbol{width:39px;height:39px;display:grid;place-items:center;background:#f1e8fd;border-radius:13px;font-size:22px;color:#9575c4}.mission-card:nth-child(2) .mission-symbol{background:#e0f1e7;color:#65a681}.mission-card:nth-child(3) .mission-symbol{background:#fff0d3;color:#b49a4c}.mission-card h3{font-size:18px;line-height:1.4;margin:18px 0;min-height:50px}.progress-caption{display:flex;justify-content:space-between;font-size:9px;color:var(--muted);margin-bottom:8px}.progress-caption strong{color:var(--ink)}.reward-line{display:flex;gap:12px;align-items:center;font-size:12px}.mission-card .reward-line{margin:18px 0}.coin-label{color:#9c752c;font-weight:800}.xp-label{color:var(--purple);font-weight:800}.mission-card .button{width:100%;font-size:11px;min-height:40px;justify-content:center}.mission-card.claimed{background:color-mix(in srgb,var(--mint) 12%,var(--paper))}.mission-card.claimed .progress-track i{background:#81b795}.new-missions{display:flex;align-items:center;justify-content:space-between;gap:15px;margin:20px 0;padding:20px;border-radius:15px;background:var(--lavender);font-size:12px}.new-missions .button{font-size:12px}.daily-bonus-note{display:flex;align-items:center;gap:15px;margin:24px 0 34px;padding:19px 22px;border:1px dashed #d9cfab;border-radius:15px;background:#fff9e9;color:#98722f}.daily-bonus-note>span:first-child{font-size:30px}.daily-bonus-note strong{font-size:12px}.daily-bonus-note p{font-size:10px;line-height:1.7;margin-top:3px;max-width:570px}.bonus-dots{display:flex;gap:4px;margin-left:auto;flex-shrink:0}.bonus-dots i{font-style:normal;color:#dfcfaa;font-size:23px}.bonus-dots i.done{color:#b38735}.chapter-card{display:flex;background:var(--lavender);border-radius:23px;padding:32px 40px;gap:45px;align-items:center}.chapter-art{color:var(--purple);font-size:30px;display:flex;align-items:center;gap:5px;transform:rotate(-9deg);opacity:.75}.chapter-art span{font-size:100px}.chapter-copy{flex:1}.chapter-copy .eyebrow{font-size:8px}.chapter-copy h2{font-size:27px;margin:12px 0 8px}.chapter-copy p{font-size:11px;color:var(--muted);margin-bottom:18px}.chapter-copy .button{font-size:10px;padding:10px 16px}.chapter-foot{display:flex;justify-content:space-between;align-items:center;margin:8px 0 18px}.chapter-foot>span{font-size:10px;color:var(--muted)}.chapter-foot .reward-line{font-size:11px}.chapter-steps{display:flex;gap:7px;margin-top:23px;flex-wrap:wrap}.chapter-steps>span{width:24px;height:24px;display:grid;place-items:center;font-size:8px;border-radius:50%;border:1px solid color-mix(in srgb,var(--purple) 30%,transparent);color:var(--purple);opacity:.5}.chapter-steps>span.done{background:var(--purple);color:white;opacity:1}.chapter-steps>span.current{background:var(--paper);border-color:var(--purple);opacity:1}.adventure-note{display:flex;gap:10px;align-items:flex-start;font-size:10px;color:var(--muted);line-height:1.8;margin:23px 0 8px;max-width:760px}.shop-filters{display:flex;gap:8px;margin-bottom:20px}.shop-filters button{background:var(--paper);border:1px solid var(--line);padding:9px 16px;border-radius:99px;color:var(--muted);font-size:11px}.shop-filters button.active{background:var(--ink);color:var(--paper);border-color:var(--ink)}.shop-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.shop-card{border:1px solid var(--line);border-radius:18px;overflow:hidden;background:var(--paper)}.shop-card.equipped{border-color:var(--purple);box-shadow:0 0 0 1px var(--purple)}.shop-preview{height:150px;display:grid;place-items:center;position:relative;background:var(--lavender);color:var(--purple)}.shop-preview>span{font-size:62px;line-height:1}.palette-dots{display:flex;position:absolute;bottom:13px;right:15px}.palette-dots i{width:19px;height:19px;border-radius:50%;border:2px solid #ffffffb0;margin-left:-4px}.shop-card-body{padding:17px}.shop-card h3{font-size:16px;margin-bottom:15px}.shop-item-footer{display:flex;align-items:center;justify-content:space-between;gap:10px}.shop-item-footer>span{font-size:10px;color:var(--muted)}.shop-item-footer .button{font-size:10px;padding:9px 12px;min-height:33px}.missing-coins{display:block;font-size:9px;color:var(--muted);margin-top:9px}.effect-preview>i,.effect-preview>b{position:absolute;font-size:26px;font-weight:500;font-style:normal;left:25%;top:25%;opacity:.5;transform:rotate(-22deg)}.effect-preview>b{left:auto;right:22%;top:55%;font-size:18px}.effect-hearts{color:#cf86a0;background:#fcecf1}.effect-bubbles{color:#6fa6b3;background:#e5f2f2}.effect-confetti{color:#ab8aca;background:#f1eafa}.achievement-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px}.achievement-card{display:flex;gap:13px;padding:20px 16px;background:var(--paper);border:1px solid var(--line);border-radius:16px}.achievement-symbol{position:relative;width:39px;height:45px;flex-shrink:0;display:grid;place-items:center;font-size:30px;background:var(--bg);color:#b4adbc;border-radius:12px}.achievement-symbol small{position:absolute;bottom:-4px;right:-4px;display:grid;place-items:center;width:16px;height:16px;font-size:10px;border-radius:50%;background:var(--paper);color:var(--muted)}.achievement-card>div:last-child{flex:1;min-width:0}.achievement-card h3{font-size:13px;line-height:1.35;margin-bottom:5px;letter-spacing:-.3px}.achievement-card p{font-size:9px;color:var(--muted);min-height:30px;line-height:1.6}.achievement-card .progress-track{height:4px;margin-top:11px}.achievement-bottom{font-size:8px;display:flex;justify-content:space-between;gap:5px;color:var(--muted);margin-top:6px}.achievement-card.unlocked{border-color:#d6d8ba;background:color-mix(in srgb,var(--mint) 8%,var(--paper))}.achievement-card.unlocked .achievement-symbol{background:#f6e9c3;color:#aa883f}.achievement-card.unlocked .achievement-symbol small{color:#65a477}.mastery-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.mastery-card{display:flex;gap:15px;border:1px solid var(--line);border-radius:17px;background:var(--paper);padding:15px}.mastery-art{width:75px;align-self:stretch;padding:0;overflow:hidden;border-radius:11px;background:var(--lavender);flex-shrink:0}.mastery-art svg{width:100%;height:100%;min-height:90px}.mastery-copy{flex:1;min-width:0}.mastery-copy h3{font-size:14px;margin:2px 0 6px}.master-stars{display:inline-flex;gap:3px;color:var(--line);font-size:14px;letter-spacing:0}.master-stars .lit{color:#d5ac55}.mastery-copy small{font-size:9px;color:var(--muted);display:block;margin:4px 0 8px}.mastery-copy .progress-track{height:4px}.mastery-copy>span:last-child{font-size:8px;color:var(--muted);display:block;margin-top:8px}.result-rewards{margin:20px auto 12px;max-width:430px;padding:17px 20px;border-radius:16px;background:var(--lavender);border:1px solid var(--line)}.result-loot{display:flex;gap:24px;align-items:center;justify-content:center;font-size:23px}.result-rewards>p{font-size:11px;margin-top:7px;color:var(--muted);line-height:1.6}.result-mastery{display:flex;gap:12px;justify-content:center;align-items:center;margin-top:14px;font-size:10px}.result-badges{display:flex;gap:6px;justify-content:center;flex-wrap:wrap;margin-top:13px}.result-badges>span{background:var(--paper);color:var(--purple);border-radius:7px;padding:5px 9px;font-size:10px}.backup-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:15px}.backup-actions .button{font-size:10px;padding:10px 13px;min-height:36px}.backup-help{font-size:10px!important;margin:10px 0 20px!important;color:var(--muted)}.setting-row select{border:1px solid var(--line);border-radius:8px;padding:8px;background:var(--paper);color:var(--ink);font-size:11px;max-width:140px}.import-preview{display:flex;flex-wrap:wrap;gap:12px;padding:20px;border-radius:15px;background:var(--lavender);font-size:13px;margin:20px 0}.import-preview strong{width:100%;font-size:20px;overflow-wrap:anywhere}
/* Les thèmes changent le cadre ; chaque jeu conserve sa palette lisible. */
body[data-theme="lagoon"]{--bg:#f0f8f5;--purple:#23827f;--purple-dark:#176c69;--lavender:#dceeea;--line:#d9e9e4;--mint:#bde1df;--ink:#243e3a;--muted:#718980}
body[data-theme="peach"]{--bg:#fff6ef;--purple:#bd6950;--purple-dark:#9a513c;--lavender:#fce4d9;--line:#f0e0d5;--mint:#e8cabc;--ink:#493029;--muted:#9a8075}
body[data-theme="berry"]{--bg:#fff3f8;--purple:#ad467f;--purple-dark:#8c3565;--lavender:#f7dfe9;--line:#efd9e2;--mint:#edbed8;--ink:#452a3a;--muted:#987d8b}
body[data-theme="forest"]{--bg:#f5f6ed;--purple:#567a4f;--purple-dark:#3e603a;--lavender:#e2e9d5;--line:#dee2cf;--mint:#c7d6b4;--ink:#303b29;--muted:#808c73}
body[data-theme="midnight"]{--bg:#211c30;--paper:#2c263d;--ink:#ede8f7;--muted:#b4a8c7;--purple:#b398f5;--purple-dark:#9579d7;--lavender:#3b3053;--line:#463958;--mint:#b5d1bc;--shadow:0 12px 35px #08051030;color:var(--ink)}
body[data-theme="midnight"] .sidebar,body[data-theme="midnight"] .topbar,body[data-theme="midnight"] .game-card,body[data-theme="midnight"] .settings-dialog,body[data-theme="midnight"] .game-dialog,body[data-theme="midnight"] .stat-tile,body[data-theme="midnight"] .record-row,body[data-theme="midnight"] .badge-item,body[data-theme="midnight"] .game-intro{background:var(--paper);color:var(--ink)}
body[data-theme="midnight"] .search,body[data-theme="midnight"] .little-note,body[data-theme="midnight"] .difficulty-choice,body[data-theme="midnight"] .setting-info,body[data-theme="midnight"] .mobile-nav{background:#332b45;color:var(--ink)}
body[data-theme="midnight"] .search input,body[data-theme="midnight"] .sort-label select{color:var(--ink)}
body[data-theme="midnight"] .card-title h3,body[data-theme="midnight"] .card-description,body[data-theme="midnight"] .card-meta,body[data-theme="midnight"] .game-bottom p,body[data-theme="midnight"] .setting-row small,body[data-theme="midnight"] .game-intro>p{color:var(--muted)}
body[data-theme="midnight"] .hero,body[data-theme="midnight"] .daily-card,body[data-theme="midnight"] .bottom-banner{color:#382c51}
body[data-theme="midnight"] .hero .button,body[data-theme="midnight"] .daily-card .button{--purple:#7654e8;--purple-dark:#5c3ccc}
body[data-theme="midnight"] .game-stage{--purple:#7654e8;--purple-dark:#5c3ccc;--ink:#29243c;--paper:#fff;--bg:#f8f7fb;--line:#eae7f0;color:#29243c}
body[data-theme="midnight"] .wallet-button{background:#4b3c32;color:#f1cf8d}body[data-theme="midnight"] .coin-label,body[data-theme="midnight"] .profile-wallet>strong{color:#e1c080}body[data-theme="midnight"] .daily-bonus-note{background:#393126;border-color:#6b593c;color:#deca9f}body[data-theme="midnight"] .outline{background:transparent;border-color:var(--line);color:var(--ink)}body[data-theme="midnight"] .primary{color:#241b36}body[data-theme="midnight"] .nav-item.active,body[data-theme="midnight"] .filter.active,body[data-theme="midnight"] .mobile-nav button.active{background:var(--lavender);color:var(--purple)}
@media(max-width:1350px){.welcome{display:none}.top-actions{width:100%}.topbar .search{max-width:none;flex:1}.journey-mission{max-width:210px}.achievement-grid,.mastery-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:1050px){.journey-mission{display:none}.profile-card{padding:24px;gap:18px}.profile-wallet{padding-left:20px}.profile-wallet small{max-width:135px}.mission-card{padding:17px}.mission-card h3{font-size:16px}.chapter-card{padding:27px;gap:25px}.chapter-art span{font-size:70px}.shop-grid{gap:14px}.shop-item-footer{align-items:flex-start;flex-direction:column;gap:10px}.shop-card h3{font-size:14px}.shop-preview{height:130px}.adventure-heading h1{font-size:32px}}
@media(max-width:780px){.topbar{padding:0 20px;gap:15px}.topbar .search{margin-left:0;min-width:80px}.top-actions{width:auto}.language-picker select{max-width:75px}.journey-strip{gap:14px}.profile-wallet{max-width:190px}.adventure-tabs button{padding:11px 18px}.achievement-grid,.mastery-grid{gap:12px}.mission-grid{gap:12px}.mobile-nav button{min-width:0;padding:5px 10px;flex:1;font-size:8px}.chapter-art{display:none}.shop-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.shop-item-footer{flex-direction:row;align-items:center}}
@media(max-width:580px){.topbar{height:111px;display:grid;grid-template-columns:auto 1fr;align-content:center;gap:10px 20px;padding:12px 18px;position:relative}.top-actions{display:contents}.mobile-brand{grid-column:1;grid-row:1}.language-picker{grid-column:2;grid-row:1;justify-self:start;margin-left:8px;padding:6px 7px}.language-picker select{max-width:77px;font-size:10px}.wallet-button{position:absolute;right:59px;top:16px;padding:6px 10px;font-size:11px}.top-actions>#sound-toggle{position:absolute;right:17px;top:16px}.topbar .search{grid-column:1/-1;grid-row:2;width:100%;padding:8px 12px;margin:0;font-size:12px}.topbar .search input{font-size:11px}.journey-strip{padding:15px;gap:11px;flex-wrap:wrap;margin-bottom:28px}.journey-icon{width:36px;height:36px;font-size:24px;border-radius:11px}.journey-copy{min-width:140px;max-width:none}.journey-copy>span{font-size:8px}.journey-strip>.button{margin-left:auto;padding:7px 10px;font-size:9px;min-height:30px}.journey-copy strong{font-size:12px}.adventure-heading h1{font-size:28px;margin:10px 0}.adventure-heading p{font-size:11px;max-width:240px}.adventure-heading .eyebrow{font-size:6px;letter-spacing:1px}.adventure-doodle{font-size:43px;margin-right:0}.profile-card{padding:20px;gap:17px;flex-wrap:wrap;border-radius:20px}.profile-orb{width:59px;height:59px;font-size:33px;border-radius:21px}.profile-orb>span{width:24px;height:24px;font-size:10px}.profile-details{min-width:150px}.profile-details input{font-size:19px}.profile-wallet{max-width:none;width:100%;border-left:0;border-top:1px solid var(--line);padding:13px 0 0;display:grid;grid-template-columns:1fr auto;align-items:center;gap:3px}.profile-wallet>strong{font-size:24px;grid-column:2;grid-row:1/3}.profile-wallet>span{font-size:7px}.profile-wallet>small{max-width:none;font-size:9px}.adventure-tabs{gap:5px;padding:23px 0}.adventure-tabs button{padding:10px 11px;font-size:11px;gap:5px}.adventure-tabs small{display:none}.adventure-section-title{gap:12px;margin-bottom:20px}.adventure-section-title h2{font-size:21px}.adventure-section-title p{font-size:10px;max-width:260px;line-height:1.7}.round-pill{font-size:8px;padding:6px 8px}.mission-grid{grid-template-columns:1fr}.mission-card{padding:19px;display:grid;grid-template-columns:1fr 110px;gap:0 20px}.mission-top{grid-column:1/-1}.mission-card h3{grid-column:1/-1;min-height:0;margin:14px 0 17px;font-size:18px}.mission-card .progress-caption,.mission-card .progress-track{grid-column:1}.mission-card .progress-track{align-self:center}.mission-card .reward-line{grid-column:1;margin:12px 0 0;font-size:11px}.mission-card .button{grid-column:2;grid-row:3/6;align-self:center;padding:9px;white-space:normal;font-size:10px;min-height:42px}.mission-symbol{width:32px;height:32px;font-size:19px}.mission-top{font-size:9px}.daily-bonus-note{padding:15px;gap:11px;flex-wrap:wrap}.daily-bonus-note>div{flex:1}.daily-bonus-note strong{font-size:11px}.daily-bonus-note p{font-size:9px}.bonus-dots{display:none}.chapter-card{padding:24px}.chapter-copy h2{font-size:25px}.chapter-copy .eyebrow{font-size:7px}.chapter-steps{gap:5px}.chapter-steps>span{width:19px;height:19px;font-size:7px}.achievement-grid{grid-template-columns:1fr}.achievement-card{padding:19px;gap:17px}.achievement-card h3{font-size:14px}.achievement-card p{font-size:10px;min-height:0}.achievement-bottom{font-size:9px}.mastery-grid{grid-template-columns:1fr}.mastery-art{width:84px}.mastery-art svg{min-height:70px}.mastery-copy h3{font-size:15px}.mastery-copy small{font-size:10px}.mastery-copy>span:last-child{font-size:9px}.shop-card-body{padding:13px}.shop-item-footer{flex-direction:column;align-items:stretch}.shop-item-footer .button{justify-content:center;font-size:10px}.shop-card h3{font-size:14px;min-height:34px;line-height:1.3;margin-bottom:10px}.shop-item-footer>span{font-size:9px}.shop-preview{height:124px}.shop-preview>span{font-size:47px}.shop-filters button{font-size:10px;padding:8px 13px}.result-loot{font-size:20px;gap:18px}.result-rewards{padding:14px}.result-mastery{flex-direction:column;gap:4px}.new-missions{align-items:flex-start;flex-direction:column}.new-missions .button{font-size:10px}.adventure-note{font-size:9px}}
@media(max-width:350px){.language-picker{margin-left:0}.language-picker select{max-width:68px}.topbar{gap:10px 9px}.wallet-button{padding:5px 7px;right:55px}.mobile-nav button{font-size:7px}.adventure-tabs button{font-size:10px;padding:9px}.chapter-card{padding:20px}.chapter-steps>span{width:17px;height:17px}.journey-copy>span{max-width:180px}}
body[data-theme="midnight"] .bottom-banner .button{color:#382c51;border-color:#9180ab}
.result-badges b{font-weight:600}
.adventure-tabs{scrollbar-width:none}.adventure-tabs::-webkit-scrollbar{display:none}
