#kids-memory{scroll-margin-top:20px}#kids-memory .memory-shell{background:linear-gradient(135deg,#fff9e9,#f0e8ff 60%,#e4f7ff);border:1px solid #dbc9ef;border-radius:30px;padding:clamp(20px,4vw,38px);box-shadow:0 8px 0 #dcd3ed55;color:#56367d}#kids-memory .memory-top{display:flex;justify-content:space-between;align-items:start;gap:20px}#kids-memory h2{color:#603092;margin:10px 0 16px}#kids-memory .memory-free{display:inline-block;white-space:nowrap;border:1px solid #d8c780;background:#fff0ad;border-radius:20px;padding:7px 14px;font-size:12px;font-weight:bold}#kids-memory .memory-intro{max-width:670px;font-size:15px;line-height:1.8}#kids-memory .memory-controls{display:flex;flex-wrap:wrap;align-items:end;gap:14px;margin:23px 0}#kids-memory label{display:flex;flex-direction:column;gap:6px;font-size:13px;font-weight:bold}#kids-memory select{font:inherit;color:#56367d;min-height:46px;border:1px solid #cdb6e5;border-radius:13px;background:#fff;padding:9px 30px 9px 12px;max-width:100%}#kids-memory .memory-button{min-height:46px;border:2px solid white;border-radius:15px;background:linear-gradient(#ffe993,#ffd043);padding:10px 20px;color:#59308a;font:bold 14px 'Trebuchet MS',sans-serif;box-shadow:0 4px 0 #deb44255;cursor:pointer}#kids-memory .memory-stats{display:flex;flex-wrap:wrap;gap:10px;font-size:13px}#kids-memory .memory-stats span{border:1px solid #e0d4ee;background:#fff9;padding:8px 13px;border-radius:20px}#kids-memory #memory-status{min-height:48px;font-size:14px;margin:15px 0 8px;line-height:1.7}#kids-memory .memory-board{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:clamp(8px,2vw,15px);max-width:680px;margin:0 auto}#kids-memory .memory-card{position:relative;min-width:0;width:100%;aspect-ratio:1.18;border:3px solid #fff;border-radius:19px;background:linear-gradient(145deg,#a87ce1,#7043ab);color:#fff2ad;box-shadow:0 5px 0 #67438a40;cursor:pointer;transition:background .15s,transform .15s;display:flex;align-items:center;justify-content:center;padding:8px}#kids-memory .memory-card:not(.is-open):hover{transform:translateY(-3px)}#kids-memory .memory-face{font-size:clamp(30px,5vw,64px);line-height:1.2}#kids-memory .memory-card-number{position:absolute;right:8px;bottom:5px;font-size:11px;color:inherit;opacity:.75}#kids-memory .memory-card.is-open{background:#fffaf2;color:#65428a;border-color:#d5b8ed}#kids-memory .memory-card.is-matched{background:#e3f6e9;border-color:#90c9a5;box-shadow:0 4px 0 #8fc2a244;cursor:default}#kids-memory .memory-card.is-matched:after{content:'✓';position:absolute;left:7px;top:3px;color:#32714a;font-size:18px;font-weight:bold}#kids-memory .memory-empty,#kids-memory .memory-win{text-align:center;border:1px dashed #cbb6df;border-radius:22px;padding:27px 20px;background:#fff9}#kids-memory .memory-empty>span{display:block;font-size:54px}#kids-memory .memory-win{margin-top:22px;background:#fff7ce;border-style:solid}#kids-memory .memory-win h3{margin:0 0 10px}#kids-memory .memory-footnote{font-size:12px;line-height:1.8;margin:20px 0 0;color:#776187}#kids-memory [hidden]{display:none!important}#kids-memory button:focus-visible,#kids-memory select:focus-visible{outline:3px solid #5d2699;outline-offset:4px}.night #kids-memory .memory-shell{background:linear-gradient(140deg,#30284b,#42315d);border-color:#75618b;color:#efe4ff}.night #kids-memory h2{color:#f4e8ff}.night #kids-memory .memory-stats span,.night #kids-memory .memory-empty{background:#514264;color:#f4e8ff;border-color:#8b769b}.night #kids-memory .memory-footnote{color:#e1d1ed}.night #kids-memory .memory-win{color:#56367d}@media(max-width:520px){#kids-memory .memory-top{display:block}#kids-memory h2{font-size:29px}#kids-memory .memory-card{border-radius:12px;border-width:2px;aspect-ratio:.95}#kids-memory .memory-controls{gap:12px}#kids-memory label{flex:1 1 140px}#kids-memory .memory-button{width:100%}#kids-memory .memory-face{font-size:32px}}@media(prefers-reduced-motion:reduce){#kids-memory .memory-card{transition:none}}
