.memory-game-bg{filter:saturate(1.08) contrast(1.02)}.memory-game-shade{background:radial-gradient(circle at 50% 44%,rgba(255,209,112,.04),rgba(5,22,24,.2) 78%),linear-gradient(180deg,rgba(5,22,27,.08),rgba(14,31,27,.2))}.memory-game-shell{border:1px solid rgba(238,205,135,.7);background:linear-gradient(180deg,rgba(11,39,43,.91),rgba(17,49,45,.86));box-shadow:0 18px 50px rgba(10,16,13,.42),inset 0 1px 0 rgba(255,244,203,.18);backdrop-filter:blur(4px)}.memory-topbar{color:#fff4d2}.memory-topbar h1{color:#fff3d1!important;text-shadow:0 2px 8px rgba(0,0,0,.42)}.memory-topbar p{color:#d5c292!important}.memory-topbar>a{color:#f2d58c!important}.memory-controls select{border-color:#a98548!important;background:rgba(255,248,226,.96)!important;box-shadow:0 3px 12px rgba(7,22,19,.2)}.memory-hud{border:1px solid rgba(218,176,86,.65);background:linear-gradient(180deg,rgba(8,38,43,.96),rgba(12,53,54,.94));box-shadow:0 4px 14px rgba(5,21,20,.28),inset 0 1px 0 rgba(255,231,171,.12)}.memory-hud>div:first-child{divide-color:rgba(223,190,116,.3)}.memory-hud-stat>div:first-child{color:#d9c99f!important}.memory-hud-stat>div:last-child{color:#fff3d1!important}.memory-hud-progress{background:#183f3d!important}.memory-hud-progress>div{background:linear-gradient(90deg,#6ec66f,#d7b44a)!important}.memory-board-stage{border:2px solid #a7762f;background:radial-gradient(circle at 50% 40%,rgba(71,128,80,.22),transparent 58%),linear-gradient(145deg,rgba(20,78,55,.97),rgba(9,53,43,.98));box-shadow:inset 0 0 0 3px rgba(229,188,91,.17),inset 0 0 35px rgba(1,23,18,.34),0 7px 0 rgba(55,31,14,.44),0 14px 28px rgba(4,17,14,.25)}.memory-board-stage:before{content:"";pointer-events:none;position:absolute;inset:.45rem;border:1px solid rgba(221,184,93,.28);border-radius:.8rem}.memory-board-area{position:relative;z-index:1}.memory-board{padding:.3rem;border-radius:1rem}.memory-card{filter:drop-shadow(0 5px 5px rgba(3,18,17,.28))}.memory-card-back{border-color:#d3a743!important;background:#092f42!important;box-shadow:0 3px 0 #071f26,0 7px 12px rgba(0,0,0,.32),inset 0 0 0 1px rgba(255,229,149,.24)}.memory-card:not(:disabled):hover .memory-card-back{border-color:#f0c866!important;box-shadow:0 4px 0 #071f26,0 10px 18px rgba(0,0,0,.34),0 0 13px rgba(246,197,78,.2)}.memory-card-face{box-shadow:0 3px 0 rgba(50,35,19,.3),0 8px 15px rgba(0,0,0,.2),inset 0 0 18px rgba(218,180,103,.08)}.memory-card.is-matched .memory-card-face{box-shadow:0 3px 0 rgba(34,85,48,.35),0 0 18px rgba(113,225,116,.34),inset 0 0 20px rgba(117,209,112,.12)}.memory-card.is-mismatch .memory-card-face{animation:memory-wrong .2s ease-in-out 2}.memory-toast{border:1px solid rgba(234,198,110,.42);box-shadow:0 4px 14px rgba(0,0,0,.24)}@keyframes memory-wrong{50%{transform:rotateY(180deg) translateX(2px)}}.memory-completion-backdrop{background:rgba(4,28,29,.52);backdrop-filter:blur(2px)}.memory-completion{background:linear-gradient(180deg,#fff3ce,#f3dfae)!important;box-shadow:0 18px 55px rgba(8,24,18,.45),inset 0 0 0 3px rgba(255,255,255,.28)!important}.memory-unlock{position:relative;overflow:hidden;border-color:#d9a62d!important;background:radial-gradient(circle at 50% 40%,#fffbd8,#f8dda0)!important;box-shadow:0 6px 0 rgba(122,80,20,.16),0 0 28px rgba(245,190,52,.28)!important}.memory-unlock:before{content:"";position:absolute;inset:-40%;pointer-events:none;background:conic-gradient(from 0deg,transparent,rgba(255,207,68,.12),transparent 18%,rgba(255,207,68,.12),transparent 38%);animation:memory-reward-glow 9s linear infinite}.memory-unlock>*{position:relative}@keyframes memory-reward-glow{to{transform:rotate(1turn)}}.memory-collection-backdrop{background:rgba(4,24,27,.7);backdrop-filter:blur(4px)}.memory-collection{border:1px solid rgba(238,200,112,.82);background:radial-gradient(circle at 82% 4%,rgba(255,219,130,.22),transparent 22%),linear-gradient(180deg,#fff1c9,#ecd49f);box-shadow:0 -12px 40px rgba(12,20,14,.36),inset 0 0 0 3px rgba(255,255,255,.2)}.memory-collection-stats>div{border-color:#d1ac62!important;background:rgba(255,248,222,.78)!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.65)}.memory-collection-card{box-shadow:0 4px 0 rgba(76,52,24,.13),0 7px 14px rgba(56,39,20,.08)}.memory-collection-card[aria-pressed=true]{box-shadow:0 4px 0 rgba(28,93,56,.24),0 0 18px rgba(71,169,91,.24)}.memory-collection-card:not(:disabled):hover{box-shadow:0 6px 0 rgba(76,52,24,.13),0 10px 18px rgba(56,39,20,.12)}.memory-collection-card:focus-visible{outline:3px solid #0b6976;outline-offset:2px}@media(max-height:760px) and (min-width:641px){.memory-game-shell{padding:.5rem!important}.memory-topbar h1{font-size:1.15rem!important}.memory-controls{margin-top:.3rem!important}.memory-controls button,.memory-controls select{height:2rem!important}.memory-hud-wrap{margin-top:.3rem!important}.memory-hud{padding-block:.25rem!important}.memory-board-stage{margin-top:.35rem!important;padding:.3rem!important}.memory-collection{max-height:94dvh!important;padding:1rem!important}.memory-collection-grid,.memory-collection-stats{margin-top:.65rem!important}}@media(max-width:640px){.memory-game{padding:.22rem!important}.memory-game-shell{padding:.38rem!important;border-radius:.9rem!important}.memory-topbar{gap:.3rem!important}.memory-topbar h1{font-size:1rem!important}.memory-topbar>a{font-size:10px!important}.memory-controls{margin-top:.3rem!important;gap:.3rem!important}.memory-controls button,.memory-controls select{height:2rem!important;font-size:10px!important}.memory-hud-wrap{margin-top:.3rem!important}.memory-hud{padding-block:.25rem!important}.memory-hud-stat{padding-inline:.15rem!important}.memory-hud-stat>div:first-child{font-size:7px!important;letter-spacing:.04em!important}.memory-hud-stat>div:last-child{font-size:.7rem!important;white-space:nowrap}.memory-hud-progress{margin-top:.2rem!important;height:.22rem!important}.memory-board-stage{margin-top:.3rem!important;padding:.18rem!important;border-radius:.85rem!important}.memory-board-stage:before{inset:.25rem;border-radius:.65rem}.memory-board{padding:.18rem!important}.memory-toast{top:.15rem!important;max-width:90%!important;padding:.15rem .5rem!important;font-size:8.5px!important}.memory-completion-backdrop{padding:.3rem!important}.memory-completion{max-height:calc(100% - .25rem)!important;padding:.65rem!important;border-radius:1rem!important}.memory-unlock{margin-top:.5rem!important;padding:.5rem!important}.memory-collection{max-height:94dvh!important;padding:.8rem!important;border-radius:1.15rem 1.15rem 0 0!important}.memory-collection h2{font-size:1.35rem!important}.memory-collection-stats{margin-top:.65rem!important;gap:.3rem!important}.memory-collection-stats>div{padding:.35rem .15rem!important}.memory-collection-stats>div>div:first-child{font-size:7px!important}.memory-collection-stats>div>div:last-child{font-size:.9rem!important}.memory-collection-grid{margin-top:.65rem!important;gap:.4rem!important}.memory-collection-card{padding:.35rem!important;border-radius:.8rem!important}.memory-collection-card>div:first-child{width:62%!important}.memory-collection-card>div:last-child{margin-top:.3rem!important}}@media(max-width:380px){.memory-game-shell{padding:.28rem!important}.memory-topbar h1{font-size:.92rem!important}.memory-hud-stat>div:first-child{font-size:6.5px!important}.memory-hud-stat>div:last-child{font-size:.64rem!important}.memory-board-stage{margin-top:.22rem!important}.memory-collection{padding:.65rem!important}.memory-collection-grid{gap:.3rem!important}.memory-collection-card{padding:.25rem!important}}@media(max-height:610px) and (max-width:640px){.memory-topbar h1{font-size:.88rem!important}.memory-board-stage,.memory-controls,.memory-hud-wrap{margin-top:.18rem!important}.memory-hud{padding-block:.15rem!important}.memory-hud-stat>div:first-child{font-size:6px!important}.memory-hud-stat>div:last-child{font-size:.6rem!important}}@media(prefers-reduced-motion:reduce){.memory-card,.memory-card-back,.memory-collection-card,.memory-hud-progress>div{transition:none!important}.memory-card.is-mismatch .memory-card-face,.memory-unlock:before{animation:none!important}}@media(forced-colors:active){.memory-board-stage,.memory-collection,.memory-completion,.memory-game-shell,.memory-hud,.memory-unlock{background:Canvas!important;box-shadow:none!important}.memory-card-back,.memory-card-face,.memory-collection-card{box-shadow:none!important}}.memory-card{isolation:isolate;filter:drop-shadow(0 7px 8px rgba(2,18,18,.22))}.memory-card-inner{border-radius:inherit}.memory-card-back,.memory-card-face{overflow:hidden}.memory-card-back:before,.memory-card-face:before{content:"";position:absolute;inset:0;pointer-events:none;background:linear-gradient(125deg,rgba(255,255,255,.26),transparent 24%,transparent 68%,rgba(255,255,255,.09)),radial-gradient(circle at 24% 18%,rgba(255,255,255,.2),transparent 32%);mix-blend-mode:screen;opacity:.7}.memory-card-back:after{content:"";position:absolute;inset:5%;border:1px solid rgba(255,226,145,.38);border-radius:.52rem;box-shadow:inset 0 0 12px rgba(255,220,118,.09);pointer-events:none}.memory-card-face{background:radial-gradient(circle at 30% 20%,rgba(255,255,255,.98),rgba(255,250,235,.94) 44%,rgba(244,229,190,.94))}.memory-card-face:after{content:"";position:absolute;inset:auto 8% 5% 8%;height:1px;background:linear-gradient(90deg,transparent,rgba(145,110,47,.38),transparent);pointer-events:none}.memory-card:not(:disabled):not(.is-face-up):hover .memory-card-inner{transform:translateY(-2px) rotateY(0deg)!important}.memory-card.is-face-up{filter:drop-shadow(0 9px 10px rgba(2,18,18,.25))}.memory-card.is-matched{z-index:3}.memory-card.is-matched .memory-card-face{border-color:#6bc08a!important;background:radial-gradient(circle at 50% 35%,rgba(255,255,255,.95),rgba(235,248,222,.98) 58%,rgba(210,237,197,.98))}.memory-card.is-recent-match{z-index:12;animation:memory-match-fusion .72s cubic-bezier(.18,.86,.22,1) both}.memory-card.is-recent-match .memory-card-face{animation:memory-match-glow .72s ease-out both}.memory-card.is-recent-match .memory-match-seal{animation:memory-seal-pop .58s cubic-bezier(.16,.9,.22,1) both}.memory-match-sparkles i{position:absolute;color:#ffe77d;font-style:normal;text-shadow:0 0 12px rgba(255,224,101,.95);opacity:0;animation:memory-sparkle-pop .68s ease-out forwards}.memory-match-sparkles i:first-child{left:6%;top:14%;animation-delay:.04s}.memory-match-sparkles i:nth-child(2){right:7%;top:18%;animation-delay:.1s}.memory-match-sparkles i:nth-child(3){left:12%;bottom:10%;animation-delay:.14s}.memory-match-sparkles i:nth-child(4){right:10%;bottom:8%;animation-delay:.2s}.memory-hud{transition:border-color .22s ease,box-shadow .22s ease,transform .22s ease}.memory-hud.is-streaking{border-color:rgba(241,181,76,.82);box-shadow:0 4px 14px rgba(5,21,20,.28),0 0 18px rgba(239,170,65,.12),inset 0 1px 0 rgba(255,231,171,.12)}.memory-hud.is-hot-streak{border-color:rgba(255,199,76,.95);box-shadow:0 4px 14px rgba(5,21,20,.28),0 0 24px rgba(255,170,51,.22),inset 0 1px 0 rgba(255,231,171,.16)}.memory-hud.is-hot-streak .memory-streak-value{animation:memory-streak-pulse .66s ease-in-out infinite alternate}.memory-completion{overflow:hidden;border:1px solid #d4ae55!important;background:radial-gradient(circle at 50% -10%,rgba(255,250,218,.98),transparent 46%),linear-gradient(180deg,#fff3ce,#efd49a)!important}.memory-victory-rays{position:absolute;inset:-44%;pointer-events:none;background:repeating-conic-gradient(from 0deg,rgba(255,218,91,.16) 0 6deg,transparent 6deg 18deg);animation:memory-victory-rays 16s linear infinite;opacity:.7}.memory-completion>:not(.memory-victory-rays){position:relative;z-index:2}.memory-victory-crown{display:flex;align-items:center;justify-content:center;gap:.75rem;min-height:3.5rem;color:#bc8426}.memory-victory-crown strong{display:grid;place-items:center;width:3.8rem;height:3.8rem;border-radius:999px;font-size:2.15rem;background:radial-gradient(circle at 35% 25%,#fffce8,#f7dc8c 70%,#d49b38);border:2px solid rgba(174,119,30,.46);box-shadow:0 5px 0 rgba(105,67,18,.16),0 0 28px rgba(255,207,69,.28)}.memory-victory-crown>span{font-size:1.1rem;text-shadow:0 0 14px rgba(255,212,87,.8)}.memory-completion-kicker{margin-top:.35rem;font-size:.62rem;font-weight:900;text-transform:uppercase;letter-spacing:.18em;color:#8b6a2b}.memory-completion-title{margin-top:.12rem;font-size:clamp(1.35rem,4vw,1.85rem);font-weight:950;letter-spacing:-.035em;color:#245541}.memory-completion-summary{margin-top:.18rem;font-size:.76rem;font-weight:750;color:#6d745a}.memory-victory-score{display:grid;grid-template-columns:1fr auto auto;align-items:baseline;gap:.4rem;max-width:17rem;margin:.72rem auto 0;padding:.55rem .8rem;border:1px solid rgba(180,135,44,.32);border-radius:1rem;background:rgba(255,250,227,.72);box-shadow:inset 0 1px 0 rgba(255,255,255,.75);text-align:left}.memory-victory-score span{font-size:.63rem;font-weight:900;text-transform:uppercase;letter-spacing:.1em;color:#80652e}.memory-victory-score strong{font-size:1.7rem;line-height:1;color:#1c654c}.memory-victory-score em{font-size:.68rem;font-style:normal;font-weight:800;color:#6c775e}.memory-completion-achievements{display:flex;flex-wrap:wrap;justify-content:center;gap:.38rem;margin-top:.58rem}.memory-completion-achievements>span{display:flex;flex-direction:column;min-width:7.4rem;border:1px solid rgba(179,148,80,.25);border-radius:.8rem;padding:.35rem .55rem;background:rgba(255,251,235,.66);font-size:.58rem;font-weight:800;color:#78684a;text-transform:uppercase;letter-spacing:.06em}.memory-completion-achievements b{font-size:.76rem;color:#634c20;text-transform:none;letter-spacing:0}.memory-completion-achievements .is-best{border-color:rgba(78,154,181,.35);background:rgba(226,245,255,.75)}.memory-completion-achievements .is-streak{border-color:rgba(210,102,49,.28);background:rgba(255,236,218,.74)}.memory-reward-reveal{animation:memory-reward-reveal .62s cubic-bezier(.16,.9,.22,1) .18s both}.memory-reward-body{display:grid;grid-template-columns:4.6rem 1fr;gap:.8rem;align-items:center;margin-top:.65rem;text-align:left}.memory-reward-card-frame{position:relative;aspect-ratio:4/5;overflow:hidden;border-radius:.85rem;border:2px solid rgba(167,116,32,.55);box-shadow:0 6px 0 rgba(93,60,18,.17),0 12px 24px rgba(95,61,20,.14),0 0 24px rgba(255,204,54,.2);animation:memory-reward-card-float 1.8s ease-in-out infinite alternate}.memory-reward-card-frame img{width:100%;height:100%;object-fit:cover}.memory-reward-copy h3{margin-top:.05rem;font-size:1rem;font-weight:950;color:#654818}.memory-reward-copy p{margin-top:.18rem;font-size:.7rem;line-height:1.35;font-weight:650;color:#796846}.memory-reward-copy button{margin-top:.48rem;min-height:2.35rem;border-radius:.72rem;background:#173f48;padding:.4rem .72rem;font-size:.68rem;font-weight:900;color:white;box-shadow:0 3px 0 #0d2d34}.memory-reward-icon{font-size:1.45rem;line-height:1}.memory-reward-kicker{font-size:.58rem;font-weight:950;text-transform:uppercase;letter-spacing:.16em;color:#8d6824}.memory-reward-sparkles i{position:absolute;z-index:1;font-style:normal;color:#f4bd3e;text-shadow:0 0 12px rgba(255,205,55,.75);animation:memory-reward-spark 1.2s ease-in-out infinite alternate}.memory-reward-sparkles i:first-child{left:5%;top:12%}.memory-reward-sparkles i:nth-child(2){right:7%;top:16%;animation-delay:.25s}.memory-reward-sparkles i:nth-child(3){left:9%;bottom:13%;animation-delay:.48s}.memory-reward-sparkles i:nth-child(4){right:8%;bottom:12%;animation-delay:.7s}.memory-more-unlocks{margin-top:.55rem;font-size:.62rem;font-weight:800;color:#806d46}.memory-next-reward{display:flex;align-items:center;justify-content:center;gap:.65rem;max-width:20rem;margin-inline:auto;padding:.65rem .85rem;border:1px solid rgba(164,134,76,.25);border-radius:.9rem;background:rgba(255,249,225,.66);text-align:left}.memory-next-reward>span{font-size:1.6rem}.memory-next-reward div{display:flex;flex-direction:column}.memory-next-reward strong{font-size:.76rem;color:#6d5527}.memory-next-reward small{margin-top:.06rem;font-size:.62rem;font-weight:650;color:#7b765f}.memory-next-reward.is-complete{background:rgba(234,248,224,.76)}.memory-play-again{background:linear-gradient(180deg,#2aa168,#1d7b50);box-shadow:0 4px 0 #155b3d,0 10px 18px rgba(22,91,61,.2);transition:transform .16s ease,box-shadow .16s ease,filter .16s ease}.memory-play-again:hover{transform:translateY(-2px);filter:brightness(1.04);box-shadow:0 6px 0 #155b3d,0 14px 22px rgba(22,91,61,.2)}.memory-collection-card>div:first-child{border:1px solid rgba(171,132,55,.4);box-shadow:0 4px 0 rgba(37,43,35,.24),0 9px 16px rgba(37,43,35,.13),inset 0 0 0 1px rgba(255,245,205,.22)!important}.memory-collection-card:not(:disabled):hover>div:first-child{transform:translateY(-2px) rotate(.5deg)}.memory-collection-card img{transition:transform .28s ease,filter .28s ease}.memory-collection-card:not(:disabled):hover img{transform:scale(1.035)}@keyframes memory-match-fusion{0%{transform:scale(1)}42%{transform:scale(1.055) translateY(-2px)}to{transform:scale(1)}}@keyframes memory-match-glow{0%{box-shadow:0 3px 0 rgba(34,85,48,.35),0 0 0 rgba(113,225,116,0)}42%{box-shadow:0 4px 0 rgba(34,85,48,.35),0 0 30px rgba(255,225,94,.65),0 0 16px rgba(113,225,116,.6)}to{box-shadow:0 3px 0 rgba(34,85,48,.35),0 0 18px rgba(113,225,116,.34)}}@keyframes memory-seal-pop{0%{transform:scale(.3) rotate(-18deg);opacity:0}65%{transform:scale(1.18) rotate(4deg);opacity:1}to{transform:scale(1);opacity:1}}@keyframes memory-sparkle-pop{0%{opacity:0;transform:scale(.35)}38%{opacity:1;transform:scale(1.35)}to{opacity:0;transform:translateY(-10px) scale(.9)}}@keyframes memory-streak-pulse{0%{transform:scale(1);filter:drop-shadow(0 0 0 rgba(255,166,53,0))}to{transform:scale(1.08);filter:drop-shadow(0 0 6px rgba(255,166,53,.55))}}@keyframes memory-victory-rays{to{transform:rotate(1turn)}}@keyframes memory-reward-reveal{0%{opacity:0;transform:translateY(10px) scale(.95)}70%{opacity:1;transform:translateY(-2px) scale(1.012)}to{opacity:1;transform:none}}@keyframes memory-reward-card-float{0%{transform:translateY(0) rotate(-.4deg)}to{transform:translateY(-3px) rotate(.4deg)}}@keyframes memory-reward-spark{0%{opacity:.35;transform:scale(.85)}to{opacity:1;transform:scale(1.18)}}@media(max-width:640px){.memory-victory-crown strong{width:3rem;height:3rem;font-size:1.7rem}.memory-completion-title{font-size:1.2rem}.memory-victory-score{margin-top:.45rem;padding:.4rem .62rem}.memory-victory-score strong{font-size:1.35rem}.memory-completion-achievements{margin-top:.4rem;gap:.25rem}.memory-completion-achievements>span{min-width:6.4rem;padding:.28rem .4rem;font-size:.51rem}.memory-completion-achievements b{font-size:.66rem}.memory-reward-body{grid-template-columns:3.7rem 1fr;gap:.55rem;margin-top:.45rem}.memory-reward-copy h3{font-size:.86rem}.memory-reward-copy p{font-size:.62rem}.memory-next-reward{padding:.45rem .62rem}.memory-play-again{margin-top:.6rem!important}}@media(prefers-reduced-motion:reduce){.memory-card.is-recent-match,.memory-card.is-recent-match .memory-card-face,.memory-card.is-recent-match .memory-match-seal,.memory-hud.is-hot-streak .memory-streak-value,.memory-match-sparkles i,.memory-reward-card-frame,.memory-reward-reveal,.memory-reward-sparkles i,.memory-victory-rays{animation:none!important}.memory-card:not(:disabled):not(.is-face-up):hover .memory-card-inner{transform:none!important}}