.games-page{max-width:920px;margin:auto}.memory-game{max-width:760px!important;margin:0 auto;padding:clamp(16px,3vw,30px)!important;border:1px solid #8cbbe7!important;border-radius:28px!important;background:radial-gradient(circle at 100% 0,#e9dfff,transparent 45%),linear-gradient(145deg,#f2fbff,#fff 60%,#fff0f8)!important;box-shadow:0 16px 50px #133a6714;color:#182d4a}.memory-hero{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:20px}.memory-kicker{font-size:11px;letter-spacing:.15em;color:#006cb7;font-weight:800}.memory-hero h1{font-size:clamp(30px,6vw,46px);line-height:1.12;margin:7px 0;color:#152d50;letter-spacing:-.05em}.memory-hero p{color:#5d708a;font-size:14px;margin:7px 0}.memory-mascot{font-size:clamp(48px,12vw,80px);filter:drop-shadow(0 9px 5px #b9b2d866);transform:rotate(-8deg)}.memory-levels{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;padding:6px;border-radius:17px;background:#e7edf8;margin:16px 0}.memory-levels button{border:0;border-radius:12px;background:transparent;min-width:0;min-height:48px;padding:8px 2px;color:#536780;font-size:13px;font-weight:750;cursor:pointer}.memory-levels button[aria-pressed=true]{background:linear-gradient(130deg,#006cb7,#7d3ac1);color:#fff;box-shadow:0 4px 10px #354f9e35}.memory-levels small{display:block;font-weight:400;font-size:10px;margin-top:3px}.memory-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin:18px 0 12px}.memory-stat{border-radius:15px;border:1px solid #d8e3f1;background:#ffffffbd;padding:11px;text-align:center;box-shadow:0 3px 0 #dfe9f180}.memory-stat strong{display:block;font-size:clamp(22px,5vw,30px);font-variant-numeric:tabular-nums;color:#183b64;line-height:1.3}.memory-stat span{font-size:11px;color:#62758c;font-weight:650}.memory-game progress{display:block;width:100%;height:6px;accent-color:#cf006e;border:0;border-radius:20px;overflow:hidden}.memory-game progress::-webkit-progress-bar{background:#e2eaf5}.memory-game progress::-webkit-progress-value{background:linear-gradient(90deg,#006cb7,#cf006e);border-radius:20px}.memory-board{position:relative}.memory-game .memory-grid{grid-template-columns:repeat(var(--memory-columns,4),minmax(0,1fr));gap:clamp(8px,2vw,14px);margin:20px 0}.memory-game .memory-card{position:relative;aspect-ratio:1.08;min-height:44px;border:1.5px solid #ffffffa6;border-radius:clamp(10px,2vw,18px);background:linear-gradient(145deg,#067dc3,#254ab5);box-shadow:0 5px 0 #173a85,0 8px 15px #1f438726;color:#fff;overflow:hidden;cursor:pointer;transition:transform .18s,box-shadow .18s,background .2s;opacity:1}.memory-card:nth-child(3n+2){background:linear-gradient(145deg,#8459cb,#573aa9)}.memory-card:nth-child(3n){background:linear-gradient(145deg,#db3987,#ad1466);box-shadow:0 5px 0 #861250,0 8px 15px #85235322}.memory-game .memory-card:hover:not(:disabled){transform:translateY(-3px)}.memory-game .memory-card:focus-visible{outline:3px solid #f4ad21;outline-offset:4px}.memory-back{position:absolute;inset:0;display:grid;place-items:center;font-size:clamp(26px,7vw,44px);color:#ffffffc9;background:radial-gradient(circle,#ffffff13 35%,transparent 36%)}.memory-face{display:grid;place-items:center;font-family:'Apple Color Emoji','Segoe UI Emoji','Noto Color Emoji',sans-serif;font-size:clamp(30px,8vw,58px);line-height:1;position:absolute;inset:0;opacity:0;transform:scale(.6);transition:opacity .15s,transform .2s}.memory-game .memory-card[data-open=true]{background:#fff;border-color:#8db5de;box-shadow:0 4px 0 #c4d5e9,0 6px 14px #244b7612;transform:translateY(2px)}.memory-card[data-open=true] .memory-back{opacity:0}.memory-card[data-open=true] .memory-face{opacity:1;transform:scale(1)}.memory-game .memory-card[data-matched=true]{background:#edfff7;border-color:#5ec69b;box-shadow:0 3px 0 #8fd5ba}.memory-toolbar{display:flex;justify-content:space-between;flex-wrap:wrap;gap:8px;margin:17px 0 10px}.memory-toolbar button,.memory-pause button,.memory-win button{border:1px solid #b7cce3;border-radius:11px;min-height:42px;padding:9px 13px;background:#fff;color:#17436c;font-size:12px;font-weight:700;cursor:pointer}.memory-toolbar button:disabled{opacity:.45;cursor:default}.memory-toolbar [data-game-reset],.memory-win button{background:#006cb7;color:white;border-color:#006cb7}.memory-bottom{display:flex;justify-content:space-between;gap:8px;flex-wrap:wrap;font-size:11px;color:#62758c}.memory-message{font-size:13px;text-align:center;color:#396583;min-height:2.8em;margin:12px 0 0}.memory-pause{position:absolute;inset:0;display:grid;place-content:center;text-align:center;background:#eaf2ffeF;border:1px solid #c6d7ef;border-radius:18px;z-index:2;gap:10px}.memory-pause strong{font-size:24px}.memory-win{padding:20px;border:1px solid #bca8e9;border-radius:18px;background:linear-gradient(120deg,#f0e7ff,#e3f8ff);text-align:center;margin-top:16px}.memory-win h2{margin:4px 0;color:#3f2180}.memory-win p{font-size:14px;color:#516782}.memory-win .memory-trophy{font-size:44px}.memory-pause[hidden],.memory-win[hidden]{display:none}.memory-game [data-best]{color:#9c2474;font-weight:700}@media(max-width:359px){.memory-levels{gap:3px}.memory-levels button{font-size:11px}.memory-game .memory-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}@media(prefers-reduced-motion:reduce){.memory-game *{transition:none!important;animation:none!important}}[data-theme=dark] .memory-game{background:radial-gradient(circle at 100% 0,#312450,transparent 50%),#14243b!important;color:#e8f3ff}[data-theme=dark] .memory-hero h1{color:#eff7ff}[data-theme=dark] .memory-levels{background:#233750}[data-theme=dark] .memory-stat{background:#213550;border-color:#3c5371}[data-theme=dark] .memory-stat strong{color:#ecf6ff}[data-theme=dark] .memory-hero p,[data-theme=dark] .memory-stat span,[data-theme=dark] .memory-bottom,[data-theme=dark] .memory-message{color:#adc5e0}
