 .math-puzzle {
     position: relative;
     overflow: hidden;
     /* background: linear-gradient(180deg, #6196E0 0%, #567DB4 100%); */
     background: url("../images/game-bg.jpg");

     /* background: radial-gradient(108.36% 124.15% at 52.05% 50%, #DFECFF 28.44%, #8CBBFF 74.61%); */


     background-position: center;
     background-repeat: no-repeat;
     background-size: 100% 100%;
 }

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

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

 .math-puzzle .container-box .right .paragraph {
     margin-top: 26px;
     margin-bottom: 40px;
     line-height: 150%;
 }

 .math-puzzle .container-box .left {
     position: relative;
 }

 .math-puzzle .container-box .left .puzzle-box {
     position: relative;
     background: #ABCDFF;

     width: 486px;
     height: 483.01px;
     gap: 8.91px;
     opacity: 1;
     border-radius: 28.51px;
     border-width: 0.89px;
     padding: 14.25px;

     border-top: 1.07px solid var(--token-0986fddd-7d9b-4846-85f2-6e60ff21397e, #f1eeee14);
     box-shadow: -4px -3px 55.3px 0px #00000052;

 }

 /* Board */
 .math-puzzle .container-box .left .puzzle-board {
     background: #354F74;

     padding: 16px;
     border-radius: 24px;
     box-shadow: 0 12px 40px rgba(59, 130, 246, 0.4);

     display: flex;
     flex-direction: column;
     gap: 12.99px;
     width: 100%;
     height: 100%;
 }

 .math-puzzle .container-box .left .puzzle-row {
     display: flex;
     gap: 13.4px;
 }

 /* Cells */
 .math-puzzle .container-box .left .cell {
     width: 73.98px;
     height: 73.98px;
     border-radius: 8.37px;
     display: flex;
     align-items: center;
     justify-content: center;
     font-weight: 700;
     font-size: 36.04px;
     user-select: none;
 }

 .math-puzzle .container-box .left .cell--number {
     background: #fff;
     color: #1A1A1A;
 }

 .math-puzzle .container-box .left .cell--op {
     background: #fff;
     color: #1A1A1A;
     font-size: 35px;
 }

 .math-puzzle .container-box .left .cell--empty {
     background: #7c8da5;
     border-radius: 8.37px;
 }

 /* Input cell */
 .math-puzzle .container-box .left .cell--input {
     background: #fff;
     border: 3px solid #93c5fd;
     transition: border-color 0.2s;
     color: #1F97F4;
 }

 .math-puzzle .container-box .left .cell--input.correct {
     border-color: #22c55e;
     background: #f0fdf4;
 }

 .math-puzzle .container-box .left .cell--input.wrong {
     border-color: #ef4444 !important;
     background: #fef2f2;
 }

 .math-puzzle .container-box .left .cell--input input {
     width: 100%;
     height: 100%;
     border: none;
     outline: none;
     background: transparent;
     text-align: center;
     font-size: 1.5rem;
     font-weight: 700;
     color: #1e40af;
     cursor: text;
 }

 .math-puzzle .container-box .left .cell--input input::placeholder {
     color: #93c5fd;
     font-weight: 700;
 }

 /* Actions */
 .math-puzzle .container-box .left .puzzle-actions {
     display: flex;
     gap: 12px;
 }

 .math-puzzle .container-box .left .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;
 }

 .math-puzzle .container-box .left .btn--check {
     background: #3b82f6;
     color: #fff;
     box-shadow: 0 4px 16px rgba(59, 130, 246, 0.4);
 }

 .math-puzzle .container-box .left .btn--check:hover {
     transform: translateY(-2px);
     box-shadow: 0 8px 24px rgba(59, 130, 246, 0.45);
 }

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

 .math-puzzle .container-box .left .btn--next:hover {
     transform: translateY(-2px);
 }

 /* Progress dots */
 .math-puzzle .container-box .left .puzzle-progress {
     display: flex;
     gap: 8px;
 }

 .math-puzzle .container-box .left .dot {
     width: 10px;
     height: 10px;
     border-radius: 50%;
     background: #93c5fd;
     cursor: pointer;
     transition: background 0.2s, transform 0.2s;
 }

 .math-puzzle .container-box .left .dot--active {
     background: #1d4ed8;
     transform: scale(1.3);
 }

 /* Shake animation */
 @keyframes shake {

     0%,
     100% {
         transform: translateX(0);
     }

     20% {
         transform: translateX(-8px);
     }

     40% {
         transform: translateX(8px);
     }

     60% {
         transform: translateX(-5px);
     }

     80% {
         transform: translateX(5px);
     }
 }

 .math-puzzle .container-box .left .shake {
     animation: shake 0.45s ease;
 }

 /* Popup */
 .math-puzzle .container-box .left .popup__overlay {
     position: absolute;
     inset: 0;
     background: #5682BFD9;
     display: flex;
     align-items: center;
     justify-content: center;
     z-index: 10;
     border-radius: 21.3px;
     animation: fadeIn 0.3s ease;
     scale: 0.941;
 }

 .math-puzzle .container-box .left .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);
 }

 .math-puzzle .container-box .left .popup__emoji {
     margin-bottom: 18px;
 }

 .math-puzzle .container-box .left .popup__emoji img {
     width: 116px;
     height: 116px;
 }

 .math-puzzle .container-box .left .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;
     }
 }



 /* Options area */
 .math-puzzle .container-box .left .options-area {
     min-height: 88px;
     display: flex;
     align-items: center;
     justify-content: center;
     position: absolute;
     top: 100%;
     left: 18%;

 }

 .math-puzzle .container-box .left .options-hint {
     color: #3b82f6;
     font-size: 0.95rem;
     font-weight: 500;
     opacity: 0.7;
 }

 .math-puzzle .container-box .left .options-hint span {
     font-weight: 700;
     color: #1d4ed8;
 }

 .math-puzzle .container-box .left .options-row {
     display: flex;
     gap: 12px;
 }

 .math-puzzle .container-box .left .option-cell {
     width: 64px;
     height: 64px;
     border-radius: 14px;
     background: #fff;
     border: 3px solid #93c5fd;
     display: flex;
     align-items: center;
     justify-content: center;
     font-size: 1.5rem;
     font-weight: 700;
     color: #1e40af;
     cursor: pointer;
     transition: transform 0.15s ease, border-color 0.2s, background 0.2s;
 }

 .math-puzzle .container-box .left .option-cell:hover {
     border-color: #3b82f6;
     background: #eff6ff;
     transform: translateY(-3px);
 }

 .math-puzzle .container-box .left .option-cell.option-wrong {
     border-color: #ef4444;
     background: #fef2f2;
     color: #ef4444;
     animation: shake 0.45s ease;
 }

 /* Focused input cell */
 .math-puzzle .container-box .left .cell--input.focused {
     border-color: #3b82f6;
     box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25);
 }

 .math-puzzle .container-box .left .cell--input .placeholder {
     color: #93c5fd;
     font-size: 1.5rem;
     font-weight: 700;
 }

 .math-puzzle .container-box .left .cell--input .filled {
     color: #1e40af;
     font-size: 1.5rem;
     font-weight: 700;
 }

 .math-puzzle .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%);
     padding: 16px;
     border-radius: 21.3px;
     box-shadow: 0 12px 40px rgba(20, 184, 166, 0.35);
     height: 100%;
     width: 100%;
 }

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

 .math-puzzle .cell:hover {
     transform: scale(0.95);
 }

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

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

 .math-puzzle .cell__front,
 .math-puzzle .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;
 }

 .math-puzzle .cell__front img,
 .math-puzzle .cell__back img {
     width: 50px;
     height: 50px;
 }

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

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

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

 .math-puzzle .cell__check {
     color: #16a34a;
     font-size: 2rem;
 }


 .math-puzzle .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;
 }

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

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

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

     .math-puzzle .container-box .right {
         width: 50%;
     }

     .math-puzzle .container-box .left .puzzle-box {
         width: 420px;
         height: 420px;
     }

     .math-puzzle .container-box .left .puzzle-box .cell {
         height: 61.5px;
     }

     .math-puzzle .container-box .right .icon-list>div {
         padding-right: 20px;
     }
 }

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

     .math-puzzle .container-box .right {
         width: 70%;
     }

     .math-puzzle .container-box .left {
         width: 100%;
     }

     .math-puzzle .container-box .left .puzzle-box {
         width: 420px;
         height: 420px;
     }

     .math-puzzle .container-box .left .puzzle-row {
         gap: 15.4px;
     }

     .math-puzzle .container-box .left .cell {
         width: 60px;
         height: 60px;
         font-size: 28px;
     }

     .math-puzzle .container-box .left .cell--op {
         font-size: 26px;
     }

     .math-puzzle .container-box .left .options-area {
         position: static;
         margin-top: 16px;
         justify-content: flex-start;
     }

     .math-puzzle .container-box .left .option-cell {
         width: 54px;
         height: 54px;
         font-size: 1.2rem;
     }
 }

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

     .math-puzzle .container-box .right .paragraph {
         margin-bottom: 32px;
     }

     .math-puzzle .container-box .left .puzzle-box {
         width: 100%;
         max-width: 420px;
         height: auto;
         margin: 0 auto;
     }

     .math-puzzle .container-box .left .puzzle-board {
         height: auto;
     }

     .math-puzzle .container-box .left .puzzle-row {
         display: flex;
         gap: 15.4px;
     }

     .math-puzzle .container-box .left .cell {
         width: 60px;
         height: 60px !important;
         font-size: 24px;
     }

     .math-puzzle .container-box .left .cell--op {
         font-size: 22px;
     }

     .math-puzzle .container-box .left .options-area {
         position: static;
         margin-top: 16px;
         justify-content: center;
     }

     .math-puzzle .container-box .left .popup {
         padding: 32px 24px;
     }

     .math-puzzle .container-box .left .popup__emoji img {
         width: 80px;
         height: 80px;
     }

     .math-puzzle .container-box .left .popup h3 {
         font-size: 20px;
     }
 }

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

     .math-puzzle .container-box {
         padding: 40px 20px;
     }

     .math-puzzle .container-box .left {
         width: 100%;
     }

     .math-puzzle .container-box .left .popup__overlay {
         scale: 0.91;
     }

     .math-puzzle .container-box .left .puzzle-box {
         max-width: 320px;
         margin: 0 auto;
     }

     .math-puzzle .container-box .left .puzzle-board {
         gap: 8px;
         padding: 12px;
     }

     .math-puzzle .container-box .left .puzzle-row {
         gap: 9px;
     }

     .math-puzzle .container-box .left .cell {
         width: 46px;
         height: 46px !important;
         font-size: 20px;
         border-radius: 6px;
     }

     .math-puzzle .container-box .left .cell--op {
         font-size: 18px;
     }

     .math-puzzle .container-box .left .cell--input input {
         font-size: 1.1rem;
     }

     .math-puzzle .container-box .left .option-cell {
         width: 46px;
         height: 46px;
         font-size: 1.1rem;
         border-radius: 10px;
     }

     .math-puzzle .container-box .left .options-row {
         gap: 8px;
     }

     .math-puzzle .container-box .right {
         width: 100%;
     }
 }
