#minesweeper {
    display: grid;
    grid-template-columns: repeat(8, 30px);
    grid-template-rows: repeat(8, 30px);
    gap: 2px;
  }
  
  .cell {
    width: 30px;
    height: 30px;
    background-color: #333;
    color: #fff;
    font-size: 16px;
    text-align: center;
    line-height: 30px;
    cursor: pointer;
    user-select: none;
  }
  
  .revealed {
    background-color: #666;
    cursor: default;
  }
  
  .mine {
    background-color: #bb0000;
  }
  
  @keyframes reveal {
    0% {
      background-color: #222;
      transform: scale(1.2);
    }
    100% {
      background-color: #666;
      transform: scale(1);
    }
  }
  
  .cell.revealed {
    animation: reveal 0.2s ease-out;
  }
  
  /* Optional: Hover-Effekt */
  .cell:hover {
    background-color: #444;
    transform: scale(1.05);
    transition: transform 0.1s ease, background-color 0.1s ease;
  }
  
  @keyframes shake {
    0% { transform: translate(1px, 1px) rotate(0deg); }
    20% { transform: translate(-1px, -2px) rotate(-2deg); }
    40% { transform: translate(-3px, 0px) rotate(1deg); }
    60% { transform: translate(3px, 2px) rotate(0deg); }
    80% { transform: translate(1px, -1px) rotate(1deg); }
    100% { transform: translate(1px, 2px) rotate(-1deg); }
  }
  
  .shake {
    animation: shake 0.4s ease-in-out;
  }
  