/*
 * Levels 2 and 3 in the games (task LV2; js/levels.js, js/match-game.js):
 * the level bar, its pills and lock badges, the end card's level part, and
 * the matcher's bits for harder levels. Loaded by the 9 drag-drop matchers,
 * Memory and ABC Match. The LV1 pages and Farm Animals keep their own inline
 * copy of the bar and end card styles.
 *
 * The bar starts hidden and stays hidden until js/levels.js shows it
 * (switched on, a harder level ready), so with the switch off nothing here
 * shows. No display rule may beat [hidden]: each element that sets one says
 * so for [hidden] too.
 */
.lv-bar{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:8px}
.lv-bar[hidden]{display:none}
.lv-pill{height:40px;min-width:72px;padding:0 12px;border-radius:999px;border:2px solid #1e2a4a;background:rgba(255,255,255,.9);color:#1e2a4a;font:400 16px/1 "Fredoka One",cursive;display:inline-flex;align-items:center;justify-content:center;gap:4px;cursor:pointer}
.lv-pill[hidden]{display:none}
.lv-pill[aria-pressed="true"]{background:#1e2a4a;color:#fff}
.lv-pill.lv-locked{border-style:dashed;opacity:.85}
.lv-pill .lv-lock{font-size:13px}
.lv-pill:focus-visible{outline:3px solid #2563eb;outline-offset:2px}

/* ABC Match has no control bar: its level bar sits at the bottom of the screen. */
.lv-bar-fixed{position:fixed;left:50%;bottom:16px;transform:translateX(-50%);z-index:20;padding:8px 12px;border-radius:999px;background:rgba(255,255,255,.8);box-shadow:0 -5px 15px rgba(0,0,0,.1)}

/* The end card's level part (FKLevels.finished). */
.lv-end{display:flex;flex-direction:column;gap:10px;width:100%;margin-top:12px}
.lv-end:empty{display:none}
.lv-locked-btn{width:100%;padding:12px;border-radius:16px;border:0;background:#f7c65a;color:#1e2a4a;font:400 18px/1.2 "Fredoka One",cursive;cursor:pointer}
.lv-locked-btn .lv-lock{margin-left:4px}
.lv-limit{margin:0;font:600 15px/1.4 Inter,system-ui,sans-serif;color:#1e2a4a}
.lv-grownups{background:none;border:0;padding:4px;color:#1e2a4a;font:600 14px/1.3 Inter,system-ui,sans-serif;text-decoration:underline;cursor:pointer}
.lv-app{font:500 13px/1.3 Inter,system-ui,sans-serif;color:rgba(30,42,74,.75)}
.lv-locked-btn:focus-visible,.lv-grownups:focus-visible,.lv-app:focus-visible,.mg-next-level:focus-visible,.mg-lv-btn:focus-visible{outline:3px solid #2563eb;outline-offset:2px}

/* "Next: Level n" under Play Again (created hidden by the game; .hidden hides it). */
.mg-next-level{width:100%;margin-top:12px;padding:12px;border-radius:12px;border:0;background:#1e2a4a;color:#fff;font:400 20px/1.2 "Fredoka One",cursive;cursor:pointer}

/* More than 4 pairs a round (.mg-compact): the phone's 3×2 grid is with the
   rest of the matchers' phone layout in src/site.css. */

/* A listen level's slot: a speaker to tap; the word shows once matched. */
.mg-listen{font-size:2.5rem;line-height:1}
.drop-slot[role="button"]{cursor:pointer}
.drop-slot[role="button"]:focus-visible{outline:3px solid #2563eb;outline-offset:2px}

/* A level on its way, or a failed load, where the tiles go. */
.mg-lv-msg{display:flex;flex-direction:column;align-items:center;gap:10px;padding:16px;text-align:center;font:600 16px/1.4 Inter,system-ui,sans-serif;color:#1e2a4a}
.mg-lv-msg p{margin:0}
.mg-lv-btn{min-width:180px;padding:10px 16px;border-radius:14px;border:0;background:#1e2a4a;color:#fff;font:400 17px/1.2 "Fredoka One",cursive;cursor:pointer}
