.learning-game{box-sizing:border-box;color:#2d4157;background:#fff;border:1px solid #d3e1f0;border-radius:18px;width:100%;max-width:900px;margin:12px auto;padding:18px;box-shadow:0 6px 18px #29456208}.learning-game .learning-game-heading{justify-content:space-between;align-items:center;gap:14px;margin-bottom:16px;display:flex}.learning-game h1{color:#007db4;margin:0 0 5px;font-size:25px;font-weight:750}.learning-game p{margin:0;font-size:13px;line-height:1.5}.learning-game .learning-game-heading img{object-fit:contain;flex-shrink:0}.learning-game button{font:inherit;cursor:pointer;font-size:13px;font-weight:650;line-height:1.3}.learning-game button:focus-visible,.learning-game input:focus-visible{outline-offset:3px;outline:3px solid #eaa82b}.learning-game .game-primary{color:#fff;background:#007db4;border:1px solid #0079ad;border-radius:9px;padding:9px 16px;box-shadow:0 2px #006994}.learning-game .game-primary:hover{color:#fff;background:#006e9f}.learning-game .learning-game-setup{background:#f5f9ff;border:1px solid #d7e4f2;border-radius:12px;flex-direction:column;gap:14px;max-width:520px;margin:0 auto;padding:16px;display:flex}.learning-game fieldset{border:0;min-width:0;margin:0;padding:0}.learning-game legend{float:none;width:auto;margin-bottom:8px;font-size:13px;font-weight:700}.learning-game .game-modes>div{flex-wrap:wrap;gap:7px;display:flex}.learning-game .game-modes button{color:#365880;white-space:nowrap;background:#fff;border:1px solid #c5d8ee;border-radius:9px;flex:1;padding:9px 12px}.learning-game .game-modes button[aria-pressed=true]{color:#006a99;background:#e3f4ff;border-color:#007db4;box-shadow:inset 0 0 0 1px #007db4}.learning-game .game-card-options{flex-wrap:wrap;gap:20px;display:flex}.learning-game label{cursor:pointer;align-items:center;gap:7px;margin:0;font-size:13px;display:inline-flex}.learning-game input{accent-color:#007db4;margin:0}.learning-game .game-help{color:#61758d;font-size:12px}.learning-game .learning-game-stats{flex-wrap:wrap;gap:8px;margin-bottom:14px;display:flex}.learning-game .learning-game-stats>span{background:#f2f7fe;border:1px solid #d4e2f2;border-radius:10px;flex:1;justify-content:space-between;align-items:center;gap:10px;min-width:110px;padding:9px 12px;font-size:12px;display:flex}.learning-game .learning-game-stats b{color:#315580;white-space:nowrap;font-size:14px}.learning-game .learning-game-actions{flex-wrap:wrap;justify-content:flex-end;gap:8px;margin-top:14px;display:flex}.learning-game .learning-game-actions>button:not(.game-primary){color:#365880;background:#f5f9ff;border:1px solid #c5d8ee;border-radius:9px;padding:9px 12px}.learning-game .game-feedback{color:#365880;min-height:32px;padding:12px 0 0}.learning-game .game-result{background:#f0faf6;border:1px solid #c4e4d5;border-radius:12px;padding:18px}.learning-game .game-result h2{color:#257550;margin:0 0 8px;font-size:20px}.learning-game .memory-grid{grid-template-columns:repeat(var(--memory-columns,5), minmax(0, 1fr));gap:9px;max-width:700px;margin:0 auto;display:grid}.learning-game .memory-card{perspective:800px;background:0 0;border:0;min-width:0;height:102px;padding:0}.learning-game .memory-card-inner{width:100%;height:100%;transform-style:preserve-3d;transition:transform .25s;display:block;position:relative}.learning-game .memory-card.revealed .memory-card-inner{transform:rotateY(180deg)}.learning-game .memory-card-front,.learning-game .memory-card-back{backface-visibility:hidden;overflow-wrap:anywhere;border:1px solid #b8cfea;border-radius:11px;justify-content:center;align-items:center;padding:6px;display:flex;position:absolute;inset:0}.learning-game .memory-card-front{color:#4a70a5;background:#e8f1ff;font-size:26px;box-shadow:0 3px #d0def2}.learning-game .memory-card-back{color:#29435b;background:#fff;font-size:13px;transform:rotateY(180deg)}.learning-game .memory-card.matched .memory-card-back{color:#257550;background:#eaf8ef;border-color:#7fc19c}.learning-game .sorting-pool{justify-content:center;margin:10px 0 16px;display:flex}.learning-game .sorting-element{touch-action:none;cursor:grab;background:#edf5ff;border:2px solid #b3cdec;border-radius:12px;flex-direction:column;justify-content:center;align-items:center;width:124px;height:88px;display:flex}.learning-game .sorting-element strong{color:#2c5682;font-size:28px}.learning-game .sorting-element span{font-size:12px}.learning-game .sorting-groups{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;display:grid}.learning-game .sorting-group{text-align:left;color:#304e72;background:#f7faff;border:1px solid #c5d8ee;border-radius:10px;align-items:center;gap:9px;min-height:48px;padding:12px;display:flex}.learning-game .sorting-group:hover:not(:disabled),.learning-game .sorting-group.is-over{background:#e3f4ff;border-color:#007db4}.learning-game .sorting-group:disabled{cursor:default;opacity:.65}.learning-game .sorting-group-color{border:1px solid #0002;border-radius:5px;flex-shrink:0;width:15px;height:15px}.learning-game .sorting-answer{background:#f5f9ff;border-radius:10px;justify-content:space-between;align-items:center;gap:10px;min-height:55px;margin-top:12px;padding:10px;display:flex}.learning-game .sorting-answer.correct{background:#eaf8ef}.learning-game .sorting-answer.incorrect{background:#fff3e4}.learning-game .sorting-answer .game-primary{white-space:nowrap}.learning-game .sorting-history{scrollbar-width:thin;max-height:320px;margin:12px 0 0;padding:0;list-style:none;overflow:auto}.learning-game .sorting-history li{border-bottom:1px solid #d5e4dc;padding:8px;font-size:12px}.learning-game .sorting-history small{color:#8e5323;margin-top:3px;display:block}.learning-game.sorting-overlay{border:0;width:124px;margin:0;padding:0}@media (max-width:600px){.learning-game{margin:8px auto;padding:12px}.learning-game h1{font-size:22px}.learning-game .learning-game-heading img{width:48px;height:48px}.learning-game .learning-game-stats>span{flex:calc(50% - 4px);min-width:0}.learning-game .memory-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}.learning-game .memory-card{height:96px}.learning-game .sorting-groups{grid-template-columns:repeat(2,minmax(0,1fr))}.learning-game .sorting-answer{flex-wrap:wrap}.learning-game .sorting-group{gap:6px;padding:10px 8px;font-size:11px}.learning-game .game-modes button{padding:8px}.learning-game .learning-game-setup{padding:12px}}@media (prefers-reduced-motion:reduce){.learning-game .memory-card-inner{transition:none}}@media (max-width:700px){.learning-game .game-modes button,.learning-game .game-primary,.learning-game .learning-game-actions button{min-height:44px}}
