 .tetris-board-wrap {
     position: relative;
     flex-shrink: 0;
 }

 .tetris-board {
     max-width: 310px;
     margin: 0 auto;
     display: grid;
     grid-template-columns: repeat(10, 26px);
     grid-template-rows: repeat(20, 26px);
     gap: 0;
     background: #1a202c;
     padding: 4px;
     border-radius: 6px;
     box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
     touch-action: none;
     user-select: none;
 }

 .tetris-cell {

     aspect-ratio: 1;
     background: rgba(255, 255, 255, 0.05);
     border-radius: 2px;
     box-sizing: border-box;
   
     transition: background 0.05s;
 }

 .tetris-cell.filled {
     border-color: transparent;
     box-shadow:
         inset 2px 2px 4px rgba(255, 255, 255, 0.25),
         inset -2px -2px 4px rgba(0, 0, 0, 0.35);
 }

 .tetris-cell.ghost {
     background: transparent !important;
     border-width: 2px;
     border-style: solid;
     opacity: 0.5;
 }

 .tetris-overlay {
     position: absolute;
     inset: 0;
     display: flex;
     flex-direction: column;
     align-items: center;
     justify-content: center;
     gap: 12px;
     background: rgba(0, 0, 0, 0.75);
     border-radius: 6px;
     z-index: 10;
 }

 .tetris-overlay h2 {
     font-size: 2rem;
     font-weight: 700;
     margin: 0;
     letter-spacing: 3px;
     text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
 }

 .tetris-overlay p {
     color: rgba(255, 255, 255, 0.8);
     margin: 0;
     font-size: 1.1rem;
 }

 .tetris-sidebar {
     display: flex;
     gap: 16px;
     max-width: 310px;
     min-height: 38px;
     width: 100%;
     margin: 0 auto 10px auto;
     justify-content: space-between;
     align-items: center;
 }

 .tetris-info-box {
     align-items: center;
     display: flex;
     text-align: center;
     gap: 6px;
 }

 .tetris-info-label {
     font-size: smaller;
     text-transform: uppercase;

 }

 .tetris-info-value {

     font-weight: bold;
     line-height: 1;
 }

 .tetris-next-preview {
     display: grid;
     gap: 0;
     margin: 0 auto;
     width: fit-content;
 }

 .tetris-next-cell {
     width: 18px;
     height: 18px;

     border-radius: 2px;
     border: 1px solid rgba(255, 255, 255, 0.08);
     box-sizing: border-box;
 }

 .tetris-next-cell.filled {
     border-color: transparent;
     box-shadow:
         inset 1px 1px 3px rgba(255, 255, 255, 0.2),
         inset -1px -1px 3px rgba(0, 0, 0, 0.3);
 }

 .tetris-touch-controls {
     display: flex;
     gap: 8px;
     justify-content: center;
     margin-top: 2rem;
 }

 @media (max-width: 700px) {


     .tetris-sidebar {
         flex-direction: row;
         flex-wrap: wrap;
         justify-content: center;
         min-width: unset;
         width: 100%;
         gap: 6px;
     }

     .tetris-info-box {
         flex: 1 1 80px;
         min-width: 70px;
     }

     .tetris-sidebar .button {
         flex: 1 1 80px;
     }



     .tetris-touch-btn {
         width: 56px;
         height: 48px;
         font-size: 1.4rem;
         background: rgba(255, 255, 255, 0.1);
         border: 1px solid rgba(255, 255, 255, 0.2);
         border-radius: 8px;
         cursor: pointer;
         display: flex;
         align-items: center;
         justify-content: center;
         touch-action: manipulation;
         -webkit-tap-highlight-color: transparent;
     }

     .tetris-touch-btn:active {
         background: rgba(255, 255, 255, 0.25);
     }
 }

 @media (max-width: 520px) {
     .tetris-board {
         grid-template-columns: repeat(10, 21px);
         grid-template-rows: repeat(20, 21px);
         gap: 0;
     }

 }

 @media (max-width: 380px) {
     .tetris-board {
         grid-template-columns: repeat(10, 18px);
         grid-template-rows: repeat(20, 18px);
     }


 }

 /* ── Animációk és Fixek ─────────────────────────────── */

 @keyframes lineFlash {
     0% {
         background: #fff;
     }

     100% {
         background: transparent;
     }
 }

 .tetris-cell.clearing {
     animation: lineFlash 0.15s ease-out forwards;
     border-color: transparent;
 }

 /* Felülírt segédosztályok a kérésed szerint */
 .tetris-board {
     gap: 0;
     background: #111;
     border: 2px solid #333;
 }

 .tetris-cell {
     box-sizing: border-box;
      
 }





 @keyframes tetris-flash {
     0% {
         filter: brightness(1);
         transform: scale(1);
     }

     50% {
         filter: brightness(3) white;
         transform: scale(1.05);
         z-index: 10;
     }

     100% {
         filter: brightness(1);
         transform: scale(1);
     }
 }

 .tetris-cell.flash {
     animation: tetris-flash 0.25s ease-out;
     background: white !important;
     border: 1px solid #fff;
     box-shadow: 0 0 15px #fff;
 }

 /* Egy kis extra: a sidebar értékeinek ugrása pontszerzéskor */
 .tetris-info-value {
     transition: transform 0.1s;
 }