.memory-game .card{position:relative;display:block;aspect-ratio:4/5;min-width:0;padding:0;overflow:hidden;border:2px solid #29241e;border-radius:9px;background:#a52c20;box-shadow:0 3px 0 #211b14;isolation:isolate}
.card-back{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;padding:11px;background:repeating-linear-gradient(45deg,#0000 0 8px,#f2bf6312 8px 9px),radial-gradient(ellipse at center,#b23e25,#6c1a15);border:5px solid #181817;border-radius:6px}
.card-back::before{content:"";position:absolute;inset:4px;border:1px solid #e1ae61;border-radius:2px;pointer-events:none}
.card-back::after{content:"◆";position:absolute;top:9px;color:#e9bb71;font-size:12px;line-height:1}
.card-back .back-logo{display:block;width:100%;height:auto;max-height:57%;object-fit:contain;border-radius:3px;border:1px solid #e5b770;box-shadow:0 3px 9px #3008;filter:none}
.back-tag{font:700 clamp(.5rem,1.4vw,.68rem)/1.25 "Barlow Condensed",sans-serif;letter-spacing:.08em;color:#ffe6b4;text-align:center}
.card-front{display:none;height:100%;width:100%;padding:8px 6px 7px;flex-direction:column;align-items:center;gap:5px;background:white}
.card-front .product-photo{display:block;min-height:0;flex:1 1 0;width:100%;object-fit:contain;filter:none}
.product-name{display:flex;align-items:center;justify-content:center;flex:0 0 auto;min-height:2.3em;width:100%;font:700 clamp(.67rem,2.2vw,.98rem)/1.08 "Barlow Condensed",sans-serif;text-transform:uppercase;color:#27221d;text-align:center;letter-spacing:.015em;overflow-wrap:normal}
.memory-game .card.face{border-color:#d79830;background:white;box-shadow:0 3px 0 #9b702e}
.memory-game .card.face .card-front{display:flex}.memory-game .card.face .card-back{display:none}
.memory-game .card.matched{border-color:#52743b;background:white;box-shadow:0 3px 0 #385427}
.memory-game .card.matched::after{content:"✓";position:absolute;right:4px;top:4px;display:grid;place-items:center;width:20px;height:20px;border-radius:50%;background:#426431;color:white;font:800 13px/1 sans-serif;box-shadow:0 1px 3px #0003}
.memory-game .card.matched .product-name{color:#385427}
@media(max-width:420px){.memory-game .card{aspect-ratio:3/4;border-radius:7px}.card-back{padding:7px;gap:7px;border-width:3px}.card-back::after{top:7px;font-size:9px}.card-front{padding:5px 3px;gap:3px}.back-tag{font-size:.49rem;letter-spacing:.025em}.product-name{font-size:.66rem;min-height:2.3em}.memory-game .card.matched::after{width:16px;height:16px;font-size:11px}}
