/* Porte d'entrée des jeux : réutilise intégralement les classes du sélecteur commun. */
.ef-game-intro-active > :not(.ef-activity-header):not(.ef-game-start){display:none!important}
.ef-game-intro-active > .ef-game-start{display:block!important}
.ef-game-start{max-width:1200px;margin:10px auto 0;width:100%;box-sizing:border-box;padding:10px 8px}
.ef-game-start[hidden]{display:none!important}
.ef-game-start .ef-story-head h2{margin:0;font-size:clamp(21px,2vw,27px)}
.ef-game-start .ef-game-entry-status{font-size:12px;color:#5b7181;min-height:16px}
.ef-game-start .album-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.ef-game-start .album-tile{min-width:0;min-height:77px;width:100%;display:flex;align-items:center;gap:10px;padding:9px;text-align:left;border:1px solid #e2e8ea;border-radius:13px;background:#fff;color:#17364c;cursor:pointer}
.ef-game-start .album-tile img,.ef-game-start .album-tile .album-icon{width:45px;height:58px;flex:0 0 45px;object-fit:contain;border-radius:5px}
.ef-game-start .album-title{display:block;font-size:12px;line-height:1.35;font-weight:700}
.ef-game-start .album-count{display:block;margin-top:4px;font-size:10px;color:#65788a}
.ef-game-start .ef-free-choice{border-color:#ead5a1;background:#fff9e9}
.ef-game-start .ef-free-choice .ef-free-icon{display:grid;place-items:center;width:45px;height:45px;flex:0 0 45px;font-size:25px;border-radius:10px;background:#ffe9b5}
.ef-game-start .album-tile:is(:hover,:focus-visible){border-color:#bd951c;outline-offset:2px}
@media(max-width:950px){.ef-game-start .album-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:660px){.ef-game-start .album-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}

.ef-game-picto-results{display:grid;grid-template-columns:repeat(auto-fill,minmax(70px,1fr));gap:7px;max-height:290px;overflow-y:auto}
.ef-game-picto-card{min-width:0;border:1px solid #e2e8ea;background:#fff;border-radius:10px;padding:5px;cursor:pointer;color:#17364c}
.ef-game-picto-card img{width:100%;height:47px;object-fit:contain}
.ef-game-picto-card span{display:block;text-align:center;font-size:10px;overflow-wrap:anywhere}
.ef-game-picto-card:hover{border-color:#d59d20;background:#fff9e7}

#view-memory .memory-source-tabs{display:none!important}
#view-memory .ef-memory-switch-source{margin:0 0 10px}

/* Le choix du mode reste un paramètre métier ; plus d'étape de navigation intermédiaire. */
.ef-game-mode-compact{display:inline-flex;flex-wrap:wrap;align-items:center;gap:8px;color:#244259;font-size:12px;font-weight:700}
.ef-game-mode-compact select{border:1px solid #d8e2e7;border-radius:9px;background:#fff;color:#173b54;padding:8px 10px;min-height:36px;font:inherit}
