 .memory-game {
     position: relative;
     overflow: hidden;
     background: url("../images/game-bg-2.jpg");
     background-position: center;
     background-repeat: no-repeat;
     background-size: 100% 100%;
 }

 .memory-game .container-box {
     display: flex;
     align-items: center;
     justify-content: space-between;
     gap: 135px;
     padding: 152px 0;
 }

 .memory-game .container-box .left {
     flex: 1;
 }

 .memory-game .container-box .left .heading-2,
 .memory-game .container-box .left .paragraph,
 .memory-game .container-box .left .game-list {
     color: #1A1A1A;
     text-align: left;
 }

 .memory-game .container-box .left .paragraph {
     margin-top: 26px;
     margin-bottom: 40px;
     line-height: 150%;
 }

 .memory-game .container-box .right {
     width: 470.517px;
     background: #8FE9DD;
     height: 474px;
     opacity: 1;
     border-radius: 34.09px;
     gap: 10.65px;
     padding: 17.04px;
     border-width: 1.07px;
     border-top: 1.07px solid var(--token-0986fddd-7d9b-4846-85f2-6e60ff21397e, #f1eeee14);
     box-shadow: -4px -3px 55.3px 0px #00000052;
 }

 .memory-game .board-wrapper {
     position: relative;
     height: 100%;
     width: 100%;
     display: block;
 }

 .memory-game .board {
     display: grid;
     grid-template-columns: repeat(4, 1fr);
     gap: 13.01px 16.89px;
     /* background: radial-gradient(70.46% 50.34% at 49.13% 49.54%, #A3FFF1 0%, #00A28C 54.68%); */
     background-color: #104E46;
     padding: 16px;
     border-radius: 21.3px;
     box-shadow: 0 12px 40px rgba(20, 184, 166, 0.35);
     height: 100%;
     width: 100%;
 }

 /* flip container */
 .memory-game .cell {
     width: 88.45px;
     height: 88.45px;
     cursor: pointer;
     perspective: 600px;
     transition: .4s;
     user-select: none;
 }

 .memory-game .cell:hover {
     transform: scale(0.95);
 }

 .memory-game .cell__inner {
     width: 100%;
     height: 100%;
     position: relative;
     transform-style: preserve-3d;
     transition: transform 0.45s ease;
     border-radius: 4.42px;
 }

 .memory-game .cell.flipped .cell__inner,
 .memory-game .cell.matched .cell__inner {
     transform: rotateY(180deg);
     background-color: #f1eed3;
 }

 .memory-game .cell__front,
 .memory-game .cell__back {
     position: absolute;
     inset: 0;
     border-radius: 4.42px;
     display: flex;
     align-items: center;
     justify-content: center;
     backface-visibility: hidden;
     font-size: 2rem;
     font-weight: 700;
 }

 .memory-game .cell__front img,
 .memory-game .cell__back img {
     width: 50px;
     height: 50px;
 }

 .memory-game .cell__front {
     background: #f0faf8;
     color: #59B7EA;
     font-size: 49px;
 }

 .memory-game .cell__back {
     background: #ffffff;
     transform: rotateY(180deg);
     color: #0f9787;
 }

 .memory-game .cell.matched .cell__back {
     background: #c8f5d8;
     border: 2px solid #16a34a;
 }

 .memory-game .cell__check {
     color: #16a34a;
     font-size: 2rem;
 }


 .memory-game .btn {
     padding: 12px 32px;
     border: none;
     border-radius: 50px;
     font-size: 1rem;
     font-weight: 600;
     cursor: pointer;
     transition: transform 0.15s ease, box-shadow 0.2s ease;
 }

 .memory-game .btn--next {
     background: #fff;
     color: #3b82f6;
     box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
 }

 /* popup */
 .memory-game .popup__overlay {
     position: absolute;
     inset: 0;
     background: #0F433DD9;
     display: flex;
     align-items: center;
     justify-content: center;
     z-index: 10;
     border-radius: 21.3px;
     animation: fadeIn 0.3s ease;
 }

 .memory-game .popup {
     border-radius: 24px;
     padding: 48px 40px;
     text-align: center;
     display: flex;
     flex-direction: column;
     align-items: center;
     gap: 12px;
     animation: popIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
 }

 .memory-game .popup__emoji {
     margin-bottom: 18px;
 }

 .memory-game .popup__emoji img {
     width: 116px;
     height: 116px;
 }

 .memory-game .popup h3 {
     font-weight: 600;
     font-size: 24px;
     line-height: 130%;
     letter-spacing: 0%;
     text-align: center;
     vertical-align: middle;
     margin-bottom: 18px;
     color: #FFFFFF;
 }

 @keyframes fadeIn {
     from {
         opacity: 0;
     }

     to {
         opacity: 1;
     }
 }

 @keyframes popIn {
     from {
         transform: scale(0.8);
         opacity: 0;
     }

     to {
         transform: scale(1);
         opacity: 1;
     }
 }

 /* =============================================
   Responsive Breakpoints
   ============================================= */

 /* 1200px — constrained desktops / large tablets */
 @media (max-width: 1200px) {
     .memory-game .container-box {
         gap: 80px;
         padding: 100px 0;
     }

     .memory-game .container-box .left {
         width: 50%;
     }

     .memory-game .container-box .right {
         width: 420px;
         height: 410px;
     }

     .memory-game .cell {
         width: auto;
         height: auto;
         aspect-ratio: 1;
     }
 }

 /* 992px — tablets landscape */
 @media (max-width: 992px) {
     .memory-game .container-box {
         flex-direction: column;
         align-items: flex-start;
         gap: 40px;
         padding: 80px 20px;
     }

     .memory-game .container-box .left {
         width: 100%;
     }

     .memory-game .container-box .left {
         width: 70%;
     }

     .memory-game .cell {
         width: auto;
         height: auto;
         aspect-ratio: 1;
     }

     .memory-game .cell__front {
         font-size: 36px;
     }

     .memory-game .cell__front img {
         width: 36px;
         height: 36px;
     }

     .memory-game .cell__back img {
         width: 36px;
         height: 36px;
     }
 }

 /* 768px — tablets portrait / large phones */
 @media (max-width: 768px) {
     .memory-game .container-box {
         gap: 40px;
         padding: 60px 20px;
     }

     .memory-game .container-box .left .paragraph {
         margin-bottom: 32px;
     }

     .memory-game .container-box .right {
         width: 100%;
         max-width: 420px;
         height: auto;
         margin: 0 auto;
     }

     .memory-game .board {
         height: auto;
     }

     .memory-game .cell {
         width: auto;
         height: auto;
         aspect-ratio: 1;
     }
 }

 /* 580px — small phones */
 @media (max-width: 580px) {
     .memory-game {
         background: url("../images/game-bg-mobile-2.png");
         background-size: 100% 100%;
     }

     .memory-game .container-box {
         padding: 40px 20px;
         gap: 50px;
     }

     .memory-game .container-box .left {
         width: 100%;
     }

     .memory-game .container-box .right {
         max-width: 320px;
         padding: 14.25px;
     }

     .memory-game .board {
         gap: 8px;
         padding: 12px;
     }

     .memory-game .cell__front {
         font-size: 28px;
     }

     .memory-game .cell__front img {
         width: 28px;
         height: 28px;
     }

     .memory-game .cell__back img {
         width: 28px;
         height: 28px;
     }

     .memory-game .popup {
         padding: 32px 24px;
     }

     .memory-game .popup__emoji img {
         width: 80px;
         height: 80px;
     }

     .memory-game .popup h3 {
         font-size: 20px;
     }
 }
