.mode-card.memory{background:linear-gradient(135deg,#473371,#242541)}.mode-memory-art{position:absolute;right:20px;bottom:15px;display:grid;grid-template-columns:repeat(2,36px);gap:5px;transform:rotate(-12deg)}.mode-memory-art i{display:grid;place-items:center;width:36px;height:43px;border-radius:9px;border:1px solid #e0c1ff65;background:linear-gradient(140deg,#ac7ee3,#604889);color:#f1d59c;font-size:24px;font-style:normal;box-shadow:0 6px 8px #0003}.mode-memory-art i:nth-child(n+3){background:#362b52;color:#bfa3e8}
.memory-stage{max-width:800px;margin:0 auto 22px;padding:28px;border:1px solid #b392de40;border-radius:28px;background:radial-gradient(ellipse at 50% 0,#9766bb26,transparent 70%),linear-gradient(140deg,#211b32,#161522);box-shadow:inset 0 1px 0 #fff08,0 18px 44px #0003}.memory-top{display:flex;align-items:center;justify-content:space-between;gap:15px}.memory-attempts{font-size:12px;color:#bea9d5;white-space:nowrap}.memory-score{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:22px 0}.memory-score>div{padding:12px;border:1px solid #bc99ef1a;border-radius:14px;background:#ffffff03}.memory-score small{display:block;font-size:10px;color:#9c8fac;margin-bottom:8px;letter-spacing:1px}.memory-score strong{font-size:24px;color:#ecd6ff}.memory-score strong span{font-size:14px;color:#9b85b5}.memory-board{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.memory-card{border:0;padding:0;background:none;aspect-ratio:4/5;min-height:44px;perspective:800px;border-radius:17px;outline-offset:4px}.memory-card:disabled{opacity:1;cursor:default}.memory-card-inner{position:relative;display:block;width:100%;height:100%;transform-style:preserve-3d}.memory-card.revealed .memory-card-inner{transform:rotateY(180deg)}.memory-back,.memory-front{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;backface-visibility:hidden;border-radius:17px;overflow:hidden;border:1px solid #bca0ec5c;box-shadow:inset 0 1px 0 #ffffff15,0 7px 12px #0003}.memory-back{background:radial-gradient(ellipse at 20% 0,#ad80ec35,transparent 75%),linear-gradient(155deg,#44325f,#29233d)}.memory-back:before{content:'';position:absolute;inset:9px;border:1px solid #c6a5ee25;border-radius:10px}.memory-back b{font-size:clamp(24px,4vw,42px);color:#d1a9ff8c;letter-spacing:-2px}.memory-back i{position:absolute;left:55%;top:25%;font-size:19px;font-style:normal;color:#f4cf8a}.memory-back small{position:absolute;bottom:13px;font-size:10px;color:#a78bbc}.memory-front{transform:rotateY(180deg);background:radial-gradient(ellipse,#9567b72a,#201b30 80%)}.memory-front img{width:82%;height:82%;object-fit:contain;filter:drop-shadow(0 6px 6px #0004)}.memory-card.matched .memory-front{border-color:#7ec2ad78;background:radial-gradient(ellipse,#78bb9e28,#1b2629 85%)}.memory-check{position:absolute;bottom:7px;right:7px;display:grid;place-items:center;width:24px;height:24px;border-radius:50%;background:#325c51;color:#baf3db;font-size:13px}.memory-status{color:#c1b0d1;font-size:14px;line-height:1.65;min-height:46px;margin:20px 0 14px}.memory-stage>button,.memory-start button{min-height:46px}.memory-reward{display:flex;align-items:center;gap:12px;margin-top:18px;border:1px solid #e6c48125;border-radius:16px;background:#bf954a0d;padding:16px}.memory-reward>span{font-size:24px;color:#f1cb80}.memory-reward>div{flex:1;min-width:0}.memory-reward b{display:block;font-size:13px;color:#e9d4ac;line-height:1.5}.memory-reward small{display:block;font-size:11px;color:#ae9f86;margin-top:5px}.memory-reward a{min-height:44px;display:flex;align-items:center;font-size:12px;color:#cda7ff}.memory-stage.won{border-color:#8fd8c275}
@media(max-width:540px){.memory-stage{padding:18px;border-radius:22px}.memory-board{gap:8px}.memory-card,.memory-back,.memory-front{border-radius:12px}.memory-back:before{inset:6px;border-radius:7px}.memory-back small{bottom:8px}.memory-score{gap:8px;margin:18px 0}.memory-score>div{padding:10px 8px}.memory-score small{font-size:8px;letter-spacing:.5px}.memory-score strong{font-size:21px}.memory-top .eyebrow{font-size:9px}.memory-attempts{font-size:10px}.memory-status{font-size:13px}.memory-reward{flex-wrap:wrap;padding:12px}.memory-reward a{width:100%;justify-content:center}.mode-memory-art{right:17px;bottom:15px;grid-template-columns:repeat(2,30px)}.mode-memory-art i{width:30px;height:35px}}
@media(prefers-reduced-motion:reduce){.memory-card-inner{transition:none}}

.memory-score+.memory-start{margin:0 0 18px}
