
#milo-memory{font:inherit;color:#343044}.mm-shell,.mm-play{max-width:1200px;margin:24px auto;padding:clamp(18px,4vw,48px);border-radius:28px;background:#fffaf3;box-sizing:border-box}.mm-shell h1,.mm-play h1{font-size:clamp(28px,5vw,48px);line-height:1.15;margin:8px 0 24px}.mm-eyebrow{text-transform:uppercase;letter-spacing:.12em;color:#765a8c;font-weight:700;font-size:12px}.mm-lede{font-size:clamp(17px,2vw,21px);line-height:1.6;max-width:780px}.mm-button{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:13px 20px;min-height:48px;border:1px solid #765a8c;border-radius:100px;background:#765a8c;color:white!important;font:inherit;font-weight:700;text-decoration:none;cursor:pointer;box-sizing:border-box}.mm-button:focus-visible,.mm-card:focus-visible{outline:4px solid #efb83e;outline-offset:4px}.mm-button:hover{background:#5c416f}.mm-gallery{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr));gap:24px;margin:32px 0}.mm-theme{border-radius:24px;overflow:hidden;background:white;border:1px solid #e6ddd1}.mm-theme>img{width:100%;height:230px;object-fit:cover;display:block}.mm-copy{padding:22px}.mm-copy h2{margin-top:0}.mm-placeholder{min-height:100px;display:grid;place-items:center;background:#eee5f2;color:#765a8c;font-size:50px}.mm-rule{border:1px solid #dbcedf;border-radius:12px;margin:14px 0;padding:12px;min-width:0}.mm-rule legend{font-size:13px;font-weight:700;padding:0 5px}.mm-condition{font-size:14px;margin:9px 0}.mm-condition progress{display:block;width:100%;height:12px;accent-color:#765a8c;margin-top:7px}.mm-note{font-size:13px;color:#625970;line-height:1.5;margin-top:28px}.mm-notice{padding:15px;background:#fff1ce;border-radius:12px}.mm-parents{margin-top:32px;border-top:1px solid #ded4df;padding-top:20px;line-height:1.6}.mm-parents summary{cursor:pointer;font-weight:700}.mm-levels{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,250px),1fr));gap:20px;margin:24px 0}.mm-level{background:white;border-radius:20px;padding:20px;margin:15px 0;border:1px solid #e6ddd1}.mm-play{position:relative;isolation:isolate;overflow:hidden;min-height:650px;background:#efe6f3}.mm-play-bg{position:absolute;inset:0;background-size:cover;background-position:center;z-index:-1}.mm-play-content{position:relative}.mm-game-head{display:flex;justify-content:space-between;align-items:center;gap:14px;flex-wrap:wrap}.mm-game-head h1{margin:0 0 12px;font-size:clamp(24px,4vw,36px)}.mm-counters{display:flex;flex-wrap:wrap;gap:12px;margin:18px 0}.mm-counters>span{background:#fffcf2ed;padding:10px 16px;border-radius:100px}.mm-encourage{min-height:48px;background:#fffcf2ed;border-radius:14px;padding:12px;box-sizing:border-box;line-height:1.4}.mm-board{display:grid;grid-template-columns:repeat(var(--mm-cols,4),minmax(0,1fr));gap:clamp(8px,1.5vw,16px);max-width:850px;margin:22px auto}.mm-card{padding:0;border:0;background:none;aspect-ratio:1/1;perspective:1000px;cursor:pointer;min-width:0;-webkit-tap-highlight-color:transparent}.mm-flipper{display:block;width:100%;height:100%;position:relative;transform-style:preserve-3d;transition:transform .38s ease}.mm-visible .mm-flipper{transform:rotateY(180deg)}.mm-back,.mm-front{box-sizing:border-box;display:grid;place-items:center;position:absolute;inset:0;border:3px solid white;border-radius:clamp(10px,2vw,18px);overflow:hidden;backface-visibility:hidden;box-shadow:0 4px 10px #241b3825;background:#fffcf3}.mm-back{background:var(--mm-color,#765a8c)}.mm-back img{width:85%;height:85%;object-fit:contain}.mm-front{transform:rotateY(180deg);padding:4px}.mm-front img{width:100%;height:100%;object-fit:contain;display:block}.mm-matched .mm-front{border-color:#53a77c;box-shadow:0 0 0 2px #53a77c}.mm-card:disabled{cursor:default;opacity:1}.mm-game-actions{display:flex;gap:12px;flex-wrap:wrap;justify-content:center;margin-top:25px}.mm-victory{background:#fffaf3f5;border:2px solid #c3a35b;border-radius:24px;padding:24px;text-align:center;animation:mm-celebrate .7s ease}.mm-victory>span{font-size:36px}.mm-victory .mm-button{margin:6px}.mm-empty{background:white;padding:28px;border-radius:20px;line-height:1.6}@keyframes mm-celebrate{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:translateY(0)}}@media(max-width:600px){.mm-shell,.mm-play{margin:12px 0;border-radius:18px;padding:16px}.mm-board{grid-template-columns:repeat(var(--mm-mobile-cols,4),minmax(0,1fr));gap:8px}.mm-play{min-height:580px}.mm-game-head .mm-button{font-size:13px;padding:10px 14px}.mm-theme>img{height:210px}.mm-victory{padding:18px}.mm-victory .mm-button{width:100%;margin:6px 0}.mm-play .mm-note{background:#fffaf3e6;padding:10px;border-radius:12px}}@media(prefers-reduced-motion:reduce){.mm-flipper{transition:none}.mm-victory{animation:none}}

/* Cartes mystères et révélations communes aux jeux, sans illustration cachée en arrière-plan. */
.milo-mystery-art{display:grid;place-items:center;aspect-ratio:4/3;background:linear-gradient(145deg,#f6eddf,#e7e0ee);color:#68517b;border-radius:16px;overflow:hidden}
.milo-mystery-art svg{width:42%;max-width:150px;height:auto}
.mm-theme>.milo-mystery-art{height:230px;aspect-ratio:auto;border-radius:0}
.milo-reveal{max-width:620px;margin:20px auto;padding:20px;border:1px solid #c6ac69;border-radius:24px;background:#fffaf3;color:#343044;text-align:center;overflow:hidden}
.milo-reveal-picture{position:relative;max-width:420px;margin:auto;isolation:isolate}
.milo-reveal-picture>.milo-mystery-art{position:absolute;inset:0;z-index:2;pointer-events:none;opacity:0}
.milo-reveal-identity{aspect-ratio:4/3;display:grid;place-items:center;background:#f4ecdf;border-radius:16px;overflow:hidden}
.milo-reveal-identity img{width:100%;height:100%;object-fit:contain}
.milo-reveal-stars{position:absolute;inset:5% 0 auto;z-index:3;color:#9a6c15;pointer-events:none;opacity:0;font-size:28px}
.milo-reveal h2{margin:16px 0 8px;overflow-wrap:anywhere}
.milo-reveal p{line-height:1.5;overflow-wrap:anywhere}
.milo-reveal-next{font:inherit;font-weight:700;padding:12px 18px;min-height:48px;border:1px solid #68517b;border-radius:20px;background:#68517b;color:#fff;cursor:pointer}
.milo-reveal-next:focus-visible{outline:3px solid #a86c10;outline-offset:4px}
.milo-reveal-enter .milo-mystery-art{animation:milo-unlock .85s ease-out both}
.milo-reveal-enter .milo-reveal-identity{animation:milo-discover .85s ease-out both}
.milo-reveal-enter .milo-reveal-stars{animation:milo-stars 1.1s ease-out both}
@keyframes milo-unlock{0%,20%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(1.04)}}
@keyframes milo-discover{0%,20%{opacity:0;transform:scale(.98)}100%{opacity:1;transform:scale(1)}}
@keyframes milo-stars{0%,100%{opacity:0;transform:translateY(0)}40%{opacity:1;transform:translateY(-8px)}}
@media(max-width:600px){.mm-theme>.milo-mystery-art{height:210px}.milo-reveal{padding:16px}}
@media(prefers-reduced-motion:reduce){.milo-reveal-enter *{animation:none!important;transition:none!important}.milo-reveal-picture>.milo-mystery-art,.milo-reveal-stars{display:none}}

.milo-reveal-enter h2{animation:milo-discover .85s ease-out both}
